azure_mgmt_sql 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2968138c4cb4cc55abff37c7444a76a442d463c4
4
- data.tar.gz: d45ba92cc69b32560e7939fb90e9861bc0b9c6c1
3
+ metadata.gz: 97aca3d00af9c3f4ab55269aac39051ea695bd2d
4
+ data.tar.gz: 8f49f9a97315e3ace1219cf74cb9f5268d3a9c5e
5
5
  SHA512:
6
- metadata.gz: fe64300f79bedff9a3b64a21d8c6029432388ad517c01f9d4c81bcad3b218af0d4a56ee0cb2f65309c062c514887f5bc434d8580f8421388bbf53bf857affb4c
7
- data.tar.gz: 54e447646559a309c53206e237663a3d9839e7d8d03ab8a9d367e84cb4d8246c392598d412b556911aea9cf412aa96bf426aa161049990691bbb4a55b537df37
6
+ metadata.gz: 7e7f018ede3bc25a326f457110fdb5c1ed59092c0bbb89dc4f47812ab817ca106a361363709e210a5a765801b043dcad7586994d737046ea2951a304824feb29
7
+ data.tar.gz: de5714c24a6d310f3349377a5af97efe1fb190302f2666134ce5aa9b875fcbd41f3704f3f5f3790e54cae0c3206215048ce735950e78a82291dc772efe9cfa04
@@ -28,38 +28,38 @@ module Azure::ARM::SQL
28
28
 
29
29
  module Models
30
30
  autoload :ElasticPoolListResult, 'generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
31
- autoload :DatabaseMetricListResult, 'generated/azure_mgmt_sql/models/database_metric_list_result.rb'
31
+ autoload :ServerMetricListResult, 'generated/azure_mgmt_sql/models/server_metric_list_result.rb'
32
32
  autoload :ServerFirewallRuleListResult, 'generated/azure_mgmt_sql/models/server_firewall_rule_list_result.rb'
33
- autoload :DatabaseMetric, 'generated/azure_mgmt_sql/models/database_metric.rb'
34
- autoload :OperationImpact, 'generated/azure_mgmt_sql/models/operation_impact.rb'
33
+ autoload :ServerMetric, 'generated/azure_mgmt_sql/models/server_metric.rb'
34
+ autoload :DatabaseMetricListResult, 'generated/azure_mgmt_sql/models/database_metric_list_result.rb'
35
35
  autoload :RecommendedElasticPoolMetric, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb'
36
- autoload :RestorePointListResult, 'generated/azure_mgmt_sql/models/restore_point_list_result.rb'
37
- autoload :TransparentDataEncryptionActivityListResult, 'generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
38
- autoload :DatabaseListResult, 'generated/azure_mgmt_sql/models/database_list_result.rb'
39
- autoload :ServiceTierAdvisorListResult, 'generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
36
+ autoload :DatabaseMetric, 'generated/azure_mgmt_sql/models/database_metric.rb'
40
37
  autoload :RecommendedElasticPoolListResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
41
- autoload :ServerMetric, 'generated/azure_mgmt_sql/models/server_metric.rb'
38
+ autoload :TransparentDataEncryptionActivityListResult, 'generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
42
39
  autoload :RecommendedElasticPoolListMetricsResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb'
43
- autoload :ReplicationLinkListResult, 'generated/azure_mgmt_sql/models/replication_link_list_result.rb'
44
- autoload :RecommendedDatabaseProperties, 'generated/azure_mgmt_sql/models/recommended_database_properties.rb'
45
40
  autoload :ServiceObjectiveListResult, 'generated/azure_mgmt_sql/models/service_objective_list_result.rb'
46
- autoload :UpgradeRecommendedElasticPoolProperties, 'generated/azure_mgmt_sql/models/upgrade_recommended_elastic_pool_properties.rb'
41
+ autoload :RecommendedDatabaseProperties, 'generated/azure_mgmt_sql/models/recommended_database_properties.rb'
47
42
  autoload :SqlSubResource, 'generated/azure_mgmt_sql/models/sql_sub_resource.rb'
