Documentation ¶
Index ¶
- type APIKey
- type APIKeyCollection
- type BlockchainMemberProvisioningState
- type BlockchainProtocol
- type Consortium
- type ConsortiumCollection
- type ConsortiumMember
- type ConsortiumMemberCollection
- type FirewallRule
- type LocationsClient
- type LocationsClientCheckNameAvailabilityOptions
- type LocationsClientCheckNameAvailabilityResponse
- type LocationsClientCheckNameAvailabilityResult
- type LocationsClientListConsortiumsOptions
- type LocationsClientListConsortiumsResponse
- type LocationsClientListConsortiumsResult
- type Member
- type MemberCollection
- type MemberNodesSKU
- type MemberOperationResultsClient
- type MemberOperationResultsClientGetOptions
- type MemberOperationResultsClientGetResponse
- type MemberOperationResultsClientGetResult
- type MemberProperties
- type MemberPropertiesUpdate
- type MemberUpdate
- type MembersClient
- func (client *MembersClient) BeginCreate(ctx context.Context, blockchainMemberName string, resourceGroupName string, ...) (MembersClientCreatePollerResponse, error)
- func (client *MembersClient) BeginDelete(ctx context.Context, blockchainMemberName string, resourceGroupName string, ...) (MembersClientDeletePollerResponse, error)
- func (client *MembersClient) Get(ctx context.Context, blockchainMemberName string, resourceGroupName string, ...) (MembersClientGetResponse, error)
- func (client *MembersClient) List(resourceGroupName string, options *MembersClientListOptions) *MembersClientListPager
- func (client *MembersClient) ListAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string, ...) (MembersClientListAPIKeysResponse, error)
- func (client *MembersClient) ListAll(options *MembersClientListAllOptions) *MembersClientListAllPager
- func (client *MembersClient) ListConsortiumMembers(blockchainMemberName string, resourceGroupName string, ...) *MembersClientListConsortiumMembersPager
- func (client *MembersClient) ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string, ...) (MembersClientListRegenerateAPIKeysResponse, error)
- func (client *MembersClient) Update(ctx context.Context, blockchainMemberName string, resourceGroupName string, ...) (MembersClientUpdateResponse, error)
- type MembersClientBeginCreateOptions
- type MembersClientBeginDeleteOptions
- type MembersClientCreatePoller
- func (p *MembersClientCreatePoller) Done() bool
- func (p *MembersClientCreatePoller) FinalResponse(ctx context.Context) (MembersClientCreateResponse, error)
- func (p *MembersClientCreatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *MembersClientCreatePoller) ResumeToken() (string, error)
- type MembersClientCreatePollerResponse
- type MembersClientCreateResponse
- type MembersClientCreateResult
- type MembersClientDeletePoller
- func (p *MembersClientDeletePoller) Done() bool
- func (p *MembersClientDeletePoller) FinalResponse(ctx context.Context) (MembersClientDeleteResponse, error)
- func (p *MembersClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *MembersClientDeletePoller) ResumeToken() (string, error)
- type MembersClientDeletePollerResponse
- type MembersClientDeleteResponse
- type MembersClientGetOptions
- type MembersClientGetResponse
- type MembersClientGetResult
- type MembersClientListAPIKeysOptions
- type MembersClientListAPIKeysResponse
- type MembersClientListAPIKeysResult
- type MembersClientListAllOptions
- type MembersClientListAllPager
- type MembersClientListAllResponse
- type MembersClientListAllResult
- type MembersClientListConsortiumMembersOptions
- type MembersClientListConsortiumMembersPager
- type MembersClientListConsortiumMembersResponse
- type MembersClientListConsortiumMembersResult
- type MembersClientListOptions
- type MembersClientListPager
- type MembersClientListRegenerateAPIKeysOptions
- type MembersClientListRegenerateAPIKeysResponse
- type MembersClientListRegenerateAPIKeysResult
- type MembersClientListResponse
- type MembersClientListResult
- type MembersClientUpdateOptions
- type MembersClientUpdateResponse
- type MembersClientUpdateResult
- type NameAvailability
- type NameAvailabilityReason
- type NameAvailabilityRequest
- type NodeProvisioningState
- type OperationResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListPager
- type OperationsClientListResponse
- type OperationsClientListResult
- type Resource
- type ResourceProviderOperation
- type ResourceProviderOperationCollection
- type ResourceProviderOperationDisplay
- type ResourceTypeSKU
- type ResourceTypeSKUCollection
- type SKU
- type SKUSetting
- type SKUsClient
- type SKUsClientListOptions
- type SKUsClientListResponse
- type SKUsClientListResult
- type TrackedResource
- type TransactionNode
- type TransactionNodeCollection
- type TransactionNodeProperties
- type TransactionNodePropertiesUpdate
- type TransactionNodeUpdate
- type TransactionNodesClient
- func (client *TransactionNodesClient) BeginCreate(ctx context.Context, blockchainMemberName string, transactionNodeName string, ...) (TransactionNodesClientCreatePollerResponse, error)
- func (client *TransactionNodesClient) BeginDelete(ctx context.Context, blockchainMemberName string, transactionNodeName string, ...) (TransactionNodesClientDeletePollerResponse, error)
- func (client *TransactionNodesClient) Get(ctx context.Context, blockchainMemberName string, transactionNodeName string, ...) (TransactionNodesClientGetResponse, error)
- func (client *TransactionNodesClient) List(blockchainMemberName string, resourceGroupName string, ...) *TransactionNodesClientListPager
- func (client *TransactionNodesClient) ListAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, ...) (TransactionNodesClientListAPIKeysResponse, error)
- func (client *TransactionNodesClient) ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, ...) (TransactionNodesClientListRegenerateAPIKeysResponse, error)
- func (client *TransactionNodesClient) Update(ctx context.Context, blockchainMemberName string, transactionNodeName string, ...) (TransactionNodesClientUpdateResponse, error)
- type TransactionNodesClientBeginCreateOptions
- type TransactionNodesClientBeginDeleteOptions
- type TransactionNodesClientCreatePoller
- func (p *TransactionNodesClientCreatePoller) Done() bool
- func (p *TransactionNodesClientCreatePoller) FinalResponse(ctx context.Context) (TransactionNodesClientCreateResponse, error)
- func (p *TransactionNodesClientCreatePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *TransactionNodesClientCreatePoller) ResumeToken() (string, error)
- type TransactionNodesClientCreatePollerResponse
- type TransactionNodesClientCreateResponse
- type TransactionNodesClientCreateResult
- type TransactionNodesClientDeletePoller
- func (p *TransactionNodesClientDeletePoller) Done() bool
- func (p *TransactionNodesClientDeletePoller) FinalResponse(ctx context.Context) (TransactionNodesClientDeleteResponse, error)
- func (p *TransactionNodesClientDeletePoller) Poll(ctx context.Context) (*http.Response, error)
- func (p *TransactionNodesClientDeletePoller) ResumeToken() (string, error)
- type TransactionNodesClientDeletePollerResponse
- type TransactionNodesClientDeleteResponse
- type TransactionNodesClientGetOptions
- type TransactionNodesClientGetResponse
- type TransactionNodesClientGetResult
- type TransactionNodesClientListAPIKeysOptions
- type TransactionNodesClientListAPIKeysResponse
- type TransactionNodesClientListAPIKeysResult
- type TransactionNodesClientListOptions
- type TransactionNodesClientListPager
- type TransactionNodesClientListRegenerateAPIKeysOptions
- type TransactionNodesClientListRegenerateAPIKeysResponse
- type TransactionNodesClientListRegenerateAPIKeysResult
- type TransactionNodesClientListResponse
- type TransactionNodesClientListResult
- type TransactionNodesClientUpdateOptions
- type TransactionNodesClientUpdateResponse
- type TransactionNodesClientUpdateResult
Examples ¶
- LocationsClient.CheckNameAvailability
- LocationsClient.ListConsortiums
- MemberOperationResultsClient.Get
- MembersClient.BeginCreate
- MembersClient.BeginDelete
- MembersClient.Get
- MembersClient.List
- MembersClient.ListAll
- MembersClient.ListConsortiumMembers
- MembersClient.Update
- OperationsClient.List
- SKUsClient.List
- TransactionNodesClient.BeginCreate
- TransactionNodesClient.BeginDelete
- TransactionNodesClient.Get
- TransactionNodesClient.List
- TransactionNodesClient.Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { // Gets or sets the API key name. KeyName *string `json:"keyName,omitempty"` // Gets or sets the API key value. Value *string `json:"value,omitempty"` }
APIKey - API key payload which is exposed in the request/response of the resource provider.
type APIKeyCollection ¶
type APIKeyCollection struct { // Gets or sets the collection of API key. Keys []*APIKey `json:"keys,omitempty"` }
APIKeyCollection - Collection of the API key payload which is exposed in the response of the resource provider.
func (APIKeyCollection) MarshalJSON ¶
func (a APIKeyCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIKeyCollection.
type BlockchainMemberProvisioningState ¶
type BlockchainMemberProvisioningState string
BlockchainMemberProvisioningState - Gets or sets the blockchain member provision state.
const ( BlockchainMemberProvisioningStateDeleting BlockchainMemberProvisioningState = "Deleting" BlockchainMemberProvisioningStateFailed BlockchainMemberProvisioningState = "Failed" BlockchainMemberProvisioningStateNotSpecified BlockchainMemberProvisioningState = "NotSpecified" BlockchainMemberProvisioningStateStale BlockchainMemberProvisioningState = "Stale" BlockchainMemberProvisioningStateSucceeded BlockchainMemberProvisioningState = "Succeeded" BlockchainMemberProvisioningStateUpdating BlockchainMemberProvisioningState = "Updating" )
func PossibleBlockchainMemberProvisioningStateValues ¶
func PossibleBlockchainMemberProvisioningStateValues() []BlockchainMemberProvisioningState
PossibleBlockchainMemberProvisioningStateValues returns the possible values for the BlockchainMemberProvisioningState const type.
func (BlockchainMemberProvisioningState) ToPtr ¶
func (c BlockchainMemberProvisioningState) ToPtr() *BlockchainMemberProvisioningState
ToPtr returns a *BlockchainMemberProvisioningState pointing to the current value.
type BlockchainProtocol ¶
type BlockchainProtocol string
BlockchainProtocol - Gets or sets the blockchain protocol.
const ( BlockchainProtocolCorda BlockchainProtocol = "Corda" BlockchainProtocolNotSpecified BlockchainProtocol = "NotSpecified" BlockchainProtocolParity BlockchainProtocol = "Parity" BlockchainProtocolQuorum BlockchainProtocol = "Quorum" )
func PossibleBlockchainProtocolValues ¶
func PossibleBlockchainProtocolValues() []BlockchainProtocol
PossibleBlockchainProtocolValues returns the possible values for the BlockchainProtocol const type.
func (BlockchainProtocol) ToPtr ¶
func (c BlockchainProtocol) ToPtr() *BlockchainProtocol
ToPtr returns a *BlockchainProtocol pointing to the current value.
type Consortium ¶
type Consortium struct { // Gets or sets the blockchain member name. Name *string `json:"name,omitempty"` // Gets or sets the protocol for the consortium. Protocol *BlockchainProtocol `json:"protocol,omitempty"` }
Consortium payload
type ConsortiumCollection ¶
type ConsortiumCollection struct { // Gets or sets the collection of consortiums. Value []*Consortium `json:"value,omitempty"` }
ConsortiumCollection - Collection of the consortium payload.
func (ConsortiumCollection) MarshalJSON ¶
func (c ConsortiumCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConsortiumCollection.
type ConsortiumMember ¶
type ConsortiumMember struct { // Gets the consortium member modified date. DateModified *time.Time `json:"dateModified,omitempty"` // Gets the consortium member display name. DisplayName *string `json:"displayName,omitempty"` // Gets the consortium member join date. JoinDate *time.Time `json:"joinDate,omitempty"` // Gets the consortium member name. Name *string `json:"name,omitempty"` // Gets the consortium member role. Role *string `json:"role,omitempty"` // Gets the consortium member status. Status *string `json:"status,omitempty"` // Gets the consortium member subscription id. SubscriptionID *string `json:"subscriptionId,omitempty"` }
ConsortiumMember - Consortium approval
func (ConsortiumMember) MarshalJSON ¶
func (c ConsortiumMember) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConsortiumMember.
func (*ConsortiumMember) UnmarshalJSON ¶
func (c *ConsortiumMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConsortiumMember.
type ConsortiumMemberCollection ¶
type ConsortiumMemberCollection struct { // Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added // for future use. NextLink *string `json:"nextLink,omitempty"` // Gets or sets the collection of consortiums. Value []*ConsortiumMember `json:"value,omitempty"` }
ConsortiumMemberCollection - Collection of consortium payload.
func (ConsortiumMemberCollection) MarshalJSON ¶
func (c ConsortiumMemberCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConsortiumMemberCollection.
type FirewallRule ¶
type FirewallRule struct { // Gets or sets the end IP address of the firewall rule range. EndIPAddress *string `json:"endIpAddress,omitempty"` // Gets or sets the name of the firewall rules. RuleName *string `json:"ruleName,omitempty"` // Gets or sets the start IP address of the firewall rule range. StartIPAddress *string `json:"startIpAddress,omitempty"` }
FirewallRule - Ip range for firewall rules
type LocationsClient ¶
type LocationsClient struct {
// contains filtered or unexported fields
}
LocationsClient contains the methods for the Locations group. Don't use this type directly, use NewLocationsClient() instead.
func NewLocationsClient ¶
func NewLocationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *LocationsClient
NewLocationsClient creates a new instance of LocationsClient with the specified values. subscriptionID - Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LocationsClient) CheckNameAvailability ¶
func (client *LocationsClient) CheckNameAvailability(ctx context.Context, locationName string, options *LocationsClientCheckNameAvailabilityOptions) (LocationsClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - To check whether a resource name is available. If the operation fails it returns an *azcore.ResponseError type. locationName - Location Name. options - LocationsClientCheckNameAvailabilityOptions contains the optional parameters for the LocationsClient.CheckNameAvailability method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Locations_CheckNameAvailability.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewLocationsClient("<subscription-id>", cred, nil) res, err := client.CheckNameAvailability(ctx, "<location-name>", &armblockchain.LocationsClientCheckNameAvailabilityOptions{NameAvailabilityRequest: &armblockchain.NameAvailabilityRequest{ Name: to.StringPtr("<name>"), Type: to.StringPtr("<type>"), }, }) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.LocationsClientCheckNameAvailabilityResult) }
Output:
func (*LocationsClient) ListConsortiums ¶
func (client *LocationsClient) ListConsortiums(ctx context.Context, locationName string, options *LocationsClientListConsortiumsOptions) (LocationsClientListConsortiumsResponse, error)
ListConsortiums - Lists the available consortiums for a subscription. If the operation fails it returns an *azcore.ResponseError type. locationName - Location Name. options - LocationsClientListConsortiumsOptions contains the optional parameters for the LocationsClient.ListConsortiums method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Locations_ListConsortiums.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewLocationsClient("<subscription-id>", cred, nil) res, err := client.ListConsortiums(ctx, "<location-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.LocationsClientListConsortiumsResult) }
Output:
type LocationsClientCheckNameAvailabilityOptions ¶ added in v0.2.0
type LocationsClientCheckNameAvailabilityOptions struct { // Name availability request payload. NameAvailabilityRequest *NameAvailabilityRequest }
LocationsClientCheckNameAvailabilityOptions contains the optional parameters for the LocationsClient.CheckNameAvailability method.
type LocationsClientCheckNameAvailabilityResponse ¶ added in v0.2.0
type LocationsClientCheckNameAvailabilityResponse struct { LocationsClientCheckNameAvailabilityResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
LocationsClientCheckNameAvailabilityResponse contains the response from method LocationsClient.CheckNameAvailability.
type LocationsClientCheckNameAvailabilityResult ¶ added in v0.2.0
type LocationsClientCheckNameAvailabilityResult struct {
NameAvailability
}
LocationsClientCheckNameAvailabilityResult contains the result from method LocationsClient.CheckNameAvailability.
type LocationsClientListConsortiumsOptions ¶ added in v0.2.0
type LocationsClientListConsortiumsOptions struct { }
LocationsClientListConsortiumsOptions contains the optional parameters for the LocationsClient.ListConsortiums method.
type LocationsClientListConsortiumsResponse ¶ added in v0.2.0
type LocationsClientListConsortiumsResponse struct { LocationsClientListConsortiumsResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
LocationsClientListConsortiumsResponse contains the response from method LocationsClient.ListConsortiums.
type LocationsClientListConsortiumsResult ¶ added in v0.2.0
type LocationsClientListConsortiumsResult struct {
ConsortiumCollection
}
LocationsClientListConsortiumsResult contains the result from method LocationsClient.ListConsortiums.
type Member ¶ added in v0.2.0
type Member struct { // The GEO location of the blockchain service. Location *string `json:"location,omitempty"` // Gets or sets the blockchain member properties. Properties *MemberProperties `json:"properties,omitempty"` // Gets or sets the blockchain member Sku. SKU *SKU `json:"sku,omitempty"` // Tags of the service which is a list of key value pairs that describes the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource Id of the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain" Type *string `json:"type,omitempty" azure:"ro"` }
Member - Payload of the blockchain member which is exposed in the request/response of the resource provider.
func (Member) MarshalJSON ¶ added in v0.2.0
MarshalJSON implements the json.Marshaller interface for type Member.
type MemberCollection ¶ added in v0.2.0
type MemberCollection struct { // Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added // for future use. NextLink *string `json:"nextLink,omitempty"` // Gets or sets the collection of blockchain members. Value []*Member `json:"value,omitempty"` }
MemberCollection - Collection of the blockchain member payload which is exposed in the request/response of the resource provider.
func (MemberCollection) MarshalJSON ¶ added in v0.2.0
func (m MemberCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MemberCollection.
type MemberNodesSKU ¶ added in v0.2.0
type MemberNodesSKU struct { // Gets or sets the nodes capacity. Capacity *int32 `json:"capacity,omitempty"` }
MemberNodesSKU - Payload of the blockchain member nodes Sku for a blockchain member.
type MemberOperationResultsClient ¶ added in v0.2.0
type MemberOperationResultsClient struct {
// contains filtered or unexported fields
}
MemberOperationResultsClient contains the methods for the BlockchainMemberOperationResults group. Don't use this type directly, use NewMemberOperationResultsClient() instead.
func NewMemberOperationResultsClient ¶ added in v0.2.0
func NewMemberOperationResultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *MemberOperationResultsClient
NewMemberOperationResultsClient creates a new instance of MemberOperationResultsClient with the specified values. subscriptionID - Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MemberOperationResultsClient) Get ¶ added in v0.2.0
func (client *MemberOperationResultsClient) Get(ctx context.Context, locationName string, operationID string, options *MemberOperationResultsClientGetOptions) (MemberOperationResultsClientGetResponse, error)
Get - Get Async operation result. If the operation fails it returns an *azcore.ResponseError type. locationName - Location name. operationID - Operation Id. options - MemberOperationResultsClientGetOptions contains the optional parameters for the MemberOperationResultsClient.Get method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMemberOperationResults_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMemberOperationResultsClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<location-name>", "<operation-id>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.MemberOperationResultsClientGetResult) }
Output:
type MemberOperationResultsClientGetOptions ¶ added in v0.2.0
type MemberOperationResultsClientGetOptions struct { }
MemberOperationResultsClientGetOptions contains the optional parameters for the MemberOperationResultsClient.Get method.
type MemberOperationResultsClientGetResponse ¶ added in v0.2.0
type MemberOperationResultsClientGetResponse struct { MemberOperationResultsClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MemberOperationResultsClientGetResponse contains the response from method MemberOperationResultsClient.Get.
type MemberOperationResultsClientGetResult ¶ added in v0.2.0
type MemberOperationResultsClientGetResult struct {
OperationResult
}
MemberOperationResultsClientGetResult contains the result from method MemberOperationResultsClient.Get.
type MemberProperties ¶ added in v0.2.0
type MemberProperties struct { // Gets or sets the consortium for the blockchain member. Consortium *string `json:"consortium,omitempty"` // Sets the managed consortium management account password. ConsortiumManagementAccountPassword *string `json:"consortiumManagementAccountPassword,omitempty"` // Gets the display name of the member in the consortium. ConsortiumMemberDisplayName *string `json:"consortiumMemberDisplayName,omitempty"` // Gets the role of the member in the consortium. ConsortiumRole *string `json:"consortiumRole,omitempty"` // Gets or sets firewall rules FirewallRules []*FirewallRule `json:"firewallRules,omitempty"` // Sets the basic auth password of the blockchain member. Password *string `json:"password,omitempty"` // Gets or sets the blockchain protocol. Protocol *BlockchainProtocol `json:"protocol,omitempty"` // Gets or sets the blockchain validator nodes Sku. ValidatorNodesSKU *MemberNodesSKU `json:"validatorNodesSku,omitempty"` // READ-ONLY; Gets the managed consortium management account address. ConsortiumManagementAccountAddress *string `json:"consortiumManagementAccountAddress,omitempty" azure:"ro"` // READ-ONLY; Gets the dns endpoint of the blockchain member. DNS *string `json:"dns,omitempty" azure:"ro"` // READ-ONLY; Gets or sets the blockchain member provision state. ProvisioningState *BlockchainMemberProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Gets the public key of the blockchain member (default transaction node). PublicKey *string `json:"publicKey,omitempty" azure:"ro"` // READ-ONLY; Gets the Ethereum root contract address of the blockchain. RootContractAddress *string `json:"rootContractAddress,omitempty" azure:"ro"` // READ-ONLY; Gets the auth user name of the blockchain member. UserName *string `json:"userName,omitempty" azure:"ro"` }
MemberProperties - Payload of the blockchain member properties for a blockchain member.
func (MemberProperties) MarshalJSON ¶ added in v0.2.0
func (m MemberProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MemberProperties.
type MemberPropertiesUpdate ¶ added in v0.2.0
type MemberPropertiesUpdate struct { // Sets the managed consortium management account password. ConsortiumManagementAccountPassword *string `json:"consortiumManagementAccountPassword,omitempty"` // Gets or sets the firewall rules. FirewallRules []*FirewallRule `json:"firewallRules,omitempty"` // Sets the transaction node dns endpoint basic auth password. Password *string `json:"password,omitempty"` }
MemberPropertiesUpdate - Update the payload of the blockchain member properties for a blockchain member.
func (MemberPropertiesUpdate) MarshalJSON ¶ added in v0.2.0
func (m MemberPropertiesUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MemberPropertiesUpdate.
type MemberUpdate ¶ added in v0.2.0
type MemberUpdate struct { // Gets or sets the blockchain member update properties. Properties *MemberPropertiesUpdate `json:"properties,omitempty"` // Tags of the service which is a list of key value pairs that describes the resource. Tags map[string]*string `json:"tags,omitempty"` }
MemberUpdate - Update the payload of the blockchain member which is exposed in the request/response of the resource provider.
func (MemberUpdate) MarshalJSON ¶ added in v0.2.0
func (m MemberUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MemberUpdate.
type MembersClient ¶ added in v0.2.0
type MembersClient struct {
// contains filtered or unexported fields
}
MembersClient contains the methods for the BlockchainMembers group. Don't use this type directly, use NewMembersClient() instead.
func NewMembersClient ¶ added in v0.2.0
func NewMembersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *MembersClient
NewMembersClient creates a new instance of MembersClient with the specified values. subscriptionID - Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MembersClient) BeginCreate ¶ added in v0.2.0
func (client *MembersClient) BeginCreate(ctx context.Context, blockchainMemberName string, resourceGroupName string, options *MembersClientBeginCreateOptions) (MembersClientCreatePollerResponse, error)
BeginCreate - Create a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientBeginCreateOptions contains the optional parameters for the MembersClient.BeginCreate method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Create.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMembersClient("<subscription-id>", cred, nil) poller, err := client.BeginCreate(ctx, "<blockchain-member-name>", "<resource-group-name>", &armblockchain.MembersClientBeginCreateOptions{BlockchainMember: &armblockchain.Member{ Location: to.StringPtr("<location>"), Properties: &armblockchain.MemberProperties{ Consortium: to.StringPtr("<consortium>"), ConsortiumManagementAccountPassword: to.StringPtr("<consortium-management-account-password>"), Password: to.StringPtr("<password>"), ValidatorNodesSKU: &armblockchain.MemberNodesSKU{ Capacity: to.Int32Ptr(2), }, Protocol: armblockchain.BlockchainProtocol("Quorum").ToPtr(), }, }, }) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.MembersClientCreateResult) }
Output:
func (*MembersClient) BeginDelete ¶ added in v0.2.0
func (client *MembersClient) BeginDelete(ctx context.Context, blockchainMemberName string, resourceGroupName string, options *MembersClientBeginDeleteOptions) (MembersClientDeletePollerResponse, error)
BeginDelete - Delete a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientBeginDeleteOptions contains the optional parameters for the MembersClient.BeginDelete method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Delete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMembersClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<blockchain-member-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*MembersClient) Get ¶ added in v0.2.0
func (client *MembersClient) Get(ctx context.Context, blockchainMemberName string, resourceGroupName string, options *MembersClientGetOptions) (MembersClientGetResponse, error)
Get - Get details about a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientGetOptions contains the optional parameters for the MembersClient.Get method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMembersClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<blockchain-member-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.MembersClientGetResult) }
Output:
func (*MembersClient) List ¶ added in v0.2.0
func (client *MembersClient) List(resourceGroupName string, options *MembersClientListOptions) *MembersClientListPager
List - Lists the blockchain members for a resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientListOptions contains the optional parameters for the MembersClient.List method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMembersClient("<subscription-id>", cred, nil) pager := client.List("<resource-group-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*MembersClient) ListAPIKeys ¶ added in v0.2.0
func (client *MembersClient) ListAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string, options *MembersClientListAPIKeysOptions) (MembersClientListAPIKeysResponse, error)
ListAPIKeys - Lists the API keys for a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientListAPIKeysOptions contains the optional parameters for the MembersClient.ListAPIKeys method.
func (*MembersClient) ListAll ¶ added in v0.2.0
func (client *MembersClient) ListAll(options *MembersClientListAllOptions) *MembersClientListAllPager
ListAll - Lists the blockchain members for a subscription. If the operation fails it returns an *azcore.ResponseError type. options - MembersClientListAllOptions contains the optional parameters for the MembersClient.ListAll method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListAll.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMembersClient("<subscription-id>", cred, nil) pager := client.ListAll(nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*MembersClient) ListConsortiumMembers ¶ added in v0.2.0
func (client *MembersClient) ListConsortiumMembers(blockchainMemberName string, resourceGroupName string, options *MembersClientListConsortiumMembersOptions) *MembersClientListConsortiumMembersPager
ListConsortiumMembers - Lists the consortium members for a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientListConsortiumMembersOptions contains the optional parameters for the MembersClient.ListConsortiumMembers method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListConsortiumMembers.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMembersClient("<subscription-id>", cred, nil) pager := client.ListConsortiumMembers("<blockchain-member-name>", "<resource-group-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*MembersClient) ListRegenerateAPIKeys ¶ added in v0.2.0
func (client *MembersClient) ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string, options *MembersClientListRegenerateAPIKeysOptions) (MembersClientListRegenerateAPIKeysResponse, error)
ListRegenerateAPIKeys - Regenerate the API keys for a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientListRegenerateAPIKeysOptions contains the optional parameters for the MembersClient.ListRegenerateAPIKeys method.
func (*MembersClient) Update ¶ added in v0.2.0
func (client *MembersClient) Update(ctx context.Context, blockchainMemberName string, resourceGroupName string, options *MembersClientUpdateOptions) (MembersClientUpdateResponse, error)
Update - Update a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - MembersClientUpdateOptions contains the optional parameters for the MembersClient.Update method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewMembersClient("<subscription-id>", cred, nil) res, err := client.Update(ctx, "<blockchain-member-name>", "<resource-group-name>", &armblockchain.MembersClientUpdateOptions{BlockchainMember: &armblockchain.MemberUpdate{ Properties: &armblockchain.MemberPropertiesUpdate{ Password: to.StringPtr("<password>"), ConsortiumManagementAccountPassword: to.StringPtr("<consortium-management-account-password>"), }, }, }) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.MembersClientUpdateResult) }
Output:
type MembersClientBeginCreateOptions ¶ added in v0.2.0
type MembersClientBeginCreateOptions struct { // Payload to create a blockchain member. BlockchainMember *Member }
MembersClientBeginCreateOptions contains the optional parameters for the MembersClient.BeginCreate method.
type MembersClientBeginDeleteOptions ¶ added in v0.2.0
type MembersClientBeginDeleteOptions struct { }
MembersClientBeginDeleteOptions contains the optional parameters for the MembersClient.BeginDelete method.
type MembersClientCreatePoller ¶ added in v0.2.0
type MembersClientCreatePoller struct {
// contains filtered or unexported fields
}
MembersClientCreatePoller provides polling facilities until the operation reaches a terminal state.
func (*MembersClientCreatePoller) Done ¶ added in v0.2.0
func (p *MembersClientCreatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*MembersClientCreatePoller) FinalResponse ¶ added in v0.2.0
func (p *MembersClientCreatePoller) FinalResponse(ctx context.Context) (MembersClientCreateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final MembersClientCreateResponse will be returned.
func (*MembersClientCreatePoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*MembersClientCreatePoller) ResumeToken ¶ added in v0.2.0
func (p *MembersClientCreatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type MembersClientCreatePollerResponse ¶ added in v0.2.0
type MembersClientCreatePollerResponse struct { // Poller contains an initialized poller. Poller *MembersClientCreatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientCreatePollerResponse contains the response from method MembersClient.Create.
func (MembersClientCreatePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l MembersClientCreatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MembersClientCreateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*MembersClientCreatePollerResponse) Resume ¶ added in v0.2.0
func (l *MembersClientCreatePollerResponse) Resume(ctx context.Context, client *MembersClient, token string) error
Resume rehydrates a MembersClientCreatePollerResponse from the provided client and resume token.
type MembersClientCreateResponse ¶ added in v0.2.0
type MembersClientCreateResponse struct { MembersClientCreateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientCreateResponse contains the response from method MembersClient.Create.
type MembersClientCreateResult ¶ added in v0.2.0
type MembersClientCreateResult struct {
Member
}
MembersClientCreateResult contains the result from method MembersClient.Create.
type MembersClientDeletePoller ¶ added in v0.2.0
type MembersClientDeletePoller struct {
// contains filtered or unexported fields
}
MembersClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*MembersClientDeletePoller) Done ¶ added in v0.2.0
func (p *MembersClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*MembersClientDeletePoller) FinalResponse ¶ added in v0.2.0
func (p *MembersClientDeletePoller) FinalResponse(ctx context.Context) (MembersClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final MembersClientDeleteResponse will be returned.
func (*MembersClientDeletePoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*MembersClientDeletePoller) ResumeToken ¶ added in v0.2.0
func (p *MembersClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type MembersClientDeletePollerResponse ¶ added in v0.2.0
type MembersClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *MembersClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientDeletePollerResponse contains the response from method MembersClient.Delete.
func (MembersClientDeletePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l MembersClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MembersClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*MembersClientDeletePollerResponse) Resume ¶ added in v0.2.0
func (l *MembersClientDeletePollerResponse) Resume(ctx context.Context, client *MembersClient, token string) error
Resume rehydrates a MembersClientDeletePollerResponse from the provided client and resume token.
type MembersClientDeleteResponse ¶ added in v0.2.0
type MembersClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientDeleteResponse contains the response from method MembersClient.Delete.
type MembersClientGetOptions ¶ added in v0.2.0
type MembersClientGetOptions struct { }
MembersClientGetOptions contains the optional parameters for the MembersClient.Get method.
type MembersClientGetResponse ¶ added in v0.2.0
type MembersClientGetResponse struct { MembersClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientGetResponse contains the response from method MembersClient.Get.
type MembersClientGetResult ¶ added in v0.2.0
type MembersClientGetResult struct {
Member
}
MembersClientGetResult contains the result from method MembersClient.Get.
type MembersClientListAPIKeysOptions ¶ added in v0.2.0
type MembersClientListAPIKeysOptions struct { }
MembersClientListAPIKeysOptions contains the optional parameters for the MembersClient.ListAPIKeys method.
type MembersClientListAPIKeysResponse ¶ added in v0.2.0
type MembersClientListAPIKeysResponse struct { MembersClientListAPIKeysResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientListAPIKeysResponse contains the response from method MembersClient.ListAPIKeys.
type MembersClientListAPIKeysResult ¶ added in v0.2.0
type MembersClientListAPIKeysResult struct {
APIKeyCollection
}
MembersClientListAPIKeysResult contains the result from method MembersClient.ListAPIKeys.
type MembersClientListAllOptions ¶ added in v0.2.0
type MembersClientListAllOptions struct { }
MembersClientListAllOptions contains the optional parameters for the MembersClient.ListAll method.
type MembersClientListAllPager ¶ added in v0.2.0
type MembersClientListAllPager struct {
// contains filtered or unexported fields
}
MembersClientListAllPager provides operations for iterating over paged responses.
func (*MembersClientListAllPager) Err ¶ added in v0.2.0
func (p *MembersClientListAllPager) Err() error
Err returns the last error encountered while paging.
func (*MembersClientListAllPager) NextPage ¶ added in v0.2.0
func (p *MembersClientListAllPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*MembersClientListAllPager) PageResponse ¶ added in v0.2.0
func (p *MembersClientListAllPager) PageResponse() MembersClientListAllResponse
PageResponse returns the current MembersClientListAllResponse page.
type MembersClientListAllResponse ¶ added in v0.2.0
type MembersClientListAllResponse struct { MembersClientListAllResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientListAllResponse contains the response from method MembersClient.ListAll.
type MembersClientListAllResult ¶ added in v0.2.0
type MembersClientListAllResult struct {
MemberCollection
}
MembersClientListAllResult contains the result from method MembersClient.ListAll.
type MembersClientListConsortiumMembersOptions ¶ added in v0.2.0
type MembersClientListConsortiumMembersOptions struct { }
MembersClientListConsortiumMembersOptions contains the optional parameters for the MembersClient.ListConsortiumMembers method.
type MembersClientListConsortiumMembersPager ¶ added in v0.2.0
type MembersClientListConsortiumMembersPager struct {
// contains filtered or unexported fields
}
MembersClientListConsortiumMembersPager provides operations for iterating over paged responses.
func (*MembersClientListConsortiumMembersPager) Err ¶ added in v0.2.0
func (p *MembersClientListConsortiumMembersPager) Err() error
Err returns the last error encountered while paging.
func (*MembersClientListConsortiumMembersPager) NextPage ¶ added in v0.2.0
func (p *MembersClientListConsortiumMembersPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*MembersClientListConsortiumMembersPager) PageResponse ¶ added in v0.2.0
func (p *MembersClientListConsortiumMembersPager) PageResponse() MembersClientListConsortiumMembersResponse
PageResponse returns the current MembersClientListConsortiumMembersResponse page.
type MembersClientListConsortiumMembersResponse ¶ added in v0.2.0
type MembersClientListConsortiumMembersResponse struct { MembersClientListConsortiumMembersResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientListConsortiumMembersResponse contains the response from method MembersClient.ListConsortiumMembers.
type MembersClientListConsortiumMembersResult ¶ added in v0.2.0
type MembersClientListConsortiumMembersResult struct {
ConsortiumMemberCollection
}
MembersClientListConsortiumMembersResult contains the result from method MembersClient.ListConsortiumMembers.
type MembersClientListOptions ¶ added in v0.2.0
type MembersClientListOptions struct { }
MembersClientListOptions contains the optional parameters for the MembersClient.List method.
type MembersClientListPager ¶ added in v0.2.0
type MembersClientListPager struct {
// contains filtered or unexported fields
}
MembersClientListPager provides operations for iterating over paged responses.
func (*MembersClientListPager) Err ¶ added in v0.2.0
func (p *MembersClientListPager) Err() error
Err returns the last error encountered while paging.
func (*MembersClientListPager) NextPage ¶ added in v0.2.0
func (p *MembersClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*MembersClientListPager) PageResponse ¶ added in v0.2.0
func (p *MembersClientListPager) PageResponse() MembersClientListResponse
PageResponse returns the current MembersClientListResponse page.
type MembersClientListRegenerateAPIKeysOptions ¶ added in v0.2.0
type MembersClientListRegenerateAPIKeysOptions struct { // api key to be regenerate APIKey *APIKey }
MembersClientListRegenerateAPIKeysOptions contains the optional parameters for the MembersClient.ListRegenerateAPIKeys method.
type MembersClientListRegenerateAPIKeysResponse ¶ added in v0.2.0
type MembersClientListRegenerateAPIKeysResponse struct { MembersClientListRegenerateAPIKeysResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientListRegenerateAPIKeysResponse contains the response from method MembersClient.ListRegenerateAPIKeys.
type MembersClientListRegenerateAPIKeysResult ¶ added in v0.2.0
type MembersClientListRegenerateAPIKeysResult struct {
APIKeyCollection
}
MembersClientListRegenerateAPIKeysResult contains the result from method MembersClient.ListRegenerateAPIKeys.
type MembersClientListResponse ¶ added in v0.2.0
type MembersClientListResponse struct { MembersClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientListResponse contains the response from method MembersClient.List.
type MembersClientListResult ¶ added in v0.2.0
type MembersClientListResult struct {
MemberCollection
}
MembersClientListResult contains the result from method MembersClient.List.
type MembersClientUpdateOptions ¶ added in v0.2.0
type MembersClientUpdateOptions struct { // Payload to update the blockchain member. BlockchainMember *MemberUpdate }
MembersClientUpdateOptions contains the optional parameters for the MembersClient.Update method.
type MembersClientUpdateResponse ¶ added in v0.2.0
type MembersClientUpdateResponse struct { MembersClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
MembersClientUpdateResponse contains the response from method MembersClient.Update.
type MembersClientUpdateResult ¶ added in v0.2.0
type MembersClientUpdateResult struct {
Member
}
MembersClientUpdateResult contains the result from method MembersClient.Update.
type NameAvailability ¶
type NameAvailability struct { // Gets or sets the message. Message *string `json:"message,omitempty"` // Gets or sets the value indicating whether the name is available. NameAvailable *bool `json:"nameAvailable,omitempty"` // Gets or sets the name availability reason. Reason *NameAvailabilityReason `json:"reason,omitempty"` }
NameAvailability - Name availability payload which is exposed in the response of the resource provider.
type NameAvailabilityReason ¶
type NameAvailabilityReason string
NameAvailabilityReason - Gets or sets the name availability reason.
const ( NameAvailabilityReasonAlreadyExists NameAvailabilityReason = "AlreadyExists" NameAvailabilityReasonInvalid NameAvailabilityReason = "Invalid" NameAvailabilityReasonNotSpecified NameAvailabilityReason = "NotSpecified" )
func PossibleNameAvailabilityReasonValues ¶
func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason
PossibleNameAvailabilityReasonValues returns the possible values for the NameAvailabilityReason const type.
func (NameAvailabilityReason) ToPtr ¶
func (c NameAvailabilityReason) ToPtr() *NameAvailabilityReason
ToPtr returns a *NameAvailabilityReason pointing to the current value.
type NameAvailabilityRequest ¶
type NameAvailabilityRequest struct { // Gets or sets the name to check. Name *string `json:"name,omitempty"` // Gets or sets the type of the resource to check. Type *string `json:"type,omitempty"` }
NameAvailabilityRequest - Name availability request payload which is exposed in the request of the resource provider.
type NodeProvisioningState ¶
type NodeProvisioningState string
NodeProvisioningState - Gets or sets the blockchain member provision state.
const ( NodeProvisioningStateDeleting NodeProvisioningState = "Deleting" NodeProvisioningStateFailed NodeProvisioningState = "Failed" NodeProvisioningStateNotSpecified NodeProvisioningState = "NotSpecified" NodeProvisioningStateSucceeded NodeProvisioningState = "Succeeded" NodeProvisioningStateUpdating NodeProvisioningState = "Updating" )
func PossibleNodeProvisioningStateValues ¶
func PossibleNodeProvisioningStateValues() []NodeProvisioningState
PossibleNodeProvisioningStateValues returns the possible values for the NodeProvisioningState const type.
func (NodeProvisioningState) ToPtr ¶
func (c NodeProvisioningState) ToPtr() *NodeProvisioningState
ToPtr returns a *NodeProvisioningState pointing to the current value.
type OperationResult ¶
type OperationResult struct { // Gets or sets the operation end time. EndTime *time.Time `json:"endTime,omitempty"` // Gets or sets the operation name. Name *string `json:"name,omitempty"` // Gets or sets the operation start time. StartTime *time.Time `json:"startTime,omitempty"` }
OperationResult - Operation result payload which is exposed in the response of the resource provider.
func (OperationResult) MarshalJSON ¶
func (o OperationResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationResult.
func (*OperationResult) UnmarshalJSON ¶
func (o *OperationResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsClientListOptions) *OperationsClientListPager
List - Lists the available operations of Microsoft.Blockchain resource provider. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewOperationsClient(cred, nil) pager := client.List(nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListPager ¶ added in v0.2.0
type OperationsClientListPager struct {
// contains filtered or unexported fields
}
OperationsClientListPager provides operations for iterating over paged responses.
func (*OperationsClientListPager) Err ¶ added in v0.2.0
func (p *OperationsClientListPager) Err() error
Err returns the last error encountered while paging.
func (*OperationsClientListPager) NextPage ¶ added in v0.2.0
func (p *OperationsClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*OperationsClientListPager) PageResponse ¶ added in v0.2.0
func (p *OperationsClientListPager) PageResponse() OperationsClientListResponse
PageResponse returns the current OperationsClientListResponse page.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct { OperationsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
OperationsClientListResponse contains the response from method OperationsClient.List.
type OperationsClientListResult ¶ added in v0.2.0
type OperationsClientListResult struct {
ResourceProviderOperationCollection
}
OperationsClientListResult contains the result from method OperationsClient.List.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource Id of the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - The core properties of the resources.
type ResourceProviderOperation ¶
type ResourceProviderOperation struct { // Gets or sets operation display Display *ResourceProviderOperationDisplay `json:"display,omitempty"` // Gets or sets a value indicating whether the operation is a data action or not. IsDataAction *bool `json:"isDataAction,omitempty"` // Gets or sets the operation name. Name *string `json:"name,omitempty"` // Gets or sets the origin. Origin *string `json:"origin,omitempty"` }
ResourceProviderOperation - Operation payload which is exposed in the response of the resource provider.
type ResourceProviderOperationCollection ¶
type ResourceProviderOperationCollection struct { // Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added // for future use. NextLink *string `json:"nextLink,omitempty"` // Gets or sets the collection of operations. Value []*ResourceProviderOperation `json:"value,omitempty"` }
ResourceProviderOperationCollection - Collection of operation payload which is exposed in the response of the resource provider.
func (ResourceProviderOperationCollection) MarshalJSON ¶
func (r ResourceProviderOperationCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceProviderOperationCollection.
type ResourceProviderOperationDisplay ¶
type ResourceProviderOperationDisplay struct { // Gets or sets the description of the provider for display purposes. Description *string `json:"description,omitempty"` // Gets or sets the name of the operation for display purposes. Operation *string `json:"operation,omitempty"` // Gets or sets the name of the provider for display purposes. Provider *string `json:"provider,omitempty"` // Gets or sets the name of the resource type for display purposes. Resource *string `json:"resource,omitempty"` }
ResourceProviderOperationDisplay - Operation display payload which is exposed in the response of the resource provider.
type ResourceTypeSKU ¶
type ResourceTypeSKU struct { // Gets or sets the resource type ResourceType *string `json:"resourceType,omitempty"` // Gets or sets the Skus SKUs []*SKUSetting `json:"skus,omitempty"` }
ResourceTypeSKU - Resource type Sku.
func (ResourceTypeSKU) MarshalJSON ¶
func (r ResourceTypeSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeSKU.
type ResourceTypeSKUCollection ¶
type ResourceTypeSKUCollection struct { // Gets or sets the collection of resource type Sku. Value []*ResourceTypeSKU `json:"value,omitempty"` }
ResourceTypeSKUCollection - Collection of the resource type Sku.
func (ResourceTypeSKUCollection) MarshalJSON ¶
func (r ResourceTypeSKUCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTypeSKUCollection.
type SKU ¶
type SKU struct { // Gets or sets Sku name Name *string `json:"name,omitempty"` // Gets or sets Sku tier Tier *string `json:"tier,omitempty"` }
SKU - Blockchain member Sku in payload
type SKUSetting ¶
type SKUSetting struct { // Gets or sets the locations. Locations []*string `json:"locations,omitempty"` // Gets or sets the Sku name. Name *string `json:"name,omitempty"` // Gets or sets the required features. RequiredFeatures []*string `json:"requiredFeatures,omitempty"` // Gets or sets the Sku tier. Tier *string `json:"tier,omitempty"` }
SKUSetting - Sku Setting.
func (SKUSetting) MarshalJSON ¶
func (s SKUSetting) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SKUSetting.
type SKUsClient ¶
type SKUsClient struct {
// contains filtered or unexported fields
}
SKUsClient contains the methods for the SKUs group. Don't use this type directly, use NewSKUsClient() instead.
func NewSKUsClient ¶
func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SKUsClient
NewSKUsClient creates a new instance of SKUsClient with the specified values. subscriptionID - Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SKUsClient) List ¶
func (client *SKUsClient) List(ctx context.Context, options *SKUsClientListOptions) (SKUsClientListResponse, error)
List - Lists the Skus of the resource type. If the operation fails it returns an *azcore.ResponseError type. options - SKUsClientListOptions contains the optional parameters for the SKUsClient.List method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Skus_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewSKUsClient("<subscription-id>", cred, nil) res, err := client.List(ctx, nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.SKUsClientListResult) }
Output:
type SKUsClientListOptions ¶ added in v0.2.0
type SKUsClientListOptions struct { }
SKUsClientListOptions contains the optional parameters for the SKUsClient.List method.
type SKUsClientListResponse ¶ added in v0.2.0
type SKUsClientListResponse struct { SKUsClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
SKUsClientListResponse contains the response from method SKUsClient.List.
type SKUsClientListResult ¶ added in v0.2.0
type SKUsClientListResult struct {
ResourceTypeSKUCollection
}
SKUsClientListResult contains the result from method SKUsClient.List.
type TrackedResource ¶
type TrackedResource struct { // The GEO location of the blockchain service. Location *string `json:"location,omitempty"` // Tags of the service which is a list of key value pairs that describes the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource Id of the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for a top level resource.
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type TransactionNode ¶
type TransactionNode struct { // Gets or sets the transaction node location. Location *string `json:"location,omitempty"` // Gets or sets the blockchain member properties. Properties *TransactionNodeProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id of the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain" Type *string `json:"type,omitempty" azure:"ro"` }
TransactionNode - Payload of the transaction node which is the request/response of the resource provider.
type TransactionNodeCollection ¶
type TransactionNodeCollection struct { // Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added // for future use. NextLink *string `json:"nextLink,omitempty"` // Gets or sets the collection of transaction nodes. Value []*TransactionNode `json:"value,omitempty"` }
TransactionNodeCollection - Collection of transaction node payload which is exposed in the request/response of the resource provider.
func (TransactionNodeCollection) MarshalJSON ¶
func (t TransactionNodeCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TransactionNodeCollection.
type TransactionNodeProperties ¶
type TransactionNodeProperties struct { // Gets or sets the firewall rules. FirewallRules []*FirewallRule `json:"firewallRules,omitempty"` // Sets the transaction node dns endpoint basic auth password. Password *string `json:"password,omitempty"` // READ-ONLY; Gets or sets the transaction node dns endpoint. DNS *string `json:"dns,omitempty" azure:"ro"` // READ-ONLY; Gets or sets the blockchain member provision state. ProvisioningState *NodeProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Gets or sets the transaction node public key. PublicKey *string `json:"publicKey,omitempty" azure:"ro"` // READ-ONLY; Gets or sets the transaction node dns endpoint basic auth user name. UserName *string `json:"userName,omitempty" azure:"ro"` }
TransactionNodeProperties - Payload of transaction node properties payload in the transaction node payload.
func (TransactionNodeProperties) MarshalJSON ¶
func (t TransactionNodeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TransactionNodeProperties.
type TransactionNodePropertiesUpdate ¶
type TransactionNodePropertiesUpdate struct { // Gets or sets the firewall rules. FirewallRules []*FirewallRule `json:"firewallRules,omitempty"` // Sets the transaction node dns endpoint basic auth password. Password *string `json:"password,omitempty"` }
TransactionNodePropertiesUpdate - Update the payload of the transaction node properties in the transaction node payload.
func (TransactionNodePropertiesUpdate) MarshalJSON ¶
func (t TransactionNodePropertiesUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TransactionNodePropertiesUpdate.
type TransactionNodeUpdate ¶
type TransactionNodeUpdate struct { // Gets or sets the transaction node update properties. Properties *TransactionNodePropertiesUpdate `json:"properties,omitempty"` }
TransactionNodeUpdate - Update the transaction node payload which is exposed in the request/response of the resource provider.
func (TransactionNodeUpdate) MarshalJSON ¶
func (t TransactionNodeUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TransactionNodeUpdate.
type TransactionNodesClient ¶
type TransactionNodesClient struct {
// contains filtered or unexported fields
}
TransactionNodesClient contains the methods for the TransactionNodes group. Don't use this type directly, use NewTransactionNodesClient() instead.
func NewTransactionNodesClient ¶
func NewTransactionNodesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *TransactionNodesClient
NewTransactionNodesClient creates a new instance of TransactionNodesClient with the specified values. subscriptionID - Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*TransactionNodesClient) BeginCreate ¶
func (client *TransactionNodesClient) BeginCreate(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, options *TransactionNodesClientBeginCreateOptions) (TransactionNodesClientCreatePollerResponse, error)
BeginCreate - Create or update the transaction node. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. transactionNodeName - Transaction node name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - TransactionNodesClientBeginCreateOptions contains the optional parameters for the TransactionNodesClient.BeginCreate method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Create.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewTransactionNodesClient("<subscription-id>", cred, nil) poller, err := client.BeginCreate(ctx, "<blockchain-member-name>", "<transaction-node-name>", "<resource-group-name>", &armblockchain.TransactionNodesClientBeginCreateOptions{TransactionNode: &armblockchain.TransactionNode{ Location: to.StringPtr("<location>"), Properties: &armblockchain.TransactionNodeProperties{ Password: to.StringPtr("<password>"), }, }, }) if err != nil { log.Fatal(err) } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.TransactionNodesClientCreateResult) }
Output:
func (*TransactionNodesClient) BeginDelete ¶
func (client *TransactionNodesClient) BeginDelete(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, options *TransactionNodesClientBeginDeleteOptions) (TransactionNodesClientDeletePollerResponse, error)
BeginDelete - Delete the transaction node. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. transactionNodeName - Transaction node name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - TransactionNodesClientBeginDeleteOptions contains the optional parameters for the TransactionNodesClient.BeginDelete method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Delete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewTransactionNodesClient("<subscription-id>", cred, nil) poller, err := client.BeginDelete(ctx, "<blockchain-member-name>", "<transaction-node-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatal(err) } }
Output:
func (*TransactionNodesClient) Get ¶
func (client *TransactionNodesClient) Get(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, options *TransactionNodesClientGetOptions) (TransactionNodesClientGetResponse, error)
Get - Get the details of the transaction node. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. transactionNodeName - Transaction node name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - TransactionNodesClientGetOptions contains the optional parameters for the TransactionNodesClient.Get method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewTransactionNodesClient("<subscription-id>", cred, nil) res, err := client.Get(ctx, "<blockchain-member-name>", "<transaction-node-name>", "<resource-group-name>", nil) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.TransactionNodesClientGetResult) }
Output:
func (*TransactionNodesClient) List ¶
func (client *TransactionNodesClient) List(blockchainMemberName string, resourceGroupName string, options *TransactionNodesClientListOptions) *TransactionNodesClientListPager
List - Lists the transaction nodes for a blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - TransactionNodesClientListOptions contains the optional parameters for the TransactionNodesClient.List method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewTransactionNodesClient("<subscription-id>", cred, nil) pager := client.List("<blockchain-member-name>", "<resource-group-name>", nil) for { nextResult := pager.NextPage(ctx) if err := pager.Err(); err != nil { log.Fatalf("failed to advance page: %v", err) } if !nextResult { break } for _, v := range pager.PageResponse().Value { log.Printf("Pager result: %#v\n", v) } } }
Output:
func (*TransactionNodesClient) ListAPIKeys ¶
func (client *TransactionNodesClient) ListAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, options *TransactionNodesClientListAPIKeysOptions) (TransactionNodesClientListAPIKeysResponse, error)
ListAPIKeys - List the API keys for the transaction node. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. transactionNodeName - Transaction node name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - TransactionNodesClientListAPIKeysOptions contains the optional parameters for the TransactionNodesClient.ListAPIKeys method.
func (*TransactionNodesClient) ListRegenerateAPIKeys ¶
func (client *TransactionNodesClient) ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, options *TransactionNodesClientListRegenerateAPIKeysOptions) (TransactionNodesClientListRegenerateAPIKeysResponse, error)
ListRegenerateAPIKeys - Regenerate the API keys for the blockchain member. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. transactionNodeName - Transaction node name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - TransactionNodesClientListRegenerateAPIKeysOptions contains the optional parameters for the TransactionNodesClient.ListRegenerateAPIKeys method.
func (*TransactionNodesClient) Update ¶
func (client *TransactionNodesClient) Update(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, options *TransactionNodesClientUpdateOptions) (TransactionNodesClientUpdateResponse, error)
Update - Update the transaction node. If the operation fails it returns an *azcore.ResponseError type. blockchainMemberName - Blockchain member name. transactionNodeName - Transaction node name. resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. options - TransactionNodesClientUpdateOptions contains the optional parameters for the TransactionNodesClient.Update method.
Example ¶
x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client := armblockchain.NewTransactionNodesClient("<subscription-id>", cred, nil) res, err := client.Update(ctx, "<blockchain-member-name>", "<transaction-node-name>", "<resource-group-name>", &armblockchain.TransactionNodesClientUpdateOptions{TransactionNode: &armblockchain.TransactionNodeUpdate{ Properties: &armblockchain.TransactionNodePropertiesUpdate{ Password: to.StringPtr("<password>"), }, }, }) if err != nil { log.Fatal(err) } log.Printf("Response result: %#v\n", res.TransactionNodesClientUpdateResult) }
Output:
type TransactionNodesClientBeginCreateOptions ¶ added in v0.2.0
type TransactionNodesClientBeginCreateOptions struct { // Payload to create the transaction node. TransactionNode *TransactionNode }
TransactionNodesClientBeginCreateOptions contains the optional parameters for the TransactionNodesClient.BeginCreate method.
type TransactionNodesClientBeginDeleteOptions ¶ added in v0.2.0
type TransactionNodesClientBeginDeleteOptions struct { }
TransactionNodesClientBeginDeleteOptions contains the optional parameters for the TransactionNodesClient.BeginDelete method.
type TransactionNodesClientCreatePoller ¶ added in v0.2.0
type TransactionNodesClientCreatePoller struct {
// contains filtered or unexported fields
}
TransactionNodesClientCreatePoller provides polling facilities until the operation reaches a terminal state.
func (*TransactionNodesClientCreatePoller) Done ¶ added in v0.2.0
func (p *TransactionNodesClientCreatePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*TransactionNodesClientCreatePoller) FinalResponse ¶ added in v0.2.0
func (p *TransactionNodesClientCreatePoller) FinalResponse(ctx context.Context) (TransactionNodesClientCreateResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final TransactionNodesClientCreateResponse will be returned.
func (*TransactionNodesClientCreatePoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*TransactionNodesClientCreatePoller) ResumeToken ¶ added in v0.2.0
func (p *TransactionNodesClientCreatePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type TransactionNodesClientCreatePollerResponse ¶ added in v0.2.0
type TransactionNodesClientCreatePollerResponse struct { // Poller contains an initialized poller. Poller *TransactionNodesClientCreatePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientCreatePollerResponse contains the response from method TransactionNodesClient.Create.
func (TransactionNodesClientCreatePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l TransactionNodesClientCreatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (TransactionNodesClientCreateResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*TransactionNodesClientCreatePollerResponse) Resume ¶ added in v0.2.0
func (l *TransactionNodesClientCreatePollerResponse) Resume(ctx context.Context, client *TransactionNodesClient, token string) error
Resume rehydrates a TransactionNodesClientCreatePollerResponse from the provided client and resume token.
type TransactionNodesClientCreateResponse ¶ added in v0.2.0
type TransactionNodesClientCreateResponse struct { TransactionNodesClientCreateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientCreateResponse contains the response from method TransactionNodesClient.Create.
type TransactionNodesClientCreateResult ¶ added in v0.2.0
type TransactionNodesClientCreateResult struct {
TransactionNode
}
TransactionNodesClientCreateResult contains the result from method TransactionNodesClient.Create.
type TransactionNodesClientDeletePoller ¶ added in v0.2.0
type TransactionNodesClientDeletePoller struct {
// contains filtered or unexported fields
}
TransactionNodesClientDeletePoller provides polling facilities until the operation reaches a terminal state.
func (*TransactionNodesClientDeletePoller) Done ¶ added in v0.2.0
func (p *TransactionNodesClientDeletePoller) Done() bool
Done returns true if the LRO has reached a terminal state.
func (*TransactionNodesClientDeletePoller) FinalResponse ¶ added in v0.2.0
func (p *TransactionNodesClientDeletePoller) FinalResponse(ctx context.Context) (TransactionNodesClientDeleteResponse, error)
FinalResponse performs a final GET to the service and returns the final response for the polling operation. If there is an error performing the final GET then an error is returned. If the final GET succeeded then the final TransactionNodesClientDeleteResponse will be returned.
func (*TransactionNodesClientDeletePoller) Poll ¶ added in v0.2.0
Poll fetches the latest state of the LRO. It returns an HTTP response or error. If the LRO has completed successfully, the poller's state is updated and the HTTP response is returned. If the LRO has completed with failure or was cancelled, the poller's state is updated and the error is returned. If the LRO has not reached a terminal state, the poller's state is updated and the latest HTTP response is returned. If Poll fails, the poller's state is unmodified and the error is returned. Calling Poll on an LRO that has reached a terminal state will return the final HTTP response or error.
func (*TransactionNodesClientDeletePoller) ResumeToken ¶ added in v0.2.0
func (p *TransactionNodesClientDeletePoller) ResumeToken() (string, error)
ResumeToken returns a value representing the poller that can be used to resume the LRO at a later time. ResumeTokens are unique per service operation.
type TransactionNodesClientDeletePollerResponse ¶ added in v0.2.0
type TransactionNodesClientDeletePollerResponse struct { // Poller contains an initialized poller. Poller *TransactionNodesClientDeletePoller // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientDeletePollerResponse contains the response from method TransactionNodesClient.Delete.
func (TransactionNodesClientDeletePollerResponse) PollUntilDone ¶ added in v0.2.0
func (l TransactionNodesClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (TransactionNodesClientDeleteResponse, error)
PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. A good starting value is 30 seconds. Note that some resources might benefit from a different value.
func (*TransactionNodesClientDeletePollerResponse) Resume ¶ added in v0.2.0
func (l *TransactionNodesClientDeletePollerResponse) Resume(ctx context.Context, client *TransactionNodesClient, token string) error
Resume rehydrates a TransactionNodesClientDeletePollerResponse from the provided client and resume token.
type TransactionNodesClientDeleteResponse ¶ added in v0.2.0
type TransactionNodesClientDeleteResponse struct { // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientDeleteResponse contains the response from method TransactionNodesClient.Delete.
type TransactionNodesClientGetOptions ¶ added in v0.2.0
type TransactionNodesClientGetOptions struct { }
TransactionNodesClientGetOptions contains the optional parameters for the TransactionNodesClient.Get method.
type TransactionNodesClientGetResponse ¶ added in v0.2.0
type TransactionNodesClientGetResponse struct { TransactionNodesClientGetResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientGetResponse contains the response from method TransactionNodesClient.Get.
type TransactionNodesClientGetResult ¶ added in v0.2.0
type TransactionNodesClientGetResult struct {
TransactionNode
}
TransactionNodesClientGetResult contains the result from method TransactionNodesClient.Get.
type TransactionNodesClientListAPIKeysOptions ¶ added in v0.2.0
type TransactionNodesClientListAPIKeysOptions struct { }
TransactionNodesClientListAPIKeysOptions contains the optional parameters for the TransactionNodesClient.ListAPIKeys method.
type TransactionNodesClientListAPIKeysResponse ¶ added in v0.2.0
type TransactionNodesClientListAPIKeysResponse struct { TransactionNodesClientListAPIKeysResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientListAPIKeysResponse contains the response from method TransactionNodesClient.ListAPIKeys.
type TransactionNodesClientListAPIKeysResult ¶ added in v0.2.0
type TransactionNodesClientListAPIKeysResult struct {
APIKeyCollection
}
TransactionNodesClientListAPIKeysResult contains the result from method TransactionNodesClient.ListAPIKeys.
type TransactionNodesClientListOptions ¶ added in v0.2.0
type TransactionNodesClientListOptions struct { }
TransactionNodesClientListOptions contains the optional parameters for the TransactionNodesClient.List method.
type TransactionNodesClientListPager ¶ added in v0.2.0
type TransactionNodesClientListPager struct {
// contains filtered or unexported fields
}
TransactionNodesClientListPager provides operations for iterating over paged responses.
func (*TransactionNodesClientListPager) Err ¶ added in v0.2.0
func (p *TransactionNodesClientListPager) Err() error
Err returns the last error encountered while paging.
func (*TransactionNodesClientListPager) NextPage ¶ added in v0.2.0
func (p *TransactionNodesClientListPager) NextPage(ctx context.Context) bool
NextPage returns true if the pager advanced to the next page. Returns false if there are no more pages or an error occurred.
func (*TransactionNodesClientListPager) PageResponse ¶ added in v0.2.0
func (p *TransactionNodesClientListPager) PageResponse() TransactionNodesClientListResponse
PageResponse returns the current TransactionNodesClientListResponse page.
type TransactionNodesClientListRegenerateAPIKeysOptions ¶ added in v0.2.0
type TransactionNodesClientListRegenerateAPIKeysOptions struct { // api key to be regenerated APIKey *APIKey }
TransactionNodesClientListRegenerateAPIKeysOptions contains the optional parameters for the TransactionNodesClient.ListRegenerateAPIKeys method.
type TransactionNodesClientListRegenerateAPIKeysResponse ¶ added in v0.2.0
type TransactionNodesClientListRegenerateAPIKeysResponse struct { TransactionNodesClientListRegenerateAPIKeysResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientListRegenerateAPIKeysResponse contains the response from method TransactionNodesClient.ListRegenerateAPIKeys.
type TransactionNodesClientListRegenerateAPIKeysResult ¶ added in v0.2.0
type TransactionNodesClientListRegenerateAPIKeysResult struct {
APIKeyCollection
}
TransactionNodesClientListRegenerateAPIKeysResult contains the result from method TransactionNodesClient.ListRegenerateAPIKeys.
type TransactionNodesClientListResponse ¶ added in v0.2.0
type TransactionNodesClientListResponse struct { TransactionNodesClientListResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientListResponse contains the response from method TransactionNodesClient.List.
type TransactionNodesClientListResult ¶ added in v0.2.0
type TransactionNodesClientListResult struct {
TransactionNodeCollection
}
TransactionNodesClientListResult contains the result from method TransactionNodesClient.List.
type TransactionNodesClientUpdateOptions ¶ added in v0.2.0
type TransactionNodesClientUpdateOptions struct { // Payload to create the transaction node. TransactionNode *TransactionNodeUpdate }
TransactionNodesClientUpdateOptions contains the optional parameters for the TransactionNodesClient.Update method.
type TransactionNodesClientUpdateResponse ¶ added in v0.2.0
type TransactionNodesClientUpdateResponse struct { TransactionNodesClientUpdateResult // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
TransactionNodesClientUpdateResponse contains the response from method TransactionNodesClient.Update.
type TransactionNodesClientUpdateResult ¶ added in v0.2.0
type TransactionNodesClientUpdateResult struct {
TransactionNode
}
TransactionNodesClientUpdateResult contains the result from method TransactionNodesClient.Update.
Source Files ¶
- build.go
- zz_generated_constants.go
- zz_generated_locations_client.go
- zz_generated_memberoperationresults_client.go
- zz_generated_members_client.go
- zz_generated_models.go
- zz_generated_operations_client.go
- zz_generated_pagers.go
- zz_generated_pollers.go
- zz_generated_response_types.go
- zz_generated_skus_client.go
- zz_generated_time_rfc3339.go
- zz_generated_transactionnodes_client.go