directoryresourcenamespace

package
v0.20241104.1140654 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/rolemanagement/beta/directoryresourcenamespace Documentation

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

Client Initialization

client := directoryresourcenamespace.NewDirectoryResourceNamespaceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DirectoryResourceNamespaceClient.CreateDirectoryResourceNamespace

ctx := context.TODO()

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


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

Example Usage: DirectoryResourceNamespaceClient.CreateDirectoryResourceNamespaceImportResourceAction

ctx := context.TODO()
id := directoryresourcenamespace.NewRoleManagementDirectoryResourceNamespaceID("unifiedRbacResourceNamespaceId")

payload := directoryresourcenamespace.CreateDirectoryResourceNamespaceImportResourceActionRequest{
	// ...
}


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

Example Usage: DirectoryResourceNamespaceClient.DeleteDirectoryResourceNamespace

ctx := context.TODO()
id := directoryresourcenamespace.NewRoleManagementDirectoryResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: DirectoryResourceNamespaceClient.GetDirectoryResourceNamespace

ctx := context.TODO()
id := directoryresourcenamespace.NewRoleManagementDirectoryResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: DirectoryResourceNamespaceClient.GetDirectoryResourceNamespacesCount

ctx := context.TODO()


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

Example Usage: DirectoryResourceNamespaceClient.ListDirectoryResourceNamespaces

ctx := context.TODO()


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

Example Usage: DirectoryResourceNamespaceClient.UpdateDirectoryResourceNamespace

ctx := context.TODO()
id := directoryresourcenamespace.NewRoleManagementDirectoryResourceNamespaceID("unifiedRbacResourceNamespaceId")

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


read, err := client.UpdateDirectoryResourceNamespace(ctx, id, payload, directoryresourcenamespace.DefaultUpdateDirectoryResourceNamespaceOperationOptions())
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 CreateDirectoryResourceNamespaceImportResourceActionOperationOptions

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

func (CreateDirectoryResourceNamespaceImportResourceActionOperationOptions) ToHeaders

func (CreateDirectoryResourceNamespaceImportResourceActionOperationOptions) ToOData

func (CreateDirectoryResourceNamespaceImportResourceActionOperationOptions) ToQuery

type CreateDirectoryResourceNamespaceImportResourceActionOperationResponse

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

type CreateDirectoryResourceNamespaceImportResourceActionRequest

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

type CreateDirectoryResourceNamespaceOperationOptions

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

func DefaultCreateDirectoryResourceNamespaceOperationOptions

func DefaultCreateDirectoryResourceNamespaceOperationOptions() CreateDirectoryResourceNamespaceOperationOptions

func (CreateDirectoryResourceNamespaceOperationOptions) ToHeaders

func (CreateDirectoryResourceNamespaceOperationOptions) ToOData

func (CreateDirectoryResourceNamespaceOperationOptions) ToQuery

type CreateDirectoryResourceNamespaceOperationResponse

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

type DeleteDirectoryResourceNamespaceOperationOptions

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

func DefaultDeleteDirectoryResourceNamespaceOperationOptions

func DefaultDeleteDirectoryResourceNamespaceOperationOptions() DeleteDirectoryResourceNamespaceOperationOptions

func (DeleteDirectoryResourceNamespaceOperationOptions) ToHeaders

func (DeleteDirectoryResourceNamespaceOperationOptions) ToOData

func (DeleteDirectoryResourceNamespaceOperationOptions) ToQuery

type DeleteDirectoryResourceNamespaceOperationResponse

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

type DirectoryResourceNamespaceClient

type DirectoryResourceNamespaceClient struct {
	Client *msgraph.Client
}

func NewDirectoryResourceNamespaceClientWithBaseURI

func NewDirectoryResourceNamespaceClientWithBaseURI(sdkApi sdkEnv.Api) (*DirectoryResourceNamespaceClient, error)

func (DirectoryResourceNamespaceClient) CreateDirectoryResourceNamespace

CreateDirectoryResourceNamespace - Create new navigation property to resourceNamespaces for roleManagement

