azure_mgmt_notification_hubs 0.16.0 → 0.17.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.
- checksums.yaml +4 -4
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs.rb +15 -12
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/debug_send_response.rb +128 -0
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/error_response.rb +58 -0
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +35 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb +35 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_patch_parameters.rb +216 -0
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/{check_name_availability_request_parameters.rb → operation.rb} +15 -15
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/{check_name_availability_response.rb → operation_display.rb} +22 -21
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_list_result.rb +103 -0
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/resource.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +1 -61
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +98 -0
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +99 -1
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb +7 -7
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb +228 -6
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +11 -14
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/operations.rb +215 -0
- data/lib/profiles/latest/modules/notificationhubs_profile_module.rb +53 -39
- data/lib/version.rb +1 -1
- metadata +12 -9
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb +0 -131
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb +0 -129
@@ -0,0 +1,216 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::NotificationHubs::Mgmt::V2017_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to the patch NotificationHub operation.
|
10
|
+
#
|
11
|
+
class NotificationHubPatchParameters < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The NotificationHub name.
|
16
|
+
attr_accessor :notification_hub_patch_parameters_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
|
+
# @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
|
48
|
+
|
49
|
+
|
50
|
+
#
|
51
|
+
# Mapper for NotificationHubPatchParameters class as Ruby Hash.
|
52
|
+
# This will be used for serialization/deserialization.
|
53
|
+
#
|
54
|
+
def self.mapper()
|
55
|
+
{
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'NotificationHubPatchParameters',
|
59
|
+
type: {
|
60
|
+
name: 'Composite',
|
61
|
+
class_name: 'NotificationHubPatchParameters',
|
62
|
+
model_properties: {
|
63
|
+
id: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
read_only: true,
|
67
|
+
serialized_name: 'id',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
name: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
read_only: true,
|
76
|
+
serialized_name: 'name',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
type: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
read_only: true,
|
85
|
+
serialized_name: 'type',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
location: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'location',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
tags: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'tags',
|
102
|
+
type: {
|
103
|
+
name: 'Dictionary',
|
104
|
+
value: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'StringElementType',
|
108
|
+
type: {
|
109
|
+
name: 'String'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
sku: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'sku',
|
118
|
+
type: {
|
119
|
+
name: 'Composite',
|
120
|
+
class_name: 'Sku'
|
121
|
+
}
|
122
|
+
},
|
123
|
+
notification_hub_patch_parameters_name: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'properties.name',
|
127
|
+
type: {
|
128
|
+
name: 'String'
|
129
|
+
}
|
130
|
+
},
|
131
|
+
registration_ttl: {
|
132
|
+
client_side_validation: true,
|
133
|
+
required: false,
|
134
|
+
serialized_name: 'properties.registrationTtl',
|
135
|
+
type: {
|
136
|
+
name: 'String'
|
137
|
+
}
|
138
|
+
},
|
139
|
+
authorization_rules: {
|
140
|
+
client_side_validation: true,
|
141
|
+
required: false,
|
142
|
+
serialized_name: 'properties.authorizationRules',
|
143
|
+
type: {
|
144
|
+
name: 'Sequence',
|
145
|
+
element: {
|
146
|
+
client_side_validation: true,
|
147
|
+
required: false,
|
148
|
+
serialized_name: 'SharedAccessAuthorizationRulePropertiesElementType',
|
149
|
+
type: {
|
150
|
+
name: 'Composite',
|
151
|
+
class_name: 'SharedAccessAuthorizationRuleProperties'
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
},
|
156
|
+
apns_credential: {
|
157
|
+
client_side_validation: true,
|
158
|
+
required: false,
|
159
|
+
serialized_name: 'properties.apnsCredential',
|
160
|
+
type: {
|
161
|
+
name: 'Composite',
|
162
|
+
class_name: 'ApnsCredential'
|
163
|
+
}
|
164
|
+
},
|
165
|
+
wns_credential: {
|
166
|
+
client_side_validation: true,
|
167
|
+
required: false,
|
168
|
+
serialized_name: 'properties.wnsCredential',
|
169
|
+
type: {
|
170
|
+
name: 'Composite',
|
171
|
+
class_name: 'WnsCredential'
|
172
|
+
}
|
173
|
+
},
|
174
|
+
gcm_credential: {
|
175
|
+
client_side_validation: true,
|
176
|
+
required: false,
|
177
|
+
serialized_name: 'properties.gcmCredential',
|
178
|
+
type: {
|
179
|
+
name: 'Composite',
|
180
|
+
class_name: 'GcmCredential'
|
181
|
+
}
|
182
|
+
},
|
183
|
+
mpns_credential: {
|
184
|
+
client_side_validation: true,
|
185
|
+
required: false,
|
186
|
+
serialized_name: 'properties.mpnsCredential',
|
187
|
+
type: {
|
188
|
+
name: 'Composite',
|
189
|
+
class_name: 'MpnsCredential'
|
190
|
+
}
|
191
|
+
},
|
192
|
+
adm_credential: {
|
193
|
+
client_side_validation: true,
|
194
|
+
required: false,
|
195
|
+
serialized_name: 'properties.admCredential',
|
196
|
+
type: {
|
197
|
+
name: 'Composite',
|
198
|
+
class_name: 'AdmCredential'
|
199
|
+
}
|
200
|
+
},
|
201
|
+
baidu_credential: {
|
202
|
+
client_side_validation: true,
|
203
|
+
required: false,
|
204
|
+
serialized_name: 'properties.baiduCredential',
|
205
|
+
type: {
|
206
|
+
name: 'Composite',
|
207
|
+
class_name: 'BaiduCredential'
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
@@ -6,48 +6,48 @@
|
|
6
6
|
module Azure::NotificationHubs::Mgmt::V2017_04_01
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
10
|
-
# NotificationHubs.
|
9
|
+
# A NotificationHubs REST API operation
|
11
10
|
#
|
12
|
-
class
|
11
|
+
class Operation
|
13
12
|
|
14
13
|
include MsRestAzure
|
15
14
|
|
16
|
-
# @return [String]
|
15
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}
|
17
16
|
attr_accessor :name
|
18
17
|
|
19
|
-
# @return [
|
20
|
-
attr_accessor :
|
18
|
+
# @return [OperationDisplay] The object that represents the operation.
|
19
|
+
attr_accessor :display
|
21
20
|
|
22
21
|
|
23
22
|
#
|
24
|
-
# Mapper for
|
23
|
+
# Mapper for Operation class as Ruby Hash.
|
25
24
|
# This will be used for serialization/deserialization.
|
26
25
|
#
|
27
26
|
def self.mapper()
|
28
27
|
{
|
29
28
|
client_side_validation: true,
|
30
29
|
required: false,
|
31
|
-
serialized_name: '
|
30
|
+
serialized_name: 'Operation',
|
32
31
|
type: {
|
33
32
|
name: 'Composite',
|
34
|
-
class_name: '
|
33
|
+
class_name: 'Operation',
|
35
34
|
model_properties: {
|
36
35
|
name: {
|
37
36
|
client_side_validation: true,
|
38
|
-
required:
|
39
|
-
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'name',
|
40
40
|
type: {
|
41
41
|
name: 'String'
|
42
42
|
}
|
43
43
|
},
|
44
|
-
|
44
|
+
display: {
|
45
45
|
client_side_validation: true,
|
46
46
|
required: false,
|
47
|
-
|
48
|
-
serialized_name: 'Type',
|
47
|
+
serialized_name: 'display',
|
49
48
|
type: {
|
50
|
-
name: '
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'OperationDisplay'
|
51
51
|
}
|
52
52
|
}
|
53
53
|
}
|
@@ -6,58 +6,59 @@
|
|
6
6
|
module Azure::NotificationHubs::Mgmt::V2017_04_01
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# The object that represents the operation.
|
10
10
|
#
|
11
|
-
|
12
|
-
class CheckNameAvailabilityResponse
|
11
|
+
class OperationDisplay
|
13
12
|
|
14
13
|
include MsRestAzure
|
15
14
|
|
16
|
-
# @return [
|
17
|
-
attr_accessor :
|
15
|
+
# @return [String] Service provider: Microsoft.NotificationHubs
|
16
|
+
attr_accessor :provider
|
18
17
|
|
19
|
-
# @return [String]
|
20
|
-
#
|
21
|
-
attr_accessor :
|
18
|
+
# @return [String] Resource on which the operation is performed: Invoice,
|
19
|
+
# etc.
|
20
|
+
attr_accessor :resource
|
22
21
|
|
23
|
-
# @return [String]
|
24
|
-
|
25
|
-
attr_accessor :message
|
22
|
+
# @return [String] Operation type: Read, write, delete, etc.
|
23
|
+
attr_accessor :operation
|
26
24
|
|
27
25
|
|
28
26
|
#
|
29
|
-
# Mapper for
|
27
|
+
# Mapper for OperationDisplay class as Ruby Hash.
|
30
28
|
# This will be used for serialization/deserialization.
|
31
29
|
#
|
32
30
|
def self.mapper()
|
33
31
|
{
|
34
32
|
client_side_validation: true,
|
35
33
|
required: false,
|
36
|
-
serialized_name: '
|
34
|
+
serialized_name: 'Operation_display',
|
37
35
|
type: {
|
38
36
|
name: 'Composite',
|
39
|
-
class_name: '
|
37
|
+
class_name: 'OperationDisplay',
|
40
38
|
model_properties: {
|
41
|
-
|
39
|
+
provider: {
|
42
40
|
client_side_validation: true,
|
43
41
|
required: false,
|
44
|
-
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'provider',
|
45
44
|
type: {
|
46
|
-
name: '
|
45
|
+
name: 'String'
|
47
46
|
}
|
48
47
|
},
|
49
|
-
|
48
|
+
resource: {
|
50
49
|
client_side_validation: true,
|
51
50
|
required: false,
|
52
|
-
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'resource',
|
53
53
|
type: {
|
54
54
|
name: 'String'
|
55
55
|
}
|
56
56
|
},
|
57
|
-
|
57
|
+
operation: {
|
58
58
|
client_side_validation: true,
|
59
59
|
required: false,
|
60
|
-
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'operation',
|
61
62
|
type: {
|
62
63
|
name: 'String'
|
63
64
|
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::NotificationHubs::Mgmt::V2017_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list NotificationHubs operations. It contains a
|
10
|
+
# list of operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<Operation>] List of NotificationHubs operations
|
18
|
+
# supported by the Microsoft.NotificationHubs resource provider.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] URL to get the next set of operation list results if
|
22
|
+
# there are any.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<Operation>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [OperationListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'OperationListResult',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'OperationListResult',
|
69
|
+
model_properties: {
|
70
|
+
value: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
read_only: true,
|
74
|
+
serialized_name: 'value',
|
75
|
+
type: {
|
76
|
+
name: 'Sequence',
|
77
|
+
element: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'OperationElementType',
|
81
|
+
type: {
|
82
|
+
name: 'Composite',
|
83
|
+
class_name: 'Operation'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
},
|
88
|
+
next_link: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'nextLink',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|