devicemanagementresourcenamespace

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/rolemanagement/beta/devicemanagementresourcenamespace Documentation

The devicemanagementresourcenamespace SDK allows for interaction with Microsoft Graph rolemanagement (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/rolemanagement/beta/devicemanagementresourcenamespace"

Client Initialization

client := devicemanagementresourcenamespace.NewDeviceManagementResourceNamespaceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceManagementResourceNamespaceClient.CreateDeviceManagementResourceNamespace

ctx := context.TODO()

payload := devicemanagementresourcenamespace.UnifiedRbacResourceNamespace{
	// ...
}


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

Example Usage: DeviceManagementResourceNamespaceClient.CreateDeviceManagementResourceNamespaceImportResourceAction

ctx := context.TODO()
id := devicemanagementresourcenamespace.NewRoleManagementDeviceManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

payload := devicemanagementresourcenamespace.CreateDeviceManagementResourceNamespaceImportResourceActionRequest{
	// ...
}


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

Example Usage: DeviceManagementResourceNamespaceClient.DeleteDeviceManagementResourceNamespace

ctx := context.TODO()
id := devicemanagementresourcenamespace.NewRoleManagementDeviceManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: DeviceManagementResourceNamespaceClient.GetDeviceManagementResourceNamespace

ctx := context.TODO()
id := devicemanagementresourcenamespace.NewRoleManagementDeviceManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: DeviceManagementResourceNamespaceClient.GetDeviceManagementResourceNamespacesCount

ctx := context.TODO()


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

Example Usage: DeviceManagementResourceNamespaceClient.ListDeviceManagementResourceNamespaces

ctx := context.TODO()


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

Example Usage: DeviceManagementResourceNamespaceClient.UpdateDeviceManagementResourceNamespace

ctx := context.TODO()
id := devicemanagementresourcenamespace.NewRoleManagementDeviceManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

payload := devicemanagementresourcenamespace.UnifiedRbacResourceNamespace{
	// ...
}


read, err := client.UpdateDeviceManagementResourceNamespace(ctx, id, payload, devicemanagementresourcenamespace.DefaultUpdateDeviceManagementResourceNamespaceOperationOptions())
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 CreateDeviceManagementResourceNamespaceImportResourceActionOperationOptions

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

func (CreateDeviceManagementResourceNamespaceImportResourceActionOperationOptions) ToHeaders

func (CreateDeviceManagementResourceNamespaceImportResourceActionOperationOptions) ToOData

func (CreateDeviceManagementResourceNamespaceImportResourceActionOperationOptions) ToQuery

type CreateDeviceManagementResourceNamespaceImportResourceActionOperationResponse

type CreateDeviceManagementResourceNamespaceImportResourceActionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.UnifiedRbacResourceNamespace
}

type CreateDeviceManagementResourceNamespaceImportResourceActionRequest

type CreateDeviceManagementResourceNamespaceImportResourceActionRequest struct {
	Format                     *string `json:"format,omitempty"`
	OverwriteResourceNamespace *bool   `json:"overwriteResourceNamespace,omitempty"`
	Value                      *string `json:"value,omitempty"`
}

type CreateDeviceManagementResourceNamespaceOperationOptions

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

func (CreateDeviceManagementResourceNamespaceOperationOptions) ToHeaders

func (CreateDeviceManagementResourceNamespaceOperationOptions) ToOData

func (CreateDeviceManagementResourceNamespaceOperationOptions) ToQuery

type CreateDeviceManagementResourceNamespaceOperationResponse

type CreateDeviceManagementResourceNamespaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.UnifiedRbacResourceNamespace
}

type DeleteDeviceManagementResourceNamespaceOperationOptions

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

func (DeleteDeviceManagementResourceNamespaceOperationOptions) ToHeaders

func (DeleteDeviceManagementResourceNamespaceOperationOptions) ToOData

func (DeleteDeviceManagementResourceNamespaceOperationOptions) ToQuery

type DeleteDeviceManagementResourceNamespaceOperationResponse

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

type DeviceManagementResourceNamespaceClient

type DeviceManagementResourceNamespaceClient struct {
	Client *msgraph.Client
}

func NewDeviceManagementResourceNamespaceClientWithBaseURI

func NewDeviceManagementResourceNamespaceClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceManagementResourceNamespaceClient, error)

