package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/mongorbacs
Documentation
The mongorbacs
SDK allows for interaction with the Azure Resource Manager Service cosmosdb
(API Version 2023-04-15
).
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/resource-manager/cosmosdb/2023-04-15/mongorbacs"
Client Initialization
client := mongorbacs.NewMongorbacsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: MongorbacsClient.MongoDBResourcesCreateUpdateMongoRoleDefinition
ctx := context.TODO()
id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoRoleDefinitionIdValue")
payload := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{
// ...
}
if err := client.MongoDBResourcesCreateUpdateMongoRoleDefinitionThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: MongorbacsClient.MongoDBResourcesCreateUpdateMongoUserDefinition
ctx := context.TODO()
id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoUserDefinitionIdValue")
payload := mongorbacs.MongoUserDefinitionCreateUpdateParameters{
// ...
}
if err := client.MongoDBResourcesCreateUpdateMongoUserDefinitionThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: MongorbacsClient.MongoDBResourcesDeleteMongoRoleDefinition
ctx := context.TODO()
id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoRoleDefinitionIdValue")
if err := client.MongoDBResourcesDeleteMongoRoleDefinitionThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: MongorbacsClient.MongoDBResourcesDeleteMongoUserDefinition
ctx := context.TODO()
id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoUserDefinitionIdValue")
if err := client.MongoDBResourcesDeleteMongoUserDefinitionThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: MongorbacsClient.MongoDBResourcesGetMongoRoleDefinition
ctx := context.TODO()
id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoRoleDefinitionIdValue")
read, err := client.MongoDBResourcesGetMongoRoleDefinition(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: MongorbacsClient.MongoDBResourcesGetMongoUserDefinition
ctx := context.TODO()
id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoUserDefinitionIdValue")
read, err := client.MongoDBResourcesGetMongoUserDefinition(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: MongorbacsClient.MongoDBResourcesListMongoRoleDefinitions
ctx := context.TODO()
id := mongorbacs.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue")
read, err := client.MongoDBResourcesListMongoRoleDefinitions(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: MongorbacsClient.MongoDBResourcesListMongoUserDefinitions
ctx := context.TODO()
id := mongorbacs.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue")
read, err := client.MongoDBResourcesListMongoUserDefinitions(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
# Functions
NewDatabaseAccountID returns a new DatabaseAccountId struct.
NewMongodbRoleDefinitionID returns a new MongodbRoleDefinitionId struct.
NewMongodbUserDefinitionID returns a new MongodbUserDefinitionId struct.
No description provided by the author
ParseDatabaseAccountID parses 'input' into a DatabaseAccountId.
ParseDatabaseAccountIDInsensitively parses 'input' case-insensitively into a DatabaseAccountId note: this method should only be used for API response data and not user input.
ParseMongodbRoleDefinitionID parses 'input' into a MongodbRoleDefinitionId.
ParseMongodbRoleDefinitionIDInsensitively parses 'input' case-insensitively into a MongodbRoleDefinitionId note: this method should only be used for API response data and not user input.
ParseMongodbUserDefinitionID parses 'input' into a MongodbUserDefinitionId.
ParseMongodbUserDefinitionIDInsensitively parses 'input' case-insensitively into a MongodbUserDefinitionId note: this method should only be used for API response data and not user input.
No description provided by the author
ValidateDatabaseAccountID checks that 'input' can be parsed as a Database Account ID.
ValidateMongodbRoleDefinitionID checks that 'input' can be parsed as a Mongodb Role Definition ID.
ValidateMongodbUserDefinitionID checks that 'input' can be parsed as a Mongodb User Definition ID.
# Constants
No description provided by the author
No description provided by the author
# Structs
DatabaseAccountId is a struct representing the Resource ID for a Database Account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MongodbRoleDefinitionId is a struct representing the Resource ID for a Mongodb Role Definition.
MongodbUserDefinitionId is a struct representing the Resource ID for a Mongodb User Definition.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author