Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1257 from sarangan12/EventGridRelease_0_15_2
Browse files Browse the repository at this point in the history
Event grid release 0 15 3
  • Loading branch information
sarangan12 authored Jan 30, 2018
2 parents 991f869 + 293419d commit 6b3015b
Show file tree
Hide file tree
Showing 82 changed files with 7,723 additions and 287 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2018.01.30 - Azure ARM release version 0.15.3
* Releasing 0.15.3 version of azure_mgmt_event_grid gem.Refer [PR #1257](https://github.com/Azure/azure-sdk-for-ruby/pull/1257) for further details.
* Releasing 0.15.3 version of azure_event_grid(data plane) gem.Refer [PR #1257](https://github.com/Azure/azure-sdk-for-ruby/pull/1257) for further details.

## 2017.12.19 - Azure ARM release version 0.15.2

* Update azure_mgmt_compute gem to include latest api-versions supporting user assigned identity and ms_rest_azure dependency to 0.10.1
Expand Down
60 changes: 4 additions & 56 deletions GEMS_TO_RELEASE
Original file line number Diff line number Diff line change
@@ -1,60 +1,8 @@
{
"rollup": ["azure_sdk"],
"data": [
"azure_event_grid"
],
"management": [
"azure_mgmt_analysis_services",
"azure_mgmt_authorization",
"azure_mgmt_automation",
"azure_mgmt_batch",
"azure_mgmt_billing",
"azure_mgmt_cdn",
"azure_mgmt_cognitive_services",
"azure_mgmt_commerce",
"azure_mgmt_compute",
"azure_mgmt_container_instance",
"azure_mgmt_container_registry",
"azure_mgmt_container_service",
"azure_mgmt_customer_insights",
"azure_mgmt_datalake_analytics",
"azure_mgmt_datalake_store",
"azure_mgmt_devtestlabs",
"azure_mgmt_dns",
"azure_mgmt_event_grid",
"azure_mgmt_event_hub",
"azure_mgmt_features",
"azure_mgmt_graph",
"azure_mgmt_iot_hub",
"azure_mgmt_key_vault",
"azure_mgmt_links",
"azure_mgmt_locks",
"azure_mgmt_logic",
"azure_mgmt_machine_learning",
"azure_mgmt_managed_applications",
"azure_mgmt_marketplace_ordering",
"azure_mgmt_media_services",
"azure_mgmt_mobile_engagement",
"azure_mgmt_monitor",
"azure_mgmt_network",
"azure_mgmt_notification_hubs",
"azure_mgmt_operational_insights",
"azure_mgmt_policy",
"azure_mgmt_powerbi_embedded",
"azure_mgmt_recovery_services",
"azure_mgmt_recovery_services_backup",
"azure_mgmt_recovery_services_site_recovery",
"azure_mgmt_redis",
"azure_mgmt_relay",
"azure_mgmt_resources",
"azure_mgmt_resources_management",
"azure_mgmt_scheduler",
"azure_mgmt_search",
"azure_mgmt_server_management",
"azure_mgmt_service_bus",
"azure_mgmt_service_fabric",
"azure_mgmt_sql",
"azure_mgmt_stor_simple8000_series",
"azure_mgmt_stream_analytics",
"azure_mgmt_subscriptions",
"azure_mgmt_traffic_manager",
"azure_mgmt_web"
"azure_mgmt_event_grid"
]
}
5 changes: 3 additions & 2 deletions GEM_VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"azure_cognitiveservices_spellcheck": "0.15.2",
"azure_cognitiveservices_textanalytics": "0.15.2",
"azure_cognitiveservices_videosearch": "0.15.2",
"azure_cognitiveservices_websearch": "0.15.2"
"azure_cognitiveservices_websearch": "0.15.2",
"azure_event_grid": "0.15.3"
},
"management" : {
"azure_mgmt_analysis_services": "0.15.2",
Expand All @@ -35,7 +36,7 @@
"azure_mgmt_datalake_store": "0.15.2",
"azure_mgmt_devtestlabs": "0.15.2",
"azure_mgmt_dns": "0.15.2",
"azure_mgmt_event_grid": "0.15.2",
"azure_mgmt_event_grid": "0.15.3",
"azure_mgmt_event_hub": "0.15.2",
"azure_mgmt_features": "0.15.2",
"azure_mgmt_iot_hub": "0.15.2",
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ gem 'azure_cognitiveservices_spellcheck', path: 'data/azure_cognitiveservi
gem 'azure_cognitiveservices_textanalytics', path: 'data/azure_cognitiveservices_textanalytics'
gem 'azure_cognitiveservices_videosearch', path: 'data/azure_cognitiveservices_videosearch'
gem 'azure_cognitiveservices_websearch', path: 'data/azure_cognitiveservices_websearch'
gem 'azure_event_grid', path: 'data/azure_event_grid'
gem 'azure_sdk', path: 'azure_sdk'
5 changes: 2 additions & 3 deletions azure_sdk/lib/latest/latest_profile_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,10 @@ def initialize(context, base_url, options)
end
end

class EventGridAdapter
attr_accessor :mgmt
class EventGridAdapter < Azure::Profiles::Latest::EventGrid::EventGridDataClass

def initialize(context, base_url, options)
@mgmt = Azure::Profiles::Latest::EventGrid::Mgmt::EventGridManagementClass.new(context, base_url, options)
super(context)
end
end

Expand Down
190 changes: 58 additions & 132 deletions azure_sdk/lib/latest/modules/eventgrid_profile_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,148 +2,74 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

require 'azure_mgmt_event_grid'
require 'azure_event_grid'

module Azure::Profiles::Latest
module EventGrid
module Mgmt
EventSubscriptions = Azure::EventGrid::Mgmt::V2017_09_15_preview::EventSubscriptions
Operations = Azure::EventGrid::Mgmt::V2017_09_15_preview::Operations
Topics = Azure::EventGrid::Mgmt::V2017_09_15_preview::Topics
TopicTypes = Azure::EventGrid::Mgmt::V2017_09_15_preview::TopicTypes

module Models
Operation = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Operation
OperationsListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationsListResult
EventSubscriptionFilter = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFilter
EventSubscriptionDestination = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionDestination
OperationInfo = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationInfo
EventTypesListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventTypesListResult
TopicSharedAccessKeys = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicSharedAccessKeys
EventSubscriptionUpdateParameters = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionUpdateParameters
Resource = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Resource
EventSubscriptionsListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionsListResult
EventSubscriptionFullUrl = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFullUrl
TopicTypesListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypesListResult
TopicRegenerateKeyRequest = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicRegenerateKeyRequest
TopicsListResult = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicsListResult
WebHookEventSubscriptionDestination = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::WebHookEventSubscriptionDestination
EventHubEventSubscriptionDestination = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventHubEventSubscriptionDestination
EventSubscription = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscription
TrackedResource = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TrackedResource
Topic = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Topic
EventType = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventType
TopicTypeInfo = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeInfo
EventSubscriptionProvisioningState = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionProvisioningState
OperationOrigin = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationOrigin
TopicProvisioningState = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicProvisioningState
ResourceRegionType = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::ResourceRegionType
TopicTypeProvisioningState = Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeProvisioningState
end

class EventGridManagementClass
attr_reader :event_subscriptions, :operations, :topics, :topic_types, :configurable, :base_url, :options, :model_classes
module Models
ResourceWriteCancelData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData
StorageBlobCreatedEventData = Azure::EventGrid::V2018_01_01::Models::StorageBlobCreatedEventData
ResourceDeleteSuccessData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteSuccessData
EventHubCaptureFileCreatedEventData = Azure::EventGrid::V2018_01_01::Models::EventHubCaptureFileCreatedEventData
ResourceDeleteFailureData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteFailureData
ResourceWriteFailureData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteFailureData
ResourceDeleteCancelData = Azure::EventGrid::V2018_01_01::Models::ResourceDeleteCancelData
ResourceWriteSuccessData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteSuccessData
EventGridEvent = Azure::EventGrid::V2018_01_01::Models::EventGridEvent
StorageBlobDeletedEventData = Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData
end

def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
class EventGridDataClass
attr_reader :configurable, :base_url, :options, :model_classes

client_0 = Azure::EventGrid::Mgmt::V2017_09_15_preview::EventGridManagementClient.new(configurable.credentials, base_url, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)
@event_subscriptions = client_0.event_subscriptions
@operations = client_0.operations
@topics = client_0.topics
@topic_types = client_0.topic_types
def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options

@model_classes = ModelClasses.new
client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options)
if(client_0.respond_to?(:subscription_id))
client_0.subscription_id = configurable.subscription_id
end
add_telemetry(client_0)

def add_telemetry(client)
profile_information = 'Profiles/azure_sdk/Latest/EventGrid/Mgmt'
client.add_user_agent_information(profile_information)
end
@model_classes = ModelClasses.new
end

def add_telemetry(client)
profile_information = 'Profiles/azure_sdk/Latest/EventGrid'
client.add_user_agent_information(profile_information)
end

class ModelClasses
def operation
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Operation
end
def operations_list_result
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationsListResult
end
def event_subscription_filter
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFilter
end
def event_subscription_destination
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionDestination
end
def operation_info
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationInfo
end
def event_types_list_result
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventTypesListResult
end
def topic_shared_access_keys
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicSharedAccessKeys
end
def event_subscription_update_parameters
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionUpdateParameters
end
def resource
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Resource
end
def event_subscriptions_list_result
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionsListResult
end
def event_subscription_full_url
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionFullUrl
end
def topic_types_list_result
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypesListResult
end
def topic_regenerate_key_request
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicRegenerateKeyRequest
end
def topics_list_result
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicsListResult
end
def web_hook_event_subscription_destination
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::WebHookEventSubscriptionDestination
end
def event_hub_event_subscription_destination
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventHubEventSubscriptionDestination
end
def event_subscription
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscription
end
def tracked_resource
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TrackedResource
end
def topic
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::Topic
end
def event_type
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventType
end
def topic_type_info
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeInfo
end
def event_subscription_provisioning_state
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::EventSubscriptionProvisioningState
end
def operation_origin
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::OperationOrigin
end
def topic_provisioning_state
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicProvisioningState
end
def resource_region_type
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::ResourceRegionType
end
def topic_type_provisioning_state
Azure::EventGrid::Mgmt::V2017_09_15_preview::Models::TopicTypeProvisioningState
end
class ModelClasses
def resource_write_cancel_data
Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData
end
def storage_blob_created_event_data
Azure::EventGrid::V2018_01_01::Models::StorageBlobCreatedEventData
end
def resource_delete_success_data
Azure::EventGrid::V2018_01_01::Models::ResourceDeleteSuccessData
end
def event_hub_capture_file_created_event_data
Azure::EventGrid::V2018_01_01::Models::EventHubCaptureFileCreatedEventData
end
def resource_delete_failure_data
Azure::EventGrid::V2018_01_01::Models::ResourceDeleteFailureData
end
def resource_write_failure_data
Azure::EventGrid::V2018_01_01::Models::ResourceWriteFailureData
end
def resource_delete_cancel_data
Azure::EventGrid::V2018_01_01::Models::ResourceDeleteCancelData
end
def resource_write_success_data
Azure::EventGrid::V2018_01_01::Models::ResourceWriteSuccessData
end
def event_grid_event
Azure::EventGrid::V2018_01_01::Models::EventGridEvent
end
def storage_blob_deleted_event_data
Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData
end
end
end
Expand Down
16 changes: 14 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,18 @@
}
},
"azure_mgmt_event_grid": {
"azure_mgmt_event_grid_2018_01_01": {
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/635c47960acb6787ebf2c4e1be6f8adc1a8d4256/specification/eventgrid/resource-manager/readme.md",
"namespace": "Azure::EventGrid::Mgmt::V2018_01_01",
"tag": "package-2018-01"
},
"azure_mgmt_event_grid_2017_09_15_preview": {
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/eventgrid/resource-manager/readme.md",
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/635c47960acb6787ebf2c4e1be6f8adc1a8d4256/specification/eventgrid/resource-manager/readme.md",
"namespace": "Azure::EventGrid::Mgmt::V2017_09_15_preview",
"tag": "package-2017-09-preview"
},
"azure_mgmt_event_grid_2017_06_15_preview": {
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/eventgrid/resource-manager/readme.md",
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/635c47960acb6787ebf2c4e1be6f8adc1a8d4256/specification/eventgrid/resource-manager/readme.md",
"namespace": "Azure::EventGrid::Mgmt::V2017_06_15_preview",
"tag": "package-2017-06-preview"
}
Expand Down Expand Up @@ -918,5 +923,12 @@
"namespace": "Azure::CognitiveServices::WebSearch::V1_0",
"title": "WebSearchClient"
}
},
"azure_event_grid":{
"azure_event_grid_2018_01_01": {
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/635c47960acb6787ebf2c4e1be6f8adc1a8d4256/specification/eventgrid/data-plane/readme.md",
"namespace": "Azure::EventGrid::V2018_01_01",
"tag": "package-2018-01"
}
}
}
3 changes: 3 additions & 0 deletions data/azure_event_grid/.rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--require spec_helper
--color
--format documentation
21 changes: 21 additions & 0 deletions data/azure_event_grid/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Microsoft Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
5 changes: 5 additions & 0 deletions data/azure_event_grid/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

require "bundler/gem_tasks"
Loading

0 comments on commit 6b3015b

Please sign in to comment.