devices

package
v14.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package devices implements the Azure ARM Devices service API version 2016-02-03.

Use this API to manage the IoT hubs in your Azure subscription.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Devices
	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 AccessRights

type AccessRights string

AccessRights enumerates the values for access rights.

const (
	// DeviceConnect ...
	DeviceConnect AccessRights = "DeviceConnect"
	// RegistryRead ...
	RegistryRead AccessRights = "RegistryRead"
	// RegistryReadDeviceConnect ...
	RegistryReadDeviceConnect AccessRights = "RegistryRead, DeviceConnect"
	// RegistryReadRegistryWrite ...
	RegistryReadRegistryWrite AccessRights = "RegistryRead, RegistryWrite"
	// RegistryReadRegistryWriteDeviceConnect ...
	RegistryReadRegistryWriteDeviceConnect AccessRights = "RegistryRead, RegistryWrite, DeviceConnect"
	// RegistryReadRegistryWriteServiceConnect ...
	RegistryReadRegistryWriteServiceConnect AccessRights = "RegistryRead, RegistryWrite, ServiceConnect"
	// RegistryReadRegistryWriteServiceConnectDeviceConnect ...
	RegistryReadRegistryWriteServiceConnectDeviceConnect AccessRights = "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"
	// RegistryReadServiceConnect ...
	RegistryReadServiceConnect AccessRights = "RegistryRead, ServiceConnect"
	// RegistryReadServiceConnectDeviceConnect ...
	RegistryReadServiceConnectDeviceConnect AccessRights = "RegistryRead, ServiceConnect, DeviceConnect"
	// RegistryWrite ...
	RegistryWrite AccessRights = "RegistryWrite"
	// RegistryWriteDeviceConnect ...
	RegistryWriteDeviceConnect AccessRights = "RegistryWrite, DeviceConnect"
	// RegistryWriteServiceConnect ...
	RegistryWriteServiceConnect AccessRights = "RegistryWrite, ServiceConnect"
	// RegistryWriteServiceConnectDeviceConnect ...
	RegistryWriteServiceConnectDeviceConnect AccessRights = "RegistryWrite, ServiceConnect, DeviceConnect"
	// ServiceConnect ...
	ServiceConnect AccessRights = "ServiceConnect"
	// ServiceConnectDeviceConnect ...
	ServiceConnectDeviceConnect AccessRights = "ServiceConnect, DeviceConnect"
)

type BaseClient

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

BaseClient is the base client for Devices.

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.

type Capabilities

type Capabilities string

Capabilities enumerates the values for capabilities.

const (
	// DeviceManagement ...
	DeviceManagement Capabilities = "DeviceManagement"
	// None ...
	None Capabilities = "None"
)

type CloudToDeviceProperties

type CloudToDeviceProperties struct {
	// MaxDeliveryCount - The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
	MaxDeliveryCount *int32 `json:"maxDeliveryCount,omitempty"`
	// DefaultTTLAsIso8601 - The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
	DefaultTTLAsIso8601 *string             `json:"defaultTtlAsIso8601,omitempty"`
	Feedback            *FeedbackProperties `json:"feedback,omitempty"`
}

CloudToDeviceProperties the IoT hub cloud-to-device messaging properties.

type ErrorDetails

type ErrorDetails struct {
	// Code - The error code.
	Code *string `json:"Code,omitempty"`
	// HTTPStatusCode - The HTTP status code.
	HTTPStatusCode *string `json:"HttpStatusCode,omitempty"`
	// Message - The error message.
	Message *string `json:"Message,omitempty"`
	// Details - The error details.
	Details *string `json:"Details,omitempty"`
}

ErrorDetails error details.

type EventHubConsumerGroupInfo

type EventHubConsumerGroupInfo struct {
	autorest.Response `json:"-"`
	// Tags - The tags.
	Tags map[string]*string `json:"tags"`
	// ID - The Event Hub-compatible consumer group identifier.
	ID *string `json:"id,omitempty"`
	// Name - The Event Hub-compatible consumer group name.
	Name *string `json:"name,omitempty"`
}

EventHubConsumerGroupInfo the properties of the EventHubConsumerGroupInfo object.

func (EventHubConsumerGroupInfo) MarshalJSON

