azure_mgmt_event_grid 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb +143 -0
  3. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/event_subscriptions.rb +18 -18
  4. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/endpoint_type.rb +15 -0
  5. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb +124 -0
  6. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb +68 -0
  7. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_filter.rb +1 -1
  8. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_full_url.rb +1 -1
  9. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +1 -1
  10. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +76 -0
  11. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +1 -1
  12. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_type.rb +1 -1
  13. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/event_types_list_result.rb +1 -1
  14. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operation.rb +1 -1
  15. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operation_info.rb +1 -1
  16. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operation_origin.rb +1 -1
  17. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/operations_list_result.rb +1 -1
  18. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/resource.rb +1 -1
  19. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/resource_region_type.rb +1 -1
  20. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic.rb +1 -1
  21. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_provisioning_state.rb +1 -1
  22. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +1 -1
  23. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +1 -1
  24. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb +111 -0
  25. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +1 -1
  26. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topic_types_list_result.rb +1 -1
  27. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/topics_list_result.rb +1 -1
  28. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/models/tracked_resource.rb +1 -1
  29. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -0
  30. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/operations.rb +2 -2
  31. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/topic_types.rb +4 -4
  32. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/topics.rb +11 -11
  33. data/lib/{generated → 2017-06-15-preview/generated}/azure_mgmt_event_grid/version.rb +2 -2
  34. data/lib/2017-06-15-preview/generated/azure_mgmt_event_grid.rb +56 -0
  35. data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/event_grid_management_client.rb +3 -3
  36. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +1803 -0
  37. data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb +1 -1
  38. data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription.rb +1 -1
  39. data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_destination.rb +1 -1
  40. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb +92 -0
  41. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb +45 -0
  42. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb +20 -0
  43. data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb +1 -1
  44. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb +52 -0
  45. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb +88 -0
  46. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb +52 -0
  47. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb +76 -0
  48. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb +74 -0
  49. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb +17 -0
  50. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb +52 -0
  51. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb +67 -0
  52. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb +16 -0
  53. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb +103 -0
  54. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb +20 -0
  55. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb +44 -0
  56. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb +54 -0
  57. data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/topic_type_info.rb +1 -1
  58. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb +20 -0
  59. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb +52 -0
  60. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb +52 -0
  61. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb +85 -0
  62. data/lib/{generated → 2017-09-15-preview/generated}/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb +1 -1
  63. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/module_definition.rb +9 -0
  64. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +115 -0
  65. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +296 -0
  66. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +926 -0
  67. data/lib/{generated/azure_mgmt_event_grid/module_definition.rb → 2017-09-15-preview/generated/azure_mgmt_event_grid/version.rb} +3 -3
  68. data/lib/2017-09-15-preview/generated/azure_mgmt_event_grid.rb +57 -0
  69. data/lib/azure_mgmt_event_grid.rb +3 -2
  70. data/lib/module_definition.rb +7 -0
  71. data/lib/profiles/common/configurable.rb +73 -0
  72. data/lib/profiles/common/default.rb +68 -0
  73. data/lib/profiles/latest/eventgrid_latest_profile_client.rb +33 -0
  74. data/lib/profiles/latest/eventgrid_module_definition.rb +9 -0
  75. data/lib/profiles/latest/modules/eventgrid_profile_module.rb +152 -0
  76. data/lib/version.rb +7 -0
  77. metadata +76 -36
  78. data/lib/generated/azure_mgmt_event_grid.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9af67a07c123ae3ca5f502e7a6f9fd28da494f8f
4
- data.tar.gz: 6ca314d7ee0bbe87358bbe3b36f2d5a3997a1ff2
3
+ metadata.gz: 92732a71c844f685f8dbb8872d0220aec1b9358f
4
+ data.tar.gz: a5227e278f88b498dc7f530b6eba942f04105dcc
5
5
  SHA512:
