azure_mgmt_relay 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,8 @@
4
4
 
5
5
  require 'azure_mgmt_relay'
6
6
 
7
- module Azure::Relay::Profiles::Latest::Mgmt
7
+ module Azure::Relay::Profiles::Latest
8
+ module Mgmt
8
9
  Operations = Azure::Relay::Mgmt::V2017_04_01::Operations
9
10
  Namespaces = Azure::Relay::Mgmt::V2017_04_01::Namespaces
10
11
  HybridConnections = Azure::Relay::Mgmt::V2017_04_01::HybridConnections
@@ -41,9 +42,9 @@ module Azure::Relay::Profiles::Latest::Mgmt
41
42
  end
42
43
 
43
44
  #
44
- # Relay
45
+ # RelayManagementClass
45
46
  #
46
- class RelayClass
47
+ class RelayManagementClass
47
48
  attr_reader :operations, :namespaces, :hybrid_connections, :wcfrelays, :configurable, :base_url, :options, :model_classes
48
49
 
49
50
  def initialize(options = {})
@@ -55,102 +56,120 @@ module Azure::Relay::Profiles::Latest::Mgmt
55
56
 
56
57
  reset!(options)
57
58
 
58
- @configurable, @base_url, @options = self, nil, nil
59
+ @configurable = self
60
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
61
+ @options = options[:options].nil? ? nil:options[:options]
59
62
 
60
- client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.new(configurable.credentials, base_url, options)
61
- if(client_0.respond_to?(:subscription_id))
62
- client_0.subscription_id = configurable.subscription_id
63
- end
64
- @operations = client_0.operations
65
- @namespaces = client_0.namespaces
66
- @hybrid_connections = client_0.hybrid_connections
67
- @wcfrelays = client_0.wcfrelays
63
+ @client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.new(configurable.credentials, base_url, options)
64
+ if(@client_0.respond_to?(:subscription_id))
65
+ @client_0.subscription_id = configurable.subscription_id
66
+ end
67
+ add_telemetry(@client_0)
68
+ @operations = @client_0.operations
69
+ @namespaces = @client_0.namespaces
70
+ @hybrid_connections = @client_0.hybrid_connections
71
+ @wcfrelays = @client_0.wcfrelays
68
72
 
69
73
  @model_classes = ModelClasses.new
70
74
  end
71
75
 
72
- class ModelClasses
73
- def relay_namespace_list_result
74
- Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult
75
- end
76
- def operation_display
77
- Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay
78
- end
79
- def resource
80
- Azure::Relay::Mgmt::V2017_04_01::Models::Resource
81
- end
82
- def check_name_availability
83
- Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability
84
- end
85
- def hybrid_connection_list_result
86
- Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnectionListResult
87
- end
88
- def check_name_availability_result
89
- Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
90
- end
91
- def wcf_relays_list_result
92
- Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelaysListResult
93
- end
94
- def error_response
95
- Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse
96
- end
97
- def operation_list_result
98
- Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult
99
- end
100
- def authorization_rule_list_result
101
- Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult
102
- end
103
- def sku
104
- Azure::Relay::Mgmt::V2017_04_01::Models::Sku
105
- end
106
- def access_keys
107
- Azure::Relay::Mgmt::V2017_04_01::Models::AccessKeys
108
- end
109
- def operation
110
- Azure::Relay::Mgmt::V2017_04_01::Models::Operation
111
- end
112
- def regenerate_access_key_parameters
113
- Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
114
- end
115
- def tracked_resource
116
- Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource
117
- end
118
- def resource_namespace_patch
119
- Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch
120
- end
121
- def hybrid_connection
122
- Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection
123
- end
124
- def wcf_relay
125
- Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay
126
- end
127
- def relay_namespace
128
- Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace
129
- end
130
- def relay_update_parameters
131
- Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters
132
- end
133
- def authorization_rule
134
- Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule
135
- end
136
- def relaytype
137
- Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype
138
- end
139
- def sku_tier
140
- Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier
141
- end
142
- def provisioning_state_enum
143
- Azure::Relay::Mgmt::V2017_04_01::Models::ProvisioningStateEnum
144
- end
145
- def access_rights
146
- Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights
147
- end
148
- def key_type
149
- Azure::Relay::Mgmt::V2017_04_01::Models::KeyType
150
- end
151
- def unavailable_reason
152
- Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason
76
+ def add_telemetry(client)
77
+ profile_information = 'Profiles/Latest/Relay/Mgmt'
78
+ client.add_user_agent_information(profile_information)
79
+ end
80
+
81
+ def method_missing(method, *args)
82
+ if @client_0.respond_to?method
83
+ @client_0.send(method, *args)
84
+ else
85
+ super
153
86
  end
