azure_mgmt_mobile_engagement 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_mobile_engagement/app_collections.rb +27 -27
  3. data/lib/generated/azure_mgmt_mobile_engagement/apps.rb +26 -26
  4. data/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb +89 -89
  5. data/lib/generated/azure_mgmt_mobile_engagement/devices.rb +172 -174
  6. data/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb +14 -1
  7. data/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb +44 -44
  8. data/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb +56 -56
  9. data/lib/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb +3 -3
  10. data/lib/generated/azure_mgmt_mobile_engagement/models/api_error.rb +2 -1
  11. data/lib/generated/azure_mgmt_mobile_engagement/models/api_error_error.rb +2 -1
  12. data/lib/generated/azure_mgmt_mobile_engagement/models/app.rb +1 -1
  13. data/lib/generated/azure_mgmt_mobile_engagement/models/app_collection.rb +1 -1
  14. data/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_list_result.rb +3 -3
  15. data/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb +2 -1
  16. data/lib/generated/azure_mgmt_mobile_engagement/models/app_info_filter.rb +5 -4
  17. data/lib/generated/azure_mgmt_mobile_engagement/models/app_list_result.rb +3 -3
  18. data/lib/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb +1 -1
  19. data/lib/generated/azure_mgmt_mobile_engagement/models/audience_operators.rb +1 -1
  20. data/lib/generated/azure_mgmt_mobile_engagement/models/boolean_tag_criterion.rb +1 -1
  21. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign.rb +57 -53
  22. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb +3 -1
  23. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_feedbacks.rb +1 -1
  24. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_kinds.rb +1 -1
  25. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_list_result.rb +11 -5
  26. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb +9 -7
  27. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb +16 -15
  28. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb +9 -7
  29. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_result.rb +4 -1
  30. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state.rb +2 -1
  31. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb +2 -1
  32. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_states.rb +1 -1
  33. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb +9 -8
  34. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb +2 -1
  35. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb +2 -1
  36. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_type.rb +1 -1
  37. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_types.rb +1 -1
  38. data/lib/generated/azure_mgmt_mobile_engagement/models/campaigns_list_result.rb +1 -1
  39. data/lib/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb +1 -1
  40. data/lib/generated/azure_mgmt_mobile_engagement/models/carrier_name_criterion.rb +1 -1
  41. data/lib/generated/azure_mgmt_mobile_engagement/models/criterion.rb +2 -1
  42. data/lib/generated/azure_mgmt_mobile_engagement/models/datapush_feedback_criterion.rb +1 -1
  43. data/lib/generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb +6 -5
  44. data/lib/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb +5 -4
  45. data/lib/generated/azure_mgmt_mobile_engagement/models/delivery_times.rb +1 -1
  46. data/lib/generated/azure_mgmt_mobile_engagement/models/device.rb +4 -3
  47. data/lib/generated/azure_mgmt_mobile_engagement/models/device_info.rb +2 -1
  48. data/lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb +4 -3
  49. data/lib/generated/azure_mgmt_mobile_engagement/models/device_manufacturer_criterion.rb +1 -1
  50. data/lib/generated/azure_mgmt_mobile_engagement/models/device_meta.rb +10 -10
  51. data/lib/generated/azure_mgmt_mobile_engagement/models/device_model_criterion.rb +1 -1
  52. data/lib/generated/azure_mgmt_mobile_engagement/models/device_query_result.rb +4 -3
  53. data/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb +6 -4
  54. data/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb +3 -1
  55. data/lib/generated/azure_mgmt_mobile_engagement/models/devices_query_result.rb +1 -1
  56. data/lib/generated/azure_mgmt_mobile_engagement/models/engage_active_users_filter.rb +1 -1
  57. data/lib/generated/azure_mgmt_mobile_engagement/models/engage_idle_users_filter.rb +1 -1
  58. data/lib/generated/azure_mgmt_mobile_engagement/models/engage_new_users_filter.rb +1 -1
  59. data/lib/generated/azure_mgmt_mobile_engagement/models/engage_old_users_filter.rb +1 -1
  60. data/lib/generated/azure_mgmt_mobile_engagement/models/engage_subset_filter.rb +1 -1
  61. data/lib/generated/azure_mgmt_mobile_engagement/models/export_format.rb +1 -1
  62. data/lib/generated/azure_mgmt_mobile_engagement/models/export_options.rb +1 -1
  63. data/lib/generated/azure_mgmt_mobile_engagement/models/export_state.rb +1 -1
  64. data/lib/generated/azure_mgmt_mobile_engagement/models/export_task_list_result.rb +3 -3
  65. data/lib/generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb +4 -3
  66. data/lib/generated/azure_mgmt_mobile_engagement/models/export_task_result.rb +2 -1
  67. data/lib/generated/azure_mgmt_mobile_engagement/models/export_type.rb +1 -1
  68. data/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb +4 -3
  69. data/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb +4 -3
  70. data/lib/generated/azure_mgmt_mobile_engagement/models/filter.rb +2 -1
  71. data/lib/generated/azure_mgmt_mobile_engagement/models/firmware_version_criterion.rb +1 -1
  72. data/lib/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb +4 -3
  73. data/lib/generated/azure_mgmt_mobile_engagement/models/import_task.rb +2 -1
  74. data/lib/generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb +3 -3
  75. data/lib/generated/azure_mgmt_mobile_engagement/models/import_task_result.rb +4 -1
  76. data/lib/generated/azure_mgmt_mobile_engagement/models/integer_tag_criterion.rb +4 -4
  77. data/lib/generated/azure_mgmt_mobile_engagement/models/job_states.rb +1 -1
  78. data/lib/generated/azure_mgmt_mobile_engagement/models/language_criterion.rb +1 -1
  79. data/lib/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb +3 -3
  80. data/lib/generated/azure_mgmt_mobile_engagement/models/native_push_enabled_filter.rb +1 -1
  81. data/lib/generated/azure_mgmt_mobile_engagement/models/network_type_criterion.rb +1 -1
  82. data/lib/generated/azure_mgmt_mobile_engagement/models/notification_options.rb +13 -8
  83. data/lib/generated/azure_mgmt_mobile_engagement/models/notification_types.rb +1 -1
  84. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb +1 -1
  85. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_feedback_criterion.rb +1 -1
  86. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question.rb +6 -4
  87. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb +6 -4
  88. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb +2 -1
  89. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb +2 -1
  90. data/lib/generated/azure_mgmt_mobile_engagement/models/provisioning_states.rb +1 -1
  91. data/lib/generated/azure_mgmt_mobile_engagement/models/push_modes.rb +1 -1
  92. data/lib/generated/azure_mgmt_mobile_engagement/models/push_quota_filter.rb +1 -1
  93. data/lib/generated/azure_mgmt_mobile_engagement/models/screen_size_criterion.rb +1 -1
  94. data/lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb +1 -1
  95. data/lib/generated/azure_mgmt_mobile_engagement/models/string_tag_criterion.rb +1 -1
  96. data/lib/generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb +2 -1
  97. data/lib/generated/azure_mgmt_mobile_engagement/module_definition.rb +1 -1
  98. data/lib/generated/azure_mgmt_mobile_engagement/supported_platforms.rb +1 -1
  99. data/lib/generated/azure_mgmt_mobile_engagement/version.rb +2 -2
  100. data/lib/generated/azure_mgmt_mobile_engagement.rb +25 -25
  101. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd78d984acb538b45fb1598d27098126f44bc460
