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

Commit

Permalink
Release 0.15.1 (#1095)
Browse files Browse the repository at this point in the history
* Manual change to bump version

* Regen all

* PR Comments
  • Loading branch information
sarangan12 authored Oct 30, 2017
1 parent 3b3c233 commit 3c6a7cf
Show file tree
Hide file tree
Showing 185 changed files with 598 additions and 480 deletions.
2 changes: 1 addition & 1 deletion ARM_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.15.0
0.15.1
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2017.10.30 - Azure ARM version 0.15.1

* Regened all azure_mgmt_* sdks using [Autorest.2.0.4168](https://www.npmjs.com/package/autorest)(core) and [Autorest.Ruby.3.0.20](https://www.npmjs.com/package/@microsoft.azure/autorest.ruby) for release of ARM version 0.15.1
* Code changes related to [Issue #1092](https://github.com/Azure/azure-sdk-for-ruby/issues/1092) of passing tenant id, client id, client secret etc. Refer [PR #1090](https://github.com/Azure/azure-sdk-for-ruby/pull/1090) for further details.
* Moved Azure::ARM::Configurable to Azure::Common::Configurable and Azure::ARM::Default to Azure::Common::Default.Refer [PR #1090](https://github.com/Azure/azure-sdk-for-ruby/pull/1090) for further details.

## 2017.10.17 - Azure ARM version 0.15.0

* Each gem include multiple api-versions (namespace example: "Azure::Compute::Mgmt::V2017_03_30").
Expand Down
2 changes: 1 addition & 1 deletion azure_sdk/lib/azure_sdk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure
VERSION = '0.15.0'
VERSION = '0.15.1'
end
240 changes: 120 additions & 120 deletions config.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::AnalysisServices::Mgmt::V2016_05_16
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::AnalysisServices::Mgmt::V2017_07_14
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_analysis_services/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::AnalysisServices::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Authorization::Mgmt::V2015_07_01
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_authorization/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::Authorization::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Automation::Mgmt::V2015_10_31
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_automation/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::Automation::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Batch::Mgmt::V2015_12_01
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Batch::Mgmt::V2017_05_01
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_batch/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::Batch::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Billing::Mgmt::V2017_04_24_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_billing/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::Billing::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::CDN::Mgmt::V2015_06_01
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::CDN::Mgmt::V2016_10_02
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::CDN::Mgmt::V2017_04_02
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_cdn/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::CDN::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::CognitiveServices::Mgmt::V2017_04_18
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_cognitive_services/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::CognitiveServices::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Commerce::Mgmt::V2015_06_01_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_commerce/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::Commerce::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
57 changes: 42 additions & 15 deletions management/azure_mgmt_compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,57 @@ require 'azure_mgmt_compute'

After that you should be ready to start using SDK!

## Authentication
## Creating a Client
### Option 1 - Using the Compute Profiles
You can create a new Virtual Machine using the Compute profile.

```Ruby
# Create authentication objects
token_provider = MsRestAzure::ApplicationTokenProvider.new(tenant_id, client_id, secret)
credentials = MsRest::TokenCredentials.new(token_provider)
```

To get tenant_id, client_id and secret for your Azure application visit Azure portal or copy them from the powershell script from the article mentioned above.

## Creating new virtual machine

```Ruby
```ruby
# Include SDK modules to ease access to compute classes.
include Azure::Compute::Profiles::Latest::Mgmt
include Azure::Compute::Profiles::Latest::Mgmt::Models

# Create a client - a point of access to the API and set the subscription id
provider = MsRestAzure::ApplicationTokenProvider.new(
'YOUR TENANT ID',
'YOUR CLIENT ID',
'YOUR CLIENT SECRET')
credentials = MsRest::TokenCredentials.new(provider)

options = {
credentials: credentials,
subscription_id: subscription_id
tenant_id: 'YOUR TENANT ID',
client_id: 'YOUR CLIENT ID',
client_secret: 'YOUR CLIENT SECRET',
subscription_id: 'YOUR SUBSCRIPTION ID',
credentials: credentials
}

client = Client.new(options)
```

### Option 2 - Using a specific version of Compute
You can create a new Virtual Machine using a specific version of Compute, say 2017-03-30.

```ruby
# Include SDK modules to ease access to compute classes.
include Azure::Compute::Mgmt::V2017_03_30
include Azure::Compute::Mgmt::V2017_03_30::Models

# Note: The tenant_id, client_id, client_secret and subscription_id
# must be set using the env variables.

provider = MsRestAzure::ApplicationTokenProvider.new(
ENV['AZURE_TENANT_ID'],
ENV['AZURE_CLIENT_ID'],
ENV['AZURE_CLIENT_SECRET'])
credentials = MsRest::TokenCredentials.new(provider)

client = ComputeManagementClient.new(credentials)
client.subscription_id = ENV['AZURE_SUBSCRIPTION_ID']
```

## Using the client
Once the client is initialized, we could create the virtual machine.

```ruby
windows_config = WindowsConfiguration.new
windows_config.provision_vmagent = true
windows_config.enable_automatic_updates = true
Expand All @@ -69,6 +95,7 @@ os_profile.secrets = []
hardware_profile = HardwareProfile.new
hardware_profile.vm_size = 'Standard_A0'

params = VirtualMachine.new
# create_storage_profile is hypothetical helper method which creates storage
# profile by means of ARM Storage SDK.
params.storage_profile = create_storage_profile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Compute::Mgmt::V2015_06_15
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Compute::Mgmt::V2016_03_30
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Compute::Mgmt::V2016_04_30_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Compute::Mgmt::V2017_03_30
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_compute/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::Compute::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::Consumption::Mgmt::V2017_04_24_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_consumption/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::Consumption::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerInstance::Mgmt::V2017_08_01_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_container_instance/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::ContainerInstance::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerRegistry::Mgmt::V2017_03_01
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerRegistry::Mgmt::V2017_10_01
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_container_registry/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::ContainerRegistry::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerService::Mgmt::V2016_03_30
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerService::Mgmt::V2016_09_30
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::ContainerService::Mgmt::V2017_01_31
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_container_service/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::ContainerService::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::CustomerInsights::Mgmt::V2017_04_26
VERSION = '0.15.0'
VERSION = '0.15.1'
end
2 changes: 1 addition & 1 deletion management/azure_mgmt_customer_insights/lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.

module Azure::CustomerInsights::Mgmt
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# regenerated.

module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
VERSION = '0.15.0'
VERSION = '0.15.1'
end
Loading

0 comments on commit 3c6a7cf

Please sign in to comment.