azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain Index | Files | Directories

package blockchain

import "github.com/Azure/azure-sdk-for-go/services/preview/blockchain/mgmt/2018-06-01-preview/blockchain"

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

REST API for Azure Blockchain Service

Index

Package Files

client.go locations.go memberoperationresults.go members.go models.go operations.go skus.go transactionnodes.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type APIKey Uses

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 Uses

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 Uses

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

BaseClient is the base client for Blockchain.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Consortium Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (cmc ConsortiumMemberCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConsortiumMemberCollectionIterator Uses

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

ConsortiumMemberCollectionIterator provides access to a complete listing of ConsortiumMember values.

func NewConsortiumMemberCollectionIterator Uses

func NewConsortiumMemberCollectionIterator(page ConsortiumMemberCollectionPage) ConsortiumMemberCollectionIterator

Creates a new instance of the ConsortiumMemberCollectionIterator type.

func (*ConsortiumMemberCollectionIterator) Next Uses

func (iter *ConsortiumMemberCollectionIterator) 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 (*ConsortiumMemberCollectionIterator) NextWithContext Uses

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 Uses

func (iter ConsortiumMemberCollectionIterator) NotDone() bool

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

func (ConsortiumMemberCollectionIterator) Response Uses

func (iter ConsortiumMemberCollectionIterator) Response() ConsortiumMemberCollection

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

func (ConsortiumMemberCollectionIterator) Value Uses

func (iter ConsortiumMemberCollectionIterator) Value() ConsortiumMember

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

type ConsortiumMemberCollectionPage Uses

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

ConsortiumMemberCollectionPage contains a page of ConsortiumMember values.

func NewConsortiumMemberCollectionPage Uses

func NewConsortiumMemberCollectionPage(getNextPage func(context.Context, ConsortiumMemberCollection) (ConsortiumMemberCollection, error)) ConsortiumMemberCollectionPage

Creates a new instance of the ConsortiumMemberCollectionPage type.

func (*ConsortiumMemberCollectionPage) Next Uses

func (page *ConsortiumMemberCollectionPage) 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 (*ConsortiumMemberCollectionPage) NextWithContext Uses

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 Uses

func (page ConsortiumMemberCollectionPage) NotDone() bool

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

func (ConsortiumMemberCollectionPage) Response Uses

func (page ConsortiumMemberCollectionPage) Response() ConsortiumMemberCollection

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

func (ConsortiumMemberCollectionPage) Values Uses

func (page ConsortiumMemberCollectionPage) Values() []ConsortiumMember

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

type FirewallRule Uses

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 Uses

type LocationsClient struct {
    BaseClient
}

LocationsClient is the REST API for Azure Blockchain Service

func NewLocationsClient Uses

func NewLocationsClient(subscriptionID string) LocationsClient

NewLocationsClient creates an instance of the LocationsClient client.

func NewLocationsClientWithBaseURI Uses

func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient

NewLocationsClientWithBaseURI creates an instance of the LocationsClient client.

func (LocationsClient) CheckNameAvailability Uses

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 Uses

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

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (LocationsClient) CheckNameAvailabilityResponder Uses

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 Uses

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 Uses

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 Uses

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

ListConsortiumsPreparer prepares the ListConsortiums request.

func (LocationsClient) ListConsortiumsResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Member.

func (*Member) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Member struct.

type MemberCollection Uses

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 Uses

func (mc MemberCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MemberCollectionIterator Uses

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

MemberCollectionIterator provides access to a complete listing of Member values.

func NewMemberCollectionIterator Uses

func NewMemberCollectionIterator(page MemberCollectionPage) MemberCollectionIterator

Creates a new instance of the MemberCollectionIterator type.

func (*MemberCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter MemberCollectionIterator) NotDone() bool

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

func (MemberCollectionIterator) Response Uses

func (iter MemberCollectionIterator) Response() MemberCollection

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

func (MemberCollectionIterator) Value Uses

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 Uses

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

MemberCollectionPage contains a page of Member values.

func NewMemberCollectionPage Uses

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

Creates a new instance of the MemberCollectionPage type.

func (*MemberCollectionPage) Next Uses

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 Uses

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 Uses

func (page MemberCollectionPage) NotDone() bool

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

func (MemberCollectionPage) Response Uses

func (page MemberCollectionPage) Response() MemberCollection

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

func (MemberCollectionPage) Values Uses

func (page MemberCollectionPage) Values() []Member

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

type MemberNodesSku Uses

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 Uses

type MemberOperationResultsClient struct {
    BaseClient
}

MemberOperationResultsClient is the REST API for Azure Blockchain Service

func NewMemberOperationResultsClient Uses

func NewMemberOperationResultsClient(subscriptionID string) MemberOperationResultsClient

NewMemberOperationResultsClient creates an instance of the MemberOperationResultsClient client.

func NewMemberOperationResultsClientWithBaseURI Uses

func NewMemberOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) MemberOperationResultsClient

NewMemberOperationResultsClientWithBaseURI creates an instance of the MemberOperationResultsClient client.

func (MemberOperationResultsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (MemberOperationResultsClient) GetResponder Uses

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 Uses

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 Uses

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.

type MemberPropertiesUpdate Uses

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 Uses

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 Uses

func PossibleMemberProvisioningStateValues() []MemberProvisioningState

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

type MemberUpdate Uses

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 Uses

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

MarshalJSON is the custom marshaler for MemberUpdate.

func (*MemberUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for MemberUpdate struct.

type MembersClient Uses

type MembersClient struct {
    BaseClient
}

MembersClient is the REST API for Azure Blockchain Service

func NewMembersClient Uses

func NewMembersClient(subscriptionID string) MembersClient

NewMembersClient creates an instance of the MembersClient client.

func NewMembersClientWithBaseURI Uses

func NewMembersClientWithBaseURI(baseURI string, subscriptionID string) MembersClient

NewMembersClientWithBaseURI creates an instance of the MembersClient client.

func (MembersClient) Create Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (MembersClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (MembersClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (MembersClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListAPIKeysPreparer prepares the ListAPIKeys request.

func (MembersClient) ListAPIKeysResponder Uses

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 Uses

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 Uses

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

ListAll lists the blockchain members for a subscription.

func (MembersClient) ListAllComplete Uses

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

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

func (MembersClient) ListAllPreparer Uses

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

ListAllPreparer prepares the ListAll request.

func (MembersClient) ListAllResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListConsortiumMembersPreparer prepares the ListConsortiumMembers request.

func (MembersClient) ListConsortiumMembersResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (MembersClient) ListRegenerateAPIKeys Uses

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 Uses

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

ListRegenerateAPIKeysPreparer prepares the ListRegenerateAPIKeys request.

func (MembersClient) ListRegenerateAPIKeysResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (MembersClient) UpdateResponder Uses

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 Uses

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 Uses

type MembersCreateFuture struct {
    azure.Future
}

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

func (*MembersCreateFuture) Result Uses

func (future *MembersCreateFuture) Result(client MembersClient) (mVar Member, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type MembersDeleteFuture Uses

type MembersDeleteFuture struct {
    azure.Future
}

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

func (*MembersDeleteFuture) Result Uses

func (future *MembersDeleteFuture) Result(client MembersClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type NameAvailability Uses

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 Uses

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 Uses

func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason

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

type NameAvailabilityRequest Uses

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 Uses

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 Uses

func PossibleNodeProvisioningStateValues() []NodeProvisioningState

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

type OperationResult Uses

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 Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the REST API for Azure Blockchain Service

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result ResourceProviderOperationCollectionPage, err error)

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

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

func PossibleProtocolValues() []Protocol

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

type Resource Uses

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.

type ResourceProviderOperation Uses

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 Uses

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 Uses

func (rpoc ResourceProviderOperationCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResourceProviderOperationCollectionIterator Uses

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

ResourceProviderOperationCollectionIterator provides access to a complete listing of ResourceProviderOperation values.

func NewResourceProviderOperationCollectionIterator Uses

func NewResourceProviderOperationCollectionIterator(page ResourceProviderOperationCollectionPage) ResourceProviderOperationCollectionIterator

Creates a new instance of the ResourceProviderOperationCollectionIterator type.

func (*ResourceProviderOperationCollectionIterator) Next Uses

func (iter *ResourceProviderOperationCollectionIterator) 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 (*ResourceProviderOperationCollectionIterator) NextWithContext Uses

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 Uses

func (iter ResourceProviderOperationCollectionIterator) NotDone() bool

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

func (ResourceProviderOperationCollectionIterator) Response Uses

func (iter ResourceProviderOperationCollectionIterator) Response() ResourceProviderOperationCollection

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

func (ResourceProviderOperationCollectionIterator) Value Uses

func (iter ResourceProviderOperationCollectionIterator) Value() ResourceProviderOperation

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

type ResourceProviderOperationCollectionPage Uses

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

ResourceProviderOperationCollectionPage contains a page of ResourceProviderOperation values.

func NewResourceProviderOperationCollectionPage Uses

func NewResourceProviderOperationCollectionPage(getNextPage func(context.Context, ResourceProviderOperationCollection) (ResourceProviderOperationCollection, error)) ResourceProviderOperationCollectionPage

Creates a new instance of the ResourceProviderOperationCollectionPage type.

func (*ResourceProviderOperationCollectionPage) Next Uses

func (page *ResourceProviderOperationCollectionPage) 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 (*ResourceProviderOperationCollectionPage) NextWithContext Uses

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 Uses

func (page ResourceProviderOperationCollectionPage) NotDone() bool

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

func (ResourceProviderOperationCollectionPage) Response Uses

func (page ResourceProviderOperationCollectionPage) Response() ResourceProviderOperationCollection

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

func (ResourceProviderOperationCollectionPage) Values Uses

func (page ResourceProviderOperationCollectionPage) Values() []ResourceProviderOperation

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

type ResourceProviderOperationDisplay Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type SkusClient struct {
    BaseClient
}

SkusClient is the REST API for Azure Blockchain Service

func NewSkusClient Uses

func NewSkusClient(subscriptionID string) SkusClient

NewSkusClient creates an instance of the SkusClient client.

func NewSkusClientWithBaseURI Uses

func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient

NewSkusClientWithBaseURI creates an instance of the SkusClient client.

func (SkusClient) List Uses

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

List lists the Skus of the resource type.

func (SkusClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (SkusClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for TrackedResource.

type TransactionNode Uses

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 Uses

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

MarshalJSON is the custom marshaler for TransactionNode.

func (*TransactionNode) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for TransactionNode struct.

type TransactionNodeCollection Uses

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 Uses

func (tnc TransactionNodeCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TransactionNodeCollectionIterator Uses

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

TransactionNodeCollectionIterator provides access to a complete listing of TransactionNode values.

func NewTransactionNodeCollectionIterator Uses

func NewTransactionNodeCollectionIterator(page TransactionNodeCollectionPage) TransactionNodeCollectionIterator

Creates a new instance of the TransactionNodeCollectionIterator type.

func (*TransactionNodeCollectionIterator) Next Uses

func (iter *TransactionNodeCollectionIterator) 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 (*TransactionNodeCollectionIterator) NextWithContext Uses

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 Uses

func (iter TransactionNodeCollectionIterator) NotDone() bool

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

func (TransactionNodeCollectionIterator) Response Uses

func (iter TransactionNodeCollectionIterator) Response() TransactionNodeCollection

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

func (TransactionNodeCollectionIterator) Value Uses

func (iter TransactionNodeCollectionIterator) Value() TransactionNode

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

type TransactionNodeCollectionPage Uses

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

TransactionNodeCollectionPage contains a page of TransactionNode values.

func NewTransactionNodeCollectionPage Uses

func NewTransactionNodeCollectionPage(getNextPage func(context.Context, TransactionNodeCollection) (TransactionNodeCollection, error)) TransactionNodeCollectionPage

Creates a new instance of the TransactionNodeCollectionPage type.

func (*TransactionNodeCollectionPage) Next Uses

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 Uses

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 Uses

func (page TransactionNodeCollectionPage) NotDone() bool

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

func (TransactionNodeCollectionPage) Response Uses

func (page TransactionNodeCollectionPage) Response() TransactionNodeCollection

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

func (TransactionNodeCollectionPage) Values Uses

func (page TransactionNodeCollectionPage) Values() []TransactionNode

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

type TransactionNodeProperties Uses

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.

type TransactionNodePropertiesUpdate Uses

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 Uses

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 Uses

func (tnu TransactionNodeUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransactionNodeUpdate.

func (*TransactionNodeUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for TransactionNodeUpdate struct.

type TransactionNodesClient Uses

type TransactionNodesClient struct {
    BaseClient
}

TransactionNodesClient is the REST API for Azure Blockchain Service

func NewTransactionNodesClient Uses

func NewTransactionNodesClient(subscriptionID string) TransactionNodesClient

NewTransactionNodesClient creates an instance of the TransactionNodesClient client.

func NewTransactionNodesClientWithBaseURI Uses

func NewTransactionNodesClientWithBaseURI(baseURI string, subscriptionID string) TransactionNodesClient

NewTransactionNodesClientWithBaseURI creates an instance of the TransactionNodesClient client.

func (TransactionNodesClient) Create Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (TransactionNodesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (TransactionNodesClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListAPIKeysPreparer prepares the ListAPIKeys request.

func (TransactionNodesClient) ListAPIKeysResponder Uses

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 Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (TransactionNodesClient) ListRegenerateAPIKeys Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type TransactionNodesCreateFuture struct {
    azure.Future
}

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

func (*TransactionNodesCreateFuture) Result Uses

func (future *TransactionNodesCreateFuture) Result(client TransactionNodesClient) (tn TransactionNode, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type TransactionNodesDeleteFuture Uses

type TransactionNodesDeleteFuture struct {
    azure.Future
}

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

func (*TransactionNodesDeleteFuture) Result Uses

func (future *TransactionNodesDeleteFuture) Result(client TransactionNodesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

Directories

PathSynopsis
blockchainapi

Package blockchain imports 9 packages (graph) and is imported by 3 packages. Updated 2019-08-13. Refresh now. Tools for package owners.