4
- data.tar.gz: 6324cbb034cdd7984ffcc091873c973d5fa10290
3
+ metadata.gz: 989852ba9845ba5784586d7ecaf6077952206d9b
4
+ data.tar.gz: 40ec5c0828287264aefc7c170c2de0b761f9a190
5
5
  SHA512:
6
- metadata.gz: 716f87d641ac6cb437858ee0d011d5cd3de7ad09014843ecef1266e03e0f086ccafe2e6a416037d61dba92e1d7b27659aec017503e9ee09eb08945ac59f62365
7
- data.tar.gz: 59d5a38a7b68d64c00a9315864fea4076474b42adfa62b659a776898d9560da98be1bc1740067bfe15625379217ed683a6dcb1127c2615f069a50de32ddb93e4
6
+ metadata.gz: 7c41a473c17467c97a9e6d8638180fe59c8718ea515a42b8ce5f83072feaf989dbf6866fc6933ee74df5ad5e9cafa0a9c9c3f601f0c3e38dfa860689282bd88a
7
+ data.tar.gz: 62e71054ed0b079136f6c16dd5c67e66711a878ee56aa73730845442d9702b4fd6bc3cfe0fbff0eeaa2a7e032b65c5daa76086bbe791fa4c93ea4eb27996ef77
@@ -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
 
