exchangeresourcenamespace

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

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

Client Initialization

client := exchangeresourcenamespace.NewExchangeResourceNamespaceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ExchangeResourceNamespaceClient.CreateExchangeResourceNamespace

ctx := context.TODO()

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


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

Example Usage: ExchangeResourceNamespaceClient.CreateExchangeResourceNamespaceImportResourceAction

ctx := context.TODO()
id := exchangeresourcenamespace.NewRoleManagementExchangeResourceNamespaceID("unifiedRbacResourceNamespaceId")

payload := exchangeresourcenamespace.CreateExchangeResourceNamespaceImportResourceActionRequest{
	// ...
}


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

Example Usage: ExchangeResourceNamespaceClient.DeleteExchangeResourceNamespace

ctx := context.TODO()
id := exchangeresourcenamespace.NewRoleManagementExchangeResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: ExchangeResourceNamespaceClient.GetExchangeResourceNamespace

ctx := context.TODO()
id := exchangeresourcenamespace.NewRoleManagementExchangeResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: ExchangeResourceNamespaceClient.GetExchangeResourceNamespacesCount

ctx := context.TODO()


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

Example Usage: ExchangeResourceNamespaceClient.ListExchangeResourceNamespaces

ctx := context.TODO()


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

Example Usage: ExchangeResourceNamespaceClient.UpdateExchangeResourceNamespace

ctx := context.TODO()
id := exchangeresourcenamespace.NewRoleManagementExchangeResourceNamespaceID("unifiedRbacResourceNamespaceId")

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


read, err := client.UpdateExchangeResourceNamespace(ctx, id, payload, exchangeresourcenamespace.DefaultUpdateExchangeResourceNamespaceOperationOptions())
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 CreateExchangeResourceNamespaceImportResourceActionOperationOptions

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

func (CreateExchangeResourceNamespaceImportResourceActionOperationOptions) ToHeaders

func (CreateExchangeResourceNamespaceImportResourceActionOperationOptions) ToOData

func (CreateExchangeResourceNamespaceImportResourceActionOperationOptions) ToQuery

type CreateExchangeResourceNamespaceImportResourceActionOperationResponse

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

type CreateExchangeResourceNamespaceImportResourceActionRequest

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

type CreateExchangeResourceNamespaceOperationOptions

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

func DefaultCreateExchangeResourceNamespaceOperationOptions

func DefaultCreateExchangeResourceNamespaceOperationOptions() CreateExchangeResourceNamespaceOperationOptions

func (CreateExchangeResourceNamespaceOperationOptions) ToHeaders

func (CreateExchangeResourceNamespaceOperationOptions) ToOData

func (CreateExchangeResourceNamespaceOperationOptions) ToQuery

type CreateExchangeResourceNamespaceOperationResponse

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

type DeleteExchangeResourceNamespaceOperationOptions

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

func DefaultDeleteExchangeResourceNamespaceOperationOptions

func DefaultDeleteExchangeResourceNamespaceOperationOptions() DeleteExchangeResourceNamespaceOperationOptions

func (DeleteExchangeResourceNamespaceOperationOptions) ToHeaders

func (DeleteExchangeResourceNamespaceOperationOptions) ToOData

func (DeleteExchangeResourceNamespaceOperationOptions) ToQuery

type DeleteExchangeResourceNamespaceOperationResponse

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

type ExchangeResourceNamespaceClient

type ExchangeResourceNamespaceClient struct {
	Client *msgraph.Client
}

func NewExchangeResourceNamespaceClientWithBaseURI

func NewExchangeResourceNamespaceClientWithBaseURI(sdkApi sdkEnv.Api) (*ExchangeResourceNamespaceClient, error)

func (ExchangeResourceNamespaceClient) CreateExchangeResourceNamespace

CreateExchangeResourceNamespace - Create new navigation property to resourceNamespaces for roleManagement

func (ExchangeResourceNamespaceClient) CreateExchangeResourceNamespaceImportResourceAction