6
- metadata.gz: 009b14ed5d491b2afa21f89d5e98d4afc8da776c7a562fe56eed4d4f20a961511d8e54fd7504c4e8ca8aca9432bf62c5546541604d7c456ec3cc41e5c5bdd9c4
7
- data.tar.gz: 570030d900d28e38efb4676dacc278f95b942b9dcec9cd31144709a421eb927b3d65e591b3077402acef22759f4275a01c617fc343b34a9a7810325998b38be5
6
+ metadata.gz: 38a164e9acd26a93b8d38c0cbb4db49115356c60151ff5a562c56c65ce1232c2e912d96fc12d0d4ebfc70ddab9d0396affb34f248a7f7e4fb5c0a143c4c56e32
7
+ data.tar.gz: 286b38eed4e8f66400634e38de123554d809e2802f57879186f76ee97cb511028f486821839a04a8d77b43c22da1be955d8bcdb52d946460e70bdc402d9eb443
@@ -0,0 +1,143 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class EventGridManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Subscription credentials that uniquely identify a
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Version of the API to be used with the client request.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] Gets or sets the preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
+ # Running Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
+ # is generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return [EventSubscriptions] event_subscriptions
40
+ attr_reader :event_subscriptions
41
+
42
+ # @return [Operations] operations
43
+ attr_reader :operations
44
+
45
+ # @return [Topics] topics
46
+ attr_reader :topics
47
+
48
+ # @return [TopicTypes] topic_types
49
+ attr_reader :topic_types
50
+
51
+ #
52
+ # Creates initializes a new instance of the EventGridManagementClient class.
53
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
54
+ # @param base_url [String] the base URI of the service.
55
+ # @param options [Array] filters to be applied to the HTTP requests.
56
+ #
57
+ def initialize(credentials = nil, base_url = nil, options = nil)
58
+ super(credentials, options)
59
+ @base_url = base_url || 'https://management.azure.com'
60
+
61
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
62
+ @credentials = credentials
63
+
64
+ @event_subscriptions = EventSubscriptions.new(self)
65
+ @operations = Operations.new(self)
66
+ @topics = Topics.new(self)
67
+ @topic_types = TopicTypes.new(self)
68
+ @api_version = '2017-06-15-preview'
69
+ @accept_language = 'en-US'
70
+ @long_running_operation_retry_timeout = 30
71
+ @generate_client_request_id = true
72
+ add_telemetry
73
+ end
74
+
75
+ #
76
+ # Makes a request and returns the body of the response.
77
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
78
+ # @param path [String] the path, relative to {base_url}.
79
+ # @param options [Hash{String=>String}] specifying any request options like :body.
80
+ # @return [Hash{String=>String}] containing the body of the response.
81
+ # Example:
82
+ #
83
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
84
+ # path = "/path"
85
+ # options = {
86
+ # body: request_content,
87
+ # query_params: {'api-version' => '2016-02-01'}
88
+ # }
89
+ # result = @client.make_request(:put, path, options)
90
+ #
91
+ def make_request(method, path, options = {})
92
+ result = make_request_with_http_info(method, path, options)
93
+ result.body unless result.nil?
94
+ end
95
+
96
+ #
97
+ # Makes a request and returns the operation response.
98
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
99
+ # @param path [String] the path, relative to {base_url}.
100
+ # @param options [Hash{String=>String}] specifying any request options like :body.
101
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
102
+ #
103
+ def make_request_with_http_info(method, path, options = {})
104
+ result = make_request_async(method, path, options).value!
105
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
106
+ result
107
+ end
108
+
109
+ #
110
+ # Makes a request asynchronously.
111
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
112
+ # @param path [String] the path, relative to {base_url}.
113
+ # @param options [Hash{String=>String}] specifying any request options like :body.
114
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
115
+ #
116
+ def make_request_async(method, path, options = {})
117
+ fail ArgumentError, 'method is nil' if method.nil?
118
+ fail ArgumentError, 'path is nil' if path.nil?
119
+
120
+ request_url = options[:base_url] || @base_url
121
+
122
+ request_headers = @request_headers
123
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
124
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
125
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
126
+
127
+ super(request_url, method, path, options)
128
+ end
129
+
130
+
131
+ private
132
+ #
133
+ # Adds telemetry information.
134
+ #
135
+ def add_telemetry
136
+ sdk_information = 'azure_mgmt_event_grid'
137
+ if defined? Azure::EventGrid::Mgmt::V2017_06_15_preview::VERSION
138
+ sdk_information = "#{sdk_information}/#{Azure::EventGrid::Mgmt::V2017_06_15_preview::VERSION}"
139
+ end
140
+ add_user_agent_information(sdk_information)
141
+ end
142
+ end
143
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  #
8
8
  # Azure EventGrid Management Client
9
9
  #
@@ -132,7 +132,7 @@ module Azure::ARM::EventGrid
132
132
  if status_code == 200
133
133
  begin
134
134
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
135
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscription.mapper()
135
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
136
136
  result.body = @client.deserialize(result_mapper, parsed_response)
137
137
  rescue Exception => e
138
138
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -208,7 +208,7 @@ module Azure::ARM::EventGrid
208
208
  promise = promise.then do |response|
209
209
  # Defining deserialization method.
210
210
  deserialize_method = lambda do |parsed_response|
211
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscription.mapper()
211
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
212
212
  parsed_response = @client.deserialize(result_mapper, parsed_response)
213
213
  end
214
214
 
@@ -334,7 +334,7 @@ module Azure::ARM::EventGrid
334
334
  promise = promise.then do |response|
335
335
  # Defining deserialization method.
336
336
  deserialize_method = lambda do |parsed_response|
337
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscription.mapper()
337
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
338
338
  parsed_response = @client.deserialize(result_mapper, parsed_response)
339
339
  end
340
340
 
@@ -456,7 +456,7 @@ module Azure::ARM::EventGrid
456
456
  if status_code == 200
457
457
  begin
458
458
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
459
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionFullUrl.mapper()
459
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionFullUrl.mapper()
460
460
  result.body = @client.deserialize(result_mapper, parsed_response)
461
461
  rescue Exception => e
462
462
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -551,7 +551,7 @@ module Azure::ARM::EventGrid
551
551
  if status_code == 200
552
552
  begin
553
553
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
554
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
554
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
555
555
  result.body = @client.deserialize(result_mapper, parsed_response)
556
556
  rescue Exception => e
557
557
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -647,7 +647,7 @@ module Azure::ARM::EventGrid
647
647
  if status_code == 200
648
648
  begin
649
649
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
650
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
650
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
651
651
  result.body = @client.deserialize(result_mapper, parsed_response)
652
652
  rescue Exception => e
653
653
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -749,7 +749,7 @@ module Azure::ARM::EventGrid
749
749
  if status_code == 200
750
750
  begin
751
751
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
752
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
752
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
753
753
  result.body = @client.deserialize(result_mapper, parsed_response)
754
754
  rescue Exception => e
755
755
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -852,7 +852,7 @@ module Azure::ARM::EventGrid
852
852
  if status_code == 200
853
853
  begin
854
854
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
855
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
855
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
856
856
  result.body = @client.deserialize(result_mapper, parsed_response)
857
857
  rescue Exception => e
858
858
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -948,7 +948,7 @@ module Azure::ARM::EventGrid
948
948
  if status_code == 200
949
949
  begin
950
950
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
951
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
951
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
952
952
  result.body = @client.deserialize(result_mapper, parsed_response)
953
953
  rescue Exception => e
954
954
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1054,7 +1054,7 @@ module Azure::ARM::EventGrid
1054
1054
  if status_code == 200
1055
1055
  begin
1056
1056
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1057
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
1057
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1058
1058
  result.body = @client.deserialize(result_mapper, parsed_response)
1059
1059
  rescue Exception => e
