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
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure end
7
- module Azure::ARM end
8
- module Azure::ARM::EventGrid end
6
+ module Azure::EventGrid::Mgmt::V2017_09_15_preview
7
+ VERSION = '0.15.0'
8
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2017-09-15-preview/generated/azure_mgmt_event_grid/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::EventGrid::Mgmt::V2017_09_15_preview
23
+ autoload :EventSubscriptions, '2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb'
24
+ autoload :Operations, '2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb'
25
+ autoload :Topics, '2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb'
26
+ autoload :TopicTypes, '2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb'
27
+ autoload :EventGridManagementClient, '2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb'
28
+
29
+ module Models
30
+ autoload :Operation, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb'
31
+ autoload :OperationsListResult, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb'
32
+ autoload :EventSubscriptionFilter, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb'
33
+ autoload :EventSubscriptionDestination, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb'
34
+ autoload :OperationInfo, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb'
35
+ autoload :EventTypesListResult, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb'
36
+ autoload :TopicSharedAccessKeys, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb'
37
+ autoload :EventSubscriptionUpdateParameters, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb'
38
+ autoload :Resource, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb'
39
+ autoload :EventSubscriptionsListResult, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb'
40
+ autoload :EventSubscriptionFullUrl, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb'
41
+ autoload :TopicTypesListResult, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb'
42
+ autoload :TopicRegenerateKeyRequest, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb'
43
+ autoload :TopicsListResult, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb'
44
+ autoload :WebHookEventSubscriptionDestination, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb'
45
+ autoload :EventHubEventSubscriptionDestination, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb'
46
+ autoload :EventSubscription, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb'
47
+ autoload :TrackedResource, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb'
48
+ autoload :Topic, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb'
49
+ autoload :EventType, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb'
50
+ autoload :TopicTypeInfo, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb'
51
+ autoload :EventSubscriptionProvisioningState, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb'
52
+ autoload :OperationOrigin, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb'
53
+ autoload :TopicProvisioningState, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb'
54
+ autoload :ResourceRegionType, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb'
55
+ autoload :TopicTypeProvisioningState, '2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb'
56
+ end
57
+ end
@@ -2,5 +2,6 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require 'generated/azure_mgmt_event_grid'
6
- require 'generated/azure_mgmt_event_grid'
5
+ require '2017-06-15-preview/generated/azure_mgmt_event_grid'
6
+ require '2017-09-15-preview/generated/azure_mgmt_event_grid'
7
+ require 'profiles/latest/eventgrid_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::EventGrid end
7
+ module Azure::EventGrid::Mgmt end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
7
+ module Configurable
8
+ # @return [String] Azure tenant id (also known as domain).
9
+ attr_accessor :tenant_id
10
+
11
+ # @return [String] Azure client id.
12
+ attr_accessor :client_id
13
+
14
+ # @return [String] Azure secret key.
15
+ attr_accessor :client_secret
16
+
17
+ # @return [String] Azure subscription id.
18
+ attr_accessor :subscription_id
19
+
20
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
+ attr_accessor :active_directory_settings
22
+
23
+ # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
+ attr_accessor :credentials
25
+
26
+ class << self
27
+ #
28
+ # List of configurable keys for {Azure::ARM::Client}.
29
+ # @return [Array] of option keys.
30
+ #
31
+ def keys
32
+ @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
33
+ end
34
+ end
35
+
36
+ #
37
+ # Set configuration options using a block.
38
+ #
39
+ def configure
40
+ yield self
41
+ end
42
+
43
+ #
44
+ # Resets the configurable options to provided options or defaults.
45
+ # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
+ #
47
+ def reset!(options = {})
48
+ Azure::ARM::Configurable.keys.each do |key|
49
+ default_value = Azure::ARM::Default.options[key]
50
+ instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
+ end
52
+
53
+ self
54
+ end
55
+
56
+ def config
57
+ self
58
+ end
59
+
60
+ private
61
+
62
+ #
63
+ # configures configurable options to default values
64
+ #
65
+ def setup_options
66
+ opts = {}
67
+ Azure::ARM::Configurable.keys.map do |key|
68
+ opts[key] = Azure::ARM::Default.options[key]
69
+ end
70
+ opts
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # Default configuration options for {Azure::ARM.Client}
7
+ module Default
8
+ class << self
9
+ #
10
+ # Default Azure Tenant Id.
11
+ # @return [String] Azure Tenant Id.
12
+ #
13
+ def tenant_id
14
+ ENV['AZURE_TENANT_ID']
15
+ end
16
+
17
+ #
18
+ # Default Azure Client Id.
19
+ # @return [String] Azure Client Id.
20
+ #
21
+ def client_id
22
+ ENV['AZURE_CLIENT_ID']
23
+ end
24
+
25
+ #
26
+ # Default Azure Client Secret.
27
+ # @return [String] Azure Client Secret.
28
+ #
29
+ def client_secret
30
+ ENV['AZURE_CLIENT_SECRET']
31
+ end
32
+
33
+ #
34
+ # Default Azure Subscription Id.
35
+ # @return [String] Azure Subscription Id.
36
+ #
37
+ def subscription_id
38
+ ENV['AZURE_SUBSCRIPTION_ID']
39
+ end
40
+
41
+ #
42
+ # Default Azure credentials to authorize HTTP requests made by the service client.
43
+ # @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
44
+ #
45
+ def credentials
46
+ MsRest::TokenCredentials.new(
47
+ MsRestAzure::ApplicationTokenProvider.new(
48
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
49
+ end
50
+
51
+ #
52
+ # Default Azure Active Directory Service Settings.
53
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
54
+ #
55
+ def active_directory_settings
56
+ MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
57
+ end
58
+
59
+ #
60
+ # Configuration options.
61
+ # @return [Hash] Configuration options.
62
+ #
63
+ def options
64
+ Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,33 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/eventgrid_module_definition'
6
+ require 'profiles/latest/modules/eventgrid_profile_module'
7
+ require 'profiles/common/configurable'
8
+ require 'profiles/common/default'
9
+
10
+ module Azure::EventGrid::Profiles::Latest::Mgmt
11
+ #
12
+ # Client class for the Latest profile SDK.
13
+ #
14
+ class Client < EventGridClass
15
+ include Azure::ARM::Configurable
16
+
17
+
18
+ def initialize(options = {})
19
+ super(options)
20
+ end
21
+
22
+ def credentials
23
+ if @credentials.nil?
24
+ self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
25
+
26
+ @credentials = MsRest::TokenCredentials.new(
27
+ MsRestAzure::ApplicationTokenProvider.new(
28
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
29
+ end
30
+ @credentials
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::EventGrid end
7
+ module Azure::EventGrid::Profiles end
8
+ module Azure::EventGrid::Profiles::Latest end
9
+ module Azure::EventGrid::Profiles::Latest::Mgmt end
@@ -0,0 +1,152 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_event_grid'
6
+
7
+ module Azure::EventGrid::Profiles::Latest::Mgmt
8
+ EventSubscriptions = Azure::EventGrid::Mgmt::V2017_09_15_preview::EventSubscriptions
9
+ Operations = Azure::EventGrid::Mgmt::V2017_09_15_preview::Operations
10
+ Topics = Azure::EventGrid::Mgmt::V2017_09_15_preview::Topics
11
+ TopicTypes = Azure::EventGrid::Mgmt::V2017_09_15_preview::TopicTypes
12
+
13
+ module Models
14
+ Operation = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Operation
15
+ OperationsListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationsListResult
16
+ EventSubscriptionFilter = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFilter
17
+ EventSubscriptionDestination = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionDestination
18
+ OperationInfo = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationInfo
19
+ EventTypesListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventTypesListResult
20
+ TopicSharedAccessKeys = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicSharedAccessKeys
21
+ EventSubscriptionUpdateParameters = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionUpdateParameters
22
+ Resource = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Resource
23
+ EventSubscriptionsListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionsListResult
24
+ EventSubscriptionFullUrl = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFullUrl
25
+ TopicTypesListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypesListResult
26
+ TopicRegenerateKeyRequest = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicRegenerateKeyRequest
27
+ TopicsListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicsListResult
28
+ WebHookEventSubscriptionDestination = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::WebHookEventSubscriptionDestination
29
+ EventHubEventSubscriptionDestination = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventHubEventSubscriptionDestination
30
+ EventSubscription = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscription
31
+ TrackedResource = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TrackedResource
32
+ Topic = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Topic
33
+ EventType = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventType
34
+ TopicTypeInfo = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeInfo
35
+ EventSubscriptionProvisioningState = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionProvisioningState
36
+ OperationOrigin = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationOrigin
37
+ TopicProvisioningState = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicProvisioningState
38
+ ResourceRegionType = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::ResourceRegionType
39
+ TopicTypeProvisioningState = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeProvisioningState
40
+ end
41
+
42
+ #
43
+ # EventGrid
44
+ #
45
+ class EventGridClass
46
+ attr_reader :event_subscriptions, :operations, :topics, :topic_types, :configurable, :base_url, :options, :model_classes
47
+
48
+ def initialize(options = {})
49
+ if options.is_a?(Hash) && options.length == 0
50
+ @options = setup_options
51
+ else
52
+ @options = options
53
+ end
54
+
55
+ reset!(options)
56
+
57
+ @configurable, @base_url, @options = self, nil, nil
58
+
59
+ client_0 = Azure::EventGrid::Mgmt::V2017_09_15_preview::EventGridManagementClient.new(configurable.credentials, base_url, options)
60
+ if(client_0.respond_to?(:subscription_id))
61
+ client_0.subscription_id = configurable.subscription_id
62
+ end
63
+ @event_subscriptions = client_0.event_subscriptions
64
+ @operations = client_0.operations
65
+ @topics = client_0.topics
66
+ @topic_types = client_0.topic_types
67
+
68
+ @model_classes = ModelClasses.new
69
+ end
70
+
71
+ class ModelClasses
72
+ def operation
73
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Operation
74
+ end
75
+ def operations_list_result
76
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationsListResult
77
+ end
78
+ def event_subscription_filter
79
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFilter
80
+ end
81
+ def event_subscription_destination
82
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionDestination
83
+ end
84
+ def operation_info
85
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationInfo
86
+ end
87
+ def event_types_list_result
88
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventTypesListResult
89
+ end
90
+ def topic_shared_access_keys
91
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicSharedAccessKeys
92
+ end
93
+ def event_subscription_update_parameters
94
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionUpdateParameters
95
+ end
96
+ def resource
97
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Resource
98
+ end
99
+ def event_subscriptions_list_result
100
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionsListResult
101
+ end
102
+ def event_subscription_full_url
103
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFullUrl
104
+ end
105
+ def topic_types_list_result
106
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypesListResult
107
+ end
108
+ def topic_regenerate_key_request
109
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicRegenerateKeyRequest
110
+ end
111
+ def topics_list_result
112
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicsListResult
113
+ end
114
+ def web_hook_event_subscription_destination
115
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::WebHookEventSubscriptionDestination
116
+ end
117
+ def event_hub_event_subscription_destination
118
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventHubEventSubscriptionDestination
119
+ end
120
+ def event_subscription
121
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscription
122
+ end
123
+ def tracked_resource
124
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TrackedResource
125
+ end
126
+ def topic
127
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Topic
128
+ end
129
+ def event_type
130
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventType
131
+ end
132
+ def topic_type_info
133
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeInfo
134
+ end
135
+ def event_subscription_provisioning_state
136
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionProvisioningState
137
+ end
138
+ def operation_origin
139
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationOrigin
140
+ end
141
+ def topic_provisioning_state
142
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicProvisioningState
143
+ end
144
+ def resource_region_type
145
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::ResourceRegionType
146
+ end
147
+ def topic_type_provisioning_state
148
+ Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeProvisioningState
149
+ end
150
+ end
151
+ end
152
+ end
data/lib/version.rb ADDED
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::EventGrid::Mgmt
6
+ VERSION = '0.15.0'
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_event_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,41 +87,81 @@ extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
89
  - LICENSE.txt
90
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid.rb
91
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb
92
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb
93
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/endpoint_type.rb
94
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb
95
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb
96
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb
97
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb
98
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb
99
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb
100
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb
101
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb
102
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb
103
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation.rb
104
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb
105
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb
106
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb
107
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource.rb
108
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb
109
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic.rb
110
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb
111
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb
112
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb
113
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb
114
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb
115
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb
116
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb
117
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb
118
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/module_definition.rb
119
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb
120
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb
121
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb
122
+ - lib/2017-06-15-preview/generated/azure_mgmt_event_grid/version.rb
123
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid.rb
124
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_grid_management_client.rb
125
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb
126
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb
127
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription.rb
128
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb
129
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb
130
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb
131
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb
132
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb
133
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb
134
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_type.rb
135
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/event_types_list_result.rb
136
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation.rb
137
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_info.rb
138
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operation_origin.rb
139
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/operations_list_result.rb
140
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource.rb
141
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/resource_region_type.rb
142
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic.rb
143
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb
144
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb
145
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb
146
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_info.rb
147
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb
148
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb
149
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/topics_list_result.rb
150
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/tracked_resource.rb
151
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb
152
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/module_definition.rb
153
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb
154
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb
155
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb
156
+ - lib/2017-09-15-preview/generated/azure_mgmt_event_grid/version.rb
90
157
  - lib/azure_mgmt_event_grid.rb
91
- - lib/generated/azure_mgmt_event_grid.rb
92
- - lib/generated/azure_mgmt_event_grid/event_grid_management_client.rb
93
- - lib/generated/azure_mgmt_event_grid/event_subscriptions.rb
94
- - lib/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb
95
- - lib/generated/azure_mgmt_event_grid/models/event_subscription.rb
96
- - lib/generated/azure_mgmt_event_grid/models/event_subscription_destination.rb
97
- - lib/generated/azure_mgmt_event_grid/models/event_subscription_filter.rb
98
- - lib/generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb
99
- - lib/generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb
100
- - lib/generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb
101
- - lib/generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb
102
- - lib/generated/azure_mgmt_event_grid/models/event_type.rb
103
- - lib/generated/azure_mgmt_event_grid/models/event_types_list_result.rb
104
- - lib/generated/azure_mgmt_event_grid/models/operation.rb
105
- - lib/generated/azure_mgmt_event_grid/models/operation_info.rb
106
- - lib/generated/azure_mgmt_event_grid/models/operation_origin.rb
107
- - lib/generated/azure_mgmt_event_grid/models/operations_list_result.rb
108
- - lib/generated/azure_mgmt_event_grid/models/resource.rb
109
- - lib/generated/azure_mgmt_event_grid/models/resource_region_type.rb
110
- - lib/generated/azure_mgmt_event_grid/models/topic.rb
111
- - lib/generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb
112
- - lib/generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb
113
- - lib/generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb
114
- - lib/generated/azure_mgmt_event_grid/models/topic_type_info.rb
115
- - lib/generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb
116
- - lib/generated/azure_mgmt_event_grid/models/topic_types_list_result.rb
117
- - lib/generated/azure_mgmt_event_grid/models/topics_list_result.rb
118
- - lib/generated/azure_mgmt_event_grid/models/tracked_resource.rb
119
- - lib/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb
120
- - lib/generated/azure_mgmt_event_grid/module_definition.rb
121
- - lib/generated/azure_mgmt_event_grid/operations.rb
122
- - lib/generated/azure_mgmt_event_grid/topic_types.rb
123
- - lib/generated/azure_mgmt_event_grid/topics.rb
124
- - lib/generated/azure_mgmt_event_grid/version.rb
158
+ - lib/module_definition.rb
159
+ - lib/profiles/common/configurable.rb
160
+ - lib/profiles/common/default.rb
161
+ - lib/profiles/latest/eventgrid_latest_profile_client.rb
162
+ - lib/profiles/latest/eventgrid_module_definition.rb
163
+ - lib/profiles/latest/modules/eventgrid_profile_module.rb
164
+ - lib/version.rb
125
165
  homepage: https://aka.ms/azure-sdk-for-ruby
126
166
  licenses:
127
167
  - MIT
@@ -1,57 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- require 'uri'
7
- require 'cgi'
8
- require 'date'
9
- require 'json'
10
- require 'base64'
11
- require 'erb'
12
- require 'securerandom'
13
- require 'time'
14
- require 'timeliness'
15
- require 'faraday'
16
- require 'faraday-cookie_jar'
17
- require 'concurrent'
18
- require 'ms_rest'
19
- require 'generated/azure_mgmt_event_grid/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::ARM::EventGrid
23
- autoload :EventSubscriptions, 'generated/azure_mgmt_event_grid/event_subscriptions.rb'
24
- autoload :Operations, 'generated/azure_mgmt_event_grid/operations.rb'
25
- autoload :Topics, 'generated/azure_mgmt_event_grid/topics.rb'
26
- autoload :TopicTypes, 'generated/azure_mgmt_event_grid/topic_types.rb'
27
- autoload :EventGridManagementClient, 'generated/azure_mgmt_event_grid/event_grid_management_client.rb'
28
-
29
- module Models
30
- autoload :Operation, 'generated/azure_mgmt_event_grid/models/operation.rb'
31
- autoload :OperationsListResult, 'generated/azure_mgmt_event_grid/models/operations_list_result.rb'
32
- autoload :EventSubscriptionFilter, 'generated/azure_mgmt_event_grid/models/event_subscription_filter.rb'
33
- autoload :EventSubscriptionDestination, 'generated/azure_mgmt_event_grid/models/event_subscription_destination.rb'
34
- autoload :OperationInfo, 'generated/azure_mgmt_event_grid/models/operation_info.rb'
35
- autoload :EventTypesListResult, 'generated/azure_mgmt_event_grid/models/event_types_list_result.rb'
36
- autoload :TopicSharedAccessKeys, 'generated/azure_mgmt_event_grid/models/topic_shared_access_keys.rb'
37
- autoload :EventSubscriptionUpdateParameters, 'generated/azure_mgmt_event_grid/models/event_subscription_update_parameters.rb'
38
- autoload :Resource, 'generated/azure_mgmt_event_grid/models/resource.rb'
39
- autoload :EventSubscriptionsListResult, 'generated/azure_mgmt_event_grid/models/event_subscriptions_list_result.rb'
40
- autoload :EventSubscriptionFullUrl, 'generated/azure_mgmt_event_grid/models/event_subscription_full_url.rb'
41
- autoload :TopicTypesListResult, 'generated/azure_mgmt_event_grid/models/topic_types_list_result.rb'
42
- autoload :TopicRegenerateKeyRequest, 'generated/azure_mgmt_event_grid/models/topic_regenerate_key_request.rb'
43
- autoload :TopicsListResult, 'generated/azure_mgmt_event_grid/models/topics_list_result.rb'
44
- autoload :WebHookEventSubscriptionDestination, 'generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb'
45
- autoload :EventHubEventSubscriptionDestination, 'generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb'
46
- autoload :EventSubscription, 'generated/azure_mgmt_event_grid/models/event_subscription.rb'
47
- autoload :TrackedResource, 'generated/azure_mgmt_event_grid/models/tracked_resource.rb'
48
- autoload :Topic, 'generated/azure_mgmt_event_grid/models/topic.rb'
49
- autoload :EventType, 'generated/azure_mgmt_event_grid/models/event_type.rb'
50
- autoload :TopicTypeInfo, 'generated/azure_mgmt_event_grid/models/topic_type_info.rb'
51
- autoload :EventSubscriptionProvisioningState, 'generated/azure_mgmt_event_grid/models/event_subscription_provisioning_state.rb'
52
- autoload :OperationOrigin, 'generated/azure_mgmt_event_grid/models/operation_origin.rb'
53
- autoload :TopicProvisioningState, 'generated/azure_mgmt_event_grid/models/topic_provisioning_state.rb'
54
- autoload :ResourceRegionType, 'generated/azure_mgmt_event_grid/models/resource_region_type.rb'
55
- autoload :TopicTypeProvisioningState, 'generated/azure_mgmt_event_grid/models/topic_type_provisioning_state.rb'
56
- end
57
- end