enterpriseappresourcenamespace

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

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

Client Initialization

client := enterpriseappresourcenamespace.NewEnterpriseAppResourceNamespaceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: EnterpriseAppResourceNamespaceClient.CreateEnterpriseAppResourceNamespace

ctx := context.TODO()
id := enterpriseappresourcenamespace.NewRoleManagementEnterpriseAppID("rbacApplicationId")

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


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

Example Usage: EnterpriseAppResourceNamespaceClient.CreateEnterpriseAppResourceNamespaceImportResourceAction

ctx := context.TODO()
id := enterpriseappresourcenamespace.NewRoleManagementEnterpriseAppIdResourceNamespaceID("rbacApplicationId", "unifiedRbacResourceNamespaceId")

payload := enterpriseappresourcenamespace.CreateEnterpriseAppResourceNamespaceImportResourceActionRequest{
	// ...
}


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

Example Usage: EnterpriseAppResourceNamespaceClient.DeleteEnterpriseAppResourceNamespace

ctx := context.TODO()
id := enterpriseappresourcenamespace.NewRoleManagementEnterpriseAppIdResourceNamespaceID("rbacApplicationId", "unifiedRbacResourceNamespaceId")

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

Example Usage: EnterpriseAppResourceNamespaceClient.GetEnterpriseAppResourceNamespace

ctx := context.TODO()
id := enterpriseappresourcenamespace.NewRoleManagementEnterpriseAppIdResourceNamespaceID("rbacApplicationId", "unifiedRbacResourceNamespaceId")

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

Example Usage: EnterpriseAppResourceNamespaceClient.GetEnterpriseAppResourceNamespacesCount

ctx := context.TODO()
id := enterpriseappresourcenamespace.NewRoleManagementEnterpriseAppID("rbacApplicationId")

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

Example Usage: EnterpriseAppResourceNamespaceClient.ListEnterpriseAppResourceNamespaces

ctx := context.TODO()
id := enterpriseappresourcenamespace.NewRoleManagementEnterpriseAppID("rbacApplicationId")

// alternatively `client.ListEnterpriseAppResourceNamespaces(ctx, id, enterpriseappresourcenamespace.DefaultListEnterpriseAppResourceNamespacesOperationOptions())` can be used to do batched pagination
items, err := client.ListEnterpriseAppResourceNamespacesComplete(ctx, id, enterpriseappresourcenamespace.DefaultListEnterpriseAppResourceNamespacesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EnterpriseAppResourceNamespaceClient.UpdateEnterpriseAppResourceNamespace

ctx := context.TODO()
id := enterpriseappresourcenamespace.NewRoleManagementEnterpriseAppIdResourceNamespaceID("rbacApplicationId", "unifiedRbacResourceNamespaceId")

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


read, err := client.UpdateEnterpriseAppResourceNamespace(ctx, id, payload, enterpriseappresourcenamespace.DefaultUpdateEnterpriseAppResourceNamespaceOperationOptions())
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 CreateEnterpriseAppResourceNamespaceImportResourceActionOperationOptions

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

func (CreateEnterpriseAppResourceNamespaceImportResourceActionOperationOptions) ToHeaders

func (CreateEnterpriseAppResourceNamespaceImportResourceActionOperationOptions) ToOData

func (CreateEnterpriseAppResourceNamespaceImportResourceActionOperationOptions) ToQuery

type CreateEnterpriseAppResourceNamespaceImportResourceActionOperationResponse

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

type CreateEnterpriseAppResourceNamespaceImportResourceActionRequest

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

type CreateEnterpriseAppResourceNamespaceOperationOptions

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

func DefaultCreateEnterpriseAppResourceNamespaceOperationOptions

func DefaultCreateEnterpriseAppResourceNamespaceOperationOptions() CreateEnterpriseAppResourceNamespaceOperationOptions

func (CreateEnterpriseAppResourceNamespaceOperationOptions) ToHeaders

func (CreateEnterpriseAppResourceNamespaceOperationOptions) ToOData

func (CreateEnterpriseAppResourceNamespaceOperationOptions) ToQuery

type CreateEnterpriseAppResourceNamespaceOperationResponse

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

type DeleteEnterpriseAppResourceNamespaceOperationOptions

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

func DefaultDeleteEnterpriseAppResourceNamespaceOperationOptions

func DefaultDeleteEnterpriseAppResourceNamespaceOperationOptions() DeleteEnterpriseAppResourceNamespaceOperationOptions

func (DeleteEnterpriseAppResourceNamespaceOperationOptions) ToHeaders

func (DeleteEnterpriseAppResourceNamespaceOperationOptions) ToOData

func (DeleteEnterpriseAppResourceNamespaceOperationOptions) ToQuery

type DeleteEnterpriseAppResourceNamespaceOperationResponse

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

type EnterpriseAppResourceNamespaceClient

type EnterpriseAppResourceNamespaceClient struct {
	Client *msgraph.Client
}

func NewEnterpriseAppResourceNamespaceClientWithBaseURI

func NewEnterpriseAppResourceNamespaceClientWithBaseURI(sdkApi sdkEnv.Api) (*EnterpriseAppResourceNamespaceClient, error)

func (EnterpriseAppResourceNamespaceClient) CreateEnterpriseAppResourceNamespace

CreateEnterpriseAppResourceNamespace - Create new navigation property to resourceNamespaces for roleManagement

func (EnterpriseAppResourceNamespaceClient) CreateEnterpriseAppResourceNamespaceImportResourceAction

CreateEnterpriseAppResourceNamespaceImportResourceAction - Invoke action importResourceActions

func (EnterpriseAppResourceNamespaceClient) DeleteEnterpriseAppResourceNamespace

DeleteEnterpriseAppResourceNamespace - Delete navigation property resourceNamespaces for roleManagement

func (EnterpriseAppResourceNamespaceClient) GetEnterpriseAppResourceNamespace

GetEnterpriseAppResourceNamespace - Get resourceNamespaces from roleManagement

func (EnterpriseAppResourceNamespaceClient) GetEnterpriseAppResourceNamespacesCount

GetEnterpriseAppResourceNamespacesCount - Get the number of the resource

func (EnterpriseAppResourceNamespaceClient) ListEnterpriseAppResourceNamespaces

ListEnterpriseAppResourceNamespaces - Get resourceNamespaces from roleManagement

func (EnterpriseAppResourceNamespaceClient) ListEnterpriseAppResourceNamespacesComplete

ListEnterpriseAppResourceNamespacesComplete retrieves all the results into a single object

func (EnterpriseAppResourceNamespaceClient) ListEnterpriseAppResourceNamespacesCompleteMatchingPredicate

ListEnterpriseAppResourceNamespacesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EnterpriseAppResourceNamespaceClient) UpdateEnterpriseAppResourceNamespace