1060
1060
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1157,7 +1157,7 @@ module Azure::ARM::EventGrid
1157
1157
  if status_code == 200
1158
1158
  begin
1159
1159
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1160
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
1160
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1161
1161
  result.body = @client.deserialize(result_mapper, parsed_response)
1162
1162
  rescue Exception => e
1163
1163
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1267,7 +1267,7 @@ module Azure::ARM::EventGrid
1267
1267
  if status_code == 200
1268
1268
  begin
1269
1269
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1270
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
1270
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1271
1271
  result.body = @client.deserialize(result_mapper, parsed_response)
1272
1272
  rescue Exception => e
1273
1273
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1375,7 +1375,7 @@ module Azure::ARM::EventGrid
1375
1375
  if status_code == 200
1376
1376
  begin
1377
1377
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1378
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionsListResult.mapper()
1378
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionsListResult.mapper()
1379
1379
  result.body = @client.deserialize(result_mapper, parsed_response)
1380
1380
  rescue Exception => e
1381
1381
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1497,7 +1497,7 @@ module Azure::ARM::EventGrid
1497
1497
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1498
1498
 
1499
1499
  # Serialize Request
1500
- request_mapper = Azure::ARM::EventGrid::Models::EventSubscription.mapper()
1500
+ request_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1501
1501
  request_content = @client.serialize(request_mapper, event_subscription_info)
1502
1502
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1503
1503
 
@@ -1530,7 +1530,7 @@ module Azure::ARM::EventGrid
1530
1530
  if status_code == 201
1531
1531
  begin
1532
1532
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1533
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscription.mapper()
1533
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1534
1534
  result.body = @client.deserialize(result_mapper, parsed_response)
1535
1535
  rescue Exception => e
1536
1536
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1753,7 +1753,7 @@ module Azure::ARM::EventGrid
1753
1753
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
1754
1754
 
1755
1755
  # Serialize Request
1756
- request_mapper = Azure::ARM::EventGrid::Models::EventSubscriptionUpdateParameters.mapper()
1756
+ request_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscriptionUpdateParameters.mapper()
1757
1757
  request_content = @client.serialize(request_mapper, event_subscription_update_parameters)
1758
1758
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1759
1759
 
@@ -1786,7 +1786,7 @@ module Azure::ARM::EventGrid
1786
1786
  if status_code == 201
1787
1787
  begin
1788
1788
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1789
- result_mapper = Azure::ARM::EventGrid::Models::EventSubscription.mapper()
1789
+ result_mapper = Azure::EventGrid::Mgmt::V2017_06_15_preview::Models::EventSubscription.mapper()
1790
1790
  result.body = @client.deserialize(result_mapper, parsed_response)
1791
1791
  rescue Exception => e