func (DirectoryResourceNamespaceClient) CreateDirectoryResourceNamespaceImportResourceAction

CreateDirectoryResourceNamespaceImportResourceAction - Invoke action importResourceActions

func (DirectoryResourceNamespaceClient) DeleteDirectoryResourceNamespace

DeleteDirectoryResourceNamespace - Delete navigation property resourceNamespaces for roleManagement

func (DirectoryResourceNamespaceClient) GetDirectoryResourceNamespace

GetDirectoryResourceNamespace - Get unifiedRbacResourceNamespace. Read the properties and relationships of an unifiedRbacResourceNamespace object.

func (DirectoryResourceNamespaceClient) GetDirectoryResourceNamespacesCount

GetDirectoryResourceNamespacesCount - Get the number of the resource

func (DirectoryResourceNamespaceClient) ListDirectoryResourceNamespaces

ListDirectoryResourceNamespaces - List resourceNamespaces. Get a list of the unifiedRbacResourceNamespace objects and their properties.

func (DirectoryResourceNamespaceClient) ListDirectoryResourceNamespacesComplete

ListDirectoryResourceNamespacesComplete retrieves all the results into a single object

func (DirectoryResourceNamespaceClient) ListDirectoryResourceNamespacesCompleteMatchingPredicate

ListDirectoryResourceNamespacesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DirectoryResourceNamespaceClient) UpdateDirectoryResourceNamespace

UpdateDirectoryResourceNamespace - Update the navigation property resourceNamespaces in roleManagement

type GetDirectoryResourceNamespaceOperationOptions

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

func DefaultGetDirectoryResourceNamespaceOperationOptions

func DefaultGetDirectoryResourceNamespaceOperationOptions() GetDirectoryResourceNamespaceOperationOptions

func (GetDirectoryResourceNamespaceOperationOptions) ToHeaders

func (GetDirectoryResourceNamespaceOperationOptions) ToOData

func (GetDirectoryResourceNamespaceOperationOptions) ToQuery

type GetDirectoryResourceNamespaceOperationResponse

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

type GetDirectoryResourceNamespacesCountOperationOptions

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

func DefaultGetDirectoryResourceNamespacesCountOperationOptions

func DefaultGetDirectoryResourceNamespacesCountOperationOptions() GetDirectoryResourceNamespacesCountOperationOptions

func (GetDirectoryResourceNamespacesCountOperationOptions) ToHeaders

func (GetDirectoryResourceNamespacesCountOperationOptions) ToOData

func (GetDirectoryResourceNamespacesCountOperationOptions) ToQuery

type GetDirectoryResourceNamespacesCountOperationResponse

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

type ListDirectoryResourceNamespacesCompleteResult

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

type ListDirectoryResourceNamespacesCustomPager

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

type ListDirectoryResourceNamespacesOperationOptions

type ListDirectoryResourceNamespacesOperationOptions 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 DefaultListDirectoryResourceNamespacesOperationOptions

func DefaultListDirectoryResourceNamespacesOperationOptions() ListDirectoryResourceNamespacesOperationOptions

func (ListDirectoryResourceNamespacesOperationOptions) ToHeaders

func (ListDirectoryResourceNamespacesOperationOptions) ToOData

func (ListDirectoryResourceNamespacesOperationOptions) ToQuery

type ListDirectoryResourceNamespacesOperationResponse

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

type UnifiedRbacResourceNamespaceOperationPredicate

type UnifiedRbacResourceNamespaceOperationPredicate struct {
}

func (UnifiedRbacResourceNamespaceOperationPredicate) Matches

type UpdateDirectoryResourceNamespaceOperationOptions

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

func DefaultUpdateDirectoryResourceNamespaceOperationOptions

func DefaultUpdateDirectoryResourceNamespaceOperationOptions() UpdateDirectoryResourceNamespaceOperationOptions

func (UpdateDirectoryResourceNamespaceOperationOptions) ToHeaders

func (UpdateDirectoryResourceNamespaceOperationOptions) ToOData

func (UpdateDirectoryResourceNamespaceOperationOptions) ToQuery

type UpdateDirectoryResourceNamespaceOperationResponse

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