azure_mgmt_event_grid 0.17.10 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (592) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +20 -20
  3. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid.rb +56 -56
  4. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  5. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1841 -1841
  6. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/endpoint_type.rb +15 -15
  7. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +134 -134
  8. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +72 -72
  9. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
  10. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  11. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -20
  12. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +81 -81
  13. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
  14. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
  15. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  16. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +81 -81
  17. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  18. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb +17 -17
  19. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  20. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  21. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  22. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
  23. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  24. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  25. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  26. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +120 -120
  27. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  28. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  29. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
  30. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  31. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  32. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
  33. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  34. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb +946 -946
  35. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid.rb +58 -58
  36. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  37. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1841 -1841
  38. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  39. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +136 -136
  40. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +47 -47
  41. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
  42. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  43. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -20
  44. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +83 -83
  45. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
  46. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
  47. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  48. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +81 -81
  49. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  50. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb +17 -17
  51. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  52. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  53. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  54. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
  55. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  56. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  57. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  58. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  59. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  60. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  61. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  62. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
  63. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  64. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
  65. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  66. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
  67. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  68. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
  69. data/lib/2018-01-01/generated/azure_mgmt_event_grid.rb +57 -57
  70. data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  71. data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +1837 -1837
  72. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  73. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +136 -136
  74. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +47 -47
  75. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
  76. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  77. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -20
  78. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +83 -83
  79. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
  80. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
  81. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  82. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
  83. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  84. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  85. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  86. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  87. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
  88. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  89. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  90. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  91. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  92. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  93. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  94. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  95. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
  96. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  97. data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
  98. data/lib/2018-01-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  99. data/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb +118 -118
  100. data/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  101. data/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
  102. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid.rb +68 -68
  103. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  104. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1837 -1837
  105. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
  106. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
  107. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  108. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +180 -180
  109. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +49 -49
  110. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
  111. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  112. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
  113. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +125 -125
  114. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
  115. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
  116. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  117. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
  118. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
  119. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
  120. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
  121. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +65 -65
  122. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
  123. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
  124. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  125. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  126. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  127. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  128. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
  129. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
  130. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
  131. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +144 -144
  132. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  133. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  134. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  135. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  136. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  137. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  138. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  139. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
  140. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  141. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
  142. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  143. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
  144. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  145. data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
  146. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid.rb +91 -91
  147. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/domain_topics.rb +235 -235
  148. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/domains.rb +1002 -1002
  149. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  150. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1947 -1947
  151. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +70 -70
  152. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
  153. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
  154. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain.rb +140 -140
  155. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
  156. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
  157. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
  158. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +62 -62
  159. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +55 -55
  160. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
  161. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +55 -55
  162. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
  163. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  164. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -189
  165. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +49 -49
  166. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
  167. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  168. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
  169. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -137
  170. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
  171. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
  172. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  173. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
  174. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
  175. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
  176. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
  177. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +65 -65
  178. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
  179. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
  180. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
  181. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
  182. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
  183. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
  184. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
  185. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
  186. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  187. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  188. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  189. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  190. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
  191. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
  192. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
  193. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
  194. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
  195. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
  196. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
  197. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
  198. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +144 -144
  199. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  200. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  201. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  202. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  203. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  204. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  205. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  206. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
  207. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  208. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
  209. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  210. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
  211. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  212. data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
  213. data/lib/2019-01-01/generated/azure_mgmt_event_grid.rb +62 -62
  214. data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  215. data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +1837 -1837
  216. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
  217. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  218. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +165 -165
  219. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +49 -49
  220. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
  221. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  222. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
  223. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +112 -112
  224. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
  225. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
  226. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  227. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
  228. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
  229. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  230. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  231. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  232. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  233. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
  234. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +75 -75
  235. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
  236. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
  237. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  238. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  239. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  240. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  241. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  242. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  243. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  244. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
  245. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  246. data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
  247. data/lib/2019-01-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  248. data/lib/2019-01-01/generated/azure_mgmt_event_grid/operations.rb +118 -118
  249. data/lib/2019-01-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  250. data/lib/2019-01-01/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
  251. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid.rb +93 -93
  252. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +663 -663
  253. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domains.rb +1256 -1256
  254. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  255. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +3368 -3368
  256. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -74
  257. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
  258. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
  259. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain.rb +142 -142
  260. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
  261. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
  262. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
  263. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -75
  264. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -20
  265. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -98
  266. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
  267. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -98
  268. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
  269. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  270. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -189
  271. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +50 -50
  272. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
  273. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  274. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
  275. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -137
  276. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -98
  277. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +106 -106
  278. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  279. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
  280. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
  281. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
  282. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
  283. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +67 -67
  284. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
  285. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
  286. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
  287. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
  288. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
  289. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
  290. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
  291. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
  292. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  293. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  294. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  295. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  296. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
  297. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -63
  298. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
  299. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
  300. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
  301. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
  302. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
  303. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
  304. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
  305. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +144 -144
  306. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  307. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  308. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  309. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  310. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  311. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  312. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  313. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -98
  314. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  315. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
  316. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  317. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
  318. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  319. data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topics.rb +1367 -1367
  320. data/lib/2019-06-01/generated/azure_mgmt_event_grid.rb +87 -87
  321. data/lib/2019-06-01/generated/azure_mgmt_event_grid/domain_topics.rb +699 -699
  322. data/lib/2019-06-01/generated/azure_mgmt_event_grid/domains.rb +1328 -1328
  323. data/lib/2019-06-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  324. data/lib/2019-06-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +3648 -3648
  325. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -74
  326. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
  327. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
  328. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain.rb +112 -112
  329. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
  330. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
  331. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
  332. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -75
  333. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -20
  334. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -98
  335. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
  336. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -98
  337. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  338. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +176 -176
  339. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +50 -50
  340. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
  341. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  342. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
  343. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +124 -124
  344. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -98
  345. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_type.rb +106 -106
  346. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  347. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
  348. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
  349. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
  350. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
  351. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
  352. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
  353. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
  354. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
  355. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  356. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  357. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  358. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  359. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
  360. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -63
  361. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
  362. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
  363. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
  364. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
  365. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
  366. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
  367. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
  368. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
  369. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  370. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  371. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  372. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  373. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  374. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  375. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  376. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -98
  377. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  378. data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
  379. data/lib/2019-06-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  380. data/lib/2019-06-01/generated/azure_mgmt_event_grid/operations.rb +118 -118
  381. data/lib/2019-06-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  382. data/lib/2019-06-01/generated/azure_mgmt_event_grid/topics.rb +1439 -1439
  383. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid.rb +95 -95
  384. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +699 -699
  385. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/domains.rb +1328 -1328
  386. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
  387. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +3648 -3648
  388. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -74
  389. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb +86 -86
  390. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
  391. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
  392. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain.rb +154 -154
  393. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
  394. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
  395. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
  396. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -75
  397. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -20
  398. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -98
  399. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
  400. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -98
  401. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
  402. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
  403. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -189
  404. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +52 -52
  405. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
  406. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
  407. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
  408. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -137
  409. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -98
  410. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +106 -106
  411. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
  412. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
  413. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
  414. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
  415. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
  416. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +67 -67
  417. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
  418. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
  419. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
  420. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
  421. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
  422. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
  423. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
  424. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
  425. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
  426. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
  427. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
  428. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
  429. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
  430. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -63
  431. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/service_bus_topic_event_subscription_destination.rb +64 -64
  432. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
  433. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
  434. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
  435. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
  436. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
  437. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
  438. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
  439. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +156 -156
  440. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
  441. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
  442. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
  443. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
  444. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
  445. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
  446. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
  447. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -98
  448. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
  449. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +122 -122
  450. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
  451. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
  452. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
  453. data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/topics.rb +1439 -1439
  454. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid.rb +78 -19
  455. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +0 -0
  456. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/domains.rb +1 -1
  457. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_channels.rb +614 -0
  458. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +42 -1
  459. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +0 -0
  460. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/extension_topics.rb +141 -0
  461. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +0 -0
  462. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb +0 -0
  463. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +0 -0
  464. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/connection_state.rb +69 -0
  465. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +0 -0
  466. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_with_resource_identity.rb +66 -0
  467. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/delivery_with_resource_identity.rb +67 -0
  468. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain.rb +57 -9
  469. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +0 -0
  470. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +0 -0
  471. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +0 -0
  472. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +0 -0
  473. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +0 -0
  474. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +0 -0
  475. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +39 -12
  476. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +0 -0
  477. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel.rb +102 -0
  478. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_destination.rb +75 -0
  479. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_provisioning_state.rb +20 -0
  480. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_source.rb +48 -0
  481. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channels_list_result.rb +98 -0
  482. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +0 -0
  483. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +0 -0
  484. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +41 -2
  485. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +1 -1
  486. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +0 -0
  487. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +0 -0
  488. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_identity.rb +61 -0
  489. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_identity_type.rb +16 -0
  490. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +0 -0
  491. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +41 -2
  492. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +0 -0
  493. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +0 -0
  494. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +0 -0
  495. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/extension_topic.rb +86 -0
  496. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +0 -0
  497. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/identity_info.rb +96 -0
  498. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/identity_type.rb +18 -0
  499. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/inbound_ip_rule.rb +0 -0
  500. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +0 -0
  501. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +0 -0
  502. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/ip_action_type.rb +0 -0
  503. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +0 -0
  504. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +0 -0
  505. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +0 -0
  506. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +0 -0
  507. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +0 -0
  508. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +0 -0
  509. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +0 -0
  510. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +0 -0
  511. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +0 -0
  512. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +0 -0
  513. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +0 -0
  514. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +0 -0
  515. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace.rb +126 -0
  516. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_provisioning_state.rb +20 -0
  517. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_regenerate_key_request.rb +46 -0
  518. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_shared_access_keys.rb +57 -0
  519. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_update_parameters.rb +54 -0
  520. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespaces_list_result.rb +98 -0
  521. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration.rb +207 -0
  522. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_event_types_list_result.rb +68 -0
  523. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_provisioning_state.rb +20 -0
  524. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_update_parameters.rb +117 -0
  525. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_visibility_state.rb +17 -0
  526. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registrations_list_result.rb +99 -0
  527. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic.rb +125 -0
  528. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_activation_state.rb +17 -0
  529. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_provisioning_state.rb +20 -0
  530. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_type.rb +134 -0
  531. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_type_authorization_state.rb +17 -0
  532. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_types_list_result.rb +55 -0
  533. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_update_parameters.rb +54 -0
  534. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topics_list_result.rb +98 -0
  535. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/persisted_connection_status.rb +18 -0
  536. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_endpoint.rb +46 -0
  537. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_endpoint_connection.rb +120 -0
  538. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_endpoint_connection_list_result.rb +100 -0
  539. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_link_resource.rb +128 -0
  540. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_link_resources_list_result.rb +99 -0
  541. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/public_network_access.rb +16 -0
  542. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +0 -0
  543. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource_provisioning_state.rb +20 -0
  544. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +0 -0
  545. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource_sku.rb +48 -0
  546. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +0 -0
  547. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +0 -0
  548. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/service_bus_topic_event_subscription_destination.rb +0 -0
  549. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/sku.rb +16 -0
  550. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/sku_definitions_for_resource_type.rb +67 -0
  551. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/sku_definitions_for_resource_type_list_result.rb +67 -0
  552. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +0 -0
  553. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +0 -0
  554. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +0 -0
  555. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +0 -0
  556. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +0 -0
  557. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +0 -0
  558. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +0 -0
  559. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/system_topic.rb +134 -0
  560. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/system_topic_update_parameters.rb +54 -0
  561. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/system_topics_list_result.rb +98 -0
  562. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +57 -9
  563. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +0 -0
  564. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +0 -0
  565. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +0 -0
  566. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +0 -0
  567. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +0 -0
  568. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +0 -0
  569. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +37 -10
  570. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +0 -0
  571. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +0 -0
  572. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/user_identity_properties.rb +57 -0
  573. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +0 -0
  574. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +0 -0
  575. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/operations.rb +0 -0
  576. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_namespaces.rb +1333 -0
  577. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_registrations.rb +1074 -0
  578. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_topic_event_subscriptions.rb +878 -0
  579. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_topics.rb +1102 -0
  580. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/private_endpoint_connections.rb +773 -0
  581. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/private_link_resources.rb +423 -0
  582. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/system_topic_event_subscriptions.rb +874 -0
  583. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/system_topics.rb +1128 -0
  584. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +0 -0
  585. data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/topics.rb +1 -1
  586. data/lib/azure_mgmt_event_grid.rb +5 -5
  587. data/lib/module_definition.rb +7 -7
  588. data/lib/profiles/latest/eventgrid_latest_profile_client.rb +40 -40
  589. data/lib/profiles/latest/eventgrid_module_definition.rb +8 -8
  590. data/lib/profiles/latest/modules/eventgrid_profile_module.rb +282 -66
  591. data/lib/version.rb +1 -1
  592. metadata +62 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bffa251423147773f2b381a841bfcf62e58eca2fc9d83dafee38599f57c628f3
4
- data.tar.gz: cc2661c1b29472579ff6d8fe6bd70ae2c33fe59ebe339c9e93e32306e198b9e7
3
+ metadata.gz: 78613c5678a81973012b855dc2fb741968125328ebaed6527f51030ebc16c568
4
+ data.tar.gz: eb1918265353bb86bc414124c11687ab7d0cce0d9da820d9e419b411e8a9d383
5
5
  SHA512:
6
- metadata.gz: 45a0a64f33fbe754a088b4344ddffbaadb0579d8ab13420f16b07018d1ffdbd5936f458b015c4f617d5f1ca1a9cd4073a4af59ffd73e004ff44cb6ed2830ca65
7
- data.tar.gz: 4798a7b389e23ee055be34df4a7d0b0fbcc983aa674f70277bd20e56b2ad148e00aa7b63b60ab04cc94a9adfc288c3e7db312a7066e0d7550d969db372e6d519
6
+ metadata.gz: 71c9fd9fc2357f1f4beaee4d18e75ac601efbe424afae5911d9475c4d9783881fb0ecb38d217f1cb67329bea733f86165e6f5f943233e96879a0300e5fd93305
7
+ data.tar.gz: f01d03a178364cec0e281ce5b065be71da1dc09c5900661bfebc78d3fae1b20e10d2b89c6a3e21138eb4556e686121193e81058be0f22b630cc735549a7305ea
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Microsoft Corporation
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
@@ -1,56 +1,56 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- require 'uri'
7
- require 'cgi'
8
- require 'date'
9
- require 'json'
10
- require 'base64'
11
- require 'erb'
12
- require 'securerandom'
13
- require 'time'
14
- require 'timeliness'
15
- require 'faraday'
16
- require 'faraday-cookie_jar'
17
- require 'concurrent'
18
- require 'ms_rest'
19
- require '2017-06-15-preview/generated/azure_mgmt_event_grid/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::EventGrid::Mgmt::V2017_06_15_preview
23
- autoload :EventSubscriptions, '2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb'
24
- autoload :Operations, '2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb'
25
- autoload :Topics, '2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb'
26
- autoload :TopicTypes, '2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb'
27
- autoload :EventGridManagementClient, '2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb'
28
-
29
- module Models
30
- autoload :OperationsListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb'
31
- autoload :Operation, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation.rb'
32
- autoload :EventSubscriptionFilter, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb'
33
- autoload :EventSubscriptionDestination, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb'
34
- autoload :EventTypesListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb'
35
- autoload :EventSubscriptionUpdateParameters, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb'
36
- autoload :EventSubscriptionsListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb'
37
- autoload :TopicTypesListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb'
38
- autoload :Resource, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource.rb'
39
- autoload :TopicsListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb'
40
- autoload :OperationInfo, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb'
41
- autoload :TopicSharedAccessKeys, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb'
42
- autoload :EventSubscriptionFullUrl, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb'
43
- autoload :TopicRegenerateKeyRequest, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb'
44
- autoload :EventSubscription, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb'
45
- autoload :TrackedResource, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb'
46
- autoload :Topic, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic.rb'
47
- autoload :EventType, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb'
48
- autoload :TopicTypeInfo, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb'
49
- autoload :EventSubscriptionProvisioningState, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb'
50
- autoload :EndpointType, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/endpoint_type.rb'
51
- autoload :OperationOrigin, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb'
52
- autoload :TopicProvisioningState, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb'
53
- autoload :ResourceRegionType, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb'
54
- autoload :TopicTypeProvisioningState, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb'
55
- end
56
- end
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2017-06-15-preview/generated/azure_mgmt_event_grid/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
23
+ autoload :EventSubscriptions, '2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb'
24
+ autoload :Operations, '2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb'
25
+ autoload :Topics, '2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb'
26
+ autoload :TopicTypes, '2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb'
27
+ autoload :EventGridManagementClient, '2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb'
28
+
29
+ module Models
30
+ autoload :OperationsListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb'
31
+ autoload :Operation, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation.rb'
32
+ autoload :EventSubscriptionFilter, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb'
33
+ autoload :EventSubscriptionDestination, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb'
34
+ autoload :EventTypesListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb'
35
+ autoload :EventSubscriptionUpdateParameters, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb'
36
+ autoload :EventSubscriptionsListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb'
37
+ autoload :TopicTypesListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb'
38
+ autoload :Resource, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource.rb'
39
+ autoload :TopicsListResult, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb'
40
+ autoload :OperationInfo, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb'
41
+ autoload :TopicSharedAccessKeys, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb'
42
+ autoload :EventSubscriptionFullUrl, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb'
43
+ autoload :TopicRegenerateKeyRequest, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb'
44
+ autoload :EventSubscription, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb'
45
+ autoload :TrackedResource, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb'
46
+ autoload :Topic, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic.rb'
47
+ autoload :EventType, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb'
48
+ autoload :TopicTypeInfo, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb'
49
+ autoload :EventSubscriptionProvisioningState, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb'
50
+ autoload :EndpointType, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/endpoint_type.rb'
51
+ autoload :OperationOrigin, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb'
52
+ autoload :TopicProvisioningState, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb'
53
+ autoload :ResourceRegionType, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb'
54
+ autoload :TopicTypeProvisioningState, '2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb'
55
+ end
56
+ end
@@ -138,7 +138,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_event_grid'
141
- sdk_information = "#{sdk_information}/0.17.10"
141
+ sdk_information = "#{sdk_information}/0.18.0"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -1,1841 +1,1841 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
- #
8
- # Azure EventGrid Management Client
9
- #
10
- class EventSubscriptions
11
- include MsRestAzure
12
-
13
- #
14
- # Creates and initializes a new instance of the EventSubscriptions class.
15
- # @param client service class for accessing basic functionality.
16
- #
17
- def initialize(client)
18
- @client = client
19
- end
20
-
21
- # @return [EventGridManagementClient] reference to the EventGridManagementClient
22
- attr_reader :client
23
-
24
- #
25
- # Get an event subscription
26
- #
27
- # Get properties of an event subscription
28
- #
29
- # @param scope [String] The scope of the event subscription. The scope can be a
30
- # subscription, or a resource group, or a top level resource belonging to a
31
- # resource provider namespace, or an EventGrid topic. For example, use
32
- # '/subscriptions/{subscriptionId}/' for a subscription,
33
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
34
- # resource group, and
35
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
36
- # for a resource, and
37
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
38
- # for an EventGrid topic.
39
- # @param event_subscription_name [String] Name of the event subscription
40
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
- # will be added to the HTTP request.
42
- #
43
- # @return [EventSubscription] operation results.
44
- #
45
- def get(scope, event_subscription_name, custom_headers:nil)
46
- response = get_async(scope, event_subscription_name, custom_headers:custom_headers).value!
47
- response.body unless response.nil?
48
- end
49
-
50
- #
51
- # Get an event subscription
52
- #
53
- # Get properties of an event subscription
54
- #
55
- # @param scope [String] The scope of the event subscription. The scope can be a
56
- # subscription, or a resource group, or a top level resource belonging to a
57
- # resource provider namespace, or an EventGrid topic. For example, use
58
- # '/subscriptions/{subscriptionId}/' for a subscription,
59
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
60
- # resource group, and
61
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
62
- # for a resource, and
63
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
64
- # for an EventGrid topic.
65
- # @param event_subscription_name [String] Name of the event subscription
66
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
67
- # will be added to the HTTP request.
68
- #
69
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
70
- #
71
- def get_with_http_info(scope, event_subscription_name, custom_headers:nil)
72
- get_async(scope, event_subscription_name, custom_headers:custom_headers).value!
73
- end
74
-
75
- #
76
- # Get an event subscription
77
- #
78
- # Get properties of an event subscription
79
- #
80
- # @param scope [String] The scope of the event subscription. The scope can be a
81
- # subscription, or a resource group, or a top level resource belonging to a
82
- # resource provider namespace, or an EventGrid topic. For example, use
83
- # '/subscriptions/{subscriptionId}/' for a subscription,
84
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
85
- # resource group, and
86
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
87
- # for a resource, and
88
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
89
- # for an EventGrid topic.
90
- # @param event_subscription_name [String] Name of the event subscription
91
- # @param [Hash{String => String}] A hash of custom headers that will be added
92
- # to the HTTP request.
93
- #
94
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
95
- #
96
- def get_async(scope, event_subscription_name, custom_headers:nil)
97
- fail ArgumentError, 'scope is nil' if scope.nil?
98
- fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
99
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
100
-
101
-
102
- request_headers = {}
103
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
104
-
105
- # Set Headers
106
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
107
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
108
- path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
109
-
110
- request_url = @base_url || @client.base_url
111
-
112
- options = {
113
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
114
- path_params: {'eventSubscriptionName' => event_subscription_name},
115
- skip_encoding_path_params: {'scope' => scope},
116
- query_params: {'api-version' => @client.api_version},
117
- headers: request_headers.merge(custom_headers || {}),
118
- base_url: request_url
119
- }
120
- promise = @client.make_request_async(:get, path_template, options)
121
-
122
- promise = promise.then do |result|
123
- http_response = result.response
124
- status_code = http_response.status
125
- response_content = http_response.body
126
- unless status_code == 200
127
- error_model = JSON.load(response_content)
128
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
129
- end
130
-
131
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
132
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
133
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
134
- # Deserialize Response
135
- if status_code == 200
136
- begin
137
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
138
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
139
- result.body = @client.deserialize(result_mapper, parsed_response)
140
- rescue Exception => e
141
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
142
- end
143
- end
144
-
145
- result
146
- end
147
-
148
- promise.execute
149
- end
150
-
151
- #
152
- # Create an event subscription
153
- #
154
- # Asynchronously creates a new event subscription to the specified scope.
155
- # Existing event subscriptions cannot be updated with this API and should
156
- # instead use the Update event subscription API.
157
- #
158
- # @param scope [String] The scope of the resource to which the event
159
- # subscription needs to be created. The scope can be a subscription, or a
160
- # resource group, or a top level resource belonging to a resource provider
161
- # namespace, or an EventGrid topic. For example, use
162
- # '/subscriptions/{subscriptionId}/' for a subscription,
163
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
164
- # resource group, and
165
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
166
- # for a resource, and
167
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
168
- # for an EventGrid topic.
169
- # @param event_subscription_name [String] Name of the event subscription to be
170
- # created. Event subscription names must be between 3 and 64 characters in
171
- # length and use alphanumeric letters only.
172
- # @param event_subscription_info [EventSubscription] Event subscription
173
- # properties containing the destination and filter information
174
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
175
- # will be added to the HTTP request.
176
- #
177
- # @return [EventSubscription] operation results.
178
- #
179
- def create(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
180
- response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
181
- response.body unless response.nil?
182
- end
183
-
184
- #
185
- # @param scope [String] The scope of the resource to which the event
186
- # subscription needs to be created. The scope can be a subscription, or a
187
- # resource group, or a top level resource belonging to a resource provider
188
- # namespace, or an EventGrid topic. For example, use
189
- # '/subscriptions/{subscriptionId}/' for a subscription,
190
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
191
- # resource group, and
192
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
193
- # for a resource, and
194
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
195
- # for an EventGrid topic.
196
- # @param event_subscription_name [String] Name of the event subscription to be
197
- # created. Event subscription names must be between 3 and 64 characters in
198
- # length and use alphanumeric letters only.
199
- # @param event_subscription_info [EventSubscription] Event subscription
200
- # properties containing the destination and filter information
201
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
202
- # will be added to the HTTP request.
203
- #
204
- # @return [Concurrent::Promise] promise which provides async access to http
205
- # response.
206
- #
207
- def create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
208
- # Send request
209
- promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers)
210
-
211
- promise = promise.then do |response|
212
- # Defining deserialization method.
213
- deserialize_method = lambda do |parsed_response|
214
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
215
- parsed_response = @client.deserialize(result_mapper, parsed_response)
216
- end
217
-
218
- # Waiting for response.
219
- @client.get_long_running_operation_result(response, deserialize_method)
220
- end
221
-
222
- promise
223
- end
224
-
225
- #
226
- # Delete an event subscription
227
- #
228
- # Delete an existing event subscription
229
- #
230
- # @param scope [String] The scope of the event subscription. The scope can be a
231
- # subscription, or a resource group, or a top level resource belonging to a
232
- # resource provider namespace, or an EventGrid topic. For example, use
233
- # '/subscriptions/{subscriptionId}/' for a subscription,
234
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
235
- # resource group, and
236
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
237
- # for a resource, and
238
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
239
- # for an EventGrid topic.
240
- # @param event_subscription_name [String] Name of the event subscription
241
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
- # will be added to the HTTP request.
243
- #
244
- def delete(scope, event_subscription_name, custom_headers:nil)
245
- response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
246
- nil
247
- end
248
-
249
- #
250
- # @param scope [String] The scope of the event subscription. The scope can be a
251
- # subscription, or a resource group, or a top level resource belonging to a
252
- # resource provider namespace, or an EventGrid topic. For example, use
253
- # '/subscriptions/{subscriptionId}/' for a subscription,
254
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
255
- # resource group, and
256
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
257
- # for a resource, and
258
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
259
- # for an EventGrid topic.
260
- # @param event_subscription_name [String] Name of the event subscription
261
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
262
- # will be added to the HTTP request.
263
- #
264
- # @return [Concurrent::Promise] promise which provides async access to http
265
- # response.
266
- #
267
- def delete_async(scope, event_subscription_name, custom_headers:nil)
268
- # Send request
269
- promise = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers)
270
-
271
- promise = promise.then do |response|
272
- # Defining deserialization method.
273
- deserialize_method = lambda do |parsed_response|
274
- end
275
-
276
- # Waiting for response.
277
- @client.get_long_running_operation_result(response, deserialize_method)
278
- end
279
-
280
- promise
281
- end
282
-
283
- #
284
- # Update an event subscription
285
- #
286
- # Asynchronously updates an existing event subscription.
287
- #
288
- # @param scope [String] The scope of existing event subscription. The scope can
289
- # be a subscription, or a resource group, or a top level resource belonging to
290
- # a resource provider namespace, or an EventGrid topic. For example, use
291
- # '/subscriptions/{subscriptionId}/' for a subscription,
292
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
293
- # resource group, and
294
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
295
- # for a resource, and
296
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
297
- # for an EventGrid topic.
298
- # @param event_subscription_name [String] Name of the event subscription to be
299
- # created
300
- # @param event_subscription_update_parameters
301
- # [EventSubscriptionUpdateParameters] Updated event subscription information
302
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
303
- # will be added to the HTTP request.
304
- #
305
- # @return [EventSubscription] operation results.
306
- #
307
- def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
308
- response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
309
- response.body unless response.nil?
310
- end
311
-
312
- #
313
- # @param scope [String] The scope of existing event subscription. The scope can
314
- # be a subscription, or a resource group, or a top level resource belonging to
315
- # a resource provider namespace, or an EventGrid topic. For example, use
316
- # '/subscriptions/{subscriptionId}/' for a subscription,
317
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
318
- # resource group, and
319
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
320
- # for a resource, and
321
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
322
- # for an EventGrid topic.
323
- # @param event_subscription_name [String] Name of the event subscription to be
324
- # created
325
- # @param event_subscription_update_parameters
326
- # [EventSubscriptionUpdateParameters] Updated event subscription information
327
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
328
- # will be added to the HTTP request.
329
- #
330
- # @return [Concurrent::Promise] promise which provides async access to http
331
- # response.
332
- #
333
- def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
334
- # Send request
335
- promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers)
336
-
337
- promise = promise.then do |response|
338
- # Defining deserialization method.
339
- deserialize_method = lambda do |parsed_response|
340
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
341
- parsed_response = @client.deserialize(result_mapper, parsed_response)
342
- end
343
-
344
- # Waiting for response.
345
- @client.get_long_running_operation_result(response, deserialize_method)
346
- end
347
-
348
- promise
349
- end
350
-
351
- #
352
- # Get full URL of an event subscription
353
- #
354
- # Get the full endpoint URL for an event subscription
355
- #
356
- # @param scope [String] The scope of the event subscription. The scope can be a
357
- # subscription, or a resource group, or a top level resource belonging to a
358
- # resource provider namespace, or an EventGrid topic. For example, use
359
- # '/subscriptions/{subscriptionId}/' for a subscription,
360
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
361
- # resource group, and
362
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
363
- # for a resource, and
364
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
365
- # for an EventGrid topic.
366
- # @param event_subscription_name [String] Name of the event subscription
367
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
368
- # will be added to the HTTP request.
369
- #
370
- # @return [EventSubscriptionFullUrl] operation results.
371
- #
372
- def get_full_url(scope, event_subscription_name, custom_headers:nil)
373
- response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
374
- response.body unless response.nil?
375
- end
376
-
377
- #
378
- # Get full URL of an event subscription
379
- #
380
- # Get the full endpoint URL for an event subscription
381
- #
382
- # @param scope [String] The scope of the event subscription. The scope can be a
383
- # subscription, or a resource group, or a top level resource belonging to a
384
- # resource provider namespace, or an EventGrid topic. For example, use
385
- # '/subscriptions/{subscriptionId}/' for a subscription,
386
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
387
- # resource group, and
388
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
389
- # for a resource, and
390
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
391
- # for an EventGrid topic.
392
- # @param event_subscription_name [String] Name of the event subscription
393
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
394
- # will be added to the HTTP request.
395
- #
396
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
397
- #
398
- def get_full_url_with_http_info(scope, event_subscription_name, custom_headers:nil)
399
- get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
400
- end
401
-
402
- #
403
- # Get full URL of an event subscription
404
- #
405
- # Get the full endpoint URL for an event subscription
406
- #
407
- # @param scope [String] The scope of the event subscription. The scope can be a
408
- # subscription, or a resource group, or a top level resource belonging to a
409
- # resource provider namespace, or an EventGrid topic. For example, use
410
- # '/subscriptions/{subscriptionId}/' for a subscription,
411
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
412
- # resource group, and
413
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
414
- # for a resource, and
415
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
416
- # for an EventGrid topic.
417
- # @param event_subscription_name [String] Name of the event subscription
418
- # @param [Hash{String => String}] A hash of custom headers that will be added
419
- # to the HTTP request.
420
- #
421
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
422
- #
423
- def get_full_url_async(scope, event_subscription_name, custom_headers:nil)
424
- fail ArgumentError, 'scope is nil' if scope.nil?
425
- fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
426
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
427
-
428
-
429
- request_headers = {}
430
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
431
-
432
- # Set Headers
433
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
434
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
435
- path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl'
436
-
437
- request_url = @base_url || @client.base_url
438
-
439
- options = {
440
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
441
- path_params: {'eventSubscriptionName' => event_subscription_name},
442
- skip_encoding_path_params: {'scope' => scope},
443
- query_params: {'api-version' => @client.api_version},
444
- headers: request_headers.merge(custom_headers || {}),
445
- base_url: request_url
446
- }
447
- promise = @client.make_request_async(:post, path_template, options)
448
-
449
- promise = promise.then do |result|
450
- http_response = result.response
451
- status_code = http_response.status
452
- response_content = http_response.body
453
- unless status_code == 200
454
- error_model = JSON.load(response_content)
455
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
456
- end
457
-
458
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
459
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
460
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
461
- # Deserialize Response
462
- if status_code == 200
463
- begin
464
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
465
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionFullUrl.mapper()
466
- result.body = @client.deserialize(result_mapper, parsed_response)
467
- rescue Exception => e
468
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
469
- end
470
- end
471
-
472
- result
473
- end
474
-
475
- promise.execute
476
- end
477
-
478
- #
479
- # Get an aggregated list of all global event subscriptions under an Azure
480
- # subscription
481
- #
482
- # List all aggregated global event subscriptions under a specific Azure
483
- # subscription
484
- #
485
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
486
- # will be added to the HTTP request.
487
- #
488
- # @return [EventSubscriptionsListResult] operation results.
489
- #
490
- def list_global_by_subscription(custom_headers:nil)
491
- response = list_global_by_subscription_async(custom_headers:custom_headers).value!
492
- response.body unless response.nil?
493
- end
494
-
495
- #
496
- # Get an aggregated list of all global event subscriptions under an Azure
497
- # subscription
498
- #
499
- # List all aggregated global event subscriptions under a specific Azure
500
- # subscription
501
- #
502
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
- # will be added to the HTTP request.
504
- #
505
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
506
- #
507
- def list_global_by_subscription_with_http_info(custom_headers:nil)
508
- list_global_by_subscription_async(custom_headers:custom_headers).value!
509
- end
510
-
511
- #
512
- # Get an aggregated list of all global event subscriptions under an Azure
513
- # subscription
514
- #
515
- # List all aggregated global event subscriptions under a specific Azure
516
- # subscription
517
- #
518
- # @param [Hash{String => String}] A hash of custom headers that will be added
519
- # to the HTTP request.
520
- #
521
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
522
- #
523
- def list_global_by_subscription_async(custom_headers:nil)
524
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
525
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
526
-
527
-
528
- request_headers = {}
529
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
530
-
531
- # Set Headers
532
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
533
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
534
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions'
535
-
536
- request_url = @base_url || @client.base_url
537
-
538
- options = {
539
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
540
- path_params: {'subscriptionId' => @client.subscription_id},
541
- query_params: {'api-version' => @client.api_version},
542
- headers: request_headers.merge(custom_headers || {}),
543
- base_url: request_url
544
- }
545
- promise = @client.make_request_async(:get, path_template, options)
546
-
547
- promise = promise.then do |result|
548
- http_response = result.response
549
- status_code = http_response.status
550
- response_content = http_response.body
551
- unless status_code == 200
552
- error_model = JSON.load(response_content)
553
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
554
- end
555
-
556
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
557
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
558
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
559
- # Deserialize Response
560
- if status_code == 200
561
- begin
562
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
563
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
564
- result.body = @client.deserialize(result_mapper, parsed_response)
565
- rescue Exception => e
566
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
567
- end
568
- end
569
-
570
- result
571
- end
572
-
573
- promise.execute
574
- end
575
-
576
- #
577
- # List all global event subscriptions for a topic type
578
- #
579
- # List all global event subscriptions under an Azure subscription for a topic
580
- # type.
581
- #
582
- # @param topic_type_name [String] Name of the topic type
583
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
- # will be added to the HTTP request.
585
- #
586
- # @return [EventSubscriptionsListResult] operation results.
587
- #
588
- def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers:nil)
589
- response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
590
- response.body unless response.nil?
591
- end
592
-
593
- #
594
- # List all global event subscriptions for a topic type
595
- #
596
- # List all global event subscriptions under an Azure subscription for a topic
597
- # type.
598
- #
599
- # @param topic_type_name [String] Name of the topic type
600
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
601
- # will be added to the HTTP request.
602
- #
603
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
604
- #
605
- def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers:nil)
606
- list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
607
- end
608
-
609
- #
610
- # List all global event subscriptions for a topic type
611
- #
612
- # List all global event subscriptions under an Azure subscription for a topic
613
- # type.
614
- #
615
- # @param topic_type_name [String] Name of the topic type
616
- # @param [Hash{String => String}] A hash of custom headers that will be added
617
- # to the HTTP request.
618
- #
619
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
620
- #
621
- def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:nil)
622
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
623
- fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
624
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
625
-
626
-
627
- request_headers = {}
628
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
629
-
630
- # Set Headers
631
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
632
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
633
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions'
634
-
635
- request_url = @base_url || @client.base_url
636
-
637
- options = {
638
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
639
- path_params: {'subscriptionId' => @client.subscription_id,'topicTypeName' => topic_type_name},
640
- query_params: {'api-version' => @client.api_version},
641
- headers: request_headers.merge(custom_headers || {}),
642
- base_url: request_url
643
- }
644
- promise = @client.make_request_async(:get, path_template, options)
645
-
646
- promise = promise.then do |result|
647
- http_response = result.response
648
- status_code = http_response.status
649
- response_content = http_response.body
650
- unless status_code == 200
651
- error_model = JSON.load(response_content)
652
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
653
- end
654
-
655
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
656
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
657
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
658
- # Deserialize Response
659
- if status_code == 200
660
- begin
661
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
662
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
663
- result.body = @client.deserialize(result_mapper, parsed_response)
664
- rescue Exception => e
665
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
666
- end
667
- end
668
-
669
- result
670
- end
671
-
672
- promise.execute
673
- end
674
-
675
- #
676
- # List all global event subscriptions under an Azure subscription and resource
677
- # group
678
- #
679
- # List all global event subscriptions under a specific Azure subscription and
680
- # resource group
681
- #
682
- # @param resource_group_name [String] The name of the resource group within the
683
- # user's subscription.
684
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
685
- # will be added to the HTTP request.
686
- #
687
- # @return [EventSubscriptionsListResult] operation results.
688
- #
689
- def list_global_by_resource_group(resource_group_name, custom_headers:nil)
690
- response = list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
691
- response.body unless response.nil?
692
- end
693
-
694
- #
695
- # List all global event subscriptions under an Azure subscription and resource
696
- # group
697
- #
698
- # List all global event subscriptions under a specific Azure subscription and
699
- # resource group
700
- #
701
- # @param resource_group_name [String] The name of the resource group within the
702
- # user's subscription.
703
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
704
- # will be added to the HTTP request.
705
- #
706
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
707
- #
708
- def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
709
- list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
710
- end
711
-
712
- #
713
- # List all global event subscriptions under an Azure subscription and resource
714
- # group
715
- #
716
- # List all global event subscriptions under a specific Azure subscription and
717
- # resource group
718
- #
719
- # @param resource_group_name [String] The name of the resource group within the
720
- # user's subscription.
721
- # @param [Hash{String => String}] A hash of custom headers that will be added
722
- # to the HTTP request.
723
- #
724
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
725
- #
726
- def list_global_by_resource_group_async(resource_group_name, custom_headers:nil)
727
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
728
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
729
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
730
-
731
-
732
- request_headers = {}
733
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
734
-
735
- # Set Headers
736
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
737
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
738
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions'
739
-
740
- request_url = @base_url || @client.base_url
741
-
742
- options = {
743
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
744
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
745
- query_params: {'api-version' => @client.api_version},
746
- headers: request_headers.merge(custom_headers || {}),
747
- base_url: request_url
748
- }
749
- promise = @client.make_request_async(:get, path_template, options)
750
-
751
- promise = promise.then do |result|
752
- http_response = result.response
753
- status_code = http_response.status
754
- response_content = http_response.body
755
- unless status_code == 200
756
- error_model = JSON.load(response_content)
757
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
758
- end
759
-
760
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
761
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
762
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
763
- # Deserialize Response
764
- if status_code == 200
765
- begin
766
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
767
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
768
- result.body = @client.deserialize(result_mapper, parsed_response)
769
- rescue Exception => e
770
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
771
- end
772
- end
773
-
774
- result
775
- end
776
-
777
- promise.execute
778
- end
779
-
780
- #
781
- # List all global event subscriptions under a resource group for a topic type
782
- #
783
- # List all global event subscriptions under a resource group for a specific
784
- # topic type.
785
- #
786
- # @param resource_group_name [String] The name of the resource group within the
787
- # user's subscription.
788
- # @param topic_type_name [String] Name of the topic type
789
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
790
- # will be added to the HTTP request.
791
- #
792
- # @return [EventSubscriptionsListResult] operation results.
793
- #
794
- def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers:nil)
795
- response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
796
- response.body unless response.nil?
797
- end
798
-
799
- #
800
- # List all global event subscriptions under a resource group for a topic type
801
- #
802
- # List all global event subscriptions under a resource group for a specific
803
- # topic type.
804
- #
805
- # @param resource_group_name [String] The name of the resource group within the
806
- # user's subscription.
807
- # @param topic_type_name [String] Name of the topic type
808
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
- # will be added to the HTTP request.
810
- #
811
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
- #
813
- def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers:nil)
814
- list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
815
- end
816
-
817
- #
818
- # List all global event subscriptions under a resource group for a topic type
819
- #
820
- # List all global event subscriptions under a resource group for a specific
821
- # topic type.
822
- #
823
- # @param resource_group_name [String] The name of the resource group within the
824
- # user's subscription.
825
- # @param topic_type_name [String] Name of the topic type
826
- # @param [Hash{String => String}] A hash of custom headers that will be added
827
- # to the HTTP request.
828
- #
829
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
830
- #
831
- def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:nil)
832
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
833
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
834
- fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
835
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
836
-
837
-
838
- request_headers = {}
839
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
840
-
841
- # Set Headers
842
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
843
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
844
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions'
845
-
846
- request_url = @base_url || @client.base_url
847
-
848
- options = {
849
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
850
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicTypeName' => topic_type_name},
851
- query_params: {'api-version' => @client.api_version},
852
- headers: request_headers.merge(custom_headers || {}),
853
- base_url: request_url
854
- }
855
- promise = @client.make_request_async(:get, path_template, options)
856
-
857
- promise = promise.then do |result|
858
- http_response = result.response
859
- status_code = http_response.status
860
- response_content = http_response.body
861
- unless status_code == 200
862
- error_model = JSON.load(response_content)
863
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
864
- end
865
-
866
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
867
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
868
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
869
- # Deserialize Response
870
- if status_code == 200
871
- begin
872
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
873
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
874
- result.body = @client.deserialize(result_mapper, parsed_response)
875
- rescue Exception => e
876
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
877
- end
878
- end
879
-
880
- result
881
- end
882
-
883
- promise.execute
884
- end
885
-
886
- #
887
- # List all regional event subscriptions under an Azure subscription
888
- #
889
- # List all event subscriptions from the given location under a specific Azure
890
- # subscription
891
- #
892
- # @param location [String] Name of the location
893
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
894
- # will be added to the HTTP request.
895
- #
896
- # @return [EventSubscriptionsListResult] operation results.
897
- #
898
- def list_regional_by_subscription(location, custom_headers:nil)
899
- response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
900
- response.body unless response.nil?
901
- end
902
-
903
- #
904
- # List all regional event subscriptions under an Azure subscription
905
- #
906
- # List all event subscriptions from the given location under a specific Azure
907
- # subscription
908
- #
909
- # @param location [String] Name of the location
910
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
911
- # will be added to the HTTP request.
912
- #
913
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
914
- #
915
- def list_regional_by_subscription_with_http_info(location, custom_headers:nil)
916
- list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
917
- end
918
-
919
- #
920
- # List all regional event subscriptions under an Azure subscription
921
- #
922
- # List all event subscriptions from the given location under a specific Azure
923
- # subscription
924
- #
925
- # @param location [String] Name of the location
926
- # @param [Hash{String => String}] A hash of custom headers that will be added
927
- # to the HTTP request.
928
- #
929
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
930
- #
931
- def list_regional_by_subscription_async(location, custom_headers:nil)
932
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
933
- fail ArgumentError, 'location is nil' if location.nil?
934
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
935
-
936
-
937
- request_headers = {}
938
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
939
-
940
- # Set Headers
941
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
942
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
943
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions'
944
-
945
- request_url = @base_url || @client.base_url
946
-
947
- options = {
948
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
949
- path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
950
- query_params: {'api-version' => @client.api_version},
951
- headers: request_headers.merge(custom_headers || {}),
952
- base_url: request_url
953
- }
954
- promise = @client.make_request_async(:get, path_template, options)
955
-
956
- promise = promise.then do |result|
957
- http_response = result.response
958
- status_code = http_response.status
959
- response_content = http_response.body
960
- unless status_code == 200
961
- error_model = JSON.load(response_content)
962
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
963
- end
964
-
965
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
966
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
967
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
968
- # Deserialize Response
969
- if status_code == 200
970
- begin
971
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
972
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
973
- result.body = @client.deserialize(result_mapper, parsed_response)
974
- rescue Exception => e
975
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
976
- end
977
- end
978
-
979
- result
980
- end
981
-
982
- promise.execute
983
- end
984
-
985
- #
986
- # List all regional event subscriptions under an Azure subscription and
987
- # resource group
988
- #
989
- # List all event subscriptions from the given location under a specific Azure
990
- # subscription and resource group
991
- #
992
- # @param resource_group_name [String] The name of the resource group within the
993
- # user's subscription.
994
- # @param location [String] Name of the location
995
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
996
- # will be added to the HTTP request.
997
- #
998
- # @return [EventSubscriptionsListResult] operation results.
999
- #
1000
- def list_regional_by_resource_group(resource_group_name, location, custom_headers:nil)
1001
- response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
1002
- response.body unless response.nil?
1003
- end
1004
-
1005
- #
1006
- # List all regional event subscriptions under an Azure subscription and
1007
- # resource group
1008
- #
1009
- # List all event subscriptions from the given location under a specific Azure
1010
- # subscription and resource group
1011
- #
1012
- # @param resource_group_name [String] The name of the resource group within the
1013
- # user's subscription.
1014
- # @param location [String] Name of the location
1015
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1016
- # will be added to the HTTP request.
1017
- #
1018
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1019
- #
1020
- def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers:nil)
1021
- list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
1022
- end
1023
-
1024
- #
1025
- # List all regional event subscriptions under an Azure subscription and
1026
- # resource group
1027
- #
1028
- # List all event subscriptions from the given location under a specific Azure
1029
- # subscription and resource group
1030
- #
1031
- # @param resource_group_name [String] The name of the resource group within the
1032
- # user's subscription.
1033
- # @param location [String] Name of the location
1034
- # @param [Hash{String => String}] A hash of custom headers that will be added
1035
- # to the HTTP request.
1036
- #
1037
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1038
- #
1039
- def list_regional_by_resource_group_async(resource_group_name, location, custom_headers:nil)
1040
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1041
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1042
- fail ArgumentError, 'location is nil' if location.nil?
1043
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1044
-
1045
-
1046
- request_headers = {}
1047
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1048
-
1049
- # Set Headers
1050
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1051
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1052
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions'
1053
-
1054
- request_url = @base_url || @client.base_url
1055
-
1056
- options = {
1057
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1058
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'location' => location},
1059
- query_params: {'api-version' => @client.api_version},
1060
- headers: request_headers.merge(custom_headers || {}),
1061
- base_url: request_url
1062
- }
1063
- promise = @client.make_request_async(:get, path_template, options)
1064
-
1065
- promise = promise.then do |result|
1066
- http_response = result.response
1067
- status_code = http_response.status
1068
- response_content = http_response.body
1069
- unless status_code == 200
1070
- error_model = JSON.load(response_content)
1071
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1072
- end
1073
-
1074
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1075
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1076
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1077
- # Deserialize Response
1078
- if status_code == 200
1079
- begin
1080
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1081
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1082
- result.body = @client.deserialize(result_mapper, parsed_response)
1083
- rescue Exception => e
1084
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1085
- end
1086
- end
1087
-
1088
- result
1089
- end
1090
-
1091
- promise.execute
1092
- end
1093
-
1094
- #
1095
- # List all regional event subscriptions under an Azure subscription for a topic
1096
- # type
1097
- #
1098
- # List all event subscriptions from the given location under a specific Azure
1099
- # subscription and topic type.
1100
- #
1101
- # @param location [String] Name of the location
1102
- # @param topic_type_name [String] Name of the topic type
1103
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1104
- # will be added to the HTTP request.
1105
- #
1106
- # @return [EventSubscriptionsListResult] operation results.
1107
- #
1108
- def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers:nil)
1109
- response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1110
- response.body unless response.nil?
1111
- end
1112
-
1113
- #
1114
- # List all regional event subscriptions under an Azure subscription for a topic
1115
- # type
1116
- #
1117
- # List all event subscriptions from the given location under a specific Azure
1118
- # subscription and topic type.
1119
- #
1120
- # @param location [String] Name of the location
1121
- # @param topic_type_name [String] Name of the topic type
1122
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1123
- # will be added to the HTTP request.
1124
- #
1125
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1126
- #
1127
- def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers:nil)
1128
- list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1129
- end
1130
-
1131
- #
1132
- # List all regional event subscriptions under an Azure subscription for a topic
1133
- # type
1134
- #
1135
- # List all event subscriptions from the given location under a specific Azure
1136
- # subscription and topic type.
1137
- #
1138
- # @param location [String] Name of the location
1139
- # @param topic_type_name [String] Name of the topic type
1140
- # @param [Hash{String => String}] A hash of custom headers that will be added
1141
- # to the HTTP request.
1142
- #
1143
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1144
- #
1145
- def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:nil)
1146
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1147
- fail ArgumentError, 'location is nil' if location.nil?
1148
- fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
1149
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1150
-
1151
-
1152
- request_headers = {}
1153
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1154
-
1155
- # Set Headers
1156
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1157
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1158
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions'
1159
-
1160
- request_url = @base_url || @client.base_url
1161
-
1162
- options = {
1163
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1164
- path_params: {'subscriptionId' => @client.subscription_id,'location' => location,'topicTypeName' => topic_type_name},
1165
- query_params: {'api-version' => @client.api_version},
1166
- headers: request_headers.merge(custom_headers || {}),
1167
- base_url: request_url
1168
- }
1169
- promise = @client.make_request_async(:get, path_template, options)
1170
-
1171
- promise = promise.then do |result|
1172
- http_response = result.response
1173
- status_code = http_response.status
1174
- response_content = http_response.body
1175
- unless status_code == 200
1176
- error_model = JSON.load(response_content)
1177
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1178
- end
1179
-
1180
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1181
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1182
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1183
- # Deserialize Response
1184
- if status_code == 200
1185
- begin
1186
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1187
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1188
- result.body = @client.deserialize(result_mapper, parsed_response)
1189
- rescue Exception => e
1190
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1191
- end
1192
- end
1193
-
1194
- result
1195
- end
1196
-
1197
- promise.execute
1198
- end
1199
-
1200
- #
1201
- # List all regional event subscriptions under an Azure subscription and
1202
- # resource group for a topic type
1203
- #
1204
- # List all event subscriptions from the given location under a specific Azure
1205
- # subscription and resource group and topic type
1206
- #
1207
- # @param resource_group_name [String] The name of the resource group within the
1208
- # user's subscription.
1209
- # @param location [String] Name of the location
1210
- # @param topic_type_name [String] Name of the topic type
1211
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1212
- # will be added to the HTTP request.
1213
- #
1214
- # @return [EventSubscriptionsListResult] operation results.
1215
- #
1216
- def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers:nil)
1217
- response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1218
- response.body unless response.nil?
1219
- end
1220
-
1221
- #
1222
- # List all regional event subscriptions under an Azure subscription and
1223
- # resource group for a topic type
1224
- #
1225
- # List all event subscriptions from the given location under a specific Azure
1226
- # subscription and resource group and topic type
1227
- #
1228
- # @param resource_group_name [String] The name of the resource group within the
1229
- # user's subscription.
1230
- # @param location [String] Name of the location
1231
- # @param topic_type_name [String] Name of the topic type
1232
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1233
- # will be added to the HTTP request.
1234
- #
1235
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1236
- #
1237
- def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers:nil)
1238
- list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1239
- end
1240
-
1241
- #
1242
- # List all regional event subscriptions under an Azure subscription and
1243
- # resource group for a topic type
1244
- #
1245
- # List all event subscriptions from the given location under a specific Azure
1246
- # subscription and resource group and topic type
1247
- #
1248
- # @param resource_group_name [String] The name of the resource group within the
1249
- # user's subscription.
1250
- # @param location [String] Name of the location
1251
- # @param topic_type_name [String] Name of the topic type
1252
- # @param [Hash{String => String}] A hash of custom headers that will be added
1253
- # to the HTTP request.
1254
- #
1255
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1256
- #
1257
- def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:nil)
1258
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1259
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1260
- fail ArgumentError, 'location is nil' if location.nil?
1261
- fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
1262
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1263
-
1264
-
1265
- request_headers = {}
1266
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1267
-
1268
- # Set Headers
1269
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1270
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1271
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions'
1272
-
1273
- request_url = @base_url || @client.base_url
1274
-
1275
- options = {
1276
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1277
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'location' => location,'topicTypeName' => topic_type_name},
1278
- query_params: {'api-version' => @client.api_version},
1279
- headers: request_headers.merge(custom_headers || {}),
1280
- base_url: request_url
1281
- }
1282
- promise = @client.make_request_async(:get, path_template, options)
1283
-
1284
- promise = promise.then do |result|
1285
- http_response = result.response
1286
- status_code = http_response.status
1287
- response_content = http_response.body
1288
- unless status_code == 200
1289
- error_model = JSON.load(response_content)
1290
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1291
- end
1292
-
1293
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1294
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1295
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1296
- # Deserialize Response
1297
- if status_code == 200
1298
- begin
1299
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1300
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1301
- result.body = @client.deserialize(result_mapper, parsed_response)
1302
- rescue Exception => e
1303
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1304
- end
1305
- end
1306
-
1307
- result
1308
- end
1309
-
1310
- promise.execute
1311
- end
1312
-
1313
- #
1314
- # List all event subscriptions for a specific topic
1315
- #
1316
- # List all event subscriptions that have been created for a specific topic
1317
- #
1318
- # @param resource_group_name [String] The name of the resource group within the
1319
- # user's subscription.
1320
- # @param provider_namespace [String] Namespace of the provider of the topic
1321
- # @param resource_type_name [String] Name of the resource type
1322
- # @param resource_name [String] Name of the resource
1323
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1324
- # will be added to the HTTP request.
1325
- #
1326
- # @return [EventSubscriptionsListResult] operation results.
1327
- #
1328
- def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1329
- response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1330
- response.body unless response.nil?
1331
- end
1332
-
1333
- #
1334
- # List all event subscriptions for a specific topic
1335
- #
1336
- # List all event subscriptions that have been created for a specific topic
1337
- #
1338
- # @param resource_group_name [String] The name of the resource group within the
1339
- # user's subscription.
1340
- # @param provider_namespace [String] Namespace of the provider of the topic
1341
- # @param resource_type_name [String] Name of the resource type
1342
- # @param resource_name [String] Name of the resource
1343
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1344
- # will be added to the HTTP request.
1345
- #
1346
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1347
- #
1348
- def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1349
- list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1350
- end
1351
-
1352
- #
1353
- # List all event subscriptions for a specific topic
1354
- #
1355
- # List all event subscriptions that have been created for a specific topic
1356
- #
1357
- # @param resource_group_name [String] The name of the resource group within the
1358
- # user's subscription.
1359
- # @param provider_namespace [String] Namespace of the provider of the topic
1360
- # @param resource_type_name [String] Name of the resource type
1361
- # @param resource_name [String] Name of the resource
1362
- # @param [Hash{String => String}] A hash of custom headers that will be added
1363
- # to the HTTP request.
1364
- #
1365
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1366
- #
1367
- def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1368
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1369
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1370
- fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
1371
- fail ArgumentError, 'resource_type_name is nil' if resource_type_name.nil?
1372
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1373
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1374
-
1375
-
1376
- request_headers = {}
1377
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1378
-
1379
- # Set Headers
1380
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1381
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1382
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions'
1383
-
1384
- request_url = @base_url || @client.base_url
1385
-
1386
- options = {
1387
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1388
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'providerNamespace' => provider_namespace,'resourceTypeName' => resource_type_name,'resourceName' => resource_name},
1389
- query_params: {'api-version' => @client.api_version},
1390
- headers: request_headers.merge(custom_headers || {}),
1391
- base_url: request_url
1392
- }
1393
- promise = @client.make_request_async(:get, path_template, options)
1394
-
1395
- promise = promise.then do |result|
1396
- http_response = result.response
1397
- status_code = http_response.status
1398
- response_content = http_response.body
1399
- unless status_code == 200
1400
- error_model = JSON.load(response_content)
1401
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1402
- end
1403
-
1404
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1405
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1406
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1407
- # Deserialize Response
1408
- if status_code == 200
1409
- begin
1410
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1411
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1412
- result.body = @client.deserialize(result_mapper, parsed_response)
1413
- rescue Exception => e
1414
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1415
- end
1416
- end
1417
-
1418
- result
1419
- end
1420
-
1421
- promise.execute
1422
- end
1423
-
1424
- #
1425
- # Create an event subscription
1426
- #
1427
- # Asynchronously creates a new event subscription to the specified scope.
1428
- # Existing event subscriptions cannot be updated with this API and should
1429
- # instead use the Update event subscription API.
1430
- #
1431
- # @param scope [String] The scope of the resource to which the event
1432
- # subscription needs to be created. The scope can be a subscription, or a
1433
- # resource group, or a top level resource belonging to a resource provider
1434
- # namespace, or an EventGrid topic. For example, use
1435
- # '/subscriptions/{subscriptionId}/' for a subscription,
1436
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1437
- # resource group, and
1438
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1439
- # for a resource, and
1440
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1441
- # for an EventGrid topic.
1442
- # @param event_subscription_name [String] Name of the event subscription to be
1443
- # created. Event subscription names must be between 3 and 64 characters in
1444
- # length and use alphanumeric letters only.
1445
- # @param event_subscription_info [EventSubscription] Event subscription
1446
- # properties containing the destination and filter information
1447
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1448
- # will be added to the HTTP request.
1449
- #
1450
- # @return [EventSubscription] operation results.
1451
- #
1452
- def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1453
- response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1454
- response.body unless response.nil?
1455
- end
1456
-
1457
- #
1458
- # Create an event subscription
1459
- #
1460
- # Asynchronously creates a new event subscription to the specified scope.
1461
- # Existing event subscriptions cannot be updated with this API and should
1462
- # instead use the Update event subscription API.
1463
- #
1464
- # @param scope [String] The scope of the resource to which the event
1465
- # subscription needs to be created. The scope can be a subscription, or a
1466
- # resource group, or a top level resource belonging to a resource provider
1467
- # namespace, or an EventGrid topic. For example, use
1468
- # '/subscriptions/{subscriptionId}/' for a subscription,
1469
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1470
- # resource group, and
1471
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1472
- # for a resource, and
1473
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1474
- # for an EventGrid topic.
1475
- # @param event_subscription_name [String] Name of the event subscription to be
1476
- # created. Event subscription names must be between 3 and 64 characters in
1477
- # length and use alphanumeric letters only.
1478
- # @param event_subscription_info [EventSubscription] Event subscription
1479
- # properties containing the destination and filter information
1480
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1481
- # will be added to the HTTP request.
1482
- #
1483
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1484
- #
1485
- def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1486
- begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1487
- end
1488
-
1489
- #
1490
- # Create an event subscription
1491
- #
1492
- # Asynchronously creates a new event subscription to the specified scope.
1493
- # Existing event subscriptions cannot be updated with this API and should
1494
- # instead use the Update event subscription API.
1495
- #
1496
- # @param scope [String] The scope of the resource to which the event
1497
- # subscription needs to be created. The scope can be a subscription, or a
1498
- # resource group, or a top level resource belonging to a resource provider
1499
- # namespace, or an EventGrid topic. For example, use
1500
- # '/subscriptions/{subscriptionId}/' for a subscription,
1501
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1502
- # resource group, and
1503
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1504
- # for a resource, and
1505
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1506
- # for an EventGrid topic.
1507
- # @param event_subscription_name [String] Name of the event subscription to be
1508
- # created. Event subscription names must be between 3 and 64 characters in
1509
- # length and use alphanumeric letters only.
1510
- # @param event_subscription_info [EventSubscription] Event subscription
1511
- # properties containing the destination and filter information
1512
- # @param [Hash{String => String}] A hash of custom headers that will be added
1513
- # to the HTTP request.
1514
- #
1515
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1516
- #
1517
- def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1518
- fail ArgumentError, 'scope is nil' if scope.nil?
1519
- fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1520
- fail ArgumentError, 'event_subscription_info is nil' if event_subscription_info.nil?
1521
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1522
-
1523
-
1524
- request_headers = {}
1525
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1526
-
1527
- # Set Headers
1528
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1529
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1530
-
1531
- # Serialize Request
1532
- request_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1533
- request_content = @client.serialize(request_mapper, event_subscription_info)
1534
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1535
-
1536
- path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
1537
-
1538
- request_url = @base_url || @client.base_url
1539
-
1540
- options = {
1541
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1542
- path_params: {'eventSubscriptionName' => event_subscription_name},
1543
- skip_encoding_path_params: {'scope' => scope},
1544
- query_params: {'api-version' => @client.api_version},
1545
- body: request_content,
1546
- headers: request_headers.merge(custom_headers || {}),
1547
- base_url: request_url
1548
- }
1549
- promise = @client.make_request_async(:put, path_template, options)
1550
-
1551
- promise = promise.then do |result|
1552
- http_response = result.response
1553
- status_code = http_response.status
1554
- response_content = http_response.body
1555
- unless status_code == 201
1556
- error_model = JSON.load(response_content)
1557
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1558
- end
1559
-
1560
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1561
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1562
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1563
- # Deserialize Response
1564
- if status_code == 201
1565
- begin
1566
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1567
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1568
- result.body = @client.deserialize(result_mapper, parsed_response)
1569
- rescue Exception => e
1570
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1571
- end
1572
- end
1573
-
1574
- result
1575
- end
1576
-
1577
- promise.execute
1578
- end
1579
-
1580
- #
1581
- # Delete an event subscription
1582
- #
1583
- # Delete an existing event subscription
1584
- #
1585
- # @param scope [String] The scope of the event subscription. The scope can be a
1586
- # subscription, or a resource group, or a top level resource belonging to a
1587
- # resource provider namespace, or an EventGrid topic. For example, use
1588
- # '/subscriptions/{subscriptionId}/' for a subscription,
1589
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1590
- # resource group, and
1591
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1592
- # for a resource, and
1593
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1594
- # for an EventGrid topic.
1595
- # @param event_subscription_name [String] Name of the event subscription
1596
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1597
- # will be added to the HTTP request.
1598
- #
1599
- #
1600
- def begin_delete(scope, event_subscription_name, custom_headers:nil)
1601
- response = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1602
- nil
1603
- end
1604
-
1605
- #
1606
- # Delete an event subscription
1607
- #
1608
- # Delete an existing event subscription
1609
- #
1610
- # @param scope [String] The scope of the event subscription. The scope can be a
1611
- # subscription, or a resource group, or a top level resource belonging to a
1612
- # resource provider namespace, or an EventGrid topic. For example, use
1613
- # '/subscriptions/{subscriptionId}/' for a subscription,
1614
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1615
- # resource group, and
1616
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1617
- # for a resource, and
1618
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1619
- # for an EventGrid topic.
1620
- # @param event_subscription_name [String] Name of the event subscription
1621
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1622
- # will be added to the HTTP request.
1623
- #
1624
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1625
- #
1626
- def begin_delete_with_http_info(scope, event_subscription_name, custom_headers:nil)
1627
- begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1628
- end
1629
-
1630
- #
1631
- # Delete an event subscription
1632
- #
1633
- # Delete an existing event subscription
1634
- #
1635
- # @param scope [String] The scope of the event subscription. The scope can be a
1636
- # subscription, or a resource group, or a top level resource belonging to a
1637
- # resource provider namespace, or an EventGrid topic. For example, use
1638
- # '/subscriptions/{subscriptionId}/' for a subscription,
1639
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1640
- # resource group, and
1641
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1642
- # for a resource, and
1643
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1644
- # for an EventGrid topic.
1645
- # @param event_subscription_name [String] Name of the event subscription
1646
- # @param [Hash{String => String}] A hash of custom headers that will be added
1647
- # to the HTTP request.
1648
- #
1649
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1650
- #
1651
- def begin_delete_async(scope, event_subscription_name, custom_headers:nil)
1652
- fail ArgumentError, 'scope is nil' if scope.nil?
1653
- fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1654
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1655
-
1656
-
1657
- request_headers = {}
1658
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1659
-
1660
- # Set Headers
1661
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1662
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1663
- path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
1664
-
1665
- request_url = @base_url || @client.base_url
1666
-
1667
- options = {
1668
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1669
- path_params: {'eventSubscriptionName' => event_subscription_name},
1670
- skip_encoding_path_params: {'scope' => scope},
1671
- query_params: {'api-version' => @client.api_version},
1672
- headers: request_headers.merge(custom_headers || {}),
1673
- base_url: request_url
1674
- }
1675
- promise = @client.make_request_async(:delete, path_template, options)
1676
-
1677
- promise = promise.then do |result|
1678
- http_response = result.response
1679
- status_code = http_response.status
1680
- response_content = http_response.body
1681
- unless status_code == 200 || status_code == 202 || status_code == 204
1682
- error_model = JSON.load(response_content)
1683
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1684
- end
1685
-
1686
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1687
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1688
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1689
-
1690
- result
1691
- end
1692
-
1693
- promise.execute
1694
- end
1695
-
1696
- #
1697
- # Update an event subscription
1698
- #
1699
- # Asynchronously updates an existing event subscription.
1700
- #
1701
- # @param scope [String] The scope of existing event subscription. The scope can
1702
- # be a subscription, or a resource group, or a top level resource belonging to
1703
- # a resource provider namespace, or an EventGrid topic. For example, use
1704
- # '/subscriptions/{subscriptionId}/' for a subscription,
1705
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1706
- # resource group, and
1707
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1708
- # for a resource, and
1709
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1710
- # for an EventGrid topic.
1711
- # @param event_subscription_name [String] Name of the event subscription to be
1712
- # created
1713
- # @param event_subscription_update_parameters
1714
- # [EventSubscriptionUpdateParameters] Updated event subscription information
1715
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1716
- # will be added to the HTTP request.
1717
- #
1718
- # @return [EventSubscription] operation results.
1719
- #
1720
- def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1721
- response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1722
- response.body unless response.nil?
1723
- end
1724
-
1725
- #
1726
- # Update an event subscription
1727
- #
1728
- # Asynchronously updates an existing event subscription.
1729
- #
1730
- # @param scope [String] The scope of existing event subscription. The scope can
1731
- # be a subscription, or a resource group, or a top level resource belonging to
1732
- # a resource provider namespace, or an EventGrid topic. For example, use
1733
- # '/subscriptions/{subscriptionId}/' for a subscription,
1734
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1735
- # resource group, and
1736
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1737
- # for a resource, and
1738
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1739
- # for an EventGrid topic.
1740
- # @param event_subscription_name [String] Name of the event subscription to be
1741
- # created
1742
- # @param event_subscription_update_parameters
1743
- # [EventSubscriptionUpdateParameters] Updated event subscription information
1744
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1745
- # will be added to the HTTP request.
1746
- #
1747
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1748
- #
1749
- def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1750
- begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1751
- end
1752
-
1753
- #
1754
- # Update an event subscription
1755
- #
1756
- # Asynchronously updates an existing event subscription.
1757
- #
1758
- # @param scope [String] The scope of existing event subscription. The scope can
1759
- # be a subscription, or a resource group, or a top level resource belonging to
1760
- # a resource provider namespace, or an EventGrid topic. For example, use
1761
- # '/subscriptions/{subscriptionId}/' for a subscription,
1762
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1763
- # resource group, and
1764
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1765
- # for a resource, and
1766
- # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1767
- # for an EventGrid topic.
1768
- # @param event_subscription_name [String] Name of the event subscription to be
1769
- # created
1770
- # @param event_subscription_update_parameters
1771
- # [EventSubscriptionUpdateParameters] Updated event subscription information
1772
- # @param [Hash{String => String}] A hash of custom headers that will be added
1773
- # to the HTTP request.
1774
- #
1775
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1776
- #
1777
- def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1778
- fail ArgumentError, 'scope is nil' if scope.nil?
1779
- fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1780
- fail ArgumentError, 'event_subscription_update_parameters is nil' if event_subscription_update_parameters.nil?
1781
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1782
-
1783
-
1784
- request_headers = {}
1785
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1786
-
1787
- # Set Headers
1788
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1789
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1790
-
1791
- # Serialize Request
1792
- request_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionUpdateParameters.mapper()
1793
- request_content = @client.serialize(request_mapper, event_subscription_update_parameters)
1794
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1795
-
1796
- path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
1797
-
1798
- request_url = @base_url || @client.base_url
1799
-
1800
- options = {
1801
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1802
- path_params: {'eventSubscriptionName' => event_subscription_name},
1803
- skip_encoding_path_params: {'scope' => scope},
1804
- query_params: {'api-version' => @client.api_version},
1805
- body: request_content,
1806
- headers: request_headers.merge(custom_headers || {}),
1807
- base_url: request_url
1808
- }
1809
- promise = @client.make_request_async(:patch, path_template, options)
1810
-
1811
- promise = promise.then do |result|
1812
- http_response = result.response
1813
- status_code = http_response.status
1814
- response_content = http_response.body
1815
- unless status_code == 201
1816
- error_model = JSON.load(response_content)
1817
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1818
- end
1819
-
1820
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1821
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1822
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1823
- # Deserialize Response
1824
- if status_code == 201
1825
- begin
1826
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1827
- result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1828
- result.body = @client.deserialize(result_mapper, parsed_response)
1829
- rescue Exception => e
1830
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1831
- end
1832
- end
1833
-
1834
- result
1835
- end
1836
-
1837
- promise.execute
1838
- end
1839
-
1840
- end
1841
- end
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
+ #
8
+ # Azure EventGrid Management Client
9
+ #
10
+ class EventSubscriptions
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the EventSubscriptions class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [EventGridManagementClient] reference to the EventGridManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get an event subscription
26
+ #
27
+ # Get properties of an event subscription
28
+ #
29
+ # @param scope [String] The scope of the event subscription. The scope can be a
30
+ # subscription, or a resource group, or a top level resource belonging to a
31
+ # resource provider namespace, or an EventGrid topic. For example, use
32
+ # '/subscriptions/{subscriptionId}/' for a subscription,
33
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
34
+ # resource group, and
35
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
36
+ # for a resource, and
37
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
38
+ # for an EventGrid topic.
39
+ # @param event_subscription_name [String] Name of the event subscription
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [EventSubscription] operation results.
44
+ #
45
+ def get(scope, event_subscription_name, custom_headers:nil)
46
+ response = get_async(scope, event_subscription_name, custom_headers:custom_headers).value!
47
+ response.body unless response.nil?
48
+ end
49
+
50
+ #
51
+ # Get an event subscription
52
+ #
53
+ # Get properties of an event subscription
54
+ #
55
+ # @param scope [String] The scope of the event subscription. The scope can be a
56
+ # subscription, or a resource group, or a top level resource belonging to a
57
+ # resource provider namespace, or an EventGrid topic. For example, use
58
+ # '/subscriptions/{subscriptionId}/' for a subscription,
59
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
60
+ # resource group, and
61
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
62
+ # for a resource, and
63
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
64
+ # for an EventGrid topic.
65
+ # @param event_subscription_name [String] Name of the event subscription
66
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
67
+ # will be added to the HTTP request.
68
+ #
69
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
70
+ #
71
+ def get_with_http_info(scope, event_subscription_name, custom_headers:nil)
72
+ get_async(scope, event_subscription_name, custom_headers:custom_headers).value!
73
+ end
74
+
75
+ #
76
+ # Get an event subscription
77
+ #
78
+ # Get properties of an event subscription
79
+ #
80
+ # @param scope [String] The scope of the event subscription. The scope can be a
81
+ # subscription, or a resource group, or a top level resource belonging to a
82
+ # resource provider namespace, or an EventGrid topic. For example, use
83
+ # '/subscriptions/{subscriptionId}/' for a subscription,
84
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
85
+ # resource group, and
86
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
87
+ # for a resource, and
88
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
89
+ # for an EventGrid topic.
90
+ # @param event_subscription_name [String] Name of the event subscription
91
+ # @param [Hash{String => String}] A hash of custom headers that will be added
92
+ # to the HTTP request.
93
+ #
94
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
95
+ #
96
+ def get_async(scope, event_subscription_name, custom_headers:nil)
97
+ fail ArgumentError, 'scope is nil' if scope.nil?
98
+ fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
99
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
100
+
101
+
102
+ request_headers = {}
103
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
104
+
105
+ # Set Headers
106
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
107
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
108
+ path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
109
+
110
+ request_url = @base_url || @client.base_url
111
+
112
+ options = {
113
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
114
+ path_params: {'eventSubscriptionName' => event_subscription_name},
115
+ skip_encoding_path_params: {'scope' => scope},
116
+ query_params: {'api-version' => @client.api_version},
117
+ headers: request_headers.merge(custom_headers || {}),
118
+ base_url: request_url
119
+ }
120
+ promise = @client.make_request_async(:get, path_template, options)
121
+
122
+ promise = promise.then do |result|
123
+ http_response = result.response
124
+ status_code = http_response.status
125
+ response_content = http_response.body
126
+ unless status_code == 200
127
+ error_model = JSON.load(response_content)
128
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
129
+ end
130
+
131
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
132
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
133
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
134
+ # Deserialize Response
135
+ if status_code == 200
136
+ begin
137
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
138
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
139
+ result.body = @client.deserialize(result_mapper, parsed_response)
140
+ rescue Exception => e
141
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
142
+ end
143
+ end
144
+
145
+ result
146
+ end
147
+
148
+ promise.execute
149
+ end
150
+
151
+ #
152
+ # Create an event subscription
153
+ #
154
+ # Asynchronously creates a new event subscription to the specified scope.
155
+ # Existing event subscriptions cannot be updated with this API and should
156
+ # instead use the Update event subscription API.
157
+ #
158
+ # @param scope [String] The scope of the resource to which the event
159
+ # subscription needs to be created. The scope can be a subscription, or a
160
+ # resource group, or a top level resource belonging to a resource provider
161
+ # namespace, or an EventGrid topic. For example, use
162
+ # '/subscriptions/{subscriptionId}/' for a subscription,
163
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
164
+ # resource group, and
165
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
166
+ # for a resource, and
167
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
168
+ # for an EventGrid topic.
169
+ # @param event_subscription_name [String] Name of the event subscription to be
170
+ # created. Event subscription names must be between 3 and 64 characters in
171
+ # length and use alphanumeric letters only.
172
+ # @param event_subscription_info [EventSubscription] Event subscription
173
+ # properties containing the destination and filter information
174
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
175
+ # will be added to the HTTP request.
176
+ #
177
+ # @return [EventSubscription] operation results.
178
+ #
179
+ def create(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
180
+ response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
181
+ response.body unless response.nil?
182
+ end
183
+
184
+ #
185
+ # @param scope [String] The scope of the resource to which the event
186
+ # subscription needs to be created. The scope can be a subscription, or a
187
+ # resource group, or a top level resource belonging to a resource provider
188
+ # namespace, or an EventGrid topic. For example, use
189
+ # '/subscriptions/{subscriptionId}/' for a subscription,
190
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
191
+ # resource group, and
192
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
193
+ # for a resource, and
194
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
195
+ # for an EventGrid topic.
196
+ # @param event_subscription_name [String] Name of the event subscription to be
197
+ # created. Event subscription names must be between 3 and 64 characters in
198
+ # length and use alphanumeric letters only.
199
+ # @param event_subscription_info [EventSubscription] Event subscription
200
+ # properties containing the destination and filter information
201
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
202
+ # will be added to the HTTP request.
203
+ #
204
+ # @return [Concurrent::Promise] promise which provides async access to http
205
+ # response.
206
+ #
207
+ def create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
208
+ # Send request
209
+ promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers)
210
+
211
+ promise = promise.then do |response|
212
+ # Defining deserialization method.
213
+ deserialize_method = lambda do |parsed_response|
214
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
215
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
216
+ end
217
+
218
+ # Waiting for response.
219
+ @client.get_long_running_operation_result(response, deserialize_method)
220
+ end
221
+
222
+ promise
223
+ end
224
+
225
+ #
226
+ # Delete an event subscription
227
+ #
228
+ # Delete an existing event subscription
229
+ #
230
+ # @param scope [String] The scope of the event subscription. The scope can be a
231
+ # subscription, or a resource group, or a top level resource belonging to a
232
+ # resource provider namespace, or an EventGrid topic. For example, use
233
+ # '/subscriptions/{subscriptionId}/' for a subscription,
234
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
235
+ # resource group, and
236
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
237
+ # for a resource, and
238
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
239
+ # for an EventGrid topic.
240
+ # @param event_subscription_name [String] Name of the event subscription
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ def delete(scope, event_subscription_name, custom_headers:nil)
245
+ response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
246
+ nil
247
+ end
248
+
249
+ #
250
+ # @param scope [String] The scope of the event subscription. The scope can be a
251
+ # subscription, or a resource group, or a top level resource belonging to a
252
+ # resource provider namespace, or an EventGrid topic. For example, use
253
+ # '/subscriptions/{subscriptionId}/' for a subscription,
254
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
255
+ # resource group, and
256
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
257
+ # for a resource, and
258
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
259
+ # for an EventGrid topic.
260
+ # @param event_subscription_name [String] Name of the event subscription
261
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
262
+ # will be added to the HTTP request.
263
+ #
264
+ # @return [Concurrent::Promise] promise which provides async access to http
265
+ # response.
266
+ #
267
+ def delete_async(scope, event_subscription_name, custom_headers:nil)
268
+ # Send request
269
+ promise = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers)
270
+
271
+ promise = promise.then do |response|
272
+ # Defining deserialization method.
273
+ deserialize_method = lambda do |parsed_response|
274
+ end
275
+
276
+ # Waiting for response.
277
+ @client.get_long_running_operation_result(response, deserialize_method)
278
+ end
279
+
280
+ promise
281
+ end
282
+
283
+ #
284
+ # Update an event subscription
285
+ #
286
+ # Asynchronously updates an existing event subscription.
287
+ #
288
+ # @param scope [String] The scope of existing event subscription. The scope can
289
+ # be a subscription, or a resource group, or a top level resource belonging to
290
+ # a resource provider namespace, or an EventGrid topic. For example, use
291
+ # '/subscriptions/{subscriptionId}/' for a subscription,
292
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
293
+ # resource group, and
294
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
295
+ # for a resource, and
296
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
297
+ # for an EventGrid topic.
298
+ # @param event_subscription_name [String] Name of the event subscription to be
299
+ # created
300
+ # @param event_subscription_update_parameters
301
+ # [EventSubscriptionUpdateParameters] Updated event subscription information
302
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
303
+ # will be added to the HTTP request.
304
+ #
305
+ # @return [EventSubscription] operation results.
306
+ #
307
+ def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
308
+ response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
309
+ response.body unless response.nil?
310
+ end
311
+
312
+ #
313
+ # @param scope [String] The scope of existing event subscription. The scope can
314
+ # be a subscription, or a resource group, or a top level resource belonging to
315
+ # a resource provider namespace, or an EventGrid topic. For example, use
316
+ # '/subscriptions/{subscriptionId}/' for a subscription,
317
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
318
+ # resource group, and
319
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
320
+ # for a resource, and
321
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
322
+ # for an EventGrid topic.
323
+ # @param event_subscription_name [String] Name of the event subscription to be
324
+ # created
325
+ # @param event_subscription_update_parameters
326
+ # [EventSubscriptionUpdateParameters] Updated event subscription information
327
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
328
+ # will be added to the HTTP request.
329
+ #
330
+ # @return [Concurrent::Promise] promise which provides async access to http
331
+ # response.
332
+ #
333
+ def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
334
+ # Send request
335
+ promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers)
336
+
337
+ promise = promise.then do |response|
338
+ # Defining deserialization method.
339
+ deserialize_method = lambda do |parsed_response|
340
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
341
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
342
+ end
343
+
344
+ # Waiting for response.
345
+ @client.get_long_running_operation_result(response, deserialize_method)
346
+ end
347
+
348
+ promise
349
+ end
350
+
351
+ #
352
+ # Get full URL of an event subscription
353
+ #
354
+ # Get the full endpoint URL for an event subscription
355
+ #
356
+ # @param scope [String] The scope of the event subscription. The scope can be a
357
+ # subscription, or a resource group, or a top level resource belonging to a
358
+ # resource provider namespace, or an EventGrid topic. For example, use
359
+ # '/subscriptions/{subscriptionId}/' for a subscription,
360
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
361
+ # resource group, and
362
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
363
+ # for a resource, and
364
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
365
+ # for an EventGrid topic.
366
+ # @param event_subscription_name [String] Name of the event subscription
367
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
368
+ # will be added to the HTTP request.
369
+ #
370
+ # @return [EventSubscriptionFullUrl] operation results.
371
+ #
372
+ def get_full_url(scope, event_subscription_name, custom_headers:nil)
373
+ response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
374
+ response.body unless response.nil?
375
+ end
376
+
377
+ #
378
+ # Get full URL of an event subscription
379
+ #
380
+ # Get the full endpoint URL for an event subscription
381
+ #
382
+ # @param scope [String] The scope of the event subscription. The scope can be a
383
+ # subscription, or a resource group, or a top level resource belonging to a
384
+ # resource provider namespace, or an EventGrid topic. For example, use
385
+ # '/subscriptions/{subscriptionId}/' for a subscription,
386
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
387
+ # resource group, and
388
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
389
+ # for a resource, and
390
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
391
+ # for an EventGrid topic.
392
+ # @param event_subscription_name [String] Name of the event subscription
393
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
394
+ # will be added to the HTTP request.
395
+ #
396
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
397
+ #
398
+ def get_full_url_with_http_info(scope, event_subscription_name, custom_headers:nil)
399
+ get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value!
400
+ end
401
+
402
+ #
403
+ # Get full URL of an event subscription
404
+ #
405
+ # Get the full endpoint URL for an event subscription
406
+ #
407
+ # @param scope [String] The scope of the event subscription. The scope can be a
408
+ # subscription, or a resource group, or a top level resource belonging to a
409
+ # resource provider namespace, or an EventGrid topic. For example, use
410
+ # '/subscriptions/{subscriptionId}/' for a subscription,
411
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
412
+ # resource group, and
413
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
414
+ # for a resource, and
415
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
416
+ # for an EventGrid topic.
417
+ # @param event_subscription_name [String] Name of the event subscription
418
+ # @param [Hash{String => String}] A hash of custom headers that will be added
419
+ # to the HTTP request.
420
+ #
421
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
422
+ #
423
+ def get_full_url_async(scope, event_subscription_name, custom_headers:nil)
424
+ fail ArgumentError, 'scope is nil' if scope.nil?
425
+ fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
426
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
427
+
428
+
429
+ request_headers = {}
430
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
431
+
432
+ # Set Headers
433
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
434
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
435
+ path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl'
436
+
437
+ request_url = @base_url || @client.base_url
438
+
439
+ options = {
440
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
441
+ path_params: {'eventSubscriptionName' => event_subscription_name},
442
+ skip_encoding_path_params: {'scope' => scope},
443
+ query_params: {'api-version' => @client.api_version},
444
+ headers: request_headers.merge(custom_headers || {}),
445
+ base_url: request_url
446
+ }
447
+ promise = @client.make_request_async(:post, path_template, options)
448
+
449
+ promise = promise.then do |result|
450
+ http_response = result.response
451
+ status_code = http_response.status
452
+ response_content = http_response.body
453
+ unless status_code == 200
454
+ error_model = JSON.load(response_content)
455
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
456
+ end
457
+
458
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
459
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
460
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
461
+ # Deserialize Response
462
+ if status_code == 200
463
+ begin
464
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
465
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionFullUrl.mapper()
466
+ result.body = @client.deserialize(result_mapper, parsed_response)
467
+ rescue Exception => e
468
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
469
+ end
470
+ end
471
+
472
+ result
473
+ end
474
+
475
+ promise.execute
476
+ end
477
+
478
+ #
479
+ # Get an aggregated list of all global event subscriptions under an Azure
480
+ # subscription
481
+ #
482
+ # List all aggregated global event subscriptions under a specific Azure
483
+ # subscription
484
+ #
485
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
486
+ # will be added to the HTTP request.
487
+ #
488
+ # @return [EventSubscriptionsListResult] operation results.
489
+ #
490
+ def list_global_by_subscription(custom_headers:nil)
491
+ response = list_global_by_subscription_async(custom_headers:custom_headers).value!
492
+ response.body unless response.nil?
493
+ end
494
+
495
+ #
496
+ # Get an aggregated list of all global event subscriptions under an Azure
497
+ # subscription
498
+ #
499
+ # List all aggregated global event subscriptions under a specific Azure
500
+ # subscription
501
+ #
502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
+ # will be added to the HTTP request.
504
+ #
505
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
506
+ #
507
+ def list_global_by_subscription_with_http_info(custom_headers:nil)
508
+ list_global_by_subscription_async(custom_headers:custom_headers).value!
509
+ end
510
+
511
+ #
512
+ # Get an aggregated list of all global event subscriptions under an Azure
513
+ # subscription
514
+ #
515
+ # List all aggregated global event subscriptions under a specific Azure
516
+ # subscription
517
+ #
518
+ # @param [Hash{String => String}] A hash of custom headers that will be added
519
+ # to the HTTP request.
520
+ #
521
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
522
+ #
523
+ def list_global_by_subscription_async(custom_headers:nil)
524
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
525
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
526
+
527
+
528
+ request_headers = {}
529
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
530
+
531
+ # Set Headers
532
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
533
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
534
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions'
535
+
536
+ request_url = @base_url || @client.base_url
537
+
538
+ options = {
539
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
540
+ path_params: {'subscriptionId' => @client.subscription_id},
541
+ query_params: {'api-version' => @client.api_version},
542
+ headers: request_headers.merge(custom_headers || {}),
543
+ base_url: request_url
544
+ }
545
+ promise = @client.make_request_async(:get, path_template, options)
546
+
547
+ promise = promise.then do |result|
548
+ http_response = result.response
549
+ status_code = http_response.status
550
+ response_content = http_response.body
551
+ unless status_code == 200
552
+ error_model = JSON.load(response_content)
553
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
554
+ end
555
+
556
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
557
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
558
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
559
+ # Deserialize Response
560
+ if status_code == 200
561
+ begin
562
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
563
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
564
+ result.body = @client.deserialize(result_mapper, parsed_response)
565
+ rescue Exception => e
566
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
567
+ end
568
+ end
569
+
570
+ result
571
+ end
572
+
573
+ promise.execute
574
+ end
575
+
576
+ #
577
+ # List all global event subscriptions for a topic type
578
+ #
579
+ # List all global event subscriptions under an Azure subscription for a topic
580
+ # type.
581
+ #
582
+ # @param topic_type_name [String] Name of the topic type
583
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
+ # will be added to the HTTP request.
585
+ #
586
+ # @return [EventSubscriptionsListResult] operation results.
587
+ #
588
+ def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers:nil)
589
+ response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
590
+ response.body unless response.nil?
591
+ end
592
+
593
+ #
594
+ # List all global event subscriptions for a topic type
595
+ #
596
+ # List all global event subscriptions under an Azure subscription for a topic
597
+ # type.
598
+ #
599
+ # @param topic_type_name [String] Name of the topic type
600
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
601
+ # will be added to the HTTP request.
602
+ #
603
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
604
+ #
605
+ def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers:nil)
606
+ list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value!
607
+ end
608
+
609
+ #
610
+ # List all global event subscriptions for a topic type
611
+ #
612
+ # List all global event subscriptions under an Azure subscription for a topic
613
+ # type.
614
+ #
615
+ # @param topic_type_name [String] Name of the topic type
616
+ # @param [Hash{String => String}] A hash of custom headers that will be added
617
+ # to the HTTP request.
618
+ #
619
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
620
+ #
621
+ def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:nil)
622
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
623
+ fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
624
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
625
+
626
+
627
+ request_headers = {}
628
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
629
+
630
+ # Set Headers
631
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
632
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
633
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions'
634
+
635
+ request_url = @base_url || @client.base_url
636
+
637
+ options = {
638
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
639
+ path_params: {'subscriptionId' => @client.subscription_id,'topicTypeName' => topic_type_name},
640
+ query_params: {'api-version' => @client.api_version},
641
+ headers: request_headers.merge(custom_headers || {}),
642
+ base_url: request_url
643
+ }
644
+ promise = @client.make_request_async(:get, path_template, options)
645
+
646
+ promise = promise.then do |result|
647
+ http_response = result.response
648
+ status_code = http_response.status
649
+ response_content = http_response.body
650
+ unless status_code == 200
651
+ error_model = JSON.load(response_content)
652
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
653
+ end
654
+
655
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
656
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
657
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
658
+ # Deserialize Response
659
+ if status_code == 200
660
+ begin
661
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
662
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
663
+ result.body = @client.deserialize(result_mapper, parsed_response)
664
+ rescue Exception => e
665
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
666
+ end
667
+ end
668
+
669
+ result
670
+ end
671
+
672
+ promise.execute
673
+ end
674
+
675
+ #
676
+ # List all global event subscriptions under an Azure subscription and resource
677
+ # group
678
+ #
679
+ # List all global event subscriptions under a specific Azure subscription and
680
+ # resource group
681
+ #
682
+ # @param resource_group_name [String] The name of the resource group within the
683
+ # user's subscription.
684
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
685
+ # will be added to the HTTP request.
686
+ #
687
+ # @return [EventSubscriptionsListResult] operation results.
688
+ #
689
+ def list_global_by_resource_group(resource_group_name, custom_headers:nil)
690
+ response = list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
691
+ response.body unless response.nil?
692
+ end
693
+
694
+ #
695
+ # List all global event subscriptions under an Azure subscription and resource
696
+ # group
697
+ #
698
+ # List all global event subscriptions under a specific Azure subscription and
699
+ # resource group
700
+ #
701
+ # @param resource_group_name [String] The name of the resource group within the
702
+ # user's subscription.
703
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
704
+ # will be added to the HTTP request.
705
+ #
706
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
707
+ #
708
+ def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
709
+ list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
710
+ end
711
+
712
+ #
713
+ # List all global event subscriptions under an Azure subscription and resource
714
+ # group
715
+ #
716
+ # List all global event subscriptions under a specific Azure subscription and
717
+ # resource group
718
+ #
719
+ # @param resource_group_name [String] The name of the resource group within the
720
+ # user's subscription.
721
+ # @param [Hash{String => String}] A hash of custom headers that will be added
722
+ # to the HTTP request.
723
+ #
724
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
725
+ #
726
+ def list_global_by_resource_group_async(resource_group_name, custom_headers:nil)
727
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
728
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
729
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
730
+
731
+
732
+ request_headers = {}
733
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
734
+
735
+ # Set Headers
736
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
737
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
738
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions'
739
+
740
+ request_url = @base_url || @client.base_url
741
+
742
+ options = {
743
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
744
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
745
+ query_params: {'api-version' => @client.api_version},
746
+ headers: request_headers.merge(custom_headers || {}),
747
+ base_url: request_url
748
+ }
749
+ promise = @client.make_request_async(:get, path_template, options)
750
+
751
+ promise = promise.then do |result|
752
+ http_response = result.response
753
+ status_code = http_response.status
754
+ response_content = http_response.body
755
+ unless status_code == 200
756
+ error_model = JSON.load(response_content)
757
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
758
+ end
759
+
760
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
761
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
762
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
763
+ # Deserialize Response
764
+ if status_code == 200
765
+ begin
766
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
767
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
768
+ result.body = @client.deserialize(result_mapper, parsed_response)
769
+ rescue Exception => e
770
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
771
+ end
772
+ end
773
+
774
+ result
775
+ end
776
+
777
+ promise.execute
778
+ end
779
+
780
+ #
781
+ # List all global event subscriptions under a resource group for a topic type
782
+ #
783
+ # List all global event subscriptions under a resource group for a specific
784
+ # topic type.
785
+ #
786
+ # @param resource_group_name [String] The name of the resource group within the
787
+ # user's subscription.
788
+ # @param topic_type_name [String] Name of the topic type
789
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
790
+ # will be added to the HTTP request.
791
+ #
792
+ # @return [EventSubscriptionsListResult] operation results.
793
+ #
794
+ def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers:nil)
795
+ response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
796
+ response.body unless response.nil?
797
+ end
798
+
799
+ #
800
+ # List all global event subscriptions under a resource group for a topic type
801
+ #
802
+ # List all global event subscriptions under a resource group for a specific
803
+ # topic type.
804
+ #
805
+ # @param resource_group_name [String] The name of the resource group within the
806
+ # user's subscription.
807
+ # @param topic_type_name [String] Name of the topic type
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
+ #
813
+ def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers:nil)
814
+ list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value!
815
+ end
816
+
817
+ #
818
+ # List all global event subscriptions under a resource group for a topic type
819
+ #
820
+ # List all global event subscriptions under a resource group for a specific
821
+ # topic type.
822
+ #
823
+ # @param resource_group_name [String] The name of the resource group within the
824
+ # user's subscription.
825
+ # @param topic_type_name [String] Name of the topic type
826
+ # @param [Hash{String => String}] A hash of custom headers that will be added
827
+ # to the HTTP request.
828
+ #
829
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
830
+ #
831
+ def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:nil)
832
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
833
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
834
+ fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
835
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
836
+
837
+
838
+ request_headers = {}
839
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
840
+
841
+ # Set Headers
842
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
843
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
844
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions'
845
+
846
+ request_url = @base_url || @client.base_url
847
+
848
+ options = {
849
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
850
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicTypeName' => topic_type_name},
851
+ query_params: {'api-version' => @client.api_version},
852
+ headers: request_headers.merge(custom_headers || {}),
853
+ base_url: request_url
854
+ }
855
+ promise = @client.make_request_async(:get, path_template, options)
856
+
857
+ promise = promise.then do |result|
858
+ http_response = result.response
859
+ status_code = http_response.status
860
+ response_content = http_response.body
861
+ unless status_code == 200
862
+ error_model = JSON.load(response_content)
863
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
864
+ end
865
+
866
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
867
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
868
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
869
+ # Deserialize Response
870
+ if status_code == 200
871
+ begin
872
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
873
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
874
+ result.body = @client.deserialize(result_mapper, parsed_response)
875
+ rescue Exception => e
876
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
877
+ end
878
+ end
879
+
880
+ result
881
+ end
882
+
883
+ promise.execute
884
+ end
885
+
886
+ #
887
+ # List all regional event subscriptions under an Azure subscription
888
+ #
889
+ # List all event subscriptions from the given location under a specific Azure
890
+ # subscription
891
+ #
892
+ # @param location [String] Name of the location
893
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
894
+ # will be added to the HTTP request.
895
+ #
896
+ # @return [EventSubscriptionsListResult] operation results.
897
+ #
898
+ def list_regional_by_subscription(location, custom_headers:nil)
899
+ response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
900
+ response.body unless response.nil?
901
+ end
902
+
903
+ #
904
+ # List all regional event subscriptions under an Azure subscription
905
+ #
906
+ # List all event subscriptions from the given location under a specific Azure
907
+ # subscription
908
+ #
909
+ # @param location [String] Name of the location
910
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
911
+ # will be added to the HTTP request.
912
+ #
913
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
914
+ #
915
+ def list_regional_by_subscription_with_http_info(location, custom_headers:nil)
916
+ list_regional_by_subscription_async(location, custom_headers:custom_headers).value!
917
+ end
918
+
919
+ #
920
+ # List all regional event subscriptions under an Azure subscription
921
+ #
922
+ # List all event subscriptions from the given location under a specific Azure
923
+ # subscription
924
+ #
925
+ # @param location [String] Name of the location
926
+ # @param [Hash{String => String}] A hash of custom headers that will be added
927
+ # to the HTTP request.
928
+ #
929
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
930
+ #
931
+ def list_regional_by_subscription_async(location, custom_headers:nil)
932
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
933
+ fail ArgumentError, 'location is nil' if location.nil?
934
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
935
+
936
+
937
+ request_headers = {}
938
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
939
+
940
+ # Set Headers
941
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
942
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
943
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions'
944
+
945
+ request_url = @base_url || @client.base_url
946
+
947
+ options = {
948
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
949
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
950
+ query_params: {'api-version' => @client.api_version},
951
+ headers: request_headers.merge(custom_headers || {}),
952
+ base_url: request_url
953
+ }
954
+ promise = @client.make_request_async(:get, path_template, options)
955
+
956
+ promise = promise.then do |result|
957
+ http_response = result.response
958
+ status_code = http_response.status
959
+ response_content = http_response.body
960
+ unless status_code == 200
961
+ error_model = JSON.load(response_content)
962
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
963
+ end
964
+
965
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
966
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
967
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
968
+ # Deserialize Response
969
+ if status_code == 200
970
+ begin
971
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
972
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
973
+ result.body = @client.deserialize(result_mapper, parsed_response)
974
+ rescue Exception => e
975
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
976
+ end
977
+ end
978
+
979
+ result
980
+ end
981
+
982
+ promise.execute
983
+ end
984
+
985
+ #
986
+ # List all regional event subscriptions under an Azure subscription and
987
+ # resource group
988
+ #
989
+ # List all event subscriptions from the given location under a specific Azure
990
+ # subscription and resource group
991
+ #
992
+ # @param resource_group_name [String] The name of the resource group within the
993
+ # user's subscription.
994
+ # @param location [String] Name of the location
995
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
996
+ # will be added to the HTTP request.
997
+ #
998
+ # @return [EventSubscriptionsListResult] operation results.
999
+ #
1000
+ def list_regional_by_resource_group(resource_group_name, location, custom_headers:nil)
1001
+ response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
1002
+ response.body unless response.nil?
1003
+ end
1004
+
1005
+ #
1006
+ # List all regional event subscriptions under an Azure subscription and
1007
+ # resource group
1008
+ #
1009
+ # List all event subscriptions from the given location under a specific Azure
1010
+ # subscription and resource group
1011
+ #
1012
+ # @param resource_group_name [String] The name of the resource group within the
1013
+ # user's subscription.
1014
+ # @param location [String] Name of the location
1015
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1016
+ # will be added to the HTTP request.
1017
+ #
1018
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1019
+ #
1020
+ def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers:nil)
1021
+ list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value!
1022
+ end
1023
+
1024
+ #
1025
+ # List all regional event subscriptions under an Azure subscription and
1026
+ # resource group
1027
+ #
1028
+ # List all event subscriptions from the given location under a specific Azure
1029
+ # subscription and resource group
1030
+ #
1031
+ # @param resource_group_name [String] The name of the resource group within the
1032
+ # user's subscription.
1033
+ # @param location [String] Name of the location
1034
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1035
+ # to the HTTP request.
1036
+ #
1037
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1038
+ #
1039
+ def list_regional_by_resource_group_async(resource_group_name, location, custom_headers:nil)
1040
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1041
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1042
+ fail ArgumentError, 'location is nil' if location.nil?
1043
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1044
+
1045
+
1046
+ request_headers = {}
1047
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1048
+
1049
+ # Set Headers
1050
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1051
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1052
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions'
1053
+
1054
+ request_url = @base_url || @client.base_url
1055
+
1056
+ options = {
1057
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1058
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'location' => location},
1059
+ query_params: {'api-version' => @client.api_version},
1060
+ headers: request_headers.merge(custom_headers || {}),
1061
+ base_url: request_url
1062
+ }
1063
+ promise = @client.make_request_async(:get, path_template, options)
1064
+
1065
+ promise = promise.then do |result|
1066
+ http_response = result.response
1067
+ status_code = http_response.status
1068
+ response_content = http_response.body
1069
+ unless status_code == 200
1070
+ error_model = JSON.load(response_content)
1071
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1072
+ end
1073
+
1074
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1075
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1076
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1077
+ # Deserialize Response
1078
+ if status_code == 200
1079
+ begin
1080
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1081
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1082
+ result.body = @client.deserialize(result_mapper, parsed_response)
1083
+ rescue Exception => e
1084
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1085
+ end
1086
+ end
1087
+
1088
+ result
1089
+ end
1090
+
1091
+ promise.execute
1092
+ end
1093
+
1094
+ #
1095
+ # List all regional event subscriptions under an Azure subscription for a topic
1096
+ # type
1097
+ #
1098
+ # List all event subscriptions from the given location under a specific Azure
1099
+ # subscription and topic type.
1100
+ #
1101
+ # @param location [String] Name of the location
1102
+ # @param topic_type_name [String] Name of the topic type
1103
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1104
+ # will be added to the HTTP request.
1105
+ #
1106
+ # @return [EventSubscriptionsListResult] operation results.
1107
+ #
1108
+ def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers:nil)
1109
+ response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1110
+ response.body unless response.nil?
1111
+ end
1112
+
1113
+ #
1114
+ # List all regional event subscriptions under an Azure subscription for a topic
1115
+ # type
1116
+ #
1117
+ # List all event subscriptions from the given location under a specific Azure
1118
+ # subscription and topic type.
1119
+ #
1120
+ # @param location [String] Name of the location
1121
+ # @param topic_type_name [String] Name of the topic type
1122
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1123
+ # will be added to the HTTP request.
1124
+ #
1125
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1126
+ #
1127
+ def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers:nil)
1128
+ list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value!
1129
+ end
1130
+
1131
+ #
1132
+ # List all regional event subscriptions under an Azure subscription for a topic
1133
+ # type
1134
+ #
1135
+ # List all event subscriptions from the given location under a specific Azure
1136
+ # subscription and topic type.
1137
+ #
1138
+ # @param location [String] Name of the location
1139
+ # @param topic_type_name [String] Name of the topic type
1140
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1141
+ # to the HTTP request.
1142
+ #
1143
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1144
+ #
1145
+ def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:nil)
1146
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1147
+ fail ArgumentError, 'location is nil' if location.nil?
1148
+ fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
1149
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1150
+
1151
+
1152
+ request_headers = {}
1153
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1154
+
1155
+ # Set Headers
1156
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1157
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1158
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions'
1159
+
1160
+ request_url = @base_url || @client.base_url
1161
+
1162
+ options = {
1163
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1164
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location,'topicTypeName' => topic_type_name},
1165
+ query_params: {'api-version' => @client.api_version},
1166
+ headers: request_headers.merge(custom_headers || {}),
1167
+ base_url: request_url
1168
+ }
1169
+ promise = @client.make_request_async(:get, path_template, options)
1170
+
1171
+ promise = promise.then do |result|
1172
+ http_response = result.response
1173
+ status_code = http_response.status
1174
+ response_content = http_response.body
1175
+ unless status_code == 200
1176
+ error_model = JSON.load(response_content)
1177
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1178
+ end
1179
+
1180
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1181
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1182
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1183
+ # Deserialize Response
1184
+ if status_code == 200
1185
+ begin
1186
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1187
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1188
+ result.body = @client.deserialize(result_mapper, parsed_response)
1189
+ rescue Exception => e
1190
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1191
+ end
1192
+ end
1193
+
1194
+ result
1195
+ end
1196
+
1197
+ promise.execute
1198
+ end
1199
+
1200
+ #
1201
+ # List all regional event subscriptions under an Azure subscription and
1202
+ # resource group for a topic type
1203
+ #
1204
+ # List all event subscriptions from the given location under a specific Azure
1205
+ # subscription and resource group and topic type
1206
+ #
1207
+ # @param resource_group_name [String] The name of the resource group within the
1208
+ # user's subscription.
1209
+ # @param location [String] Name of the location
1210
+ # @param topic_type_name [String] Name of the topic type
1211
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1212
+ # will be added to the HTTP request.
1213
+ #
1214
+ # @return [EventSubscriptionsListResult] operation results.
1215
+ #
1216
+ def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers:nil)
1217
+ response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1218
+ response.body unless response.nil?
1219
+ end
1220
+
1221
+ #
1222
+ # List all regional event subscriptions under an Azure subscription and
1223
+ # resource group for a topic type
1224
+ #
1225
+ # List all event subscriptions from the given location under a specific Azure
1226
+ # subscription and resource group and topic type
1227
+ #
1228
+ # @param resource_group_name [String] The name of the resource group within the
1229
+ # user's subscription.
1230
+ # @param location [String] Name of the location
1231
+ # @param topic_type_name [String] Name of the topic type
1232
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1233
+ # will be added to the HTTP request.
1234
+ #
1235
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1236
+ #
1237
+ def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers:nil)
1238
+ list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value!
1239
+ end
1240
+
1241
+ #
1242
+ # List all regional event subscriptions under an Azure subscription and
1243
+ # resource group for a topic type
1244
+ #
1245
+ # List all event subscriptions from the given location under a specific Azure
1246
+ # subscription and resource group and topic type
1247
+ #
1248
+ # @param resource_group_name [String] The name of the resource group within the
1249
+ # user's subscription.
1250
+ # @param location [String] Name of the location
1251
+ # @param topic_type_name [String] Name of the topic type
1252
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1253
+ # to the HTTP request.
1254
+ #
1255
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1256
+ #
1257
+ def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:nil)
1258
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1259
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1260
+ fail ArgumentError, 'location is nil' if location.nil?
1261
+ fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil?
1262
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1263
+
1264
+
1265
+ request_headers = {}
1266
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1267
+
1268
+ # Set Headers
1269
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1270
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1271
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions'
1272
+
1273
+ request_url = @base_url || @client.base_url
1274
+
1275
+ options = {
1276
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1277
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'location' => location,'topicTypeName' => topic_type_name},
1278
+ query_params: {'api-version' => @client.api_version},
1279
+ headers: request_headers.merge(custom_headers || {}),
1280
+ base_url: request_url
1281
+ }
1282
+ promise = @client.make_request_async(:get, path_template, options)
1283
+
1284
+ promise = promise.then do |result|
1285
+ http_response = result.response
1286
+ status_code = http_response.status
1287
+ response_content = http_response.body
1288
+ unless status_code == 200
1289
+ error_model = JSON.load(response_content)
1290
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1291
+ end
1292
+
1293
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1294
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1295
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1296
+ # Deserialize Response
1297
+ if status_code == 200
1298
+ begin
1299
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1300
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1301
+ result.body = @client.deserialize(result_mapper, parsed_response)
1302
+ rescue Exception => e
1303
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1304
+ end
1305
+ end
1306
+
1307
+ result
1308
+ end
1309
+
1310
+ promise.execute
1311
+ end
1312
+
1313
+ #
1314
+ # List all event subscriptions for a specific topic
1315
+ #
1316
+ # List all event subscriptions that have been created for a specific topic
1317
+ #
1318
+ # @param resource_group_name [String] The name of the resource group within the
1319
+ # user's subscription.
1320
+ # @param provider_namespace [String] Namespace of the provider of the topic
1321
+ # @param resource_type_name [String] Name of the resource type
1322
+ # @param resource_name [String] Name of the resource
1323
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1324
+ # will be added to the HTTP request.
1325
+ #
1326
+ # @return [EventSubscriptionsListResult] operation results.
1327
+ #
1328
+ def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1329
+ response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1330
+ response.body unless response.nil?
1331
+ end
1332
+
1333
+ #
1334
+ # List all event subscriptions for a specific topic
1335
+ #
1336
+ # List all event subscriptions that have been created for a specific topic
1337
+ #
1338
+ # @param resource_group_name [String] The name of the resource group within the
1339
+ # user's subscription.
1340
+ # @param provider_namespace [String] Namespace of the provider of the topic
1341
+ # @param resource_type_name [String] Name of the resource type
1342
+ # @param resource_name [String] Name of the resource
1343
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1344
+ # will be added to the HTTP request.
1345
+ #
1346
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1347
+ #
1348
+ def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1349
+ list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
1350
+ end
1351
+
1352
+ #
1353
+ # List all event subscriptions for a specific topic
1354
+ #
1355
+ # List all event subscriptions that have been created for a specific topic
1356
+ #
1357
+ # @param resource_group_name [String] The name of the resource group within the
1358
+ # user's subscription.
1359
+ # @param provider_namespace [String] Namespace of the provider of the topic
1360
+ # @param resource_type_name [String] Name of the resource type
1361
+ # @param resource_name [String] Name of the resource
1362
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1363
+ # to the HTTP request.
1364
+ #
1365
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1366
+ #
1367
+ def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
1368
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1369
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1370
+ fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
1371
+ fail ArgumentError, 'resource_type_name is nil' if resource_type_name.nil?
1372
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1373
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1374
+
1375
+
1376
+ request_headers = {}
1377
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1378
+
1379
+ # Set Headers
1380
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1381
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1382
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions'
1383
+
1384
+ request_url = @base_url || @client.base_url
1385
+
1386
+ options = {
1387
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1388
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'providerNamespace' => provider_namespace,'resourceTypeName' => resource_type_name,'resourceName' => resource_name},
1389
+ query_params: {'api-version' => @client.api_version},
1390
+ headers: request_headers.merge(custom_headers || {}),
1391
+ base_url: request_url
1392
+ }
1393
+ promise = @client.make_request_async(:get, path_template, options)
1394
+
1395
+ promise = promise.then do |result|
1396
+ http_response = result.response
1397
+ status_code = http_response.status
1398
+ response_content = http_response.body
1399
+ unless status_code == 200
1400
+ error_model = JSON.load(response_content)
1401
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1402
+ end
1403
+
1404
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1405
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1406
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1407
+ # Deserialize Response
1408
+ if status_code == 200
1409
+ begin
1410
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1411
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1412
+ result.body = @client.deserialize(result_mapper, parsed_response)
1413
+ rescue Exception => e
1414
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1415
+ end
1416
+ end
1417
+
1418
+ result
1419
+ end
1420
+
1421
+ promise.execute
1422
+ end
1423
+
1424
+ #
1425
+ # Create an event subscription
1426
+ #
1427
+ # Asynchronously creates a new event subscription to the specified scope.
1428
+ # Existing event subscriptions cannot be updated with this API and should
1429
+ # instead use the Update event subscription API.
1430
+ #
1431
+ # @param scope [String] The scope of the resource to which the event
1432
+ # subscription needs to be created. The scope can be a subscription, or a
1433
+ # resource group, or a top level resource belonging to a resource provider
1434
+ # namespace, or an EventGrid topic. For example, use
1435
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1436
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1437
+ # resource group, and
1438
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1439
+ # for a resource, and
1440
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1441
+ # for an EventGrid topic.
1442
+ # @param event_subscription_name [String] Name of the event subscription to be
1443
+ # created. Event subscription names must be between 3 and 64 characters in
1444
+ # length and use alphanumeric letters only.
1445
+ # @param event_subscription_info [EventSubscription] Event subscription
1446
+ # properties containing the destination and filter information
1447
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1448
+ # will be added to the HTTP request.
1449
+ #
1450
+ # @return [EventSubscription] operation results.
1451
+ #
1452
+ def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1453
+ response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1454
+ response.body unless response.nil?
1455
+ end
1456
+
1457
+ #
1458
+ # Create an event subscription
1459
+ #
1460
+ # Asynchronously creates a new event subscription to the specified scope.
1461
+ # Existing event subscriptions cannot be updated with this API and should
1462
+ # instead use the Update event subscription API.
1463
+ #
1464
+ # @param scope [String] The scope of the resource to which the event
1465
+ # subscription needs to be created. The scope can be a subscription, or a
1466
+ # resource group, or a top level resource belonging to a resource provider
1467
+ # namespace, or an EventGrid topic. For example, use
1468
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1469
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1470
+ # resource group, and
1471
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1472
+ # for a resource, and
1473
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1474
+ # for an EventGrid topic.
1475
+ # @param event_subscription_name [String] Name of the event subscription to be
1476
+ # created. Event subscription names must be between 3 and 64 characters in
1477
+ # length and use alphanumeric letters only.
1478
+ # @param event_subscription_info [EventSubscription] Event subscription
1479
+ # properties containing the destination and filter information
1480
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1481
+ # will be added to the HTTP request.
1482
+ #
1483
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1484
+ #
1485
+ def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1486
+ begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value!
1487
+ end
1488
+
1489
+ #
1490
+ # Create an event subscription
1491
+ #
1492
+ # Asynchronously creates a new event subscription to the specified scope.
1493
+ # Existing event subscriptions cannot be updated with this API and should
1494
+ # instead use the Update event subscription API.
1495
+ #
1496
+ # @param scope [String] The scope of the resource to which the event
1497
+ # subscription needs to be created. The scope can be a subscription, or a
1498
+ # resource group, or a top level resource belonging to a resource provider
1499
+ # namespace, or an EventGrid topic. For example, use
1500
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1501
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1502
+ # resource group, and
1503
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1504
+ # for a resource, and
1505
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1506
+ # for an EventGrid topic.
1507
+ # @param event_subscription_name [String] Name of the event subscription to be
1508
+ # created. Event subscription names must be between 3 and 64 characters in
1509
+ # length and use alphanumeric letters only.
1510
+ # @param event_subscription_info [EventSubscription] Event subscription
1511
+ # properties containing the destination and filter information
1512
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1513
+ # to the HTTP request.
1514
+ #
1515
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1516
+ #
1517
+ def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil)
1518
+ fail ArgumentError, 'scope is nil' if scope.nil?
1519
+ fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1520
+ fail ArgumentError, 'event_subscription_info is nil' if event_subscription_info.nil?
1521
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1522
+
1523
+
1524
+ request_headers = {}
1525
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1526
+
1527
+ # Set Headers
1528
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1529
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1530
+
1531
+ # Serialize Request
1532
+ request_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1533
+ request_content = @client.serialize(request_mapper, event_subscription_info)
1534
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1535
+
1536
+ path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
1537
+
1538
+ request_url = @base_url || @client.base_url
1539
+
1540
+ options = {
1541
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1542
+ path_params: {'eventSubscriptionName' => event_subscription_name},
1543
+ skip_encoding_path_params: {'scope' => scope},
1544
+ query_params: {'api-version' => @client.api_version},
1545
+ body: request_content,
1546
+ headers: request_headers.merge(custom_headers || {}),
1547
+ base_url: request_url
1548
+ }
1549
+ promise = @client.make_request_async(:put, path_template, options)
1550
+
1551
+ promise = promise.then do |result|
1552
+ http_response = result.response
1553
+ status_code = http_response.status
1554
+ response_content = http_response.body
1555
+ unless status_code == 201
1556
+ error_model = JSON.load(response_content)
1557
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1558
+ end
1559
+
1560
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1561
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1562
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1563
+ # Deserialize Response
1564
+ if status_code == 201
1565
+ begin
1566
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1567
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1568
+ result.body = @client.deserialize(result_mapper, parsed_response)
1569
+ rescue Exception => e
1570
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1571
+ end
1572
+ end
1573
+
1574
+ result
1575
+ end
1576
+
1577
+ promise.execute
1578
+ end
1579
+
1580
+ #
1581
+ # Delete an event subscription
1582
+ #
1583
+ # Delete an existing event subscription
1584
+ #
1585
+ # @param scope [String] The scope of the event subscription. The scope can be a
1586
+ # subscription, or a resource group, or a top level resource belonging to a
1587
+ # resource provider namespace, or an EventGrid topic. For example, use
1588
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1589
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1590
+ # resource group, and
1591
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1592
+ # for a resource, and
1593
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1594
+ # for an EventGrid topic.
1595
+ # @param event_subscription_name [String] Name of the event subscription
1596
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1597
+ # will be added to the HTTP request.
1598
+ #
1599
+ #
1600
+ def begin_delete(scope, event_subscription_name, custom_headers:nil)
1601
+ response = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1602
+ nil
1603
+ end
1604
+
1605
+ #
1606
+ # Delete an event subscription
1607
+ #
1608
+ # Delete an existing event subscription
1609
+ #
1610
+ # @param scope [String] The scope of the event subscription. The scope can be a
1611
+ # subscription, or a resource group, or a top level resource belonging to a
1612
+ # resource provider namespace, or an EventGrid topic. For example, use
1613
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1614
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1615
+ # resource group, and
1616
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1617
+ # for a resource, and
1618
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1619
+ # for an EventGrid topic.
1620
+ # @param event_subscription_name [String] Name of the event subscription
1621
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1622
+ # will be added to the HTTP request.
1623
+ #
1624
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1625
+ #
1626
+ def begin_delete_with_http_info(scope, event_subscription_name, custom_headers:nil)
1627
+ begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
1628
+ end
1629
+
1630
+ #
1631
+ # Delete an event subscription
1632
+ #
1633
+ # Delete an existing event subscription
1634
+ #
1635
+ # @param scope [String] The scope of the event subscription. The scope can be a
1636
+ # subscription, or a resource group, or a top level resource belonging to a
1637
+ # resource provider namespace, or an EventGrid topic. For example, use
1638
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1639
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1640
+ # resource group, and
1641
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1642
+ # for a resource, and
1643
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1644
+ # for an EventGrid topic.
1645
+ # @param event_subscription_name [String] Name of the event subscription
1646
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1647
+ # to the HTTP request.
1648
+ #
1649
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1650
+ #
1651
+ def begin_delete_async(scope, event_subscription_name, custom_headers:nil)
1652
+ fail ArgumentError, 'scope is nil' if scope.nil?
1653
+ fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1654
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1655
+
1656
+
1657
+ request_headers = {}
1658
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1659
+
1660
+ # Set Headers
1661
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1662
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1663
+ path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
1664
+
1665
+ request_url = @base_url || @client.base_url
1666
+
1667
+ options = {
1668
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1669
+ path_params: {'eventSubscriptionName' => event_subscription_name},
1670
+ skip_encoding_path_params: {'scope' => scope},
1671
+ query_params: {'api-version' => @client.api_version},
1672
+ headers: request_headers.merge(custom_headers || {}),
1673
+ base_url: request_url
1674
+ }
1675
+ promise = @client.make_request_async(:delete, path_template, options)
1676
+
1677
+ promise = promise.then do |result|
1678
+ http_response = result.response
1679
+ status_code = http_response.status
1680
+ response_content = http_response.body
1681
+ unless status_code == 200 || status_code == 202 || status_code == 204
1682
+ error_model = JSON.load(response_content)
1683
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1684
+ end
1685
+
1686
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1687
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1688
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1689
+
1690
+ result
1691
+ end
1692
+
1693
+ promise.execute
1694
+ end
1695
+
1696
+ #
1697
+ # Update an event subscription
1698
+ #
1699
+ # Asynchronously updates an existing event subscription.
1700
+ #
1701
+ # @param scope [String] The scope of existing event subscription. The scope can
1702
+ # be a subscription, or a resource group, or a top level resource belonging to
1703
+ # a resource provider namespace, or an EventGrid topic. For example, use
1704
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1705
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1706
+ # resource group, and
1707
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1708
+ # for a resource, and
1709
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1710
+ # for an EventGrid topic.
1711
+ # @param event_subscription_name [String] Name of the event subscription to be
1712
+ # created
1713
+ # @param event_subscription_update_parameters
1714
+ # [EventSubscriptionUpdateParameters] Updated event subscription information
1715
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1716
+ # will be added to the HTTP request.
1717
+ #
1718
+ # @return [EventSubscription] operation results.
1719
+ #
1720
+ def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1721
+ response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1722
+ response.body unless response.nil?
1723
+ end
1724
+
1725
+ #
1726
+ # Update an event subscription
1727
+ #
1728
+ # Asynchronously updates an existing event subscription.
1729
+ #
1730
+ # @param scope [String] The scope of existing event subscription. The scope can
1731
+ # be a subscription, or a resource group, or a top level resource belonging to
1732
+ # a resource provider namespace, or an EventGrid topic. For example, use
1733
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1734
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1735
+ # resource group, and
1736
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1737
+ # for a resource, and
1738
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1739
+ # for an EventGrid topic.
1740
+ # @param event_subscription_name [String] Name of the event subscription to be
1741
+ # created
1742
+ # @param event_subscription_update_parameters
1743
+ # [EventSubscriptionUpdateParameters] Updated event subscription information
1744
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1745
+ # will be added to the HTTP request.
1746
+ #
1747
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1748
+ #
1749
+ def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1750
+ begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value!
1751
+ end
1752
+
1753
+ #
1754
+ # Update an event subscription
1755
+ #
1756
+ # Asynchronously updates an existing event subscription.
1757
+ #
1758
+ # @param scope [String] The scope of existing event subscription. The scope can
1759
+ # be a subscription, or a resource group, or a top level resource belonging to
1760
+ # a resource provider namespace, or an EventGrid topic. For example, use
1761
+ # '/subscriptions/{subscriptionId}/' for a subscription,
1762
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
1763
+ # resource group, and
1764
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
1765
+ # for a resource, and
1766
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1767
+ # for an EventGrid topic.
1768
+ # @param event_subscription_name [String] Name of the event subscription to be
1769
+ # created
1770
+ # @param event_subscription_update_parameters
1771
+ # [EventSubscriptionUpdateParameters] Updated event subscription information
1772
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1773
+ # to the HTTP request.
1774
+ #
1775
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1776
+ #
1777
+ def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil)
1778
+ fail ArgumentError, 'scope is nil' if scope.nil?
1779
+ fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil?
1780
+ fail ArgumentError, 'event_subscription_update_parameters is nil' if event_subscription_update_parameters.nil?
1781
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1782
+
1783
+
1784
+ request_headers = {}
1785
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1786
+
1787
+ # Set Headers
1788
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1789
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1790
+
1791
+ # Serialize Request
1792
+ request_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionUpdateParameters.mapper()
1793
+ request_content = @client.serialize(request_mapper, event_subscription_update_parameters)
1794
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1795
+
1796
+ path_template = '{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}'
1797
+
1798
+ request_url = @base_url || @client.base_url
1799
+
1800
+ options = {
1801
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1802
+ path_params: {'eventSubscriptionName' => event_subscription_name},
1803
+ skip_encoding_path_params: {'scope' => scope},
1804
+ query_params: {'api-version' => @client.api_version},
1805
+ body: request_content,
1806
+ headers: request_headers.merge(custom_headers || {}),
1807
+ base_url: request_url
1808
+ }
1809
+ promise = @client.make_request_async(:patch, path_template, options)
1810
+
1811
+ promise = promise.then do |result|
1812
+ http_response = result.response
1813
+ status_code = http_response.status
1814
+ response_content = http_response.body
1815
+ unless status_code == 201
1816
+ error_model = JSON.load(response_content)
1817
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1818
+ end
1819
+
1820
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1821
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1822
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1823
+ # Deserialize Response
1824
+ if status_code == 201
1825
+ begin
1826
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1827
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1828
+ result.body = @client.deserialize(result_mapper, parsed_response)
1829
+ rescue Exception => e
1830
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1831
+ end
1832
+ end
1833
+
1834
+ result
1835
+ end
1836
+
1837
+ promise.execute
1838
+ end
1839
+
1840
+ end
1841
+ end