1792
1792
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
+ module Models
8
+ #
9
+ # Defines values for EndpointType
10
+ #
11
+ module EndpointType
12
+ WebHook = "WebHook"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,124 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
+ module Models
8
+ #
9
+ # Event Subscription
10
+ #
11
+ class EventSubscription < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the topic of the event subscription.
16
+ attr_accessor :topic
17
+
18
+ # @return [EventSubscriptionProvisioningState] Provisioning state of the
19
+ # event subscription. Possible values include: 'Creating', 'Updating',
20
+ # 'Deleting', 'Succeeded', 'Canceled', 'Failed'
21
+ attr_accessor :provisioning_state
22
+
23
+ # @return [EventSubscriptionDestination] Information about the
24
+ # destination where events have to be delivered for the event
25
+ # subscription.
26
+ attr_accessor :destination
27
+
28
+ # @return [EventSubscriptionFilter] Information about the filter for the
29
+ # event subscription.
30
+ attr_accessor :filter
31
+
32
+ # @return [Array<String>] List of user defined labels.
33
+ attr_accessor :labels
34
+
35
+
36
+ #
37
+ # Mapper for EventSubscription class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'EventSubscription',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'EventSubscription',
47
+ model_properties: {
48
+ id: {
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ name: {
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'name',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'type',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ topic: {
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'properties.topic',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ provisioning_state: {
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'properties.provisioningState',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ destination: {
89
+ required: false,
90
+ serialized_name: 'properties.destination',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'EventSubscriptionDestination'
94
+ }
95
+ },
96
+ filter: {
97
+ required: false,
98
+ serialized_name: 'properties.filter',
99
+ type: {
100
+ name: 'Composite',
101
+ class_name: 'EventSubscriptionFilter'
102
+ }
103
+ },
104
+ labels: {
105
+ required: false,
106
+ serialized_name: 'properties.labels',
107
+ type: {
108
+ name: 'Sequence',
109
+ element: {
110
+ required: false,
111
+ serialized_name: 'StringElementType',
112
+ type: {
113
+ name: 'String'
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
+ module Models
8
+ #
9
+ # Information about the destination for an event subscription
10
+ #
11
+ class EventSubscriptionDestination
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [EndpointType] Type of the endpoint for the event subscription
16
+ # destination. Possible values include: 'WebHook'
17
+ attr_accessor :endpoint_type
18
+
19
+ # @return [String] The URL that represents the endpoint of the
20
+ # destination of an event subscription.
21
+ attr_accessor :endpoint_url
22
+
23
+ # @return [String] The base URL that represents the endpoint of the
24
+ # destination of an event subscription.
25
+ attr_accessor :endpoint_base_url
26
+
27
+
28
+ #
29
+ # Mapper for EventSubscriptionDestination class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'EventSubscriptionDestination',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'EventSubscriptionDestination',
39
+ model_properties: {
40
+ endpoint_type: {
41
+ required: false,
42
+ serialized_name: 'endpointType',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ endpoint_url: {
48
+ required: false,
49
+ serialized_name: 'properties.endpointUrl',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ endpoint_base_url: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'properties.endpointBaseUrl',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  module Models
8
8
  #
9
9
  # Filter for the Event Subscription
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  module Models
8
8
  #
9
9
  # Full endpoint url of an event subscription
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  module Models
8
8
  #
9
9
  # Defines values for EventSubscriptionProvisioningState
@@ -0,0 +1,76 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
+ module Models
8
+ #
9
+ # Properties of the Event Subscription update
10
+ #
11
+ class EventSubscriptionUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [EventSubscriptionDestination] Information about the
16
+ # destination where events have to be delivered for the event
17
+ # subscription.
18
+ attr_accessor :destination
19
+
20
+ # @return [EventSubscriptionFilter] Information about the filter for the
21
+ # event subscription.
22
+ attr_accessor :filter
23
+
24
+ # @return [Array<String>] List of user defined labels.
25
+ attr_accessor :labels
26
+
27
+
28
+ #
29
+ # Mapper for EventSubscriptionUpdateParameters class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'EventSubscriptionUpdateParameters',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'EventSubscriptionUpdateParameters',
39
+ model_properties: {
40
+ destination: {
41
+ required: false,
42
+ serialized_name: 'destination',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'EventSubscriptionDestination'
46
+ }
47
+ },
48
+ filter: {
49
+ required: false,
50
+ serialized_name: 'filter',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'EventSubscriptionFilter'
54
+ }
55
+ },
56
+ labels: {
57
+ required: false,
58
+ serialized_name: 'labels',
59
+ type: {
60
+ name: 'Sequence',
61
+ element: {
62
+ required: false,
63
+ serialized_name: 'StringElementType',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  module Models
8
8
  #
9
9
  # Result of the List EventSubscriptions operation
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  module Models
8
8
  #
9
9
  # Event Type for a subject under a topic
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  module Models
8
8
  #
9
9
  # Result of the List Event Types operation
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::EventGrid
6
+ module Azure::EventGrid::Mgmt::V2017_06_15_preview
7
7
  module Models
8
8
  #
9
9
  # Represents an operation returned by the GetOperations request