UpdateEnterpriseAppResourceNamespace - Update the navigation property resourceNamespaces in roleManagement

type GetEnterpriseAppResourceNamespaceOperationOptions

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

func DefaultGetEnterpriseAppResourceNamespaceOperationOptions

func DefaultGetEnterpriseAppResourceNamespaceOperationOptions() GetEnterpriseAppResourceNamespaceOperationOptions

func (GetEnterpriseAppResourceNamespaceOperationOptions) ToHeaders

func (GetEnterpriseAppResourceNamespaceOperationOptions) ToOData

func (GetEnterpriseAppResourceNamespaceOperationOptions) ToQuery

type GetEnterpriseAppResourceNamespaceOperationResponse

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

type GetEnterpriseAppResourceNamespacesCountOperationOptions

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

func (GetEnterpriseAppResourceNamespacesCountOperationOptions) ToHeaders

func (GetEnterpriseAppResourceNamespacesCountOperationOptions) ToOData

func (GetEnterpriseAppResourceNamespacesCountOperationOptions) ToQuery

type GetEnterpriseAppResourceNamespacesCountOperationResponse

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

type ListEnterpriseAppResourceNamespacesCompleteResult

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

type ListEnterpriseAppResourceNamespacesCustomPager

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

type ListEnterpriseAppResourceNamespacesOperationOptions

type ListEnterpriseAppResourceNamespacesOperationOptions 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 DefaultListEnterpriseAppResourceNamespacesOperationOptions

func DefaultListEnterpriseAppResourceNamespacesOperationOptions() ListEnterpriseAppResourceNamespacesOperationOptions

func (ListEnterpriseAppResourceNamespacesOperationOptions) ToHeaders

func (ListEnterpriseAppResourceNamespacesOperationOptions) ToOData

func (ListEnterpriseAppResourceNamespacesOperationOptions) ToQuery

type ListEnterpriseAppResourceNamespacesOperationResponse

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

type UnifiedRbacResourceNamespaceOperationPredicate

type UnifiedRbacResourceNamespaceOperationPredicate struct {
}

func (UnifiedRbacResourceNamespaceOperationPredicate) Matches

type UpdateEnterpriseAppResourceNamespaceOperationOptions

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

func DefaultUpdateEnterpriseAppResourceNamespaceOperationOptions

func DefaultUpdateEnterpriseAppResourceNamespaceOperationOptions() UpdateEnterpriseAppResourceNamespaceOperationOptions

func (UpdateEnterpriseAppResourceNamespaceOperationOptions) ToHeaders

func (UpdateEnterpriseAppResourceNamespaceOperationOptions) ToOData

func (UpdateEnterpriseAppResourceNamespaceOperationOptions) ToQuery

type UpdateEnterpriseAppResourceNamespaceOperationResponse

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