azure_mgmt_server_management 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/gateway.rb +92 -85
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/node.rb +62 -58
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb +58 -55
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/server_management.rb +4 -1
- data/lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb +22 -21
- data/lib/profiles/latest/modules/servermanagement_profile_module.rb +121 -102
- data/lib/profiles/latest/servermanagement_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/servermanagement_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -118,6 +118,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
118
118
|
fail ArgumentError, 'path is nil' if path.nil?
|
119
119
|
|
120
120
|
request_url = options[:base_url] || @base_url
|
121
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
122
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
123
|
+
end
|
121
124
|
|
122
125
|
request_headers = @request_headers
|
123
126
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -134,7 +137,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
134
137
|
#
|
135
138
|
def add_telemetry
|
136
139
|
sdk_information = 'azure_mgmt_server_management'
|
137
|
-
sdk_information = "#{sdk_information}/0.
|
140
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
138
141
|
add_user_agent_information(sdk_information)
|
139
142
|
end
|
140
143
|
end
|
@@ -41,8 +41,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
41
41
|
#
|
42
42
|
# @return [SessionResource] operation results.
|
43
43
|
#
|
44
|
-
def create(resource_group_name, node_name, session, user_name
|
45
|
-
response = create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers).value!
|
44
|
+
def create(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil)
|
45
|
+
response = create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers).value!
|
46
46
|
response.body unless response.nil?
|
47
47
|
end
|
48
48
|
|
@@ -65,9 +65,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
65
65
|
# @return [Concurrent::Promise] promise which provides async access to http
|
66
66
|
# response.
|
67
67
|
#
|
68
|
-
def create_async(resource_group_name, node_name, session, user_name
|
68
|
+
def create_async(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil)
|
69
69
|
# Send request
|
70
|
-
promise = begin_create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers)
|
70
|
+
promise = begin_create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers)
|
71
71
|
|
72
72
|
promise = promise.then do |response|
|
73
73
|
# Defining deserialization method.
|
@@ -94,8 +94,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
94
94
|
# will be added to the HTTP request.
|
95
95
|
#
|
96
96
|
#
|
97
|
-
def delete(resource_group_name, node_name, session, custom_headers
|
98
|
-
response = delete_async(resource_group_name, node_name, session, custom_headers).value!
|
97
|
+
def delete(resource_group_name, node_name, session, custom_headers:nil)
|
98
|
+
response = delete_async(resource_group_name, node_name, session, custom_headers:custom_headers).value!
|
99
99
|
nil
|
100
100
|
end
|
101
101
|
|
@@ -111,8 +111,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
111
111
|
#
|
112
112
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
113
113
|
#
|
114
|
-
def delete_with_http_info(resource_group_name, node_name, session, custom_headers
|
115
|
-
delete_async(resource_group_name, node_name, session, custom_headers).value!
|
114
|
+
def delete_with_http_info(resource_group_name, node_name, session, custom_headers:nil)
|
115
|
+
delete_async(resource_group_name, node_name, session, custom_headers:custom_headers).value!
|
116
116
|
end
|
117
117
|
|
118
118
|
#
|
@@ -127,7 +127,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
127
127
|
#
|
128
128
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
129
129
|
#
|
130
|
-
def delete_async(resource_group_name, node_name, session, custom_headers
|
130
|
+
def delete_async(resource_group_name, node_name, session, custom_headers:nil)
|
131
131
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
132
132
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
133
133
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -141,6 +141,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
141
141
|
|
142
142
|
|
143
143
|
request_headers = {}
|
144
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
144
145
|
|
145
146
|
# Set Headers
|
146
147
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -187,8 +188,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
187
188
|
#
|
188
189
|
# @return [SessionResource] operation results.
|
189
190
|
#
|
190
|
-
def get(resource_group_name, node_name, session, custom_headers
|
191
|
-
response = get_async(resource_group_name, node_name, session, custom_headers).value!
|
191
|
+
def get(resource_group_name, node_name, session, custom_headers:nil)
|
192
|
+
response = get_async(resource_group_name, node_name, session, custom_headers:custom_headers).value!
|
192
193
|
response.body unless response.nil?
|
193
194
|
end
|
194
195
|
|
@@ -204,8 +205,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
204
205
|
#
|
205
206
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
206
207
|
#
|
207
|
-
def get_with_http_info(resource_group_name, node_name, session, custom_headers
|
208
|
-
get_async(resource_group_name, node_name, session, custom_headers).value!
|
208
|
+
def get_with_http_info(resource_group_name, node_name, session, custom_headers:nil)
|
209
|
+
get_async(resource_group_name, node_name, session, custom_headers:custom_headers).value!
|
209
210
|
end
|
210
211
|
|
211
212
|
#
|
@@ -220,7 +221,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
220
221
|
#
|
221
222
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
222
223
|
#
|
223
|
-
def get_async(resource_group_name, node_name, session, custom_headers
|
224
|
+
def get_async(resource_group_name, node_name, session, custom_headers:nil)
|
224
225
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
225
226
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
226
227
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -234,6 +235,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
234
235
|
|
235
236
|
|
236
237
|
request_headers = {}
|
238
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
237
239
|
|
238
240
|
# Set Headers
|
239
241
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -298,8 +300,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
298
300
|
#
|
299
301
|
# @return [SessionResource] operation results.
|
300
302
|
#
|
301
|
-
def begin_create(resource_group_name, node_name, session, user_name
|
302
|
-
response = begin_create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers).value!
|
303
|
+
def begin_create(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil)
|
304
|
+
response = begin_create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers).value!
|
303
305
|
response.body unless response.nil?
|
304
306
|
end
|
305
307
|
|
@@ -323,8 +325,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
323
325
|
#
|
324
326
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
325
327
|
#
|
326
|
-
def begin_create_with_http_info(resource_group_name, node_name, session, user_name
|
327
|
-
begin_create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers).value!
|
328
|
+
def begin_create_with_http_info(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil)
|
329
|
+
begin_create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers).value!
|
328
330
|
end
|
329
331
|
|
330
332
|
#
|
@@ -347,7 +349,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
347
349
|
#
|
348
350
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
349
351
|
#
|
350
|
-
def begin_create_async(resource_group_name, node_name, session, user_name
|
352
|
+
def begin_create_async(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil)
|
351
353
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
352
354
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
353
355
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -369,13 +371,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview
|
|
369
371
|
end
|
370
372
|
|
371
373
|
request_headers = {}
|
374
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
372
375
|
|
373
376
|
# Set Headers
|
374
377
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
375
378
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
376
379
|
|
377
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
378
|
-
|
379
380
|
# Serialize Request
|
380
381
|
request_mapper = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionParameters.mapper()
|
381
382
|
request_content = @client.serialize(request_mapper, session_parameters)
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_server_management'
|
6
6
|
|
7
|
-
module Azure::ServerManagement::Profiles::Latest
|
7
|
+
module Azure::ServerManagement::Profiles::Latest
|
8
|
+
module Mgmt
|
8
9
|
Gateway = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Gateway
|
9
10
|
Node = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Node
|
10
11
|
Session = Azure::ServerManagement::Mgmt::V2016_07_01_preview::Session
|
@@ -44,9 +45,9 @@ module Azure::ServerManagement::Profiles::Latest::Mgmt
|
|
44
45
|
end
|
45
46
|
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# ServerManagementManagementClass
|
48
49
|
#
|
49
|
-
class
|
50
|
+
class ServerManagementManagementClass
|
50
51
|
attr_reader :gateway, :node, :session, :power_shell, :configurable, :base_url, :options, :model_classes
|
51
52
|
|
52
53
|
def initialize(options = {})
|
@@ -58,111 +59,129 @@ module Azure::ServerManagement::Profiles::Latest::Mgmt
|
|
58
59
|
|
59
60
|
reset!(options)
|
60
61
|
|
61
|
-
@configurable
|
62
|
+
@configurable = self
|
63
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
64
|
+
@options = options[:options].nil? ? nil:options[:options]
|
62
65
|
|
63
|
-
client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.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
|
-
@
|
68
|
-
@
|
69
|
-
@
|
70
|
-
@
|
66
|
+
@client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.new(configurable.credentials, base_url, options)
|
67
|
+
if(@client_0.respond_to?(:subscription_id))
|
68
|
+
@client_0.subscription_id = configurable.subscription_id
|
69
|
+
end
|
70
|
+
add_telemetry(@client_0)
|
71
|
+
@gateway = @client_0.gateway
|
72
|
+
@node = @client_0.node
|
73
|
+
@session = @client_0.session
|
74
|
+
@power_shell = @client_0.power_shell
|
71
75
|
|
72
76
|
@model_classes = ModelClasses.new
|
73
77
|
end
|
74
78
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
def gateway_status
|
86
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayStatus
|
87
|
-
end
|
88
|
-
def gateway_resources
|
89
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayResources
|
90
|
-
end
|
91
|
-
def prompt_field_description
|
92
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PromptFieldDescription
|
93
|
-
end
|
94
|
-
def gateway_parameters
|
95
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayParameters
|
96
|
-
end
|
97
|
-
def power_shell_command_result
|
98
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResult
|
99
|
-
end
|
100
|
-
def node_resources
|
101
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResources
|
102
|
-
end
|
103
|
-
def power_shell_command_results
|
104
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults
|
105
|
-
end
|
106
|
-
def power_shell_tab_completion_results
|
107
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellTabCompletionResults
|
108
|
-
end
|
109
|
-
def session_parameters
|
110
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionParameters
|
111
|
-
end
|
112
|
-
def error
|
113
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::Error
|
114
|
-
end
|
115
|
-
def gateway_profile
|
116
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayProfile
|
117
|
-
end
|
118
|
-
def power_shell_session_resources
|
119
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellSessionResources
|
120
|
-
end
|
121
|
-
def node_parameters
|
122
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeParameters
|
123
|
-
end
|
124
|
-
def power_shell_command_parameters
|
125
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandParameters
|
126
|
-
end
|
127
|
-
def power_shell_tab_completion_parameters
|
128
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellTabCompletionParameters
|
129
|
-
end
|
130
|
-
def prompt_message_response
|
131
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PromptMessageResponse
|
132
|
-
end
|
133
|
-
def gateway_resource
|
134
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayResource
|
135
|
-
end
|
136
|
-
def node_resource
|
137
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource
|
138
|
-
end
|
139
|
-
def session_resource
|
140
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionResource
|
141
|
-
end
|
142
|
-
def power_shell_session_resource
|
143
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellSessionResource
|
144
|
-
end
|
145
|
-
def power_shell_command_status
|
146
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandStatus
|
147
|
-
end
|
148
|
-
def upgrade_mode
|
149
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::UpgradeMode
|
150
|
-
end
|
151
|
-
def retention_period
|
152
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::RetentionPeriod
|
153
|
-
end
|
154
|
-
def credential_data_format
|
155
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::CredentialDataFormat
|
156
|
-
end
|
157
|
-
def prompt_field_type
|
158
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PromptFieldType
|
159
|
-
end
|
160
|
-
def gateway_expand_option
|
161
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayExpandOption
|
162
|
-
end
|
163
|
-
def power_shell_expand_option
|
164
|
-
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellExpandOption
|
79
|
+
def add_telemetry(client)
|
80
|
+
profile_information = 'Profiles/Latest/ServerManagement/Mgmt'
|
81
|
+
client.add_user_agent_information(profile_information)
|
82
|
+
end
|
83
|
+
|
84
|
+
def method_missing(method, *args)
|
85
|
+
if @client_0.respond_to?method
|
86
|
+
@client_0.send(method, *args)
|
87
|
+
else
|
88
|
+
super
|
165
89
|
end
|
166
90
|
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
class ModelClasses
|
95
|
+
def version
|
96
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::Version
|
97
|
+
end
|
98
|
+
def resource
|
99
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::Resource
|
100
|
+
end
|
101
|
+
def encryption_jwk_resource
|
102
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::EncryptionJwkResource
|
103
|
+
end
|
104
|
+
def gateway_status
|
105
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayStatus
|
106
|
+
end
|
107
|
+
def gateway_resources
|
108
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayResources
|
109
|
+
end
|
110
|
+
def prompt_field_description
|
111
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PromptFieldDescription
|
112
|
+
end
|
113
|
+
def gateway_parameters
|
114
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayParameters
|
115
|
+
end
|
116
|
+
def power_shell_command_result
|
117
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResult
|
118
|
+
end
|
119
|
+
def node_resources
|
120
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResources
|
121
|
+
end
|
122
|
+
def power_shell_command_results
|
123
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResults
|
124
|
+
end
|
125
|
+
def power_shell_tab_completion_results
|
126
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellTabCompletionResults
|
127
|
+
end
|
128
|
+
def session_parameters
|
129
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionParameters
|
130
|
+
end
|
131
|
+
def error
|
132
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::Error
|
133
|
+
end
|
134
|
+
def gateway_profile
|
135
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayProfile
|
136
|
+
end
|
137
|
+
def power_shell_session_resources
|
138
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellSessionResources
|
139
|
+
end
|
140
|
+
def node_parameters
|
141
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeParameters
|
142
|
+
end
|
143
|
+
def power_shell_command_parameters
|
144
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandParameters
|
145
|
+
end
|
146
|
+
def power_shell_tab_completion_parameters
|
147
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellTabCompletionParameters
|
148
|
+
end
|
149
|
+
def prompt_message_response
|
150
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PromptMessageResponse
|
151
|
+
end
|
152
|
+
def gateway_resource
|
153
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayResource
|
154
|
+
end
|
155
|
+
def node_resource
|
156
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::NodeResource
|
157
|
+
end
|
158
|
+
def session_resource
|
159
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::SessionResource
|
160
|
+
end
|
161
|
+
def power_shell_session_resource
|
162
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellSessionResource
|
163
|
+
end
|
164
|
+
def power_shell_command_status
|
165
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandStatus
|
166
|
+
end
|
167
|
+
def upgrade_mode
|
168
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::UpgradeMode
|
169
|
+
end
|
170
|
+
def retention_period
|
171
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::RetentionPeriod
|
172
|
+
end
|
173
|
+
def credential_data_format
|
174
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::CredentialDataFormat
|
175
|
+
end
|
176
|
+
def prompt_field_type
|
177
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PromptFieldType
|
178
|
+
end
|
179
|
+
def gateway_expand_option
|
180
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::GatewayExpandOption
|
181
|
+
end
|
182
|
+
def power_shell_expand_option
|
183
|
+
Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellExpandOption
|
184
|
+
end
|
167
185
|
end
|
186
|
+
end
|
168
187
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/servermanagement_module_definition'
|
6
6
|
require 'profiles/latest/modules/servermanagement_profile_module'
|
7
7
|
|
8
|
-
module Azure::ServerManagement::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::ServerManagement::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < ServerManagementManagementClass
|
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
|