@@ -22,26 +22,6 @@ module Azure::ARM::MobileEngagement
22
22
  # @return [EngagementManagementClient] reference to the EngagementManagementClient
23
23
  attr_reader :client
24
24
 
25
- #
26
- # Lists app collections in a subscription.
27
- #
28
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
- # will be added to the HTTP request.
30
- #
31
- # @return [AppCollectionListResult] which provide lazy access to pages of the
32
- # response.
33
- #
34
- def list_as_lazy(custom_headers = nil)
35
- response = list_async(custom_headers).value!
36
- unless response.nil?
37
- page = response.body
38
- page.next_method = Proc.new do |next_page_link|
39
- list_next_async(next_page_link, custom_headers)
40
- end
41
- page
42
- end
43
- end
44
-
45
25
  #
46
26
  # Lists app collections in a subscription.
47
27
  #
@@ -224,8 +204,8 @@ module Azure::ARM::MobileEngagement
224
204
  #
225
205
  # Lists app collections in a subscription.
226
206
  #
227
- # @param next_page_link [String] The NextLink from the previous successful
228
- # call to List operation.
207
+ # @param next_page_link [String] The NextLink from the previous successful call
208
+ # to List operation.
229
209
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
230
210
  # will be added to the HTTP request.
231
211
  #
@@ -239,8 +219,8 @@ module Azure::ARM::MobileEngagement
239
219
  #
240
220
  # Lists app collections in a subscription.
241
221
  #
242
- # @param next_page_link [String] The NextLink from the previous successful
243
- # call to List operation.
222
+ # @param next_page_link [String] The NextLink from the previous successful call
223
+ # to List operation.
244
224
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
245
225
  # will be added to the HTTP request.
246
226
  #
@@ -253,8 +233,8 @@ module Azure::ARM::MobileEngagement
253
233
  #
254
234
  # Lists app collections in a subscription.
255
235
  #
256
- # @param next_page_link [String] The NextLink from the previous successful
257
- # call to List operation.
236
+ # @param next_page_link [String] The NextLink from the previous successful call
237
+ # to List operation.
258
238
  # @param [Hash{String => String}] A hash of custom headers that will be added
259
239
  # to the HTTP request.
260
240
  #
@@ -308,5 +288,25 @@ module Azure::ARM::MobileEngagement
308
288
  promise.execute
309
289
  end
310
290
 
291
+ #
292
+ # Lists app collections in a subscription.
293
+ #
294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
295
+ # will be added to the HTTP request.
296
+ #
297
+ # @return [AppCollectionListResult] which provide lazy access to pages of the
298
+ # response.
299
+ #
300
+ def list_as_lazy(custom_headers = nil)
301
+ response = list_async(custom_headers).value!
302
+ unless response.nil?
303
+ page = response.body
304
+ page.next_method = Proc.new do |next_page_link|
305
+ list_next_async(next_page_link, custom_headers)
306
+ end
307
+ page
308
+ end
309
+ end
310
+
311
311
  end
312
312
  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
 
@@ -22,25 +22,6 @@ module Azure::ARM::MobileEngagement
22
22
  # @return [EngagementManagementClient] reference to the EngagementManagementClient
23
23
  attr_reader :client
24
24
 
25
- #
26
- # Lists apps in an appCollection.
27
- #
28
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
- # will be added to the HTTP request.
30
- #
31
- # @return [AppListResult] which provide lazy access to pages of the response.
32
- #
33
- def list_as_lazy(custom_headers = nil)
34
- response = list_async(custom_headers).value!
35
- unless response.nil?
36
- page = response.body
37
- page.next_method = Proc.new do |next_page_link|
38
- list_next_async(next_page_link, custom_headers)
39
- end
40
- page
41
- end
42
- end
43
-
44
25
  #
45
26
  # Lists apps in an appCollection.
46
27
  #
@@ -129,8 +110,8 @@ module Azure::ARM::MobileEngagement
129
110
  #