func (ehcgi EventHubConsumerGroupInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventHubConsumerGroupInfo.

type EventHubConsumerGroupsListResult

type EventHubConsumerGroupsListResult struct {
	autorest.Response `json:"-"`
	// Value - The array of Event Hub-compatible consumer group names.
	Value *[]string `json:"value,omitempty"`
	// NextLink - The next link.
	NextLink *string `json:"nextLink,omitempty"`
}

EventHubConsumerGroupsListResult the JSON-serialized array of Event Hub-compatible consumer group names with a next link.

func (EventHubConsumerGroupsListResult) IsEmpty

func (ehcglr EventHubConsumerGroupsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EventHubConsumerGroupsListResultIterator

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

EventHubConsumerGroupsListResultIterator provides access to a complete listing of string values.

func (*EventHubConsumerGroupsListResultIterator) 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.

func (EventHubConsumerGroupsListResultIterator) NotDone

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

func (EventHubConsumerGroupsListResultIterator) Response

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

func (EventHubConsumerGroupsListResultIterator) Value

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

type EventHubConsumerGroupsListResultPage

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

EventHubConsumerGroupsListResultPage contains a page of string values.

func (*EventHubConsumerGroupsListResultPage) 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.

func (EventHubConsumerGroupsListResultPage) NotDone

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

func (EventHubConsumerGroupsListResultPage) Response

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

func (EventHubConsumerGroupsListResultPage) Values

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

type EventHubProperties

type EventHubProperties struct {
	// RetentionTimeInDays - The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
	RetentionTimeInDays *int64 `json:"retentionTimeInDays,omitempty"`
	// PartitionCount - The number of paritions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.
	PartitionCount *int32 `json:"partitionCount,omitempty"`
	// PartitionIds - The partition ids in the Event Hub-compatible endpoint.
	PartitionIds *[]string `json:"partitionIds,omitempty"`
	// Path - The Event Hub-compatible name.
	Path *string `json:"path,omitempty"`
	// Endpoint - The Event Hub-compatible endpoint.
	Endpoint *string `json:"endpoint,omitempty"`
}

EventHubProperties the properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.

type ExportDevicesRequest

type ExportDevicesRequest struct {
	// ExportBlobContainerURI - The export blob container URI.
	ExportBlobContainerURI *string `json:"ExportBlobContainerUri,omitempty"`
	// ExcludeKeys - The value indicating whether keys should be excluded during export.
	ExcludeKeys *bool `json:"ExcludeKeys,omitempty"`
}

ExportDevicesRequest use to provide parameters when requesting an export of all devices in the IoT hub.

type FeedbackProperties

type FeedbackProperties struct {
	// LockDurationAsIso8601 - The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
	LockDurationAsIso8601 *string `json:"lockDurationAsIso8601,omitempty"`
	// TTLAsIso8601 - The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
	TTLAsIso8601 *string `json:"ttlAsIso8601,omitempty"`
	// MaxDeliveryCount - The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
	MaxDeliveryCount *int32 `json:"maxDeliveryCount,omitempty"`
}

FeedbackProperties the properties of the feedback queue for cloud-to-device messages.

type IPFilterActionType

type IPFilterActionType string

IPFilterActionType enumerates the values for ip filter action type.

const (
	// Accept ...
	Accept IPFilterActionType = "Accept"
	// Reject ...
	Reject IPFilterActionType = "Reject"
)

type IPFilterRule

type IPFilterRule struct {
	// FilterName - The name of the IP filter rule.
	FilterName *string `json:"filterName,omitempty"`
	// Action - The desired action for requests captured by this rule. Possible values include: 'Accept', 'Reject'
	Action IPFilterActionType `json:"action,omitempty"`
	// IPMask - A string that contains the IP address range in CIDR notation for the rule.
	IPMask *string `json:"ipMask,omitempty"`
}

IPFilterRule the IP filter rules for the IoT hub.

type ImportDevicesRequest

type ImportDevicesRequest struct {
	// InputBlobContainerURI - The input blob container URI.
	InputBlobContainerURI *string `json:"InputBlobContainerUri,omitempty"`
	// OutputBlobContainerURI - The output blob container URI.
	OutputBlobContainerURI *string `json:"OutputBlobContainerUri,omitempty"`
}

ImportDevicesRequest use to provide parameters when requesting an import of all devices in the hub.

type IotHubCapacity

type IotHubCapacity struct {
	// Minimum - The minimum number of units.
	Minimum *int64 `json:"minimum,omitempty"`
	// Maximum - The maximum number of units.
	Maximum *int64 `json:"maximum,omitempty"`
	// Default - The default number of units.
	Default *int64 `json:"default,omitempty"`
	// ScaleType - The type of the scaling enabled. Possible values include: 'IotHubScaleTypeAutomatic', 'IotHubScaleTypeManual', 'IotHubScaleTypeNone'
	ScaleType IotHubScaleType `json:"scaleType,omitempty"`
}

IotHubCapacity ioT Hub capacity information.

type IotHubDescription

type IotHubDescription struct {
	autorest.Response `json:"-"`
	// Subscriptionid - The subscription identifier.
	Subscriptionid *string `json:"subscriptionid,omitempty"`
	// Resourcegroup - The name of the resource group that contains the IoT hub. A resource group name uniquely identifies the resource group within the subscription.
	Resourcegroup *string `json:"resourcegroup,omitempty"`
	// Etag - The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
	Etag       *string           `json:"etag,omitempty"`
	Properties *IotHubProperties `json:"properties,omitempty"`
	Sku        *IotHubSkuInfo    `json:"sku,omitempty"`
	// ID - The resource identifier.
	ID *string `json:"id,omitempty"`
	// Name - The resource name.
	Name *string `json:"name,omitempty"`
	// Type - The resource type.
	Type *string `json:"type,omitempty"`
	// Location - The resource location.
	Location *string `json:"location,omitempty"`
	// Tags - The resource tags.
	Tags map[string]*string `json:"tags"`
}

IotHubDescription the description of the IoT hub.

func (IotHubDescription) MarshalJSON

func (ihd IotHubDescription) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IotHubDescription.

type IotHubDescriptionListResult

type IotHubDescriptionListResult struct {
	autorest.Response `json:"-"`
	// Value - The array of IotHubDescription objects.
	Value *[]IotHubDescription `json:"value,omitempty"`
	// NextLink - The next link.
	NextLink *string `json:"nextLink,omitempty"`
}

IotHubDescriptionListResult the JSON-serialized array of IotHubDescription objects with a next link.

func (IotHubDescriptionListResult) IsEmpty

func (ihdlr IotHubDescriptionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type IotHubDescriptionListResultIterator

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

IotHubDescriptionListResultIterator provides access to a complete listing of IotHubDescription values.

func (*IotHubDescriptionListResultIterator) 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.

func (IotHubDescriptionListResultIterator) NotDone

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

func (IotHubDescriptionListResultIterator) Response

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

func (IotHubDescriptionListResultIterator) Value

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

type IotHubDescriptionListResultPage

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

IotHubDescriptionListResultPage contains a page of IotHubDescription values.

func (*IotHubDescriptionListResultPage) 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.

func (IotHubDescriptionListResultPage) NotDone

func (page IotHubDescriptionListResultPage) NotDone() bool

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

func (IotHubDescriptionListResultPage) Response

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

func (IotHubDescriptionListResultPage) Values

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

type IotHubNameAvailabilityInfo

type IotHubNameAvailabilityInfo struct {
	autorest.Response `json:"-"`
	// NameAvailable - The value which indicates whether the provided name is available.
	NameAvailable *bool `json:"nameAvailable,omitempty"`
	// Reason - The reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists'
	Reason IotHubNameUnavailabilityReason `json:"reason,omitempty"`
	// Message - The detailed reason message.
	Message *string `json:"message,omitempty"`
}

IotHubNameAvailabilityInfo the properties indicating whether a given IoT hub name is available.

type IotHubNameUnavailabilityReason

type IotHubNameUnavailabilityReason string

IotHubNameUnavailabilityReason enumerates the values for iot hub name unavailability reason.

const (
	// AlreadyExists ...
	AlreadyExists IotHubNameUnavailabilityReason = "AlreadyExists"
	// Invalid ...
	Invalid IotHubNameUnavailabilityReason = "Invalid"
)

type IotHubProperties

type IotHubProperties struct {
	// AuthorizationPolicies - The shared access policies you can use to secure a connection to the IoT hub.
	AuthorizationPolicies *[]SharedAccessSignatureAuthorizationRule `json:"authorizationPolicies,omitempty"`
	// IPFilterRules - The IP filter rules.
	IPFilterRules *[]IPFilterRule `json:"ipFilterRules,omitempty"`
	// ProvisioningState - The provisioning state.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// HostName - The name of the host.
	HostName *string `json:"hostName,omitempty"`
	// EventHubEndpoints - The Event Hub-compatible endpoint properties. The possible keys to this dictionary are events and operationsMonitoringEvents. Both of these keys have to be present in the dictionary while making create or update calls for the IoT hub.
	EventHubEndpoints map[string]*EventHubProperties `json:"eventHubEndpoints"`
	// StorageEndpoints - The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown.
	StorageEndpoints map[string]*StorageEndpointProperties `json:"storageEndpoints"`
	// MessagingEndpoints - The messaging endpoint properties for the file upload notification queue.
	MessagingEndpoints map[string]*MessagingEndpointProperties `json:"messagingEndpoints"`
	// EnableFileUploadNotifications - If True, file upload notifications are enabled.
	EnableFileUploadNotifications *bool                    `json:"enableFileUploadNotifications,omitempty"`
	CloudToDevice                 *CloudToDeviceProperties `json:"cloudToDevice,omitempty"`
	// Comments - Comments.
	Comments                       *string                         `json:"comments,omitempty"`
	OperationsMonitoringProperties *OperationsMonitoringProperties `json:"operationsMonitoringProperties,omitempty"`
	// Features - The capabilities and features enabled for the IoT hub. Possible values include: 'None', 'DeviceManagement'
	Features Capabilities `json:"features,omitempty"`
}

IotHubProperties the properties of an IoT hub.

func (IotHubProperties) MarshalJSON

func (ihp IotHubProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IotHubProperties.

type IotHubQuotaMetricInfo

type IotHubQuotaMetricInfo struct {
	// Name - The name of the quota metric.
	Name *string `json:"Name,omitempty"`
	// CurrentValue - The current value for the quota metric.
	CurrentValue *int64 `json:"CurrentValue,omitempty"`
	// MaxValue - The maximum value of the quota metric.
	MaxValue *int64 `json:"MaxValue,omitempty"`
}

IotHubQuotaMetricInfo quota metrics properties.

type IotHubQuotaMetricInfoListResult

type IotHubQuotaMetricInfoListResult struct {
	autorest.Response `json:"-"`
	// Value - The array of quota metrics objects.
	Value *[]IotHubQuotaMetricInfo `json:"value,omitempty"`
	// NextLink - The next link.
	NextLink *string `json:"nextLink,omitempty"`
}

IotHubQuotaMetricInfoListResult the JSON-serialized array of IotHubQuotaMetricInfo objects with a next link.

func (IotHubQuotaMetricInfoListResult) IsEmpty

func (ihqmilr IotHubQuotaMetricInfoListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type IotHubQuotaMetricInfoListResultIterator

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

IotHubQuotaMetricInfoListResultIterator provides access to a complete listing of IotHubQuotaMetricInfo values.

func (*IotHubQuotaMetricInfoListResultIterator) 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.

func (IotHubQuotaMetricInfoListResultIterator) NotDone

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

func (IotHubQuotaMetricInfoListResultIterator) Response

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

func (IotHubQuotaMetricInfoListResultIterator) Value

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

type IotHubQuotaMetricInfoListResultPage

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

IotHubQuotaMetricInfoListResultPage contains a page of IotHubQuotaMetricInfo values.

func (*IotHubQuotaMetricInfoListResultPage) 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.

func (IotHubQuotaMetricInfoListResultPage) NotDone

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

func (IotHubQuotaMetricInfoListResultPage) Response

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

func (IotHubQuotaMetricInfoListResultPage) Values

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

type IotHubResourceClient

type IotHubResourceClient struct {
	BaseClient
}

IotHubResourceClient is the use this API to manage the IoT hubs in your Azure subscription.

func NewIotHubResourceClient

func NewIotHubResourceClient(subscriptionID string) IotHubResourceClient

NewIotHubResourceClient creates an instance of the IotHubResourceClient client.

func NewIotHubResourceClientWithBaseURI

func NewIotHubResourceClientWithBaseURI(baseURI string, subscriptionID string) IotHubResourceClient

NewIotHubResourceClientWithBaseURI creates an instance of the IotHubResourceClient client.

func (IotHubResourceClient) CheckNameAvailability

func (client IotHubResourceClient) CheckNameAvailability(ctx context.Context, operationInputs OperationInputs) (result IotHubNameAvailabilityInfo, err error)

CheckNameAvailability check if an IoT hub name is available.

operationInputs is set the name parameter in the OperationInputs structure to the name of the IoT hub to check.

func (IotHubResourceClient) CheckNameAvailabilityPreparer

func (client IotHubResourceClient) CheckNameAvailabilityPreparer(ctx context.Context, operationInputs OperationInputs) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (IotHubResourceClient) CheckNameAvailabilityResponder

func (client IotHubResourceClient) CheckNameAvailabilityResponder(resp *http.Response) (result IotHubNameAvailabilityInfo, err error)

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

func (IotHubResourceClient) CheckNameAvailabilitySender

func (client IotHubResourceClient) 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 (IotHubResourceClient) CreateEventHubConsumerGroup

func (client IotHubResourceClient) CreateEventHubConsumerGroup(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string, name string) (result EventHubConsumerGroupInfo, err error)

CreateEventHubConsumerGroup add a consumer group to an Event Hub-compatible endpoint in an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. eventHubEndpointName is the name of the Event Hub-compatible endpoint in the IoT hub. name is the name of the consumer group to add.

func (IotHubResourceClient) CreateEventHubConsumerGroupPreparer

func (client IotHubResourceClient) CreateEventHubConsumerGroupPreparer(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string, name string) (*http.Request, error)

CreateEventHubConsumerGroupPreparer prepares the CreateEventHubConsumerGroup request.

func (IotHubResourceClient) CreateEventHubConsumerGroupResponder

func (client IotHubResourceClient) CreateEventHubConsumerGroupResponder(resp *http.Response) (result EventHubConsumerGroupInfo, err error)

CreateEventHubConsumerGroupResponder handles the response to the CreateEventHubConsumerGroup request. The method always closes the http.Response Body.

func (IotHubResourceClient) CreateEventHubConsumerGroupSender

func (client IotHubResourceClient) CreateEventHubConsumerGroupSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) CreateOrUpdate

func (client IotHubResourceClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, iotHubDescription IotHubDescription) (result IotHubResourceCreateOrUpdateFuture, err error)

CreateOrUpdate create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub metadata and security metadata, and then combine them with the modified values in a new body to update the IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub to create or update. iotHubDescription is the IoT hub metadata and security metadata.

func (IotHubResourceClient) CreateOrUpdatePreparer

func (client IotHubResourceClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, iotHubDescription IotHubDescription) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (IotHubResourceClient) CreateOrUpdateResponder

func (client IotHubResourceClient) CreateOrUpdateResponder(resp *http.Response) (result IotHubDescription, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (IotHubResourceClient) CreateOrUpdateSender

func (client IotHubResourceClient) CreateOrUpdateSender(req *http.Request) (future IotHubResourceCreateOrUpdateFuture, err error)

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

func (IotHubResourceClient) Delete

func (client IotHubResourceClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result IotHubResourceDeleteFuture, err error)

Delete delete an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub to delete.

func (IotHubResourceClient) DeleteEventHubConsumerGroup

func (client IotHubResourceClient) DeleteEventHubConsumerGroup(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string, name string) (result autorest.Response, err error)

DeleteEventHubConsumerGroup delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. eventHubEndpointName is the name of the Event Hub-compatible endpoint in the IoT hub. name is the name of the consumer group to delete.

func (IotHubResourceClient) DeleteEventHubConsumerGroupPreparer

func (client IotHubResourceClient) DeleteEventHubConsumerGroupPreparer(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string, name string) (*http.Request, error)

DeleteEventHubConsumerGroupPreparer prepares the DeleteEventHubConsumerGroup request.

func (IotHubResourceClient) DeleteEventHubConsumerGroupResponder

func (client IotHubResourceClient) DeleteEventHubConsumerGroupResponder(resp *http.Response) (result autorest.Response, err error)

DeleteEventHubConsumerGroupResponder handles the response to the DeleteEventHubConsumerGroup request. The method always closes the http.Response Body.

func (IotHubResourceClient) DeleteEventHubConsumerGroupSender

func (client IotHubResourceClient) DeleteEventHubConsumerGroupSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (IotHubResourceClient) DeleteResponder

func (client IotHubResourceClient) DeleteResponder(resp *http.Response) (result SetObject, err error)

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

func (IotHubResourceClient) DeleteSender

func (client IotHubResourceClient) DeleteSender(req *http.Request) (future IotHubResourceDeleteFuture, err error)

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

func (IotHubResourceClient) ExportDevices

func (client IotHubResourceClient) ExportDevices(ctx context.Context, resourceGroupName string, resourceName string, exportDevicesParameters ExportDevicesRequest) (result JobResponse, err error)

ExportDevices exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. exportDevicesParameters is the parameters that specify the export devices operation.

func (IotHubResourceClient) ExportDevicesPreparer

func (client IotHubResourceClient) ExportDevicesPreparer(ctx context.Context, resourceGroupName string, resourceName string, exportDevicesParameters ExportDevicesRequest) (*http.Request, error)

ExportDevicesPreparer prepares the ExportDevices request.

func (IotHubResourceClient) ExportDevicesResponder

func (client IotHubResourceClient) ExportDevicesResponder(resp *http.Response) (result JobResponse, err error)

ExportDevicesResponder handles the response to the ExportDevices request. The method always closes the http.Response Body.

func (IotHubResourceClient) ExportDevicesSender

func (client IotHubResourceClient) ExportDevicesSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) Get

func (client IotHubResourceClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result IotHubDescription, err error)

Get get the non-security related metadata of an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub.

func (IotHubResourceClient) GetEventHubConsumerGroup

func (client IotHubResourceClient) GetEventHubConsumerGroup(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string, name string) (result EventHubConsumerGroupInfo, err error)

GetEventHubConsumerGroup get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. eventHubEndpointName is the name of the Event Hub-compatible endpoint in the IoT hub. name is the name of the consumer group to retrieve.

func (IotHubResourceClient) GetEventHubConsumerGroupPreparer

func (client IotHubResourceClient) GetEventHubConsumerGroupPreparer(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string, name string) (*http.Request, error)

GetEventHubConsumerGroupPreparer prepares the GetEventHubConsumerGroup request.

func (IotHubResourceClient) GetEventHubConsumerGroupResponder

func (client IotHubResourceClient) GetEventHubConsumerGroupResponder(resp *http.Response) (result EventHubConsumerGroupInfo, err error)

GetEventHubConsumerGroupResponder handles the response to the GetEventHubConsumerGroup request. The method always closes the http.Response Body.

func (IotHubResourceClient) GetEventHubConsumerGroupSender

func (client IotHubResourceClient) GetEventHubConsumerGroupSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) GetJob

func (client IotHubResourceClient) GetJob(ctx context.Context, resourceGroupName string, resourceName string, jobID string) (result JobResponse, err error)

GetJob get the details of a job from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. jobID is the job identifier.

func (IotHubResourceClient) GetJobPreparer

func (client IotHubResourceClient) GetJobPreparer(ctx context.Context, resourceGroupName string, resourceName string, jobID string) (*http.Request, error)

GetJobPreparer prepares the GetJob request.

func (IotHubResourceClient) GetJobResponder

func (client IotHubResourceClient) GetJobResponder(resp *http.Response) (result JobResponse, err error)

GetJobResponder handles the response to the GetJob request. The method always closes the http.Response Body.

func (IotHubResourceClient) GetJobSender

func (client IotHubResourceClient) GetJobSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) GetKeysForKeyName

func (client IotHubResourceClient) GetKeysForKeyName(ctx context.Context, resourceGroupName string, resourceName string, keyName string) (result SharedAccessSignatureAuthorizationRule, err error)

GetKeysForKeyName get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. keyName is the name of the shared access policy.

func (IotHubResourceClient) GetKeysForKeyNamePreparer

func (client IotHubResourceClient) GetKeysForKeyNamePreparer(ctx context.Context, resourceGroupName string, resourceName string, keyName string) (*http.Request, error)

GetKeysForKeyNamePreparer prepares the GetKeysForKeyName request.

func (IotHubResourceClient) GetKeysForKeyNameResponder

func (client IotHubResourceClient) GetKeysForKeyNameResponder(resp *http.Response) (result SharedAccessSignatureAuthorizationRule, err error)

GetKeysForKeyNameResponder handles the response to the GetKeysForKeyName request. The method always closes the http.Response Body.

func (IotHubResourceClient) GetKeysForKeyNameSender

func (client IotHubResourceClient) GetKeysForKeyNameSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) GetPreparer

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

GetPreparer prepares the Get request.

func (IotHubResourceClient) GetQuotaMetrics

func (client IotHubResourceClient) GetQuotaMetrics(ctx context.Context, resourceGroupName string, resourceName string) (result IotHubQuotaMetricInfoListResultPage, err error)

GetQuotaMetrics get the quota metrics for an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub.

func (IotHubResourceClient) GetQuotaMetricsComplete

func (client IotHubResourceClient) GetQuotaMetricsComplete(ctx context.Context, resourceGroupName string, resourceName string) (result IotHubQuotaMetricInfoListResultIterator, err error)

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

func (IotHubResourceClient) GetQuotaMetricsPreparer

func (client IotHubResourceClient) GetQuotaMetricsPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

GetQuotaMetricsPreparer prepares the GetQuotaMetrics request.

func (IotHubResourceClient) GetQuotaMetricsResponder

func (client IotHubResourceClient) GetQuotaMetricsResponder(resp *http.Response) (result IotHubQuotaMetricInfoListResult, err error)

GetQuotaMetricsResponder handles the response to the GetQuotaMetrics request. The method always closes the http.Response Body.

func (IotHubResourceClient) GetQuotaMetricsSender

func (client IotHubResourceClient) GetQuotaMetricsSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) GetResponder

