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 ¶
- type DeleteTenantAttachRBACOperationOptions
- type DeleteTenantAttachRBACOperationResponse
- type EnableTenantAttachRBACOperationOptions
- type EnableTenantAttachRBACOperationResponse
- type EnableTenantAttachRBACRequest
- type GetTenantAttachRBACOperationOptions
- type GetTenantAttachRBACOperationResponse
- type TenantAttachRBACClient
- func (c TenantAttachRBACClient) DeleteTenantAttachRBAC(ctx context.Context, options DeleteTenantAttachRBACOperationOptions) (result DeleteTenantAttachRBACOperationResponse, err error)
- func (c TenantAttachRBACClient) EnableTenantAttachRBAC(ctx context.Context, input EnableTenantAttachRBACRequest, ...) (result EnableTenantAttachRBACOperationResponse, err error)
- func (c TenantAttachRBACClient) GetTenantAttachRBAC(ctx context.Context, options GetTenantAttachRBACOperationOptions) (result GetTenantAttachRBACOperationResponse, err error)
- func (c TenantAttachRBACClient) UpdateTenantAttachRBAC(ctx context.Context, input beta.TenantAttachRBAC, ...) (result UpdateTenantAttachRBACOperationResponse, err error)
- type UpdateTenantAttachRBACOperationOptions
- type UpdateTenantAttachRBACOperationResponse
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 (o DeleteTenantAttachRBACOperationOptions) ToHeaders() *client.Headers
func (DeleteTenantAttachRBACOperationOptions) ToOData ¶
func (o DeleteTenantAttachRBACOperationOptions) ToOData() *odata.Query
func (DeleteTenantAttachRBACOperationOptions) ToQuery ¶
func (o DeleteTenantAttachRBACOperationOptions) ToQuery() *client.QueryParams
type EnableTenantAttachRBACOperationOptions ¶
type EnableTenantAttachRBACOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultEnableTenantAttachRBACOperationOptions ¶
func DefaultEnableTenantAttachRBACOperationOptions() EnableTenantAttachRBACOperationOptions
func (EnableTenantAttachRBACOperationOptions) ToHeaders ¶
func (o EnableTenantAttachRBACOperationOptions) ToHeaders() *client.Headers
func (EnableTenantAttachRBACOperationOptions) ToOData ¶
func (o EnableTenantAttachRBACOperationOptions) ToOData() *odata.Query
func (EnableTenantAttachRBACOperationOptions) ToQuery ¶
func (o EnableTenantAttachRBACOperationOptions) ToQuery() *client.QueryParams
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 (o GetTenantAttachRBACOperationOptions) ToHeaders() *client.Headers
func (GetTenantAttachRBACOperationOptions) ToOData ¶
func (o GetTenantAttachRBACOperationOptions) ToOData() *odata.Query
func (GetTenantAttachRBACOperationOptions) ToQuery ¶
func (o GetTenantAttachRBACOperationOptions) ToQuery() *client.QueryParams
type TenantAttachRBACClient ¶
func NewTenantAttachRBACClientWithBaseURI ¶
func NewTenantAttachRBACClientWithBaseURI(sdkApi sdkEnv.Api) (*TenantAttachRBACClient, error)
func (TenantAttachRBACClient) DeleteTenantAttachRBAC ¶
func (c TenantAttachRBACClient) DeleteTenantAttachRBAC(ctx context.Context, options DeleteTenantAttachRBACOperationOptions) (result DeleteTenantAttachRBACOperationResponse, err error)
DeleteTenantAttachRBAC - Delete navigation property tenantAttachRBAC for deviceManagement
func (TenantAttachRBACClient) EnableTenantAttachRBAC ¶
func (c TenantAttachRBACClient) EnableTenantAttachRBAC(ctx context.Context, input EnableTenantAttachRBACRequest, options EnableTenantAttachRBACOperationOptions) (result EnableTenantAttachRBACOperationResponse, err error)
EnableTenantAttachRBAC - Invoke action enable
func (TenantAttachRBACClient) GetTenantAttachRBAC ¶
func (c TenantAttachRBACClient) GetTenantAttachRBAC(ctx context.Context, options GetTenantAttachRBACOperationOptions) (result GetTenantAttachRBACOperationResponse, err error)
GetTenantAttachRBAC - Get tenantAttachRBAC from deviceManagement. TenantAttach RBAC Enablement
func (TenantAttachRBACClient) UpdateTenantAttachRBAC ¶
func (c TenantAttachRBACClient) UpdateTenantAttachRBAC(ctx context.Context, input beta.TenantAttachRBAC, options UpdateTenantAttachRBACOperationOptions) (result UpdateTenantAttachRBACOperationResponse, err error)
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 (o UpdateTenantAttachRBACOperationOptions) ToHeaders() *client.Headers
func (UpdateTenantAttachRBACOperationOptions) ToOData ¶
func (o UpdateTenantAttachRBACOperationOptions) ToOData() *odata.Query
func (UpdateTenantAttachRBACOperationOptions) ToQuery ¶
func (o UpdateTenantAttachRBACOperationOptions) ToQuery() *client.QueryParams
Click to show internal directories.
Click to hide internal directories.