azure_mgmt_iot_hub 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_iot_hub.rb +9 -11
  3. data/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb +5 -6
  4. data/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +553 -346
  5. data/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb +7 -5
  6. data/lib/generated/azure_mgmt_iot_hub/models/error_details.rb +5 -2
  7. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb +3 -3
  8. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb +5 -3
  9. data/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb +15 -45
  10. data/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb +3 -3
  11. data/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb +9 -6
  12. data/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb +4 -4
  13. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb +7 -3
  14. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb +8 -7
  15. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb +3 -2
  16. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb +4 -2
  17. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb +32 -17
  18. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb +4 -1
  19. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb +4 -3
  20. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb +3 -3
  21. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb +4 -2
  22. data/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb +8 -9
  23. data/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb +5 -5
  24. data/lib/generated/azure_mgmt_iot_hub/models/job_response.rb +18 -20
  25. data/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb +2 -2
  26. data/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb +9 -6
  27. data/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb +2 -2
  28. data/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb +1 -0
  29. data/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb +3 -1
  30. data/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb +9 -4
  31. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb +14 -13
  32. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb +2 -2
  33. data/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb +11 -8
  34. data/lib/generated/azure_mgmt_iot_hub/version.rb +1 -1
  35. metadata +4 -6
  36. data/lib/generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb +0 -18
  37. data/lib/generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb +0 -143
@@ -12,6 +12,7 @@ module Azure::ARM::IotHub
12
12
  None = "None"
13
13
  Error = "Error"
14
14
  Information = "Information"
15
+ ErrorInformation = "Error, Information"
15
16
  end
16
17
  end
17
18
  end
@@ -6,7 +6,9 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The Operation Monitoring properties.
9
+ # The operations monitoring properties for the IoT hub. The possible keys
10
+ # to the dictionary are Connections, DeviceTelemetry, C2DCommands,
11
+ # DeviceIdentityOperations, FileUploadOperations.
10
12
  #
11
13
  class OperationsMonitoringProperties
12
14
 
@@ -6,19 +6,21 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties related to the registry statistics.
9
+ # Identity registry statistics.
10
10
  #
11
11
  class RegistryStatistics
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Integer] The total device count.
15
+ # @return [Integer] The total count of devices in the identity registry.
16
16
  attr_accessor :total_device_count
17
17
 
18
- # @return [Integer] The enabled device count.
18
+ # @return [Integer] The count of enabled devices in the identity
19
+ # registry.
19
20
  attr_accessor :enabled_device_count
20
21
 
21
- # @return [Integer] The disabled device count.
22
+ # @return [Integer] The count of disabled devices in the identity
23
+ # registry.
22
24
  attr_accessor :disabled_device_count
23
25
 
24
26
 