43
+ autoload :RestorePointListResult, 'generated/azure_mgmt_sql/models/restore_point_list_result.rb'
44
+ autoload :SloUsageMetric, 'generated/azure_mgmt_sql/models/slo_usage_metric.rb'
45
+ autoload :DatabaseListResult, 'generated/azure_mgmt_sql/models/database_list_result.rb'
46
+ autoload :OperationImpact, 'generated/azure_mgmt_sql/models/operation_impact.rb'
47
+ autoload :UpgradeRecommendedElasticPoolProperties, 'generated/azure_mgmt_sql/models/upgrade_recommended_elastic_pool_properties.rb'
48
+ autoload :ReplicationLinkListResult, 'generated/azure_mgmt_sql/models/replication_link_list_result.rb'
49
+ autoload :ElasticPoolActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
50
+ autoload :ServiceTierAdvisorListResult, 'generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
48
51
  autoload :ServerListResult, 'generated/azure_mgmt_sql/models/server_list_result.rb'
49
- autoload :ServerMetricListResult, 'generated/azure_mgmt_sql/models/server_metric_list_result.rb'
52
+ autoload :UpgradeHint, 'generated/azure_mgmt_sql/models/upgrade_hint.rb'
50
53
  autoload :ElasticPoolDatabaseActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
51
- autoload :ElasticPoolActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
52
54
  autoload :ServerFirewallRule, 'generated/azure_mgmt_sql/models/server_firewall_rule.rb'
53
55
  autoload :ReplicationLink, 'generated/azure_mgmt_sql/models/replication_link.rb'
54
- autoload :Database, 'generated/azure_mgmt_sql/models/database.rb'
55
56
  autoload :ServiceTierAdvisor, 'generated/azure_mgmt_sql/models/service_tier_advisor.rb'
56
- autoload :SloUsageMetric, 'generated/azure_mgmt_sql/models/slo_usage_metric.rb'
57
- autoload :UpgradeHint, 'generated/azure_mgmt_sql/models/upgrade_hint.rb'
58
- autoload :Schema, 'generated/azure_mgmt_sql/models/schema.rb'
59
- autoload :Table, 'generated/azure_mgmt_sql/models/table.rb'
60
57
  autoload :Column, 'generated/azure_mgmt_sql/models/column.rb'
61
58
  autoload :RecommendedIndex, 'generated/azure_mgmt_sql/models/recommended_index.rb'
59
+ autoload :Table, 'generated/azure_mgmt_sql/models/table.rb'
60
+ autoload :Schema, 'generated/azure_mgmt_sql/models/schema.rb'
62
61
  autoload :TransparentDataEncryption, 'generated/azure_mgmt_sql/models/transparent_data_encryption.rb'
62
+ autoload :Database, 'generated/azure_mgmt_sql/models/database.rb'
63
63
  autoload :RecommendedElasticPool, 'generated/azure_mgmt_sql/models/recommended_elastic_pool.rb'
64
64
  autoload :ElasticPool, 'generated/azure_mgmt_sql/models/elastic_pool.rb'
65
65
  autoload :ElasticPoolActivity, 'generated/azure_mgmt_sql/models/elastic_pool_activity.rb'
@@ -482,18 +482,18 @@ module Azure::ARM::SQL
482
482
  # Returns information about activity on Azure SQL databases inside of an Azure
483
483
  # SQL elastic pool.
484
484
  #
485
- # @param elastic_pool_name [String] The name of the Azure SQL Elastic Pool.
486
485
  # @param resource_group_name [String] The name of the resource group that
487
486
  # contains the resource. You can obtain this value from the Azure Resource
488
487
  # Manager API or the portal.
489
488
  # @param server_name [String] The name of the Azure SQL server.
489
+ # @param elastic_pool_name [String] The name of the Azure SQL Elastic Pool.
490
490
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
491
491
  # will be added to the HTTP request.
492
492
  #
493
493
  # @return [ElasticPoolDatabaseActivityListResult] operation results.
494
494
  #
495
- def list_database_activity(elastic_pool_name, resource_group_name, server_name, custom_headers = nil)
496
- response = list_database_activity_async(elastic_pool_name, resource_group_name, server_name, custom_headers).value!
495
+ def list_database_activity(resource_group_name, server_name, elastic_pool_name, custom_headers = nil)
496
+ response = list_database_activity_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value!
497
497
  response.body unless response.nil?
498
498
  end
499
499
 
@@ -501,40 +501,40 @@ module Azure::ARM::SQL
501
501
  # Returns information about activity on Azure SQL databases inside of an Azure
502
502
  # SQL elastic pool.
503
503
  #
