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