cloudpcresourcenamespace

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := cloudpcresourcenamespace.NewCloudPCResourceNamespaceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: CloudPCResourceNamespaceClient.CreateCloudPCResourceNamespace

ctx := context.TODO()

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


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

Example Usage: CloudPCResourceNamespaceClient.CreateCloudPCResourceNamespaceImportResourceAction

ctx := context.TODO()
id := cloudpcresourcenamespace.NewRoleManagementCloudPCResourceNamespaceID("unifiedRbacResourceNamespaceId")

payload := cloudpcresourcenamespace.CreateCloudPCResourceNamespaceImportResourceActionRequest{
	// ...
}


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

Example Usage: CloudPCResourceNamespaceClient.DeleteCloudPCResourceNamespace

ctx := context.TODO()
id := cloudpcresourcenamespace.NewRoleManagementCloudPCResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: CloudPCResourceNamespaceClient.GetCloudPCResourceNamespace

ctx := context.TODO()
id := cloudpcresourcenamespace.NewRoleManagementCloudPCResourceNamespaceID("unifiedRbacResourceNamespaceId")

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

Example Usage: CloudPCResourceNamespaceClient.GetCloudPCResourceNamespacesCount

ctx := context.TODO()


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

Example Usage: CloudPCResourceNamespaceClient.ListCloudPCResourceNamespaces

ctx := context.TODO()


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

Example Usage: CloudPCResourceNamespaceClient.UpdateCloudPCResourceNamespace

ctx := context.TODO()
id := cloudpcresourcenamespace.NewRoleManagementCloudPCResourceNamespaceID("unifiedRbacResourceNamespaceId")

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


read, err := client.UpdateCloudPCResourceNamespace(ctx, id, payload, cloudpcresourcenamespace.DefaultUpdateCloudPCResourceNamespaceOperationOptions())
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 CloudPCResourceNamespaceClient

type CloudPCResourceNamespaceClient struct {
	Client *msgraph.Client
}

func NewCloudPCResourceNamespaceClientWithBaseURI

func NewCloudPCResourceNamespaceClientWithBaseURI(sdkApi sdkEnv.Api) (*CloudPCResourceNamespaceClient, error)

func (CloudPCResourceNamespaceClient) CreateCloudPCResourceNamespace

CreateCloudPCResourceNamespace - Create new navigation property to resourceNamespaces for roleManagement

func (CloudPCResourceNamespaceClient) CreateCloudPCResourceNamespaceImportResourceAction

CreateCloudPCResourceNamespaceImportResourceAction - Invoke action importResourceActions

func (CloudPCResourceNamespaceClient) DeleteCloudPCResourceNamespace

DeleteCloudPCResourceNamespace - Delete navigation property resourceNamespaces for roleManagement

func (CloudPCResourceNamespaceClient) GetCloudPCResourceNamespace

GetCloudPCResourceNamespace - Get resourceNamespaces from roleManagement

func (CloudPCResourceNamespaceClient) GetCloudPCResourceNamespacesCount

GetCloudPCResourceNamespacesCount - Get the number of the resource

func (CloudPCResourceNamespaceClient) ListCloudPCResourceNamespaces

ListCloudPCResourceNamespaces - Get resourceNamespaces from roleManagement

func (CloudPCResourceNamespaceClient) ListCloudPCResourceNamespacesComplete

ListCloudPCResourceNamespacesComplete retrieves all the results into a single object

func (CloudPCResourceNamespaceClient) ListCloudPCResourceNamespacesCompleteMatchingPredicate

ListCloudPCResourceNamespacesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CloudPCResourceNamespaceClient) UpdateCloudPCResourceNamespace

UpdateCloudPCResourceNamespace - Update the navigation property resourceNamespaces in roleManagement

type CreateCloudPCResourceNamespaceImportResourceActionOperationOptions

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

func (CreateCloudPCResourceNamespaceImportResourceActionOperationOptions) ToHeaders

func (CreateCloudPCResourceNamespaceImportResourceActionOperationOptions) ToOData

