tenantattachrbac

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

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

Client Initialization

client := tenantattachrbac.NewTenantAttachRBACClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TenantAttachRBACClient.DeleteTenantAttachRBAC

ctx := context.TODO()


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

Example Usage: TenantAttachRBACClient.EnableTenantAttachRBAC

ctx := context.TODO()

payload := tenantattachrbac.EnableTenantAttachRBACRequest{
	// ...
}


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

Example Usage: TenantAttachRBACClient.GetTenantAttachRBAC

ctx := context.TODO()


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

Example Usage: TenantAttachRBACClient.UpdateTenantAttachRBAC

ctx := context.TODO()

payload := tenantattachrbac.TenantAttachRBAC{
	// ...
}


read, err := client.UpdateTenantAttachRBAC(ctx, payload, tenantattachrbac.DefaultUpdateTenantAttachRBACOperationOptions())
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 DeleteTenantAttachRBACOperationOptions

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

func DefaultDeleteTenantAttachRBACOperationOptions

func DefaultDeleteTenantAttachRBACOperationOptions() DeleteTenantAttachRBACOperationOptions

func (DeleteTenantAttachRBACOperationOptions) ToHeaders

func (DeleteTenantAttachRBACOperationOptions) ToOData

func (DeleteTenantAttachRBACOperationOptions) ToQuery

type DeleteTenantAttachRBACOperationResponse

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

type EnableTenantAttachRBACOperationOptions

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

func DefaultEnableTenantAttachRBACOperationOptions

func DefaultEnableTenantAttachRBACOperationOptions() EnableTenantAttachRBACOperationOptions

func (EnableTenantAttachRBACOperationOptions) ToHeaders

func (EnableTenantAttachRBACOperationOptions) ToOData

func (EnableTenantAttachRBACOperationOptions) ToQuery

type EnableTenantAttachRBACOperationResponse

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

type EnableTenantAttachRBACRequest

type EnableTenantAttachRBACRequest struct {
	Enable *bool `json:"enable,omitempty"`
}

type GetTenantAttachRBACOperationOptions

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

func DefaultGetTenantAttachRBACOperationOptions

func DefaultGetTenantAttachRBACOperationOptions() GetTenantAttachRBACOperationOptions

func (GetTenantAttachRBACOperationOptions) ToHeaders

func (GetTenantAttachRBACOperationOptions) ToOData

func (GetTenantAttachRBACOperationOptions) ToQuery

type GetTenantAttachRBACOperationResponse

type GetTenantAttachRBACOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.TenantAttachRBAC
}

type TenantAttachRBACClient

type TenantAttachRBACClient struct {
	Client *msgraph.Client
}

func NewTenantAttachRBACClientWithBaseURI

func NewTenantAttachRBACClientWithBaseURI(sdkApi sdkEnv.Api) (*TenantAttachRBACClient, error)

func (TenantAttachRBACClient) DeleteTenantAttachRBAC

DeleteTenantAttachRBAC - Delete navigation property tenantAttachRBAC for deviceManagement

func (TenantAttachRBACClient) EnableTenantAttachRBAC

EnableTenantAttachRBAC - Invoke action enable

func (TenantAttachRBACClient) GetTenantAttachRBAC

GetTenantAttachRBAC - Get tenantAttachRBAC from deviceManagement. TenantAttach RBAC Enablement

func (TenantAttachRBACClient) UpdateTenantAttachRBAC

UpdateTenantAttachRBAC - Update the navigation property tenantAttachRBAC in deviceManagement

type UpdateTenantAttachRBACOperationOptions

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

func DefaultUpdateTenantAttachRBACOperationOptions

func DefaultUpdateTenantAttachRBACOperationOptions() UpdateTenantAttachRBACOperationOptions

func (UpdateTenantAttachRBACOperationOptions) ToHeaders

func (UpdateTenantAttachRBACOperationOptions) ToOData

func (UpdateTenantAttachRBACOperationOptions) ToQuery

type UpdateTenantAttachRBACOperationResponse

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