entitlementmanagementresourcenamespace

package
v0.20241126.1723 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/entitlementmanagementresourcenamespace Documentation

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

Client Initialization

client := entitlementmanagementresourcenamespace.NewEntitlementManagementResourceNamespaceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: EntitlementManagementResourceNamespaceClient.CreateEntitlementManagementResourceNamespace

ctx := context.TODO()

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


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

Example Usage: EntitlementManagementResourceNamespaceClient.CreateEntitlementManagementResourceNamespaceImportResourceAction

ctx := context.TODO()
id := entitlementmanagementresourcenamespace.NewRoleManagementEntitlementManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

payload := entitlementmanagementresourcenamespace.CreateEntitlementManagementResourceNamespaceImportResourceActionRequest{
	// ...
}


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

Example Usage: EntitlementManagementResourceNamespaceClient.DeleteEntitlementManagementResourceNamespace

ctx := context.TODO()
id := entitlementmanagementresourcenamespace.NewRoleManagementEntitlementManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: EntitlementManagementResourceNamespaceClient.GetEntitlementManagementResourceNamespace

ctx := context.TODO()
id := entitlementmanagementresourcenamespace.NewRoleManagementEntitlementManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: EntitlementManagementResourceNamespaceClient.GetEntitlementManagementResourceNamespacesCount

ctx := context.TODO()


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

Example Usage: EntitlementManagementResourceNamespaceClient.ListEntitlementManagementResourceNamespaces

ctx := context.TODO()


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

Example Usage: EntitlementManagementResourceNamespaceClient.UpdateEntitlementManagementResourceNamespace

ctx := context.TODO()
id := entitlementmanagementresourcenamespace.NewRoleManagementEntitlementManagementResourceNamespaceID("unifiedRbacResourceNamespaceId")

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


read, err := client.UpdateEntitlementManagementResourceNamespace(ctx, id, payload, entitlementmanagementresourcenamespace.DefaultUpdateEntitlementManagementResourceNamespaceOperationOptions())
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 CreateEntitlementManagementResourceNamespaceImportResourceActionOperationOptions

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

func (CreateEntitlementManagementResourceNamespaceImportResourceActionOperationOptions) ToHeaders

func (CreateEntitlementManagementResourceNamespaceImportResourceActionOperationOptions) ToOData

func (CreateEntitlementManagementResourceNamespaceImportResourceActionOperationOptions) ToQuery

type CreateEntitlementManagementResourceNamespaceImportResourceActionOperationResponse

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

type CreateEntitlementManagementResourceNamespaceImportResourceActionRequest

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

type CreateEntitlementManagementResourceNamespaceOperationOptions

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

func (CreateEntitlementManagementResourceNamespaceOperationOptions) ToHeaders

func (CreateEntitlementManagementResourceNamespaceOperationOptions) ToOData

func (CreateEntitlementManagementResourceNamespaceOperationOptions) ToQuery

type CreateEntitlementManagementResourceNamespaceOperationResponse

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

type DeleteEntitlementManagementResourceNamespaceOperationOptions

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

func (DeleteEntitlementManagementResourceNamespaceOperationOptions) ToHeaders

func (DeleteEntitlementManagementResourceNamespaceOperationOptions) ToOData

func (DeleteEntitlementManagementResourceNamespaceOperationOptions) ToQuery

type DeleteEntitlementManagementResourceNamespaceOperationResponse

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

type EntitlementManagementResourceNamespaceClient

type EntitlementManagementResourceNamespaceClient struct {
	Client *msgraph.Client
}

func NewEntitlementManagementResourceNamespaceClientWithBaseURI

func NewEntitlementManagementResourceNamespaceClientWithBaseURI(sdkApi sdkEnv.Api) (*EntitlementManagementResourceNamespaceClient, error)

func (EntitlementManagementResourceNamespaceClient) CreateEntitlementManagementResourceNamespace

CreateEntitlementManagementResourceNamespace - Create new navigation property to resourceNamespaces for roleManagement

func (EntitlementManagementResourceNamespaceClient) CreateEntitlementManagementResourceNamespaceImportResourceAction

CreateEntitlementManagementResourceNamespaceImportResourceAction - Invoke action importResourceActions

func (EntitlementManagementResourceNamespaceClient) DeleteEntitlementManagementResourceNamespace

DeleteEntitlementManagementResourceNamespace - Delete navigation property resourceNamespaces for roleManagement

func (EntitlementManagementResourceNamespaceClient) GetEntitlementManagementResourceNamespace

GetEntitlementManagementResourceNamespace - Get resourceNamespaces from roleManagement

func (EntitlementManagementResourceNamespaceClient) GetEntitlementManagementResourceNamespacesCount

GetEntitlementManagementResourceNamespacesCount - Get the number of the resource

func (EntitlementManagementResourceNamespaceClient) ListEntitlementManagementResourceNamespaces

ListEntitlementManagementResourceNamespaces - Get resourceNamespaces from roleManagement

func (EntitlementManagementResourceNamespaceClient) ListEntitlementManagementResourceNamespacesComplete

ListEntitlementManagementResourceNamespacesComplete retrieves all the results into a single object

func (EntitlementManagementResourceNamespaceClient) ListEntitlementManagementResourceNamespacesCompleteMatchingPredicate

ListEntitlementManagementResourceNamespacesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EntitlementManagementResourceNamespaceClient) UpdateEntitlementManagementResourceNamespace

UpdateEntitlementManagementResourceNamespace - Update the navigation property resourceNamespaces in roleManagement

type GetEntitlementManagementResourceNamespaceOperationOptions

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

func (GetEntitlementManagementResourceNamespaceOperationOptions) ToHeaders

func (GetEntitlementManagementResourceNamespaceOperationOptions) ToOData

func (GetEntitlementManagementResourceNamespaceOperationOptions) ToQuery

type GetEntitlementManagementResourceNamespaceOperationResponse

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

type GetEntitlementManagementResourceNamespacesCountOperationOptions

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

func (GetEntitlementManagementResourceNamespacesCountOperationOptions) ToHeaders

func (GetEntitlementManagementResourceNamespacesCountOperationOptions) ToOData

func (GetEntitlementManagementResourceNamespacesCountOperationOptions) ToQuery

type GetEntitlementManagementResourceNamespacesCountOperationResponse

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

type ListEntitlementManagementResourceNamespacesCompleteResult

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

type ListEntitlementManagementResourceNamespacesCustomPager

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

type ListEntitlementManagementResourceNamespacesOperationOptions

type ListEntitlementManagementResourceNamespacesOperationOptions 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 (ListEntitlementManagementResourceNamespacesOperationOptions) ToHeaders

func (ListEntitlementManagementResourceNamespacesOperationOptions) ToOData

func (ListEntitlementManagementResourceNamespacesOperationOptions) ToQuery

type ListEntitlementManagementResourceNamespacesOperationResponse

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

type UnifiedRbacResourceNamespaceOperationPredicate

type UnifiedRbacResourceNamespaceOperationPredicate struct {
}

func (UnifiedRbacResourceNamespaceOperationPredicate) Matches

type UpdateEntitlementManagementResourceNamespaceOperationOptions

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

func (UpdateEntitlementManagementResourceNamespaceOperationOptions) ToHeaders

func (UpdateEntitlementManagementResourceNamespaceOperationOptions) ToOData

func (UpdateEntitlementManagementResourceNamespaceOperationOptions) ToQuery

type UpdateEntitlementManagementResourceNamespaceOperationResponse

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