154
87
  end
88
+
89
+ end
90
+
91
+ class ModelClasses
92
+ def relay_namespace_list_result
93
+ Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult
94
+ end
95
+ def operation_display
96
+ Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay
97
+ end
98
+ def resource
99
+ Azure::Relay::Mgmt::V2017_04_01::Models::Resource
100
+ end
101
+ def check_name_availability
102
+ Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability
103
+ end
104
+ def hybrid_connection_list_result
105
+ Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnectionListResult
106
+ end
107
+ def check_name_availability_result
108
+ Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
109
+ end
110
+ def wcf_relays_list_result
111
+ Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelaysListResult
112
+ end
113
+ def error_response
114
+ Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse
115
+ end
116
+ def operation_list_result
117
+ Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult
118
+ end
119
+ def authorization_rule_list_result
120
+ Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult
121
+ end
122
+ def sku
123
+ Azure::Relay::Mgmt::V2017_04_01::Models::Sku
124
+ end
125
+ def access_keys
126
+ Azure::Relay::Mgmt::V2017_04_01::Models::AccessKeys
127
+ end
128
+ def operation
129
+ Azure::Relay::Mgmt::V2017_04_01::Models::Operation
130
+ end
131
+ def regenerate_access_key_parameters
132
+ Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
133
+ end
134
+ def tracked_resource
135
+ Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource
136
+ end
137
+ def resource_namespace_patch
138
+ Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch
139
+ end
140
+ def hybrid_connection
141
+ Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection
142
+ end
143
+ def wcf_relay
144
+ Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay
145
+ end
146
+ def relay_namespace
147
+ Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace
148
+ end
149
+ def relay_update_parameters
150
+ Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters
151
+ end
152
+ def authorization_rule
153
+ Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule
154
+ end
155
+ def relaytype
156
+ Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype
157
+ end
158
+ def sku_tier
159
+ Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier
160
+ end
161
+ def provisioning_state_enum
162
+ Azure::Relay::Mgmt::V2017_04_01::Models::ProvisioningStateEnum
163
+ end
164
+ def access_rights
165
+ Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights
166
+ end
167
+ def key_type
168
+ Azure::Relay::Mgmt::V2017_04_01::Models::KeyType
169
+ end
170
+ def unavailable_reason
171
+ Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason
172
+ end
155
173
  end
174
+ end
156
175
  end
@@ -5,17 +5,36 @@
5
5
  require 'profiles/latest/relay_module_definition'
6
6
  require 'profiles/latest/modules/relay_profile_module'
7
7
 
8
- module Azure::Relay::Profiles::Latest::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < RelayClass
13
- include MsRestAzure::Common::Configurable
8
+ module Azure::Relay::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < RelayManagementClass
14
+ include MsRestAzure::Common::Configurable
14
15
 
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
15
37
 
16
- def initialize(options = {})
17
- super(options)
18
38
  end
19
-
20
39
  end
21
40
  end
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::Relay end
7
7
  module Azure::Relay::Profiles end
8
8
  module Azure::Relay::Profiles::Latest end
9
- module Azure::Relay::Profiles::Latest::Mgmt end
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::Relay::Mgmt
6
- VERSION = '0.15.2'
6
+ VERSION = '0.16.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_relay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.16.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: 2017-12-19 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.5.1
186
+ rubygems_version: 2.6.10
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Official Ruby client library to consume Microsoft Azure Relay.