blockchain

package
v58.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package blockchain implements the Azure ARM Blockchain service API version 2018-06-01-preview.

REST API for Azure Blockchain Service

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Blockchain
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIKey

type APIKey struct {
	// KeyName - Gets or sets the API key name.
	KeyName *string `json:"keyName,omitempty"`
	// Value - 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 {
	autorest.Response `json:"-"`
	// Keys - 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.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Blockchain.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Consortium

type Consortium struct {
	// Name - Gets or sets the blockchain member name.
	Name *string `json:"name,omitempty"`
	// Protocol - Gets or sets the protocol for the consortium. Possible values include: 'ProtocolNotSpecified', 'ProtocolParity', 'ProtocolQuorum', 'ProtocolCorda'
	Protocol Protocol `json:"protocol,omitempty"`
}

Consortium consortium payload

type ConsortiumCollection

type ConsortiumCollection struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets the collection of consortiums.
	Value *[]Consortium `json:"value,omitempty"`
}

ConsortiumCollection collection of the consortium payload.

type ConsortiumMember

type ConsortiumMember struct {
	// Name - Gets the consortium member name.
	Name *string `json:"name,omitempty"`
	// DisplayName - Gets the consortium member display name.
	DisplayName *string `json:"displayName,omitempty"`
	// SubscriptionID - Gets the consortium member subscription id.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// Role - Gets the consortium member role.
	Role *string `json:"role,omitempty"`
	// Status - Gets the consortium member status.
	Status *string `json:"status,omitempty"`
	// JoinDate - Gets the consortium member join date.
	JoinDate *date.Time `json:"joinDate,omitempty"`
	// DateModified - Gets the consortium member modified date.
	DateModified *date.Time `json:"dateModified,omitempty"`
}

ConsortiumMember consortium approval

type ConsortiumMemberCollection

type ConsortiumMemberCollection struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets the collection of consortiums.
	Value *[]ConsortiumMember `json:"value,omitempty"`
	// NextLink - 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"`
}

ConsortiumMemberCollection collection of consortium payload.

func (ConsortiumMemberCollection) IsEmpty

