azure_mgmt_notification_hubs 0.7.0 → 0.8.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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_notification_hubs.rb +17 -20
  3. data/lib/generated/azure_mgmt_notification_hubs/models/access_rights.rb +1 -1
  4. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential.rb +26 -8
  5. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential.rb +36 -8
  6. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb +26 -8
  7. data/lib/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +40 -7
  8. data/lib/generated/azure_mgmt_notification_hubs/models/{check_availability_resource.rb → check_availability_result.rb} +25 -29
  9. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb +16 -8
  10. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb +26 -8
  11. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +146 -12
  12. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb +5 -5
  13. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb +62 -0
  14. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +128 -24
  15. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_type.rb +1 -1
  16. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +138 -13
  17. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +5 -5
  18. data/lib/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +120 -27
  19. data/lib/generated/azure_mgmt_notification_hubs/models/{notification_hub_properties.rb → pns_credentials_resource.rb} +45 -31
  20. data/lib/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb +46 -0
  21. data/lib/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb +34 -5
  22. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +45 -12
  23. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +5 -5
  24. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +1 -82
  25. data/lib/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +32 -34
  26. data/lib/generated/azure_mgmt_notification_hubs/models/sku.rb +85 -0
  27. data/lib/generated/azure_mgmt_notification_hubs/models/sku_name.rb +17 -0
  28. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential.rb +26 -8
  29. data/lib/generated/azure_mgmt_notification_hubs/module_definition.rb +1 -1
  30. data/lib/generated/azure_mgmt_notification_hubs/namespaces.rb +379 -243
  31. data/lib/generated/azure_mgmt_notification_hubs/notification_hubs.rb +192 -71
  32. data/lib/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +15 -2
  33. data/lib/generated/azure_mgmt_notification_hubs/version.rb +2 -2
  34. metadata +10 -13
  35. data/lib/generated/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +0 -64
  36. data/lib/generated/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +0 -74
  37. data/lib/generated/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +0 -64
  38. data/lib/generated/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +0 -54
  39. data/lib/generated/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +0 -64
  40. data/lib/generated/azure_mgmt_notification_hubs/models/namespace_properties.rb +0 -153
  41. data/lib/generated/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +0 -64
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,9 +12,14 @@ module Azure::ARM::NotificationHubs
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [MpnsCredentialProperties] Gets or sets properties of
16
- # NotificationHub MpnsCredential.
17
- attr_accessor :properties
15
+ # @return [String] The MPNS certificate.
16
+ attr_accessor :mpns_certificate
17
+
18
+ # @return [String] The certificate key for this credential.
19
+ attr_accessor :certificate_key
20
+
21
+ # @return [String] The Mpns certificate Thumbprint
22
+ attr_accessor :thumbprint
18
23
 
19
24
 
20
25
  #
@@ -29,12 +34,25 @@ module Azure::ARM::NotificationHubs
29
34
  name: 'Composite',
30
35
  class_name: 'MpnsCredential',
