Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure_sdk/lib/azure_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

require 'latest/latest_profile_client'
require 'v2017_03_09/v2017_03_09_profile_client'
require 'latest/latest_profile_client'
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def initialize(client)
#
# @return [Endpoint] operation results.
#
def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
response.body unless response.nil?
end

Expand All @@ -60,8 +60,8 @@ def update(resource_group_name, profile_name, endpoint_type, endpoint_name, para
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
end

#
Expand All @@ -81,7 +81,7 @@ def update_with_http_info(resource_group_name, profile_name, endpoint_type, endp
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
Expand All @@ -92,12 +92,13 @@ def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name


request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'

# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

request_headers['Content-Type'] = 'application/json; charset=utf-8'

# Serialize Request
request_mapper = Azure::TrafficManager::Mgmt::V2015_11_01::Models::Endpoint.mapper()
request_content = @client.serialize(request_mapper, parameters)
Expand Down Expand Up @@ -157,8 +158,8 @@ def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name
#
# @return [Endpoint] operation results.
#
def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
response.body unless response.nil?
end

Expand All @@ -175,8 +176,8 @@ def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
end

#
Expand All @@ -192,7 +193,7 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoin
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
Expand All @@ -202,7 +203,6 @@ def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, c


request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'

# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
Expand Down Expand Up @@ -264,8 +264,8 @@ def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, c
#
# @return [Endpoint] operation results.
#
def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
response.body unless response.nil?
end

Expand All @@ -286,8 +286,8 @@ def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
end

#
Expand All @@ -307,7 +307,7 @@ def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
Expand All @@ -318,12 +318,13 @@ def create_or_update_async(resource_group_name, profile_name, endpoint_type, end


request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'

# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

request_headers['Content-Type'] = 'application/json; charset=utf-8'

# Serialize Request
request_mapper = Azure::TrafficManager::Mgmt::V2015_11_01::Models::Endpoint.mapper()
request_content = @client.serialize(request_mapper, parameters)
Expand Down Expand Up @@ -394,8 +395,8 @@ def create_or_update_async(resource_group_name, profile_name, endpoint_type, end
# will be added to the HTTP request.
#
#
def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
nil
end

Expand All @@ -414,8 +415,8 @@ def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, cust
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
end

#
Expand All @@ -433,7 +434,7 @@ def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endp
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
Expand All @@ -443,7 +444,6 @@ def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name


request_headers = {}
request_headers['Content-Type'] = 'application/json; charset=utf-8'

# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,20 @@ class CheckTrafficManagerRelativeDnsNameAvailabilityParameters
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'CheckTrafficManagerRelativeDnsNameAvailabilityParameters',
type: {
name: 'Composite',
class_name: 'CheckTrafficManagerRelativeDnsNameAvailabilityParameters',
model_properties: {
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
serialized_name: 'type',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,27 @@ class DnsConfig
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'DnsConfig',
type: {
name: 'Composite',
class_name: 'DnsConfig',
model_properties: {
relative_name: {
client_side_validation: true,
required: false,
serialized_name: 'relativeName',
type: {
name: 'String'
}
},
fqdn: {
client_side_validation: true,
required: false,
serialized_name: 'fqdn',
type: {
name: 'String'
}
},
ttl: {
client_side_validation: true,
required: false,
serialized_name: 'ttl',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,95 +69,83 @@ class Endpoint
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'Endpoint',
type: {
name: 'Composite',
class_name: 'Endpoint',
model_properties: {
id: {
client_side_validation: true,
required: false,
serialized_name: 'id',
type: {
name: 'String'
}
},
name: {
client_side_validation: true,
required: false,
serialized_name: 'name',
type: {
name: 'String'
}
},
type: {
client_side_validation: true,
required: false,
serialized_name: 'type',
type: {
name: 'String'
}
},
target_resource_id: {
client_side_validation: true,
required: false,
serialized_name: 'properties.targetResourceId',
type: {
name: 'String'
}
},
target: {
client_side_validation: true,
required: false,
serialized_name: 'properties.target',
type: {
name: 'String'
}
},
endpoint_status: {
client_side_validation: true,
required: false,
serialized_name: 'properties.endpointStatus',
type: {
name: 'String'
}
},
weight: {
client_side_validation: true,
required: false,
serialized_name: 'properties.weight',
type: {
name: 'Number'
}
},
priority: {
client_side_validation: true,
required: false,
serialized_name: 'properties.priority',
type: {
name: 'Number'
}
},
endpoint_location: {
client_side_validation: true,
required: false,
serialized_name: 'properties.endpointLocation',
type: {
name: 'String'
}
},
endpoint_monitor_status: {
client_side_validation: true,
required: false,
serialized_name: 'properties.endpointMonitorStatus',
type: {
name: 'String'
}
},
min_child_endpoints: {
client_side_validation: true,
required: false,
serialized_name: 'properties.minChildEndpoints',
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,34 @@ class MonitorConfig
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'MonitorConfig',
type: {
name: 'Composite',
class_name: 'MonitorConfig',
model_properties: {
profile_monitor_status: {
client_side_validation: true,
required: false,
serialized_name: 'profileMonitorStatus',
type: {
name: 'String'
}
},
protocol: {
client_side_validation: true,
required: false,
serialized_name: 'protocol',
type: {
name: 'String'
}
},
port: {
client_side_validation: true,
required: false,
serialized_name: 'port',
type: {
name: 'Number'
}
},
path: {
client_side_validation: true,
required: false,
serialized_name: 'path',
type: {
Expand Down
Loading