504
- # @param elastic_pool_name [String] The name of the Azure SQL Elastic Pool.
505
504
  # @param resource_group_name [String] The name of the resource group that
506
505
  # contains the resource. You can obtain this value from the Azure Resource
507
506
  # Manager API or the portal.
508
507
  # @param server_name [String] The name of the Azure SQL server.
508
+ # @param elastic_pool_name [String] The name of the Azure SQL Elastic Pool.
509
509
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
510
  # will be added to the HTTP request.
511
511
  #
512
512
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
513
513
  #
514
- def list_database_activity_with_http_info(elastic_pool_name, resource_group_name, server_name, custom_headers = nil)
515
- list_database_activity_async(elastic_pool_name, resource_group_name, server_name, custom_headers).value!
514
+ def list_database_activity_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers = nil)
515
+ list_database_activity_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value!
516
516
  end
517
517
 
518
518
  #
519
519
  # Returns information about activity on Azure SQL databases inside of an Azure
520
520
  # SQL elastic pool.
521
521
  #
522
- # @param elastic_pool_name [String] The name of the Azure SQL Elastic Pool.
523
522
  # @param resource_group_name [String] The name of the resource group that
524
523
  # contains the resource. You can obtain this value from the Azure Resource
525
524
  # Manager API or the portal.
526
525
  # @param server_name [String] The name of the Azure SQL server.
526
+ # @param elastic_pool_name [String] The name of the Azure SQL Elastic Pool.
527
527
  # @param [Hash{String => String}] A hash of custom headers that will be added
528
528
  # to the HTTP request.
529
529
  #
530
530
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
531
531
  #
532
- def list_database_activity_async(elastic_pool_name, resource_group_name, server_name, custom_headers = nil)
533
- fail ArgumentError, 'elastic_pool_name is nil' if elastic_pool_name.nil?
532
+ def list_database_activity_async(resource_group_name, server_name, elastic_pool_name, custom_headers = nil)
534
533
  api_version = '2014-04-01'
535
534
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
536
535
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
537
536
  fail ArgumentError, 'server_name is nil' if server_name.nil?
537
+ fail ArgumentError, 'elastic_pool_name is nil' if elastic_pool_name.nil?
538
538
 
539
539
 
540
540
  request_headers = {}
@@ -548,7 +548,7 @@ module Azure::ARM::SQL
548
548
 
549
549
  options = {
550
550
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
551
- path_params: {'elasticPoolName' => elastic_pool_name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name},
551
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'elasticPoolName' => elastic_pool_name},
552
552
  query_params: {'api-version' => api_version},
553
553
  headers: request_headers.merge(custom_headers || {}),
554
554
  base_url: request_url
@@ -43,7 +43,7 @@ module Azure::ARM::SQL
43
43
 
44
44
  # @return [Array<Database>] The list of Azure SQL Databases in this pool.
45
45
  # Expanded property
46
- attr_accessor :databases_property
46
+ attr_accessor :databases
47
47
 
48
48
  # @return [Array<RecommendedElasticPoolMetric>] The list of Azure SQL
49
49
  # Databases housed in the server. Expanded property
@@ -175,7 +175,7 @@ module Azure::ARM::SQL
175
175
  name: 'Double'
176
176
  }
177
177
  },