31
36
  model_properties: {
32
- properties: {
37
+ mpns_certificate: {
38
+ required: false,
39
+ serialized_name: 'properties.mpnsCertificate',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ certificate_key: {
45
+ required: false,
46
+ serialized_name: 'properties.certificateKey',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ thumbprint: {
33
52
  required: false,
34
- serialized_name: 'properties',
53
+ serialized_name: 'properties.thumbprint',
35
54
  type: {
36
- name: 'Composite',
37
- class_name: 'MpnsCredentialProperties'
55
+ name: 'String'
38
56
  }
39
57
  }
40
58
  }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,18 +8,50 @@ module Azure::ARM::NotificationHubs
8
8
  #
9
9
  # Parameters supplied to the CreateOrUpdate Namespace operation.
10
10
  #
11
- class NamespaceCreateOrUpdateParameters
11
+ class NamespaceCreateOrUpdateParameters < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets Namespace data center location.
16
- attr_accessor :location
15
+ # @return [String] The name of the namespace.
16
+ attr_accessor :namespace_create_or_update_parameters_name
17
17
 
18
- # @return [Hash{String => String}] Gets or sets Namespace tags.
19
- attr_accessor :tags
18
+ # @return [String] Provisioning state of the Namespace.
19
+ attr_accessor :provisioning_state
20
20
 
21
- # @return [NamespaceProperties] Gets or sets properties of the Namespace.
22
- attr_accessor :properties
21
+ # @return [String] Specifies the targeted region in which the namespace
22
+ # should be created. It can be any of the following values: Australia
23
+ # EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central
24
+ # USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan
25
+ # WestNorth EuropeWest Europe
26
+ attr_accessor :region
27
+
28
+ # @return [String] Status of the namespace. It can be any of these
29
+ # values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
30
+ attr_accessor :status
31
+
32
+ # @return [DateTime] The time the namespace was created.
33
+ attr_accessor :created_at
34
+
35
+ # @return [String] Endpoint you can use to perform NotificationHub
36
+ # operations.
37
+ attr_accessor :service_bus_endpoint
38
+
39
+ # @return [String] The Id of the Azure subscription associated with the
40
+ # namespace.
41
+ attr_accessor :subscription_id
42
+
43
+ # @return [String] ScaleUnit where the namespace gets created
44
+ attr_accessor :scale_unit
45
+
46
+ # @return [Boolean] Whether or not the namespace is currently enabled.
47
+ attr_accessor :enabled
48
+
49
+ # @return [Boolean] Whether or not the namespace is set as Critical.
50
+ attr_accessor :critical
51
+
52
+ # @return [NamespaceType] The namespace type. Possible values include:
53
+ # 'Messaging', 'NotificationHub'
54
+ attr_accessor :namespace_type
23
55
 
24
56
 
25
57
  #
@@ -34,6 +66,30 @@ module Azure::ARM::NotificationHubs
34
66
  name: 'Composite',
35
67
  class_name: 'NamespaceCreateOrUpdateParameters',
36
68
  model_properties: {
69
+ id: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'id',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ name: {
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'name',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ type: {
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'type',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
37
93
  location: {
38
94
  required: true,
39
95
  serialized_name: 'location',
@@ -55,12 +111,90 @@ module Azure::ARM::NotificationHubs
55
111
  }
56
112
  }
57
113
  },
58
- properties: {
59
- required: true,
60
- serialized_name: 'properties',
114
+ sku: {
115
+ required: false,
116
+ serialized_name: 'sku',
61
117
  type: {
62
118
  name: 'Composite',
63
- class_name: 'NamespaceProperties'
119
+ class_name: 'Sku'
120
+ }
121
+ },
122
+ namespace_create_or_update_parameters_name: {
123
+ required: false,
124
+ serialized_name: 'properties.name',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ provisioning_state: {
130
+ required: false,
131
+ serialized_name: 'properties.provisioningState',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ region: {
137
+ required: false,
138
+ serialized_name: 'properties.region',
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ },
143
+ status: {
144
+ required: false,
145
+ serialized_name: 'properties.status',
146
+ type: {
147
+ name: 'String'
148
+ }
149
+ },
150
+ created_at: {
151
+ required: false,
152
+ serialized_name: 'properties.createdAt',
153
+ type: {
154
+ name: 'DateTime'
155
+ }
156
+ },
157
+ service_bus_endpoint: {
158
+ required: false,
159
+ serialized_name: 'properties.serviceBusEndpoint',
160
+ type: {
161
+ name: 'String'
162
+ }
163
+ },
164
+ subscription_id: {
165
+ required: false,
166
+ serialized_name: 'properties.subscriptionId',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ },
171
+ scale_unit: {
172
+ required: false,
173
+ serialized_name: 'properties.scaleUnit',
174
+ type: {
175
+ name: 'String'
176
+ }
177
+ },
178
+ enabled: {
179
+ required: false,
180
+ serialized_name: 'properties.enabled',
181
+ type: {
182
+ name: 'Boolean'
183
+ }
184
+ },
185
+ critical: {
186
+ required: false,
187
+ serialized_name: 'properties.critical',
188
+ type: {
189
+ name: 'Boolean'
190
+ }
191
+ },
192
+ namespace_type: {
193
+ required: false,
194
+ serialized_name: 'properties.namespaceType',
195
+ type: {
196
+ name: 'Enum',
197
+ module: 'NamespaceType'
64
198
  }
65
199
  }
66
200
  }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,12 +12,12 @@ module Azure::ARM::NotificationHubs
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<NamespaceResource>] Gets or sets result of the List
16
- # Namespace operation.
15
+ # @return [Array<NamespaceResource>] Result of the List Namespace
16
+ # operation.
17
17
  attr_accessor :value
18
18
 
19
- # @return [String] Gets or sets link to the next set of results. Not
20
- # empty if Value contains incomplete list of Namespaces
19
+ # @return [String] Link to the next set of results. Not empty if Value
20
+ # contains incomplete list of Namespaces
21
21
  attr_accessor :next_link
22
22
 
23
23
  # return [Proc] with next page method call.
@@ -0,0 +1,62 @@
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::NotificationHubs
7
+ module Models
8
+ #
9
+ # Parameters supplied to the Patch Namespace operation.
10
+ #
11
+ class NamespacePatchParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Resource tags
16
+ attr_accessor :tags
17
+
18
+ # @return [Sku] The sku of the created namespace
19
+ attr_accessor :sku
20
+
21
+
22
+ #
23
+ # Mapper for NamespacePatchParameters class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'NamespacePatchParameters',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'NamespacePatchParameters',
33
+ model_properties: {
34
+ tags: {
35
+ required: false,
36
+ serialized_name: 'tags',
37
+ type: {
38
+ name: 'Dictionary',
39
+ value: {
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ },
48
+ sku: {
49
+ required: false,
50
+ serialized_name: 'sku',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'Sku'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,27 +8,50 @@ module Azure::ARM::NotificationHubs
8
8
  #
9
9
  # Description of a Namespace resource.
10
10
  #
11
- class NamespaceResource
11
+ class NamespaceResource < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the id of the created Namespace.
16
- attr_accessor :id
15
+ # @return [String] The name of the namespace.
16
+ attr_accessor :namespace_resource_name
17
17
 
18
- # @return [String] Gets or sets datacenter location of the Namespace.
19
- attr_accessor :location
18
+ # @return [String] Provisioning state of the Namespace.
19
+ attr_accessor :provisioning_state
20
20
 
21
- # @return [String] Gets or sets name of the Namespace.
22
- attr_accessor :name
21
+ # @return [String] Specifies the targeted region in which the namespace
22
+ # should be created. It can be any of the following values: Australia
23
+ # EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central
24
+ # USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan
25
+ # WestNorth EuropeWest Europe
26
+ attr_accessor :region
23
27
 
24
- # @return [String] Gets or sets resource type of the Namespace.
25
- attr_accessor :type
28
+ # @return [String] Status of the namespace. It can be any of these
29
+ # values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
30
+ attr_accessor :status
26
31
 
27
- # @return [Hash{String => String}] Gets or sets tags of the Namespace.
28
- attr_accessor :tags
32
+ # @return [DateTime] The time the namespace was created.
33
+ attr_accessor :created_at
29
34
 
30
- # @return [NamespaceProperties] Gets or sets properties of the Namespace.
31
- attr_accessor :properties
35
+ # @return [String] Endpoint you can use to perform NotificationHub
36
+ # operations.
37
+ attr_accessor :service_bus_endpoint
38
+
39
+ # @return [String] The Id of the Azure subscription associated with the
40
+ # namespace.
41
+ attr_accessor :subscription_id
42
+
43
+ # @return [String] ScaleUnit where the namespace gets created
44
+ attr_accessor :scale_unit
45
+
46
+ # @return [Boolean] Whether or not the namespace is currently enabled.
47
+ attr_accessor :enabled
48
+
49
+ # @return [Boolean] Whether or not the namespace is set as Critical.
50
+ attr_accessor :critical
51
+
52
+ # @return [NamespaceType] The namespace type. Possible values include:
53
+ # 'Messaging', 'NotificationHub'
54
+ attr_accessor :namespace_type
32
55
 
33
56
 
34
57
  #
@@ -45,20 +68,15 @@ module Azure::ARM::NotificationHubs
45
68
  model_properties: {
46
69
  id: {
47
70
  required: false,
71
+ read_only: true,
48
72
  serialized_name: 'id',
49
73
  type: {
50
74
  name: 'String'
51
75
  }
52
76
  },
53
- location: {
54
- required: false,
55
- serialized_name: 'location',
56
- type: {
57
- name: 'String'
58
- }
59
- },
60
77
  name: {
61
78
  required: false,
79
+ read_only: true,
62
80
  serialized_name: 'name',
63
81
  type: {
64
82
  name: 'String'
@@ -66,11 +84,19 @@ module Azure::ARM::NotificationHubs
66
84
  },
67
85
  type: {
68
86
  required: false,
87
+ read_only: true,
69
88
  serialized_name: 'type',
70
89
  type: {
71
90
  name: 'String'
72
91
  }
73
92
  },
93
+ location: {
94
+ required: true,
95
+ serialized_name: 'location',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ },
74
100
  tags: {
75
101
  required: false,
76
102
  serialized_name: 'tags',
@@ -85,12 +111,90 @@ module Azure::ARM::NotificationHubs
85
111
  }
86
112
  }
87
113
  },
88
- properties: {
114
+ sku: {
89
115
  required: false,
90
- serialized_name: 'properties',
116
+ serialized_name: 'sku',
91
117
  type: {
92
118
  name: 'Composite',
93
- class_name: 'NamespaceProperties'
119
+ class_name: 'Sku'
120
+ }
121
+ },
122
+ namespace_resource_name: {
123
+ required: false,
124
+ serialized_name: 'properties.name',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ provisioning_state: {
130
+ required: false,
131
+ serialized_name: 'properties.provisioningState',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ region: {
137
+ required: false,
138
+ serialized_name: 'properties.region',
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ },
143
+ status: {
144
+ required: false,
145
+ serialized_name: 'properties.status',
146
+ type: {
147
+ name: 'String'
148
+ }
149
+ },
150
+ created_at: {
151
+ required: false,
152
+ serialized_name: 'properties.createdAt',
153
+ type: {
154
+ name: 'DateTime'
155
+ }
156
+ },
157
+ service_bus_endpoint: {
158
+ required: false,
159
+ serialized_name: 'properties.serviceBusEndpoint',
160
+ type: {
161
+ name: 'String'
162
+ }
163
+ },
164
+ subscription_id: {
165
+ required: false,
166
+ serialized_name: 'properties.subscriptionId',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ },
171
+ scale_unit: {
172
+ required: false,
173
+ serialized_name: 'properties.scaleUnit',
174
+ type: {
175
+ name: 'String'
176
+ }
177
+ },
178
+ enabled: {
179
+ required: false,
180
+ serialized_name: 'properties.enabled',
181
+ type: {
182
+ name: 'Boolean'
183
+ }
184
+ },
185
+ critical: {
186
+ required: false,
187
+ serialized_name: 'properties.critical',
188
+ type: {
189
+ name: 'Boolean'
190
+ }
191
+ },
192
+ namespace_type: {
193
+ required: false,
194
+ serialized_name: 'properties.namespaceType',
195
+ type: {
196
+ name: 'Enum',
197
+ module: 'NamespaceType'
94
198
  }
95
199
  }
96
200
  }