func (DeviceManagementResourceNamespaceClient) CreateDeviceManagementResourceNamespace

CreateDeviceManagementResourceNamespace - Create new navigation property to resourceNamespaces for roleManagement

func (DeviceManagementResourceNamespaceClient) CreateDeviceManagementResourceNamespaceImportResourceAction

CreateDeviceManagementResourceNamespaceImportResourceAction - Invoke action importResourceActions

func (DeviceManagementResourceNamespaceClient) DeleteDeviceManagementResourceNamespace

DeleteDeviceManagementResourceNamespace - Delete navigation property resourceNamespaces for roleManagement

func (DeviceManagementResourceNamespaceClient) GetDeviceManagementResourceNamespace

GetDeviceManagementResourceNamespace - Get resourceNamespaces from roleManagement

func (DeviceManagementResourceNamespaceClient) GetDeviceManagementResourceNamespacesCount

GetDeviceManagementResourceNamespacesCount - Get the number of the resource

func (DeviceManagementResourceNamespaceClient) ListDeviceManagementResourceNamespaces

ListDeviceManagementResourceNamespaces - Get resourceNamespaces from roleManagement

func (DeviceManagementResourceNamespaceClient) ListDeviceManagementResourceNamespacesComplete

ListDeviceManagementResourceNamespacesComplete retrieves all the results into a single object

func (DeviceManagementResourceNamespaceClient) ListDeviceManagementResourceNamespacesCompleteMatchingPredicate

ListDeviceManagementResourceNamespacesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceManagementResourceNamespaceClient) UpdateDeviceManagementResourceNamespace

UpdateDeviceManagementResourceNamespace - Update the navigation property resourceNamespaces in roleManagement

type GetDeviceManagementResourceNamespaceOperationOptions

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

func DefaultGetDeviceManagementResourceNamespaceOperationOptions

func DefaultGetDeviceManagementResourceNamespaceOperationOptions() GetDeviceManagementResourceNamespaceOperationOptions

func (GetDeviceManagementResourceNamespaceOperationOptions) ToHeaders

func (GetDeviceManagementResourceNamespaceOperationOptions) ToOData

func (GetDeviceManagementResourceNamespaceOperationOptions) ToQuery

type GetDeviceManagementResourceNamespaceOperationResponse

type GetDeviceManagementResourceNamespaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.UnifiedRbacResourceNamespace
}

type GetDeviceManagementResourceNamespacesCountOperationOptions

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

func (GetDeviceManagementResourceNamespacesCountOperationOptions) ToHeaders

func (GetDeviceManagementResourceNamespacesCountOperationOptions) ToOData

func (GetDeviceManagementResourceNamespacesCountOperationOptions) ToQuery

type GetDeviceManagementResourceNamespacesCountOperationResponse

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

type ListDeviceManagementResourceNamespacesCompleteResult

type ListDeviceManagementResourceNamespacesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.UnifiedRbacResourceNamespace
}

type ListDeviceManagementResourceNamespacesCustomPager

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

type ListDeviceManagementResourceNamespacesOperationOptions

type ListDeviceManagementResourceNamespacesOperationOptions 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 DefaultListDeviceManagementResourceNamespacesOperationOptions

func DefaultListDeviceManagementResourceNamespacesOperationOptions() ListDeviceManagementResourceNamespacesOperationOptions

func (ListDeviceManagementResourceNamespacesOperationOptions) ToHeaders

func (ListDeviceManagementResourceNamespacesOperationOptions) ToOData

func (ListDeviceManagementResourceNamespacesOperationOptions) ToQuery

type ListDeviceManagementResourceNamespacesOperationResponse

type ListDeviceManagementResourceNamespacesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.UnifiedRbacResourceNamespace
}

type UnifiedRbacResourceNamespaceOperationPredicate

type UnifiedRbacResourceNamespaceOperationPredicate struct {
}

func (UnifiedRbacResourceNamespaceOperationPredicate) Matches

type UpdateDeviceManagementResourceNamespaceOperationOptions

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

func (UpdateDeviceManagementResourceNamespaceOperationOptions) ToHeaders

func (UpdateDeviceManagementResourceNamespaceOperationOptions) ToOData

func (UpdateDeviceManagementResourceNamespaceOperationOptions) ToQuery

type UpdateDeviceManagementResourceNamespaceOperationResponse

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