130
111
  # Lists apps in an appCollection.
131
112
  #
132
- # @param next_page_link [String] The NextLink from the previous successful
133
- # call to List operation.
113
+ # @param next_page_link [String] The NextLink from the previous successful call
114
+ # to List operation.
134
115
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
135
116
  # will be added to the HTTP request.
136
117
  #
@@ -144,8 +125,8 @@ module Azure::ARM::MobileEngagement
144
125
  #
145
126
  # Lists apps in an appCollection.
146
127
  #
147
- # @param next_page_link [String] The NextLink from the previous successful
148
- # call to List operation.
128
+ # @param next_page_link [String] The NextLink from the previous successful call
129
+ # to List operation.
149
130
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
150
131
  # will be added to the HTTP request.
151
132
  #
@@ -158,8 +139,8 @@ module Azure::ARM::MobileEngagement
158
139
  #
159
140
  # Lists apps in an appCollection.
160
141
  #
161
- # @param next_page_link [String] The NextLink from the previous successful
162
- # call to List operation.
142
+ # @param next_page_link [String] The NextLink from the previous successful call
143
+ # to List operation.
163
144
  # @param [Hash{String => String}] A hash of custom headers that will be added
164
145
  # to the HTTP request.
165
146
  #
@@ -213,5 +194,24 @@ module Azure::ARM::MobileEngagement
213
194
  promise.execute
214
195
  end
215
196
 
197
+ #
198
+ # Lists apps in an appCollection.
199
+ #
200
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
201
+ # will be added to the HTTP request.
202
+ #
203
+ # @return [AppListResult] which provide lazy access to pages of the response.
204
+ #
205
+ def list_as_lazy(custom_headers = nil)
206
+ response = list_async(custom_headers).value!
207
+ unless response.nil?
208
+ page = response.body
209
+ page.next_method = Proc.new do |next_page_link|
210
+ list_next_async(next_page_link, custom_headers)
211
+ end
212
+ page
213
+ end
214
+ end
215
+
216
216
  end
217
217
  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
 
@@ -27,8 +27,8 @@ module Azure::ARM::MobileEngagement
27
27
  #
28
28
  # @param kind [CampaignKinds] Campaign kind. Possible values include:
29
29
  # 'announcements', 'polls', 'dataPushes', 'nativePushes'
30
- # @param skip [Integer] Control paging of campaigns, start results at the
31
- # given offset, defaults to 0 (1st page of data).
30
+ # @param skip [Integer] Control paging of campaigns, start results at the given
31
+ # offset, defaults to 0 (1st page of data).
32
32
  # @param top [Integer] Control paging of campaigns, number of campaigns to
33
33
  # return with each call. It returns all campaigns by default. When specifying
34
34
  # $top parameter, the response contains a `nextLink` property describing the
@@ -38,59 +38,16 @@ module Azure::ARM::MobileEngagement
38
38
  # 'draft'`. Valid state values are: draft, scheduled, in-progress, and
39
39
  # finished. Only the eq operator and the state property are supported.
40
40
  # @param orderby [String] Sort results by an expression which looks like
41
- # `$orderby=id asc` (this example is actually the default behavior). The
42
- # syntax is orderby={property} {direction} or just orderby={property}. The
43
- # available sorting properties are id, name, state, activatedDate, and
44
- # finishedDate. The available directions are asc (for ascending order) and
45
- # desc (for descending order). When not specified the asc direction is used.
46
- # Only one property at a time can be used for sorting.
41
+ # `$orderby=id asc` (this example is actually the default behavior). The syntax
42
+ # is orderby={property} {direction} or just orderby={property}. The available
43
+ # sorting properties are id, name, state, activatedDate, and finishedDate. The
44
+ # available directions are asc (for ascending order) and desc (for descending
45
+ # order). When not specified the asc direction is used. Only one property at a
46
+ # time can be used for sorting.
47
47
  # @param search [String] Restrict results to campaigns matching the optional
