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
@@ -1,1367 +1,1367 @@
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::V2019_02_01_preview
7
- #
8
- # Azure EventGrid Management Client
9
- #
10
- class Topics
11
- include MsRestAzure
12
-
13
- #
14
- # Creates and initializes a new instance of the Topics 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 a topic
26
- #
27
- # Get properties of a topic
28
- #
29
- # @param resource_group_name [String] The name of the resource group within the
30
- # user's subscription.
31
- # @param topic_name [String] Name of the topic
32
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
- # will be added to the HTTP request.
34
- #
35
- # @return [Topic] operation results.
36
- #
37
- def get(resource_group_name, topic_name, custom_headers:nil)
38
- response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
39
- response.body unless response.nil?
40
- end
41
-
42
- #
43
- # Get a topic
44
- #
45
- # Get properties of a topic
46
- #
47
- # @param resource_group_name [String] The name of the resource group within the
48
- # user's subscription.
49
- # @param topic_name [String] Name of the topic
50
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
- # will be added to the HTTP request.
52
- #
53
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
- #
55
- def get_with_http_info(resource_group_name, topic_name, custom_headers:nil)
56
- get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
57
- end
58
-
59
- #
60
- # Get a topic
61
- #
62
- # Get properties of a topic
63
- #
64
- # @param resource_group_name [String] The name of the resource group within the
65
- # user's subscription.
66
- # @param topic_name [String] Name of the topic
67
- # @param [Hash{String => String}] A hash of custom headers that will be added
68
- # to the HTTP request.
69
- #
70
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
- #
72
- def get_async(resource_group_name, topic_name, custom_headers:nil)
73
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
- fail ArgumentError, 'topic_name is nil' if topic_name.nil?
76
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
-
78
-
79
- request_headers = {}
80
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
81
-
82
- # Set Headers
83
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
84
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
85
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
86
-
87
- request_url = @base_url || @client.base_url
88
-
89
- options = {
90
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
91
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
92
- query_params: {'api-version' => @client.api_version},
93
- headers: request_headers.merge(custom_headers || {}),
94
- base_url: request_url
95
- }
96
- promise = @client.make_request_async(:get, path_template, options)
97
-
98
- promise = promise.then do |result|
99
- http_response = result.response
100
- status_code = http_response.status
101
- response_content = http_response.body
102
- unless status_code == 200
103
- error_model = JSON.load(response_content)
104
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
105
- end
106
-
107
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
108
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
109
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
110
- # Deserialize Response
111
- if status_code == 200
112
- begin
113
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
114
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
115
- result.body = @client.deserialize(result_mapper, parsed_response)
116
- rescue Exception => e
117
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
118
- end
119
- end
120
-
121
- result
122
- end
123
-
124
- promise.execute
125
- end
126
-
127
- #
128
- # Create a topic
129
- #
130
- # Asynchronously creates a new topic with the specified parameters.
131
- #
132
- # @param resource_group_name [String] The name of the resource group within the
133
- # user's subscription.
134
- # @param topic_name [String] Name of the topic
135
- # @param topic_info [Topic] Topic information
136
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
137
- # will be added to the HTTP request.
138
- #
139
- # @return [Topic] operation results.
140
- #
141
- def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
142
- response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
143
- response.body unless response.nil?
144
- end
145
-
146
- #
147
- # @param resource_group_name [String] The name of the resource group within the
148
- # user's subscription.
149
- # @param topic_name [String] Name of the topic
150
- # @param topic_info [Topic] Topic information
151
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
152
- # will be added to the HTTP request.
153
- #
154
- # @return [Concurrent::Promise] promise which provides async access to http
155
- # response.
156
- #
157
- def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
158
- # Send request
159
- promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers)
160
-
161
- promise = promise.then do |response|
162
- # Defining deserialization method.
163
- deserialize_method = lambda do |parsed_response|
164
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
165
- parsed_response = @client.deserialize(result_mapper, parsed_response)
166
- end
167
-
168
- # Waiting for response.
169
- @client.get_long_running_operation_result(response, deserialize_method)
170
- end
171
-
172
- promise
173
- end
174
-
175
- #
176
- # Delete a topic
177
- #
178
- # Delete existing topic
179
- #
180
- # @param resource_group_name [String] The name of the resource group within the
181
- # user's subscription.
182
- # @param topic_name [String] Name of the topic
183
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
184
- # will be added to the HTTP request.
185
- #
186
- def delete(resource_group_name, topic_name, custom_headers:nil)
187
- response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
188
- nil
189
- end
190
-
191
- #
192
- # @param resource_group_name [String] The name of the resource group within the
193
- # user's subscription.
194
- # @param topic_name [String] Name of the topic
195
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
196
- # will be added to the HTTP request.
197
- #
198
- # @return [Concurrent::Promise] promise which provides async access to http
199
- # response.
200
- #
201
- def delete_async(resource_group_name, topic_name, custom_headers:nil)
202
- # Send request
203
- promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers)
204
-
205
- promise = promise.then do |response|
206
- # Defining deserialization method.
207
- deserialize_method = lambda do |parsed_response|
208
- end
209
-
210
- # Waiting for response.
211
- @client.get_long_running_operation_result(response, deserialize_method)
212
- end
213
-
214
- promise
215
- end
216
-
217
- #
218
- # Update a topic
219
- #
220
- # Asynchronously updates a topic with the specified parameters.
221
- #
222
- # @param resource_group_name [String] The name of the resource group within the
223
- # user's subscription.
224
- # @param topic_name [String] Name of the topic
225
- # @param topic_update_parameters [TopicUpdateParameters] Topic update
226
- # information
227
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
228
- # will be added to the HTTP request.
229
- #
230
- # @return [Topic] operation results.
231
- #
232
- def update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
233
- response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
234
- response.body unless response.nil?
235
- end
236
-
237
- #
238
- # @param resource_group_name [String] The name of the resource group within the
239
- # user's subscription.
240
- # @param topic_name [String] Name of the topic
241
- # @param topic_update_parameters [TopicUpdateParameters] Topic update
242
- # information
243
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
244
- # will be added to the HTTP request.
245
- #
246
- # @return [Concurrent::Promise] promise which provides async access to http
247
- # response.
248
- #
249
- def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
250
- # Send request
251
- promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers)
252
-
253
- promise = promise.then do |response|
254
- # Defining deserialization method.
255
- deserialize_method = lambda do |parsed_response|
256
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
257
- parsed_response = @client.deserialize(result_mapper, parsed_response)
258
- end
259
-
260
- # Waiting for response.
261
- @client.get_long_running_operation_result(response, deserialize_method)
262
- end
263
-
264
- promise
265
- end
266
-
267
- #
268
- # List topics under an Azure subscription
269
- #
270
- # List all the topics under an Azure subscription
271
- #
272
- # @param filter [String] Filter the results using OData syntax.
273
- # @param top [Integer] The number of results to return.
274
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
275
- # will be added to the HTTP request.
276
- #
277
- # @return [Array<Topic>] operation results.
278
- #
279
- def list_by_subscription(filter:nil, top:nil, custom_headers:nil)
280
- first_page = list_by_subscription_as_lazy(filter:filter, top:top, custom_headers:custom_headers)
281
- first_page.get_all_items
282
- end
283
-
284
- #
285
- # List topics under an Azure subscription
286
- #
287
- # List all the topics under an Azure subscription
288
- #
289
- # @param filter [String] Filter the results using OData syntax.
290
- # @param top [Integer] The number of results to return.
291
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
292
- # will be added to the HTTP request.
293
- #
294
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
295
- #
296
- def list_by_subscription_with_http_info(filter:nil, top:nil, custom_headers:nil)
297
- list_by_subscription_async(filter:filter, top:top, custom_headers:custom_headers).value!
298
- end
299
-
300
- #
301
- # List topics under an Azure subscription
302
- #
303
- # List all the topics under an Azure subscription
304
- #
305
- # @param filter [String] Filter the results using OData syntax.
306
- # @param top [Integer] The number of results to return.
307
- # @param [Hash{String => String}] A hash of custom headers that will be added
308
- # to the HTTP request.
309
- #
310
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
311
- #
312
- def list_by_subscription_async(filter:nil, top:nil, custom_headers:nil)
313
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
314
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
315
-
316
-
317
- request_headers = {}
318
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
319
-
320
- # Set Headers
321
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
322
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
323
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics'
324
-
325
- request_url = @base_url || @client.base_url
326
-
327
- options = {
328
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
329
- path_params: {'subscriptionId' => @client.subscription_id},
330
- query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top},
331
- headers: request_headers.merge(custom_headers || {}),
332
- base_url: request_url
333
- }
334
- promise = @client.make_request_async(:get, path_template, options)
335
-
336
- promise = promise.then do |result|
337
- http_response = result.response
338
- status_code = http_response.status
339
- response_content = http_response.body
340
- unless status_code == 200
341
- error_model = JSON.load(response_content)
342
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
343
- end
344
-
345
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
346
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
347
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
348
- # Deserialize Response
349
- if status_code == 200
350
- begin
351
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
352
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
353
- result.body = @client.deserialize(result_mapper, parsed_response)
354
- rescue Exception => e
355
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
356
- end
357
- end
358
-
359
- result
360
- end
361
-
362
- promise.execute
363
- end
364
-
365
- #
366
- # List topics under a resource group
367
- #
368
- # List all the topics under a resource group
369
- #
370
- # @param resource_group_name [String] The name of the resource group within the
371
- # user's subscription.
372
- # @param filter [String] Filter the results using OData syntax.
373
- # @param top [Integer] The number of results to return.
374
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
375
- # will be added to the HTTP request.
376
- #
377
- # @return [Array<Topic>] operation results.
378
- #
379
- def list_by_resource_group(resource_group_name, filter:nil, top:nil, custom_headers:nil)
380
- first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers)
381
- first_page.get_all_items
382
- end
383
-
384
- #
385
- # List topics under a resource group
386
- #
387
- # List all the topics under a resource group
388
- #
389
- # @param resource_group_name [String] The name of the resource group within the
390
- # user's subscription.
391
- # @param filter [String] Filter the results using OData syntax.
392
- # @param top [Integer] The number of results to return.
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 list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil)
399
- list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
400
- end
401
-
402
- #
403
- # List topics under a resource group
404
- #
405
- # List all the topics under a resource group
406
- #
407
- # @param resource_group_name [String] The name of the resource group within the
408
- # user's subscription.
409
- # @param filter [String] Filter the results using OData syntax.
410
- # @param top [Integer] The number of results to return.
411
- # @param [Hash{String => String}] A hash of custom headers that will be added
412
- # to the HTTP request.
413
- #
414
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
415
- #
416
- def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, custom_headers:nil)
417
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
418
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
419
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
420
-
421
-
422
- request_headers = {}
423
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
424
-
425
- # Set Headers
426
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
427
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
428
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics'
429
-
430
- request_url = @base_url || @client.base_url
431
-
432
- options = {
433
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
434
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
435
- query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top},
436
- headers: request_headers.merge(custom_headers || {}),
437
- base_url: request_url
438
- }
439
- promise = @client.make_request_async(:get, path_template, options)
440
-
441
- promise = promise.then do |result|
442
- http_response = result.response
443
- status_code = http_response.status
444
- response_content = http_response.body
445
- unless status_code == 200
446
- error_model = JSON.load(response_content)
447
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
448
- end
449
-
450
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
451
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
452
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
453
- # Deserialize Response
454
- if status_code == 200
455
- begin
456
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
457
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
458
- result.body = @client.deserialize(result_mapper, parsed_response)
459
- rescue Exception => e
460
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
461
- end
462
- end
463
-
464
- result
465
- end
466
-
467
- promise.execute
468
- end
469
-
470
- #
471
- # List keys for a topic
472
- #
473
- # List the two keys used to publish to a topic
474
- #
475
- # @param resource_group_name [String] The name of the resource group within the
476
- # user's subscription.
477
- # @param topic_name [String] Name of the topic
478
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
479
- # will be added to the HTTP request.
480
- #
481
- # @return [TopicSharedAccessKeys] operation results.
482
- #
483
- def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil)
484
- response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
485
- response.body unless response.nil?
486
- end
487
-
488
- #
489
- # List keys for a topic
490
- #
491
- # List the two keys used to publish to a topic
492
- #
493
- # @param resource_group_name [String] The name of the resource group within the
494
- # user's subscription.
495
- # @param topic_name [String] Name of the topic
496
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
497
- # will be added to the HTTP request.
498
- #
499
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
500
- #
501
- def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil)
502
- list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
503
- end
504
-
505
- #
506
- # List keys for a topic
507
- #
508
- # List the two keys used to publish to a topic
509
- #
510
- # @param resource_group_name [String] The name of the resource group within the
511
- # user's subscription.
512
- # @param topic_name [String] Name of the topic
513
- # @param [Hash{String => String}] A hash of custom headers that will be added
514
- # to the HTTP request.
515
- #
516
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
517
- #
518
- def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil)
519
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
520
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
521
- fail ArgumentError, 'topic_name is nil' if topic_name.nil?
522
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
523
-
524
-
525
- request_headers = {}
526
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
527
-
528
- # Set Headers
529
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
530
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
531
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys'
532
-
533
- request_url = @base_url || @client.base_url
534
-
535
- options = {
536
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
537
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
538
- query_params: {'api-version' => @client.api_version},
539
- headers: request_headers.merge(custom_headers || {}),
540
- base_url: request_url
541
- }
542
- promise = @client.make_request_async(:post, path_template, options)
543
-
544
- promise = promise.then do |result|
545
- http_response = result.response
546
- status_code = http_response.status
547
- response_content = http_response.body
548
- unless status_code == 200
549
- error_model = JSON.load(response_content)
550
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
551
- end
552
-
553
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
554
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
555
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
556
- # Deserialize Response
557
- if status_code == 200
558
- begin
559
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
560
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicSharedAccessKeys.mapper()
561
- result.body = @client.deserialize(result_mapper, parsed_response)
562
- rescue Exception => e
563
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
564
- end
565
- end
566
-
567
- result
568
- end
569
-
570
- promise.execute
571
- end
572
-
573
- #
574
- # Regenerate key for a topic
575
- #
576
- # Regenerate a shared access key for a topic
577
- #
578
- # @param resource_group_name [String] The name of the resource group within the
579
- # user's subscription.
580
- # @param topic_name [String] Name of the topic
581
- # @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
582
- # regenerate key
583
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
- # will be added to the HTTP request.
585
- #
586
- # @return [TopicSharedAccessKeys] operation results.
587
- #
588
- def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
589
- response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
590
- response.body unless response.nil?
591
- end
592
-
593
- #
594
- # Regenerate key for a topic
595
- #
596
- # Regenerate a shared access key for a topic
597
- #
598
- # @param resource_group_name [String] The name of the resource group within the
599
- # user's subscription.
600
- # @param topic_name [String] Name of the topic
601
- # @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
602
- # regenerate key
603
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
604
- # will be added to the HTTP request.
605
- #
606
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
607
- #
608
- def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
609
- regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
610
- end
611
-
612
- #
613
- # Regenerate key for a topic
614
- #
615
- # Regenerate a shared access key for a topic
616
- #
617
- # @param resource_group_name [String] The name of the resource group within the
618
- # user's subscription.
619
- # @param topic_name [String] Name of the topic
620
- # @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
621
- # regenerate key
622
- # @param [Hash{String => String}] A hash of custom headers that will be added
623
- # to the HTTP request.
624
- #
625
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
626
- #
627
- def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
628
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
629
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
630
- fail ArgumentError, 'topic_name is nil' if topic_name.nil?
631
- fail ArgumentError, 'regenerate_key_request is nil' if regenerate_key_request.nil?
632
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
633
-
634
-
635
- request_headers = {}
636
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
637
-
638
- # Set Headers
639
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
640
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
641
-
642
- # Serialize Request
643
- request_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicRegenerateKeyRequest.mapper()
644
- request_content = @client.serialize(request_mapper, regenerate_key_request)
645
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
646
-
647
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey'
648
-
649
- request_url = @base_url || @client.base_url
650
-
651
- options = {
652
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
653
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
654
- query_params: {'api-version' => @client.api_version},
655
- body: request_content,
656
- headers: request_headers.merge(custom_headers || {}),
657
- base_url: request_url
658
- }
659
- promise = @client.make_request_async(:post, path_template, options)
660
-
661
- promise = promise.then do |result|
662
- http_response = result.response
663
- status_code = http_response.status
664
- response_content = http_response.body
665
- unless status_code == 200
666
- error_model = JSON.load(response_content)
667
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
668
- end
669
-
670
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
671
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
672
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
673
- # Deserialize Response
674
- if status_code == 200
675
- begin
676
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
677
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicSharedAccessKeys.mapper()
678
- result.body = @client.deserialize(result_mapper, parsed_response)
679
- rescue Exception => e
680
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
681
- end
682
- end
683
-
684
- result
685
- end
686
-
687
- promise.execute
688
- end
689
-
690
- #
691
- # List topic event types
692
- #
693
- # List event types for a topic
694
- #
695
- # @param resource_group_name [String] The name of the resource group within the
696
- # user's subscription.
697
- # @param provider_namespace [String] Namespace of the provider of the topic
698
- # @param resource_type_name [String] Name of the topic type
699
- # @param resource_name [String] Name of the topic
700
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
701
- # will be added to the HTTP request.
702
- #
703
- # @return [EventTypesListResult] operation results.
704
- #
705
- def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
706
- response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
707
- response.body unless response.nil?
708
- end
709
-
710
- #
711
- # List topic event types
712
- #
713
- # List event types for a topic
714
- #
715
- # @param resource_group_name [String] The name of the resource group within the
716
- # user's subscription.
717
- # @param provider_namespace [String] Namespace of the provider of the topic
718
- # @param resource_type_name [String] Name of the topic type
719
- # @param resource_name [String] Name of the topic
720
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
721
- # will be added to the HTTP request.
722
- #
723
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
724
- #
725
- def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
726
- list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
727
- end
728
-
729
- #
730
- # List topic event types
731
- #
732
- # List event types for a topic
733
- #
734
- # @param resource_group_name [String] The name of the resource group within the
735
- # user's subscription.
736
- # @param provider_namespace [String] Namespace of the provider of the topic
737
- # @param resource_type_name [String] Name of the topic type
738
- # @param resource_name [String] Name of the topic
739
- # @param [Hash{String => String}] A hash of custom headers that will be added
740
- # to the HTTP request.
741
- #
742
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
743
- #
744
- def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
745
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
746
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
747
- fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
748
- fail ArgumentError, 'resource_type_name is nil' if resource_type_name.nil?
749
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
750
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
751
-
752
-
753
- request_headers = {}
754
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
755
-
756
- # Set Headers
757
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
758
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
759
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes'
760
-
761
- request_url = @base_url || @client.base_url
762
-
763
- options = {
764
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
765
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'providerNamespace' => provider_namespace,'resourceTypeName' => resource_type_name,'resourceName' => resource_name},
766
- query_params: {'api-version' => @client.api_version},
767
- headers: request_headers.merge(custom_headers || {}),
768
- base_url: request_url
769
- }
770
- promise = @client.make_request_async(:get, path_template, options)
771
-
772
- promise = promise.then do |result|
773
- http_response = result.response
774
- status_code = http_response.status
775
- response_content = http_response.body
776
- unless status_code == 200
777
- error_model = JSON.load(response_content)
778
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
779
- end
780
-
781
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
782
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
783
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
784
- # Deserialize Response
785
- if status_code == 200
786
- begin
787
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
788
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::EventTypesListResult.mapper()
789
- result.body = @client.deserialize(result_mapper, parsed_response)
790
- rescue Exception => e
791
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
792
- end
793
- end
794
-
795
- result
796
- end
797
-
798
- promise.execute
799
- end
800
-
801
- #
802
- # Create a topic
803
- #
804
- # Asynchronously creates a new topic with the specified parameters.
805
- #
806
- # @param resource_group_name [String] The name of the resource group within the
807
- # user's subscription.
808
- # @param topic_name [String] Name of the topic
809
- # @param topic_info [Topic] Topic information
810
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
811
- # will be added to the HTTP request.
812
- #
813
- # @return [Topic] operation results.
814
- #
815
- def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
816
- response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
817
- response.body unless response.nil?
818
- end
819
-
820
- #
821
- # Create a topic
822
- #
823
- # Asynchronously creates a new topic with the specified parameters.
824
- #
825
- # @param resource_group_name [String] The name of the resource group within the
826
- # user's subscription.
827
- # @param topic_name [String] Name of the topic
828
- # @param topic_info [Topic] Topic information
829
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
830
- # will be added to the HTTP request.
831
- #
832
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
833
- #
834
- def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil)
835
- begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
836
- end
837
-
838
- #
839
- # Create a topic
840
- #
841
- # Asynchronously creates a new topic with the specified parameters.
842
- #
843
- # @param resource_group_name [String] The name of the resource group within the
844
- # user's subscription.
845
- # @param topic_name [String] Name of the topic
846
- # @param topic_info [Topic] Topic information
847
- # @param [Hash{String => String}] A hash of custom headers that will be added
848
- # to the HTTP request.
849
- #
850
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
851
- #
852
- def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
853
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
854
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
855
- fail ArgumentError, 'topic_name is nil' if topic_name.nil?
856
- fail ArgumentError, 'topic_info is nil' if topic_info.nil?
857
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
858
-
859
-
860
- request_headers = {}
861
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
862
-
863
- # Set Headers
864
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
865
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
866
-
867
- # Serialize Request
868
- request_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
869
- request_content = @client.serialize(request_mapper, topic_info)
870
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
871
-
872
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
873
-
874
- request_url = @base_url || @client.base_url
875
-
876
- options = {
877
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
878
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
879
- query_params: {'api-version' => @client.api_version},
880
- body: request_content,
881
- headers: request_headers.merge(custom_headers || {}),
882
- base_url: request_url
883
- }
884
- promise = @client.make_request_async(:put, path_template, options)
885
-
886
- promise = promise.then do |result|
887
- http_response = result.response
888
- status_code = http_response.status
889
- response_content = http_response.body
890
- unless status_code == 201
891
- error_model = JSON.load(response_content)
892
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
893
- end
894
-
895
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
896
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
897
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
898
- # Deserialize Response
899
- if status_code == 201
900
- begin
901
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
902
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
903
- result.body = @client.deserialize(result_mapper, parsed_response)
904
- rescue Exception => e
905
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
906
- end
907
- end
908
-
909
- result
910
- end
911
-
912
- promise.execute
913
- end
914
-
915
- #
916
- # Delete a topic
917
- #
918
- # Delete existing topic
919
- #
920
- # @param resource_group_name [String] The name of the resource group within the
921
- # user's subscription.
922
- # @param topic_name [String] Name of the topic
923
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
924
- # will be added to the HTTP request.
925
- #
926
- #
927
- def begin_delete(resource_group_name, topic_name, custom_headers:nil)
928
- response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
929
- nil
930
- end
931
-
932
- #
933
- # Delete a topic
934
- #
935
- # Delete existing topic
936
- #
937
- # @param resource_group_name [String] The name of the resource group within the
938
- # user's subscription.
939
- # @param topic_name [String] Name of the topic
940
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
941
- # will be added to the HTTP request.
942
- #
943
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
944
- #
945
- def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil)
946
- begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
947
- end
948
-
949
- #
950
- # Delete a topic
951
- #
952
- # Delete existing topic
953
- #
954
- # @param resource_group_name [String] The name of the resource group within the
955
- # user's subscription.
956
- # @param topic_name [String] Name of the topic
957
- # @param [Hash{String => String}] A hash of custom headers that will be added
958
- # to the HTTP request.
959
- #
960
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
961
- #
962
- def begin_delete_async(resource_group_name, topic_name, custom_headers:nil)
963
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
964
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
965
- fail ArgumentError, 'topic_name is nil' if topic_name.nil?
966
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
967
-
968
-
969
- request_headers = {}
970
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
971
-
972
- # Set Headers
973
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
974
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
975
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
976
-
977
- request_url = @base_url || @client.base_url
978
-
979
- options = {
980
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
981
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
982
- query_params: {'api-version' => @client.api_version},
983
- headers: request_headers.merge(custom_headers || {}),
984
- base_url: request_url
985
- }
986
- promise = @client.make_request_async(:delete, path_template, options)
987
-
988
- promise = promise.then do |result|
989
- http_response = result.response
990
- status_code = http_response.status
991
- response_content = http_response.body
992
- unless status_code == 202 || status_code == 204
993
- error_model = JSON.load(response_content)
994
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
995
- end
996
-
997
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
998
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
999
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1000
-
1001
- result
1002
- end
1003
-
1004
- promise.execute
1005
- end
1006
-
1007
- #
1008
- # Update a topic
1009
- #
1010
- # Asynchronously updates a topic with the specified parameters.
1011
- #
1012
- # @param resource_group_name [String] The name of the resource group within the
1013
- # user's subscription.
1014
- # @param topic_name [String] Name of the topic
1015
- # @param topic_update_parameters [TopicUpdateParameters] Topic update
1016
- # information
1017
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1018
- # will be added to the HTTP request.
1019
- #
1020
- # @return [Topic] operation results.
1021
- #
1022
- def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1023
- response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
1024
- response.body unless response.nil?
1025
- end
1026
-
1027
- #
1028
- # Update a topic
1029
- #
1030
- # Asynchronously updates a topic with the specified parameters.
1031
- #
1032
- # @param resource_group_name [String] The name of the resource group within the
1033
- # user's subscription.
1034
- # @param topic_name [String] Name of the topic
1035
- # @param topic_update_parameters [TopicUpdateParameters] Topic update
1036
- # information
1037
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1038
- # will be added to the HTTP request.
1039
- #
1040
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1041
- #
1042
- def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1043
- begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
1044
- end
1045
-
1046
- #
1047
- # Update a topic
1048
- #
1049
- # Asynchronously updates a topic with the specified parameters.
1050
- #
1051
- # @param resource_group_name [String] The name of the resource group within the
1052
- # user's subscription.
1053
- # @param topic_name [String] Name of the topic
1054
- # @param topic_update_parameters [TopicUpdateParameters] Topic update
1055
- # information
1056
- # @param [Hash{String => String}] A hash of custom headers that will be added
1057
- # to the HTTP request.
1058
- #
1059
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1060
- #
1061
- def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1062
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1063
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1064
- fail ArgumentError, 'topic_name is nil' if topic_name.nil?
1065
- fail ArgumentError, 'topic_update_parameters is nil' if topic_update_parameters.nil?
1066
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1067
-
1068
-
1069
- request_headers = {}
1070
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1071
-
1072
- # Set Headers
1073
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1074
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1075
-
1076
- # Serialize Request
1077
- request_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicUpdateParameters.mapper()
1078
- request_content = @client.serialize(request_mapper, topic_update_parameters)
1079
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1080
-
1081
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1082
-
1083
- request_url = @base_url || @client.base_url
1084
-
1085
- options = {
1086
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1087
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
1088
- query_params: {'api-version' => @client.api_version},
1089
- body: request_content,
1090
- headers: request_headers.merge(custom_headers || {}),
1091
- base_url: request_url
1092
- }
1093
- promise = @client.make_request_async(:patch, path_template, options)
1094
-
1095
- promise = promise.then do |result|
1096
- http_response = result.response
1097
- status_code = http_response.status
1098
- response_content = http_response.body
1099
- unless status_code == 201
1100
- error_model = JSON.load(response_content)
1101
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1102
- end
1103
-
1104
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1105
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1106
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1107
- # Deserialize Response
1108
- if status_code == 201
1109
- begin
1110
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1111
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
1112
- result.body = @client.deserialize(result_mapper, parsed_response)
1113
- rescue Exception => e
1114
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1115
- end
1116
- end
1117
-
1118
- result
1119
- end
1120
-
1121
- promise.execute
1122
- end
1123
-
1124
- #
1125
- # List topics under an Azure subscription
1126
- #
1127
- # List all the topics under an Azure subscription
1128
- #
1129
- # @param next_page_link [String] The NextLink from the previous successful call
1130
- # to List operation.
1131
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1132
- # will be added to the HTTP request.
1133
- #
1134
- # @return [TopicsListResult] operation results.
1135
- #
1136
- def list_by_subscription_next(next_page_link, custom_headers:nil)
1137
- response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1138
- response.body unless response.nil?
1139
- end
1140
-
1141
- #
1142
- # List topics under an Azure subscription
1143
- #
1144
- # List all the topics under an Azure subscription
1145
- #
1146
- # @param next_page_link [String] The NextLink from the previous successful call
1147
- # to List operation.
1148
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1149
- # will be added to the HTTP request.
1150
- #
1151
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1152
- #
1153
- def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
1154
- list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1155
- end
1156
-
1157
- #
1158
- # List topics under an Azure subscription
1159
- #
1160
- # List all the topics under an Azure subscription
1161
- #
1162
- # @param next_page_link [String] The NextLink from the previous successful call
1163
- # to List operation.
1164
- # @param [Hash{String => String}] A hash of custom headers that will be added
1165
- # to the HTTP request.
1166
- #
1167
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1168
- #
1169
- def list_by_subscription_next_async(next_page_link, custom_headers:nil)
1170
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1171
-
1172
-
1173
- request_headers = {}
1174
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1175
-
1176
- # Set Headers
1177
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1178
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1179
- path_template = '{nextLink}'
1180
-
1181
- request_url = @base_url || @client.base_url
1182
-
1183
- options = {
1184
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1185
- skip_encoding_path_params: {'nextLink' => next_page_link},
1186
- headers: request_headers.merge(custom_headers || {}),
1187
- base_url: request_url
1188
- }
1189
- promise = @client.make_request_async(:get, path_template, options)
1190
-
1191
- promise = promise.then do |result|
1192
- http_response = result.response
1193
- status_code = http_response.status
1194
- response_content = http_response.body
1195
- unless status_code == 200
1196
- error_model = JSON.load(response_content)
1197
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1198
- end
1199
-
1200
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1201
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1202
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1203
- # Deserialize Response
1204
- if status_code == 200
1205
- begin
1206
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1207
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
1208
- result.body = @client.deserialize(result_mapper, parsed_response)
1209
- rescue Exception => e
1210
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1211
- end
1212
- end
1213
-
1214
- result
1215
- end
1216
-
1217
- promise.execute
1218
- end
1219
-
1220
- #
1221
- # List topics under a resource group
1222
- #
1223
- # List all the topics under a resource group
1224
- #
1225
- # @param next_page_link [String] The NextLink from the previous successful call
1226
- # to List operation.
1227
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1228
- # will be added to the HTTP request.
1229
- #
1230
- # @return [TopicsListResult] operation results.
1231
- #
1232
- def list_by_resource_group_next(next_page_link, custom_headers:nil)
1233
- response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1234
- response.body unless response.nil?
1235
- end
1236
-
1237
- #
1238
- # List topics under a resource group
1239
- #
1240
- # List all the topics under a resource group
1241
- #
1242
- # @param next_page_link [String] The NextLink from the previous successful call
1243
- # to List operation.
1244
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1245
- # will be added to the HTTP request.
1246
- #
1247
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1248
- #
1249
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1250
- list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1251
- end
1252
-
1253
- #
1254
- # List topics under a resource group
1255
- #
1256
- # List all the topics under a resource group
1257
- #
1258
- # @param next_page_link [String] The NextLink from the previous successful call
1259
- # to List operation.
1260
- # @param [Hash{String => String}] A hash of custom headers that will be added
1261
- # to the HTTP request.
1262
- #
1263
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1264
- #
1265
- def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1266
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1267
-
1268
-
1269
- request_headers = {}
1270
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1271
-
1272
- # Set Headers
1273
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1274
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1275
- path_template = '{nextLink}'
1276
-
1277
- request_url = @base_url || @client.base_url
1278
-
1279
- options = {
1280
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1281
- skip_encoding_path_params: {'nextLink' => next_page_link},
1282
- headers: request_headers.merge(custom_headers || {}),
1283
- base_url: request_url
1284
- }
1285
- promise = @client.make_request_async(:get, path_template, options)
1286
-
1287
- promise = promise.then do |result|
1288
- http_response = result.response
1289
- status_code = http_response.status
1290
- response_content = http_response.body
1291
- unless status_code == 200
1292
- error_model = JSON.load(response_content)
1293
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1294
- end
1295
-
1296
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1297
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1298
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1299
- # Deserialize Response
1300
- if status_code == 200
1301
- begin
1302
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1303
- result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
1304
- result.body = @client.deserialize(result_mapper, parsed_response)
1305
- rescue Exception => e
1306
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1307
- end
1308
- end
1309
-
1310
- result
1311
- end
1312
-
1313
- promise.execute
1314
- end
1315
-
1316
- #
1317
- # List topics under an Azure subscription
1318
- #
1319
- # List all the topics under an Azure subscription
1320
- #
1321
- # @param filter [String] Filter the results using OData syntax.
1322
- # @param top [Integer] The number of results to return.
1323
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1324
- # will be added to the HTTP request.
1325
- #
1326
- # @return [TopicsListResult] which provide lazy access to pages of the
1327
- # response.
1328
- #
1329
- def list_by_subscription_as_lazy(filter:nil, top:nil, custom_headers:nil)
1330
- response = list_by_subscription_async(filter:filter, top:top, custom_headers:custom_headers).value!
1331
- unless response.nil?
1332
- page = response.body
1333
- page.next_method = Proc.new do |next_page_link|
1334
- list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1335
- end
1336
- page
1337
- end
1338
- end
1339
-
1340
- #
1341
- # List topics under a resource group
1342
- #
1343
- # List all the topics under a resource group
1344
- #
1345
- # @param resource_group_name [String] The name of the resource group within the
1346
- # user's subscription.
1347
- # @param filter [String] Filter the results using OData syntax.
1348
- # @param top [Integer] The number of results to return.
1349
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1350
- # will be added to the HTTP request.
1351
- #
1352
- # @return [TopicsListResult] which provide lazy access to pages of the
1353
- # response.
1354
- #
1355
- def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil)
1356
- response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
1357
- unless response.nil?
1358
- page = response.body
1359
- page.next_method = Proc.new do |next_page_link|
1360
- list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1361
- end
1362
- page
1363
- end
1364
- end
1365
-
1366
- end
1367
- 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::V2019_02_01_preview
7
+ #
8
+ # Azure EventGrid Management Client
9
+ #
10
+ class Topics
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Topics 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 a topic
26
+ #
27
+ # Get properties of a topic
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group within the
30
+ # user's subscription.
31
+ # @param topic_name [String] Name of the topic
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Topic] operation results.
36
+ #
37
+ def get(resource_group_name, topic_name, custom_headers:nil)
38
+ response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # Get a topic
44
+ #
45
+ # Get properties of a topic
46
+ #
47
+ # @param resource_group_name [String] The name of the resource group within the
48
+ # user's subscription.
49
+ # @param topic_name [String] Name of the topic
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def get_with_http_info(resource_group_name, topic_name, custom_headers:nil)
56
+ get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Get a topic
61
+ #
62
+ # Get properties of a topic
63
+ #
64
+ # @param resource_group_name [String] The name of the resource group within the
65
+ # user's subscription.
66
+ # @param topic_name [String] Name of the topic
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def get_async(resource_group_name, topic_name, custom_headers:nil)
73
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
+ fail ArgumentError, 'topic_name is nil' if topic_name.nil?
76
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
+
78
+
79
+ request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
81
+
82
+ # Set Headers
83
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
84
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
85
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
86
+
87
+ request_url = @base_url || @client.base_url
88
+
89
+ options = {
90
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
91
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
92
+ query_params: {'api-version' => @client.api_version},
93
+ headers: request_headers.merge(custom_headers || {}),
94
+ base_url: request_url
95
+ }
96
+ promise = @client.make_request_async(:get, path_template, options)
97
+
98
+ promise = promise.then do |result|
99
+ http_response = result.response
100
+ status_code = http_response.status
101
+ response_content = http_response.body
102
+ unless status_code == 200
103
+ error_model = JSON.load(response_content)
104
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
105
+ end
106
+
107
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
108
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
109
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
110
+ # Deserialize Response
111
+ if status_code == 200
112
+ begin
113
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
114
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
115
+ result.body = @client.deserialize(result_mapper, parsed_response)
116
+ rescue Exception => e
117
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
118
+ end
119
+ end
120
+
121
+ result
122
+ end
123
+
124
+ promise.execute
125
+ end
126
+
127
+ #
128
+ # Create a topic
129
+ #
130
+ # Asynchronously creates a new topic with the specified parameters.
131
+ #
132
+ # @param resource_group_name [String] The name of the resource group within the
133
+ # user's subscription.
134
+ # @param topic_name [String] Name of the topic
135
+ # @param topic_info [Topic] Topic information
136
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
137
+ # will be added to the HTTP request.
138
+ #
139
+ # @return [Topic] operation results.
140
+ #
141
+ def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
142
+ response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
143
+ response.body unless response.nil?
144
+ end
145
+
146
+ #
147
+ # @param resource_group_name [String] The name of the resource group within the
148
+ # user's subscription.
149
+ # @param topic_name [String] Name of the topic
150
+ # @param topic_info [Topic] Topic information
151
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
152
+ # will be added to the HTTP request.
153
+ #
154
+ # @return [Concurrent::Promise] promise which provides async access to http
155
+ # response.
156
+ #
157
+ def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
158
+ # Send request
159
+ promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers)
160
+
161
+ promise = promise.then do |response|
162
+ # Defining deserialization method.
163
+ deserialize_method = lambda do |parsed_response|
164
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
165
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
166
+ end
167
+
168
+ # Waiting for response.
169
+ @client.get_long_running_operation_result(response, deserialize_method)
170
+ end
171
+
172
+ promise
173
+ end
174
+
175
+ #
176
+ # Delete a topic
177
+ #
178
+ # Delete existing topic
179
+ #
180
+ # @param resource_group_name [String] The name of the resource group within the
181
+ # user's subscription.
182
+ # @param topic_name [String] Name of the topic
183
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
184
+ # will be added to the HTTP request.
185
+ #
186
+ def delete(resource_group_name, topic_name, custom_headers:nil)
187
+ response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
188
+ nil
189
+ end
190
+
191
+ #
192
+ # @param resource_group_name [String] The name of the resource group within the
193
+ # user's subscription.
194
+ # @param topic_name [String] Name of the topic
195
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
196
+ # will be added to the HTTP request.
197
+ #
198
+ # @return [Concurrent::Promise] promise which provides async access to http
199
+ # response.
200
+ #
201
+ def delete_async(resource_group_name, topic_name, custom_headers:nil)
202
+ # Send request
203
+ promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers)
204
+
205
+ promise = promise.then do |response|
206
+ # Defining deserialization method.
207
+ deserialize_method = lambda do |parsed_response|
208
+ end
209
+
210
+ # Waiting for response.
211
+ @client.get_long_running_operation_result(response, deserialize_method)
212
+ end
213
+
214
+ promise
215
+ end
216
+
217
+ #
218
+ # Update a topic
219
+ #
220
+ # Asynchronously updates a topic with the specified parameters.
221
+ #
222
+ # @param resource_group_name [String] The name of the resource group within the
223
+ # user's subscription.
224
+ # @param topic_name [String] Name of the topic
225
+ # @param topic_update_parameters [TopicUpdateParameters] Topic update
226
+ # information
227
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
228
+ # will be added to the HTTP request.
229
+ #
230
+ # @return [Topic] operation results.
231
+ #
232
+ def update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
233
+ response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
234
+ response.body unless response.nil?
235
+ end
236
+
237
+ #
238
+ # @param resource_group_name [String] The name of the resource group within the
239
+ # user's subscription.
240
+ # @param topic_name [String] Name of the topic
241
+ # @param topic_update_parameters [TopicUpdateParameters] Topic update
242
+ # information
243
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
244
+ # will be added to the HTTP request.
245
+ #
246
+ # @return [Concurrent::Promise] promise which provides async access to http
247
+ # response.
248
+ #
249
+ def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
250
+ # Send request
251
+ promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers)
252
+
253
+ promise = promise.then do |response|
254
+ # Defining deserialization method.
255
+ deserialize_method = lambda do |parsed_response|
256
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
257
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
258
+ end
259
+
260
+ # Waiting for response.
261
+ @client.get_long_running_operation_result(response, deserialize_method)
262
+ end
263
+
264
+ promise
265
+ end
266
+
267
+ #
268
+ # List topics under an Azure subscription
269
+ #
270
+ # List all the topics under an Azure subscription
271
+ #
272
+ # @param filter [String] Filter the results using OData syntax.
273
+ # @param top [Integer] The number of results to return.
274
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
275
+ # will be added to the HTTP request.
276
+ #
277
+ # @return [Array<Topic>] operation results.
278
+ #
279
+ def list_by_subscription(filter:nil, top:nil, custom_headers:nil)
280
+ first_page = list_by_subscription_as_lazy(filter:filter, top:top, custom_headers:custom_headers)
281
+ first_page.get_all_items
282
+ end
283
+
284
+ #
285
+ # List topics under an Azure subscription
286
+ #
287
+ # List all the topics under an Azure subscription
288
+ #
289
+ # @param filter [String] Filter the results using OData syntax.
290
+ # @param top [Integer] The number of results to return.
291
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
292
+ # will be added to the HTTP request.
293
+ #
294
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
295
+ #
296
+ def list_by_subscription_with_http_info(filter:nil, top:nil, custom_headers:nil)
297
+ list_by_subscription_async(filter:filter, top:top, custom_headers:custom_headers).value!
298
+ end
299
+
300
+ #
301
+ # List topics under an Azure subscription
302
+ #
303
+ # List all the topics under an Azure subscription
304
+ #
305
+ # @param filter [String] Filter the results using OData syntax.
306
+ # @param top [Integer] The number of results to return.
307
+ # @param [Hash{String => String}] A hash of custom headers that will be added
308
+ # to the HTTP request.
309
+ #
310
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
311
+ #
312
+ def list_by_subscription_async(filter:nil, top:nil, custom_headers:nil)
313
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
314
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
315
+
316
+
317
+ request_headers = {}
318
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
319
+
320
+ # Set Headers
321
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
322
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
323
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics'
324
+
325
+ request_url = @base_url || @client.base_url
326
+
327
+ options = {
328
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
329
+ path_params: {'subscriptionId' => @client.subscription_id},
330
+ query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top},
331
+ headers: request_headers.merge(custom_headers || {}),
332
+ base_url: request_url
333
+ }
334
+ promise = @client.make_request_async(:get, path_template, options)
335
+
336
+ promise = promise.then do |result|
337
+ http_response = result.response
338
+ status_code = http_response.status
339
+ response_content = http_response.body
340
+ unless status_code == 200
341
+ error_model = JSON.load(response_content)
342
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
343
+ end
344
+
345
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
346
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
347
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
348
+ # Deserialize Response
349
+ if status_code == 200
350
+ begin
351
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
352
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
353
+ result.body = @client.deserialize(result_mapper, parsed_response)
354
+ rescue Exception => e
355
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
356
+ end
357
+ end
358
+
359
+ result
360
+ end
361
+
362
+ promise.execute
363
+ end
364
+
365
+ #
366
+ # List topics under a resource group
367
+ #
368
+ # List all the topics under a resource group
369
+ #
370
+ # @param resource_group_name [String] The name of the resource group within the
371
+ # user's subscription.
372
+ # @param filter [String] Filter the results using OData syntax.
373
+ # @param top [Integer] The number of results to return.
374
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
375
+ # will be added to the HTTP request.
376
+ #
377
+ # @return [Array<Topic>] operation results.
378
+ #
379
+ def list_by_resource_group(resource_group_name, filter:nil, top:nil, custom_headers:nil)
380
+ first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers)
381
+ first_page.get_all_items
382
+ end
383
+
384
+ #
385
+ # List topics under a resource group
386
+ #
387
+ # List all the topics under a resource group
388
+ #
389
+ # @param resource_group_name [String] The name of the resource group within the
390
+ # user's subscription.
391
+ # @param filter [String] Filter the results using OData syntax.
392
+ # @param top [Integer] The number of results to return.
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 list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil)
399
+ list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
400
+ end
401
+
402
+ #
403
+ # List topics under a resource group
404
+ #
405
+ # List all the topics under a resource group
406
+ #
407
+ # @param resource_group_name [String] The name of the resource group within the
408
+ # user's subscription.
409
+ # @param filter [String] Filter the results using OData syntax.
410
+ # @param top [Integer] The number of results to return.
411
+ # @param [Hash{String => String}] A hash of custom headers that will be added
412
+ # to the HTTP request.
413
+ #
414
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
415
+ #
416
+ def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, custom_headers:nil)
417
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
418
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
419
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
420
+
421
+
422
+ request_headers = {}
423
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
424
+
425
+ # Set Headers
426
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
427
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
428
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics'
429
+
430
+ request_url = @base_url || @client.base_url
431
+
432
+ options = {
433
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
434
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
435
+ query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top},
436
+ headers: request_headers.merge(custom_headers || {}),
437
+ base_url: request_url
438
+ }
439
+ promise = @client.make_request_async(:get, path_template, options)
440
+
441
+ promise = promise.then do |result|
442
+ http_response = result.response
443
+ status_code = http_response.status
444
+ response_content = http_response.body
445
+ unless status_code == 200
446
+ error_model = JSON.load(response_content)
447
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
448
+ end
449
+
450
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
451
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
452
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
453
+ # Deserialize Response
454
+ if status_code == 200
455
+ begin
456
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
457
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
458
+ result.body = @client.deserialize(result_mapper, parsed_response)
459
+ rescue Exception => e
460
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
461
+ end
462
+ end
463
+
464
+ result
465
+ end
466
+
467
+ promise.execute
468
+ end
469
+
470
+ #
471
+ # List keys for a topic
472
+ #
473
+ # List the two keys used to publish to a topic
474
+ #
475
+ # @param resource_group_name [String] The name of the resource group within the
476
+ # user's subscription.
477
+ # @param topic_name [String] Name of the topic
478
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
479
+ # will be added to the HTTP request.
480
+ #
481
+ # @return [TopicSharedAccessKeys] operation results.
482
+ #
483
+ def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil)
484
+ response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
485
+ response.body unless response.nil?
486
+ end
487
+
488
+ #
489
+ # List keys for a topic
490
+ #
491
+ # List the two keys used to publish to a topic
492
+ #
493
+ # @param resource_group_name [String] The name of the resource group within the
494
+ # user's subscription.
495
+ # @param topic_name [String] Name of the topic
496
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
497
+ # will be added to the HTTP request.
498
+ #
499
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
500
+ #
501
+ def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil)
502
+ list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
503
+ end
504
+
505
+ #
506
+ # List keys for a topic
507
+ #
508
+ # List the two keys used to publish to a topic
509
+ #
510
+ # @param resource_group_name [String] The name of the resource group within the
511
+ # user's subscription.
512
+ # @param topic_name [String] Name of the topic
513
+ # @param [Hash{String => String}] A hash of custom headers that will be added
514
+ # to the HTTP request.
515
+ #
516
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
517
+ #
518
+ def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil)
519
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
520
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
521
+ fail ArgumentError, 'topic_name is nil' if topic_name.nil?
522
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
523
+
524
+
525
+ request_headers = {}
526
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
527
+
528
+ # Set Headers
529
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
530
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
531
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys'
532
+
533
+ request_url = @base_url || @client.base_url
534
+
535
+ options = {
536
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
537
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
538
+ query_params: {'api-version' => @client.api_version},
539
+ headers: request_headers.merge(custom_headers || {}),
540
+ base_url: request_url
541
+ }
542
+ promise = @client.make_request_async(:post, path_template, options)
543
+
544
+ promise = promise.then do |result|
545
+ http_response = result.response
546
+ status_code = http_response.status
547
+ response_content = http_response.body
548
+ unless status_code == 200
549
+ error_model = JSON.load(response_content)
550
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
551
+ end
552
+
553
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
554
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
555
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
556
+ # Deserialize Response
557
+ if status_code == 200
558
+ begin
559
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
560
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicSharedAccessKeys.mapper()
561
+ result.body = @client.deserialize(result_mapper, parsed_response)
562
+ rescue Exception => e
563
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
564
+ end
565
+ end
566
+
567
+ result
568
+ end
569
+
570
+ promise.execute
571
+ end
572
+
573
+ #
574
+ # Regenerate key for a topic
575
+ #
576
+ # Regenerate a shared access key for a topic
577
+ #
578
+ # @param resource_group_name [String] The name of the resource group within the
579
+ # user's subscription.
580
+ # @param topic_name [String] Name of the topic
581
+ # @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
582
+ # regenerate key
583
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
+ # will be added to the HTTP request.
585
+ #
586
+ # @return [TopicSharedAccessKeys] operation results.
587
+ #
588
+ def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
589
+ response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
590
+ response.body unless response.nil?
591
+ end
592
+
593
+ #
594
+ # Regenerate key for a topic
595
+ #
596
+ # Regenerate a shared access key for a topic
597
+ #
598
+ # @param resource_group_name [String] The name of the resource group within the
599
+ # user's subscription.
600
+ # @param topic_name [String] Name of the topic
601
+ # @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
602
+ # regenerate key
603
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
604
+ # will be added to the HTTP request.
605
+ #
606
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
607
+ #
608
+ def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
609
+ regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
610
+ end
611
+
612
+ #
613
+ # Regenerate key for a topic
614
+ #
615
+ # Regenerate a shared access key for a topic
616
+ #
617
+ # @param resource_group_name [String] The name of the resource group within the
618
+ # user's subscription.
619
+ # @param topic_name [String] Name of the topic
620
+ # @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
621
+ # regenerate key
622
+ # @param [Hash{String => String}] A hash of custom headers that will be added
623
+ # to the HTTP request.
624
+ #
625
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
626
+ #
627
+ def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
628
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
629
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
630
+ fail ArgumentError, 'topic_name is nil' if topic_name.nil?
631
+ fail ArgumentError, 'regenerate_key_request is nil' if regenerate_key_request.nil?
632
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
633
+
634
+
635
+ request_headers = {}
636
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
637
+
638
+ # Set Headers
639
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
640
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
641
+
642
+ # Serialize Request
643
+ request_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicRegenerateKeyRequest.mapper()
644
+ request_content = @client.serialize(request_mapper, regenerate_key_request)
645
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
646
+
647
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey'
648
+
649
+ request_url = @base_url || @client.base_url
650
+
651
+ options = {
652
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
653
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
654
+ query_params: {'api-version' => @client.api_version},
655
+ body: request_content,
656
+ headers: request_headers.merge(custom_headers || {}),
657
+ base_url: request_url
658
+ }
659
+ promise = @client.make_request_async(:post, path_template, options)
660
+
661
+ promise = promise.then do |result|
662
+ http_response = result.response
663
+ status_code = http_response.status
664
+ response_content = http_response.body
665
+ unless status_code == 200
666
+ error_model = JSON.load(response_content)
667
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
668
+ end
669
+
670
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
671
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
672
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
673
+ # Deserialize Response
674
+ if status_code == 200
675
+ begin
676
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
677
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicSharedAccessKeys.mapper()
678
+ result.body = @client.deserialize(result_mapper, parsed_response)
679
+ rescue Exception => e
680
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
681
+ end
682
+ end
683
+
684
+ result
685
+ end
686
+
687
+ promise.execute
688
+ end
689
+
690
+ #
691
+ # List topic event types
692
+ #
693
+ # List event types for a topic
694
+ #
695
+ # @param resource_group_name [String] The name of the resource group within the
696
+ # user's subscription.
697
+ # @param provider_namespace [String] Namespace of the provider of the topic
698
+ # @param resource_type_name [String] Name of the topic type
699
+ # @param resource_name [String] Name of the topic
700
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
701
+ # will be added to the HTTP request.
702
+ #
703
+ # @return [EventTypesListResult] operation results.
704
+ #
705
+ def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
706
+ response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
707
+ response.body unless response.nil?
708
+ end
709
+
710
+ #
711
+ # List topic event types
712
+ #
713
+ # List event types for a topic
714
+ #
715
+ # @param resource_group_name [String] The name of the resource group within the
716
+ # user's subscription.
717
+ # @param provider_namespace [String] Namespace of the provider of the topic
718
+ # @param resource_type_name [String] Name of the topic type
719
+ # @param resource_name [String] Name of the topic
720
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
721
+ # will be added to the HTTP request.
722
+ #
723
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
724
+ #
725
+ def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
726
+ list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
727
+ end
728
+
729
+ #
730
+ # List topic event types
731
+ #
732
+ # List event types for a topic
733
+ #
734
+ # @param resource_group_name [String] The name of the resource group within the
735
+ # user's subscription.
736
+ # @param provider_namespace [String] Namespace of the provider of the topic
737
+ # @param resource_type_name [String] Name of the topic type
738
+ # @param resource_name [String] Name of the topic
739
+ # @param [Hash{String => String}] A hash of custom headers that will be added
740
+ # to the HTTP request.
741
+ #
742
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
743
+ #
744
+ def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
745
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
746
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
747
+ fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
748
+ fail ArgumentError, 'resource_type_name is nil' if resource_type_name.nil?
749
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
750
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
751
+
752
+
753
+ request_headers = {}
754
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
755
+
756
+ # Set Headers
757
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
758
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
759
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes'
760
+
761
+ request_url = @base_url || @client.base_url
762
+
763
+ options = {
764
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
765
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'providerNamespace' => provider_namespace,'resourceTypeName' => resource_type_name,'resourceName' => resource_name},
766
+ query_params: {'api-version' => @client.api_version},
767
+ headers: request_headers.merge(custom_headers || {}),
768
+ base_url: request_url
769
+ }
770
+ promise = @client.make_request_async(:get, path_template, options)
771
+
772
+ promise = promise.then do |result|
773
+ http_response = result.response
774
+ status_code = http_response.status
775
+ response_content = http_response.body
776
+ unless status_code == 200
777
+ error_model = JSON.load(response_content)
778
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
779
+ end
780
+
781
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
782
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
783
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
784
+ # Deserialize Response
785
+ if status_code == 200
786
+ begin
787
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
788
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::EventTypesListResult.mapper()
789
+ result.body = @client.deserialize(result_mapper, parsed_response)
790
+ rescue Exception => e
791
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
792
+ end
793
+ end
794
+
795
+ result
796
+ end
797
+
798
+ promise.execute
799
+ end
800
+
801
+ #
802
+ # Create a topic
803
+ #
804
+ # Asynchronously creates a new topic with the specified parameters.
805
+ #
806
+ # @param resource_group_name [String] The name of the resource group within the
807
+ # user's subscription.
808
+ # @param topic_name [String] Name of the topic
809
+ # @param topic_info [Topic] Topic information
810
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
811
+ # will be added to the HTTP request.
812
+ #
813
+ # @return [Topic] operation results.
814
+ #
815
+ def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
816
+ response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
817
+ response.body unless response.nil?
818
+ end
819
+
820
+ #
821
+ # Create a topic
822
+ #
823
+ # Asynchronously creates a new topic with the specified parameters.
824
+ #
825
+ # @param resource_group_name [String] The name of the resource group within the
826
+ # user's subscription.
827
+ # @param topic_name [String] Name of the topic
828
+ # @param topic_info [Topic] Topic information
829
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
830
+ # will be added to the HTTP request.
831
+ #
832
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
833
+ #
834
+ def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil)
835
+ begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
836
+ end
837
+
838
+ #
839
+ # Create a topic
840
+ #
841
+ # Asynchronously creates a new topic with the specified parameters.
842
+ #
843
+ # @param resource_group_name [String] The name of the resource group within the
844
+ # user's subscription.
845
+ # @param topic_name [String] Name of the topic
846
+ # @param topic_info [Topic] Topic information
847
+ # @param [Hash{String => String}] A hash of custom headers that will be added
848
+ # to the HTTP request.
849
+ #
850
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
851
+ #
852
+ def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
853
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
854
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
855
+ fail ArgumentError, 'topic_name is nil' if topic_name.nil?
856
+ fail ArgumentError, 'topic_info is nil' if topic_info.nil?
857
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
858
+
859
+
860
+ request_headers = {}
861
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
862
+
863
+ # Set Headers
864
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
865
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
866
+
867
+ # Serialize Request
868
+ request_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
869
+ request_content = @client.serialize(request_mapper, topic_info)
870
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
871
+
872
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
873
+
874
+ request_url = @base_url || @client.base_url
875
+
876
+ options = {
877
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
878
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
879
+ query_params: {'api-version' => @client.api_version},
880
+ body: request_content,
881
+ headers: request_headers.merge(custom_headers || {}),
882
+ base_url: request_url
883
+ }
884
+ promise = @client.make_request_async(:put, path_template, options)
885
+
886
+ promise = promise.then do |result|
887
+ http_response = result.response
888
+ status_code = http_response.status
889
+ response_content = http_response.body
890
+ unless status_code == 201
891
+ error_model = JSON.load(response_content)
892
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
893
+ end
894
+
895
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
896
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
897
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
898
+ # Deserialize Response
899
+ if status_code == 201
900
+ begin
901
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
902
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
903
+ result.body = @client.deserialize(result_mapper, parsed_response)
904
+ rescue Exception => e
905
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
906
+ end
907
+ end
908
+
909
+ result
910
+ end
911
+
912
+ promise.execute
913
+ end
914
+
915
+ #
916
+ # Delete a topic
917
+ #
918
+ # Delete existing topic
919
+ #
920
+ # @param resource_group_name [String] The name of the resource group within the
921
+ # user's subscription.
922
+ # @param topic_name [String] Name of the topic
923
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
924
+ # will be added to the HTTP request.
925
+ #
926
+ #
927
+ def begin_delete(resource_group_name, topic_name, custom_headers:nil)
928
+ response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
929
+ nil
930
+ end
931
+
932
+ #
933
+ # Delete a topic
934
+ #
935
+ # Delete existing topic
936
+ #
937
+ # @param resource_group_name [String] The name of the resource group within the
938
+ # user's subscription.
939
+ # @param topic_name [String] Name of the topic
940
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
941
+ # will be added to the HTTP request.
942
+ #
943
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
944
+ #
945
+ def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil)
946
+ begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
947
+ end
948
+
949
+ #
950
+ # Delete a topic
951
+ #
952
+ # Delete existing topic
953
+ #
954
+ # @param resource_group_name [String] The name of the resource group within the
955
+ # user's subscription.
956
+ # @param topic_name [String] Name of the topic
957
+ # @param [Hash{String => String}] A hash of custom headers that will be added
958
+ # to the HTTP request.
959
+ #
960
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
961
+ #
962
+ def begin_delete_async(resource_group_name, topic_name, custom_headers:nil)
963
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
964
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
965
+ fail ArgumentError, 'topic_name is nil' if topic_name.nil?
966
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
967
+
968
+
969
+ request_headers = {}
970
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
971
+
972
+ # Set Headers
973
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
974
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
975
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
976
+
977
+ request_url = @base_url || @client.base_url
978
+
979
+ options = {
980
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
981
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
982
+ query_params: {'api-version' => @client.api_version},
983
+ headers: request_headers.merge(custom_headers || {}),
984
+ base_url: request_url
985
+ }
986
+ promise = @client.make_request_async(:delete, path_template, options)
987
+
988
+ promise = promise.then do |result|
989
+ http_response = result.response
990
+ status_code = http_response.status
991
+ response_content = http_response.body
992
+ unless status_code == 202 || status_code == 204
993
+ error_model = JSON.load(response_content)
994
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
995
+ end
996
+
997
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
998
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
999
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1000
+
1001
+ result
1002
+ end
1003
+
1004
+ promise.execute
1005
+ end
1006
+
1007
+ #
1008
+ # Update a topic
1009
+ #
1010
+ # Asynchronously updates a topic with the specified parameters.
1011
+ #
1012
+ # @param resource_group_name [String] The name of the resource group within the
1013
+ # user's subscription.
1014
+ # @param topic_name [String] Name of the topic
1015
+ # @param topic_update_parameters [TopicUpdateParameters] Topic update
1016
+ # information
1017
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1018
+ # will be added to the HTTP request.
1019
+ #
1020
+ # @return [Topic] operation results.
1021
+ #
1022
+ def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1023
+ response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
1024
+ response.body unless response.nil?
1025
+ end
1026
+
1027
+ #
1028
+ # Update a topic
1029
+ #
1030
+ # Asynchronously updates a topic with the specified parameters.
1031
+ #
1032
+ # @param resource_group_name [String] The name of the resource group within the
1033
+ # user's subscription.
1034
+ # @param topic_name [String] Name of the topic
1035
+ # @param topic_update_parameters [TopicUpdateParameters] Topic update
1036
+ # information
1037
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1038
+ # will be added to the HTTP request.
1039
+ #
1040
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1041
+ #
1042
+ def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1043
+ begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
1044
+ end
1045
+
1046
+ #
1047
+ # Update a topic
1048
+ #
1049
+ # Asynchronously updates a topic with the specified parameters.
1050
+ #
1051
+ # @param resource_group_name [String] The name of the resource group within the
1052
+ # user's subscription.
1053
+ # @param topic_name [String] Name of the topic
1054
+ # @param topic_update_parameters [TopicUpdateParameters] Topic update
1055
+ # information
1056
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1057
+ # to the HTTP request.
1058
+ #
1059
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1060
+ #
1061
+ def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
1062
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1063
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1064
+ fail ArgumentError, 'topic_name is nil' if topic_name.nil?
1065
+ fail ArgumentError, 'topic_update_parameters is nil' if topic_update_parameters.nil?
1066
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1067
+
1068
+
1069
+ request_headers = {}
1070
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1071
+
1072
+ # Set Headers
1073
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1074
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1075
+
1076
+ # Serialize Request
1077
+ request_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicUpdateParameters.mapper()
1078
+ request_content = @client.serialize(request_mapper, topic_update_parameters)
1079
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1080
+
1081
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
1082
+
1083
+ request_url = @base_url || @client.base_url
1084
+
1085
+ options = {
1086
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1087
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
1088
+ query_params: {'api-version' => @client.api_version},
1089
+ body: request_content,
1090
+ headers: request_headers.merge(custom_headers || {}),
1091
+ base_url: request_url
1092
+ }
1093
+ promise = @client.make_request_async(:patch, path_template, options)
1094
+
1095
+ promise = promise.then do |result|
1096
+ http_response = result.response
1097
+ status_code = http_response.status
1098
+ response_content = http_response.body
1099
+ unless status_code == 201
1100
+ error_model = JSON.load(response_content)
1101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1102
+ end
1103
+
1104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1107
+ # Deserialize Response
1108
+ if status_code == 201
1109
+ begin
1110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1111
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::Topic.mapper()
1112
+ result.body = @client.deserialize(result_mapper, parsed_response)
1113
+ rescue Exception => e
1114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1115
+ end
1116
+ end
1117
+
1118
+ result
1119
+ end
1120
+
1121
+ promise.execute
1122
+ end
1123
+
1124
+ #
1125
+ # List topics under an Azure subscription
1126
+ #
1127
+ # List all the topics under an Azure subscription
1128
+ #
1129
+ # @param next_page_link [String] The NextLink from the previous successful call
1130
+ # to List operation.
1131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1132
+ # will be added to the HTTP request.
1133
+ #
1134
+ # @return [TopicsListResult] operation results.
1135
+ #
1136
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
1137
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1138
+ response.body unless response.nil?
1139
+ end
1140
+
1141
+ #
1142
+ # List topics under an Azure subscription
1143
+ #
1144
+ # List all the topics under an Azure subscription
1145
+ #
1146
+ # @param next_page_link [String] The NextLink from the previous successful call
1147
+ # to List operation.
1148
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1149
+ # will be added to the HTTP request.
1150
+ #
1151
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1152
+ #
1153
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
1154
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1155
+ end
1156
+
1157
+ #
1158
+ # List topics under an Azure subscription
1159
+ #
1160
+ # List all the topics under an Azure subscription
1161
+ #
1162
+ # @param next_page_link [String] The NextLink from the previous successful call
1163
+ # to List operation.
1164
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1165
+ # to the HTTP request.
1166
+ #
1167
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1168
+ #
1169
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
1170
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1171
+
1172
+
1173
+ request_headers = {}
1174
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1175
+
1176
+ # Set Headers
1177
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1178
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1179
+ path_template = '{nextLink}'
1180
+
1181
+ request_url = @base_url || @client.base_url
1182
+
1183
+ options = {
1184
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1185
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1186
+ headers: request_headers.merge(custom_headers || {}),
1187
+ base_url: request_url
1188
+ }
1189
+ promise = @client.make_request_async(:get, path_template, options)
1190
+
1191
+ promise = promise.then do |result|
1192
+ http_response = result.response
1193
+ status_code = http_response.status
1194
+ response_content = http_response.body
1195
+ unless status_code == 200
1196
+ error_model = JSON.load(response_content)
1197
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1198
+ end
1199
+
1200
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1201
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1202
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1203
+ # Deserialize Response
1204
+ if status_code == 200
1205
+ begin
1206
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1207
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
1208
+ result.body = @client.deserialize(result_mapper, parsed_response)
1209
+ rescue Exception => e
1210
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1211
+ end
1212
+ end
1213
+
1214
+ result
1215
+ end
1216
+
1217
+ promise.execute
1218
+ end
1219
+
1220
+ #
1221
+ # List topics under a resource group
1222
+ #
1223
+ # List all the topics under a resource group
1224
+ #
1225
+ # @param next_page_link [String] The NextLink from the previous successful call
1226
+ # to List operation.
1227
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1228
+ # will be added to the HTTP request.
1229
+ #
1230
+ # @return [TopicsListResult] operation results.
1231
+ #
1232
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1233
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1234
+ response.body unless response.nil?
1235
+ end
1236
+
1237
+ #
1238
+ # List topics under a resource group
1239
+ #
1240
+ # List all the topics under a resource group
1241
+ #
1242
+ # @param next_page_link [String] The NextLink from the previous successful call
1243
+ # to List operation.
1244
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1245
+ # will be added to the HTTP request.
1246
+ #
1247
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1248
+ #
1249
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1250
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1251
+ end
1252
+
1253
+ #
1254
+ # List topics under a resource group
1255
+ #
1256
+ # List all the topics under a resource group
1257
+ #
1258
+ # @param next_page_link [String] The NextLink from the previous successful call
1259
+ # to List operation.
1260
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1261
+ # to the HTTP request.
1262
+ #
1263
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1264
+ #
1265
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1266
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1267
+
1268
+
1269
+ request_headers = {}
1270
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1271
+
1272
+ # Set Headers
1273
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1274
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1275
+ path_template = '{nextLink}'
1276
+
1277
+ request_url = @base_url || @client.base_url
1278
+
1279
+ options = {
1280
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1281
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1282
+ headers: request_headers.merge(custom_headers || {}),
1283
+ base_url: request_url
1284
+ }
1285
+ promise = @client.make_request_async(:get, path_template, options)
1286
+
1287
+ promise = promise.then do |result|
1288
+ http_response = result.response
1289
+ status_code = http_response.status
1290
+ response_content = http_response.body
1291
+ unless status_code == 200
1292
+ error_model = JSON.load(response_content)
1293
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1294
+ end
1295
+
1296
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1297
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1298
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1299
+ # Deserialize Response
1300
+ if status_code == 200
1301
+ begin
1302
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1303
+ result_mapper = Azure::EventGrid::Mgmt::V2019_02_01_preview::Models::TopicsListResult.mapper()
1304
+ result.body = @client.deserialize(result_mapper, parsed_response)
1305
+ rescue Exception => e
1306
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1307
+ end
1308
+ end
1309
+
1310
+ result
1311
+ end
1312
+
1313
+ promise.execute
1314
+ end
1315
+
1316
+ #
1317
+ # List topics under an Azure subscription
1318
+ #
1319
+ # List all the topics under an Azure subscription
1320
+ #
1321
+ # @param filter [String] Filter the results using OData syntax.
1322
+ # @param top [Integer] The number of results to return.
1323
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1324
+ # will be added to the HTTP request.
1325
+ #
1326
+ # @return [TopicsListResult] which provide lazy access to pages of the
1327
+ # response.
1328
+ #
1329
+ def list_by_subscription_as_lazy(filter:nil, top:nil, custom_headers:nil)
1330
+ response = list_by_subscription_async(filter:filter, top:top, custom_headers:custom_headers).value!
1331
+ unless response.nil?
1332
+ page = response.body
1333
+ page.next_method = Proc.new do |next_page_link|
1334
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1335
+ end
1336
+ page
1337
+ end
1338
+ end
1339
+
1340
+ #
1341
+ # List topics under a resource group
1342
+ #
1343
+ # List all the topics under a resource group
1344
+ #
1345
+ # @param resource_group_name [String] The name of the resource group within the
1346
+ # user's subscription.
1347
+ # @param filter [String] Filter the results using OData syntax.
1348
+ # @param top [Integer] The number of results to return.
1349
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1350
+ # will be added to the HTTP request.
1351
+ #
1352
+ # @return [TopicsListResult] which provide lazy access to pages of the
1353
+ # response.
1354
+ #
1355
+ def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil)
1356
+ response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
1357
+ unless response.nil?
1358
+ page = response.body
1359
+ page.next_method = Proc.new do |next_page_link|
1360
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1361
+ end
1362
+ page
1363
+ end
1364
+ end
1365
+
1366
+ end
1367
+ end