func (cmc ConsortiumMemberCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConsortiumMemberCollectionIterator

type ConsortiumMemberCollectionIterator struct {
	// contains filtered or unexported fields
}

ConsortiumMemberCollectionIterator provides access to a complete listing of ConsortiumMember values.

func NewConsortiumMemberCollectionIterator

func NewConsortiumMemberCollectionIterator(page ConsortiumMemberCollectionPage) ConsortiumMemberCollectionIterator

Creates a new instance of the ConsortiumMemberCollectionIterator type.

func (*ConsortiumMemberCollectionIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ConsortiumMemberCollectionIterator) NextWithContext

func (iter *ConsortiumMemberCollectionIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ConsortiumMemberCollectionIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ConsortiumMemberCollectionIterator) Response

Response returns the raw server response from the last page request.

func (ConsortiumMemberCollectionIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ConsortiumMemberCollectionPage

type ConsortiumMemberCollectionPage struct {
	// contains filtered or unexported fields
}

ConsortiumMemberCollectionPage contains a page of ConsortiumMember values.

func NewConsortiumMemberCollectionPage

Creates a new instance of the ConsortiumMemberCollectionPage type.

func (*ConsortiumMemberCollectionPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ConsortiumMemberCollectionPage) NextWithContext

func (page *ConsortiumMemberCollectionPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ConsortiumMemberCollectionPage) NotDone

func (page ConsortiumMemberCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ConsortiumMemberCollectionPage) Response

Response returns the raw server response from the last page request.

func (ConsortiumMemberCollectionPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type FirewallRule

type FirewallRule struct {
	// RuleName - Gets or sets the name of the firewall rules.
	RuleName *string `json:"ruleName,omitempty"`
	// StartIPAddress - Gets or sets the start IP address of the firewall rule range.
	StartIPAddress *string `json:"startIpAddress,omitempty"`
	// EndIPAddress - Gets or sets the end IP address of the firewall rule range.
	EndIPAddress *string `json:"endIpAddress,omitempty"`
}

FirewallRule ip range for firewall rules

type LocationsClient

type LocationsClient struct {
	BaseClient
}

LocationsClient is the REST API for Azure Blockchain Service

func NewLocationsClient

func NewLocationsClient(subscriptionID string) LocationsClient

NewLocationsClient creates an instance of the LocationsClient client.

func NewLocationsClientWithBaseURI

func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient

NewLocationsClientWithBaseURI creates an instance of the LocationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LocationsClient) CheckNameAvailability

func (client LocationsClient) CheckNameAvailability(ctx context.Context, locationName string, nameAvailabilityRequest *NameAvailabilityRequest) (result NameAvailability, err error)

CheckNameAvailability to check whether a resource name is available. Parameters: locationName - location Name. nameAvailabilityRequest - name availability request payload.

func (LocationsClient) CheckNameAvailabilityPreparer

func (client LocationsClient) CheckNameAvailabilityPreparer(ctx context.Context, locationName string, nameAvailabilityRequest *NameAvailabilityRequest) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (LocationsClient) CheckNameAvailabilityResponder

func (client LocationsClient) CheckNameAvailabilityResponder(resp *http.Response) (result NameAvailability, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (LocationsClient) CheckNameAvailabilitySender

func (client LocationsClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (LocationsClient) ListConsortiums

func (client LocationsClient) ListConsortiums(ctx context.Context, locationName string) (result ConsortiumCollection, err error)

ListConsortiums lists the available consortiums for a subscription. Parameters: locationName - location Name.

func (LocationsClient) ListConsortiumsPreparer

func (client LocationsClient) ListConsortiumsPreparer(ctx context.Context, locationName string) (*http.Request, error)

ListConsortiumsPreparer prepares the ListConsortiums request.

func (LocationsClient) ListConsortiumsResponder

func (client LocationsClient) ListConsortiumsResponder(resp *http.Response) (result ConsortiumCollection, err error)

ListConsortiumsResponder handles the response to the ListConsortiums request. The method always closes the http.Response Body.

func (LocationsClient) ListConsortiumsSender

func (client LocationsClient) ListConsortiumsSender(req *http.Request) (*http.Response, error)

ListConsortiumsSender sends the ListConsortiums request. The method will close the http.Response Body if it receives an error.

type Member

type Member struct {
	autorest.Response `json:"-"`
	// MemberProperties - Gets or sets the blockchain member properties.
	*MemberProperties `json:"properties,omitempty"`
	// Sku - Gets or sets the blockchain member Sku.
	Sku *Sku `json:"sku,omitempty"`
	// Location - The GEO location of the blockchain service.
	Location *string `json:"location,omitempty"`
	// Tags - Tags of the service which is a list of key value pairs that describes the resource.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Fully qualified resource Id of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
	Type *string `json:"type,omitempty"`
}

Member payload of the blockchain member which is exposed in the request/response of the resource provider.

func (Member) MarshalJSON

func (mVar Member) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Member.

func (*Member) UnmarshalJSON

func (mVar *Member) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Member struct.

type MemberCollection

type MemberCollection struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets the collection of blockchain members.
	Value *[]Member `json:"value,omitempty"`
	// NextLink - 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"`
}

MemberCollection collection of the blockchain member payload which is exposed in the request/response of the resource provider.

func (MemberCollection) IsEmpty

func (mc MemberCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MemberCollectionIterator

type MemberCollectionIterator struct {
	// contains filtered or unexported fields
}

MemberCollectionIterator provides access to a complete listing of Member values.

func NewMemberCollectionIterator

func NewMemberCollectionIterator(page MemberCollectionPage) MemberCollectionIterator

Creates a new instance of the MemberCollectionIterator type.

func (*MemberCollectionIterator) Next

func (iter *MemberCollectionIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*MemberCollectionIterator) NextWithContext

func (iter *MemberCollectionIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (MemberCollectionIterator) NotDone

func (iter MemberCollectionIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (MemberCollectionIterator) Response

Response returns the raw server response from the last page request.

func (MemberCollectionIterator) Value

func (iter MemberCollectionIterator) Value() Member

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type MemberCollectionPage

type MemberCollectionPage struct {
	// contains filtered or unexported fields
}

MemberCollectionPage contains a page of Member values.

func NewMemberCollectionPage

func NewMemberCollectionPage(cur MemberCollection, getNextPage func(context.Context, MemberCollection) (MemberCollection, error)) MemberCollectionPage

Creates a new instance of the MemberCollectionPage type.

func (*MemberCollectionPage) Next

func (page *MemberCollectionPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*MemberCollectionPage) NextWithContext

func (page *MemberCollectionPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (MemberCollectionPage) NotDone

func (page MemberCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (MemberCollectionPage) Response

func (page MemberCollectionPage) Response() MemberCollection

Response returns the raw server response from the last page request.

func (MemberCollectionPage) Values

func (page MemberCollectionPage) Values() []Member

Values returns the slice of values for the current page or nil if there are no values.

type MemberNodesSku

type MemberNodesSku struct {
	// Capacity - 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

type MemberOperationResultsClient struct {
	BaseClient
}

MemberOperationResultsClient is the REST API for Azure Blockchain Service

func NewMemberOperationResultsClient

func NewMemberOperationResultsClient(subscriptionID string) MemberOperationResultsClient

NewMemberOperationResultsClient creates an instance of the MemberOperationResultsClient client.

func NewMemberOperationResultsClientWithBaseURI

func NewMemberOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) MemberOperationResultsClient

NewMemberOperationResultsClientWithBaseURI creates an instance of the MemberOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (MemberOperationResultsClient) Get

func (client MemberOperationResultsClient) Get(ctx context.Context, locationName string, operationID string) (result OperationResult, err error)

Get get Async operation result. Parameters: locationName - location name. operationID - operation Id.

func (MemberOperationResultsClient) GetPreparer

func (client MemberOperationResultsClient) GetPreparer(ctx context.Context, locationName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (MemberOperationResultsClient) GetResponder

func (client MemberOperationResultsClient) GetResponder(resp *http.Response) (result OperationResult, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (MemberOperationResultsClient) GetSender

func (client MemberOperationResultsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type MemberProperties

type MemberProperties struct {
	// Protocol - Gets or sets the blockchain protocol. Possible values include: 'ProtocolNotSpecified', 'ProtocolParity', 'ProtocolQuorum', 'ProtocolCorda'
	Protocol Protocol `json:"protocol,omitempty"`
	// ValidatorNodesSku - Gets or sets the blockchain validator nodes Sku.
	ValidatorNodesSku *MemberNodesSku `json:"validatorNodesSku,omitempty"`
	// ProvisioningState - READ-ONLY; Gets or sets the blockchain member provision state. Possible values include: 'NotSpecified', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Stale'
	ProvisioningState MemberProvisioningState `json:"provisioningState,omitempty"`
	// DNS - READ-ONLY; Gets the dns endpoint of the blockchain member.
	DNS *string `json:"dns,omitempty"`
	// UserName - READ-ONLY; Gets the auth user name of the blockchain member.
	UserName *string `json:"userName,omitempty"`
	// Password - Sets the basic auth password of the blockchain member.
	Password *string `json:"password,omitempty"`
	// Consortium - Gets or sets the consortium for the blockchain member.
	Consortium *string `json:"consortium,omitempty"`
	// ConsortiumManagementAccountAddress - READ-ONLY; Gets the managed consortium management account address.
	ConsortiumManagementAccountAddress *string `json:"consortiumManagementAccountAddress,omitempty"`
	// ConsortiumManagementAccountPassword - Sets the managed consortium management account password.
	ConsortiumManagementAccountPassword *string `json:"consortiumManagementAccountPassword,omitempty"`
	// ConsortiumRole - Gets the role of the member in the consortium.
	ConsortiumRole *string `json:"consortiumRole,omitempty"`
	// ConsortiumMemberDisplayName - Gets the display name of the member in the consortium.
	ConsortiumMemberDisplayName *string `json:"consortiumMemberDisplayName,omitempty"`
	// RootContractAddress - READ-ONLY; Gets the Ethereum root contract address of the blockchain.
	RootContractAddress *string `json:"rootContractAddress,omitempty"`
	// PublicKey - READ-ONLY; Gets the public key of the blockchain member (default transaction node).
	PublicKey *string `json:"publicKey,omitempty"`
	// FirewallRules - Gets or sets firewall rules
	FirewallRules *[]FirewallRule `json:"firewallRules,omitempty"`
}

MemberProperties payload of the blockchain member properties for a blockchain member.

func (MemberProperties) MarshalJSON

func (mp MemberProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MemberProperties.

type MemberPropertiesUpdate

type MemberPropertiesUpdate struct {
	// ConsortiumManagementAccountPassword - Sets the managed consortium management account password.
	ConsortiumManagementAccountPassword *string `json:"consortiumManagementAccountPassword,omitempty"`
	// Password - Sets the transaction node dns endpoint basic auth password.
	Password *string `json:"password,omitempty"`
	// FirewallRules - Gets or sets the firewall rules.
	FirewallRules *[]FirewallRule `json:"firewallRules,omitempty"`
}

MemberPropertiesUpdate update the payload of the blockchain member properties for a blockchain member.

type MemberProvisioningState

type MemberProvisioningState string

MemberProvisioningState enumerates the values for member provisioning state.

const (
	// Deleting ...
	Deleting MemberProvisioningState = "Deleting"
	// Failed ...
	Failed MemberProvisioningState = "Failed"
	// NotSpecified ...
	NotSpecified MemberProvisioningState = "NotSpecified"
	// Stale ...
	Stale MemberProvisioningState = "Stale"
	// Succeeded ...
	Succeeded MemberProvisioningState = "Succeeded"
	// Updating ...
	Updating MemberProvisioningState = "Updating"
)

func PossibleMemberProvisioningStateValues

func PossibleMemberProvisioningStateValues() []MemberProvisioningState

PossibleMemberProvisioningStateValues returns an array of possible values for the MemberProvisioningState const type.

type MemberUpdate

type MemberUpdate struct {
	// Tags - Tags of the service which is a list of key value pairs that describes the resource.
	Tags map[string]*string `json:"tags"`
	// MemberPropertiesUpdate - Gets or sets the blockchain member update properties.
	*MemberPropertiesUpdate `json:"properties,omitempty"`
}

MemberUpdate update the payload of the blockchain member which is exposed in the request/response of the resource provider.

func (MemberUpdate) MarshalJSON

func (mu MemberUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MemberUpdate.

func (*MemberUpdate) UnmarshalJSON

func (mu *MemberUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MemberUpdate struct.

type MembersClient

type MembersClient struct {
	BaseClient
}

MembersClient is the REST API for Azure Blockchain Service

func NewMembersClient

func NewMembersClient(subscriptionID string) MembersClient

NewMembersClient creates an instance of the MembersClient client.

func NewMembersClientWithBaseURI

func NewMembersClientWithBaseURI(baseURI string, subscriptionID string) MembersClient

NewMembersClientWithBaseURI creates an instance of the MembersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (MembersClient) Create

func (client MembersClient) Create(ctx context.Context, blockchainMemberName string, resourceGroupName string, blockchainMember *Member) (result MembersCreateFuture, err error)

Create create a blockchain member. Parameters: 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. blockchainMember - payload to create a blockchain member.

func (MembersClient) CreatePreparer

func (client MembersClient) CreatePreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string, blockchainMember *Member) (*http.Request, error)

CreatePreparer prepares the Create request.

func (MembersClient) CreateResponder

func (client MembersClient) CreateResponder(resp *http.Response) (result Member, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (MembersClient) CreateSender

func (client MembersClient) CreateSender(req *http.Request) (future MembersCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (MembersClient) Delete

func (client MembersClient) Delete(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result MembersDeleteFuture, err error)

Delete delete a blockchain member. Parameters: 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.

func (MembersClient) DeletePreparer

func (client MembersClient) DeletePreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (MembersClient) DeleteResponder

func (client MembersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (MembersClient) DeleteSender

func (client MembersClient) DeleteSender(req *http.Request) (future MembersDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (MembersClient) Get

func (client MembersClient) Get(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result Member, err error)

Get get details about a blockchain member. Parameters: 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.

func (MembersClient) GetPreparer

func (client MembersClient) GetPreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (MembersClient) GetResponder

func (client MembersClient) GetResponder(resp *http.Response) (result Member, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (MembersClient) GetSender

func (client MembersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (MembersClient) List

func (client MembersClient) List(ctx context.Context, resourceGroupName string) (result MemberCollectionPage, err error)

List lists the blockchain members for a resource group. Parameters: 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.

func (MembersClient) ListAPIKeys

func (client MembersClient) ListAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result APIKeyCollection, err error)

ListAPIKeys lists the API keys for a blockchain member. Parameters: 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.

func (MembersClient) ListAPIKeysPreparer

func (client MembersClient) ListAPIKeysPreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string) (*http.Request, error)

ListAPIKeysPreparer prepares the ListAPIKeys request.

func (MembersClient) ListAPIKeysResponder

func (client MembersClient) ListAPIKeysResponder(resp *http.Response) (result APIKeyCollection, err error)

ListAPIKeysResponder handles the response to the ListAPIKeys request. The method always closes the http.Response Body.

func (MembersClient) ListAPIKeysSender

func (client MembersClient) ListAPIKeysSender(req *http.Request) (*http.Response, error)

ListAPIKeysSender sends the ListAPIKeys request. The method will close the http.Response Body if it receives an error.

func (MembersClient) ListAll

func (client MembersClient) ListAll(ctx context.Context) (result MemberCollectionPage, err error)

ListAll lists the blockchain members for a subscription.

func (MembersClient) ListAllComplete

func (client MembersClient) ListAllComplete(ctx context.Context) (result MemberCollectionIterator, err error)

ListAllComplete enumerates all values, automatically crossing page boundaries as required.

func (MembersClient) ListAllPreparer

func (client MembersClient) ListAllPreparer(ctx context.Context) (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (MembersClient) ListAllResponder

func (client MembersClient) ListAllResponder(resp *http.Response) (result MemberCollection, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (MembersClient) ListAllSender

func (client MembersClient) ListAllSender(req *http.Request) (*http.Response, error)

ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.

func (MembersClient) ListComplete

func (client MembersClient) ListComplete(ctx context.Context, resourceGroupName string) (result MemberCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (MembersClient) ListConsortiumMembers

func (client MembersClient) ListConsortiumMembers(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result ConsortiumMemberCollectionPage, err error)

ListConsortiumMembers lists the consortium members for a blockchain member. Parameters: 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.

func (MembersClient) ListConsortiumMembersComplete

func (client MembersClient) ListConsortiumMembersComplete(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result ConsortiumMemberCollectionIterator, err error)

ListConsortiumMembersComplete enumerates all values, automatically crossing page boundaries as required.

func (MembersClient) ListConsortiumMembersPreparer

func (client MembersClient) ListConsortiumMembersPreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string) (*http.Request, error)

ListConsortiumMembersPreparer prepares the ListConsortiumMembers request.

func (MembersClient) ListConsortiumMembersResponder

func (client MembersClient) ListConsortiumMembersResponder(resp *http.Response) (result ConsortiumMemberCollection, err error)

ListConsortiumMembersResponder handles the response to the ListConsortiumMembers request. The method always closes the http.Response Body.

func (MembersClient) ListConsortiumMembersSender

func (client MembersClient) ListConsortiumMembersSender(req *http.Request) (*http.Response, error)

ListConsortiumMembersSender sends the ListConsortiumMembers request. The method will close the http.Response Body if it receives an error.

func (MembersClient) ListPreparer

func (client MembersClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (MembersClient) ListRegenerateAPIKeys

func (client MembersClient) ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, resourceGroupName string, APIKey *APIKey) (result APIKeyCollection, err error)

ListRegenerateAPIKeys regenerate the API keys for a blockchain member. Parameters: 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. APIKey - api key to be regenerate

func (MembersClient) ListRegenerateAPIKeysPreparer

func (client MembersClient) ListRegenerateAPIKeysPreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string, APIKey *APIKey) (*http.Request, error)

ListRegenerateAPIKeysPreparer prepares the ListRegenerateAPIKeys request.

func (MembersClient) ListRegenerateAPIKeysResponder

func (client MembersClient) ListRegenerateAPIKeysResponder(resp *http.Response) (result APIKeyCollection, err error)

ListRegenerateAPIKeysResponder handles the response to the ListRegenerateAPIKeys request. The method always closes the http.Response Body.

func (MembersClient) ListRegenerateAPIKeysSender

func (client MembersClient) ListRegenerateAPIKeysSender(req *http.Request) (*http.Response, error)

ListRegenerateAPIKeysSender sends the ListRegenerateAPIKeys request. The method will close the http.Response Body if it receives an error.

func (MembersClient) ListResponder

func (client MembersClient) ListResponder(resp *http.Response) (result MemberCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (MembersClient) ListSender

func (client MembersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (MembersClient) Update

func (client MembersClient) Update(ctx context.Context, blockchainMemberName string, resourceGroupName string, blockchainMember *MemberUpdate) (result Member, err error)

Update update a blockchain member. Parameters: 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. blockchainMember - payload to update the blockchain member.

func (MembersClient) UpdatePreparer

func (client MembersClient) UpdatePreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string, blockchainMember *MemberUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (MembersClient) UpdateResponder

func (client MembersClient) UpdateResponder(resp *http.Response) (result Member, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (MembersClient) UpdateSender

func (client MembersClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type MembersCreateFuture

type MembersCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(MembersClient) (Member, error)
}

MembersCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*MembersCreateFuture) UnmarshalJSON

func (future *MembersCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type MembersDeleteFuture

type MembersDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(MembersClient) (autorest.Response, error)
}

MembersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*MembersDeleteFuture) UnmarshalJSON

func (future *MembersDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type NameAvailability

type NameAvailability struct {
	autorest.Response `json:"-"`
	// NameAvailable - Gets or sets the value indicating whether the name is available.
	NameAvailable *bool `json:"nameAvailable,omitempty"`
	// Message - Gets or sets the message.
	Message *string `json:"message,omitempty"`
	// Reason - Gets or sets the name availability reason. Possible values include: 'NameAvailabilityReasonNotSpecified', 'NameAvailabilityReasonAlreadyExists', 'NameAvailabilityReasonInvalid'
	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 enumerates the values for name availability reason.

const (
	// NameAvailabilityReasonAlreadyExists ...
	NameAvailabilityReasonAlreadyExists NameAvailabilityReason = "AlreadyExists"
	// NameAvailabilityReasonInvalid ...
	NameAvailabilityReasonInvalid NameAvailabilityReason = "Invalid"
	// NameAvailabilityReasonNotSpecified ...
	NameAvailabilityReasonNotSpecified NameAvailabilityReason = "NotSpecified"
)

func PossibleNameAvailabilityReasonValues

func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason

PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.

type NameAvailabilityRequest

type NameAvailabilityRequest struct {
	// Name - Gets or sets the name to check.
	Name *string `json:"name,omitempty"`
	// Type - 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 enumerates the values for node provisioning state.

const (
	// NodeProvisioningStateDeleting ...
	NodeProvisioningStateDeleting NodeProvisioningState = "Deleting"
	// NodeProvisioningStateFailed ...
	NodeProvisioningStateFailed NodeProvisioningState = "Failed"
	// NodeProvisioningStateNotSpecified ...
	NodeProvisioningStateNotSpecified NodeProvisioningState = "NotSpecified"
	// NodeProvisioningStateSucceeded ...
	NodeProvisioningStateSucceeded NodeProvisioningState = "Succeeded"
	// NodeProvisioningStateUpdating ...
	NodeProvisioningStateUpdating NodeProvisioningState = "Updating"
)

func PossibleNodeProvisioningStateValues

func PossibleNodeProvisioningStateValues() []NodeProvisioningState

PossibleNodeProvisioningStateValues returns an array of possible values for the NodeProvisioningState const type.

type OperationResult

type OperationResult struct {
	autorest.Response `json:"-"`
	// Name - Gets or sets the operation name.
	Name *string `json:"name,omitempty"`
	// StartTime - Gets or sets the operation start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Gets or sets the operation end time.
	EndTime *date.Time `json:"endTime,omitempty"`
}

OperationResult operation result payload which is exposed in the response of the resource provider.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the REST API for Azure Blockchain Service

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

List lists the available operations of Microsoft.Blockchain resource provider.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result ResourceProviderOperationCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result ResourceProviderOperationCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Protocol

type Protocol string

Protocol enumerates the values for protocol.

const (
	// ProtocolCorda ...
	ProtocolCorda Protocol = "Corda"
	// ProtocolNotSpecified ...
	ProtocolNotSpecified Protocol = "NotSpecified"
	// ProtocolParity ...
	ProtocolParity Protocol = "Parity"
	// ProtocolQuorum ...
	ProtocolQuorum Protocol = "Quorum"
)

func PossibleProtocolValues

func PossibleProtocolValues() []Protocol

PossibleProtocolValues returns an array of possible values for the Protocol const type.

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified resource Id of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
	Type *string `json:"type,omitempty"`
}

Resource the core properties of the resources.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceProviderOperation

type ResourceProviderOperation struct {
	// Origin - Gets or sets the origin.
	Origin *string `json:"origin,omitempty"`
	// Name - Gets or sets the operation name.
	Name *string `json:"name,omitempty"`
	// IsDataAction - Gets or sets a value indicating whether the operation is a data action or not.
	IsDataAction *bool `json:"isDataAction,omitempty"`
	// Display - Gets or sets operation display
	Display *ResourceProviderOperationDisplay `json:"display,omitempty"`
}

ResourceProviderOperation operation payload which is exposed in the response of the resource provider.

type ResourceProviderOperationCollection

type ResourceProviderOperationCollection struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets the collection of operations.
	Value *[]ResourceProviderOperation `json:"value,omitempty"`
	// NextLink - 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"`
}

ResourceProviderOperationCollection collection of operation payload which is exposed in the response of the resource provider.

func (ResourceProviderOperationCollection) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ResourceProviderOperationCollectionIterator

type ResourceProviderOperationCollectionIterator struct {
	// contains filtered or unexported fields
}

ResourceProviderOperationCollectionIterator provides access to a complete listing of ResourceProviderOperation values.

func NewResourceProviderOperationCollectionIterator

func NewResourceProviderOperationCollectionIterator(page ResourceProviderOperationCollectionPage) ResourceProviderOperationCollectionIterator

Creates a new instance of the ResourceProviderOperationCollectionIterator type.

func (*ResourceProviderOperationCollectionIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResourceProviderOperationCollectionIterator) NextWithContext

func (iter *ResourceProviderOperationCollectionIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResourceProviderOperationCollectionIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResourceProviderOperationCollectionIterator) Response

Response returns the raw server response from the last page request.

func (ResourceProviderOperationCollectionIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResourceProviderOperationCollectionPage

type ResourceProviderOperationCollectionPage struct {
	// contains filtered or unexported fields
}

ResourceProviderOperationCollectionPage contains a page of ResourceProviderOperation values.

func NewResourceProviderOperationCollectionPage

Creates a new instance of the ResourceProviderOperationCollectionPage type.

func (*ResourceProviderOperationCollectionPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResourceProviderOperationCollectionPage) NextWithContext

func (page *ResourceProviderOperationCollectionPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResourceProviderOperationCollectionPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResourceProviderOperationCollectionPage) Response

Response returns the raw server response from the last page request.

func (ResourceProviderOperationCollectionPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ResourceProviderOperationDisplay

type ResourceProviderOperationDisplay struct {
	// Provider - Gets or sets the name of the provider for display purposes.
	Provider *string `json:"provider,omitempty"`
	// Resource - Gets or sets the name of the resource type for display purposes.
	Resource *string `json:"resource,omitempty"`
	// Operation - Gets or sets the name of the operation for display purposes.
	Operation *string `json:"operation,omitempty"`
	// Description - Gets or sets the description of the provider for display purposes.
	Description *string `json:"description,omitempty"`
}

ResourceProviderOperationDisplay operation display payload which is exposed in the response of the resource provider.

type ResourceTypeSku

type ResourceTypeSku struct {
	// ResourceType - Gets or sets the resource type
	ResourceType *string `json:"resourceType,omitempty"`
	// Skus - Gets or sets the Skus
	Skus *[]SkuSetting `json:"skus,omitempty"`
}

ResourceTypeSku resource type Sku.

type ResourceTypeSkuCollection

type ResourceTypeSkuCollection struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets the collection of resource type Sku.
	Value *[]ResourceTypeSku `json:"value,omitempty"`
}

ResourceTypeSkuCollection collection of the resource type Sku.

type Sku

type Sku struct {
	// Name - Gets or sets Sku name
	Name *string `json:"name,omitempty"`
	// Tier - Gets or sets Sku tier
	Tier *string `json:"tier,omitempty"`
}

Sku blockchain member Sku in payload

type SkuSetting

type SkuSetting struct {
	// Name - Gets or sets the Sku name.
	Name *string `json:"name,omitempty"`
	// Tier - Gets or sets the Sku tier.
	Tier *string `json:"tier,omitempty"`
	// Locations - Gets or sets the locations.
	Locations *[]string `json:"locations,omitempty"`
	// RequiredFeatures - Gets or sets the required features.
	RequiredFeatures *[]string `json:"requiredFeatures,omitempty"`
}

SkuSetting sku Setting.

type SkusClient

type SkusClient struct {
	BaseClient
}

SkusClient is the REST API for Azure Blockchain Service

func NewSkusClient

func NewSkusClient(subscriptionID string) SkusClient

NewSkusClient creates an instance of the SkusClient client.

func NewSkusClientWithBaseURI

func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient

NewSkusClientWithBaseURI creates an instance of the SkusClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SkusClient) List

func (client SkusClient) List(ctx context.Context) (result ResourceTypeSkuCollection, err error)

List lists the Skus of the resource type.

func (SkusClient) ListPreparer

func (client SkusClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (SkusClient) ListResponder

func (client SkusClient) ListResponder(resp *http.Response) (result ResourceTypeSkuCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SkusClient) ListSender

func (client SkusClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type TrackedResource

type TrackedResource struct {
	// Location - The GEO location of the blockchain service.
	Location *string `json:"location,omitempty"`
	// Tags - Tags of the service which is a list of key value pairs that describes the resource.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Fully qualified resource Id of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a top level resource.

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type TransactionNode

type TransactionNode struct {
	autorest.Response `json:"-"`
	// Location - Gets or sets the transaction node location.
	Location *string `json:"location,omitempty"`
	// TransactionNodeProperties - Gets or sets the blockchain member properties.
	*TransactionNodeProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
	Type *string `json:"type,omitempty"`
}

TransactionNode payload of the transaction node which is the request/response of the resource provider.

func (TransactionNode) MarshalJSON

func (tn TransactionNode) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransactionNode.

func (*TransactionNode) UnmarshalJSON

func (tn *TransactionNode) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransactionNode struct.

type TransactionNodeCollection

type TransactionNodeCollection struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets the collection of transaction nodes.
	Value *[]TransactionNode `json:"value,omitempty"`
	// NextLink - 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"`
}

TransactionNodeCollection collection of transaction node payload which is exposed in the request/response of the resource provider.

func (TransactionNodeCollection) IsEmpty

func (tnc TransactionNodeCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TransactionNodeCollectionIterator

type TransactionNodeCollectionIterator struct {
	// contains filtered or unexported fields
}

TransactionNodeCollectionIterator provides access to a complete listing of TransactionNode values.

func NewTransactionNodeCollectionIterator

func NewTransactionNodeCollectionIterator(page TransactionNodeCollectionPage) TransactionNodeCollectionIterator

Creates a new instance of the TransactionNodeCollectionIterator type.

func (*TransactionNodeCollectionIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TransactionNodeCollectionIterator) NextWithContext

func (iter *TransactionNodeCollectionIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (TransactionNodeCollectionIterator) NotDone

func (iter TransactionNodeCollectionIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (TransactionNodeCollectionIterator) Response

Response returns the raw server response from the last page request.

func (TransactionNodeCollectionIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type TransactionNodeCollectionPage

type TransactionNodeCollectionPage struct {
	// contains filtered or unexported fields
}

TransactionNodeCollectionPage contains a page of TransactionNode values.

func NewTransactionNodeCollectionPage

Creates a new instance of the TransactionNodeCollectionPage type.

func (*TransactionNodeCollectionPage) Next

func (page *TransactionNodeCollectionPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TransactionNodeCollectionPage) NextWithContext

func (page *TransactionNodeCollectionPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (TransactionNodeCollectionPage) NotDone

func (page TransactionNodeCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (TransactionNodeCollectionPage) Response

Response returns the raw server response from the last page request.

func (TransactionNodeCollectionPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type TransactionNodeProperties

type TransactionNodeProperties struct {
	// ProvisioningState - READ-ONLY; Gets or sets the blockchain member provision state. Possible values include: 'NodeProvisioningStateNotSpecified', 'NodeProvisioningStateUpdating', 'NodeProvisioningStateDeleting', 'NodeProvisioningStateSucceeded', 'NodeProvisioningStateFailed'
	ProvisioningState NodeProvisioningState `json:"provisioningState,omitempty"`
	// DNS - READ-ONLY; Gets or sets the transaction node dns endpoint.
	DNS *string `json:"dns,omitempty"`
	// PublicKey - READ-ONLY; Gets or sets the transaction node public key.
	PublicKey *string `json:"publicKey,omitempty"`
	// UserName - READ-ONLY; Gets or sets the transaction node dns endpoint basic auth user name.
	UserName *string `json:"userName,omitempty"`
	// Password - Sets the transaction node dns endpoint basic auth password.
	Password *string `json:"password,omitempty"`
	// FirewallRules - Gets or sets the firewall rules.
	FirewallRules *[]FirewallRule `json:"firewallRules,omitempty"`
}

TransactionNodeProperties payload of transaction node properties payload in the transaction node payload.

func (TransactionNodeProperties) MarshalJSON

func (tnp TransactionNodeProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransactionNodeProperties.

type TransactionNodePropertiesUpdate

type TransactionNodePropertiesUpdate struct {
	// Password - Sets the transaction node dns endpoint basic auth password.
	Password *string `json:"password,omitempty"`
	// FirewallRules - Gets or sets the firewall rules.
	FirewallRules *[]FirewallRule `json:"firewallRules,omitempty"`
}

TransactionNodePropertiesUpdate update the payload of the transaction node properties in the transaction node payload.

type TransactionNodeUpdate

type TransactionNodeUpdate struct {
	// TransactionNodePropertiesUpdate - Gets or sets the transaction node update 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 (tnu TransactionNodeUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransactionNodeUpdate.

func (*TransactionNodeUpdate) UnmarshalJSON

func (tnu *TransactionNodeUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransactionNodeUpdate struct.

type TransactionNodesClient

type TransactionNodesClient struct {
	BaseClient
}

TransactionNodesClient is the REST API for Azure Blockchain Service

func NewTransactionNodesClient

func NewTransactionNodesClient(subscriptionID string) TransactionNodesClient

NewTransactionNodesClient creates an instance of the TransactionNodesClient client.

func NewTransactionNodesClientWithBaseURI

func NewTransactionNodesClientWithBaseURI(baseURI string, subscriptionID string) TransactionNodesClient

NewTransactionNodesClientWithBaseURI creates an instance of the TransactionNodesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TransactionNodesClient) Create

func (client TransactionNodesClient) Create(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, transactionNode *TransactionNode) (result TransactionNodesCreateFuture, err error)

Create create or update the transaction node. Parameters: 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. transactionNode - payload to create the transaction node.

func (TransactionNodesClient) CreatePreparer

func (client TransactionNodesClient) CreatePreparer(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, transactionNode *TransactionNode) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TransactionNodesClient) CreateResponder

func (client TransactionNodesClient) CreateResponder(resp *http.Response) (result TransactionNode, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (TransactionNodesClient) CreateSender

func (client TransactionNodesClient) CreateSender(req *http.Request) (future TransactionNodesCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (TransactionNodesClient) Delete

func (client TransactionNodesClient) Delete(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (result TransactionNodesDeleteFuture, err error)

Delete delete the transaction node. Parameters: 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.

func (TransactionNodesClient) DeletePreparer

func (client TransactionNodesClient) DeletePreparer(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (TransactionNodesClient) DeleteResponder

func (client TransactionNodesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (TransactionNodesClient) DeleteSender

func (client TransactionNodesClient) DeleteSender(req *http.Request) (future TransactionNodesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (TransactionNodesClient) Get

func (client TransactionNodesClient) Get(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (result TransactionNode, err error)

Get get the details of the transaction node. Parameters: 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.

func (TransactionNodesClient) GetPreparer

func (client TransactionNodesClient) GetPreparer(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (TransactionNodesClient) GetResponder

func (client TransactionNodesClient) GetResponder(resp *http.Response) (result TransactionNode, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (TransactionNodesClient) GetSender

func (client TransactionNodesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (TransactionNodesClient) List

func (client TransactionNodesClient) List(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result TransactionNodeCollectionPage, err error)

List lists the transaction nodes for a blockchain member. Parameters: 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.

func (TransactionNodesClient) ListAPIKeys

func (client TransactionNodesClient) ListAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (result APIKeyCollection, err error)

ListAPIKeys list the API keys for the transaction node. Parameters: 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.

func (TransactionNodesClient) ListAPIKeysPreparer

func (client TransactionNodesClient) ListAPIKeysPreparer(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string) (*http.Request, error)

ListAPIKeysPreparer prepares the ListAPIKeys request.

func (TransactionNodesClient) ListAPIKeysResponder

func (client TransactionNodesClient) ListAPIKeysResponder(resp *http.Response) (result APIKeyCollection, err error)

ListAPIKeysResponder handles the response to the ListAPIKeys request. The method always closes the http.Response Body.

func (TransactionNodesClient) ListAPIKeysSender

func (client TransactionNodesClient) ListAPIKeysSender(req *http.Request) (*http.Response, error)

ListAPIKeysSender sends the ListAPIKeys request. The method will close the http.Response Body if it receives an error.

func (TransactionNodesClient) ListComplete

func (client TransactionNodesClient) ListComplete(ctx context.Context, blockchainMemberName string, resourceGroupName string) (result TransactionNodeCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (TransactionNodesClient) ListPreparer

func (client TransactionNodesClient) ListPreparer(ctx context.Context, blockchainMemberName string, resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (TransactionNodesClient) ListRegenerateAPIKeys

func (client TransactionNodesClient) ListRegenerateAPIKeys(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, APIKey *APIKey) (result APIKeyCollection, err error)

ListRegenerateAPIKeys regenerate the API keys for the blockchain member. Parameters: 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. APIKey - api key to be regenerated

func (TransactionNodesClient) ListRegenerateAPIKeysPreparer

func (client TransactionNodesClient) ListRegenerateAPIKeysPreparer(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, APIKey *APIKey) (*http.Request, error)

ListRegenerateAPIKeysPreparer prepares the ListRegenerateAPIKeys request.

func (TransactionNodesClient) ListRegenerateAPIKeysResponder

func (client TransactionNodesClient) ListRegenerateAPIKeysResponder(resp *http.Response) (result APIKeyCollection, err error)

ListRegenerateAPIKeysResponder handles the response to the ListRegenerateAPIKeys request. The method always closes the http.Response Body.

func (TransactionNodesClient) ListRegenerateAPIKeysSender

func (client TransactionNodesClient) ListRegenerateAPIKeysSender(req *http.Request) (*http.Response, error)

ListRegenerateAPIKeysSender sends the ListRegenerateAPIKeys request. The method will close the http.Response Body if it receives an error.

func (TransactionNodesClient) ListResponder

func (client TransactionNodesClient) ListResponder(resp *http.Response) (result TransactionNodeCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (TransactionNodesClient) ListSender

func (client TransactionNodesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (TransactionNodesClient) Update

func (client TransactionNodesClient) Update(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, transactionNode *TransactionNodeUpdate) (result TransactionNode, err error)

Update update the transaction node. Parameters: 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. transactionNode - payload to create the transaction node.

func (TransactionNodesClient) UpdatePreparer

func (client TransactionNodesClient) UpdatePreparer(ctx context.Context, blockchainMemberName string, transactionNodeName string, resourceGroupName string, transactionNode *TransactionNodeUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (TransactionNodesClient) UpdateResponder

func (client TransactionNodesClient) UpdateResponder(resp *http.Response) (result TransactionNode, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (TransactionNodesClient) UpdateSender

func (client TransactionNodesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type TransactionNodesCreateFuture

type TransactionNodesCreateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TransactionNodesClient) (TransactionNode, error)
}

TransactionNodesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*TransactionNodesCreateFuture) UnmarshalJSON

func (future *TransactionNodesCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TransactionNodesDeleteFuture

type TransactionNodesDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(TransactionNodesClient) (autorest.Response, error)
}

TransactionNodesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*TransactionNodesDeleteFuture) UnmarshalJSON

func (future *TransactionNodesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL