azure_mgmt_marketplace_ordering 0.15.1 → 0.15.2

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: 6a719586c8c805cd934f1a7d0b02ac6f757f758c
4
- data.tar.gz: d99bd1520429ee76ec279f43f573d42ebfefdb42
3
+ metadata.gz: 29835c8bbe6163f30d5c76315255d4ec4c3484f3
4
+ data.tar.gz: 56c1bfd570d3ba7fab372a0f7280d5d78674806e
5
5
  SHA512:
6
- metadata.gz: f51b2a903cb298e8c896d5ee986d89e8904bdc9fa72bfe24fdd88e963d48b80c5b18b2e64f4ffdd1cb3e3f514d73bbd53a9b4576609417c979e287d7b8c084ed
7
- data.tar.gz: d816942bfec7e767841bf40ae794a520f755969108d616f758460bc29784d86dcbc5a8f9b7252dcc9e8b3189c689a4ed255fb80e1701695be694d45a9a50d558
6
+ metadata.gz: 2af2e1c4150a5005d2df3e68ca96a27b1029020087f4bce6872be066f6763594dfaf0926ee606a0a52ec1402ff56a3798a7b5b4e5838110b5a14fb61e59a72c5
7
+ data.tar.gz: 99cc1bbc64e71dd13b1261557c2f3a2b99ee960d4b29b06bdd2fa83207909fd4d528f9c7c876ecbc5edc0e2a3aaa445a7b06c6b8073b32cc635eb851bc8ba02d
@@ -125,9 +125,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
125
125
  #
126
126
  def add_telemetry
127
127
  sdk_information = 'azure_mgmt_marketplace_ordering'
128
- if defined? Azure::MarketplaceOrdering::Mgmt::V2015_06_01::VERSION
129
- sdk_information = "#{sdk_information}/#{Azure::MarketplaceOrdering::Mgmt::V2015_06_01::VERSION}"
130
- end
128
+ sdk_information = "#{sdk_information}/0.15.2"
131
129
  add_user_agent_information(sdk_information)
132
130
  end
133
131
  end
@@ -45,6 +45,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
45
45
  #
46
46
  def self.mapper()
47
47
  {
48
+ client_side_validation: true,
48
49
  required: false,
49
50
  serialized_name: 'AgreementTerms',
50
51
  type: {
@@ -52,6 +53,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
52
53
  class_name: 'AgreementTerms',
53
54
  model_properties: {
54
55
  id: {
56
+ client_side_validation: true,
55
57
  required: false,
56
58
  read_only: true,
57
59
  serialized_name: 'id',
@@ -60,6 +62,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
60
62
  }
61
63
  },
62
64
  name: {
65
+ client_side_validation: true,
63
66
  required: false,
64
67
  read_only: true,
65
68
  serialized_name: 'name',
@@ -68,6 +71,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
68
71
  }
69
72
  },
70
73
  type: {
74
+ client_side_validation: true,
71
75
  required: false,
72
76
  read_only: true,
73
77
  serialized_name: 'type',
@@ -76,6 +80,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
76
80
  }
77
81
  },
78
82
  publisher: {
83
+ client_side_validation: true,
79
84
  required: false,
80
85
  serialized_name: 'properties.publisher',
81
86
  type: {
@@ -83,6 +88,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
83
88
  }
84
89
  },
85
90
  product: {
91
+ client_side_validation: true,
86
92
  required: false,
87
93
  serialized_name: 'properties.product',
88
94
  type: {
@@ -90,6 +96,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
90
96
  }
91
97
  },
92
98
  plan: {
99
+ client_side_validation: true,
93
100
  required: false,
94
101
  serialized_name: 'properties.plan',
95
102
  type: {
@@ -97,6 +104,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
97
104
  }
98
105
  },
99
106
  license_text_link: {
107
+ client_side_validation: true,
100
108
  required: false,
101
109
  serialized_name: 'properties.licenseTextLink',
102
110
  type: {
@@ -104,6 +112,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
104
112
  }
105
113
  },
106
114
  privacy_policy_link: {
115
+ client_side_validation: true,
107
116
  required: false,
108
117
  serialized_name: 'properties.privacyPolicyLink',
109
118
  type: {
@@ -111,6 +120,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
111
120
  }
112
121
  },
113
122
  retrieve_datetime: {
123
+ client_side_validation: true,
114
124
  required: false,
115
125
  serialized_name: 'properties.retrieveDatetime',
116
126
  type: {
@@ -118,6 +128,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
118
128
  }
119
129
  },
120
130
  signature: {
131
+ client_side_validation: true,
121
132
  required: false,
122
133
  serialized_name: 'properties.signature',
123
134
  type: {
@@ -125,6 +136,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
125
136
  }
126
137
  },
127
138
  accepted: {
139
+ client_side_validation: true,
128
140
  required: false,
129
141
  serialized_name: 'properties.accepted',
130
142
  type: {
@@ -24,6 +24,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
24
24
  #
25
25
  def self.mapper()
26
26
  {
27
+ client_side_validation: true,
27
28
  required: false,
28
29
  serialized_name: 'ErrorResponse',
29
30
  type: {
@@ -31,6 +32,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
31
32
  class_name: 'ErrorResponse',
32
33
  model_properties: {
33
34
  error: {
35
+ client_side_validation: true,
34
36
  required: false,
35
37
  serialized_name: 'error',
36
38
  type: {
@@ -25,6 +25,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
+ client_side_validation: true,
28
29
  required: false,
29
30
  serialized_name: 'ErrorResponse_error',
30
31
  type: {
@@ -32,6 +33,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
32
33
  class_name: 'ErrorResponseError',
33
34
  model_properties: {
34
35
  code: {
36
+ client_side_validation: true,
35
37
  required: false,
36
38
  read_only: true,
37
39
  serialized_name: 'code',
@@ -40,6 +42,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
40
42
  }
41
43
  },
42
44
  message: {
45
+ client_side_validation: true,
43
46
  required: false,
44
47
  read_only: true,
45
48
  serialized_name: 'message',
@@ -25,6 +25,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
+ client_side_validation: true,
28
29
  required: false,
29
30
  serialized_name: 'Operation',
30
31
  type: {
@@ -32,6 +33,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
32
33
  class_name: 'Operation',
33
34
  model_properties: {
34
35
  name: {
36
+ client_side_validation: true,
35
37
  required: false,
36
38
  serialized_name: 'name',
37
39
  type: {
@@ -39,6 +41,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
39
41
  }
40
42
  },
41
43
  display: {
44
+ client_side_validation: true,
42
45
  required: false,
43
46
  serialized_name: 'display',
44
47
  type: {
@@ -30,6 +30,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
30
30
  #
31
31
  def self.mapper()
32
32
  {
33
+ client_side_validation: true,
33
34
  required: false,
34
35
  serialized_name: 'Operation_display',
35
36
  type: {
@@ -37,6 +38,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
37
38
  class_name: 'OperationDisplay',
38
39
  model_properties: {
39
40
  provider: {
41
+ client_side_validation: true,
40
42
  required: false,
41
43
  serialized_name: 'provider',
42
44
  type: {
@@ -44,6 +46,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
44
46
  }
45
47
  },
46
48
  resource: {
49
+ client_side_validation: true,
47
50
  required: false,
48
51
  serialized_name: 'resource',
49
52
  type: {
@@ -51,6 +54,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
51
54
  }
52
55
  },
53
56
  operation: {
57
+ client_side_validation: true,
54
58
  required: false,
55
59
  serialized_name: 'operation',
56
60
  type: {
@@ -61,6 +61,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
61
61
  #
62
62
  def self.mapper()
63
63
  {
64
+ client_side_validation: true,
64
65
  required: false,
65
66
  serialized_name: 'OperationListResult',
66
67
  type: {
@@ -68,11 +69,13 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
68
69
  class_name: 'OperationListResult',
69
70
  model_properties: {
70
71
  value: {
72
+ client_side_validation: true,
71
73
  required: false,
72
74
  serialized_name: 'value',
73
75
  type: {
74
76
  name: 'Sequence',
75
77
  element: {
78
+ client_side_validation: true,
76
79
  required: false,
77
80
  serialized_name: 'OperationElementType',
78
81
  type: {
@@ -83,6 +86,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
83
86
  }
84
87
  },
85
88
  next_link: {
89
+ client_side_validation: true,
86
90
  required: false,
87
91
  read_only: true,
88
92
  serialized_name: 'nextLink',
@@ -28,6 +28,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
28
28
  #
29
29
  def self.mapper()
30
30
  {
31
+ client_side_validation: true,
31
32
  required: false,
32
33
  serialized_name: 'Resource',
33
34
  type: {
@@ -35,6 +36,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
35
36
  class_name: 'Resource',
36
37
  model_properties: {
37
38
  id: {
39
+ client_side_validation: true,
38
40
  required: false,
39
41
  read_only: true,
40
42
  serialized_name: 'id',
@@ -43,6 +45,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
43
45
  }
44
46
  },
45
47
  name: {
48
+ client_side_validation: true,
46
49
  required: false,
47
50
  read_only: true,
48
51
  serialized_name: 'name',
@@ -51,6 +54,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
51
54
  }
52
55
  },
53
56
  type: {
57
+ client_side_validation: true,
54
58
  required: false,
55
59
  read_only: true,
56
60
  serialized_name: 'type',
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/marketplaceordering_module_definition'
6
6
  require 'profiles/latest/modules/marketplaceordering_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::MarketplaceOrdering::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < MarketplaceOrderingClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::MarketplaceOrdering::Mgmt
6
- VERSION = '0.15.1'
6
+ VERSION = '0.15.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_marketplace_ordering
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
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-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 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.9.0
75
+ version: 0.10.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.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Marketplace Ordering Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -99,11 +99,8 @@ files:
99
99
  - lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/models/resource.rb
100
100
  - lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/module_definition.rb
101
101
  - lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/operations.rb
102
- - lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/version.rb
103
102
  - lib/azure_mgmt_marketplace_ordering.rb
104
103
  - lib/module_definition.rb
105
- - lib/profiles/common/configurable.rb
106
- - lib/profiles/common/default.rb
107
104
  - lib/profiles/latest/marketplaceordering_latest_profile_client.rb
108
105
  - lib/profiles/latest/marketplaceordering_module_definition.rb
109
106
  - lib/profiles/latest/modules/marketplaceordering_profile_module.rb
@@ -111,7 +108,12 @@ files:
111
108
  homepage: https://aka.ms/azure-sdk-for-ruby
112
109
  licenses:
113
110
  - MIT
114
- metadata: {}
111
+ metadata:
112
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
113
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
114
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
115
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
116
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_marketplace_ordering
115
117
  post_install_message:
116
118
  rdoc_options: []
117
119
  require_paths:
@@ -1,8 +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
- module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
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::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure 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::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
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::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end
@@ -1,57 +0,0 @@
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::Common
6
- module Default
7
- class << self
8
- #
9
- # Default Azure Tenant Id.
10
- # @return [String] Azure Tenant Id.
11
- #
12
- def tenant_id
13
- ENV['AZURE_TENANT_ID']
14
- end
15
-
16
- #
17
- # Default Azure Client Id.
18
- # @return [String] Azure Client Id.
19
- #
20
- def client_id
21
- ENV['AZURE_CLIENT_ID']
22
- end
23
-
24
- #
25
- # Default Azure Client Secret.
26
- # @return [String] Azure Client Secret.
27
- #
28
- def client_secret
29
- ENV['AZURE_CLIENT_SECRET']
30
- end
31
-
32
- #
33
- # Default Azure Subscription Id.
34
- # @return [String] Azure Subscription Id.
35
- #
36
- def subscription_id
37
- ENV['AZURE_SUBSCRIPTION_ID']
38
- end
39
-
40
- #
41
- # Default Azure Active Directory Service Settings.
42
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
43
- #
44
- def active_directory_settings
45
- MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
46
- end
47
-
48
- #
49
- # Configuration options.
50
- # @return [Hash] Configuration options.
51
- #
52
- def options
53
- Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
54
- end
55
- end
56
- end
57
- end