func (client IotHubResourceClient) GetResponder(resp *http.Response) (result IotHubDescription, err error)

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

func (IotHubResourceClient) GetSender

func (client IotHubResourceClient) 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 (IotHubResourceClient) GetStats

func (client IotHubResourceClient) GetStats(ctx context.Context, resourceGroupName string, resourceName string) (result RegistryStatistics, err error)

GetStats get the statistics from an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub.

func (IotHubResourceClient) GetStatsPreparer

func (client IotHubResourceClient) GetStatsPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

GetStatsPreparer prepares the GetStats request.

func (IotHubResourceClient) GetStatsResponder

func (client IotHubResourceClient) GetStatsResponder(resp *http.Response) (result RegistryStatistics, err error)

GetStatsResponder handles the response to the GetStats request. The method always closes the http.Response Body.

func (IotHubResourceClient) GetStatsSender

func (client IotHubResourceClient) GetStatsSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) GetValidSkus

func (client IotHubResourceClient) GetValidSkus(ctx context.Context, resourceGroupName string, resourceName string) (result IotHubSkuDescriptionListResultPage, err error)

GetValidSkus get the list of valid SKUs for an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub.

func (IotHubResourceClient) GetValidSkusComplete

func (client IotHubResourceClient) GetValidSkusComplete(ctx context.Context, resourceGroupName string, resourceName string) (result IotHubSkuDescriptionListResultIterator, err error)

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

