Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f399b54
Revert "Generated from 45c6e2750b3fca99c4d6c5476ae02587e29663c8 (#934)"
vishrutshah Sep 9, 2017
c0042a0
Regen azure_mgmt_analysis_services using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
346812e
Regen azure_mgmt_authorization using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
3133527
Regen azure_mgmt_batch using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
b531fb9
Regen azure_mgmt_datalake_analytics using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
6124342
Regen azure_mgmt_datalake_store using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
d1536ad
Regen azure_mgmt_devtestlabs using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
94d4e8e
Regen azure_mgmt_dns using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
d47808a
Regen azure_mgmt_event_hub using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
0c30626
Regen azure_mgmt_graph using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
d6f3583
Regen azure_mgmt_iot_hub using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
80d5821
Regen azure_mgmt_key_vault using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
cc203b2
Regen azure_mgmt_logic using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
fd669b1
Regen azure_mgmt_network using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
3c60fe2
Regen azure_mgmt_notification_hubs using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
451c7b5
Regen azure_mgmt_policy using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
667323f
Regen azure_mgmt_recovery_services_backup using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
b5bde28
Regen azure_mgmt_redis using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
2aa39a8
Regen azure_mgmt_resources using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
41b73f9
Regen azure_mgmt_search using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
1295b80
Regen azure_mgmt_service_bus using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
31134ae
Regen azure_mgmt_subscriptions using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
62101d6
Regen azure_mgmt_stream_analytics using AutoRest.Ruby v1.9.3
vishrutshah Sep 9, 2017
f551321
Updating azure_mgmt_* sdks version to 0.12.0
vishrutshah Sep 9, 2017
990f4a4
Update top level version file & swagger-to-sdk to 0.12.0
vishrutshah Sep 9, 2017
13ce5e8
Update Rakefile to use autorest from PATH
vishrutshah Sep 9, 2017
3afe189
Update ms_rest_azure to version 0.9.0 & azure_sdk to 0.12.0
vishrutshah Sep 11, 2017
7ec3b0b
Update README and ChangeLog
vishrutshah Sep 11, 2017
80f1460
Incorporate azure_mgmt_compute issue from https://github.com/Azure/az…
vishrutshah Sep 11, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion ARM_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0
0.12.0
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2017.09.11 - Azure ARM version 0.12.0

