azure_mgmt_mobile_engagement 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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_mobile_engagement.rb +23 -23
- data/lib/generated/azure_mgmt_mobile_engagement/apps.rb +18 -10
- data/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb +239 -119
- data/lib/generated/azure_mgmt_mobile_engagement/devices.rb +101 -53
- data/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb +4 -14
- data/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb +221 -110
- data/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb +59 -29
- data/lib/generated/azure_mgmt_mobile_engagement/models/api_error.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/api_error_error.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/app_info_filter.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign.rb +7 -7
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_list_result.rb +6 -6
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_result.rb +3 -3
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/criterion.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/device.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/device_info.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/device_meta.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/device_query_result.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/export_task_result.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/filter.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/import_task.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/import_task_result.rb +3 -3
- data/lib/generated/azure_mgmt_mobile_engagement/models/notification_options.rb +5 -5
- data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb +2 -2
- data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_mobile_engagement/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1751ec3928de91c18eb3b61a7c00a79ab5818cc2
|
4
|
+
data.tar.gz: 61963bb4d7f2cffc8d0f637b2f9f982752c5be36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efea2b7a71dcb424c2c29c3bb7830ad5b9f9ed00628fb2d6fbe8d4e51ba50973aa20df1d435420246425f1ab86f6510abdb46ed14220b4486dcc8db20083a689
|
7
|
+
data.tar.gz: 64235676a893cf4b819f8dcb84a6b8b2bea664f7def0f950d828ff7326f94950302d7def731e7ecc3e753c710f03e029291eed5517aa42fe8da7ae040830b713
|
@@ -31,47 +31,47 @@ module Azure::ARM::MobileEngagement
|
|
31
31
|
|
32
32
|
module Models
|
33
33
|
autoload :CampaignState, 'generated/azure_mgmt_mobile_engagement/models/campaign_state.rb'
|
34
|
-
autoload :ApiError, 'generated/azure_mgmt_mobile_engagement/models/api_error.rb'
|
35
34
|
autoload :ApiErrorError, 'generated/azure_mgmt_mobile_engagement/models/api_error_error.rb'
|
35
|
+
autoload :ApiError, 'generated/azure_mgmt_mobile_engagement/models/api_error.rb'
|
36
36
|
autoload :ExportTaskParameter, 'generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb'
|
37
|
-
autoload :PollQuestionChoiceLocalization, 'generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb'
|
38
|
-
autoload :CampaignPushParameters, 'generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb'
|
39
|
-
autoload :FeedbackByCampaignParameter, 'generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb'
|
40
37
|
autoload :AppListResult, 'generated/azure_mgmt_mobile_engagement/models/app_list_result.rb'
|
41
|
-
autoload :SupportedPlatformsListResult, 'generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb'
|
42
|
-
autoload :ImportTaskListResult, 'generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb'
|
43
|
-
autoload :CampaignTestSavedParameters, 'generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb'
|
44
38
|
autoload :DeviceTagsParameters, 'generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb'
|
45
|
-
autoload :
|
39
|
+
autoload :AppCollectionListResult, 'generated/azure_mgmt_mobile_engagement/models/app_collection_list_result.rb'
|
46
40
|
autoload :DeviceTagsResult, 'generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb'
|
47
|
-
autoload :
|
41
|
+
autoload :SupportedPlatformsListResult, 'generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb'
|
48
42
|
autoload :ExportOptions, 'generated/azure_mgmt_mobile_engagement/models/export_options.rb'
|
49
|
-
autoload :
|
43
|
+
autoload :CampaignTestSavedParameters, 'generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb'
|
50
44
|
autoload :DateRangeExportTaskParameter, 'generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb'
|
51
|
-
autoload :
|
52
|
-
autoload :
|
53
|
-
autoload :
|
45
|
+
autoload :Filter, 'generated/azure_mgmt_mobile_engagement/models/filter.rb'
|
46
|
+
autoload :DeviceMeta, 'generated/azure_mgmt_mobile_engagement/models/device_meta.rb'
|
47
|
+
autoload :NotificationOptions, 'generated/azure_mgmt_mobile_engagement/models/notification_options.rb'
|
54
48
|
autoload :CampaignsListResult, 'generated/azure_mgmt_mobile_engagement/models/campaigns_list_result.rb'
|
55
|
-
autoload :
|
49
|
+
autoload :PollQuestionLocalization, 'generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb'
|
56
50
|
autoload :CampaignStatisticsResult, 'generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb'
|
51
|
+
autoload :CampaignLocalization, 'generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb'
|
52
|
+
autoload :PollQuestionChoiceLocalization, 'generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb'
|
57
53
|
autoload :FeedbackByDateRangeParameter, 'generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb'
|
54
|
+
autoload :ExportTaskListResult, 'generated/azure_mgmt_mobile_engagement/models/export_task_list_result.rb'
|
55
|
+
autoload :CampaignPushParameters, 'generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb'
|
58
56
|
autoload :CampaignPushResult, 'generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb'
|
59
|
-
autoload :
|
57
|
+
autoload :ImportTask, 'generated/azure_mgmt_mobile_engagement/models/import_task.rb'
|
58
|
+
autoload :AppCollectionNameAvailability, 'generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb'
|
60
59
|
autoload :DeviceQueryResult, 'generated/azure_mgmt_mobile_engagement/models/device_query_result.rb'
|
61
|
-
autoload :
|
62
|
-
autoload :
|
60
|
+
autoload :Criterion, 'generated/azure_mgmt_mobile_engagement/models/criterion.rb'
|
61
|
+
autoload :DevicesQueryResult, 'generated/azure_mgmt_mobile_engagement/models/devices_query_result.rb'
|
62
|
+
autoload :FeedbackByCampaignParameter, 'generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb'
|
63
63
|
autoload :DeviceInfo, 'generated/azure_mgmt_mobile_engagement/models/device_info.rb'
|
64
|
-
autoload :
|
64
|
+
autoload :ImportTaskListResult, 'generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb'
|
65
65
|
autoload :DeviceLocation, 'generated/azure_mgmt_mobile_engagement/models/device_location.rb'
|
66
|
-
autoload :
|
66
|
+
autoload :ExportTaskResult, 'generated/azure_mgmt_mobile_engagement/models/export_task_result.rb'
|
67
67
|
autoload :Device, 'generated/azure_mgmt_mobile_engagement/models/device.rb'
|
68
|
-
autoload :
|
68
|
+
autoload :CampaignAudience, 'generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb'
|
69
69
|
autoload :App, 'generated/azure_mgmt_mobile_engagement/models/app.rb'
|
70
70
|
autoload :AppCollection, 'generated/azure_mgmt_mobile_engagement/models/app_collection.rb'
|
71
|
-
autoload :CampaignTestNewParameters, 'generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb'
|
72
|
-
autoload :Campaign, 'generated/azure_mgmt_mobile_engagement/models/campaign.rb'
|
73
|
-
autoload :PollQuestion, 'generated/azure_mgmt_mobile_engagement/models/poll_question.rb'
|
74
71
|
autoload :PollQuestionChoice, 'generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb'
|
72
|
+
autoload :PollQuestion, 'generated/azure_mgmt_mobile_engagement/models/poll_question.rb'
|
73
|
+
autoload :Campaign, 'generated/azure_mgmt_mobile_engagement/models/campaign.rb'
|
74
|
+
autoload :CampaignTestNewParameters, 'generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb'
|
75
75
|
autoload :CampaignStateResult, 'generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb'
|
76
76
|
autoload :CarrierNameCriterion, 'generated/azure_mgmt_mobile_engagement/models/carrier_name_criterion.rb'
|
77
77
|
autoload :CarrierCountryCriterion, 'generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb'
|
@@ -25,41 +25,47 @@ module Azure::ARM::MobileEngagement
|
|
25
25
|
#
|
26
26
|
# Lists apps in an appCollection.
|
27
27
|
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group.
|
29
|
+
# @param app_collection [String] Application collection.
|
28
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
31
|
# will be added to the HTTP request.
|
30
32
|
#
|
31
33
|
# @return [Array<App>] operation results.
|
32
34
|
#
|
33
|
-
def list(custom_headers = nil)
|
34
|
-
first_page = list_as_lazy(custom_headers)
|
35
|
+
def list(resource_group_name, app_collection, custom_headers = nil)
|
36
|
+
first_page = list_as_lazy(resource_group_name, app_collection, custom_headers)
|
35
37
|
first_page.get_all_items
|
36
38
|
end
|
37
39
|
|
38
40
|
#
|
39
41
|
# Lists apps in an appCollection.
|
40
42
|
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group.
|
44
|
+
# @param app_collection [String] Application collection.
|
41
45
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
46
|
# will be added to the HTTP request.
|
43
47
|
#
|
44
48
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
45
49
|
#
|
46
|
-
def list_with_http_info(custom_headers = nil)
|
47
|
-
list_async(custom_headers).value!
|
50
|
+
def list_with_http_info(resource_group_name, app_collection, custom_headers = nil)
|
51
|
+
list_async(resource_group_name, app_collection, custom_headers).value!
|
48
52
|
end
|
49
53
|
|
50
54
|
#
|
51
55
|
# Lists apps in an appCollection.
|
52
56
|
#
|
57
|
+
# @param resource_group_name [String] The name of the resource group.
|
58
|
+
# @param app_collection [String] Application collection.
|
53
59
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
54
60
|
# to the HTTP request.
|
55
61
|
#
|
56
62
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
57
63
|
#
|
58
|
-
def list_async(custom_headers = nil)
|
64
|
+
def list_async(resource_group_name, app_collection, custom_headers = nil)
|
59
65
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
60
66
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
61
|
-
fail ArgumentError, '
|
62
|
-
fail ArgumentError, '
|
67
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
63
69
|
|
64
70
|
|
65
71
|
request_headers = {}
|
@@ -73,7 +79,7 @@ module Azure::ARM::MobileEngagement
|
|
73
79
|
|
74
80
|
options = {
|
75
81
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
76
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
82
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection},
|
77
83
|
query_params: {'api-version' => @client.api_version},
|
78
84
|
headers: request_headers.merge(custom_headers || {}),
|
79
85
|
base_url: request_url
|
@@ -197,13 +203,15 @@ module Azure::ARM::MobileEngagement
|
|
197
203
|
#
|
198
204
|
# Lists apps in an appCollection.
|
199
205
|
#
|
206
|
+
# @param resource_group_name [String] The name of the resource group.
|
207
|
+
# @param app_collection [String] Application collection.
|
200
208
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
201
209
|
# will be added to the HTTP request.
|
202
210
|
#
|
203
211
|
# @return [AppListResult] which provide lazy access to pages of the response.
|
204
212
|
#
|
205
|
-
def list_as_lazy(custom_headers = nil)
|
206
|
-
response = list_async(custom_headers).value!
|
213
|
+
def list_as_lazy(resource_group_name, app_collection, custom_headers = nil)
|
214
|
+
response = list_async(resource_group_name, app_collection, custom_headers).value!
|
207
215
|
unless response.nil?
|
208
216
|
page = response.body
|
209
217
|
page.next_method = Proc.new do |next_page_link|
|
@@ -25,6 +25,9 @@ module Azure::ARM::MobileEngagement
|
|
25
25
|
#
|
26
26
|
# Get the list of campaigns.
|
27
27
|
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group.
|
29
|
+
# @param app_collection [String] Application collection.
|
30
|
+
# @param app_name [String] Application resource name.
|
28
31
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
29
32
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
30
33
|
# @param skip [Integer] Control paging of campaigns, start results at the given
|
@@ -53,14 +56,17 @@ module Azure::ARM::MobileEngagement
|
|
53
56
|
#
|
54
57
|
# @return [Array<CampaignListResult>] operation results.
|
55
58
|
#
|
56
|
-
def list(kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
|
57
|
-
first_page = list_as_lazy(kind, skip, top, filter, orderby, search, custom_headers)
|
59
|
+
def list(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
|
60
|
+
first_page = list_as_lazy(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers)
|
58
61
|
first_page.get_all_items
|
59
62
|
end
|
60
63
|
|
61
64
|
#
|
62
65
|
# Get the list of campaigns.
|
63
66
|
#
|
67
|
+
# @param resource_group_name [String] The name of the resource group.
|
68
|
+
# @param app_collection [String] Application collection.
|
69
|
+
# @param app_name [String] Application resource name.
|
64
70
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
65
71
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
66
72
|
# @param skip [Integer] Control paging of campaigns, start results at the given
|
@@ -89,13 +95,16 @@ module Azure::ARM::MobileEngagement
|
|
89
95
|
#
|
90
96
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
91
97
|
#
|
92
|
-
def list_with_http_info(kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
|
93
|
-
list_async(kind, skip, top, filter, orderby, search, custom_headers).value!
|
98
|
+
def list_with_http_info(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
|
99
|
+
list_async(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers).value!
|
94
100
|
end
|
95
101
|
|
96
102
|
#
|
97
103
|
# Get the list of campaigns.
|
98
104
|
#
|
105
|
+
# @param resource_group_name [String] The name of the resource group.
|
106
|
+
# @param app_collection [String] Application collection.
|
107
|
+
# @param app_name [String] Application resource name.
|
99
108
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
100
109
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
101
110
|
# @param skip [Integer] Control paging of campaigns, start results at the given
|
@@ -124,11 +133,11 @@ module Azure::ARM::MobileEngagement
|
|
124
133
|
#
|
125
134
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
126
135
|
#
|
127
|
-
def list_async(kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
|
136
|
+
def list_async(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
|
128
137
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
129
|
-
fail ArgumentError, '
|
130
|
-
fail ArgumentError, '
|
131
|
-
fail ArgumentError, '
|
138
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
139
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
140
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
132
141
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
133
142
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
134
143
|
|
@@ -144,7 +153,7 @@ module Azure::ARM::MobileEngagement
|
|
144
153
|
|
145
154
|
options = {
|
146
155
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
147
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
156
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind},
|
148
157
|
query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top,'$filter' => filter,'$orderby' => orderby,'$search' => search},
|
149
158
|
headers: request_headers.merge(custom_headers || {}),
|
150
159
|
base_url: request_url
|
@@ -181,6 +190,9 @@ module Azure::ARM::MobileEngagement
|
|
181
190
|
#
|
182
191
|
# Create a push campaign (announcement, poll, data push or native push).
|
183
192
|
#
|
193
|
+
# @param resource_group_name [String] The name of the resource group.
|
194
|
+
# @param app_collection [String] Application collection.
|
195
|
+
# @param app_name [String] Application resource name.
|
184
196
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
185
197
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
186
198
|
# @param parameters [Campaign] Parameters supplied to the Update Campaign
|
@@ -190,14 +202,17 @@ module Azure::ARM::MobileEngagement
|
|
190
202
|
#
|
191
203
|
# @return [CampaignStateResult] operation results.
|
192
204
|
#
|
193
|
-
def create(kind, parameters, custom_headers = nil)
|
194
|
-
response = create_async(kind, parameters, custom_headers).value!
|
205
|
+
def create(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
|
206
|
+
response = create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
|
195
207
|
response.body unless response.nil?
|
196
208
|
end
|
197
209
|
|
198
210
|
#
|
199
211
|
# Create a push campaign (announcement, poll, data push or native push).
|
200
212
|
#
|
213
|
+
# @param resource_group_name [String] The name of the resource group.
|
214
|
+
# @param app_collection [String] Application collection.
|
215
|
+
# @param app_name [String] Application resource name.
|
201
216
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
202
217
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
203
218
|
# @param parameters [Campaign] Parameters supplied to the Update Campaign
|
@@ -207,13 +222,16 @@ module Azure::ARM::MobileEngagement
|
|
207
222
|
#
|
208
223
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
209
224
|
#
|
210
|
-
def create_with_http_info(kind, parameters, custom_headers = nil)
|
211
|
-
create_async(kind, parameters, custom_headers).value!
|
225
|
+
def create_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
|
226
|
+
create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
|
212
227
|
end
|
213
228
|
|
214
229
|
#
|
215
230
|
# Create a push campaign (announcement, poll, data push or native push).
|
216
231
|
#
|
232
|
+
# @param resource_group_name [String] The name of the resource group.
|
233
|
+
# @param app_collection [String] Application collection.
|
234
|
+
# @param app_name [String] Application resource name.
|
217
235
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
218
236
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
219
237
|
# @param parameters [Campaign] Parameters supplied to the Update Campaign
|
@@ -223,11 +241,11 @@ module Azure::ARM::MobileEngagement
|
|
223
241
|
#
|
224
242
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
225
243
|
#
|
226
|
-
def create_async(kind, parameters, custom_headers = nil)
|
244
|
+
def create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
|
227
245
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
228
|
-
fail ArgumentError, '
|
229
|
-
fail ArgumentError, '
|
230
|
-
fail ArgumentError, '
|
246
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
247
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
248
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
231
249
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
232
250
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
233
251
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -252,7 +270,7 @@ module Azure::ARM::MobileEngagement
|
|
252
270
|
|
253
271
|
options = {
|
254
272
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
255
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
273
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind},
|
256
274
|
query_params: {'api-version' => @client.api_version},
|
257
275
|
body: request_content,
|
258
276
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -294,13 +312,16 @@ module Azure::ARM::MobileEngagement
|
|
294
312
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
295
313
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
296
314
|
# @param id [Integer] Campaign identifier.
|
315
|
+
# @param resource_group_name [String] The name of the resource group.
|
316
|
+
# @param app_collection [String] Application collection.
|
317
|
+
# @param app_name [String] Application resource name.
|
297
318
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
298
319
|
# will be added to the HTTP request.
|
299
320
|
#
|
300
321
|
# @return [CampaignResult] operation results.
|
301
322
|
#
|
302
|
-
def get(kind, id, custom_headers = nil)
|
303
|
-
response = get_async(kind, id, custom_headers).value!
|
323
|
+
def get(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
324
|
+
response = get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
|
304
325
|
response.body unless response.nil?
|
305
326
|
end
|
306
327
|
|
@@ -311,13 +332,16 @@ module Azure::ARM::MobileEngagement
|
|
311
332
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
312
333
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
313
334
|
# @param id [Integer] Campaign identifier.
|
335
|
+
# @param resource_group_name [String] The name of the resource group.
|
336
|
+
# @param app_collection [String] Application collection.
|
337
|
+
# @param app_name [String] Application resource name.
|
314
338
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
315
339
|
# will be added to the HTTP request.
|
316
340
|
#
|
317
341
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
318
342
|
#
|
319
|
-
def get_with_http_info(kind, id, custom_headers = nil)
|
320
|
-
get_async(kind, id, custom_headers).value!
|
343
|
+
def get_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
344
|
+
get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
|
321
345
|
end
|
322
346
|
|
323
347
|
#
|
@@ -327,18 +351,21 @@ module Azure::ARM::MobileEngagement
|
|
327
351
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
328
352
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
329
353
|
# @param id [Integer] Campaign identifier.
|
354
|
+
# @param resource_group_name [String] The name of the resource group.
|
355
|
+
# @param app_collection [String] Application collection.
|
356
|
+
# @param app_name [String] Application resource name.
|
330
357
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
331
358
|
# to the HTTP request.
|
332
359
|
#
|
333
360
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
334
361
|
#
|
335
|
-
def get_async(kind, id, custom_headers = nil)
|
362
|
+
def get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
336
363
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
337
364
|
fail ArgumentError, 'id is nil' if id.nil?
|
338
365
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
339
|
-
fail ArgumentError, '
|
340
|
-
fail ArgumentError, '
|
341
|
-
fail ArgumentError, '
|
366
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
367
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
368
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
342
369
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
343
370
|
|
344
371
|
|
@@ -353,7 +380,7 @@ module Azure::ARM::MobileEngagement
|
|
353
380
|
|
354
381
|
options = {
|
355
382
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
356
|
-
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
383
|
+
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
|
357
384
|
query_params: {'api-version' => @client.api_version},
|
358
385
|
headers: request_headers.merge(custom_headers || {}),
|
359
386
|
base_url: request_url
|
@@ -396,13 +423,16 @@ module Azure::ARM::MobileEngagement
|
|
396
423
|
# @param id [Integer] Campaign identifier.
|
397
424
|
# @param parameters [Campaign] Parameters supplied to the Update Campaign
|
398
425
|
# operation.
|
426
|
+
# @param resource_group_name [String] The name of the resource group.
|
427
|
+
# @param app_collection [String] Application collection.
|
428
|
+
# @param app_name [String] Application resource name.
|
399
429
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
400
430
|
# will be added to the HTTP request.
|
401
431
|
#
|
402
432
|
# @return [CampaignStateResult] operation results.
|
403
433
|
#
|
404
|
-
def update(kind, id, parameters, custom_headers = nil)
|
405
|
-
response = update_async(kind, id, parameters, custom_headers).value!
|
434
|
+
def update(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil)
|
435
|
+
response = update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers).value!
|
406
436
|
response.body unless response.nil?
|
407
437
|
end
|
408
438
|
|
@@ -415,13 +445,16 @@ module Azure::ARM::MobileEngagement
|
|
415
445
|
# @param id [Integer] Campaign identifier.
|
416
446
|
# @param parameters [Campaign] Parameters supplied to the Update Campaign
|
417
447
|
# operation.
|
448
|
+
# @param resource_group_name [String] The name of the resource group.
|
449
|
+
# @param app_collection [String] Application collection.
|
450
|
+
# @param app_name [String] Application resource name.
|
418
451
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
419
452
|
# will be added to the HTTP request.
|
420
453
|
#
|
421
454
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
422
455
|
#
|
423
|
-
def update_with_http_info(kind, id, parameters, custom_headers = nil)
|
424
|
-
update_async(kind, id, parameters, custom_headers).value!
|
456
|
+
def update_with_http_info(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil)
|
457
|
+
update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers).value!
|
425
458
|
end
|
426
459
|
|
427
460
|
#
|
@@ -433,19 +466,22 @@ module Azure::ARM::MobileEngagement
|
|
433
466
|
# @param id [Integer] Campaign identifier.
|
434
467
|
# @param parameters [Campaign] Parameters supplied to the Update Campaign
|
435
468
|
# operation.
|
469
|
+
# @param resource_group_name [String] The name of the resource group.
|
470
|
+
# @param app_collection [String] Application collection.
|
471
|
+
# @param app_name [String] Application resource name.
|
436
472
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
437
473
|
# to the HTTP request.
|
438
474
|
#
|
439
475
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
440
476
|
#
|
441
|
-
def update_async(kind, id, parameters, custom_headers = nil)
|
477
|
+
def update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil)
|
442
478
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
443
479
|
fail ArgumentError, 'id is nil' if id.nil?
|
444
480
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
445
481
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
446
|
-
fail ArgumentError, '
|
447
|
-
fail ArgumentError, '
|
448
|
-
fail ArgumentError, '
|
482
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
483
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
484
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
449
485
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
450
486
|
|
451
487
|
|
@@ -468,7 +504,7 @@ module Azure::ARM::MobileEngagement
|
|
468
504
|
|
469
505
|
options = {
|
470
506
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
471
|
-
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
507
|
+
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
|
472
508
|
query_params: {'api-version' => @client.api_version},
|
473
509
|
body: request_content,
|
474
510
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -509,12 +545,15 @@ module Azure::ARM::MobileEngagement
|
|
509
545
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
510
546
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
511
547
|
# @param id [Integer] Campaign identifier.
|
548
|
+
# @param resource_group_name [String] The name of the resource group.
|
549
|
+
# @param app_collection [String] Application collection.
|
550
|
+
# @param app_name [String] Application resource name.
|
512
551
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
513
552
|
# will be added to the HTTP request.
|
514
553
|
#
|
515
554
|
#
|
516
|
-
def delete(kind, id, custom_headers = nil)
|
517
|
-
response = delete_async(kind, id, custom_headers).value!
|
555
|
+
def delete(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
556
|
+
response = delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
|
518
557
|
nil
|
519
558
|
end
|
520
559
|
|
@@ -524,13 +563,16 @@ module Azure::ARM::MobileEngagement
|
|
524
563
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
525
564
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
526
565
|
# @param id [Integer] Campaign identifier.
|
566
|
+
# @param resource_group_name [String] The name of the resource group.
|
567
|
+
# @param app_collection [String] Application collection.
|
568
|
+
# @param app_name [String] Application resource name.
|
527
569
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
528
570
|
# will be added to the HTTP request.
|
529
571
|
#
|
530
572
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
531
573
|
#
|
532
|
-
def delete_with_http_info(kind, id, custom_headers = nil)
|
533
|
-
delete_async(kind, id, custom_headers).value!
|
574
|
+
def delete_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
575
|
+
delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
|
534
576
|
end
|
535
577
|
|
536
578
|
#
|
@@ -539,18 +581,21 @@ module Azure::ARM::MobileEngagement
|
|
539
581
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
540
582
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
541
583
|
# @param id [Integer] Campaign identifier.
|
584
|
+
# @param resource_group_name [String] The name of the resource group.
|
585
|
+
# @param app_collection [String] Application collection.
|
586
|
+
# @param app_name [String] Application resource name.
|
542
587
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
543
588
|
# to the HTTP request.
|
544
589
|
#
|
545
590
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
546
591
|
#
|
547
|
-
def delete_async(kind, id, custom_headers = nil)
|
592
|
+
def delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
548
593
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
549
594
|
fail ArgumentError, 'id is nil' if id.nil?
|
550
595
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
551
|
-
fail ArgumentError, '
|
552
|
-
fail ArgumentError, '
|
553
|
-
fail ArgumentError, '
|
596
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
597
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
598
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
554
599
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
555
600
|
|
556
601
|
|
@@ -565,7 +610,7 @@ module Azure::ARM::MobileEngagement
|
|
565
610
|
|
566
611
|
options = {
|
567
612
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
568
|
-
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
613
|
+
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
|
569
614
|
query_params: {'api-version' => @client.api_version},
|
570
615
|
headers: request_headers.merge(custom_headers || {}),
|
571
616
|
base_url: request_url
|
@@ -593,6 +638,9 @@ module Azure::ARM::MobileEngagement
|
|
593
638
|
# The Get campaign operation retrieves information about a previously created
|
594
639
|
# campaign.
|
595
640
|
#
|
641
|
+
# @param resource_group_name [String] The name of the resource group.
|
642
|
+
# @param app_collection [String] Application collection.
|
643
|
+
# @param app_name [String] Application resource name.
|
596
644
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
597
645
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
598
646
|
# @param name [String] Campaign name.
|
@@ -601,8 +649,8 @@ module Azure::ARM::MobileEngagement
|
|
601
649
|
#
|
602
650
|
# @return [CampaignResult] operation results.
|
603
651
|
#
|
604
|
-
def get_by_name(kind, name, custom_headers = nil)
|
605
|
-
response = get_by_name_async(kind, name, custom_headers).value!
|
652
|
+
def get_by_name(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil)
|
653
|
+
response = get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers).value!
|
606
654
|
response.body unless response.nil?
|
607
655
|
end
|
608
656
|
|
@@ -610,6 +658,9 @@ module Azure::ARM::MobileEngagement
|
|
610
658
|
# The Get campaign operation retrieves information about a previously created
|
611
659
|
# campaign.
|
612
660
|
#
|
661
|
+
# @param resource_group_name [String] The name of the resource group.
|
662
|
+
# @param app_collection [String] Application collection.
|
663
|
+
# @param app_name [String] Application resource name.
|
613
664
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
614
665
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
615
666
|
# @param name [String] Campaign name.
|
@@ -618,14 +669,17 @@ module Azure::ARM::MobileEngagement
|
|
618
669
|
#
|
619
670
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
620
671
|
#
|
621
|
-
def get_by_name_with_http_info(kind, name, custom_headers = nil)
|
622
|
-
get_by_name_async(kind, name, custom_headers).value!
|
672
|
+
def get_by_name_with_http_info(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil)
|
673
|
+
get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers).value!
|
623
674
|
end
|
624
675
|
|
625
676
|
#
|
626
677
|
# The Get campaign operation retrieves information about a previously created
|
627
678
|
# campaign.
|
628
679
|
#
|
680
|
+
# @param resource_group_name [String] The name of the resource group.
|
681
|
+
# @param app_collection [String] Application collection.
|
682
|
+
# @param app_name [String] Application resource name.
|
629
683
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
630
684
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
631
685
|
# @param name [String] Campaign name.
|
@@ -634,11 +688,11 @@ module Azure::ARM::MobileEngagement
|
|
634
688
|
#
|
635
689
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
636
690
|
#
|
637
|
-
def get_by_name_async(kind, name, custom_headers = nil)
|
691
|
+
def get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil)
|
638
692
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
639
|
-
fail ArgumentError, '
|
640
|
-
fail ArgumentError, '
|
641
|
-
fail ArgumentError, '
|
693
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
694
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
695
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
642
696
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
643
697
|
fail ArgumentError, 'name is nil' if name.nil?
|
644
698
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -655,7 +709,7 @@ module Azure::ARM::MobileEngagement
|
|
655
709
|
|
656
710
|
options = {
|
657
711
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
658
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
712
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind,'name' => name},
|
659
713
|
query_params: {'api-version' => @client.api_version},
|
660
714
|
headers: request_headers.merge(custom_headers || {}),
|
661
715
|
base_url: request_url
|
@@ -692,6 +746,9 @@ module Azure::ARM::MobileEngagement
|
|
692
746
|
#
|
693
747
|
# Test an existing campaign (created with Create campaign) on a set of devices.
|
694
748
|
#
|
749
|
+
# @param resource_group_name [String] The name of the resource group.
|
750
|
+
# @param app_collection [String] Application collection.
|
751
|
+
# @param app_name [String] Application resource name.
|
695
752
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
696
753
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
697
754
|
# @param id [Integer] Campaign identifier.
|
@@ -702,14 +759,17 @@ module Azure::ARM::MobileEngagement
|
|
702
759
|
#
|
703
760
|
# @return [CampaignStateResult] operation results.
|
704
761
|
#
|
705
|
-
def test_saved(kind, id, parameters, custom_headers = nil)
|
706
|
-
response = test_saved_async(kind, id, parameters, custom_headers).value!
|
762
|
+
def test_saved(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
|
763
|
+
response = test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
|
707
764
|
response.body unless response.nil?
|
708
765
|
end
|
709
766
|
|
710
767
|
#
|
711
768
|
# Test an existing campaign (created with Create campaign) on a set of devices.
|
712
769
|
#
|
770
|
+
# @param resource_group_name [String] The name of the resource group.
|
771
|
+
# @param app_collection [String] Application collection.
|
772
|
+
# @param app_name [String] Application resource name.
|
713
773
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
714
774
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
715
775
|
# @param id [Integer] Campaign identifier.
|
@@ -720,13 +780,16 @@ module Azure::ARM::MobileEngagement
|
|
720
780
|
#
|
721
781
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
722
782
|
#
|
723
|
-
def test_saved_with_http_info(kind, id, parameters, custom_headers = nil)
|
724
|
-
test_saved_async(kind, id, parameters, custom_headers).value!
|
783
|
+
def test_saved_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
|
784
|
+
test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
|
725
785
|
end
|
726
786
|
|
727
787
|
#
|
728
788
|
# Test an existing campaign (created with Create campaign) on a set of devices.
|
729
789
|
#
|
790
|
+
# @param resource_group_name [String] The name of the resource group.
|
791
|
+
# @param app_collection [String] Application collection.
|
792
|
+
# @param app_name [String] Application resource name.
|
730
793
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
731
794
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
732
795
|
# @param id [Integer] Campaign identifier.
|
@@ -737,11 +800,11 @@ module Azure::ARM::MobileEngagement
|
|
737
800
|
#
|
738
801
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
739
802
|
#
|
740
|
-
def test_saved_async(kind, id, parameters, custom_headers = nil)
|
803
|
+
def test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
|
741
804
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
742
|
-
fail ArgumentError, '
|
743
|
-
fail ArgumentError, '
|
744
|
-
fail ArgumentError, '
|
805
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
806
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
807
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
745
808
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
746
809
|
fail ArgumentError, 'id is nil' if id.nil?
|
747
810
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -767,7 +830,7 @@ module Azure::ARM::MobileEngagement
|
|
767
830
|
|
768
831
|
options = {
|
769
832
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
770
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
833
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind,'id' => id},
|
771
834
|
query_params: {'api-version' => @client.api_version},
|
772
835
|
body: request_content,
|
773
836
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -805,6 +868,9 @@ module Azure::ARM::MobileEngagement
|
|
805
868
|
#
|
806
869
|
# Test a new campaign on a set of devices.
|
807
870
|
#
|
871
|
+
# @param resource_group_name [String] The name of the resource group.
|
872
|
+
# @param app_collection [String] Application collection.
|
873
|
+
# @param app_name [String] Application resource name.
|
808
874
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
809
875
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
810
876
|
# @param parameters [CampaignTestNewParameters] Parameters supplied to the Test
|
@@ -814,14 +880,17 @@ module Azure::ARM::MobileEngagement
|
|
814
880
|
#
|
815
881
|
# @return [CampaignState] operation results.
|
816
882
|
#
|
817
|
-
def test_new(kind, parameters, custom_headers = nil)
|
818
|
-
response = test_new_async(kind, parameters, custom_headers).value!
|
883
|
+
def test_new(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
|
884
|
+
response = test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
|
819
885
|
response.body unless response.nil?
|
820
886
|
end
|
821
887
|
|
822
888
|
#
|
823
889
|
# Test a new campaign on a set of devices.
|
824
890
|
#
|
891
|
+
# @param resource_group_name [String] The name of the resource group.
|
892
|
+
# @param app_collection [String] Application collection.
|
893
|
+
# @param app_name [String] Application resource name.
|
825
894
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
826
895
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
827
896
|
# @param parameters [CampaignTestNewParameters] Parameters supplied to the Test
|
@@ -831,13 +900,16 @@ module Azure::ARM::MobileEngagement
|
|
831
900
|
#
|
832
901
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
833
902
|
#
|
834
|
-
def test_new_with_http_info(kind, parameters, custom_headers = nil)
|
835
|
-
test_new_async(kind, parameters, custom_headers).value!
|
903
|
+
def test_new_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
|
904
|
+
test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
|
836
905
|
end
|
837
906
|
|
838
907
|
#
|
839
908
|
# Test a new campaign on a set of devices.
|
840
909
|
#
|
910
|
+
# @param resource_group_name [String] The name of the resource group.
|
911
|
+
# @param app_collection [String] Application collection.
|
912
|
+
# @param app_name [String] Application resource name.
|
841
913
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
842
914
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
843
915
|
# @param parameters [CampaignTestNewParameters] Parameters supplied to the Test
|
@@ -847,11 +919,11 @@ module Azure::ARM::MobileEngagement
|
|
847
919
|
#
|
848
920
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
849
921
|
#
|
850
|
-
def test_new_async(kind, parameters, custom_headers = nil)
|
922
|
+
def test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
|
851
923
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
852
|
-
fail ArgumentError, '
|
853
|
-
fail ArgumentError, '
|
854
|
-
fail ArgumentError, '
|
924
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
925
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
926
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
855
927
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
856
928
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
857
929
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -876,7 +948,7 @@ module Azure::ARM::MobileEngagement
|
|
876
948
|
|
877
949
|
options = {
|
878
950
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
879
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
951
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind},
|
880
952
|
query_params: {'api-version' => @client.api_version},
|
881
953
|
body: request_content,
|
882
954
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -914,6 +986,9 @@ module Azure::ARM::MobileEngagement
|
|
914
986
|
#
|
915
987
|
# Activate a campaign previously created by a call to Create campaign.
|
916
988
|
#
|
989
|
+
# @param resource_group_name [String] The name of the resource group.
|
990
|
+
# @param app_collection [String] Application collection.
|
991
|
+
# @param app_name [String] Application resource name.
|
917
992
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
918
993
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
919
994
|
# @param id [Integer] Campaign identifier.
|
@@ -922,14 +997,17 @@ module Azure::ARM::MobileEngagement
|
|
922
997
|
#
|
923
998
|
# @return [CampaignStateResult] operation results.
|
924
999
|
#
|
925
|
-
def activate(kind, id, custom_headers = nil)
|
926
|
-
response = activate_async(kind, id, custom_headers).value!
|
1000
|
+
def activate(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1001
|
+
response = activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
|
927
1002
|
response.body unless response.nil?
|
928
1003
|
end
|
929
1004
|
|
930
1005
|
#
|
931
1006
|
# Activate a campaign previously created by a call to Create campaign.
|
932
1007
|
#
|
1008
|
+
# @param resource_group_name [String] The name of the resource group.
|
1009
|
+
# @param app_collection [String] Application collection.
|
1010
|
+
# @param app_name [String] Application resource name.
|
933
1011
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
934
1012
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
935
1013
|
# @param id [Integer] Campaign identifier.
|
@@ -938,13 +1016,16 @@ module Azure::ARM::MobileEngagement
|
|
938
1016
|
#
|
939
1017
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
940
1018
|
#
|
941
|
-
def activate_with_http_info(kind, id, custom_headers = nil)
|
942
|
-
activate_async(kind, id, custom_headers).value!
|
1019
|
+
def activate_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1020
|
+
activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
|
943
1021
|
end
|
944
1022
|
|
945
1023
|
#
|
946
1024
|
# Activate a campaign previously created by a call to Create campaign.
|
947
1025
|
#
|
1026
|
+
# @param resource_group_name [String] The name of the resource group.
|
1027
|
+
# @param app_collection [String] Application collection.
|
1028
|
+
# @param app_name [String] Application resource name.
|
948
1029
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
949
1030
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
950
1031
|
# @param id [Integer] Campaign identifier.
|
@@ -953,11 +1034,11 @@ module Azure::ARM::MobileEngagement
|
|
953
1034
|
#
|
954
1035
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
955
1036
|
#
|
956
|
-
def activate_async(kind, id, custom_headers = nil)
|
1037
|
+
def activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
957
1038
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
958
|
-
fail ArgumentError, '
|
959
|
-
fail ArgumentError, '
|
960
|
-
fail ArgumentError, '
|
1039
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1040
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
1041
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
961
1042
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
962
1043
|
fail ArgumentError, 'id is nil' if id.nil?
|
963
1044
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -974,7 +1055,7 @@ module Azure::ARM::MobileEngagement
|
|
974
1055
|
|
975
1056
|
options = {
|
976
1057
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
977
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
1058
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind,'id' => id},
|
978
1059
|
query_params: {'api-version' => @client.api_version},
|
979
1060
|
headers: request_headers.merge(custom_headers || {}),
|
980
1061
|
base_url: request_url
|
@@ -1011,6 +1092,9 @@ module Azure::ARM::MobileEngagement
|
|
1011
1092
|
#
|
1012
1093
|
# Suspend a push campaign previously activated by a call to Activate campaign.
|
1013
1094
|
#
|
1095
|
+
# @param resource_group_name [String] The name of the resource group.
|
1096
|
+
# @param app_collection [String] Application collection.
|
1097
|
+
# @param app_name [String] Application resource name.
|
1014
1098
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1015
1099
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1016
1100
|
# @param id [Integer] Campaign identifier.
|
@@ -1019,14 +1103,17 @@ module Azure::ARM::MobileEngagement
|
|
1019
1103
|
#
|
1020
1104
|
# @return [CampaignStateResult] operation results.
|
1021
1105
|
#
|
1022
|
-
def suspend(kind, id, custom_headers = nil)
|
1023
|
-
response = suspend_async(kind, id, custom_headers).value!
|
1106
|
+
def suspend(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1107
|
+
response = suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
|
1024
1108
|
response.body unless response.nil?
|
1025
1109
|
end
|
1026
1110
|
|
1027
1111
|
#
|
1028
1112
|
# Suspend a push campaign previously activated by a call to Activate campaign.
|
1029
1113
|
#
|
1114
|
+
# @param resource_group_name [String] The name of the resource group.
|
1115
|
+
# @param app_collection [String] Application collection.
|
1116
|
+
# @param app_name [String] Application resource name.
|
1030
1117
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1031
1118
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1032
1119
|
# @param id [Integer] Campaign identifier.
|
@@ -1035,13 +1122,16 @@ module Azure::ARM::MobileEngagement
|
|
1035
1122
|
#
|
1036
1123
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1037
1124
|
#
|
1038
|
-
def suspend_with_http_info(kind, id, custom_headers = nil)
|
1039
|
-
suspend_async(kind, id, custom_headers).value!
|
1125
|
+
def suspend_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1126
|
+
suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
|
1040
1127
|
end
|
1041
1128
|
|
1042
1129
|
#
|
1043
1130
|
# Suspend a push campaign previously activated by a call to Activate campaign.
|
1044
1131
|
#
|
1132
|
+
# @param resource_group_name [String] The name of the resource group.
|
1133
|
+
# @param app_collection [String] Application collection.
|
1134
|
+
# @param app_name [String] Application resource name.
|
1045
1135
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1046
1136
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1047
1137
|
# @param id [Integer] Campaign identifier.
|
@@ -1050,11 +1140,11 @@ module Azure::ARM::MobileEngagement
|
|
1050
1140
|
#
|
1051
1141
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1052
1142
|
#
|
1053
|
-
def suspend_async(kind, id, custom_headers = nil)
|
1143
|
+
def suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1054
1144
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1055
|
-
fail ArgumentError, '
|
1056
|
-
fail ArgumentError, '
|
1057
|
-
fail ArgumentError, '
|
1145
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1146
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
1147
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
1058
1148
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
1059
1149
|
fail ArgumentError, 'id is nil' if id.nil?
|
1060
1150
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -1071,7 +1161,7 @@ module Azure::ARM::MobileEngagement
|
|
1071
1161
|
|
1072
1162
|
options = {
|
1073
1163
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1074
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
1164
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind,'id' => id},
|
1075
1165
|
query_params: {'api-version' => @client.api_version},
|
1076
1166
|
headers: request_headers.merge(custom_headers || {}),
|
1077
1167
|
base_url: request_url
|
@@ -1109,6 +1199,9 @@ module Azure::ARM::MobileEngagement
|
|
1109
1199
|
# Push a previously saved campaign (created with Create campaign) to a set of
|
1110
1200
|
# devices.
|
1111
1201
|
#
|
1202
|
+
# @param resource_group_name [String] The name of the resource group.
|
1203
|
+
# @param app_collection [String] Application collection.
|
1204
|
+
# @param app_name [String] Application resource name.
|
1112
1205
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1113
1206
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1114
1207
|
# @param id [Integer] Campaign identifier.
|
@@ -1119,8 +1212,8 @@ module Azure::ARM::MobileEngagement
|
|
1119
1212
|
#
|
1120
1213
|
# @return [CampaignPushResult] operation results.
|
1121
1214
|
#
|
1122
|
-
def push(kind, id, parameters, custom_headers = nil)
|
1123
|
-
response = push_async(kind, id, parameters, custom_headers).value!
|
1215
|
+
def push(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
|
1216
|
+
response = push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
|
1124
1217
|
response.body unless response.nil?
|
1125
1218
|
end
|
1126
1219
|
|
@@ -1128,6 +1221,9 @@ module Azure::ARM::MobileEngagement
|
|
1128
1221
|
# Push a previously saved campaign (created with Create campaign) to a set of
|
1129
1222
|
# devices.
|
1130
1223
|
#
|
1224
|
+
# @param resource_group_name [String] The name of the resource group.
|
1225
|
+
# @param app_collection [String] Application collection.
|
1226
|
+
# @param app_name [String] Application resource name.
|
1131
1227
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1132
1228
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1133
1229
|
# @param id [Integer] Campaign identifier.
|
@@ -1138,14 +1234,17 @@ module Azure::ARM::MobileEngagement
|
|
1138
1234
|
#
|
1139
1235
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1140
1236
|
#
|
1141
|
-
def push_with_http_info(kind, id, parameters, custom_headers = nil)
|
1142
|
-
push_async(kind, id, parameters, custom_headers).value!
|
1237
|
+
def push_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
|
1238
|
+
push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
|
1143
1239
|
end
|
1144
1240
|
|
1145
1241
|
#
|
1146
1242
|
# Push a previously saved campaign (created with Create campaign) to a set of
|
1147
1243
|
# devices.
|
1148
1244
|
#
|
1245
|
+
# @param resource_group_name [String] The name of the resource group.
|
1246
|
+
# @param app_collection [String] Application collection.
|
1247
|
+
# @param app_name [String] Application resource name.
|
1149
1248
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1150
1249
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1151
1250
|
# @param id [Integer] Campaign identifier.
|
@@ -1156,11 +1255,11 @@ module Azure::ARM::MobileEngagement
|
|
1156
1255
|
#
|
1157
1256
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1158
1257
|
#
|
1159
|
-
def push_async(kind, id, parameters, custom_headers = nil)
|
1258
|
+
def push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
|
1160
1259
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1161
|
-
fail ArgumentError, '
|
1162
|
-
fail ArgumentError, '
|
1163
|
-
fail ArgumentError, '
|
1260
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1261
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
1262
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
1164
1263
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1165
1264
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
1166
1265
|
fail ArgumentError, 'id is nil' if id.nil?
|
@@ -1186,7 +1285,7 @@ module Azure::ARM::MobileEngagement
|
|
1186
1285
|
|
1187
1286
|
options = {
|
1188
1287
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1189
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
1288
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind,'id' => id},
|
1190
1289
|
query_params: {'api-version' => @client.api_version},
|
1191
1290
|
body: request_content,
|
1192
1291
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -1227,13 +1326,16 @@ module Azure::ARM::MobileEngagement
|
|
1227
1326
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1228
1327
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1229
1328
|
# @param id [Integer] Campaign identifier.
|
1329
|
+
# @param resource_group_name [String] The name of the resource group.
|
1330
|
+
# @param app_collection [String] Application collection.
|
1331
|
+
# @param app_name [String] Application resource name.
|
1230
1332
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1231
1333
|
# will be added to the HTTP request.
|
1232
1334
|
#
|
1233
1335
|
# @return [CampaignStatisticsResult] operation results.
|
1234
1336
|
#
|
1235
|
-
def get_statistics(kind, id, custom_headers = nil)
|
1236
|
-
response = get_statistics_async(kind, id, custom_headers).value!
|
1337
|
+
def get_statistics(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
1338
|
+
response = get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
|
1237
1339
|
response.body unless response.nil?
|
1238
1340
|
end
|
1239
1341
|
|
@@ -1243,13 +1345,16 @@ module Azure::ARM::MobileEngagement
|
|
1243
1345
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1244
1346
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1245
1347
|
# @param id [Integer] Campaign identifier.
|
1348
|
+
# @param resource_group_name [String] The name of the resource group.
|
1349
|
+
# @param app_collection [String] Application collection.
|
1350
|
+
# @param app_name [String] Application resource name.
|
1246
1351
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1247
1352
|
# will be added to the HTTP request.
|
1248
1353
|
#
|
1249
1354
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1250
1355
|
#
|
1251
|
-
def get_statistics_with_http_info(kind, id, custom_headers = nil)
|
1252
|
-
get_statistics_async(kind, id, custom_headers).value!
|
1356
|
+
def get_statistics_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
1357
|
+
get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
|
1253
1358
|
end
|
1254
1359
|
|
1255
1360
|
#
|
@@ -1258,18 +1363,21 @@ module Azure::ARM::MobileEngagement
|
|
1258
1363
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1259
1364
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1260
1365
|
# @param id [Integer] Campaign identifier.
|
1366
|
+
# @param resource_group_name [String] The name of the resource group.
|
1367
|
+
# @param app_collection [String] Application collection.
|
1368
|
+
# @param app_name [String] Application resource name.
|
1261
1369
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1262
1370
|
# to the HTTP request.
|
1263
1371
|
#
|
1264
1372
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1265
1373
|
#
|
1266
|
-
def get_statistics_async(kind, id, custom_headers = nil)
|
1374
|
+
def get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
|
1267
1375
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
1268
1376
|
fail ArgumentError, 'id is nil' if id.nil?
|
1269
1377
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1270
|
-
fail ArgumentError, '
|
1271
|
-
fail ArgumentError, '
|
1272
|
-
fail ArgumentError, '
|
1378
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1379
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
1380
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
1273
1381
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1274
1382
|
|
1275
1383
|
|
@@ -1284,7 +1392,7 @@ module Azure::ARM::MobileEngagement
|
|
1284
1392
|
|
1285
1393
|
options = {
|
1286
1394
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1287
|
-
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
1395
|
+
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
|
1288
1396
|
query_params: {'api-version' => @client.api_version},
|
1289
1397
|
headers: request_headers.merge(custom_headers || {}),
|
1290
1398
|
base_url: request_url
|
@@ -1321,6 +1429,9 @@ module Azure::ARM::MobileEngagement
|
|
1321
1429
|
#
|
1322
1430
|
# Finish a push campaign previously activated by a call to Activate campaign.
|
1323
1431
|
#
|
1432
|
+
# @param resource_group_name [String] The name of the resource group.
|
1433
|
+
# @param app_collection [String] Application collection.
|
1434
|
+
# @param app_name [String] Application resource name.
|
1324
1435
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1325
1436
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1326
1437
|
# @param id [Integer] Campaign identifier.
|
@@ -1329,14 +1440,17 @@ module Azure::ARM::MobileEngagement
|
|
1329
1440
|
#
|
1330
1441
|
# @return [CampaignStateResult] operation results.
|
1331
1442
|
#
|
1332
|
-
def finish(kind, id, custom_headers = nil)
|
1333
|
-
response = finish_async(kind, id, custom_headers).value!
|
1443
|
+
def finish(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1444
|
+
response = finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
|
1334
1445
|
response.body unless response.nil?
|
1335
1446
|
end
|
1336
1447
|
|
1337
1448
|
#
|
1338
1449
|
# Finish a push campaign previously activated by a call to Activate campaign.
|
1339
1450
|
#
|
1451
|
+
# @param resource_group_name [String] The name of the resource group.
|
1452
|
+
# @param app_collection [String] Application collection.
|
1453
|
+
# @param app_name [String] Application resource name.
|
1340
1454
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1341
1455
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1342
1456
|
# @param id [Integer] Campaign identifier.
|
@@ -1345,13 +1459,16 @@ module Azure::ARM::MobileEngagement
|
|
1345
1459
|
#
|
1346
1460
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1347
1461
|
#
|
1348
|
-
def finish_with_http_info(kind, id, custom_headers = nil)
|
1349
|
-
finish_async(kind, id, custom_headers).value!
|
1462
|
+
def finish_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1463
|
+
finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
|
1350
1464
|
end
|
1351
1465
|
|
1352
1466
|
#
|
1353
1467
|
# Finish a push campaign previously activated by a call to Activate campaign.
|
1354
1468
|
#
|
1469
|
+
# @param resource_group_name [String] The name of the resource group.
|
1470
|
+
# @param app_collection [String] Application collection.
|
1471
|
+
# @param app_name [String] Application resource name.
|
1355
1472
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1356
1473
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1357
1474
|
# @param id [Integer] Campaign identifier.
|
@@ -1360,11 +1477,11 @@ module Azure::ARM::MobileEngagement
|
|
1360
1477
|
#
|
1361
1478
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1362
1479
|
#
|
1363
|
-
def finish_async(kind, id, custom_headers = nil)
|
1480
|
+
def finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
|
1364
1481
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1365
|
-
fail ArgumentError, '
|
1366
|
-
fail ArgumentError, '
|
1367
|
-
fail ArgumentError, '
|
1482
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1483
|
+
fail ArgumentError, 'app_collection is nil' if app_collection.nil?
|
1484
|
+
fail ArgumentError, 'app_name is nil' if app_name.nil?
|
1368
1485
|
fail ArgumentError, 'kind is nil' if kind.nil?
|
1369
1486
|
fail ArgumentError, 'id is nil' if id.nil?
|
1370
1487
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -1381,7 +1498,7 @@ module Azure::ARM::MobileEngagement
|
|
1381
1498
|
|
1382
1499
|
options = {
|
1383
1500
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1384
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' =>
|
1501
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'kind' => kind,'id' => id},
|
1385
1502
|
query_params: {'api-version' => @client.api_version},
|
1386
1503
|
headers: request_headers.merge(custom_headers || {}),
|
1387
1504
|
base_url: request_url
|
@@ -1505,6 +1622,9 @@ module Azure::ARM::MobileEngagement
|
|
1505
1622
|
#
|
1506
1623
|
# Get the list of campaigns.
|
1507
1624
|
#
|
1625
|
+
# @param resource_group_name [String] The name of the resource group.
|
1626
|
+
# @param app_collection [String] Application collection.
|
1627
|
+
# @param app_name [String] Application resource name.
|
1508
1628
|
# @param kind [CampaignKinds] Campaign kind. Possible values include:
|
1509
1629
|
# 'announcements', 'polls', 'dataPushes', 'nativePushes'
|
1510
1630
|
# @param skip [Integer] Control paging of campaigns, start results at the given
|
@@ -1534,8 +1654,8 @@ module Azure::ARM::MobileEngagement
|
|
1534
1654
|
# @return [CampaignsListResult] which provide lazy access to pages of the
|
1535
1655
|
# response.
|
1536
1656
|
#
|
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!
|
1657
|
+
def list_as_lazy(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
|
1658
|
+
response = list_async(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers).value!
|
1539
1659
|
unless response.nil?
|
1540
1660
|
page = response.body
|
1541
1661
|
page.next_method = Proc.new do |next_page_link|
|