azure_mgmt_event_grid 0.17.10 → 0.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +20 -20
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid.rb +56 -56
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1841 -1841
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/endpoint_type.rb +15 -15
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +134 -134
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +72 -72
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -20
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +81 -81
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +81 -81
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb +17 -17
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +120 -120
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb +946 -946
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid.rb +58 -58
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1841 -1841
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +136 -136
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +47 -47
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -20
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +83 -83
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +81 -81
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb +17 -17
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
- data/lib/2018-01-01/generated/azure_mgmt_event_grid.rb +57 -57
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +1837 -1837
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +136 -136
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +47 -47
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -20
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +83 -83
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid.rb +68 -68
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1837 -1837
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +180 -180
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +49 -49
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +125 -125
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +65 -65
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +144 -144
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2018-05-01-preview/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid.rb +91 -91
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/domain_topics.rb +235 -235
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/domains.rb +1002 -1002
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1947 -1947
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +70 -70
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain.rb +140 -140
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +62 -62
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +55 -55
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +55 -55
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -189
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +49 -49
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -137
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +65 -65
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +144 -144
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2018-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
- data/lib/2019-01-01/generated/azure_mgmt_event_grid.rb +62 -62
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +1837 -1837
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +165 -165
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +49 -49
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +98 -98
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +112 -112
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +55 -55
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_type.rb +95 -95
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +75 -75
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +55 -55
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2019-01-01/generated/azure_mgmt_event_grid/topics.rb +1113 -1113
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid.rb +93 -93
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +663 -663
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/domains.rb +1256 -1256
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +3368 -3368
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -74
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain.rb +142 -142
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -75
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -20
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -98
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -98
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -189
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +50 -50
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -137
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -98
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +106 -106
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +67 -67
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -63
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +144 -144
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -98
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topics.rb +1367 -1367
- data/lib/2019-06-01/generated/azure_mgmt_event_grid.rb +87 -87
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/domain_topics.rb +699 -699
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/domains.rb +1328 -1328
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +3648 -3648
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -74
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain.rb +112 -112
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -75
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -20
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -98
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -98
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +176 -176
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +50 -50
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +124 -124
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -98
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_type.rb +106 -106
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -63
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic.rb +112 -112
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -98
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +75 -75
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2019-06-01/generated/azure_mgmt_event_grid/topics.rb +1439 -1439
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid.rb +95 -95
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +699 -699
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/domains.rb +1328 -1328
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +1 -1
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +3648 -3648
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -74
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb +86 -86
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -69
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -50
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain.rb +154 -154
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -20
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -46
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -57
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -75
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -20
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -98
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +54 -54
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -98
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -17
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -62
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -189
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +52 -52
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -120
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -47
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -21
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -137
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -98
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +106 -106
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -55
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -64
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -17
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -49
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +50 -50
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +67 -67
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -130
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -69
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -77
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -69
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -69
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -77
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +80 -80
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -79
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -55
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +80 -80
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -16
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -57
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -63
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/service_bus_topic_event_subscription_destination.rb +64 -64
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -74
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -75
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -77
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -77
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -77
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -77
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -77
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +156 -156
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -20
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -46
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -57
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +139 -139
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -20
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -55
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +54 -54
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -98
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -92
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +122 -122
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -9
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/operations.rb +118 -118
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +305 -305
- data/lib/2020-01-01-preview/generated/azure_mgmt_event_grid/topics.rb +1439 -1439
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid.rb +80 -21
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/domain_topics.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/domains.rb +1 -1
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_channels.rb +658 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +42 -1
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/extension_topics.rb +141 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/connection_state.rb +69 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/dead_letter_with_resource_identity.rb +66 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/delivery_with_resource_identity.rb +67 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain.rb +57 -9
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_topic.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +39 -12
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/domains_list_result.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel.rb +158 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_destination.rb +75 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_filter.rb +58 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_provisioning_state.rb +20 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channel_source.rb +48 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_channels_list_result.rb +98 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +41 -2
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +1 -1
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_identity.rb +61 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_identity_type.rb +16 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +41 -2
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_type.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/extension_topic.rb +86 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/identity_info.rb +96 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/identity_type.rb +18 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/inbound_ip_rule.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/input_schema.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/ip_action_type.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/json_field.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/operation.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace.rb +126 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_provisioning_state.rb +20 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_regenerate_key_request.rb +46 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_shared_access_keys.rb +57 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespace_update_parameters.rb +54 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_namespaces_list_result.rb +98 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration.rb +264 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_event_types_list_result.rb +68 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_provisioning_state.rb +20 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_update_parameters.rb +137 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registration_visibility_state.rb +17 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_registrations_list_result.rb +99 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic.rb +153 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_activation_state.rb +17 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_provisioning_state.rb +20 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_readiness_state.rb +18 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_type.rb +134 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_type_authorization_state.rb +17 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_types_list_result.rb +55 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topic_update_parameters.rb +54 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/partner_topics_list_result.rb +98 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/persisted_connection_status.rb +18 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_endpoint.rb +46 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_endpoint_connection.rb +121 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_endpoint_connection_list_result.rb +100 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_link_resource.rb +128 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/private_link_resources_list_result.rb +99 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/public_network_access.rb +16 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource_provisioning_state.rb +20 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/resource_sku.rb +47 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/retry_policy.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/service_bus_topic_event_subscription_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/sku.rb +16 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/system_topic.rb +134 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/system_topic_update_parameters.rb +54 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/system_topics_list_result.rb +98 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic.rb +56 -9
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +37 -10
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/user_identity_properties.rb +57 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/module_definition.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/operations.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_namespaces.rb +1333 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_registrations.rb +1074 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_topic_event_subscriptions.rb +1043 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/partner_topics.rb +1102 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/private_endpoint_connections.rb +791 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/private_link_resources.rb +423 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/system_topic_event_subscriptions.rb +1039 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/system_topics.rb +1128 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/topic_types.rb +0 -0
- data/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/topics.rb +1 -1
- data/lib/2020-06-01/generated/azure_mgmt_event_grid.rb +108 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/domain_topics.rb +699 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/domains.rb +1328 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/event_grid_management_client.rb +161 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +3648 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/advanced_filter.rb +74 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb +86 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/bool_equals_advanced_filter.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/connection_state.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/dead_letter_destination.rb +50 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain.rb +212 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain_provisioning_state.rb +20 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain_regenerate_key_request.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain_shared_access_keys.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain_topic.rb +75 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain_topic_provisioning_state.rb +20 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain_topics_list_result.rb +98 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domain_update_parameters.rb +91 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/domains_list_result.rb +98 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_delivery_schema.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +62 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_subscription.rb +189 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +52 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +120 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +21 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +137 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +98 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_type.rb +106 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/hybrid_connection_event_subscription_destination.rb +64 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/inbound_ip_rule.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/input_schema.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/input_schema_mapping.rb +49 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/ip_action_type.rb +15 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/json_field.rb +50 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/json_field_with_default.rb +67 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb +130 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_advanced_filter.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/number_greater_than_or_equals_advanced_filter.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/number_in_advanced_filter.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/number_less_than_advanced_filter.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/number_less_than_or_equals_advanced_filter.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/number_not_in_advanced_filter.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/operation.rb +80 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/operation_info.rb +79 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/operations_list_result.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/persisted_connection_status.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/private_endpoint.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/private_endpoint_connection.rb +121 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/private_endpoint_connection_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/private_link_resource.rb +128 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/private_link_resources_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/public_network_access.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/resource.rb +80 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/resource_provisioning_state.rb +20 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/retry_policy.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/service_bus_queue_event_subscription_destination.rb +63 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/service_bus_topic_event_subscription_destination.rb +64 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/storage_blob_dead_letter_destination.rb +74 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/storage_queue_event_subscription_destination.rb +75 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/string_begins_with_advanced_filter.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/string_ends_with_advanced_filter.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/string_in_advanced_filter.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/string_not_in_advanced_filter.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic.rb +213 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic_type_info.rb +150 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topic_update_parameters.rb +91 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/topics_list_result.rb +98 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/tracked_resource.rb +92 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +122 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/module_definition.rb +9 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/operations.rb +118 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/private_endpoint_connections.rb +791 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/private_link_resources.rb +423 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/topic_types.rb +305 -0
- data/lib/2020-06-01/generated/azure_mgmt_event_grid/topics.rb +1439 -0
- data/lib/azure_mgmt_event_grid.rb +6 -5
- data/lib/module_definition.rb +7 -7
- data/lib/profiles/latest/eventgrid_latest_profile_client.rb +40 -40
- data/lib/profiles/latest/eventgrid_module_definition.rb +8 -8
- data/lib/profiles/latest/modules/eventgrid_profile_module.rb +195 -155
- data/lib/version.rb +1 -1
- metadata +148 -5
@@ -1,1113 +1,1113 @@
|
|
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::V2018_01_01
|
7
|
-
#
|
8
|
-
# Azure EventGrid Management Client
|
9
|
-
#
|
10
|
-
class Topics
|
11
|
-
include MsRestAzure
|
12
|
-
|
13
|
-
#
|
14
|
-
# Creates and initializes a new instance of the Topics class.
|
15
|
-
# @param client service class for accessing basic functionality.
|
16
|
-
#
|
17
|
-
def initialize(client)
|
18
|
-
@client = client
|
19
|
-
end
|
20
|
-
|
21
|
-
# @return [EventGridManagementClient] reference to the EventGridManagementClient
|
22
|
-
attr_reader :client
|
23
|
-
|
24
|
-
#
|
25
|
-
# Get a topic
|
26
|
-
#
|
27
|
-
# Get properties of a topic
|
28
|
-
#
|
29
|
-
# @param resource_group_name [String] The name of the resource group within the
|
30
|
-
# user's subscription.
|
31
|
-
# @param topic_name [String] Name of the topic
|
32
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
-
# will be added to the HTTP request.
|
34
|
-
#
|
35
|
-
# @return [Topic] operation results.
|
36
|
-
#
|
37
|
-
def get(resource_group_name, topic_name, custom_headers:nil)
|
38
|
-
response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
39
|
-
response.body unless response.nil?
|
40
|
-
end
|
41
|
-
|
42
|
-
#
|
43
|
-
# Get a topic
|
44
|
-
#
|
45
|
-
# Get properties of a topic
|
46
|
-
#
|
47
|
-
# @param resource_group_name [String] The name of the resource group within the
|
48
|
-
# user's subscription.
|
49
|
-
# @param topic_name [String] Name of the topic
|
50
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
-
# will be added to the HTTP request.
|
52
|
-
#
|
53
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
-
#
|
55
|
-
def get_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
56
|
-
get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
57
|
-
end
|
58
|
-
|
59
|
-
#
|
60
|
-
# Get a topic
|
61
|
-
#
|
62
|
-
# Get properties of a topic
|
63
|
-
#
|
64
|
-
# @param resource_group_name [String] The name of the resource group within the
|
65
|
-
# user's subscription.
|
66
|
-
# @param topic_name [String] Name of the topic
|
67
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
-
# to the HTTP request.
|
69
|
-
#
|
70
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
-
#
|
72
|
-
def get_async(resource_group_name, topic_name, custom_headers:nil)
|
73
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
75
|
-
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
76
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
|
-
|
78
|
-
|
79
|
-
request_headers = {}
|
80
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
-
|
82
|
-
# Set Headers
|
83
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
86
|
-
|
87
|
-
request_url = @base_url || @client.base_url
|
88
|
-
|
89
|
-
options = {
|
90
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
92
|
-
query_params: {'api-version' => @client.api_version},
|
93
|
-
headers: request_headers.merge(custom_headers || {}),
|
94
|
-
base_url: request_url
|
95
|
-
}
|
96
|
-
promise = @client.make_request_async(:get, path_template, options)
|
97
|
-
|
98
|
-
promise = promise.then do |result|
|
99
|
-
http_response = result.response
|
100
|
-
status_code = http_response.status
|
101
|
-
response_content = http_response.body
|
102
|
-
unless status_code == 200
|
103
|
-
error_model = JSON.load(response_content)
|
104
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
105
|
-
end
|
106
|
-
|
107
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
110
|
-
# Deserialize Response
|
111
|
-
if status_code == 200
|
112
|
-
begin
|
113
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
115
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
|
-
rescue Exception => e
|
117
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
result
|
122
|
-
end
|
123
|
-
|
124
|
-
promise.execute
|
125
|
-
end
|
126
|
-
|
127
|
-
#
|
128
|
-
# Create a topic
|
129
|
-
#
|
130
|
-
# Asynchronously creates a new topic with the specified parameters.
|
131
|
-
#
|
132
|
-
# @param resource_group_name [String] The name of the resource group within the
|
133
|
-
# user's subscription.
|
134
|
-
# @param topic_name [String] Name of the topic
|
135
|
-
# @param topic_info [Topic] Topic information
|
136
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
|
-
# will be added to the HTTP request.
|
138
|
-
#
|
139
|
-
# @return [Topic] operation results.
|
140
|
-
#
|
141
|
-
def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
142
|
-
response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
143
|
-
response.body unless response.nil?
|
144
|
-
end
|
145
|
-
|
146
|
-
#
|
147
|
-
# @param resource_group_name [String] The name of the resource group within the
|
148
|
-
# user's subscription.
|
149
|
-
# @param topic_name [String] Name of the topic
|
150
|
-
# @param topic_info [Topic] Topic information
|
151
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
|
-
# will be added to the HTTP request.
|
153
|
-
#
|
154
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
155
|
-
# response.
|
156
|
-
#
|
157
|
-
def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
158
|
-
# Send request
|
159
|
-
promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers)
|
160
|
-
|
161
|
-
promise = promise.then do |response|
|
162
|
-
# Defining deserialization method.
|
163
|
-
deserialize_method = lambda do |parsed_response|
|
164
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
165
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
166
|
-
end
|
167
|
-
|
168
|
-
# Waiting for response.
|
169
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
170
|
-
end
|
171
|
-
|
172
|
-
promise
|
173
|
-
end
|
174
|
-
|
175
|
-
#
|
176
|
-
# Delete a topic
|
177
|
-
#
|
178
|
-
# Delete existing topic
|
179
|
-
#
|
180
|
-
# @param resource_group_name [String] The name of the resource group within the
|
181
|
-
# user's subscription.
|
182
|
-
# @param topic_name [String] Name of the topic
|
183
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
184
|
-
# will be added to the HTTP request.
|
185
|
-
#
|
186
|
-
def delete(resource_group_name, topic_name, custom_headers:nil)
|
187
|
-
response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
188
|
-
nil
|
189
|
-
end
|
190
|
-
|
191
|
-
#
|
192
|
-
# @param resource_group_name [String] The name of the resource group within the
|
193
|
-
# user's subscription.
|
194
|
-
# @param topic_name [String] Name of the topic
|
195
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
196
|
-
# will be added to the HTTP request.
|
197
|
-
#
|
198
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
199
|
-
# response.
|
200
|
-
#
|
201
|
-
def delete_async(resource_group_name, topic_name, custom_headers:nil)
|
202
|
-
# Send request
|
203
|
-
promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers)
|
204
|
-
|
205
|
-
promise = promise.then do |response|
|
206
|
-
# Defining deserialization method.
|
207
|
-
deserialize_method = lambda do |parsed_response|
|
208
|
-
end
|
209
|
-
|
210
|
-
# Waiting for response.
|
211
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
212
|
-
end
|
213
|
-
|
214
|
-
promise
|
215
|
-
end
|
216
|
-
|
217
|
-
#
|
218
|
-
# Update a topic
|
219
|
-
#
|
220
|
-
# Asynchronously updates a topic with the specified parameters.
|
221
|
-
#
|
222
|
-
# @param resource_group_name [String] The name of the resource group within the
|
223
|
-
# user's subscription.
|
224
|
-
# @param topic_name [String] Name of the topic
|
225
|
-
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
226
|
-
# information
|
227
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
228
|
-
# will be added to the HTTP request.
|
229
|
-
#
|
230
|
-
# @return [Topic] operation results.
|
231
|
-
#
|
232
|
-
def update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
233
|
-
response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
|
234
|
-
response.body unless response.nil?
|
235
|
-
end
|
236
|
-
|
237
|
-
#
|
238
|
-
# @param resource_group_name [String] The name of the resource group within the
|
239
|
-
# user's subscription.
|
240
|
-
# @param topic_name [String] Name of the topic
|
241
|
-
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
242
|
-
# information
|
243
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
244
|
-
# will be added to the HTTP request.
|
245
|
-
#
|
246
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
247
|
-
# response.
|
248
|
-
#
|
249
|
-
def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
250
|
-
# Send request
|
251
|
-
promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers)
|
252
|
-
|
253
|
-
promise = promise.then do |response|
|
254
|
-
# Defining deserialization method.
|
255
|
-
deserialize_method = lambda do |parsed_response|
|
256
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
257
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
258
|
-
end
|
259
|
-
|
260
|
-
# Waiting for response.
|
261
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
262
|
-
end
|
263
|
-
|
264
|
-
promise
|
265
|
-
end
|
266
|
-
|
267
|
-
#
|
268
|
-
# List topics under an Azure subscription
|
269
|
-
#
|
270
|
-
# List all the topics under an Azure subscription
|
271
|
-
#
|
272
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
273
|
-
# will be added to the HTTP request.
|
274
|
-
#
|
275
|
-
# @return [TopicsListResult] operation results.
|
276
|
-
#
|
277
|
-
def list_by_subscription(custom_headers:nil)
|
278
|
-
response = list_by_subscription_async(custom_headers:custom_headers).value!
|
279
|
-
response.body unless response.nil?
|
280
|
-
end
|
281
|
-
|
282
|
-
#
|
283
|
-
# List topics under an Azure subscription
|
284
|
-
#
|
285
|
-
# List all the topics under an Azure subscription
|
286
|
-
#
|
287
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
288
|
-
# will be added to the HTTP request.
|
289
|
-
#
|
290
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
291
|
-
#
|
292
|
-
def list_by_subscription_with_http_info(custom_headers:nil)
|
293
|
-
list_by_subscription_async(custom_headers:custom_headers).value!
|
294
|
-
end
|
295
|
-
|
296
|
-
#
|
297
|
-
# List topics under an Azure subscription
|
298
|
-
#
|
299
|
-
# List all the topics under an Azure subscription
|
300
|
-
#
|
301
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
302
|
-
# to the HTTP request.
|
303
|
-
#
|
304
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
305
|
-
#
|
306
|
-
def list_by_subscription_async(custom_headers:nil)
|
307
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
308
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
309
|
-
|
310
|
-
|
311
|
-
request_headers = {}
|
312
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
313
|
-
|
314
|
-
# Set Headers
|
315
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
316
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
317
|
-
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics'
|
318
|
-
|
319
|
-
request_url = @base_url || @client.base_url
|
320
|
-
|
321
|
-
options = {
|
322
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
323
|
-
path_params: {'subscriptionId' => @client.subscription_id},
|
324
|
-
query_params: {'api-version' => @client.api_version},
|
325
|
-
headers: request_headers.merge(custom_headers || {}),
|
326
|
-
base_url: request_url
|
327
|
-
}
|
328
|
-
promise = @client.make_request_async(:get, path_template, options)
|
329
|
-
|
330
|
-
promise = promise.then do |result|
|
331
|
-
http_response = result.response
|
332
|
-
status_code = http_response.status
|
333
|
-
response_content = http_response.body
|
334
|
-
unless status_code == 200
|
335
|
-
error_model = JSON.load(response_content)
|
336
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
337
|
-
end
|
338
|
-
|
339
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
340
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
341
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
342
|
-
# Deserialize Response
|
343
|
-
if status_code == 200
|
344
|
-
begin
|
345
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
346
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicsListResult.mapper()
|
347
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
348
|
-
rescue Exception => e
|
349
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
350
|
-
end
|
351
|
-
end
|
352
|
-
|
353
|
-
result
|
354
|
-
end
|
355
|
-
|
356
|
-
promise.execute
|
357
|
-
end
|
358
|
-
|
359
|
-
#
|
360
|
-
# List topics under a resource group
|
361
|
-
#
|
362
|
-
# List all the topics under a resource group
|
363
|
-
#
|
364
|
-
# @param resource_group_name [String] The name of the resource group within the
|
365
|
-
# user's subscription.
|
366
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
367
|
-
# will be added to the HTTP request.
|
368
|
-
#
|
369
|
-
# @return [TopicsListResult] operation results.
|
370
|
-
#
|
371
|
-
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
372
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
373
|
-
response.body unless response.nil?
|
374
|
-
end
|
375
|
-
|
376
|
-
#
|
377
|
-
# List topics under a resource group
|
378
|
-
#
|
379
|
-
# List all the topics under a resource group
|
380
|
-
#
|
381
|
-
# @param resource_group_name [String] The name of the resource group within the
|
382
|
-
# user's subscription.
|
383
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
384
|
-
# will be added to the HTTP request.
|
385
|
-
#
|
386
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
387
|
-
#
|
388
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
389
|
-
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
390
|
-
end
|
391
|
-
|
392
|
-
#
|
393
|
-
# List topics under a resource group
|
394
|
-
#
|
395
|
-
# List all the topics 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 [Hash{String => String}] A hash of custom headers that will be added
|
400
|
-
# to the HTTP request.
|
401
|
-
#
|
402
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
403
|
-
#
|
404
|
-
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
405
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
406
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
407
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
408
|
-
|
409
|
-
|
410
|
-
request_headers = {}
|
411
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
412
|
-
|
413
|
-
# Set Headers
|
414
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
415
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
416
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics'
|
417
|
-
|
418
|
-
request_url = @base_url || @client.base_url
|
419
|
-
|
420
|
-
options = {
|
421
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
422
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
423
|
-
query_params: {'api-version' => @client.api_version},
|
424
|
-
headers: request_headers.merge(custom_headers || {}),
|
425
|
-
base_url: request_url
|
426
|
-
}
|
427
|
-
promise = @client.make_request_async(:get, path_template, options)
|
428
|
-
|
429
|
-
promise = promise.then do |result|
|
430
|
-
http_response = result.response
|
431
|
-
status_code = http_response.status
|
432
|
-
response_content = http_response.body
|
433
|
-
unless status_code == 200
|
434
|
-
error_model = JSON.load(response_content)
|
435
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
436
|
-
end
|
437
|
-
|
438
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
439
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
440
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
441
|
-
# Deserialize Response
|
442
|
-
if status_code == 200
|
443
|
-
begin
|
444
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
445
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicsListResult.mapper()
|
446
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
447
|
-
rescue Exception => e
|
448
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
449
|
-
end
|
450
|
-
end
|
451
|
-
|
452
|
-
result
|
453
|
-
end
|
454
|
-
|
455
|
-
promise.execute
|
456
|
-
end
|
457
|
-
|
458
|
-
#
|
459
|
-
# List keys for a topic
|
460
|
-
#
|
461
|
-
# List the two keys used to publish to a topic
|
462
|
-
#
|
463
|
-
# @param resource_group_name [String] The name of the resource group within the
|
464
|
-
# user's subscription.
|
465
|
-
# @param topic_name [String] Name of the topic
|
466
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
467
|
-
# will be added to the HTTP request.
|
468
|
-
#
|
469
|
-
# @return [TopicSharedAccessKeys] operation results.
|
470
|
-
#
|
471
|
-
def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil)
|
472
|
-
response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
473
|
-
response.body unless response.nil?
|
474
|
-
end
|
475
|
-
|
476
|
-
#
|
477
|
-
# List keys for a topic
|
478
|
-
#
|
479
|
-
# List the two keys used to publish to a topic
|
480
|
-
#
|
481
|
-
# @param resource_group_name [String] The name of the resource group within the
|
482
|
-
# user's subscription.
|
483
|
-
# @param topic_name [String] Name of the topic
|
484
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
485
|
-
# will be added to the HTTP request.
|
486
|
-
#
|
487
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
488
|
-
#
|
489
|
-
def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
490
|
-
list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
491
|
-
end
|
492
|
-
|
493
|
-
#
|
494
|
-
# List keys for a topic
|
495
|
-
#
|
496
|
-
# List the two keys used to publish to a topic
|
497
|
-
#
|
498
|
-
# @param resource_group_name [String] The name of the resource group within the
|
499
|
-
# user's subscription.
|
500
|
-
# @param topic_name [String] Name of the topic
|
501
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
502
|
-
# to the HTTP request.
|
503
|
-
#
|
504
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
505
|
-
#
|
506
|
-
def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil)
|
507
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
508
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
509
|
-
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
510
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
511
|
-
|
512
|
-
|
513
|
-
request_headers = {}
|
514
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
515
|
-
|
516
|
-
# Set Headers
|
517
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
518
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
519
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys'
|
520
|
-
|
521
|
-
request_url = @base_url || @client.base_url
|
522
|
-
|
523
|
-
options = {
|
524
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
525
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
526
|
-
query_params: {'api-version' => @client.api_version},
|
527
|
-
headers: request_headers.merge(custom_headers || {}),
|
528
|
-
base_url: request_url
|
529
|
-
}
|
530
|
-
promise = @client.make_request_async(:post, path_template, options)
|
531
|
-
|
532
|
-
promise = promise.then do |result|
|
533
|
-
http_response = result.response
|
534
|
-
status_code = http_response.status
|
535
|
-
response_content = http_response.body
|
536
|
-
unless status_code == 200
|
537
|
-
error_model = JSON.load(response_content)
|
538
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
539
|
-
end
|
540
|
-
|
541
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
542
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
543
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
544
|
-
# Deserialize Response
|
545
|
-
if status_code == 200
|
546
|
-
begin
|
547
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
548
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicSharedAccessKeys.mapper()
|
549
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
550
|
-
rescue Exception => e
|
551
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
552
|
-
end
|
553
|
-
end
|
554
|
-
|
555
|
-
result
|
556
|
-
end
|
557
|
-
|
558
|
-
promise.execute
|
559
|
-
end
|
560
|
-
|
561
|
-
#
|
562
|
-
# Regenerate key for a topic
|
563
|
-
#
|
564
|
-
# Regenerate a shared access key for a topic
|
565
|
-
#
|
566
|
-
# @param resource_group_name [String] The name of the resource group within the
|
567
|
-
# user's subscription.
|
568
|
-
# @param topic_name [String] Name of the topic
|
569
|
-
# @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
|
570
|
-
# regenerate key
|
571
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
572
|
-
# will be added to the HTTP request.
|
573
|
-
#
|
574
|
-
# @return [TopicSharedAccessKeys] operation results.
|
575
|
-
#
|
576
|
-
def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
577
|
-
response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
|
578
|
-
response.body unless response.nil?
|
579
|
-
end
|
580
|
-
|
581
|
-
#
|
582
|
-
# Regenerate key for a topic
|
583
|
-
#
|
584
|
-
# Regenerate a shared access key for a topic
|
585
|
-
#
|
586
|
-
# @param resource_group_name [String] The name of the resource group within the
|
587
|
-
# user's subscription.
|
588
|
-
# @param topic_name [String] Name of the topic
|
589
|
-
# @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
|
590
|
-
# regenerate key
|
591
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
592
|
-
# will be added to the HTTP request.
|
593
|
-
#
|
594
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
595
|
-
#
|
596
|
-
def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
597
|
-
regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
|
598
|
-
end
|
599
|
-
|
600
|
-
#
|
601
|
-
# Regenerate key for a topic
|
602
|
-
#
|
603
|
-
# Regenerate a shared access key for a topic
|
604
|
-
#
|
605
|
-
# @param resource_group_name [String] The name of the resource group within the
|
606
|
-
# user's subscription.
|
607
|
-
# @param topic_name [String] Name of the topic
|
608
|
-
# @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
|
609
|
-
# regenerate key
|
610
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
611
|
-
# to the HTTP request.
|
612
|
-
#
|
613
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
614
|
-
#
|
615
|
-
def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
616
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
617
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
618
|
-
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
619
|
-
fail ArgumentError, 'regenerate_key_request is nil' if regenerate_key_request.nil?
|
620
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
621
|
-
|
622
|
-
|
623
|
-
request_headers = {}
|
624
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
625
|
-
|
626
|
-
# Set Headers
|
627
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
628
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
629
|
-
|
630
|
-
# Serialize Request
|
631
|
-
request_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicRegenerateKeyRequest.mapper()
|
632
|
-
request_content = @client.serialize(request_mapper, regenerate_key_request)
|
633
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
634
|
-
|
635
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey'
|
636
|
-
|
637
|
-
request_url = @base_url || @client.base_url
|
638
|
-
|
639
|
-
options = {
|
640
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
641
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
642
|
-
query_params: {'api-version' => @client.api_version},
|
643
|
-
body: request_content,
|
644
|
-
headers: request_headers.merge(custom_headers || {}),
|
645
|
-
base_url: request_url
|
646
|
-
}
|
647
|
-
promise = @client.make_request_async(:post, path_template, options)
|
648
|
-
|
649
|
-
promise = promise.then do |result|
|
650
|
-
http_response = result.response
|
651
|
-
status_code = http_response.status
|
652
|
-
response_content = http_response.body
|
653
|
-
unless status_code == 200
|
654
|
-
error_model = JSON.load(response_content)
|
655
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
656
|
-
end
|
657
|
-
|
658
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
659
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
660
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
661
|
-
# Deserialize Response
|
662
|
-
if status_code == 200
|
663
|
-
begin
|
664
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
665
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicSharedAccessKeys.mapper()
|
666
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
667
|
-
rescue Exception => e
|
668
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
669
|
-
end
|
670
|
-
end
|
671
|
-
|
672
|
-
result
|
673
|
-
end
|
674
|
-
|
675
|
-
promise.execute
|
676
|
-
end
|
677
|
-
|
678
|
-
#
|
679
|
-
# List topic event types
|
680
|
-
#
|
681
|
-
# List event types for a topic
|
682
|
-
#
|
683
|
-
# @param resource_group_name [String] The name of the resource group within the
|
684
|
-
# user's subscription.
|
685
|
-
# @param provider_namespace [String] Namespace of the provider of the topic
|
686
|
-
# @param resource_type_name [String] Name of the topic type
|
687
|
-
# @param resource_name [String] Name of the topic
|
688
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
689
|
-
# will be added to the HTTP request.
|
690
|
-
#
|
691
|
-
# @return [EventTypesListResult] operation results.
|
692
|
-
#
|
693
|
-
def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
694
|
-
response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
|
695
|
-
response.body unless response.nil?
|
696
|
-
end
|
697
|
-
|
698
|
-
#
|
699
|
-
# List topic event types
|
700
|
-
#
|
701
|
-
# List event types for a topic
|
702
|
-
#
|
703
|
-
# @param resource_group_name [String] The name of the resource group within the
|
704
|
-
# user's subscription.
|
705
|
-
# @param provider_namespace [String] Namespace of the provider of the topic
|
706
|
-
# @param resource_type_name [String] Name of the topic type
|
707
|
-
# @param resource_name [String] Name of the topic
|
708
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
709
|
-
# will be added to the HTTP request.
|
710
|
-
#
|
711
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
712
|
-
#
|
713
|
-
def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
714
|
-
list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
|
715
|
-
end
|
716
|
-
|
717
|
-
#
|
718
|
-
# List topic event types
|
719
|
-
#
|
720
|
-
# List event types for a topic
|
721
|
-
#
|
722
|
-
# @param resource_group_name [String] The name of the resource group within the
|
723
|
-
# user's subscription.
|
724
|
-
# @param provider_namespace [String] Namespace of the provider of the topic
|
725
|
-
# @param resource_type_name [String] Name of the topic type
|
726
|
-
# @param resource_name [String] Name of the topic
|
727
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
728
|
-
# to the HTTP request.
|
729
|
-
#
|
730
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
731
|
-
#
|
732
|
-
def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
733
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
734
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
735
|
-
fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
|
736
|
-
fail ArgumentError, 'resource_type_name is nil' if resource_type_name.nil?
|
737
|
-
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
738
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
739
|
-
|
740
|
-
|
741
|
-
request_headers = {}
|
742
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
743
|
-
|
744
|
-
# Set Headers
|
745
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
746
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
747
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes'
|
748
|
-
|
749
|
-
request_url = @base_url || @client.base_url
|
750
|
-
|
751
|
-
options = {
|
752
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
753
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'providerNamespace' => provider_namespace,'resourceTypeName' => resource_type_name,'resourceName' => resource_name},
|
754
|
-
query_params: {'api-version' => @client.api_version},
|
755
|
-
headers: request_headers.merge(custom_headers || {}),
|
756
|
-
base_url: request_url
|
757
|
-
}
|
758
|
-
promise = @client.make_request_async(:get, path_template, options)
|
759
|
-
|
760
|
-
promise = promise.then do |result|
|
761
|
-
http_response = result.response
|
762
|
-
status_code = http_response.status
|
763
|
-
response_content = http_response.body
|
764
|
-
unless status_code == 200
|
765
|
-
error_model = JSON.load(response_content)
|
766
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
767
|
-
end
|
768
|
-
|
769
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
770
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
771
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
772
|
-
# Deserialize Response
|
773
|
-
if status_code == 200
|
774
|
-
begin
|
775
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
776
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::EventTypesListResult.mapper()
|
777
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
778
|
-
rescue Exception => e
|
779
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
780
|
-
end
|
781
|
-
end
|
782
|
-
|
783
|
-
result
|
784
|
-
end
|
785
|
-
|
786
|
-
promise.execute
|
787
|
-
end
|
788
|
-
|
789
|
-
#
|
790
|
-
# Create a topic
|
791
|
-
#
|
792
|
-
# Asynchronously creates a new topic with the specified parameters.
|
793
|
-
#
|
794
|
-
# @param resource_group_name [String] The name of the resource group within the
|
795
|
-
# user's subscription.
|
796
|
-
# @param topic_name [String] Name of the topic
|
797
|
-
# @param topic_info [Topic] Topic information
|
798
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
799
|
-
# will be added to the HTTP request.
|
800
|
-
#
|
801
|
-
# @return [Topic] operation results.
|
802
|
-
#
|
803
|
-
def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
804
|
-
response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
805
|
-
response.body unless response.nil?
|
806
|
-
end
|
807
|
-
|
808
|
-
#
|
809
|
-
# Create a topic
|
810
|
-
#
|
811
|
-
# Asynchronously creates a new topic with the specified parameters.
|
812
|
-
#
|
813
|
-
# @param resource_group_name [String] The name of the resource group within the
|
814
|
-
# user's subscription.
|
815
|
-
# @param topic_name [String] Name of the topic
|
816
|
-
# @param topic_info [Topic] Topic information
|
817
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
818
|
-
# will be added to the HTTP request.
|
819
|
-
#
|
820
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
821
|
-
#
|
822
|
-
def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
823
|
-
begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
824
|
-
end
|
825
|
-
|
826
|
-
#
|
827
|
-
# Create a topic
|
828
|
-
#
|
829
|
-
# Asynchronously creates a new topic with the specified parameters.
|
830
|
-
#
|
831
|
-
# @param resource_group_name [String] The name of the resource group within the
|
832
|
-
# user's subscription.
|
833
|
-
# @param topic_name [String] Name of the topic
|
834
|
-
# @param topic_info [Topic] Topic information
|
835
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
836
|
-
# to the HTTP request.
|
837
|
-
#
|
838
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
839
|
-
#
|
840
|
-
def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
841
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
842
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
843
|
-
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
844
|
-
fail ArgumentError, 'topic_info is nil' if topic_info.nil?
|
845
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
846
|
-
|
847
|
-
|
848
|
-
request_headers = {}
|
849
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
850
|
-
|
851
|
-
# Set Headers
|
852
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
853
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
854
|
-
|
855
|
-
# Serialize Request
|
856
|
-
request_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
857
|
-
request_content = @client.serialize(request_mapper, topic_info)
|
858
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
859
|
-
|
860
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
861
|
-
|
862
|
-
request_url = @base_url || @client.base_url
|
863
|
-
|
864
|
-
options = {
|
865
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
866
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
867
|
-
query_params: {'api-version' => @client.api_version},
|
868
|
-
body: request_content,
|
869
|
-
headers: request_headers.merge(custom_headers || {}),
|
870
|
-
base_url: request_url
|
871
|
-
}
|
872
|
-
promise = @client.make_request_async(:put, path_template, options)
|
873
|
-
|
874
|
-
promise = promise.then do |result|
|
875
|
-
http_response = result.response
|
876
|
-
status_code = http_response.status
|
877
|
-
response_content = http_response.body
|
878
|
-
unless status_code == 201
|
879
|
-
error_model = JSON.load(response_content)
|
880
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
881
|
-
end
|
882
|
-
|
883
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
884
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
885
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
886
|
-
# Deserialize Response
|
887
|
-
if status_code == 201
|
888
|
-
begin
|
889
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
890
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
891
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
892
|
-
rescue Exception => e
|
893
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
894
|
-
end
|
895
|
-
end
|
896
|
-
|
897
|
-
result
|
898
|
-
end
|
899
|
-
|
900
|
-
promise.execute
|
901
|
-
end
|
902
|
-
|
903
|
-
#
|
904
|
-
# Delete a topic
|
905
|
-
#
|
906
|
-
# Delete existing topic
|
907
|
-
#
|
908
|
-
# @param resource_group_name [String] The name of the resource group within the
|
909
|
-
# user's subscription.
|
910
|
-
# @param topic_name [String] Name of the topic
|
911
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
912
|
-
# will be added to the HTTP request.
|
913
|
-
#
|
914
|
-
#
|
915
|
-
def begin_delete(resource_group_name, topic_name, custom_headers:nil)
|
916
|
-
response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
917
|
-
nil
|
918
|
-
end
|
919
|
-
|
920
|
-
#
|
921
|
-
# Delete a topic
|
922
|
-
#
|
923
|
-
# Delete existing topic
|
924
|
-
#
|
925
|
-
# @param resource_group_name [String] The name of the resource group within the
|
926
|
-
# user's subscription.
|
927
|
-
# @param topic_name [String] Name of the topic
|
928
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
929
|
-
# will be added to the HTTP request.
|
930
|
-
#
|
931
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
932
|
-
#
|
933
|
-
def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
934
|
-
begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
935
|
-
end
|
936
|
-
|
937
|
-
#
|
938
|
-
# Delete a topic
|
939
|
-
#
|
940
|
-
# Delete existing topic
|
941
|
-
#
|
942
|
-
# @param resource_group_name [String] The name of the resource group within the
|
943
|
-
# user's subscription.
|
944
|
-
# @param topic_name [String] Name of the topic
|
945
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
946
|
-
# to the HTTP request.
|
947
|
-
#
|
948
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
949
|
-
#
|
950
|
-
def begin_delete_async(resource_group_name, topic_name, custom_headers:nil)
|
951
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
952
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
953
|
-
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
954
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
955
|
-
|
956
|
-
|
957
|
-
request_headers = {}
|
958
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
959
|
-
|
960
|
-
# Set Headers
|
961
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
962
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
963
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
964
|
-
|
965
|
-
request_url = @base_url || @client.base_url
|
966
|
-
|
967
|
-
options = {
|
968
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
969
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
970
|
-
query_params: {'api-version' => @client.api_version},
|
971
|
-
headers: request_headers.merge(custom_headers || {}),
|
972
|
-
base_url: request_url
|
973
|
-
}
|
974
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
975
|
-
|
976
|
-
promise = promise.then do |result|
|
977
|
-
http_response = result.response
|
978
|
-
status_code = http_response.status
|
979
|
-
response_content = http_response.body
|
980
|
-
unless status_code == 202 || status_code == 204
|
981
|
-
error_model = JSON.load(response_content)
|
982
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
983
|
-
end
|
984
|
-
|
985
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
986
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
987
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
988
|
-
|
989
|
-
result
|
990
|
-
end
|
991
|
-
|
992
|
-
promise.execute
|
993
|
-
end
|
994
|
-
|
995
|
-
#
|
996
|
-
# Update a topic
|
997
|
-
#
|
998
|
-
# Asynchronously updates a topic with the specified parameters.
|
999
|
-
#
|
1000
|
-
# @param resource_group_name [String] The name of the resource group within the
|
1001
|
-
# user's subscription.
|
1002
|
-
# @param topic_name [String] Name of the topic
|
1003
|
-
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
1004
|
-
# information
|
1005
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1006
|
-
# will be added to the HTTP request.
|
1007
|
-
#
|
1008
|
-
# @return [Topic] operation results.
|
1009
|
-
#
|
1010
|
-
def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
1011
|
-
response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
|
1012
|
-
response.body unless response.nil?
|
1013
|
-
end
|
1014
|
-
|
1015
|
-
#
|
1016
|
-
# Update a topic
|
1017
|
-
#
|
1018
|
-
# Asynchronously updates a topic with the specified parameters.
|
1019
|
-
#
|
1020
|
-
# @param resource_group_name [String] The name of the resource group within the
|
1021
|
-
# user's subscription.
|
1022
|
-
# @param topic_name [String] Name of the topic
|
1023
|
-
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
1024
|
-
# information
|
1025
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1026
|
-
# will be added to the HTTP request.
|
1027
|
-
#
|
1028
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1029
|
-
#
|
1030
|
-
def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
1031
|
-
begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
|
1032
|
-
end
|
1033
|
-
|
1034
|
-
#
|
1035
|
-
# Update a topic
|
1036
|
-
#
|
1037
|
-
# Asynchronously updates a topic with the specified parameters.
|
1038
|
-
#
|
1039
|
-
# @param resource_group_name [String] The name of the resource group within the
|
1040
|
-
# user's subscription.
|
1041
|
-
# @param topic_name [String] Name of the topic
|
1042
|
-
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
1043
|
-
# information
|
1044
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1045
|
-
# to the HTTP request.
|
1046
|
-
#
|
1047
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1048
|
-
#
|
1049
|
-
def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
1050
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1051
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1052
|
-
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
1053
|
-
fail ArgumentError, 'topic_update_parameters is nil' if topic_update_parameters.nil?
|
1054
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1055
|
-
|
1056
|
-
|
1057
|
-
request_headers = {}
|
1058
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1059
|
-
|
1060
|
-
# Set Headers
|
1061
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1062
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1063
|
-
|
1064
|
-
# Serialize Request
|
1065
|
-
request_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicUpdateParameters.mapper()
|
1066
|
-
request_content = @client.serialize(request_mapper, topic_update_parameters)
|
1067
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1068
|
-
|
1069
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
1070
|
-
|
1071
|
-
request_url = @base_url || @client.base_url
|
1072
|
-
|
1073
|
-
options = {
|
1074
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1075
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
1076
|
-
query_params: {'api-version' => @client.api_version},
|
1077
|
-
body: request_content,
|
1078
|
-
headers: request_headers.merge(custom_headers || {}),
|
1079
|
-
base_url: request_url
|
1080
|
-
}
|
1081
|
-
promise = @client.make_request_async(:patch, path_template, options)
|
1082
|
-
|
1083
|
-
promise = promise.then do |result|
|
1084
|
-
http_response = result.response
|
1085
|
-
status_code = http_response.status
|
1086
|
-
response_content = http_response.body
|
1087
|
-
unless status_code == 201
|
1088
|
-
error_model = JSON.load(response_content)
|
1089
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1090
|
-
end
|
1091
|
-
|
1092
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1093
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1094
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1095
|
-
# Deserialize Response
|
1096
|
-
if status_code == 201
|
1097
|
-
begin
|
1098
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1099
|
-
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
1100
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
1101
|
-
rescue Exception => e
|
1102
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1103
|
-
end
|
1104
|
-
end
|
1105
|
-
|
1106
|
-
result
|
1107
|
-
end
|
1108
|
-
|
1109
|
-
promise.execute
|
1110
|
-
end
|
1111
|
-
|
1112
|
-
end
|
1113
|
-
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::V2018_01_01
|
7
|
+
#
|
8
|
+
# Azure EventGrid Management Client
|
9
|
+
#
|
10
|
+
class Topics
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Topics class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [EventGridManagementClient] reference to the EventGridManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Get a topic
|
26
|
+
#
|
27
|
+
# Get properties of a topic
|
28
|
+
#
|
29
|
+
# @param resource_group_name [String] The name of the resource group within the
|
30
|
+
# user's subscription.
|
31
|
+
# @param topic_name [String] Name of the topic
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Topic] operation results.
|
36
|
+
#
|
37
|
+
def get(resource_group_name, topic_name, custom_headers:nil)
|
38
|
+
response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Get a topic
|
44
|
+
#
|
45
|
+
# Get properties of a topic
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] The name of the resource group within the
|
48
|
+
# user's subscription.
|
49
|
+
# @param topic_name [String] Name of the topic
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def get_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
56
|
+
get_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Get a topic
|
61
|
+
#
|
62
|
+
# Get properties of a topic
|
63
|
+
#
|
64
|
+
# @param resource_group_name [String] The name of the resource group within the
|
65
|
+
# user's subscription.
|
66
|
+
# @param topic_name [String] Name of the topic
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def get_async(resource_group_name, topic_name, custom_headers:nil)
|
73
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
75
|
+
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
76
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
|
+
|
78
|
+
|
79
|
+
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
+
|
82
|
+
# Set Headers
|
83
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
86
|
+
|
87
|
+
request_url = @base_url || @client.base_url
|
88
|
+
|
89
|
+
options = {
|
90
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
92
|
+
query_params: {'api-version' => @client.api_version},
|
93
|
+
headers: request_headers.merge(custom_headers || {}),
|
94
|
+
base_url: request_url
|
95
|
+
}
|
96
|
+
promise = @client.make_request_async(:get, path_template, options)
|
97
|
+
|
98
|
+
promise = promise.then do |result|
|
99
|
+
http_response = result.response
|
100
|
+
status_code = http_response.status
|
101
|
+
response_content = http_response.body
|
102
|
+
unless status_code == 200
|
103
|
+
error_model = JSON.load(response_content)
|
104
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
105
|
+
end
|
106
|
+
|
107
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
110
|
+
# Deserialize Response
|
111
|
+
if status_code == 200
|
112
|
+
begin
|
113
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
115
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
|
+
rescue Exception => e
|
117
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
result
|
122
|
+
end
|
123
|
+
|
124
|
+
promise.execute
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# Create a topic
|
129
|
+
#
|
130
|
+
# Asynchronously creates a new topic with the specified parameters.
|
131
|
+
#
|
132
|
+
# @param resource_group_name [String] The name of the resource group within the
|
133
|
+
# user's subscription.
|
134
|
+
# @param topic_name [String] Name of the topic
|
135
|
+
# @param topic_info [Topic] Topic information
|
136
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
|
+
# will be added to the HTTP request.
|
138
|
+
#
|
139
|
+
# @return [Topic] operation results.
|
140
|
+
#
|
141
|
+
def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
142
|
+
response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
143
|
+
response.body unless response.nil?
|
144
|
+
end
|
145
|
+
|
146
|
+
#
|
147
|
+
# @param resource_group_name [String] The name of the resource group within the
|
148
|
+
# user's subscription.
|
149
|
+
# @param topic_name [String] Name of the topic
|
150
|
+
# @param topic_info [Topic] Topic information
|
151
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
|
+
# will be added to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
155
|
+
# response.
|
156
|
+
#
|
157
|
+
def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
158
|
+
# Send request
|
159
|
+
promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers)
|
160
|
+
|
161
|
+
promise = promise.then do |response|
|
162
|
+
# Defining deserialization method.
|
163
|
+
deserialize_method = lambda do |parsed_response|
|
164
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
165
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Waiting for response.
|
169
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
170
|
+
end
|
171
|
+
|
172
|
+
promise
|
173
|
+
end
|
174
|
+
|
175
|
+
#
|
176
|
+
# Delete a topic
|
177
|
+
#
|
178
|
+
# Delete existing topic
|
179
|
+
#
|
180
|
+
# @param resource_group_name [String] The name of the resource group within the
|
181
|
+
# user's subscription.
|
182
|
+
# @param topic_name [String] Name of the topic
|
183
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
184
|
+
# will be added to the HTTP request.
|
185
|
+
#
|
186
|
+
def delete(resource_group_name, topic_name, custom_headers:nil)
|
187
|
+
response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
188
|
+
nil
|
189
|
+
end
|
190
|
+
|
191
|
+
#
|
192
|
+
# @param resource_group_name [String] The name of the resource group within the
|
193
|
+
# user's subscription.
|
194
|
+
# @param topic_name [String] Name of the topic
|
195
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
196
|
+
# will be added to the HTTP request.
|
197
|
+
#
|
198
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
199
|
+
# response.
|
200
|
+
#
|
201
|
+
def delete_async(resource_group_name, topic_name, custom_headers:nil)
|
202
|
+
# Send request
|
203
|
+
promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers)
|
204
|
+
|
205
|
+
promise = promise.then do |response|
|
206
|
+
# Defining deserialization method.
|
207
|
+
deserialize_method = lambda do |parsed_response|
|
208
|
+
end
|
209
|
+
|
210
|
+
# Waiting for response.
|
211
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
212
|
+
end
|
213
|
+
|
214
|
+
promise
|
215
|
+
end
|
216
|
+
|
217
|
+
#
|
218
|
+
# Update a topic
|
219
|
+
#
|
220
|
+
# Asynchronously updates a topic with the specified parameters.
|
221
|
+
#
|
222
|
+
# @param resource_group_name [String] The name of the resource group within the
|
223
|
+
# user's subscription.
|
224
|
+
# @param topic_name [String] Name of the topic
|
225
|
+
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
226
|
+
# information
|
227
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
228
|
+
# will be added to the HTTP request.
|
229
|
+
#
|
230
|
+
# @return [Topic] operation results.
|
231
|
+
#
|
232
|
+
def update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
233
|
+
response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
|
234
|
+
response.body unless response.nil?
|
235
|
+
end
|
236
|
+
|
237
|
+
#
|
238
|
+
# @param resource_group_name [String] The name of the resource group within the
|
239
|
+
# user's subscription.
|
240
|
+
# @param topic_name [String] Name of the topic
|
241
|
+
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
242
|
+
# information
|
243
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
244
|
+
# will be added to the HTTP request.
|
245
|
+
#
|
246
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
247
|
+
# response.
|
248
|
+
#
|
249
|
+
def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
250
|
+
# Send request
|
251
|
+
promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers)
|
252
|
+
|
253
|
+
promise = promise.then do |response|
|
254
|
+
# Defining deserialization method.
|
255
|
+
deserialize_method = lambda do |parsed_response|
|
256
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
257
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Waiting for response.
|
261
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
262
|
+
end
|
263
|
+
|
264
|
+
promise
|
265
|
+
end
|
266
|
+
|
267
|
+
#
|
268
|
+
# List topics under an Azure subscription
|
269
|
+
#
|
270
|
+
# List all the topics under an Azure subscription
|
271
|
+
#
|
272
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
273
|
+
# will be added to the HTTP request.
|
274
|
+
#
|
275
|
+
# @return [TopicsListResult] operation results.
|
276
|
+
#
|
277
|
+
def list_by_subscription(custom_headers:nil)
|
278
|
+
response = list_by_subscription_async(custom_headers:custom_headers).value!
|
279
|
+
response.body unless response.nil?
|
280
|
+
end
|
281
|
+
|
282
|
+
#
|
283
|
+
# List topics under an Azure subscription
|
284
|
+
#
|
285
|
+
# List all the topics under an Azure subscription
|
286
|
+
#
|
287
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
288
|
+
# will be added to the HTTP request.
|
289
|
+
#
|
290
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
291
|
+
#
|
292
|
+
def list_by_subscription_with_http_info(custom_headers:nil)
|
293
|
+
list_by_subscription_async(custom_headers:custom_headers).value!
|
294
|
+
end
|
295
|
+
|
296
|
+
#
|
297
|
+
# List topics under an Azure subscription
|
298
|
+
#
|
299
|
+
# List all the topics under an Azure subscription
|
300
|
+
#
|
301
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
302
|
+
# to the HTTP request.
|
303
|
+
#
|
304
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
305
|
+
#
|
306
|
+
def list_by_subscription_async(custom_headers:nil)
|
307
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
308
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
309
|
+
|
310
|
+
|
311
|
+
request_headers = {}
|
312
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
313
|
+
|
314
|
+
# Set Headers
|
315
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
316
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
317
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics'
|
318
|
+
|
319
|
+
request_url = @base_url || @client.base_url
|
320
|
+
|
321
|
+
options = {
|
322
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
323
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
324
|
+
query_params: {'api-version' => @client.api_version},
|
325
|
+
headers: request_headers.merge(custom_headers || {}),
|
326
|
+
base_url: request_url
|
327
|
+
}
|
328
|
+
promise = @client.make_request_async(:get, path_template, options)
|
329
|
+
|
330
|
+
promise = promise.then do |result|
|
331
|
+
http_response = result.response
|
332
|
+
status_code = http_response.status
|
333
|
+
response_content = http_response.body
|
334
|
+
unless status_code == 200
|
335
|
+
error_model = JSON.load(response_content)
|
336
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
337
|
+
end
|
338
|
+
|
339
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
340
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
341
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
342
|
+
# Deserialize Response
|
343
|
+
if status_code == 200
|
344
|
+
begin
|
345
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
346
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicsListResult.mapper()
|
347
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
348
|
+
rescue Exception => e
|
349
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
result
|
354
|
+
end
|
355
|
+
|
356
|
+
promise.execute
|
357
|
+
end
|
358
|
+
|
359
|
+
#
|
360
|
+
# List topics under a resource group
|
361
|
+
#
|
362
|
+
# List all the topics under a resource group
|
363
|
+
#
|
364
|
+
# @param resource_group_name [String] The name of the resource group within the
|
365
|
+
# user's subscription.
|
366
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
367
|
+
# will be added to the HTTP request.
|
368
|
+
#
|
369
|
+
# @return [TopicsListResult] operation results.
|
370
|
+
#
|
371
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
372
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
373
|
+
response.body unless response.nil?
|
374
|
+
end
|
375
|
+
|
376
|
+
#
|
377
|
+
# List topics under a resource group
|
378
|
+
#
|
379
|
+
# List all the topics under a resource group
|
380
|
+
#
|
381
|
+
# @param resource_group_name [String] The name of the resource group within the
|
382
|
+
# user's subscription.
|
383
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
384
|
+
# will be added to the HTTP request.
|
385
|
+
#
|
386
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
387
|
+
#
|
388
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
389
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
390
|
+
end
|
391
|
+
|
392
|
+
#
|
393
|
+
# List topics under a resource group
|
394
|
+
#
|
395
|
+
# List all the topics 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 [Hash{String => String}] A hash of custom headers that will be added
|
400
|
+
# to the HTTP request.
|
401
|
+
#
|
402
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
403
|
+
#
|
404
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
405
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
406
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
407
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
408
|
+
|
409
|
+
|
410
|
+
request_headers = {}
|
411
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
412
|
+
|
413
|
+
# Set Headers
|
414
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
415
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
416
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics'
|
417
|
+
|
418
|
+
request_url = @base_url || @client.base_url
|
419
|
+
|
420
|
+
options = {
|
421
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
422
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
423
|
+
query_params: {'api-version' => @client.api_version},
|
424
|
+
headers: request_headers.merge(custom_headers || {}),
|
425
|
+
base_url: request_url
|
426
|
+
}
|
427
|
+
promise = @client.make_request_async(:get, path_template, options)
|
428
|
+
|
429
|
+
promise = promise.then do |result|
|
430
|
+
http_response = result.response
|
431
|
+
status_code = http_response.status
|
432
|
+
response_content = http_response.body
|
433
|
+
unless status_code == 200
|
434
|
+
error_model = JSON.load(response_content)
|
435
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
436
|
+
end
|
437
|
+
|
438
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
439
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
440
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
441
|
+
# Deserialize Response
|
442
|
+
if status_code == 200
|
443
|
+
begin
|
444
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
445
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicsListResult.mapper()
|
446
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
447
|
+
rescue Exception => e
|
448
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
452
|
+
result
|
453
|
+
end
|
454
|
+
|
455
|
+
promise.execute
|
456
|
+
end
|
457
|
+
|
458
|
+
#
|
459
|
+
# List keys for a topic
|
460
|
+
#
|
461
|
+
# List the two keys used to publish to a topic
|
462
|
+
#
|
463
|
+
# @param resource_group_name [String] The name of the resource group within the
|
464
|
+
# user's subscription.
|
465
|
+
# @param topic_name [String] Name of the topic
|
466
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
467
|
+
# will be added to the HTTP request.
|
468
|
+
#
|
469
|
+
# @return [TopicSharedAccessKeys] operation results.
|
470
|
+
#
|
471
|
+
def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil)
|
472
|
+
response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
473
|
+
response.body unless response.nil?
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# List keys for a topic
|
478
|
+
#
|
479
|
+
# List the two keys used to publish to a topic
|
480
|
+
#
|
481
|
+
# @param resource_group_name [String] The name of the resource group within the
|
482
|
+
# user's subscription.
|
483
|
+
# @param topic_name [String] Name of the topic
|
484
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
485
|
+
# will be added to the HTTP request.
|
486
|
+
#
|
487
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
488
|
+
#
|
489
|
+
def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
490
|
+
list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
491
|
+
end
|
492
|
+
|
493
|
+
#
|
494
|
+
# List keys for a topic
|
495
|
+
#
|
496
|
+
# List the two keys used to publish to a topic
|
497
|
+
#
|
498
|
+
# @param resource_group_name [String] The name of the resource group within the
|
499
|
+
# user's subscription.
|
500
|
+
# @param topic_name [String] Name of the topic
|
501
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
502
|
+
# to the HTTP request.
|
503
|
+
#
|
504
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
505
|
+
#
|
506
|
+
def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil)
|
507
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
508
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
509
|
+
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
510
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
511
|
+
|
512
|
+
|
513
|
+
request_headers = {}
|
514
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
515
|
+
|
516
|
+
# Set Headers
|
517
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
518
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
519
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys'
|
520
|
+
|
521
|
+
request_url = @base_url || @client.base_url
|
522
|
+
|
523
|
+
options = {
|
524
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
525
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
526
|
+
query_params: {'api-version' => @client.api_version},
|
527
|
+
headers: request_headers.merge(custom_headers || {}),
|
528
|
+
base_url: request_url
|
529
|
+
}
|
530
|
+
promise = @client.make_request_async(:post, path_template, options)
|
531
|
+
|
532
|
+
promise = promise.then do |result|
|
533
|
+
http_response = result.response
|
534
|
+
status_code = http_response.status
|
535
|
+
response_content = http_response.body
|
536
|
+
unless status_code == 200
|
537
|
+
error_model = JSON.load(response_content)
|
538
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
539
|
+
end
|
540
|
+
|
541
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
542
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
543
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
544
|
+
# Deserialize Response
|
545
|
+
if status_code == 200
|
546
|
+
begin
|
547
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
548
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicSharedAccessKeys.mapper()
|
549
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
550
|
+
rescue Exception => e
|
551
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
555
|
+
result
|
556
|
+
end
|
557
|
+
|
558
|
+
promise.execute
|
559
|
+
end
|
560
|
+
|
561
|
+
#
|
562
|
+
# Regenerate key for a topic
|
563
|
+
#
|
564
|
+
# Regenerate a shared access key for a topic
|
565
|
+
#
|
566
|
+
# @param resource_group_name [String] The name of the resource group within the
|
567
|
+
# user's subscription.
|
568
|
+
# @param topic_name [String] Name of the topic
|
569
|
+
# @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
|
570
|
+
# regenerate key
|
571
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
572
|
+
# will be added to the HTTP request.
|
573
|
+
#
|
574
|
+
# @return [TopicSharedAccessKeys] operation results.
|
575
|
+
#
|
576
|
+
def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
577
|
+
response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
|
578
|
+
response.body unless response.nil?
|
579
|
+
end
|
580
|
+
|
581
|
+
#
|
582
|
+
# Regenerate key for a topic
|
583
|
+
#
|
584
|
+
# Regenerate a shared access key for a topic
|
585
|
+
#
|
586
|
+
# @param resource_group_name [String] The name of the resource group within the
|
587
|
+
# user's subscription.
|
588
|
+
# @param topic_name [String] Name of the topic
|
589
|
+
# @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
|
590
|
+
# regenerate key
|
591
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
592
|
+
# will be added to the HTTP request.
|
593
|
+
#
|
594
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
595
|
+
#
|
596
|
+
def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
597
|
+
regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value!
|
598
|
+
end
|
599
|
+
|
600
|
+
#
|
601
|
+
# Regenerate key for a topic
|
602
|
+
#
|
603
|
+
# Regenerate a shared access key for a topic
|
604
|
+
#
|
605
|
+
# @param resource_group_name [String] The name of the resource group within the
|
606
|
+
# user's subscription.
|
607
|
+
# @param topic_name [String] Name of the topic
|
608
|
+
# @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to
|
609
|
+
# regenerate key
|
610
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
611
|
+
# to the HTTP request.
|
612
|
+
#
|
613
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
614
|
+
#
|
615
|
+
def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil)
|
616
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
617
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
618
|
+
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
619
|
+
fail ArgumentError, 'regenerate_key_request is nil' if regenerate_key_request.nil?
|
620
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
621
|
+
|
622
|
+
|
623
|
+
request_headers = {}
|
624
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
625
|
+
|
626
|
+
# Set Headers
|
627
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
628
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
629
|
+
|
630
|
+
# Serialize Request
|
631
|
+
request_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicRegenerateKeyRequest.mapper()
|
632
|
+
request_content = @client.serialize(request_mapper, regenerate_key_request)
|
633
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
634
|
+
|
635
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey'
|
636
|
+
|
637
|
+
request_url = @base_url || @client.base_url
|
638
|
+
|
639
|
+
options = {
|
640
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
641
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
642
|
+
query_params: {'api-version' => @client.api_version},
|
643
|
+
body: request_content,
|
644
|
+
headers: request_headers.merge(custom_headers || {}),
|
645
|
+
base_url: request_url
|
646
|
+
}
|
647
|
+
promise = @client.make_request_async(:post, path_template, options)
|
648
|
+
|
649
|
+
promise = promise.then do |result|
|
650
|
+
http_response = result.response
|
651
|
+
status_code = http_response.status
|
652
|
+
response_content = http_response.body
|
653
|
+
unless status_code == 200
|
654
|
+
error_model = JSON.load(response_content)
|
655
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
656
|
+
end
|
657
|
+
|
658
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
659
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
660
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
661
|
+
# Deserialize Response
|
662
|
+
if status_code == 200
|
663
|
+
begin
|
664
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
665
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicSharedAccessKeys.mapper()
|
666
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
667
|
+
rescue Exception => e
|
668
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
result
|
673
|
+
end
|
674
|
+
|
675
|
+
promise.execute
|
676
|
+
end
|
677
|
+
|
678
|
+
#
|
679
|
+
# List topic event types
|
680
|
+
#
|
681
|
+
# List event types for a topic
|
682
|
+
#
|
683
|
+
# @param resource_group_name [String] The name of the resource group within the
|
684
|
+
# user's subscription.
|
685
|
+
# @param provider_namespace [String] Namespace of the provider of the topic
|
686
|
+
# @param resource_type_name [String] Name of the topic type
|
687
|
+
# @param resource_name [String] Name of the topic
|
688
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
689
|
+
# will be added to the HTTP request.
|
690
|
+
#
|
691
|
+
# @return [EventTypesListResult] operation results.
|
692
|
+
#
|
693
|
+
def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
694
|
+
response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
|
695
|
+
response.body unless response.nil?
|
696
|
+
end
|
697
|
+
|
698
|
+
#
|
699
|
+
# List topic event types
|
700
|
+
#
|
701
|
+
# List event types for a topic
|
702
|
+
#
|
703
|
+
# @param resource_group_name [String] The name of the resource group within the
|
704
|
+
# user's subscription.
|
705
|
+
# @param provider_namespace [String] Namespace of the provider of the topic
|
706
|
+
# @param resource_type_name [String] Name of the topic type
|
707
|
+
# @param resource_name [String] Name of the topic
|
708
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
709
|
+
# will be added to the HTTP request.
|
710
|
+
#
|
711
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
712
|
+
#
|
713
|
+
def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
714
|
+
list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value!
|
715
|
+
end
|
716
|
+
|
717
|
+
#
|
718
|
+
# List topic event types
|
719
|
+
#
|
720
|
+
# List event types for a topic
|
721
|
+
#
|
722
|
+
# @param resource_group_name [String] The name of the resource group within the
|
723
|
+
# user's subscription.
|
724
|
+
# @param provider_namespace [String] Namespace of the provider of the topic
|
725
|
+
# @param resource_type_name [String] Name of the topic type
|
726
|
+
# @param resource_name [String] Name of the topic
|
727
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
728
|
+
# to the HTTP request.
|
729
|
+
#
|
730
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
731
|
+
#
|
732
|
+
def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil)
|
733
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
734
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
735
|
+
fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil?
|
736
|
+
fail ArgumentError, 'resource_type_name is nil' if resource_type_name.nil?
|
737
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
738
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
739
|
+
|
740
|
+
|
741
|
+
request_headers = {}
|
742
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
743
|
+
|
744
|
+
# Set Headers
|
745
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
746
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
747
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes'
|
748
|
+
|
749
|
+
request_url = @base_url || @client.base_url
|
750
|
+
|
751
|
+
options = {
|
752
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
753
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'providerNamespace' => provider_namespace,'resourceTypeName' => resource_type_name,'resourceName' => resource_name},
|
754
|
+
query_params: {'api-version' => @client.api_version},
|
755
|
+
headers: request_headers.merge(custom_headers || {}),
|
756
|
+
base_url: request_url
|
757
|
+
}
|
758
|
+
promise = @client.make_request_async(:get, path_template, options)
|
759
|
+
|
760
|
+
promise = promise.then do |result|
|
761
|
+
http_response = result.response
|
762
|
+
status_code = http_response.status
|
763
|
+
response_content = http_response.body
|
764
|
+
unless status_code == 200
|
765
|
+
error_model = JSON.load(response_content)
|
766
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
767
|
+
end
|
768
|
+
|
769
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
770
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
771
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
772
|
+
# Deserialize Response
|
773
|
+
if status_code == 200
|
774
|
+
begin
|
775
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
776
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::EventTypesListResult.mapper()
|
777
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
778
|
+
rescue Exception => e
|
779
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
783
|
+
result
|
784
|
+
end
|
785
|
+
|
786
|
+
promise.execute
|
787
|
+
end
|
788
|
+
|
789
|
+
#
|
790
|
+
# Create a topic
|
791
|
+
#
|
792
|
+
# Asynchronously creates a new topic with the specified parameters.
|
793
|
+
#
|
794
|
+
# @param resource_group_name [String] The name of the resource group within the
|
795
|
+
# user's subscription.
|
796
|
+
# @param topic_name [String] Name of the topic
|
797
|
+
# @param topic_info [Topic] Topic information
|
798
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
799
|
+
# will be added to the HTTP request.
|
800
|
+
#
|
801
|
+
# @return [Topic] operation results.
|
802
|
+
#
|
803
|
+
def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
804
|
+
response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
805
|
+
response.body unless response.nil?
|
806
|
+
end
|
807
|
+
|
808
|
+
#
|
809
|
+
# Create a topic
|
810
|
+
#
|
811
|
+
# Asynchronously creates a new topic with the specified parameters.
|
812
|
+
#
|
813
|
+
# @param resource_group_name [String] The name of the resource group within the
|
814
|
+
# user's subscription.
|
815
|
+
# @param topic_name [String] Name of the topic
|
816
|
+
# @param topic_info [Topic] Topic information
|
817
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
818
|
+
# will be added to the HTTP request.
|
819
|
+
#
|
820
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
821
|
+
#
|
822
|
+
def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
823
|
+
begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value!
|
824
|
+
end
|
825
|
+
|
826
|
+
#
|
827
|
+
# Create a topic
|
828
|
+
#
|
829
|
+
# Asynchronously creates a new topic with the specified parameters.
|
830
|
+
#
|
831
|
+
# @param resource_group_name [String] The name of the resource group within the
|
832
|
+
# user's subscription.
|
833
|
+
# @param topic_name [String] Name of the topic
|
834
|
+
# @param topic_info [Topic] Topic information
|
835
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
836
|
+
# to the HTTP request.
|
837
|
+
#
|
838
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
839
|
+
#
|
840
|
+
def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil)
|
841
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
842
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
843
|
+
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
844
|
+
fail ArgumentError, 'topic_info is nil' if topic_info.nil?
|
845
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
846
|
+
|
847
|
+
|
848
|
+
request_headers = {}
|
849
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
850
|
+
|
851
|
+
# Set Headers
|
852
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
853
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
854
|
+
|
855
|
+
# Serialize Request
|
856
|
+
request_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
857
|
+
request_content = @client.serialize(request_mapper, topic_info)
|
858
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
859
|
+
|
860
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
861
|
+
|
862
|
+
request_url = @base_url || @client.base_url
|
863
|
+
|
864
|
+
options = {
|
865
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
866
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
867
|
+
query_params: {'api-version' => @client.api_version},
|
868
|
+
body: request_content,
|
869
|
+
headers: request_headers.merge(custom_headers || {}),
|
870
|
+
base_url: request_url
|
871
|
+
}
|
872
|
+
promise = @client.make_request_async(:put, path_template, options)
|
873
|
+
|
874
|
+
promise = promise.then do |result|
|
875
|
+
http_response = result.response
|
876
|
+
status_code = http_response.status
|
877
|
+
response_content = http_response.body
|
878
|
+
unless status_code == 201
|
879
|
+
error_model = JSON.load(response_content)
|
880
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
881
|
+
end
|
882
|
+
|
883
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
884
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
885
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
886
|
+
# Deserialize Response
|
887
|
+
if status_code == 201
|
888
|
+
begin
|
889
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
890
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
891
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
892
|
+
rescue Exception => e
|
893
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
894
|
+
end
|
895
|
+
end
|
896
|
+
|
897
|
+
result
|
898
|
+
end
|
899
|
+
|
900
|
+
promise.execute
|
901
|
+
end
|
902
|
+
|
903
|
+
#
|
904
|
+
# Delete a topic
|
905
|
+
#
|
906
|
+
# Delete existing topic
|
907
|
+
#
|
908
|
+
# @param resource_group_name [String] The name of the resource group within the
|
909
|
+
# user's subscription.
|
910
|
+
# @param topic_name [String] Name of the topic
|
911
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
912
|
+
# will be added to the HTTP request.
|
913
|
+
#
|
914
|
+
#
|
915
|
+
def begin_delete(resource_group_name, topic_name, custom_headers:nil)
|
916
|
+
response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
917
|
+
nil
|
918
|
+
end
|
919
|
+
|
920
|
+
#
|
921
|
+
# Delete a topic
|
922
|
+
#
|
923
|
+
# Delete existing topic
|
924
|
+
#
|
925
|
+
# @param resource_group_name [String] The name of the resource group within the
|
926
|
+
# user's subscription.
|
927
|
+
# @param topic_name [String] Name of the topic
|
928
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
929
|
+
# will be added to the HTTP request.
|
930
|
+
#
|
931
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
932
|
+
#
|
933
|
+
def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil)
|
934
|
+
begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value!
|
935
|
+
end
|
936
|
+
|
937
|
+
#
|
938
|
+
# Delete a topic
|
939
|
+
#
|
940
|
+
# Delete existing topic
|
941
|
+
#
|
942
|
+
# @param resource_group_name [String] The name of the resource group within the
|
943
|
+
# user's subscription.
|
944
|
+
# @param topic_name [String] Name of the topic
|
945
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
946
|
+
# to the HTTP request.
|
947
|
+
#
|
948
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
949
|
+
#
|
950
|
+
def begin_delete_async(resource_group_name, topic_name, custom_headers:nil)
|
951
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
952
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
953
|
+
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
954
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
955
|
+
|
956
|
+
|
957
|
+
request_headers = {}
|
958
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
959
|
+
|
960
|
+
# Set Headers
|
961
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
962
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
963
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
964
|
+
|
965
|
+
request_url = @base_url || @client.base_url
|
966
|
+
|
967
|
+
options = {
|
968
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
969
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
970
|
+
query_params: {'api-version' => @client.api_version},
|
971
|
+
headers: request_headers.merge(custom_headers || {}),
|
972
|
+
base_url: request_url
|
973
|
+
}
|
974
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
975
|
+
|
976
|
+
promise = promise.then do |result|
|
977
|
+
http_response = result.response
|
978
|
+
status_code = http_response.status
|
979
|
+
response_content = http_response.body
|
980
|
+
unless status_code == 202 || status_code == 204
|
981
|
+
error_model = JSON.load(response_content)
|
982
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
983
|
+
end
|
984
|
+
|
985
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
986
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
987
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
988
|
+
|
989
|
+
result
|
990
|
+
end
|
991
|
+
|
992
|
+
promise.execute
|
993
|
+
end
|
994
|
+
|
995
|
+
#
|
996
|
+
# Update a topic
|
997
|
+
#
|
998
|
+
# Asynchronously updates a topic with the specified parameters.
|
999
|
+
#
|
1000
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1001
|
+
# user's subscription.
|
1002
|
+
# @param topic_name [String] Name of the topic
|
1003
|
+
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
1004
|
+
# information
|
1005
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1006
|
+
# will be added to the HTTP request.
|
1007
|
+
#
|
1008
|
+
# @return [Topic] operation results.
|
1009
|
+
#
|
1010
|
+
def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
1011
|
+
response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
|
1012
|
+
response.body unless response.nil?
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
#
|
1016
|
+
# Update a topic
|
1017
|
+
#
|
1018
|
+
# Asynchronously updates a topic with the specified parameters.
|
1019
|
+
#
|
1020
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1021
|
+
# user's subscription.
|
1022
|
+
# @param topic_name [String] Name of the topic
|
1023
|
+
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
1024
|
+
# information
|
1025
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1026
|
+
# will be added to the HTTP request.
|
1027
|
+
#
|
1028
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1029
|
+
#
|
1030
|
+
def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
1031
|
+
begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value!
|
1032
|
+
end
|
1033
|
+
|
1034
|
+
#
|
1035
|
+
# Update a topic
|
1036
|
+
#
|
1037
|
+
# Asynchronously updates a topic with the specified parameters.
|
1038
|
+
#
|
1039
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1040
|
+
# user's subscription.
|
1041
|
+
# @param topic_name [String] Name of the topic
|
1042
|
+
# @param topic_update_parameters [TopicUpdateParameters] Topic update
|
1043
|
+
# information
|
1044
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1045
|
+
# to the HTTP request.
|
1046
|
+
#
|
1047
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1048
|
+
#
|
1049
|
+
def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil)
|
1050
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1051
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1052
|
+
fail ArgumentError, 'topic_name is nil' if topic_name.nil?
|
1053
|
+
fail ArgumentError, 'topic_update_parameters is nil' if topic_update_parameters.nil?
|
1054
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1055
|
+
|
1056
|
+
|
1057
|
+
request_headers = {}
|
1058
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1059
|
+
|
1060
|
+
# Set Headers
|
1061
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1062
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1063
|
+
|
1064
|
+
# Serialize Request
|
1065
|
+
request_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::TopicUpdateParameters.mapper()
|
1066
|
+
request_content = @client.serialize(request_mapper, topic_update_parameters)
|
1067
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1068
|
+
|
1069
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
|
1070
|
+
|
1071
|
+
request_url = @base_url || @client.base_url
|
1072
|
+
|
1073
|
+
options = {
|
1074
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1075
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'topicName' => topic_name},
|
1076
|
+
query_params: {'api-version' => @client.api_version},
|
1077
|
+
body: request_content,
|
1078
|
+
headers: request_headers.merge(custom_headers || {}),
|
1079
|
+
base_url: request_url
|
1080
|
+
}
|
1081
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
1082
|
+
|
1083
|
+
promise = promise.then do |result|
|
1084
|
+
http_response = result.response
|
1085
|
+
status_code = http_response.status
|
1086
|
+
response_content = http_response.body
|
1087
|
+
unless status_code == 201
|
1088
|
+
error_model = JSON.load(response_content)
|
1089
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1093
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1094
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1095
|
+
# Deserialize Response
|
1096
|
+
if status_code == 201
|
1097
|
+
begin
|
1098
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1099
|
+
result_mapper = Azure::EventGrid::Mgmt::V2018_01_01::Models::Topic.mapper()
|
1100
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1101
|
+
rescue Exception => e
|
1102
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1103
|
+
end
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
result
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
promise.execute
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
end
|
1113
|
+
end
|