* Regened all azure_mgmt_* sdks using [AutoRest 1.9.3](https://www.npmjs.com/package/@microsoft.azure/autorest.ruby) for release of ARM version 0.12.0
* Updated all azure_mgmt_* sdks to use [ms_rest_azure version 0.9.0](https://rubygems.org/gems/ms_rest_azure/versions/0.9.0) to include MSI based authentication
* **Skipped** generation of `azure_mgmt_traffic_manager` due to https://github.com/Azure/autorest.ruby/pull/7
* **Skipped** generation of `azure_mgmt_web` due to https://github.com/Azure/azure-sdk-for-ruby/issues/957

## 2017.07.19 - Azure ARM version 0.11.0

* Regened all azure_mgmt_* sdks using [AutoRest.1.2.2.0](https://github.com/Azure/autorest/tree/v1.2.2) for release of ARM version 0.11.0
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ bundle install

Running the command ``yard`` will generate the API documentation in the `./doc` directory.

### Re-Gen all azure_mgmt_* SDKs

Follow the steps below to regenerate all the azure_mgmt_* sdks using [autorest.ruby](https://github.com/Azure/autorest.ruby) generator:
1. Install [Node.js](https://nodejs.org/en/) version `7.10.0` or greater
2. Install autorest using `npm install -g autorest`
3. Run `bundle install` in the root directory of the project
4. Run `rake arm:regen` task to regenerate all the management SDKs

## Provide Feedback

If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-sdk-for-ruby/issues) section of the project. Please make sure to label the
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace :arm do
unless REGEN_EXCLUDES.include?(dir.to_s)
puts "\nGenerating #{dir}\n"
md = REGEN_METADATA[dir.to_sym]
ar_base_command = "#{OS.windows? ? '' : 'mono '} #{REGEN_METADATA[:autorest_loc]}"
ar_base_command = REGEN_METADATA[:autorest_loc]

command = "#{ar_base_command} #{md[:spec_uri]} --package-version=#{md[:version]} --namespace=#{md[:ns]} --package-name=#{md[:pn].nil? ? dir : md[:pn]} --output-folder=#{File.join(Dir.pwd, 'lib')} --ruby --azure-arm"
command += " --#{md[:options]}" unless md[:options].nil?
Expand Down Expand Up @@ -130,7 +130,7 @@ def each_gem
end

REGEN_METADATA = {
autorest_loc: ENV.fetch('AUTOREST_LOC', '../../../autorest/binaries/net45/AutoRest.exe'),
autorest_loc: ENV.fetch('AUTOREST_LOC', 'autorest'),
azure_sdk: {
version: version
},
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.11.0'
VERSION = '0.12.0'
end
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'

spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
21 changes: 17 additions & 4 deletions management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,33 @@

module Azure::ARM::AnalysisServices
autoload :Servers, 'generated/azure_mgmt_analysis_services/servers.rb'
autoload :Operations, 'generated/azure_mgmt_analysis_services/operations.rb'
autoload :AnalysisServicesManagementClient, 'generated/azure_mgmt_analysis_services/analysis_services_management_client.rb'

module Models
autoload :ServerAdministrators, 'generated/azure_mgmt_analysis_services/models/server_administrators.rb'
autoload :IPv4FirewallRule, 'generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb'
autoload :IPv4FirewallSettings, 'generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb'
autoload :Operation, 'generated/azure_mgmt_analysis_services/models/operation.rb'
autoload :AnalysisServicesServerUpdateParameters, 'generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb'
autoload :Resource, 'generated/azure_mgmt_analysis_services/models/resource.rb'
autoload :SkuEnumerationForNewResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb'
autoload :ResourceSku, 'generated/azure_mgmt_analysis_services/models/resource_sku.rb'
autoload :GatewayListStatusLive, 'generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb'
autoload :AnalysisServicesServers, 'generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb'
autoload :GatewayError, 'generated/azure_mgmt_analysis_services/models/gateway_error.rb'
autoload :GatewayDetails, 'generated/azure_mgmt_analysis_services/models/gateway_details.rb'
autoload :GatewayListStatusError, 'generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb'
autoload :OperationListResult, 'generated/azure_mgmt_analysis_services/models/operation_list_result.rb'
autoload :SkuEnumerationForNewResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb'
autoload :ServerAdministrators, 'generated/azure_mgmt_analysis_services/models/server_administrators.rb'
autoload :SkuDetailsForExistingResource, 'generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb'
autoload :ResourceSku, 'generated/azure_mgmt_analysis_services/models/resource_sku.rb'
autoload :Resource, 'generated/azure_mgmt_analysis_services/models/resource.rb'
autoload :SkuEnumerationForExistingResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb'
autoload :OperationDisplay, 'generated/azure_mgmt_analysis_services/models/operation_display.rb'
autoload :ErrorResponse, 'generated/azure_mgmt_analysis_services/models/error_response.rb'
autoload :AnalysisServicesServer, 'generated/azure_mgmt_analysis_services/models/analysis_services_server.rb'
autoload :SkuTier, 'generated/azure_mgmt_analysis_services/models/sku_tier.rb'
autoload :State, 'generated/azure_mgmt_analysis_services/models/state.rb'
autoload :ProvisioningState, 'generated/azure_mgmt_analysis_services/models/provisioning_state.rb'
autoload :ConnectionMode, 'generated/azure_mgmt_analysis_services/models/connection_mode.rb'
autoload :Status, 'generated/azure_mgmt_analysis_services/models/status.rb'
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class AnalysisServicesManagementClient < MsRestAzure::AzureServiceClient
# @return [Servers] servers
attr_reader :servers

# @return [Operations] operations
attr_reader :operations

#
# Creates initializes a new instance of the AnalysisServicesManagementClient class.
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
Expand All @@ -52,7 +55,8 @@ def initialize(credentials = nil, base_url = nil, options = nil)
@credentials = credentials

@servers = Servers.new(self)
@api_version = '2016-05-16'
@operations = Operations.new(self)
@api_version = '2017-08-01-beta'
@accept_language = 'en-US'
@long_running_operation_retry_timeout = 30
@generate_client_request_id = true
Expand Down
42 changes: 42 additions & 0 deletions ...is_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@ class AnalysisServicesServer < MsRestAzure::Resource
# @return [String] The container URI of backup blob.
attr_accessor :backup_blob_container_uri

# @return [GatewayDetails] The gateway details configured for the AS
# server.
attr_accessor :gateway_details

# @return [IPv4FirewallSettings] The firewall settings for the AS server.
attr_accessor :ip_v4firewall_settings

# @return [ConnectionMode] How the read-write server's participation in
# the query pool is controlled.<br/>It can have the following values:
# <ul><li>readOnly - indicates that the read-write server is intended not
# to participate in query operations</li><li>all - indicates that the
# read-write server can participate in query
# operations</li></ul>Specifying readOnly when capacity is 1 results in
# error. Possible values include: 'All', 'ReadOnly'. Default value: 'All'
# .
attr_accessor :querypool_connection_mode

# @return [State] The current state of Analysis Services resource. The
# state is to indicate more states outside of resource provisioning.
# Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused',
Expand Down Expand Up @@ -117,6 +134,31 @@ def self.mapper()
name: 'String'
}
},
gateway_details: {
required: false,
serialized_name: 'properties.gatewayDetails',
type: {
name: 'Composite',
class_name: 'GatewayDetails'
}
},
ip_v4firewall_settings: {
required: false,
serialized_name: 'properties.ipV4FirewallSettings',
type: {
name: 'Composite',
class_name: 'IPv4FirewallSettings'
}
},
querypool_connection_mode: {
required: false,
serialized_name: 'properties.querypoolConnectionMode',
default_value: 'All',
type: {
name: 'Enum',
module: 'ConnectionMode'
}
},
state: {
required: false,
read_only: true,
Expand Down
42 changes: 42 additions & 0 deletions ...nerated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ class AnalysisServicesServerUpdateParameters
# @return [String] The container URI of backup blob.
attr_accessor :backup_blob_container_uri

# @return [GatewayDetails] The gateway details configured for the AS
# server.
attr_accessor :gateway_details

# @return [IPv4FirewallSettings] The firewall settings for the AS server.
attr_accessor :ip_v4firewall_settings

# @return [ConnectionMode] How the read-write server's participation in
# the query pool is controlled.<br/>It can have the following values:
# <ul><li>readOnly - indicates that the read-write server is intended not
# to participate in query operations</li><li>all - indicates that the
# read-write server can participate in query
# operations</li></ul>Specifying readOnly when capacity is 1 results in
# error. Possible values include: 'All', 'ReadOnly'. Default value: 'All'
# .
attr_accessor :querypool_connection_mode


#
# Mapper for AnalysisServicesServerUpdateParameters class as Ruby Hash.
Expand Down Expand Up @@ -75,6 +92,31 @@ def self.mapper()
type: {
name: 'String'
}
},
gateway_details: {
required: false,
serialized_name: 'properties.gatewayDetails',
type: {
name: 'Composite',
class_name: 'GatewayDetails'
}
},
ip_v4firewall_settings: {
required: false,
serialized_name: 'properties.ipV4FirewallSettings',
type: {
name: 'Composite',
class_name: 'IPv4FirewallSettings'
}
},
querypool_connection_mode: {
required: false,
serialized_name: 'properties.querypoolConnectionMode',
default_value: 'All',
type: {
name: 'Enum',
module: 'ConnectionMode'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Web
module Azure::ARM::AnalysisServices
module Models
#
# Defines values for MySqlMigrationType
# Defines values for ConnectionMode
#
module MySqlMigrationType
LocalToRemote = "LocalToRemote"
RemoteToLocal = "RemoteToLocal"
module ConnectionMode
All = "All"
ReadOnly = "ReadOnly"
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::AnalysisServices
module Models
#
# Describes the format of Error response.
#
class ErrorResponse

include MsRestAzure

include MsRest::JSONable
# @return [String] Error code
attr_accessor :code

# @return [String] Error message indicating why the operation failed.
attr_accessor :message


#
# Mapper for ErrorResponse class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'ErrorResponse',
type: {
name: 'Composite',
class_name: 'ErrorResponse',
model_properties: {
code: {
required: false,
serialized_name: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
serialized_name: 'message',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,69 +3,58 @@
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Web
module Azure::ARM::AnalysisServices
module Models
#
# Azure proxy only resource. This resource is not tracked by Azure Resource
# Manager.
# The gateway details.
#
class ProxyOnlyResource
class GatewayDetails

include MsRestAzure

include MsRest::JSONable
# @return [String] Resource Id.
attr_accessor :id
# @return [String] Gateway resource to be associated with the server.
attr_accessor :gateway_resource_id

# @return [String] Resource Name.
attr_accessor :name
# @return [String] Gateway object id from in the DMTS cluster for the
# gateway resource.
attr_accessor :gateway_object_id

# @return [String] Kind of resource.
attr_accessor :kind

# @return [String] Resource type.
attr_accessor :type
# @return [String] Uri of the DMTS cluster.
attr_accessor :dmts_cluster_uri


#
# Mapper for ProxyOnlyResource class as Ruby Hash.
# Mapper for GatewayDetails class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'ProxyOnlyResource',
serialized_name: 'GatewayDetails',
type: {
name: 'Composite',
class_name: 'ProxyOnlyResource',
class_name: 'GatewayDetails',
model_properties: {
id: {
gateway_resource_id: {
required: false,
read_only: true,
serialized_name: 'id',
serialized_name: 'gatewayResourceId',
type: {
name: 'String'
}
},
name: {
gateway_object_id: {
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
kind: {
required: false,
serialized_name: 'kind',
serialized_name: 'gatewayObjectId',
type: {
name: 'String'
}
},
type: {
dmts_cluster_uri: {
required: false,
read_only: true,
serialized_name: 'type',
serialized_name: 'dmtsClusterUri',
type: {
name: 'String'
}
Expand Down
Loading