@@ -36,6 +38,7 @@ module Azure::ARM::IotHub
36
38
  model_properties: {
37
39
  total_device_count: {
38
40
  required: false,
41
+ read_only: true,
39
42
  serialized_name: 'totalDeviceCount',
40
43
  type: {
41
44
  name: 'Number'
@@ -43,6 +46,7 @@ module Azure::ARM::IotHub
43
46
  },
44
47
  enabled_device_count: {
45
48
  required: false,
49
+ read_only: true,
46
50
  serialized_name: 'enabledDeviceCount',
47
51
  type: {
48
52
  name: 'Number'
@@ -50,6 +54,7 @@ module Azure::ARM::IotHub
50
54
  },
51
55
  disabled_device_count: {
52
56
  required: false,
57
+ read_only: true,
53
58
  serialized_name: 'disabledDeviceCount',
54
59
  type: {
55
60
  name: 'Number'
@@ -6,13 +6,13 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties that describe the keys to access the IotHub artifacts.
9
+ # The properties of an IoT hub shared access policy.
10
10
  #
11
11
  class SharedAccessSignatureAuthorizationRule
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The name of the key.
15
+ # @return [String] The name of the shared access policy.
16
16
  attr_accessor :key_name
17
17
 
18
18
  # @return [String] The primary key.
@@ -21,15 +21,16 @@ module Azure::ARM::IotHub
21
21
  # @return [String] The secondary key.
22
22
  attr_accessor :secondary_key
23
23
 
24
- # @return [AccessRights] The access rights. Possible values include:
25
- # 'RegistryRead', 'RegistryWrite', 'ServiceConnect', 'DeviceConnect',
26
- # 'RegistryRead, RegistryWrite', 'RegistryRead, ServiceConnect',
27
- # 'RegistryRead, DeviceConnect', 'RegistryWrite, ServiceConnect',
28
- # 'RegistryWrite, DeviceConnect', 'ServiceConnect, DeviceConnect',
29
- # 'RegistryRead, RegistryWrite, ServiceConnect', 'RegistryRead,
30
- # RegistryWrite, DeviceConnect', 'RegistryRead, ServiceConnect,
31
- # DeviceConnect', 'RegistryWrite, ServiceConnect, DeviceConnect',
32
- # 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'
24
+ # @return [AccessRights] The permissions assigned to the shared access
25
+ # policy. Possible values include: 'RegistryRead', 'RegistryWrite',
26
+ # 'ServiceConnect', 'DeviceConnect', 'RegistryRead, RegistryWrite',
27
+ # 'RegistryRead, ServiceConnect', 'RegistryRead, DeviceConnect',
28
+ # 'RegistryWrite, ServiceConnect', 'RegistryWrite, DeviceConnect',
29
+ # 'ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite,
30
+ # ServiceConnect', 'RegistryRead, RegistryWrite, DeviceConnect',
31
+ # 'RegistryRead, ServiceConnect, DeviceConnect', 'RegistryWrite,
32
+ # ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite,
33
+ # ServiceConnect, DeviceConnect'
33
34
  attr_accessor :rights
34
35
 
35
36
 
@@ -46,7 +47,7 @@ module Azure::ARM::IotHub
46
47
  class_name: 'SharedAccessSignatureAuthorizationRule',
47
48
  model_properties: {
48
49
  key_name: {
49
- required: false,
50
+ required: true,
50
51
  serialized_name: 'keyName',
51
52
  type: {
52
53
  name: 'String'
@@ -67,7 +68,7 @@ module Azure::ARM::IotHub
67
68
  }
68
69
  },
69
70
  rights: {
70
- required: false,
71
+ required: true,
71
72
  serialized_name: 'rights',
72
73
  type: {
73
74
  name: 'Enum',
@@ -6,14 +6,14 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The list of authorization rules with a next link.
9
+ # The list of shared access policies with a next link.
10
10
  #
11
11
  class SharedAccessSignatureAuthorizationRuleListResult
12
12
 
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [Array<SharedAccessSignatureAuthorizationRule>] The list of
16
- # authorization rules.
16
+ # shared access policies.
17
17
  attr_accessor :value
18
18
 
19
19
  # @return [String] The next link.
@@ -6,21 +6,24 @@
6
6
  module Azure::ARM::IotHub
7
7
  module Models
8
8
  #
9
- # The properties of the Storage Endpoint for file upload.
9
+ # The properties of the Azure Storage endpoint for file upload.
10
10
  #
11
11
  class StorageEndpointProperties
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Duration] SAS time to live. Range: 1 Min (PT1M) - 1 Day (P1D).
15
+ # @return [Duration] The period of time for which the the SAS URI
16
+ # generated by IoT Hub for file upload is valid. See:
17
+ # https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.
16
18
  attr_accessor :sas_ttl_as_iso8601
17
19
 
18
- # @return [String] The account key credentials for storage account
19
- # selected by customer for uploading files.
20
+ # @return [String] The connection string for the Azure Storage account to
21
+ # which files are uploaded.
20
22
  attr_accessor :connection_string
21
23
 
22
- # @return [String] The root container name where all files will be
23
- # uploaded.
24
+ # @return [String] The name of the root container where you upload files.
25
+ # The container need not exist but should be creatable using the
26
+ # connectionString specified.
24
27
  attr_accessor :container_name
25
28
 
26
29
 
@@ -44,14 +47,14 @@ module Azure::ARM::IotHub
44
47
  }
45
48
  },
46
49
  connection_string: {
47
- required: false,
50
+ required: true,
48
51
  serialized_name: 'connectionString',
49
52
  type: {
50
53
  name: 'String'
51
54
  }
52
55
  },
53
56
  container_name: {
54
- required: false,
57
+ required: true,
55
58
  serialized_name: 'containerName',
56
59
  type: {
57
60
  name: 'String'
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::IotHub
7
- VERSION = '0.8.0'
7
+ VERSION = '0.9.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_iot_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.2
75
+ version: 0.7.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.2
82
+ version: 0.7.0
83
83
  description: Microsoft Azure IoT Hub Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -126,8 +126,6 @@ files:
126
126
  - lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb
127
127
  - lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb
128
128
  - lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb
129
- - lib/generated/azure_mgmt_iot_hub/models/sbaccess_rights.rb
130
- - lib/generated/azure_mgmt_iot_hub/models/shared_access_authorization_rule.rb
131
129
  - lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb
132
130
  - lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb
133
131
  - lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb
@@ -1,18 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::IotHub
7
- module Models
8
- #
9
- # Defines values for SBAccessRights
10
- #
11
- module SBAccessRights
12
- Manage = "Manage"
13
- Send = "Send"
14
- Listen = "Listen"
15
- ManageNotificationHub = "ManageNotificationHub"
16
- end
17
- end
18
- end
@@ -1,143 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::IotHub
7
- module Models
8
- #
9
- # Model object.
10
- #
11
- #
12
- class SharedAccessAuthorizationRule
13
-
14
- include MsRestAzure
15
-
16
- # @return [String] The key name.
17
- attr_accessor :key_name
18
-
19
- # @return [String] The primary key.
20
- attr_accessor :primary_key
21
-
22
- # @return [String] The issuer name.
23
- attr_accessor :issuer_name
24
-
25
- # @return [String] The secondary key.
26
- attr_accessor :secondary_key
27
-
28
- # @return [String] The claim type.
29
- attr_accessor :claim_type
30
-
31
- # @return [String] The claim value.
32
- attr_accessor :claim_value
33
-
34
- # @return [Array<SBAccessRights>] The rights.
35
- attr_accessor :rights
36
-
37
- # @return [DateTime] The created time.
38
- attr_accessor :created_time
39
-
40
- # @return [DateTime] The modified time.
41
- attr_accessor :modified_time
42
-
43
- # @return [Integer] The revision.
44
- attr_accessor :revision
45
-
46
-
47
- #
48
- # Mapper for SharedAccessAuthorizationRule class as Ruby Hash.
49
- # This will be used for serialization/deserialization.
50
- #
51
- def self.mapper()
52
- {
53
- required: false,
54
- serialized_name: 'SharedAccessAuthorizationRule',
55
- type: {
56
- name: 'Composite',
57
- class_name: 'SharedAccessAuthorizationRule',
58
- model_properties: {
59
- key_name: {
60
- required: false,
61
- serialized_name: 'KeyName',
62
- type: {
63
- name: 'String'
64
- }
65
- },
66
- primary_key: {
67
- required: false,
68
- serialized_name: 'PrimaryKey',
69
- type: {
70
- name: 'String'
71
- }
72
- },
73
- issuer_name: {
74
- required: false,
75
- serialized_name: 'IssuerName',
76
- type: {
77
- name: 'String'
78
- }
79
- },
80
- secondary_key: {
81
- required: false,
82
- serialized_name: 'SecondaryKey',
83
- type: {
84
- name: 'String'
85
- }
86
- },
87
- claim_type: {
88
- required: false,
89
- serialized_name: 'ClaimType',
90
- type: {
91
- name: 'String'
92
- }
93
- },
94
- claim_value: {
95
- required: false,
96
- serialized_name: 'ClaimValue',
97
- type: {
98
- name: 'String'
99
- }
100
- },
101
- rights: {
102
- required: false,
103
- serialized_name: 'Rights',
104
- type: {
105
- name: 'Sequence',
106
- element: {
107
- required: false,
108
- serialized_name: 'SBAccessRightsElementType',
109
- type: {
110
- name: 'Enum',
111
- module: 'SBAccessRights'
112
- }
113
- }
114
- }
115
- },
116
- created_time: {
117
- required: false,
118
- serialized_name: 'CreatedTime',
119
- type: {
120
- name: 'DateTime'
121
- }
122
- },
123
- modified_time: {
124
- required: false,
125
- serialized_name: 'ModifiedTime',
126
- type: {
127
- name: 'DateTime'
128
- }
129
- },
130
- revision: {
131
- required: false,
132
- serialized_name: 'Revision',
133
- type: {
134
- name: 'Number'
135
- }
136
- }
137
- }
138
- }
139
- }
140
- end
141
- end
142
- end
143
- end