azure_mgmt_service_fabric 0.15.2 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +52 -45
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb +63 -59
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/resource.rb +9 -0
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb +16 -14
- data/lib/2016-09-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +10 -6
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric.rb +91 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application.rb +691 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application_type.rb +487 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/cluster_versions.rb +471 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/clusters.rb +778 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_health_policy.rb +104 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_metric_description.rb +113 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_parameter.rb +58 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb +206 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_list.rb +55 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb +182 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_type_resource.rb +83 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_type_resource_list.rb +55 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_upgrade_policy.rb +81 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +79 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +68 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/certificate_description.rb +70 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +70 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +59 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster.rb +398 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +66 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +102 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +70 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +66 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +246 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +97 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +156 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +69 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +91 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +57 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/error_model.rb +57 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/named_partition_scheme_description.rb +81 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/node_type_description.rb +189 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +101 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/operation_result.rb +81 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/partition_scheme_description.rb +48 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/proxy_resource.rb +82 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/resource.rb +110 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/rolling_upgrade_monitoring_policy.rb +90 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_correlation_description.rb +58 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb +98 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_placement_policy_description.rb +46 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_properties.rb +151 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_properties_base.rb +123 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource.rb +207 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource_list.rb +55 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource_update.rb +169 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb +51 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb +108 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy_map_item.rb +60 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_update_properties.rb +113 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +57 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +67 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/singleton_partition_scheme_description.rb +51 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateful_service_properties.rb +227 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateful_service_update_properties.rb +186 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateless_service_properties.rb +161 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateless_service_update_properties.rb +133 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/uniform_int64range_partition_scheme_description.rb +91 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/version_resource.rb +115 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/version_resource_list.rb +55 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/module_definition.rb +9 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/operations.rb +230 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service.rb +735 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +148 -0
- data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/version.rb +559 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric.rb +61 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +456 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/clusters.rb +753 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/application_delta_health_policy.rb +73 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/application_health_policy.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +68 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/certificate_description.rb +70 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +70 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +59 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster.rb +476 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +66 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +102 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +121 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +66 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +276 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +125 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +156 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +69 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +91 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/error_model.rb +47 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/error_model_error.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/node_type_description.rb +198 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +101 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/operation_result.rb +81 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/resource.rb +110 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/server_certificate_common_name.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/server_certificate_common_names.rb +71 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb +55 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +57 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +67 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/module_definition.rb +9 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/operations.rb +237 -0
- data/lib/2018-02-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +141 -0
- data/lib/azure_mgmt_service_fabric.rb +2 -0
- data/lib/profiles/latest/modules/servicefabric_profile_module.rb +293 -114
- data/lib/profiles/latest/servicefabric_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/servicefabric_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +109 -5
@@ -0,0 +1,47 @@
|
|
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::ServiceFabric::Mgmt::V2018_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The structure of the error.
|
10
|
+
#
|
11
|
+
class ErrorModel
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ErrorModelError] The error details.
|
16
|
+
attr_accessor :error
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ErrorModel class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ErrorModel',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ErrorModel',
|
31
|
+
model_properties: {
|
32
|
+
error: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'error',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ErrorModelError'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
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::ServiceFabric::Mgmt::V2018_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The error details.
|
10
|
+
#
|
11
|
+
class ErrorModelError
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The error code.
|
16
|
+
attr_accessor :code
|
17
|
+
|
18
|
+
# @return [String] The error message.
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ErrorModelError 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: 'ErrorModelError',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ErrorModelError',
|
34
|
+
model_properties: {
|
35
|
+
code: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'code',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
message: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'message',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,198 @@
|
|
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::ServiceFabric::Mgmt::V2018_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes a node type in the cluster, each node type represents sub set
|
10
|
+
# of nodes in the cluster.
|
11
|
+
#
|
12
|
+
class NodeTypeDescription
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The name of the node type.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [Hash{String => String}] The placement tags applied to nodes in
|
20
|
+
# the node type, which can be used to indicate where certain services
|
21
|
+
# (workload) should run.
|
22
|
+
attr_accessor :placement_properties
|
23
|
+
|
24
|
+
# @return [Hash{String => String}] The capacity tags applied to the nodes
|
25
|
+
# in the node type, the cluster resource manager uses these tags to
|
26
|
+
# understand how much resource a node has.
|
27
|
+
attr_accessor :capacities
|
28
|
+
|
29
|
+
# @return [Integer] The TCP cluster management endpoint port.
|
30
|
+
attr_accessor :client_connection_endpoint_port
|
31
|
+
|
32
|
+
# @return [Integer] The HTTP cluster management endpoint port.
|
33
|
+
attr_accessor :http_gateway_endpoint_port
|
34
|
+
|
35
|
+
# @return [Enum] The durability level of the node type. Learn about
|
36
|
+
# [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).
|
37
|
+
#
|
38
|
+
# - Bronze - No privileges. This is the default.
|
39
|
+
# - Silver - The infrastructure jobs can be paused for a duration of 10
|
40
|
+
# minutes per UD.
|
41
|
+
# - Gold - The infrastructure jobs can be paused for a duration of 2
|
42
|
+
# hours per UD. Gold durability can be enabled only on full node VM skus
|
43
|
+
# like D15_V2, G5 etc.
|
44
|
+
# . Possible values include: 'Bronze', 'Silver', 'Gold'
|
45
|
+
attr_accessor :durability_level
|
46
|
+
|
47
|
+
# @return [EndpointRangeDescription] The range of ports from which
|
48
|
+
# cluster assigned port to Service Fabric applications.
|
49
|
+
attr_accessor :application_ports
|
50
|
+
|
51
|
+
# @return [EndpointRangeDescription] The range of empheral ports that
|
52
|
+
# nodes in this node type should be configured with.
|
53
|
+
attr_accessor :ephemeral_ports
|
54
|
+
|
55
|
+
# @return [Boolean] The node type on which system services will run. Only
|
56
|
+
# one node type should be marked as primary. Primary node type cannot be
|
57
|
+
# deleted or changed for existing clusters.
|
58
|
+
attr_accessor :is_primary
|
59
|
+
|
60
|
+
# @return [Integer] The number of nodes in the node type. This count
|
61
|
+
# should match the capacity property in the corresponding
|
62
|
+
# VirtualMachineScaleSet resource.
|
63
|
+
attr_accessor :vm_instance_count
|
64
|
+
|
65
|
+
# @return [Integer] The endpoint used by reverse proxy.
|
66
|
+
attr_accessor :reverse_proxy_endpoint_port
|
67
|
+
|
68
|
+
|
69
|
+
#
|
70
|
+
# Mapper for NodeTypeDescription class as Ruby Hash.
|
71
|
+
# This will be used for serialization/deserialization.
|
72
|
+
#
|
73
|
+
def self.mapper()
|
74
|
+
{
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'NodeTypeDescription',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'NodeTypeDescription',
|
81
|
+
model_properties: {
|
82
|
+
name: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: true,
|
85
|
+
serialized_name: 'name',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
placement_properties: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'placementProperties',
|
94
|
+
type: {
|
95
|
+
name: 'Dictionary',
|
96
|
+
value: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'StringElementType',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
},
|
106
|
+
capacities: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: false,
|
109
|
+
serialized_name: 'capacities',
|
110
|
+
type: {
|
111
|
+
name: 'Dictionary',
|
112
|
+
value: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'StringElementType',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
},
|
122
|
+
client_connection_endpoint_port: {
|
123
|
+
client_side_validation: true,
|
124
|
+
required: true,
|
125
|
+
serialized_name: 'clientConnectionEndpointPort',
|
126
|
+
type: {
|
127
|
+
name: 'Number'
|
128
|
+
}
|
129
|
+
},
|
130
|
+
http_gateway_endpoint_port: {
|
131
|
+
client_side_validation: true,
|
132
|
+
required: true,
|
133
|
+
serialized_name: 'httpGatewayEndpointPort',
|
134
|
+
type: {
|
135
|
+
name: 'Number'
|
136
|
+
}
|
137
|
+
},
|
138
|
+
durability_level: {
|
139
|
+
client_side_validation: true,
|
140
|
+
required: false,
|
141
|
+
serialized_name: 'durabilityLevel',
|
142
|
+
type: {
|
143
|
+
name: 'String'
|
144
|
+
}
|
145
|
+
},
|
146
|
+
application_ports: {
|
147
|
+
client_side_validation: true,
|
148
|
+
required: false,
|
149
|
+
serialized_name: 'applicationPorts',
|
150
|
+
type: {
|
151
|
+
name: 'Composite',
|
152
|
+
class_name: 'EndpointRangeDescription'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
ephemeral_ports: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'ephemeralPorts',
|
159
|
+
type: {
|
160
|
+
name: 'Composite',
|
161
|
+
class_name: 'EndpointRangeDescription'
|
162
|
+
}
|
163
|
+
},
|
164
|
+
is_primary: {
|
165
|
+
client_side_validation: true,
|
166
|
+
required: true,
|
167
|
+
serialized_name: 'isPrimary',
|
168
|
+
type: {
|
169
|
+
name: 'Boolean'
|
170
|
+
}
|
171
|
+
},
|
172
|
+
vm_instance_count: {
|
173
|
+
client_side_validation: true,
|
174
|
+
required: true,
|
175
|
+
serialized_name: 'vmInstanceCount',
|
176
|
+
constraints: {
|
177
|
+
InclusiveMaximum: 2147483647,
|
178
|
+
InclusiveMinimum: 1
|
179
|
+
},
|
180
|
+
type: {
|
181
|
+
name: 'Number'
|
182
|
+
}
|
183
|
+
},
|
184
|
+
reverse_proxy_endpoint_port: {
|
185
|
+
client_side_validation: true,
|
186
|
+
required: false,
|
187
|
+
serialized_name: 'reverseProxyEndpointPort',
|
188
|
+
type: {
|
189
|
+
name: 'Number'
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
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::ServiceFabric::Mgmt::V2018_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes the result of the request to list Service Fabric operations.
|
10
|
+
#
|
11
|
+
class OperationListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<OperationResult>] List of Service Fabric operations
|
17
|
+
# supported by the Microsoft.ServiceFabric resource provider.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] URL to get the next set of operation list results if
|
21
|
+
# there are any.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<OperationResult>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [OperationListResult] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'OperationListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'OperationListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'OperationResultElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'OperationResult'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
next_link: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
read_only: true,
|
90
|
+
serialized_name: 'nextLink',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,81 @@
|
|
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::ServiceFabric::Mgmt::V2018_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Available operation list result
|
10
|
+
#
|
11
|
+
class OperationResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the operation.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [AvailableOperationDisplay] The object that represents the
|
19
|
+
# operation.
|
20
|
+
attr_accessor :display
|
21
|
+
|
22
|
+
# @return [String] Origin result
|
23
|
+
attr_accessor :origin
|
24
|
+
|
25
|
+
# @return [String] The URL to use for getting the next set of results.
|
26
|
+
attr_accessor :next_link
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for OperationResult class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'OperationResult',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'OperationResult',
|
41
|
+
model_properties: {
|
42
|
+
name: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'name',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
display: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'display',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'AvailableOperationDisplay'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
origin: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'origin',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
next_link: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'nextLink',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|