azure_mgmt_service_fabric 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_service_fabric.rb +7 -0
- data/lib/generated/azure_mgmt_service_fabric/cluster_versions.rb +737 -0
- data/lib/generated/azure_mgmt_service_fabric/clusters.rb +907 -0
- data/lib/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +74 -0
- data/lib/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +64 -0
- data/lib/generated/azure_mgmt_service_fabric/models/certificate_description.rb +66 -0
- data/lib/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +66 -0
- data/lib/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +55 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster.rb +343 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +95 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +67 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +204 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +77 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +141 -0
- data/lib/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +65 -0
- data/lib/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +84 -0
- data/lib/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +54 -0
- data/lib/generated/azure_mgmt_service_fabric/models/error_model.rb +45 -0
- data/lib/generated/azure_mgmt_service_fabric/models/error_model_error.rb +54 -0
- data/lib/generated/azure_mgmt_service_fabric/models/node_type_description.rb +170 -0
- data/lib/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +99 -0
- data/lib/generated/azure_mgmt_service_fabric/models/operation_result.rb +75 -0
- data/lib/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
- data/lib/generated/azure_mgmt_service_fabric/models/resource.rb +94 -0
- data/lib/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +54 -0
- data/lib/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +64 -0
- data/lib/generated/azure_mgmt_service_fabric/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_service_fabric/operations.rb +213 -0
- data/lib/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +137 -0
- data/lib/generated/azure_mgmt_service_fabric/version.rb +8 -0
- data/lib/generated/azure_mgmt_service_fabric.rb +55 -0
- metadata +147 -0
@@ -0,0 +1,137 @@
|
|
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::ARM::ServiceFabric
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class ServiceFabricManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The customer subscription identifier
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] The version of the ServiceFabric resouce provider api
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [String] Gets or sets the preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
30
|
+
# Running Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
34
|
+
# is generated and included in each request. Default is true.
|
35
|
+
attr_accessor :generate_client_request_id
|
36
|
+
|
37
|
+
# @return [Clusters] clusters
|
38
|
+
attr_reader :clusters
|
39
|
+
|
40
|
+
# @return [ClusterVersions] cluster_versions
|
41
|
+
attr_reader :cluster_versions
|
42
|
+
|
43
|
+
# @return [Operations] operations
|
44
|
+
attr_reader :operations
|
45
|
+
|
46
|
+
#
|
47
|
+
# Creates initializes a new instance of the ServiceFabricManagementClient class.
|
48
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
49
|
+
# @param base_url [String] the base URI of the service.
|
50
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
51
|
+
#
|
52
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
53
|
+
super(credentials, options)
|
54
|
+
@base_url = base_url || 'https://management.azure.com'
|
55
|
+
|
56
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
57
|
+
@credentials = credentials
|
58
|
+
|
59
|
+
@clusters = Clusters.new(self)
|
60
|
+
@cluster_versions = ClusterVersions.new(self)
|
61
|
+
@operations = Operations.new(self)
|
62
|
+
@api_version = '2016-09-01'
|
63
|
+
@accept_language = 'en-US'
|
64
|
+
@long_running_operation_retry_timeout = 30
|
65
|
+
@generate_client_request_id = true
|
66
|
+
add_telemetry
|
67
|
+
end
|
68
|
+
|
69
|
+
#
|
70
|
+
# Makes a request and returns the body of the response.
|
71
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
72
|
+
# @param path [String] the path, relative to {base_url}.
|
73
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
74
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
75
|
+
# Example:
|
76
|
+
#
|
77
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
78
|
+
# path = "/path"
|
79
|
+
# options = {
|
80
|
+
# body: request_content,
|
81
|
+
# query_params: {'api-version' => '2016-02-01'}
|
82
|
+
# }
|
83
|
+
# result = @client.make_request(:put, path, options)
|
84
|
+
#
|
85
|
+
def make_request(method, path, options = {})
|
86
|
+
result = make_request_with_http_info(method, path, options)
|
87
|
+
result.body unless result.nil?
|
88
|
+
end
|
89
|
+
|
90
|
+
#
|
91
|
+
# Makes a request and returns the operation response.
|
92
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
93
|
+
# @param path [String] the path, relative to {base_url}.
|
94
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
95
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
96
|
+
#
|
97
|
+
def make_request_with_http_info(method, path, options = {})
|
98
|
+
result = make_request_async(method, path, options).value!
|
99
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
100
|
+
result
|
101
|
+
end
|
102
|
+
|
103
|
+
#
|
104
|
+
# Makes a request asynchronously.
|
105
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
106
|
+
# @param path [String] the path, relative to {base_url}.
|
107
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
108
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
109
|
+
#
|
110
|
+
def make_request_async(method, path, options = {})
|
111
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
112
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
113
|
+
|
114
|
+
request_url = options[:base_url] || @base_url
|
115
|
+
|
116
|
+
request_headers = @request_headers
|
117
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
118
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
119
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
120
|
+
|
121
|
+
super(request_url, method, path, options)
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
private
|
126
|
+
#
|
127
|
+
# Adds telemetry information.
|
128
|
+
#
|
129
|
+
def add_telemetry
|
130
|
+
sdk_information = 'azure_mgmt_service_fabric'
|
131
|
+
if defined? Azure::ARM::ServiceFabric::VERSION
|
132
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::ServiceFabric::VERSION}"
|
133
|
+
end
|
134
|
+
add_user_agent_information(sdk_information)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -0,0 +1,55 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'generated/azure_mgmt_service_fabric/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ARM::ServiceFabric
|
23
|
+
autoload :Clusters, 'generated/azure_mgmt_service_fabric/clusters.rb'
|
24
|
+
autoload :ClusterVersions, 'generated/azure_mgmt_service_fabric/cluster_versions.rb'
|
25
|
+
autoload :Operations, 'generated/azure_mgmt_service_fabric/operations.rb'
|
26
|
+
autoload :ServiceFabricManagementClient, 'generated/azure_mgmt_service_fabric/service_fabric_management_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :ClusterUpgradePolicy, 'generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb'
|
30
|
+
autoload :ClusterVersionDetails, 'generated/azure_mgmt_service_fabric/models/cluster_version_details.rb'
|
31
|
+
autoload :DiagnosticsStorageAccountConfig, 'generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb'
|
32
|
+
autoload :ClusterCodeVersionsListResult, 'generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb'
|
33
|
+
autoload :AzureActiveDirectory, 'generated/azure_mgmt_service_fabric/models/azure_active_directory.rb'
|
34
|
+
autoload :SettingsParameterDescription, 'generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb'
|
35
|
+
autoload :ClusterUpdateParameters, 'generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb'
|
36
|
+
autoload :EndpointRangeDescription, 'generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb'
|
37
|
+
autoload :NodeTypeDescription, 'generated/azure_mgmt_service_fabric/models/node_type_description.rb'
|
38
|
+
autoload :ClientCertificateCommonName, 'generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb'
|
39
|
+
autoload :ClusterListResult, 'generated/azure_mgmt_service_fabric/models/cluster_list_result.rb'
|
40
|
+
autoload :ClusterUpgradeDeltaHealthPolicy, 'generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb'
|
41
|
+
autoload :AvailableOperationDisplay, 'generated/azure_mgmt_service_fabric/models/available_operation_display.rb'
|
42
|
+
autoload :CertificateDescription, 'generated/azure_mgmt_service_fabric/models/certificate_description.rb'
|
43
|
+
autoload :OperationResult, 'generated/azure_mgmt_service_fabric/models/operation_result.rb'
|
44
|
+
autoload :ClientCertificateThumbprint, 'generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb'
|
45
|
+
autoload :OperationListResult, 'generated/azure_mgmt_service_fabric/models/operation_list_result.rb'
|
46
|
+
autoload :ClusterCodeVersionsResult, 'generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb'
|
47
|
+
autoload :ErrorModelError, 'generated/azure_mgmt_service_fabric/models/error_model_error.rb'
|
48
|
+
autoload :ClusterHealthPolicy, 'generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb'
|
49
|
+
autoload :ErrorModel, 'generated/azure_mgmt_service_fabric/models/error_model.rb'
|
50
|
+
autoload :SettingsSectionDescription, 'generated/azure_mgmt_service_fabric/models/settings_section_description.rb'
|
51
|
+
autoload :Resource, 'generated/azure_mgmt_service_fabric/models/resource.rb'
|
52
|
+
autoload :Cluster, 'generated/azure_mgmt_service_fabric/models/cluster.rb'
|
53
|
+
autoload :ProvisioningState, 'generated/azure_mgmt_service_fabric/models/provisioning_state.rb'
|
54
|
+
end
|
55
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: azure_mgmt_service_fabric
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.14.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Microsoft Corporation
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ms_rest_azure
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.9.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.9.0
|
83
|
+
description: Microsoft Azure Service Fabric Library for Ruby
|
84
|
+
email: azrubyteam@microsoft.com
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files: []
|
88
|
+
files:
|
89
|
+
- LICENSE.txt
|
90
|
+
- lib/azure_mgmt_service_fabric.rb
|
91
|
+
- lib/generated/azure_mgmt_service_fabric.rb
|
92
|
+
- lib/generated/azure_mgmt_service_fabric/cluster_versions.rb
|
93
|
+
- lib/generated/azure_mgmt_service_fabric/clusters.rb
|
94
|
+
- lib/generated/azure_mgmt_service_fabric/models/available_operation_display.rb
|
95
|
+
- lib/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb
|
96
|
+
- lib/generated/azure_mgmt_service_fabric/models/certificate_description.rb
|
97
|
+
- lib/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb
|
98
|
+
- lib/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb
|
99
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster.rb
|
100
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb
|
101
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb
|
102
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb
|
103
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb
|
104
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb
|
105
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb
|
106
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb
|
107
|
+
- lib/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb
|
108
|
+
- lib/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb
|
109
|
+
- lib/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb
|
110
|
+
- lib/generated/azure_mgmt_service_fabric/models/error_model.rb
|
111
|
+
- lib/generated/azure_mgmt_service_fabric/models/error_model_error.rb
|
112
|
+
- lib/generated/azure_mgmt_service_fabric/models/node_type_description.rb
|
113
|
+
- lib/generated/azure_mgmt_service_fabric/models/operation_list_result.rb
|
114
|
+
- lib/generated/azure_mgmt_service_fabric/models/operation_result.rb
|
115
|
+
- lib/generated/azure_mgmt_service_fabric/models/provisioning_state.rb
|
116
|
+
- lib/generated/azure_mgmt_service_fabric/models/resource.rb
|
117
|
+
- lib/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb
|
118
|
+
- lib/generated/azure_mgmt_service_fabric/models/settings_section_description.rb
|
119
|
+
- lib/generated/azure_mgmt_service_fabric/module_definition.rb
|
120
|
+
- lib/generated/azure_mgmt_service_fabric/operations.rb
|
121
|
+
- lib/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb
|
122
|
+
- lib/generated/azure_mgmt_service_fabric/version.rb
|
123
|
+
homepage: https://aka.ms/azure-sdk-for-ruby
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: 2.0.0
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.5.1
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: Official Ruby client library to consume Microsoft Azure Service Fabric.
|
147
|
+
test_files: []
|