178
- databases_property: {
178
+ databases: {
179
179
  required: false,
180
180
  read_only: true,
181
181
  serialized_name: 'properties.databases',
@@ -37,8 +37,8 @@ module Azure::ARM::SQL
37
37
  # serviceLevelObjectiveUsageMetrics for the service tier advisor.
38
38
  attr_accessor :service_level_objective_usage_metrics
39
39
 
40
- # @return Gets or sets currentServiceLevelObjective for service tier
41
- # advisor.
40
+ # @return [String] Gets or sets currentServiceLevelObjective for service
41
+ # tier advisor.
42
42
  attr_accessor :current_service_level_objective
43
43
 
44
44
  # @return Gets or sets currentServiceLevelObjectiveId for service tier
@@ -8,7 +8,7 @@ module Azure::ARM::SQL
8
8
  #
9
9
  # Represents a Slo Usage Metric.
10
10
  #
11
- class SloUsageMetric < MsRestAzure::Resource
11
+ class SloUsageMetric
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -36,51 +36,6 @@ module Azure::ARM::SQL
36
36
  name: 'Composite',
37
37
  class_name: 'SloUsageMetric',
38
38
  model_properties: {
39
- name: {
40
- required: false,
41
- read_only: true,
42
- serialized_name: 'name',
43
- type: {
44
- name: 'String'
45
- }
46
- },
47
- id: {
48
- required: false,
49
- read_only: true,
50
- serialized_name: 'id',
51
- type: {
52
- name: 'String'
53
- }
54
- },
55
- type: {
56
- required: false,
57
- read_only: true,
58
- serialized_name: 'type',
59
- type: {
60
- name: 'String'
61
- }
62
- },
63
- location: {
64
- required: true,
65
- serialized_name: 'location',
66
- type: {
67
- name: 'String'
68
- }
69
- },
70
- tags: {
71
- required: false,
72
- serialized_name: 'tags',
73
- type: {
74
- name: 'Dictionary',
75
- value: {
76
- required: false,
77
- serialized_name: 'StringElementType',
78
- type: {
79
- name: 'String'
80
- }
81
- }
82
- }
83
- },
84
39
  service_level_objective: {
85
40
  required: false,
86
41
  serialized_name: 'serviceLevelObjective',
@@ -8,7 +8,7 @@ module Azure::ARM::SQL
8
8
  #
9
9
  # Represents a Upgrade Hint.
10
10
  #
11
- class UpgradeHint < MsRestAzure::Resource
11
+ class UpgradeHint
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -31,51 +31,6 @@ module Azure::ARM::SQL
31
31
  name: 'Composite',
32
32
  class_name: 'UpgradeHint',
33
33
  model_properties: {
34
- name: {
35
- required: false,
36
- read_only: true,
37
- serialized_name: 'name',
38
- type: {
39
- name: 'String'
40
- }
41
- },
42
- id: {
43
- required: false,
44
- read_only: true,
45
- serialized_name: 'id',
46
- type: {
47
- name: 'String'
48
- }
49
- },
50
- type: {
51
- required: false,
52
- read_only: true,
53
- serialized_name: 'type',
54
- type: {
55
- name: 'String'
56
- }
57
- },
58
- location: {
59
- required: true,
60
- serialized_name: 'location',
61
- type: {
62
- name: 'String'
63
- }
64
- },
65
- tags: {
66
- required: false,
67
- serialized_name: 'tags',
68
- type: {
69
- name: 'Dictionary',
70
- value: {
71
- required: false,
72
- serialized_name: 'StringElementType',
73
- type: {
74
- name: 'String'
75
- }
76
- }
77
- }
78
- },
79
34
  target_service_level_objective: {
80
35
  required: false,
81
36
  serialized_name: 'targetServiceLevelObjective',
@@ -50,12 +50,11 @@ module Azure::ARM::SQL
50
50
  # @param base_url [String] the base URI of the service.
51
51
  # @param options [Array] filters to be applied to the HTTP requests.
52
52
  #
53
- def initialize(credentials, base_url = nil, options = nil)
53
+ def initialize(credentials = nil, base_url = nil, options = nil)
54
54
  super(credentials, options)
55
55
  @base_url = base_url || 'https://management.azure.com'
56
56
 
57
- fail ArgumentError, 'credentials is nil' if credentials.nil?
58
- fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
57
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
59
58
  @credentials = credentials
60
59
 
61
60
  @servers = Servers.new(self)
@@ -70,7 +69,7 @@ module Azure::ARM::SQL
70
69
 
71
70
  #
72
71
  # Makes a request and returns the body of the response.
73
- # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
72
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
74
73
  # @param path [String] the path, relative to {base_url}.
75
74
  # @param options [Hash{String=>String}] specifying any request options like :body.
76
75
  # @return [Hash{String=>String}] containing the body of the response.
@@ -131,7 +130,7 @@ module Azure::ARM::SQL
131
130
  def add_telemetry
132
131
  sdk_information = 'azure_mgmt_sql'
133
132
  if defined? Azure::ARM::SQL::VERSION
134
- sdk_information = "#{sdk_information}/#{Azure::ARM::SQL::VERSION}"
133
+ sdk_information = "#{sdk_information}/#{Azure::ARM::SQL::VERSION}"
135
134
  end
136
135
  add_user_agent_information(sdk_information)
137
136
  end
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::SQL
7
- VERSION = '0.8.0'
7
+ VERSION = '0.9.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.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: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.2
75
+ version: 0.7.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.2
82
+ version: 0.7.0
83
83
  description: Microsoft Azure SQL Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []