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
 
@@ -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,19 +8,43 @@ module Azure::ARM::NotificationHubs
8
8
  #
9
9
  # Parameters supplied to the CreateOrUpdate NotificationHub operation.
10
10
  #
11
- class NotificationHubCreateOrUpdateParameters
11
+ class NotificationHubCreateOrUpdateParameters < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets NotificationHub data center location.
16
- attr_accessor :location
15
+ # @return [String] The NotificationHub name.
16
+ attr_accessor :notification_hub_create_or_update_parameters_name
17
17
 
18
- # @return [Hash{String => String}] Gets or sets NotificationHub tags.
19
- attr_accessor :tags
18
+ # @return [String] The RegistrationTtl of the created NotificationHub
19
+ attr_accessor :registration_ttl
20
20
 
21
- # @return [NotificationHubProperties] Gets or sets properties of the
22
- # NotificationHub.
23
- attr_accessor :properties
21
+ # @return [Array<SharedAccessAuthorizationRuleProperties>] The
22
+ # AuthorizationRules of the created NotificationHub
23
+ attr_accessor :authorization_rules
24
+
25
+ # @return [ApnsCredential] The ApnsCredential of the created
26
+ # NotificationHub
27
+ attr_accessor :apns_credential
28
+
29
+ # @return [WnsCredential] The WnsCredential of the created
30
+ # NotificationHub
31
+ attr_accessor :wns_credential
32
+
33
+ # @return [GcmCredential] The GcmCredential of the created
34
+ # NotificationHub
35
+ attr_accessor :gcm_credential
36
+
37
+ # @return [MpnsCredential] The MpnsCredential of the created
38
+ # NotificationHub
39
+ attr_accessor :mpns_credential
40
+
41
+ # @return [AdmCredential] The AdmCredential of the created
42
+ # NotificationHub
43
+ attr_accessor :adm_credential
44
+
45
+ # @return [BaiduCredential] The BaiduCredential of the created
46
+ # NotificationHub
47
+ attr_accessor :baidu_credential
24
48
 
25
49
 
26
50
  #
@@ -35,6 +59,30 @@ module Azure::ARM::NotificationHubs
35
59
  name: 'Composite',
36
60
  class_name: 'NotificationHubCreateOrUpdateParameters',
37
61
  model_properties: {
62
+ id: {
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'id',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ name: {
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'name',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ type: {
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'type',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
38
86
  location: {
39
87
  required: true,
40
88
  serialized_name: 'location',
@@ -56,12 +104,89 @@ module Azure::ARM::NotificationHubs
56
104
  }
57
105
  }
58
106
  },
59
- properties: {
60
- required: true,
61
- serialized_name: 'properties',
107
+ sku: {
108
+ required: false,
109
+ serialized_name: 'sku',
110
+ type: {
111
+ name: 'Composite',
112
+ class_name: 'Sku'
113
+ }
114
+ },
115
+ notification_hub_create_or_update_parameters_name: {
116
+ required: false,
117
+ serialized_name: 'properties.name',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ registration_ttl: {
123
+ required: false,
124
+ serialized_name: 'properties.registrationTtl',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ authorization_rules: {
130
+ required: false,
131
+ serialized_name: 'properties.authorizationRules',
132
+ type: {
133
+ name: 'Sequence',
134
+ element: {
135
+ required: false,
136
+ serialized_name: 'SharedAccessAuthorizationRulePropertiesElementType',
137
+ type: {
138
+ name: 'Composite',
139
+ class_name: 'SharedAccessAuthorizationRuleProperties'
140
+ }
141
+ }
142
+ }
143
+ },
144
+ apns_credential: {
145
+ required: false,
146
+ serialized_name: 'properties.apnsCredential',
147
+ type: {
148
+ name: 'Composite',
149
+ class_name: 'ApnsCredential'
150
+ }
151
+ },
152
+ wns_credential: {
153
+ required: false,
154
+ serialized_name: 'properties.wnsCredential',
155
+ type: {
156
+ name: 'Composite',
157
+ class_name: 'WnsCredential'
158
+ }
159
+ },
160
+ gcm_credential: {
161
+ required: false,
162
+ serialized_name: 'properties.gcmCredential',
163
+ type: {
164
+ name: 'Composite',
165
+ class_name: 'GcmCredential'
166
+ }
167
+ },
168
+ mpns_credential: {
169
+ required: false,
170
+ serialized_name: 'properties.mpnsCredential',
171
+ type: {
172
+ name: 'Composite',
173
+ class_name: 'MpnsCredential'
174
+ }
175
+ },
176
+ adm_credential: {
177
+ required: false,
178
+ serialized_name: 'properties.admCredential',
179
+ type: {
180
+ name: 'Composite',
181
+ class_name: 'AdmCredential'
182
+ }
183
+ },
184
+ baidu_credential: {
185
+ required: false,
186
+ serialized_name: 'properties.baiduCredential',
62
187
  type: {
63
188
  name: 'Composite',
64
- class_name: 'NotificationHubProperties'
189
+ class_name: 'BaiduCredential'
65
190
  }
66
191
  }
67
192
  }
@@ -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<NotificationHubResource>] Gets or sets result of the
16
- # List NotificationHub operation.
15
+ # @return [Array<NotificationHubResource>] Result of the List
16
+ # NotificationHub 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 NotificationHub
19
+ # @return [String] Link to the next set of results. Not empty if Value
20
+ # contains incomplete list of NotificationHub
21
21
  attr_accessor :next_link
22
22
 
23
23
  # return [Proc] with next page method call.
@@ -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,30 +8,43 @@ module Azure::ARM::NotificationHubs
8
8
  #
9
9
  # Description of a NotificationHub Resource.
10
10
  #
11
- class NotificationHubResource
11
+ class NotificationHubResource < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the id of the created NotificationHub.
16
- attr_accessor :id
15
+ # @return [String] The NotificationHub name.
16
+ attr_accessor :notification_hub_resource_name
17
17
 
18
- # @return [String] Gets or sets datacenter location of the
19
- # NotificationHub.
20
- attr_accessor :location
18
+ # @return [String] The RegistrationTtl of the created NotificationHub
19
+ attr_accessor :registration_ttl
21
20
 
22
- # @return [String] Gets or sets name of the NotificationHub.
23
- attr_accessor :name
21
+ # @return [Array<SharedAccessAuthorizationRuleProperties>] The
22
+ # AuthorizationRules of the created NotificationHub
23
+ attr_accessor :authorization_rules
24
24
 
25
- # @return [String] Gets or sets resource type of the NotificationHub.
26
- attr_accessor :type
25
+ # @return [ApnsCredential] The ApnsCredential of the created
26
+ # NotificationHub
27
+ attr_accessor :apns_credential
27
28
 
28
- # @return [Hash{String => String}] Gets or sets tags of the
29
- # NotificationHub.
30
- attr_accessor :tags
29
+ # @return [WnsCredential] The WnsCredential of the created
30
+ # NotificationHub
31
+ attr_accessor :wns_credential
31
32
 
32
- # @return [NotificationHubProperties] Gets or sets properties of the
33
- # NotificationHub.
34
- attr_accessor :properties
33
+ # @return [GcmCredential] The GcmCredential of the created
34
+ # NotificationHub
35
+ attr_accessor :gcm_credential
36
+
37
+ # @return [MpnsCredential] The MpnsCredential of the created
38
+ # NotificationHub
39
+ attr_accessor :mpns_credential
40
+
41
+ # @return [AdmCredential] The AdmCredential of the created
42
+ # NotificationHub
43
+ attr_accessor :adm_credential
44
+
45
+ # @return [BaiduCredential] The BaiduCredential of the created
46
+ # NotificationHub
47
+ attr_accessor :baidu_credential
35
48
 
36
49
 
37
50
  #
@@ -48,20 +61,15 @@ module Azure::ARM::NotificationHubs
48
61
  model_properties: {
49
62
  id: {
50
63
  required: false,
64
+ read_only: true,
51
65
  serialized_name: 'id',
52
66
  type: {
53
67
  name: 'String'
54
68
  }
55
69
  },
56
- location: {
57
- required: false,
58
- serialized_name: 'location',
59
- type: {
60
- name: 'String'
61
- }
62
- },
63
70
  name: {
64
71
  required: false,
72
+ read_only: true,
65
73
  serialized_name: 'name',
66
74
  type: {
67
75
  name: 'String'
@@ -69,11 +77,19 @@ module Azure::ARM::NotificationHubs
69
77
  },
70
78
  type: {
71
79
  required: false,
80
+ read_only: true,
72
81
  serialized_name: 'type',
73
82
  type: {
74
83
  name: 'String'
75
84
  }
76
85
  },
86
+ location: {
87
+ required: true,
88
+ serialized_name: 'location',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
77
93
  tags: {
78
94
  required: false,
79
95
  serialized_name: 'tags',
@@ -88,12 +104,89 @@ module Azure::ARM::NotificationHubs
88
104
  }
89
105
  }
90
106
  },
91
- properties: {
107
+ sku: {
108
+ required: false,
109
+ serialized_name: 'sku',
110
+ type: {
111
+ name: 'Composite',
112
+ class_name: 'Sku'
113
+ }
114
+ },
115
+ notification_hub_resource_name: {
116
+ required: false,
117
+ serialized_name: 'properties.name',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ registration_ttl: {
123
+ required: false,
124
+ serialized_name: 'properties.registrationTtl',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ authorization_rules: {
130
+ required: false,
131
+ serialized_name: 'properties.authorizationRules',
132
+ type: {
133
+ name: 'Sequence',
134
+ element: {
135
+ required: false,
136
+ serialized_name: 'SharedAccessAuthorizationRulePropertiesElementType',
137
+ type: {
138
+ name: 'Composite',
139
+ class_name: 'SharedAccessAuthorizationRuleProperties'
140
+ }
141
+ }
142
+ }
143
+ },
144
+ apns_credential: {
145
+ required: false,
146
+ serialized_name: 'properties.apnsCredential',
147
+ type: {
148
+ name: 'Composite',
149
+ class_name: 'ApnsCredential'
150
+ }
151
+ },
152
+ wns_credential: {
153
+ required: false,
154
+ serialized_name: 'properties.wnsCredential',
155
+ type: {
156
+ name: 'Composite',
157
+ class_name: 'WnsCredential'
158
+ }
159
+ },
160
+ gcm_credential: {
161
+ required: false,
162
+ serialized_name: 'properties.gcmCredential',
163
+ type: {
164
+ name: 'Composite',
165
+ class_name: 'GcmCredential'
166
+ }
167
+ },
168
+ mpns_credential: {
169
+ required: false,
170
+ serialized_name: 'properties.mpnsCredential',
171
+ type: {
172
+ name: 'Composite',
173
+ class_name: 'MpnsCredential'
174
+ }
175
+ },
176
+ adm_credential: {
177
+ required: false,
178
+ serialized_name: 'properties.admCredential',
179
+ type: {
180
+ name: 'Composite',
181
+ class_name: 'AdmCredential'
182
+ }
183
+ },
184
+ baidu_credential: {
92
185
  required: false,
93
- serialized_name: 'properties',
186
+ serialized_name: 'properties.baiduCredential',
94
187
  type: {
95
188
  name: 'Composite',
96
- class_name: 'NotificationHubProperties'
189
+ class_name: 'BaiduCredential'
97
190
  }
98
191
  }
99
192
  }
@@ -1,27 +1,17 @@
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
 
6
6
  module Azure::ARM::NotificationHubs
7
7
  module Models
8
8
  #
9
- # NotificationHub properties.
9
+ # Description of a NotificationHub PNS Credentials.
10
10
  #
11
- class NotificationHubProperties
11
+ class PnsCredentialsResource < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The NotificationHub name.
16
- attr_accessor :name
17
-
18
- # @return [String] The RegistrationTtl of the created NotificationHub
19
- attr_accessor :registration_ttl
20
-
21
- # @return [Array<SharedAccessAuthorizationRuleProperties>] The
22
- # AuthorizationRules of the created NotificationHub
23
- attr_accessor :authorization_rules
24
-
25
15
  # @return [ApnsCredential] The ApnsCredential of the created
26
16
  # NotificationHub
27
17
  attr_accessor :apns_credential
@@ -48,49 +38,73 @@ module Azure::ARM::NotificationHubs
48
38
 
49
39
 
50
40
  #
51
- # Mapper for NotificationHubProperties class as Ruby Hash.
41
+ # Mapper for PnsCredentialsResource class as Ruby Hash.
52
42
  # This will be used for serialization/deserialization.
53
43
  #
54
44
  def self.mapper()
55
45
  {
56
46
  required: false,
57
- serialized_name: 'NotificationHubProperties',
47
+ serialized_name: 'PnsCredentialsResource',
58
48
  type: {
59
49
  name: 'Composite',
60
- class_name: 'NotificationHubProperties',
50
+ class_name: 'PnsCredentialsResource',
61
51
  model_properties: {
52
+ id: {
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
62
60
  name: {
63
61
  required: false,
62
+ read_only: true,
64
63
  serialized_name: 'name',
65
64
  type: {
66
65
  name: 'String'
67
66
  }
68
67
  },
69
- registration_ttl: {
68
+ type: {
70
69
  required: false,
71
- serialized_name: 'registrationTtl',
70
+ read_only: true,
71
+ serialized_name: 'type',
72
72
  type: {
73
73
  name: 'String'
74
74
  }
75
75
  },
76
- authorization_rules: {
76
+ location: {
77
+ required: true,
78
+ serialized_name: 'location',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ tags: {
77
84
  required: false,
78
- serialized_name: 'authorizationRules',
85
+ serialized_name: 'tags',
79
86
  type: {
80
- name: 'Sequence',
81
- element: {
87
+ name: 'Dictionary',
88
+ value: {
82
89
  required: false,
83
- serialized_name: 'SharedAccessAuthorizationRulePropertiesElementType',
90
+ serialized_name: 'StringElementType',
84
91
  type: {
85
- name: 'Composite',
86
- class_name: 'SharedAccessAuthorizationRuleProperties'
92
+ name: 'String'
87
93
  }
88
94
  }
89
95
  }
90
96
  },
97
+ sku: {
98
+ required: false,
99
+ serialized_name: 'sku',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'Sku'
103
+ }
104
+ },
91
105
  apns_credential: {
92
106
  required: false,
93
- serialized_name: 'apnsCredential',
107
+ serialized_name: 'properties.apnsCredential',
94
108
  type: {
95
109
  name: 'Composite',
96
110
  class_name: 'ApnsCredential'
@@ -98,7 +112,7 @@ module Azure::ARM::NotificationHubs
98
112
  },
99
113
  wns_credential: {
100
114
  required: false,
101
- serialized_name: 'wnsCredential',
115
+ serialized_name: 'properties.wnsCredential',
102
116
  type: {
103
117
  name: 'Composite',
104
118
  class_name: 'WnsCredential'
@@ -106,7 +120,7 @@ module Azure::ARM::NotificationHubs
106
120
  },
107
121
  gcm_credential: {
108
122
  required: false,
109
- serialized_name: 'gcmCredential',
123
+ serialized_name: 'properties.gcmCredential',
110
124
  type: {
111
125
  name: 'Composite',
112
126
  class_name: 'GcmCredential'
@@ -114,7 +128,7 @@ module Azure::ARM::NotificationHubs
114
128
  },
115
129
  mpns_credential: {
116
130
  required: false,
117
- serialized_name: 'mpnsCredential',
131
+ serialized_name: 'properties.mpnsCredential',
118
132
  type: {
119
133
  name: 'Composite',
120
134
  class_name: 'MpnsCredential'
@@ -122,7 +136,7 @@ module Azure::ARM::NotificationHubs
122
136
  },
123
137
  adm_credential: {
124
138
  required: false,
125
- serialized_name: 'admCredential',
139
+ serialized_name: 'properties.admCredential',
126
140
  type: {
127
141
  name: 'Composite',
128
142
  class_name: 'AdmCredential'
@@ -130,7 +144,7 @@ module Azure::ARM::NotificationHubs
130
144
  },
131
145
  baidu_credential: {
132
146
  required: false,
133
- serialized_name: 'baiduCredential',
147
+ serialized_name: 'properties.baiduCredential',
134
148
  type: {
135
149
  name: 'Composite',
136
150
  class_name: 'BaiduCredential'