48
- # `search` expression. This currently performs the search based on the name
49
- # on the campaign only, case insensitive. If the campaign contains the value
50
- # of the `search` parameter anywhere in the name, it matches.
51
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
- # will be added to the HTTP request.
53
- #
54
- # @return [CampaignsListResult] which provide lazy access to pages of the
55
- # response.
56
- #
57
- def list_as_lazy(kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
58
- response = list_async(kind, skip, top, filter, orderby, search, custom_headers).value!
59
- unless response.nil?
60
- page = response.body
61
- page.next_method = Proc.new do |next_page_link|
62
- list_next_async(next_page_link, custom_headers)
63
- end
64
- page
65
- end
66
- end
67
-
68
- #
69
- # Get the list of campaigns.
70
- #
71
- # @param kind [CampaignKinds] Campaign kind. Possible values include:
72
- # 'announcements', 'polls', 'dataPushes', 'nativePushes'
73
- # @param skip [Integer] Control paging of campaigns, start results at the
74
- # given offset, defaults to 0 (1st page of data).
75
- # @param top [Integer] Control paging of campaigns, number of campaigns to
76
- # return with each call. It returns all campaigns by default. When specifying
77
- # $top parameter, the response contains a `nextLink` property describing the
78
- # path to get the next page if there are more results.
79
- # @param filter [String] Filter can be used to restrict the results to
80
- # campaigns matching a specific state. The syntax is `$filter=state eq
81
- # 'draft'`. Valid state values are: draft, scheduled, in-progress, and
82
- # finished. Only the eq operator and the state property are supported.
83
- # @param orderby [String] Sort results by an expression which looks like
84
- # `$orderby=id asc` (this example is actually the default behavior). The
85
- # syntax is orderby={property} {direction} or just orderby={property}. The
86
- # available sorting properties are id, name, state, activatedDate, and
87
- # finishedDate. The available directions are asc (for ascending order) and
88
- # desc (for descending order). When not specified the asc direction is used.
89
- # Only one property at a time can be used for sorting.
90
- # @param search [String] Restrict results to campaigns matching the optional
91
- # `search` expression. This currently performs the search based on the name
92
- # on the campaign only, case insensitive. If the campaign contains the value
93
- # of the `search` parameter anywhere in the name, it matches.
48
+ # `search` expression. This currently performs the search based on the name on
49
+ # the campaign only, case insensitive. If the campaign contains the value of
50
+ # the `search` parameter anywhere in the name, it matches.
94
51
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
95
52
  # will be added to the HTTP request.
96
53
  #
@@ -106,8 +63,8 @@ module Azure::ARM::MobileEngagement
106
63
  #
107
64
  # @param kind [CampaignKinds] Campaign kind. Possible values include:
108
65
  # 'announcements', 'polls', 'dataPushes', 'nativePushes'
109
- # @param skip [Integer] Control paging of campaigns, start results at the
110
- # given offset, defaults to 0 (1st page of data).
66
+ # @param skip [Integer] Control paging of campaigns, start results at the given
67
+ # offset, defaults to 0 (1st page of data).
111
68
  # @param top [Integer] Control paging of campaigns, number of campaigns to
112
69
  # return with each call. It returns all campaigns by default. When specifying
113
70
  # $top parameter, the response contains a `nextLink` property describing the
@@ -117,16 +74,16 @@ module Azure::ARM::MobileEngagement
117
74
  # 'draft'`. Valid state values are: draft, scheduled, in-progress, and
118
75
  # finished. Only the eq operator and the state property are supported.
119
76
  # @param orderby [String] Sort results by an expression which looks like
120
- # `$orderby=id asc` (this example is actually the default behavior). The
121
- # syntax is orderby={property} {direction} or just orderby={property}. The
122
- # available sorting properties are id, name, state, activatedDate, and
123
- # finishedDate. The available directions are asc (for ascending order) and
124
- # desc (for descending order). When not specified the asc direction is used.
125
- # Only one property at a time can be used for sorting.
77
+ # `$orderby=id asc` (this example is actually the default behavior). The syntax
78
+ # is orderby={property} {direction} or just orderby={property}. The available
79
+ # sorting properties are id, name, state, activatedDate, and finishedDate. The
80
+ # available directions are asc (for ascending order) and desc (for descending
81
+ # order). When not specified the asc direction is used. Only one property at a
82
+ # time can be used for sorting.
126
83
  # @param search [String] Restrict results to campaigns matching the optional
127
- # `search` expression. This currently performs the search based on the name
128
- # on the campaign only, case insensitive. If the campaign contains the value
129
- # of the `search` parameter anywhere in the name, it matches.
84
+ # `search` expression. This currently performs the search based on the name on
85
+ # the campaign only, case insensitive. If the campaign contains the value of
86
+ # the `search` parameter anywhere in the name, it matches.
130
87
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
131
88
  # will be added to the HTTP request.
132
89
  #
@@ -141,8 +98,8 @@ module Azure::ARM::MobileEngagement
141
98
  #
142
99
  # @param kind [CampaignKinds] Campaign kind. Possible values include:
143
100
  # 'announcements', 'polls', 'dataPushes', 'nativePushes'
144
- # @param skip [Integer] Control paging of campaigns, start results at the
145
- # given offset, defaults to 0 (1st page of data).
101
+ # @param skip [Integer] Control paging of campaigns, start results at the given
102
+ # offset, defaults to 0 (1st page of data).
146
103
  # @param top [Integer] Control paging of campaigns, number of campaigns to
147
104
  # return with each call. It returns all campaigns by default. When specifying
148
105
  # $top parameter, the response contains a `nextLink` property describing the
@@ -152,16 +109,16 @@ module Azure::ARM::MobileEngagement
152
109
  # 'draft'`. Valid state values are: draft, scheduled, in-progress, and
153
110
  # finished. Only the eq operator and the state property are supported.
154
111
  # @param orderby [String] Sort results by an expression which looks like
155
- # `$orderby=id asc` (this example is actually the default behavior). The
156
- # syntax is orderby={property} {direction} or just orderby={property}. The
157
- # available sorting properties are id, name, state, activatedDate, and
158
- # finishedDate. The available directions are asc (for ascending order) and
159
- # desc (for descending order). When not specified the asc direction is used.
160
- # Only one property at a time can be used for sorting.
112
+ # `$orderby=id asc` (this example is actually the default behavior). The syntax
113
+ # is orderby={property} {direction} or just orderby={property}. The available
114
+ # sorting properties are id, name, state, activatedDate, and finishedDate. The
115
+ # available directions are asc (for ascending order) and desc (for descending
116
+ # order). When not specified the asc direction is used. Only one property at a
117
+ # time can be used for sorting.
161
118
  # @param search [String] Restrict results to campaigns matching the optional
162
- # `search` expression. This currently performs the search based on the name
163
- # on the campaign only, case insensitive. If the campaign contains the value
164
- # of the `search` parameter anywhere in the name, it matches.
119
+ # `search` expression. This currently performs the search based on the name on
120
+ # the campaign only, case insensitive. If the campaign contains the value of
121
+ # the `search` parameter anywhere in the name, it matches.
165
122
  # @param [Hash{String => String}] A hash of custom headers that will be added
166
123
  # to the HTTP request.
167
124
  #
@@ -850,8 +807,8 @@ module Azure::ARM::MobileEngagement
850
807
  #
851
808
  # @param kind [CampaignKinds] Campaign kind. Possible values include:
852
809
  # 'announcements', 'polls', 'dataPushes', 'nativePushes'
853
- # @param parameters [CampaignTestNewParameters] Parameters supplied to the
854
- # Test Campaign operation.
810
+ # @param parameters [CampaignTestNewParameters] Parameters supplied to the Test
811
+ # Campaign operation.
855
812
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
856
813
  # will be added to the HTTP request.
857
814
  #
@@ -867,8 +824,8 @@ module Azure::ARM::MobileEngagement
867
824
  #
868
825
  # @param kind [CampaignKinds] Campaign kind. Possible values include:
869
826
  # 'announcements', 'polls', 'dataPushes', 'nativePushes'
870
- # @param parameters [CampaignTestNewParameters] Parameters supplied to the
871
- # Test Campaign operation.
827
+ # @param parameters [CampaignTestNewParameters] Parameters supplied to the Test
828
+ # Campaign operation.
872
829
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
873
830
  # will be added to the HTTP request.
874
831
  #
@@ -883,8 +840,8 @@ module Azure::ARM::MobileEngagement
883
840
  #
884
841
  # @param kind [CampaignKinds] Campaign kind. Possible values include:
885
842
  # 'announcements', 'polls', 'dataPushes', 'nativePushes'
886
- # @param parameters [CampaignTestNewParameters] Parameters supplied to the
887
- # Test Campaign operation.
843
+ # @param parameters [CampaignTestNewParameters] Parameters supplied to the Test
844
+ # Campaign operation.
888
845
  # @param [Hash{String => String}] A hash of custom headers that will be added
889
846
  # to the HTTP request.
890
847
  #
@@ -1461,8 +1418,8 @@ module Azure::ARM::MobileEngagement
1461
1418
  #
1462
1419
  # Get the list of campaigns.
1463
1420
  #
1464
- # @param next_page_link [String] The NextLink from the previous successful
1465
- # call to List operation.
1421
+ # @param next_page_link [String] The NextLink from the previous successful call
1422
+ # to List operation.
1466
1423
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1467
1424
  # will be added to the HTTP request.
1468
1425
  #
@@ -1476,8 +1433,8 @@ module Azure::ARM::MobileEngagement
1476
1433
  #
1477
1434
  # Get the list of campaigns.
1478
1435
  #
1479
- # @param next_page_link [String] The NextLink from the previous successful
1480
- # call to List operation.
1436
+ # @param next_page_link [String] The NextLink from the previous successful call
1437
+ # to List operation.
1481
1438
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1482
1439
  # will be added to the HTTP request.
1483
1440
  #
@@ -1490,8 +1447,8 @@ module Azure::ARM::MobileEngagement
1490
1447
  #
1491
1448
  # Get the list of campaigns.
1492
1449
  #
1493
- # @param next_page_link [String] The NextLink from the previous successful
1494
- # call to List operation.
1450
+ # @param next_page_link [String] The NextLink from the previous successful call
1451
+ # to List operation.
1495
1452
  # @param [Hash{String => String}] A hash of custom headers that will be added
1496
1453
  # to the HTTP request.
1497
1454
  #
@@ -1545,5 +1502,48 @@ module Azure::ARM::MobileEngagement
1545
1502
  promise.execute
1546
1503
  end
1547
1504
 
1505
+ #
1506
+ # Get the list of campaigns.
1507
+ #
1508
+ # @param kind [CampaignKinds] Campaign kind. Possible values include:
1509
+ # 'announcements', 'polls', 'dataPushes', 'nativePushes'
1510
+ # @param skip [Integer] Control paging of campaigns, start results at the given
1511
+ # offset, defaults to 0 (1st page of data).
1512
+ # @param top [Integer] Control paging of campaigns, number of campaigns to
1513
+ # return with each call. It returns all campaigns by default. When specifying
1514
+ # $top parameter, the response contains a `nextLink` property describing the
1515
+ # path to get the next page if there are more results.
1516
+ # @param filter [String] Filter can be used to restrict the results to
1517
+ # campaigns matching a specific state. The syntax is `$filter=state eq
1518
+ # 'draft'`. Valid state values are: draft, scheduled, in-progress, and
1519
+ # finished. Only the eq operator and the state property are supported.
1520
+ # @param orderby [String] Sort results by an expression which looks like
1521
+ # `$orderby=id asc` (this example is actually the default behavior). The syntax
1522
+ # is orderby={property} {direction} or just orderby={property}. The available
1523
+ # sorting properties are id, name, state, activatedDate, and finishedDate. The
1524
+ # available directions are asc (for ascending order) and desc (for descending
1525
+ # order). When not specified the asc direction is used. Only one property at a
1526
+ # time can be used for sorting.
1527
+ # @param search [String] Restrict results to campaigns matching the optional
1528
+ # `search` expression. This currently performs the search based on the name on
1529
+ # the campaign only, case insensitive. If the campaign contains the value of
1530
+ # the `search` parameter anywhere in the name, it matches.
1531
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1532
+ # will be added to the HTTP request.
1533
+ #
1534
+ # @return [CampaignsListResult] which provide lazy access to pages of the
1535
+ # response.
1536
+ #
1537
+ def list_as_lazy(kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
1538
+ response = list_async(kind, skip, top, filter, orderby, search, custom_headers).value!
1539
+ unless response.nil?
1540
+ page = response.body
1541
+ page.next_method = Proc.new do |next_page_link|
1542
+ list_next_async(next_page_link, custom_headers)
1543
+ end
1544
+ page
1545
+ end
1546
+ end
1547
+
1548
1548
  end
1549
1549
  end