CreateExchangeResourceNamespaceImportResourceAction - Invoke action importResourceActions

func (ExchangeResourceNamespaceClient) DeleteExchangeResourceNamespace

DeleteExchangeResourceNamespace - Delete navigation property resourceNamespaces for roleManagement

func (ExchangeResourceNamespaceClient) GetExchangeResourceNamespace

GetExchangeResourceNamespace - Get resourceNamespaces from roleManagement. Resource that represents a collection of related actions.

func (ExchangeResourceNamespaceClient) GetExchangeResourceNamespacesCount

GetExchangeResourceNamespacesCount - Get the number of the resource

func (ExchangeResourceNamespaceClient) ListExchangeResourceNamespaces

ListExchangeResourceNamespaces - Get resourceNamespaces from roleManagement. Resource that represents a collection of related actions.

func (ExchangeResourceNamespaceClient) ListExchangeResourceNamespacesComplete

ListExchangeResourceNamespacesComplete retrieves all the results into a single object

func (ExchangeResourceNamespaceClient) ListExchangeResourceNamespacesCompleteMatchingPredicate

ListExchangeResourceNamespacesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExchangeResourceNamespaceClient) UpdateExchangeResourceNamespace

UpdateExchangeResourceNamespace - Update the navigation property resourceNamespaces in roleManagement

type GetExchangeResourceNamespaceOperationOptions

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

func DefaultGetExchangeResourceNamespaceOperationOptions

func DefaultGetExchangeResourceNamespaceOperationOptions() GetExchangeResourceNamespaceOperationOptions

func (GetExchangeResourceNamespaceOperationOptions) ToHeaders

func (GetExchangeResourceNamespaceOperationOptions) ToOData

func (GetExchangeResourceNamespaceOperationOptions) ToQuery

type GetExchangeResourceNamespaceOperationResponse

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

type GetExchangeResourceNamespacesCountOperationOptions

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

func DefaultGetExchangeResourceNamespacesCountOperationOptions

func DefaultGetExchangeResourceNamespacesCountOperationOptions() GetExchangeResourceNamespacesCountOperationOptions

func (GetExchangeResourceNamespacesCountOperationOptions) ToHeaders

func (GetExchangeResourceNamespacesCountOperationOptions) ToOData

func (GetExchangeResourceNamespacesCountOperationOptions) ToQuery

type GetExchangeResourceNamespacesCountOperationResponse

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

type ListExchangeResourceNamespacesCompleteResult

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

type ListExchangeResourceNamespacesCustomPager

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

type ListExchangeResourceNamespacesOperationOptions

type ListExchangeResourceNamespacesOperationOptions 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 DefaultListExchangeResourceNamespacesOperationOptions

func DefaultListExchangeResourceNamespacesOperationOptions() ListExchangeResourceNamespacesOperationOptions

func (ListExchangeResourceNamespacesOperationOptions) ToHeaders

func (ListExchangeResourceNamespacesOperationOptions) ToOData

func (ListExchangeResourceNamespacesOperationOptions) ToQuery

type ListExchangeResourceNamespacesOperationResponse

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

type UnifiedRbacResourceNamespaceOperationPredicate

type UnifiedRbacResourceNamespaceOperationPredicate struct {
}

func (UnifiedRbacResourceNamespaceOperationPredicate) Matches

type UpdateExchangeResourceNamespaceOperationOptions

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

func DefaultUpdateExchangeResourceNamespaceOperationOptions

func DefaultUpdateExchangeResourceNamespaceOperationOptions() UpdateExchangeResourceNamespaceOperationOptions

func (UpdateExchangeResourceNamespaceOperationOptions) ToHeaders

func (UpdateExchangeResourceNamespaceOperationOptions) ToOData

func (UpdateExchangeResourceNamespaceOperationOptions) ToQuery

type UpdateExchangeResourceNamespaceOperationResponse

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