func (CreateCloudPCResourceNamespaceImportResourceActionOperationOptions) ToQuery

type CreateCloudPCResourceNamespaceImportResourceActionOperationResponse

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

type CreateCloudPCResourceNamespaceImportResourceActionRequest

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

type CreateCloudPCResourceNamespaceOperationOptions

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

func DefaultCreateCloudPCResourceNamespaceOperationOptions

func DefaultCreateCloudPCResourceNamespaceOperationOptions() CreateCloudPCResourceNamespaceOperationOptions

func (CreateCloudPCResourceNamespaceOperationOptions) ToHeaders

func (CreateCloudPCResourceNamespaceOperationOptions) ToOData

func (CreateCloudPCResourceNamespaceOperationOptions) ToQuery

type CreateCloudPCResourceNamespaceOperationResponse

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

type DeleteCloudPCResourceNamespaceOperationOptions

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

func DefaultDeleteCloudPCResourceNamespaceOperationOptions

func DefaultDeleteCloudPCResourceNamespaceOperationOptions() DeleteCloudPCResourceNamespaceOperationOptions

func (DeleteCloudPCResourceNamespaceOperationOptions) ToHeaders

func (DeleteCloudPCResourceNamespaceOperationOptions) ToOData

func (DeleteCloudPCResourceNamespaceOperationOptions) ToQuery

type DeleteCloudPCResourceNamespaceOperationResponse

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

type GetCloudPCResourceNamespaceOperationOptions

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

func DefaultGetCloudPCResourceNamespaceOperationOptions

func DefaultGetCloudPCResourceNamespaceOperationOptions() GetCloudPCResourceNamespaceOperationOptions

func (GetCloudPCResourceNamespaceOperationOptions) ToHeaders

func (GetCloudPCResourceNamespaceOperationOptions) ToOData

func (GetCloudPCResourceNamespaceOperationOptions) ToQuery

type GetCloudPCResourceNamespaceOperationResponse

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

type GetCloudPCResourceNamespacesCountOperationOptions

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

func DefaultGetCloudPCResourceNamespacesCountOperationOptions

func DefaultGetCloudPCResourceNamespacesCountOperationOptions() GetCloudPCResourceNamespacesCountOperationOptions

func (GetCloudPCResourceNamespacesCountOperationOptions) ToHeaders

func (GetCloudPCResourceNamespacesCountOperationOptions) ToOData

func (GetCloudPCResourceNamespacesCountOperationOptions) ToQuery

type GetCloudPCResourceNamespacesCountOperationResponse

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

type ListCloudPCResourceNamespacesCompleteResult

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

type ListCloudPCResourceNamespacesCustomPager

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

type ListCloudPCResourceNamespacesOperationOptions

type ListCloudPCResourceNamespacesOperationOptions 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 DefaultListCloudPCResourceNamespacesOperationOptions

func DefaultListCloudPCResourceNamespacesOperationOptions() ListCloudPCResourceNamespacesOperationOptions

func (ListCloudPCResourceNamespacesOperationOptions) ToHeaders

func (ListCloudPCResourceNamespacesOperationOptions) ToOData

func (ListCloudPCResourceNamespacesOperationOptions) ToQuery

type ListCloudPCResourceNamespacesOperationResponse

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

type UnifiedRbacResourceNamespaceOperationPredicate

type UnifiedRbacResourceNamespaceOperationPredicate struct {
}

func (UnifiedRbacResourceNamespaceOperationPredicate) Matches

type UpdateCloudPCResourceNamespaceOperationOptions

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

func DefaultUpdateCloudPCResourceNamespaceOperationOptions

func DefaultUpdateCloudPCResourceNamespaceOperationOptions() UpdateCloudPCResourceNamespaceOperationOptions

func (UpdateCloudPCResourceNamespaceOperationOptions) ToHeaders

func (UpdateCloudPCResourceNamespaceOperationOptions) ToOData

func (UpdateCloudPCResourceNamespaceOperationOptions) ToQuery

type UpdateCloudPCResourceNamespaceOperationResponse

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