azure_mgmt_container_service 0.17.0 → 0.18.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-03-30/generated/azure_mgmt_container_service/container_service_client.rb +7 -6
- data/lib/2016-09-30/generated/azure_mgmt_container_service/container_service_client.rb +7 -6
- data/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb +1 -1
- data/lib/2017-01-31/generated/azure_mgmt_container_service/container_service_client.rb +7 -6
- data/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_container_service.rb +47 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/container_services.rb +924 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service.rb +213 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +226 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_custom_profile.rb +46 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_list_result.rb +100 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_orchestrator_profile.rb +62 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_orchestrator_types.rb +19 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +73 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +63 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +68 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/models/resource.rb +101 -0
- data/lib/2017-07-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service.rb +48 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/managed_clusters.rb +1172 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +226 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +73 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +63 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +68 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster.rb +183 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +91 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +57 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/models/resource.rb +101 -0
- data/lib/2017-08-31/generated/azure_mgmt_container_service/module_definition.rb +9 -0
- data/lib/2017-09-30/generated/azure_mgmt_container_service.rb +31 -0
- data/lib/2017-09-30/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
- data/lib/2017-09-30/generated/azure_mgmt_container_service/container_services.rb +131 -0
- data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +57 -0
- data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +89 -0
- data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +92 -0
- data/lib/2017-09-30/generated/azure_mgmt_container_service/module_definition.rb +9 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service.rb +57 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/container_service_client.rb +137 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/managed_clusters.rb +1227 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +128 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +73 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +63 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +68 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster.rb +255 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +237 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +91 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/network_policy.rb +15 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +57 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/resource.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/module_definition.rb +9 -0
- data/lib/2018-03-31/generated/azure_mgmt_container_service/operations.rb +107 -0
- data/lib/azure_mgmt_container_service.rb +5 -1
- data/lib/profiles/latest/modules/containerservice_profile_module.rb +149 -49
- data/lib/version.rb +1 -1
- metadata +91 -4
@@ -0,0 +1,91 @@
|
|
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::ContainerService::Mgmt::V2017_08_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of available upgrade versions.
|
10
|
+
#
|
11
|
+
class ManagedClusterPoolUpgradeProfile
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Kubernetes version (major, minor, patch).
|
16
|
+
attr_accessor :kubernetes_version
|
17
|
+
|
18
|
+
# @return [String] Pool name.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [OSType] OsType to be used to specify os type. Choose from
|
22
|
+
# Linux and Windows. Default to Linux. Possible values include: 'Linux',
|
23
|
+
# 'Windows'. Default value: 'Linux' .
|
24
|
+
attr_accessor :os_type
|
25
|
+
|
26
|
+
# @return [Array<String>] List of orchestrator types and versions
|
27
|
+
# available for upgrade.
|
28
|
+
attr_accessor :upgrades
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ManagedClusterPoolUpgradeProfile class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'ManagedClusterPoolUpgradeProfile',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'ManagedClusterPoolUpgradeProfile',
|
43
|
+
model_properties: {
|
44
|
+
kubernetes_version: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'kubernetesVersion',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
name: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'name',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
os_type: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: true,
|
63
|
+
serialized_name: 'osType',
|
64
|
+
default_value: 'Linux',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
upgrades: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'upgrades',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'StringElementType',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb
ADDED
@@ -0,0 +1,105 @@
|
|
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::ContainerService::Mgmt::V2017_08_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of available upgrades for compute pools.
|
10
|
+
#
|
11
|
+
class ManagedClusterUpgradeProfile
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Id of upgrade profile.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Name of upgrade profile.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] Type of upgrade profile.
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @return [ManagedClusterPoolUpgradeProfile] The list of available
|
25
|
+
# upgrade versions for the control plane.
|
26
|
+
attr_accessor :control_plane_profile
|
27
|
+
|
28
|
+
# @return [Array<ManagedClusterPoolUpgradeProfile>] The list of available
|
29
|
+
# upgrade versions for agent pools.
|
30
|
+
attr_accessor :agent_pool_profiles
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for ManagedClusterUpgradeProfile class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'ManagedClusterUpgradeProfile',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'ManagedClusterUpgradeProfile',
|
45
|
+
model_properties: {
|
46
|
+
id: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'id',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
name: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'name',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
type: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'type',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
control_plane_profile: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: true,
|
76
|
+
serialized_name: 'properties.controlPlaneProfile',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'ManagedClusterPoolUpgradeProfile'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
agent_pool_profiles: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: true,
|
85
|
+
serialized_name: 'properties.agentPoolProfiles',
|
86
|
+
type: {
|
87
|
+
name: 'Sequence',
|
88
|
+
element: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'ManagedClusterPoolUpgradeProfileElementType',
|
92
|
+
type: {
|
93
|
+
name: 'Composite',
|
94
|
+
class_name: 'ManagedClusterPoolUpgradeProfile'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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::ContainerService::Mgmt::V2017_08_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Contains information about orchestrator.
|
10
|
+
#
|
11
|
+
class OrchestratorProfile
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Orchestrator type.
|
16
|
+
attr_accessor :orchestrator_type
|
17
|
+
|
18
|
+
# @return [String] Orchestrator version (major, minor, patch).
|
19
|
+
attr_accessor :orchestrator_version
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for OrchestratorProfile class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'OrchestratorProfile',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'OrchestratorProfile',
|
34
|
+
model_properties: {
|
35
|
+
orchestrator_type: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'orchestratorType',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
orchestrator_version: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'orchestratorVersion',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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::ContainerService::Mgmt::V2017_08_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for OSType
|
10
|
+
#
|
11
|
+
module OSType
|
12
|
+
Linux = "Linux"
|
13
|
+
Windows = "Windows"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,101 @@
|
|
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::ContainerService::Mgmt::V2017_08_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The Resource model definition.
|
10
|
+
#
|
11
|
+
class Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource Id
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Resource name
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] Resource type
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @return [String] Resource location
|
25
|
+
attr_accessor :location
|
26
|
+
|
27
|
+
# @return [Hash{String => String}] Resource tags
|
28
|
+
attr_accessor :tags
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for Resource class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'Resource',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'Resource',
|
43
|
+
model_properties: {
|
44
|
+
id: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'id',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
name: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'name',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
type: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'type',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
location: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: true,
|
74
|
+
serialized_name: 'location',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
tags: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'tags',
|
83
|
+
type: {
|
84
|
+
name: 'Dictionary',
|
85
|
+
value: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'StringElementType',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::ContainerService end
|
8
|
+
module Azure::ContainerService::Mgmt end
|
9
|
+
module Azure::ContainerService::Mgmt::V2017_08_31 end
|
@@ -0,0 +1,31 @@
|
|
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 '2017-09-30/generated/azure_mgmt_container_service/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ContainerService::Mgmt::V2017_09_30
|
23
|
+
autoload :ContainerServices, '2017-09-30/generated/azure_mgmt_container_service/container_services.rb'
|
24
|
+
autoload :ContainerServiceClient, '2017-09-30/generated/azure_mgmt_container_service/container_service_client.rb'
|
25
|
+
|
26
|
+
module Models
|
27
|
+
autoload :OrchestratorVersionProfile, '2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb'
|
28
|
+
autoload :OrchestratorVersionProfileListResult, '2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb'
|
29
|
+
autoload :OrchestratorProfile, '2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_profile.rb'
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,133 @@
|
|
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::ContainerService::Mgmt::V2017_09_30
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class ContainerServiceClient < 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] Subscription credentials which uniquely identify
|
21
|
+
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
22
|
+
# for every service call.
|
23
|
+
attr_accessor :subscription_id
|
24
|
+
|
25
|
+
# @return [String] Client Api Version.
|
26
|
+
attr_reader :api_version
|
27
|
+
|
28
|
+
# @return [String] The preferred language for the response.
|
29
|
+
attr_accessor :accept_language
|
30
|
+
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
|
+
attr_accessor :long_running_operation_retry_timeout
|
34
|
+
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
38
|
+
attr_accessor :generate_client_request_id
|
39
|
+
|
40
|
+
# @return [ContainerServices] container_services
|
41
|
+
attr_reader :container_services
|
42
|
+
|
43
|
+
#
|
44
|
+
# Creates initializes a new instance of the ContainerServiceClient class.
|
45
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
46
|
+
# @param base_url [String] the base URI of the service.
|
47
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
48
|
+
#
|
49
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
50
|
+
super(credentials, options)
|
51
|
+
@base_url = base_url || 'https://management.azure.com'
|
52
|
+
|
53
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
54
|
+
@credentials = credentials
|
55
|
+
|
56
|
+
@container_services = ContainerServices.new(self)
|
57
|
+
@api_version = '2017-09-30'
|
58
|
+
@accept_language = 'en-US'
|
59
|
+
@long_running_operation_retry_timeout = 30
|
60
|
+
@generate_client_request_id = true
|
61
|
+
add_telemetry
|
62
|
+
end
|
63
|
+
|
64
|
+
#
|
65
|
+
# Makes a request and returns the body of the response.
|
66
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
67
|
+
# @param path [String] the path, relative to {base_url}.
|
68
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
69
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
70
|
+
# Example:
|
71
|
+
#
|
72
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
73
|
+
# path = "/path"
|
74
|
+
# options = {
|
75
|
+
# body: request_content,
|
76
|
+
# query_params: {'api-version' => '2016-02-01'}
|
77
|
+
# }
|
78
|
+
# result = @client.make_request(:put, path, options)
|
79
|
+
#
|
80
|
+
def make_request(method, path, options = {})
|
81
|
+
result = make_request_with_http_info(method, path, options)
|
82
|
+
result.body unless result.nil?
|
83
|
+
end
|
84
|
+
|
85
|
+
#
|
86
|
+
# Makes a request and returns the operation response.
|
87
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
88
|
+
# @param path [String] the path, relative to {base_url}.
|
89
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
90
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
91
|
+
#
|
92
|
+
def make_request_with_http_info(method, path, options = {})
|
93
|
+
result = make_request_async(method, path, options).value!
|
94
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
95
|
+
result
|
96
|
+
end
|
97
|
+
|
98
|
+
#
|
99
|
+
# Makes a request asynchronously.
|
100
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
101
|
+
# @param path [String] the path, relative to {base_url}.
|
102
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
103
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
104
|
+
#
|
105
|
+
def make_request_async(method, path, options = {})
|
106
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
107
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
108
|
+
|
109
|
+
request_url = options[:base_url] || @base_url
|
110
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
111
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
112
|
+
end
|
113
|
+
|
114
|
+
request_headers = @request_headers
|
115
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
116
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
117
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
118
|
+
|
119
|
+
super(request_url, method, path, options)
|
120
|
+
end
|
121
|
+
|
122
|
+
|
123
|
+
private
|
124
|
+
#
|
125
|
+
# Adds telemetry information.
|
126
|
+
#
|
127
|
+
def add_telemetry
|
128
|
+
sdk_information = 'azure_mgmt_container_service'
|
129
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
130
|
+
add_user_agent_information(sdk_information)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|