func (IotHubResourceClient) GetValidSkusPreparer

func (client IotHubResourceClient) GetValidSkusPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

GetValidSkusPreparer prepares the GetValidSkus request.

func (IotHubResourceClient) GetValidSkusResponder

func (client IotHubResourceClient) GetValidSkusResponder(resp *http.Response) (result IotHubSkuDescriptionListResult, err error)

GetValidSkusResponder handles the response to the GetValidSkus request. The method always closes the http.Response Body.

func (IotHubResourceClient) GetValidSkusSender

func (client IotHubResourceClient) GetValidSkusSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) ImportDevices

func (client IotHubResourceClient) ImportDevices(ctx context.Context, resourceGroupName string, resourceName string, importDevicesParameters ImportDevicesRequest) (result JobResponse, err error)

ImportDevices import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. importDevicesParameters is the parameters that specify the import devices operation.

func (IotHubResourceClient) ImportDevicesPreparer

func (client IotHubResourceClient) ImportDevicesPreparer(ctx context.Context, resourceGroupName string, resourceName string, importDevicesParameters ImportDevicesRequest) (*http.Request, error)

ImportDevicesPreparer prepares the ImportDevices request.

func (IotHubResourceClient) ImportDevicesResponder

func (client IotHubResourceClient) ImportDevicesResponder(resp *http.Response) (result JobResponse, err error)

