-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazuredeploy.json
1488 lines (1488 loc) · 73.3 KB
/
azuredeploy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"connections_gmail_name": {
"defaultValue": "gmail",
"type": "string"
},
"alert_email_recipients": {
"metadata": {
"description": "Semi-colon separated list of email addresses to receive alerts"
},
"type": "string"
},
"meetup_url": {
"metadata": {
"description": "URL of meetup on meetup.com - i.e. 'Azure-Sydney-User-Group'"
},
"type": "string"
},
"meetup_display_name": {
"metadata": {
"description": "Name of the meetup - i.e. 'Azure Sydney User Group'"
},
"type": "string"
},
"meetup_country_code": {
"metadata": {
"description": "Country code for the meetup - i.e. 'AU'"
},
"type": "string"
},
"meetup_city": {
"metadata": {
"description": "City for the meetup - i.e. 'Sydney'"
},
"type": "string"
},
"connections_azuretables_name": {
"defaultValue": "azuretables",
"type": "string"
},
"workflows_meetup_bot_alert_name": {
"defaultValue": "meetup-bot-alert",
"type": "string"
},
"storageAccounts_meetuplist_name": {
"type": "string"
},
"customApis_Meetup_ReadOnly_API_name": {
"defaultValue": "Meetup-ReadOnly-API",
"type": "string"
},
"connections_Meetup_ReadOnly_API_name": {
"defaultValue": "Meetup-ReadOnly-API",
"type": "string"
},
"accounts_meetupcontentmod_name": {
"type": "string"
},
"connections_cognitiveservicescontentmoderator_name": {
"defaultValue": "cognitiveservicescontentmoderator",
"type": "string"
},
"logicAppLocation": {
"type": "string",
"allowedValues": [
"eastasia",
"southeastasia",
"centralus",
"eastus",
"eastus2",
"westus",
"northcentralus",
"southcentralus",
"northeurope",
"westeurope",
"japanwest",
"japaneast",
"brazilsouth",
"australiaeast",
"australiasoutheast",
"southindia",
"centralindia",
"westindia",
"canadacentral",
"canadaeast",
"uksouth",
"ukwest",
"westcentralus",
"westus2"
],
"metadata": {
"description": "Location of the Logic App."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.CognitiveServices/accounts",
"apiVersion": "2017-04-18",
"name": "[parameters('accounts_meetupcontentmod_name')]",
"location": "[parameters('logicAppLocation')]",
"sku": {
"name": "F0"
},
"kind": "ContentModerator",
"properties": {}
},
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01",
"name": "[parameters('storageAccounts_meetuplist_name')]",
"location": "[parameters('logicAppLocation')]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"properties": {
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"enabled": true
},
"blob": {
"enabled": true
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot"
}
},
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_azuretables_name')]",
"location": "[parameters('logicAppLocation')]",
"properties": {
"displayName": "meetupeventlist",
"customParameterValues": {},
"api": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', parameters('connections_azuretables_name'))]"
}
}
},
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_cognitiveservicescontentmoderator_name')]",
"location": "[parameters('logicAppLocation')]",
"properties": {
"displayName": "Meetup-Content-Mod",
"customParameterValues": {},
"api": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'cognitiveservicescontentmoderator')]"
}
}
},
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_gmail_name')]",
"location": "[parameters('logicAppLocation')]",
"properties": {
"displayName": "Gmail Connection",
"customParameterValues": {},
"api": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', parameters('connections_gmail_name'))]"
}
}
},
{
"type": "Microsoft.Web/customApis",
"apiVersion": "2016-06-01",
"name": "[parameters('customApis_Meetup_ReadOnly_API_name')]",
"location": "[parameters('logicAppLocation')]",
"properties": {
"brandColor": "#ffb6c1",
"description": "This is a simplified respresentation of Meetup's published API which you can find out more about https://www.meetup.com/meetup_api/. This Open API specificaton is not published or maintained by Meetup.",
"displayName": "[parameters('customApis_Meetup_ReadOnly_API_name')]",
"iconUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAADiCAYAAACcG3g9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAABVOSURBVHhe7Z0LtFVVFYalYY4SpUBNTMIakYJaqTFMUqmowEeaGb4AtZAkZQxQh6FCQT7wQUlZaVY+MCyLSEsrFcESUxQqNDU1E7IUgUIznyC6GtMzt95zz3+55zXn3muv/x/jG4N77zn7X+uw73/PmXuvuTYJm2wSCCHEAwYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBg4hxA0GDiHEDQYOIcQNBo4nvXq1Ts+e+NjEhx49QthyS/x/0yzIp6QwcKwYNCiEqVNDuPnmEFatCuHll0Pb9OqrITz3XAirV4fwwAMhzJ0bwvTpIYwcmdwJbMaee4YwYUIIs2eHcP/9IaxZE8Lzz+t/QJu1YUPl/3L+/BCmTAmhf388phLAwGk3AwaE8NOf6pmUgySMrrkmhEMOweMjXdOvXwinnRbCX/6iL2aOmjkTjzFyGDjt5KijQnjmGT1jCqAf/ziErbbCYyXVnHGGvmgF0uWX47FGDAOnXUjYFFErV4YweDAeMwlhr71CWLxYX6wCaswYPO5IYeC0g7331rOjoHr00crHBTT2lJGa17p1+iIVVPL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backendService": {
"serviceUrl": "https://api.meetup.com/"
},
"swagger": {
"swagger": "2.0",
"info": {
"description": "This is a simplified respresentation of Meetup's published API which you can find out more about https://www.meetup.com/meetup_api/. This Open API specificaton is not published or maintained by Meetup.",
"version": "3.0.3",
"title": "Meetup Public Read-only API"
},
"host": "api.meetup.com",
"basePath": "/",
"schemes": [
"https"
],
"paths": {
"/{meetup-group}": {
"get": {
"summary": "Retrieve Meetup Group by URL name",
"operationId": "GetMeetupGroup",
"produces": [
"application/json"
],
"parameters": [
{
"name": "meetup-group",
"in": "path",
"description": "URL name of Meetup Group. i.e. Azure-Sydney-User-Group",
"required": true,
"type": "string"
},
{
"name": "fields",
"in": "query",
"description": "Comma-delimited list of optional field names to append to the response",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/MeetupGroup"
}
},
"404": {
"description": "Meetup not found"
},
"410": {
"description": "Meetup Group has been deleted"
}
}
}
},
"/{meetup-group}/members": {
"get": {
"summary": "Retrieve Meetup Group Members List",
"operationId": "GetMeetupGroupMembersList",
"produces": [
"application/json"
],
"parameters": [
{
"name": "meetup-group",
"in": "path",
"description": "URL name of Meetup Group. i.e. Azure-Sydney-User-Group",
"required": true,
"type": "string"
},
{
"name": "fields",
"in": "query",
"description": "Comma-delimited list of optional field names to append to the response",
"required": false,
"type": "string"
},
{
"name": "order",
"in": "query",
"description": "Orders results according to definitions listed below. May be one of 'interesting', 'name', 'joined', or 'stepup_recommended'",
"required": false,
"type": "string"
},
{
"name": "page",
"in": "query",
"description": "Number of requested members to return (unspecifed = 200 records)",
"required": false,
"type": "integer"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/MeetupMember"
}
}
},
"404": {
"description": "Meetup not found"
}
}
}
},
"/{meetup-group}/events": {
"get": {
"summary": "Retrieve Meetup Group Events List",
"operationId": "GetMeetupGroupEventList",
"produces": [
"application/json"
],
"parameters": [
{
"name": "meetup-group",
"in": "path",
"description": "URL name of Meetup Group. i.e. Azure-Sydney-User-Group",
"required": true,
"type": "string"
},
{
"name": "fields",
"in": "query",
"description": "Comma-delimited list of optional field names to append to the response",
"required": false,
"type": "string"
},
{
"name": "desc",
"in": "query",
"description": "When true, sorts results in descending order. Defaults to false",
"required": false,
"type": "boolean"
},
{
"name": "has_ended",
"in": "query",
"description": "Returns events which have ended when true. When false, returns events which are ongoing or upcoming.",
"required": false,
"type": "boolean"
},
{
"name": "no_earlier_than",
"in": "query",
"description": "An optional timestamp that represents a lower time bound (inclusive) for the start time of events in the local time of the group. If provided, it must be a string in ISO 8601 format without a time zone specified, i.e. 2018-06-01T00:00:00.000",
"required": false,
"type": "string"
},
{
"name": "no_later_than",
"in": "query",
"description": "An optional timestamp that represents an upper time bound (exclusive) for the start time of events in the local time of the group. If provided, it must be a string in ISO 8601 format without a time zone specified, i.e. 2018-06-01T00:00:00.000",
"required": false,
"type": "string"
},
{
"name": "page",
"in": "query",
"description": "Number of results to return in a page. Must be an integer greater than or equal to 1. Defaults to 200",
"required": false,
"type": "integer"
},
{
"name": "status",
"in": "query",
"description": "A comma-delimited list of event statuses. Valid values are: 'cancelled', 'draft', 'past', 'proposed', 'suggested', or 'upcoming'",
"required": false,
"type": "integer"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/MeetupEvent"
}
}
},
"404": {
"description": "Meetup not found"
}
}
}
},
"/{meetup-group}/events/{eventid}": {
"get": {
"summary": "Retrieve Meetup Group Event Details",
"operationId": "GetMeetupGroupEvent",
"produces": [
"application/json"
],
"parameters": [
{
"name": "meetup-group",
"in": "path",
"description": "URL name of Meetup Group. i.e. Azure-Sydney-User-Group",
"required": true,
"type": "string"
},
{
"name": "eventid",
"in": "path",
"description": "Alphanumeric identifier for a single Meetup Group Event. i.e. '258375479'",
"required": true,
"type": "string"
},
{
"name": "fields",
"in": "query",
"description": "Comma-delimited list of optional field names to append to the response",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/MeetupEvent"
}
},
"403": {
"description": "Meetup Event not available via unauthorised call"
},
"404": {
"description": "Meetup Event not found"
},
"410": {
"description": "Meetup Event has been deleted"
}
}
}
},
"/status": {
"get": {
"summary": "Retrieve the status of the Meetup API",
"operationId": "GetAPIStatus",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/APIStatus"
}
}
}
}
}
},
"definitions": {
"APIStatus": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"status": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"Photo": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": "Numeric photo ID"
},
"base_url": {
"type": "string",
"description": "A base url that can be use to construct a photo url from its components"
},
"highres_link": {
"type": "string",
"description": "Link for full sized photo"
},
"photo_link": {
"type": "string",
"description": "Link for standard sized photo"
},
"thumb_link": {
"type": "string",
"description": "Link for thumbnail sized photo"
},
"type": {
"type": "string",
"description": "Type of photo. One of 'event' or 'member'"
}
}
},
"Category": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": "Numeric category id"
},
"name": {
"type": "string",
"description": "Display name of the category"
},
"shortname": {
"type": "string",
"description": "String identifier of the category"
},
"sort_name": {
"type": "string",
"description": "Name used for sorting"
}
}
},
"MeetupEvent": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "A unique alphanumeric identifier for event"
},
"name": {
"type": "string",
"description": "Name of the event"
},
"link": {
"type": "string",
"description": "Link to event on meetup.com"
},
"duration": {
"type": "integer",
"format": "int32",
"description": "Scheduled event duration in milliseconds, if an end time is specified by the organiser."
},
"description": {
"type": "string",
"description": "Description of the event in HTML. Email addresses and phone numbers will be masked."
},
"local_date": {
"type": "string",
"description": "The local date of the Meetup in ISO 8601 format"
},
"local_time": {
"type": "string",
"description": "The local time of the Meetup in ISO 8601 format"
},
"manual_attendance_count": {
"type": "integer",
"description": "Manually entered total attendee headcount, if any exists"
},
"past_event_count_inclusive": {
"type": "integer",
"format": "int32",
"description": "Number of past events that happened before and including this event."
},
"plain_text_description": {
"type": "string",
"description": "Plain text version of the event description. Email addresses and photo numbers will be masked."
},
"plain_text_no_images_description": {
"type": "string",
"description": "Plain text version of the event description without images. Email addresses and photo numbers will be masked."
},
"short_link": {
"type": "string",
"description": "A shortened link for the event on meetup.com"
},
"status": {
"type": "string",
"description": "'cancelled', 'upcoming', 'past', 'proposed', 'suggested' or 'draft'"
},
"time": {
"type": "integer",
"format": "int64",
"description": "UTC start time of the event, in milliseconds since the epoch"
},
"utc_offset": {
"type": "integer",
"format": "int64",
"description": "he local offset from UTC time, in milliseconds"
},
"venue": {
"$ref": "#/definitions/MeetupVenue"
},
"waitlist_count": {
"type": "integer",
"format": "int32",
"description": "Number of members on the waitlist, if one exists"
},
"yes_rsvp_count": {
"type": "integer",
"format": "int32",
"description": "Number of yes RSVPs including guests"
}
}
},
"MeetupVenue": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": "Numeric Venue ID"
},
"name": {
"type": "string",
"description": "Venue name"
}
}
},
"MeetupMember": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": "Numeric Member ID"
},
"bio": {
"type": "string",
"description": "Member bio. When profile does not belong to the authenticated member, this may be omitted if member opted to hide their bio from others"
},
"city": {
"type": "string",
"description": "City associated with Member's location"
},
"country": {
"type": "string",
"description": "Country code associated with Member's location"
},
"group_profile": {
"$ref": "#/definitions/MeetupMemberGroupProfile"
},
"joined": {
"type": "integer",
"format": "int64",
"description": "Time member joined, represented as milliseconds since the epoch"
},
"name": {
"type": "string",
"description": "Display name for the member"
},
"photo": {
"$ref": "#/definitions/Photo"
}
}
},
"MeetupMemberGroupProfile": {
"type": "object",
"properties": {
"created": {
"type": "integer",
"format": "int64",
"description": "The time this member joined the Group, represented as milliseconds since the epoch"
},
"intro": {
"type": "string",
"description": "Member intro, may be omitted if member opted to hide their intro from other members"
},
"group": {
"$ref": "#/definitions/MeetupGroup"
},
"link": {
"type": "string",
"description": "Member profile link, provides a link to the members chapter profile"
},
"role": {
"type": "string",
"description": "The leadership role of this member within the Group, if any. Value may be one of assistant_organizer, coorganizer, event_organizer, organizer"
},
"status": {
"type": "string",
"description": "Membership status in this Group. Value may be one of active, blocked, pending, pending_payment or none"
},
"title": {
"type": "string",
"description": "Organizer defined title of member. May be absent if not defined"
},
"updated": {
"type": "integer",
"format": "int64",
"description": "The last time this member edited their Group profile, represented as milliseconds since the epoch"
},
"visited": {
"type": "integer",
"format": "int64",
"description": "The last time this member visited the Group, represented as milliseconds since the epoch"
}
}
},
"MeetupGroup": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": "Numeric Group ID"
},
"description": {
"type": "string",
"description": "Short description of group"
},
"group_photo": {
"$ref": "#/definitions/Photo"
},
"key_photo": {
"$ref": "#/definitions/Photo"
},
"approved": {
"type": "boolean"
},
"category": {
"$ref": "#/definitions/Category"
},
"city": {
"type": "string",
"description": "City of the group"
},
"country": {
"type": "string",
"description": "Country of the group"
},
"created": {
"type": "integer",
"description": "Time the group was created in milliseconds since the epoch"
},
"is_simplehtml": {
"type": "boolean",
"description": "'true' when the group description has been saved in a simplified HTML format, 'false' otherwise."
},
"join_mode": {
"type": "string",
"description": "Who can join this group and how. One of 'approval', 'closed', or 'open'"
},
"lat": {
"type": "integer",
"description": "Latitude"
},
"lon": {
"type": "integer",
"description": "Longtitude"
},
"localized_country_name": {
"type": "string",
"description": "Name of country of the group"
},
"localized_location": {
"type": "string",
"description": "City/State or City/Country of the group"
},
"members": {
"type": "integer",
"description": "Number of members of the Group"
},
"name": {
"type": "string",
"description": "Name of the Group (if it has one)"
},
"plaintext_description": {
"type": "string",
"description": "Description of the group, in plain text format."
},
"plain_text_no_images_description": {
"type": "string",
"description": "Description of the group, in plain text format with no images."
},
"short_link": {
"type": "string",
"description": "A shorted URL for the group"
},
"url_Name": {
"type": "string",
"description": "Used to identify the group on meetup.com"
},
"timezone": {
"type": "string",
"description": "This represents the universal timezone identifier for the group"
},
"next_event": {
"$ref": "#/definitions/MeetupEvent"
}
}
}
},
"externalDocs": {
"description": "Find out more about the Meetup API",
"url": "https://www.meetup.com/meetup_api/"
}
},
"apiType": "Rest"
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices",
"apiVersion": "2019-04-01",
"name": "[concat(parameters('storageAccounts_meetuplist_name'), '/default')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_meetuplist_name'))]"
],
"properties": {
"cors": {
"corsRules": []
},
"deleteRetentionPolicy": {
"enabled": false
}
}
},
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_Meetup_ReadOnly_API_name')]",
"location": "[parameters('logicAppLocation')]",
"dependsOn": [
"[resourceId('Microsoft.Web/customApis', parameters('customApis_Meetup_ReadOnly_API_name'))]"
],
"properties": {
"displayName": "[parameters('connections_Meetup_ReadOnly_API_name')]",
"customParameterValues": {},
"api": {
"id": "[resourceId('Microsoft.Web/customApis', parameters('customApis_Meetup_ReadOnly_API_name'))]"
}
}
},
{
"type": "Microsoft.Logic/workflows",
"apiVersion": "2017-07-01",
"name": "[parameters('workflows_meetup_bot_alert_name')]",
"location": "[parameters('logicAppLocation')]",
"dependsOn": [
"[resourceId('Microsoft.Web/connections', parameters('connections_Meetup_ReadOnly_API_name'))]",
"[resourceId('Microsoft.Web/customApis', parameters('customApis_Meetup_ReadOnly_API_name'))]",
"[resourceId('Microsoft.Web/connections', parameters('connections_azuretables_name'))]",
"[resourceId('Microsoft.Web/connections', parameters('connections_cognitiveservicescontentmoderator_name'))]",
"[resourceId('Microsoft.Web/connections', parameters('connections_gmail_name'))]"
],
"properties": {
"state": "Enabled",
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"recurrence": {
"frequency": "Hour",
"interval": 6
},
"type": "Recurrence",
"inputs": {}
}
},
"actions": {
"Did_we_detect_any_suspect_accounts": {
"actions": {
"Send_email": {
"runAfter": {},
"type": "ApiConnection",
"inputs": {
"body": {
"Body": "@{concat('<ul>',variables('SuspectAccounts'),'</ul>')}",
"Subject": "Potential Bots for @{variables('MeetupDisplayName')}",
"To": "[parameters('alert_email_recipients')]"
},
"host": {
"connection": {
"name": "@parameters('$connections')['gmail']['connectionId']"
}
},
"method": "post",
"path": "/Mail"
}
}
},
"runAfter": {
"For_each": [
"Succeeded",
"Failed"
]
},
"expression": {
"and": [
{
"not": {
"equals": [
"@empty(variables('SuspectAccounts'))",
"@true"
]
}
}
]
},
"type": "If"
},
"For_each": {
"foreach": "@body('Retrieve_Meetup_Group_Members_List')",
"actions": {
"Check_Processed_User_List": {
"runAfter": {},
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azuretables']['connectionId']"
}
},
"method": "get",
"path": "/Tables/@{encodeURIComponent('parsedmembers')}/entities(PartitionKey='@{encodeURIComponent(variables('MeetupURL'))}',RowKey='@{encodeURIComponent(items('For_each')['id'])}')"
}
},
"Delay": {
"runAfter": {
"Reset_SpamBotRating": [
"Succeeded"
]
},
"type": "Wait",
"inputs": {
"interval": {
"count": 2,
"unit": "Second"
}
},
"description": "Delay two seconds so we can use free Content Moderator API tier (1 call per second)"
},
"Is_this_a_new_Member": {
"actions": {
"Check_Member_Location_details": {
"actions": {
"Increment_SpamBot_Rating_due_to_city_mismatch": {
"runAfter": {},
"type": "IncrementVariable",
"inputs": {
"name": "SpamBotRating"
}
}
},
"runAfter": {
"Does_Member_Name_have_a_space": [
"Succeeded"
]
},
"expression": {
"and": [
{
"not": {
"equals": [
"@toUpper(items('For_each')?['country'])",
"@toUpper(variables('MeetupCountry'))"
]
}
},
{
"equals": [
"@toUpper(items('For_each')?['city'])",
"@toUpper(items('For_each')?['city'])"
]
}
]
},
"type": "If"
},
"Does_Member_Name_have_a_space": {
"actions": {
"Increment_variable": {
"runAfter": {},
"type": "IncrementVariable",
"inputs": {
"name": "SpamBotRating"
}
}
},
"runAfter": {},
"expression": {
"and": [
{
"not": {
"contains": [