ImportDevicesResponder handles the response to the ImportDevices request. The method always closes the http.Response Body.

func (IotHubResourceClient) ImportDevicesSender

func (client IotHubResourceClient) ImportDevicesSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) ListByResourceGroup

func (client IotHubResourceClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result IotHubDescriptionListResultPage, err error)

ListByResourceGroup get all the IoT hubs in a resource group.

resourceGroupName is the name of the resource group that contains the IoT hubs.

func (IotHubResourceClient) ListByResourceGroupComplete

func (client IotHubResourceClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result IotHubDescriptionListResultIterator, err error)

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

func (IotHubResourceClient) ListByResourceGroupPreparer

func (client IotHubResourceClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (IotHubResourceClient) ListByResourceGroupResponder

func (client IotHubResourceClient) ListByResourceGroupResponder(resp *http.Response) (result IotHubDescriptionListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (IotHubResourceClient) ListByResourceGroupSender

func (client IotHubResourceClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) ListBySubscription

func (client IotHubResourceClient) ListBySubscription(ctx context.Context) (result IotHubDescriptionListResultPage, err error)

ListBySubscription get all the IoT hubs in a subscription.

func (IotHubResourceClient) ListBySubscriptionComplete

func (client IotHubResourceClient) ListBySubscriptionComplete(ctx context.Context) (result IotHubDescriptionListResultIterator, err error)

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

func (IotHubResourceClient) ListBySubscriptionPreparer

func (client IotHubResourceClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (IotHubResourceClient) ListBySubscriptionResponder

func (client IotHubResourceClient) ListBySubscriptionResponder(resp *http.Response) (result IotHubDescriptionListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (IotHubResourceClient) ListBySubscriptionSender

func (client IotHubResourceClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) ListEventHubConsumerGroups

func (client IotHubResourceClient) ListEventHubConsumerGroups(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string) (result EventHubConsumerGroupsListResultPage, err error)

ListEventHubConsumerGroups get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub. eventHubEndpointName is the name of the Event Hub-compatible endpoint.

func (IotHubResourceClient) ListEventHubConsumerGroupsComplete

func (client IotHubResourceClient) ListEventHubConsumerGroupsComplete(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string) (result EventHubConsumerGroupsListResultIterator, err error)

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

func (IotHubResourceClient) ListEventHubConsumerGroupsPreparer

func (client IotHubResourceClient) ListEventHubConsumerGroupsPreparer(ctx context.Context, resourceGroupName string, resourceName string, eventHubEndpointName string) (*http.Request, error)

ListEventHubConsumerGroupsPreparer prepares the ListEventHubConsumerGroups request.

func (IotHubResourceClient) ListEventHubConsumerGroupsResponder

func (client IotHubResourceClient) ListEventHubConsumerGroupsResponder(resp *http.Response) (result EventHubConsumerGroupsListResult, err error)

ListEventHubConsumerGroupsResponder handles the response to the ListEventHubConsumerGroups request. The method always closes the http.Response Body.

func (IotHubResourceClient) ListEventHubConsumerGroupsSender

func (client IotHubResourceClient) ListEventHubConsumerGroupsSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) ListJobs

func (client IotHubResourceClient) ListJobs(ctx context.Context, resourceGroupName string, resourceName string) (result JobResponseListResultPage, err error)

ListJobs get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub.

func (IotHubResourceClient) ListJobsComplete

func (client IotHubResourceClient) ListJobsComplete(ctx context.Context, resourceGroupName string, resourceName string) (result JobResponseListResultIterator, err error)

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

func (IotHubResourceClient) ListJobsPreparer

func (client IotHubResourceClient) ListJobsPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

ListJobsPreparer prepares the ListJobs request.

func (IotHubResourceClient) ListJobsResponder

func (client IotHubResourceClient) ListJobsResponder(resp *http.Response) (result JobResponseListResult, err error)

ListJobsResponder handles the response to the ListJobs request. The method always closes the http.Response Body.

func (IotHubResourceClient) ListJobsSender

func (client IotHubResourceClient) ListJobsSender(req *http.Request) (*http.Response, error)

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

func (IotHubResourceClient) ListKeys

func (client IotHubResourceClient) ListKeys(ctx context.Context, resourceGroupName string, resourceName string) (result SharedAccessSignatureAuthorizationRuleListResultPage, err error)

ListKeys get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.

resourceGroupName is the name of the resource group that contains the IoT hub. resourceName is the name of the IoT hub.

func (IotHubResourceClient) ListKeysComplete

func (client IotHubResourceClient) ListKeysComplete(ctx context.Context, resourceGroupName string, resourceName string) (result SharedAccessSignatureAuthorizationRuleListResultIterator, err error)

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

func (IotHubResourceClient) ListKeysPreparer

func (client IotHubResourceClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (IotHubResourceClient) ListKeysResponder

func (client IotHubResourceClient) ListKeysResponder(resp *http.Response) (result SharedAccessSignatureAuthorizationRuleListResult, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (IotHubResourceClient) ListKeysSender

func (client IotHubResourceClient) ListKeysSender(req *http.Request) (*http.Response, error)

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

type IotHubResourceCreateOrUpdateFuture

type IotHubResourceCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (IotHubResourceCreateOrUpdateFuture) Result

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

type IotHubResourceDeleteFuture

type IotHubResourceDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (IotHubResourceDeleteFuture) Result

func (future IotHubResourceDeleteFuture) Result(client IotHubResourceClient) (so SetObject, err error)

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

type IotHubScaleType

type IotHubScaleType string

IotHubScaleType enumerates the values for iot hub scale type.

const (
	// IotHubScaleTypeAutomatic ...
	IotHubScaleTypeAutomatic IotHubScaleType = "Automatic"
	// IotHubScaleTypeManual ...
	IotHubScaleTypeManual IotHubScaleType = "Manual"
	// IotHubScaleTypeNone ...
	IotHubScaleTypeNone IotHubScaleType = "None"
)

type IotHubSku

type IotHubSku string

IotHubSku enumerates the values for iot hub sku.

const (
	// F1 ...
	F1 IotHubSku = "F1"
	// S1 ...
	S1 IotHubSku = "S1"
	// S2 ...
	S2 IotHubSku = "S2"
	// S3 ...
	S3 IotHubSku = "S3"
)

type IotHubSkuDescription

type IotHubSkuDescription struct {
	// ResourceType - The type of the resource.
	ResourceType *string         `json:"resourceType,omitempty"`
	Sku          *IotHubSkuInfo  `json:"sku,omitempty"`
	Capacity     *IotHubCapacity `json:"capacity,omitempty"`
}

IotHubSkuDescription SKU properties.

type IotHubSkuDescriptionListResult

type IotHubSkuDescriptionListResult struct {
	autorest.Response `json:"-"`
	// Value - The array of IotHubSkuDescription.
	Value *[]IotHubSkuDescription `json:"value,omitempty"`
	// NextLink - The next link.
	NextLink *string `json:"nextLink,omitempty"`
}

IotHubSkuDescriptionListResult the JSON-serialized array of IotHubSkuDescription objects with a next link.

func (IotHubSkuDescriptionListResult) IsEmpty

func (ihsdlr IotHubSkuDescriptionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type IotHubSkuDescriptionListResultIterator

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

IotHubSkuDescriptionListResultIterator provides access to a complete listing of IotHubSkuDescription values.

func (*IotHubSkuDescriptionListResultIterator) 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.

func (IotHubSkuDescriptionListResultIterator) NotDone

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

func (IotHubSkuDescriptionListResultIterator) Response

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

func (IotHubSkuDescriptionListResultIterator) Value

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

type IotHubSkuDescriptionListResultPage

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

IotHubSkuDescriptionListResultPage contains a page of IotHubSkuDescription values.

func (*IotHubSkuDescriptionListResultPage) 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.

func (IotHubSkuDescriptionListResultPage) NotDone

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

func (IotHubSkuDescriptionListResultPage) Response

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

func (IotHubSkuDescriptionListResultPage) Values

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

type IotHubSkuInfo

type IotHubSkuInfo struct {
	// Name - The name of the SKU. Possible values include: 'F1', 'S1', 'S2', 'S3'
	Name IotHubSku `json:"name,omitempty"`
	// Tier - The billing tier for the IoT hub. Possible values include: 'Free', 'Standard'
	Tier IotHubSkuTier `json:"tier,omitempty"`
	// Capacity - The number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.
	Capacity *int64 `json:"capacity,omitempty"`
}

IotHubSkuInfo information about the SKU of the IoT hub.

type IotHubSkuTier

type IotHubSkuTier string

IotHubSkuTier enumerates the values for iot hub sku tier.

const (
	// Free ...
	Free IotHubSkuTier = "Free"
	// Standard ...
	Standard IotHubSkuTier = "Standard"
)

type JobResponse

type JobResponse struct {
	autorest.Response `json:"-"`
	// JobID - The job identifier.
	JobID *string `json:"jobId,omitempty"`
	// StartTimeUtc - The start time of the job.
	StartTimeUtc *date.TimeRFC1123 `json:"startTimeUtc,omitempty"`
	// EndTimeUtc - The time the job stopped processing.
	EndTimeUtc *date.TimeRFC1123 `json:"endTimeUtc,omitempty"`
	// Type - The type of the job. Possible values include: 'JobTypeUnknown', 'JobTypeExport', 'JobTypeImport', 'JobTypeBackup', 'JobTypeReadDeviceProperties', 'JobTypeWriteDeviceProperties', 'JobTypeUpdateDeviceConfiguration', 'JobTypeRebootDevice', 'JobTypeFactoryResetDevice', 'JobTypeFirmwareUpdate'
	Type JobType `json:"type,omitempty"`
	// Status - The status of the job. Possible values include: 'Unknown', 'Enqueued', 'Running', 'Completed', 'Failed', 'Cancelled'
	Status JobStatus `json:"status,omitempty"`
	// FailureReason - If status == failed, this string containing the reason for the failure.
	FailureReason *string `json:"failureReason,omitempty"`
	// StatusMessage - The status message for the job.
	StatusMessage *string `json:"statusMessage,omitempty"`
	// ParentJobID - The job identifier of the parent job, if any.
	ParentJobID *string `json:"parentJobId,omitempty"`
}

JobResponse the properties of the Job Response object.

type JobResponseListResult

type JobResponseListResult struct {
	autorest.Response `json:"-"`
	// Value - The array of JobResponse objects.
	Value *[]JobResponse `json:"value,omitempty"`
	// NextLink - The next link.
	NextLink *string `json:"nextLink,omitempty"`
}

JobResponseListResult the JSON-serialized array of JobResponse objects with a next link.

func (JobResponseListResult) IsEmpty

func (jrlr JobResponseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobResponseListResultIterator

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

JobResponseListResultIterator provides access to a complete listing of JobResponse values.

func (*JobResponseListResultIterator) Next

func (iter *JobResponseListResultIterator) 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.

func (JobResponseListResultIterator) NotDone

func (iter JobResponseListResultIterator) NotDone() bool

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

func (JobResponseListResultIterator) Response

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

func (JobResponseListResultIterator) Value

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

type JobResponseListResultPage

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

JobResponseListResultPage contains a page of JobResponse values.

func (*JobResponseListResultPage) Next

func (page *JobResponseListResultPage) 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.

func (JobResponseListResultPage) NotDone

func (page JobResponseListResultPage) NotDone() bool

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

func (JobResponseListResultPage) Response

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

func (JobResponseListResultPage) Values

func (page JobResponseListResultPage) Values() []JobResponse

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

type JobStatus

type JobStatus string

JobStatus enumerates the values for job status.

const (
	// Cancelled ...
	Cancelled JobStatus = "cancelled"
	// Completed ...
	Completed JobStatus = "completed"
	// Enqueued ...
	Enqueued JobStatus = "enqueued"
	// Failed ...
	Failed JobStatus = "failed"
	// Running ...
	Running JobStatus = "running"
	// Unknown ...
	Unknown JobStatus = "unknown"
)

type JobType

type JobType string

JobType enumerates the values for job type.

const (
	// JobTypeBackup ...
	JobTypeBackup JobType = "backup"
	// JobTypeExport ...
	JobTypeExport JobType = "export"
	// JobTypeFactoryResetDevice ...
	JobTypeFactoryResetDevice JobType = "factoryResetDevice"
	// JobTypeFirmwareUpdate ...
	JobTypeFirmwareUpdate JobType = "firmwareUpdate"
	// JobTypeImport ...
	JobTypeImport JobType = "import"
	// JobTypeReadDeviceProperties ...
	JobTypeReadDeviceProperties JobType = "readDeviceProperties"
	// JobTypeRebootDevice ...
	JobTypeRebootDevice JobType = "rebootDevice"
	// JobTypeUnknown ...
	JobTypeUnknown JobType = "unknown"
	// JobTypeUpdateDeviceConfiguration ...
	JobTypeUpdateDeviceConfiguration JobType = "updateDeviceConfiguration"
	// JobTypeWriteDeviceProperties ...
	JobTypeWriteDeviceProperties JobType = "writeDeviceProperties"
)

type MessagingEndpointProperties

type MessagingEndpointProperties struct {
	// LockDurationAsIso8601 - The lock duration. See: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
	LockDurationAsIso8601 *string `json:"lockDurationAsIso8601,omitempty"`
	// TTLAsIso8601 - The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
	TTLAsIso8601 *string `json:"ttlAsIso8601,omitempty"`
	// MaxDeliveryCount - The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-file-upload.
	MaxDeliveryCount *int32 `json:"maxDeliveryCount,omitempty"`
}

MessagingEndpointProperties the properties of the messaging endpoints used by this IoT hub.

type OperationInputs

type OperationInputs struct {
	// Name - The name of the IoT hub to check.
	Name *string `json:"Name,omitempty"`
}

OperationInputs input values.

type OperationMonitoringLevel

type OperationMonitoringLevel string

OperationMonitoringLevel enumerates the values for operation monitoring level.

const (
	// OperationMonitoringLevelError ...
	OperationMonitoringLevelError OperationMonitoringLevel = "Error"
	// OperationMonitoringLevelErrorInformation ...
	OperationMonitoringLevelErrorInformation OperationMonitoringLevel = "Error, Information"
	// OperationMonitoringLevelInformation ...
	OperationMonitoringLevelInformation OperationMonitoringLevel = "Information"
	// OperationMonitoringLevelNone ...
	OperationMonitoringLevelNone OperationMonitoringLevel = "None"
)

type OperationsMonitoringProperties

type OperationsMonitoringProperties struct {
	Events map[string]*OperationMonitoringLevel `json:"events"`
}

OperationsMonitoringProperties the operations monitoring properties for the IoT hub. The possible keys to the dictionary are Connections, DeviceTelemetry, C2DCommands, DeviceIdentityOperations, FileUploadOperations.

func (OperationsMonitoringProperties) MarshalJSON

func (omp OperationsMonitoringProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationsMonitoringProperties.

type RegistryStatistics

type RegistryStatistics struct {
	autorest.Response `json:"-"`
	// TotalDeviceCount - The total count of devices in the identity registry.
	TotalDeviceCount *int64 `json:"totalDeviceCount,omitempty"`
	// EnabledDeviceCount - The count of enabled devices in the identity registry.
	EnabledDeviceCount *int64 `json:"enabledDeviceCount,omitempty"`
	// DisabledDeviceCount - The count of disabled devices in the identity registry.
	DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"`
}

RegistryStatistics identity registry statistics.

type Resource

type Resource struct {
	// ID - The resource identifier.
	ID *string `json:"id,omitempty"`
	// Name - The resource name.
	Name *string `json:"name,omitempty"`
	// Type - The resource type.
	Type *string `json:"type,omitempty"`
	// Location - The resource location.
	Location *string `json:"location,omitempty"`
	// Tags - The resource tags.
	Tags map[string]*string `json:"tags"`
}

Resource the common properties of an Azure resource.

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type SetObject

type SetObject struct {
	autorest.Response `json:"-"`
	Value             interface{} `json:"value,omitempty"`
}

SetObject ...

type SharedAccessSignatureAuthorizationRule

type SharedAccessSignatureAuthorizationRule struct {
	autorest.Response `json:"-"`
	// KeyName - The name of the shared access policy.
	KeyName *string `json:"keyName,omitempty"`
	// PrimaryKey - The primary key.
	PrimaryKey *string `json:"primaryKey,omitempty"`
	// SecondaryKey - The secondary key.
	SecondaryKey *string `json:"secondaryKey,omitempty"`
	// Rights - The permissions assigned to the shared access policy. Possible values include: 'RegistryRead', 'RegistryWrite', 'ServiceConnect', 'DeviceConnect', 'RegistryReadRegistryWrite', 'RegistryReadServiceConnect', 'RegistryReadDeviceConnect', 'RegistryWriteServiceConnect', 'RegistryWriteDeviceConnect', 'ServiceConnectDeviceConnect', 'RegistryReadRegistryWriteServiceConnect', 'RegistryReadRegistryWriteDeviceConnect', 'RegistryReadServiceConnectDeviceConnect', 'RegistryWriteServiceConnectDeviceConnect', 'RegistryReadRegistryWriteServiceConnectDeviceConnect'
	Rights AccessRights `json:"rights,omitempty"`
}

SharedAccessSignatureAuthorizationRule the properties of an IoT hub shared access policy.

type SharedAccessSignatureAuthorizationRuleListResult

type SharedAccessSignatureAuthorizationRuleListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of shared access policies.
	Value *[]SharedAccessSignatureAuthorizationRule `json:"value,omitempty"`
	// NextLink - The next link.
	NextLink *string `json:"nextLink,omitempty"`
}

SharedAccessSignatureAuthorizationRuleListResult the list of shared access policies with a next link.

func (SharedAccessSignatureAuthorizationRuleListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type SharedAccessSignatureAuthorizationRuleListResultIterator

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

SharedAccessSignatureAuthorizationRuleListResultIterator provides access to a complete listing of SharedAccessSignatureAuthorizationRule values.

func (*SharedAccessSignatureAuthorizationRuleListResultIterator) 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.

func (SharedAccessSignatureAuthorizationRuleListResultIterator) NotDone

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

func (SharedAccessSignatureAuthorizationRuleListResultIterator) Response

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

func (SharedAccessSignatureAuthorizationRuleListResultIterator) Value

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

type SharedAccessSignatureAuthorizationRuleListResultPage

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

SharedAccessSignatureAuthorizationRuleListResultPage contains a page of SharedAccessSignatureAuthorizationRule values.

func (*SharedAccessSignatureAuthorizationRuleListResultPage) 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.

func (SharedAccessSignatureAuthorizationRuleListResultPage) NotDone

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

func (SharedAccessSignatureAuthorizationRuleListResultPage) Response

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

func (SharedAccessSignatureAuthorizationRuleListResultPage) Values

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

type StorageEndpointProperties

type StorageEndpointProperties struct {
	// SasTTLAsIso8601 - The period of time for which the the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.
	SasTTLAsIso8601 *string `json:"sasTtlAsIso8601,omitempty"`
	// ConnectionString - The connection string for the Azure Storage account to which files are uploaded.
	ConnectionString *string `json:"connectionString,omitempty"`
	// ContainerName - The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.
	ContainerName *string `json:"containerName,omitempty"`
}

StorageEndpointProperties the properties of the Azure Storage endpoint for file upload.

Jump to

Keyboard shortcuts

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