icontrol 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/icontrol/arx.rb +38 -8
- data/lib/icontrol/arx/api.rb +1 -0
- data/lib/icontrol/arx/chassis.rb +11 -0
- data/lib/icontrol/arx/export.rb +4 -1
- data/lib/icontrol/arx/file_change_notification.rb +25 -4
- data/lib/icontrol/arx/file_server.rb +2 -0
- data/lib/icontrol/arx/namespace.rb +2 -0
- data/lib/icontrol/arx/network.rb +3 -0
- data/lib/icontrol/arx/policy.rb +3 -0
- data/lib/icontrol/arx/share.rb +2 -0
- data/lib/icontrol/arx/virtual_service.rb +3 -0
- data/lib/icontrol/arx/volume.rb +2 -0
- data/lib/icontrol/asm.rb +18 -3
- data/lib/icontrol/asm/object_params.rb +12 -6
- data/lib/icontrol/asm/policy.rb +118 -79
- data/lib/icontrol/asm/system_configuration.rb +27 -19
- data/lib/icontrol/asm/web_application.rb +74 -52
- data/lib/icontrol/asm/web_application_group.rb +33 -24
- data/lib/icontrol/base.rb +1 -0
- data/lib/icontrol/base/exception.rb +1 -0
- data/lib/icontrol/base/icontrol/local_lb/pool.rb +7 -0
- data/lib/icontrol/base/icontrol_overlay.rb +6 -0
- data/lib/icontrol/base/predeclarations.rb +5 -4
- data/lib/icontrol/base/struct.rb +6 -2
- data/lib/icontrol/common.rb +55 -4
- data/lib/icontrol/global_lb.rb +22 -3
- data/lib/icontrol/global_lb/application.rb +63 -44
- data/lib/icontrol/global_lb/data_center.rb +82 -58
- data/lib/icontrol/global_lb/dnssec_key.rb +152 -90
- data/lib/icontrol/global_lb/dnssec_zone.rb +55 -35
- data/lib/icontrol/global_lb/globals.rb +662 -430
- data/lib/icontrol/global_lb/link.rb +181 -131
- data/lib/icontrol/global_lb/monitor.rb +174 -104
- data/lib/icontrol/global_lb/pool.rb +290 -203
- data/lib/icontrol/global_lb/pool_member.rb +118 -71
- data/lib/icontrol/global_lb/region.rb +37 -25
- data/lib/icontrol/global_lb/rule.rb +53 -37
- data/lib/icontrol/global_lb/server.rb +176 -124
- data/lib/icontrol/global_lb/topology.rb +41 -27
- data/lib/icontrol/global_lb/virtual_server.rb +118 -84
- data/lib/icontrol/global_lb/wide_ip.rb +168 -117
- data/lib/icontrol/local_lb.rb +81 -10
- data/lib/icontrol/local_lb/klass.rb +233 -153
- data/lib/icontrol/local_lb/monitor.rb +158 -96
- data/lib/icontrol/local_lb/nat.rb +74 -52
- data/lib/icontrol/local_lb/node_address.rb +123 -86
- data/lib/icontrol/local_lb/pool.rb +229 -164
- data/lib/icontrol/local_lb/pool_member.rb +134 -76
- data/lib/icontrol/local_lb/profile_auth.rb +103 -75
- data/lib/icontrol/local_lb/profile_client_ssl.rb +284 -201
- data/lib/icontrol/local_lb/profile_diameter.rb +113 -71
- data/lib/icontrol/local_lb/profile_dns.rb +65 -46
- data/lib/icontrol/local_lb/profile_fast_http.rb +265 -178
- data/lib/icontrol/local_lb/profile_fast_l4.rb +283 -194
- data/lib/icontrol/local_lb/profile_ftp.rb +81 -58
- data/lib/icontrol/local_lb/profile_http.rb +701 -433
- data/lib/icontrol/local_lb/profile_http_class.rb +169 -121
- data/lib/icontrol/local_lb/profile_iiop.rb +87 -63
- data/lib/icontrol/local_lb/profile_one_connect.rb +99 -71
- data/lib/icontrol/local_lb/profile_persistence.rb +326 -203
- data/lib/icontrol/local_lb/profile_radius.rb +94 -62
- data/lib/icontrol/local_lb/profile_rtsp.rb +207 -129
- data/lib/icontrol/local_lb/profile_sctp.rb +231 -167
- data/lib/icontrol/local_lb/profile_server_ssl.rb +268 -189
- data/lib/icontrol/local_lb/profile_sip.rb +145 -99
- data/lib/icontrol/local_lb/profile_stream.rb +71 -51
- data/lib/icontrol/local_lb/profile_tcp.rb +455 -296
- data/lib/icontrol/local_lb/profile_udp.rb +109 -78
- data/lib/icontrol/local_lb/profile_user_statistic.rb +77 -46
- data/lib/icontrol/local_lb/profile_xml.rb +116 -79
- data/lib/icontrol/local_lb/ram_cache_information.rb +43 -20
- data/lib/icontrol/local_lb/rate_class.rb +523 -318
- data/lib/icontrol/local_lb/rule.rb +53 -37
- data/lib/icontrol/local_lb/snat.rb +96 -65
- data/lib/icontrol/local_lb/snat_pool.rb +54 -39
- data/lib/icontrol/local_lb/snat_pool_member.rb +22 -15
- data/lib/icontrol/local_lb/snat_translation_address.rb +94 -69
- data/lib/icontrol/local_lb/virtual_address.rb +99 -70
- data/lib/icontrol/local_lb/virtual_server.rb +358 -243
- data/lib/icontrol/lt_config.rb +8 -1
- data/lib/icontrol/lt_config/field.rb +87 -53
- data/lib/icontrol/lt_config/klass.rb +59 -43
- data/lib/icontrol/management.rb +80 -38
- data/lib/icontrol/management/ccldap_configuration.rb +218 -144
- data/lib/icontrol/management/change_control.rb +67 -41
- data/lib/icontrol/management/crldp_configuration.rb +73 -52
- data/lib/icontrol/management/crldp_server.rb +55 -39
- data/lib/icontrol/management/db_variable.rb +32 -21
- data/lib/icontrol/management/event_notification.rb +19 -8
- data/lib/icontrol/management/event_subscription.rb +121 -74
- data/lib/icontrol/management/key_certificate.rb +235 -138
- data/lib/icontrol/management/ldap_configuration.rb +249 -179
- data/lib/icontrol/management/license_administration.rb +97 -56
- data/lib/icontrol/management/named.rb +103 -67
- data/lib/icontrol/management/ocsp_configuration.rb +33 -24
- data/lib/icontrol/management/ocsp_responder.rb +294 -165
- data/lib/icontrol/management/partition.rb +42 -23
- data/lib/icontrol/management/provision.rb +73 -39
- data/lib/icontrol/management/radius_configuration.rb +85 -57
- data/lib/icontrol/management/radius_server.rb +51 -37
- data/lib/icontrol/management/resource_record.rb +163 -121
- data/lib/icontrol/management/snmp_configuration.rb +675 -390
- data/lib/icontrol/management/tacacs_configuration.rb +99 -67
- data/lib/icontrol/management/tmos_module.rb +20 -8
- data/lib/icontrol/management/user_management.rb +198 -124
- data/lib/icontrol/management/view.rb +33 -24
- data/lib/icontrol/management/zone.rb +49 -34
- data/lib/icontrol/management/zone_runner.rb +11 -7
- data/lib/icontrol/networking.rb +31 -4
- data/lib/icontrol/networking/admin_ip.rb +92 -71
- data/lib/icontrol/networking/arp.rb +41 -28
- data/lib/icontrol/networking/i_session_advertised_route.rb +47 -32
- data/lib/icontrol/networking/i_session_local_interface.rb +72 -52
- data/lib/icontrol/networking/i_session_peer_discovery.rb +105 -68
- data/lib/icontrol/networking/i_session_remote_interface.rb +105 -76
- data/lib/icontrol/networking/interfaces.rb +241 -142
- data/lib/icontrol/networking/packet_filter.rb +111 -69
- data/lib/icontrol/networking/packet_filter_globals.rb +39 -28
- data/lib/icontrol/networking/port_mirror.rb +39 -27
- data/lib/icontrol/networking/profile_gre.rb +63 -41
- data/lib/icontrol/networking/profile_ipip.rb +38 -25
- data/lib/icontrol/networking/profile_wccpgre.rb +85 -55
- data/lib/icontrol/networking/route_domain.rb +70 -44
- data/lib/icontrol/networking/route_table.rb +128 -91
- data/lib/icontrol/networking/self_ip.rb +57 -39
- data/lib/icontrol/networking/self_ip_port_lockdown.rb +34 -22
- data/lib/icontrol/networking/stp_globals.rb +115 -63
- data/lib/icontrol/networking/stp_instance.rb +166 -68
- data/lib/icontrol/networking/trunk.rb +165 -101
- data/lib/icontrol/networking/tunnel.rb +77 -52
- data/lib/icontrol/networking/vlan.rb +140 -98
- data/lib/icontrol/networking/vlan_group.rb +145 -101
- data/lib/icontrol/system.rb +70 -33
- data/lib/icontrol/system/cluster.rb +103 -81
- data/lib/icontrol/system/config_sync.rb +128 -72
- data/lib/icontrol/system/connections.rb +27 -17
- data/lib/icontrol/system/disk.rb +134 -67
- data/lib/icontrol/system/failover.rb +44 -27
- data/lib/icontrol/system/geo_ip.rb +16 -5
- data/lib/icontrol/system/inet.rb +47 -30
- data/lib/icontrol/system/internal.rb +13 -9
- data/lib/icontrol/system/services.rb +75 -42
- data/lib/icontrol/system/software_management.rb +132 -83
- data/lib/icontrol/system/statistics.rb +443 -298
- data/lib/icontrol/system/system_info.rb +137 -95
- data/lib/icontrol/web_accelerator/applications.rb +17 -10
- data/lib/icontrol/web_accelerator/policies.rb +13 -9
- data/lib/icontrol/web_accelerator/proxy_message.rb +11 -7
- data/spec/icontrol/local_lb/pool_member_spec.rb +495 -0
- data/spec/icontrol/local_lb/profile_http_class_spec.rb +514 -0
- metadata +10 -4
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
module IControl::Management
|
|
2
2
|
##
|
|
3
|
-
# The LicenseAdministration interface exposes methods that enable you to authorize
|
|
3
|
+
# The LicenseAdministration interface exposes methods that enable you to authorize
|
|
4
|
+
# the system, either manually or in an automated fashion. This interface allows you
|
|
5
|
+
# to generate license files, install previously generated licenses, and view other
|
|
6
|
+
# licensing characteristics.
|
|
4
7
|
class LicenseAdministration < IControl::Base
|
|
5
8
|
|
|
6
9
|
set_id_name "modules"
|
|
@@ -9,12 +12,16 @@ module IControl::Management
|
|
|
9
12
|
class ModuleExpiry < IControl::Base::Struct; end
|
|
10
13
|
class ModuleKey < IControl::Base::Struct; end
|
|
11
14
|
class ModuleKeyTimeLimits < IControl::Base::Struct; end
|
|
12
|
-
class TimeLimitedModuleKey < IControl::Base::Struct; end
|
|
15
|
+
class TimeLimitedModuleKey < IControl::Base::Struct; end
|
|
16
|
+
class ModuleExpirySequence < IControl::Base::Sequence ; end
|
|
17
|
+
class ModuleKeySequence < IControl::Base::Sequence ; end
|
|
18
|
+
class TimeLimitedModuleKeySequence < IControl::Base::Sequence ; end ##
|
|
13
19
|
# Checks to see if this registration keys will pass the CRC validation.
|
|
20
|
+
# @rspec_example
|
|
14
21
|
# @return [boolean]
|
|
15
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
16
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
17
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
22
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
23
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
24
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
18
25
|
# @param [Hash] opts
|
|
19
26
|
# @option opts [String] :registration_keys The list of registration keys to do a CRC check.
|
|
20
27
|
def check_registration_key_crc(opts)
|
|
@@ -24,100 +31,123 @@ module IControl::Management
|
|
|
24
31
|
|
|
25
32
|
##
|
|
26
33
|
# Retrieves the copyright file.
|
|
34
|
+
# @rspec_example
|
|
27
35
|
# @return [char]
|
|
28
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
29
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
30
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
36
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
37
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
38
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
31
39
|
def copyright_file
|
|
32
40
|
super
|
|
33
41
|
end
|
|
34
42
|
|
|
35
43
|
##
|
|
36
44
|
# Retrieves the EULA agreement file.
|
|
45
|
+
# @rspec_example
|
|
37
46
|
# @return [char]
|
|
38
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
39
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
40
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
47
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
48
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
49
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
41
50
|
def eula_file
|
|
42
51
|
super
|
|
43
52
|
end
|
|
44
53
|
|
|
45
54
|
##
|
|
46
55
|
# Gets information on when the evaluation license will expire.
|
|
56
|
+
# @rspec_example
|
|
47
57
|
# @return [EvaluationExpiration]
|
|
48
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
49
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
50
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
58
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
59
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
60
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
51
61
|
def evaluation_license_expiration
|
|
52
62
|
super
|
|
53
63
|
end
|
|
54
64
|
|
|
55
65
|
##
|
|
56
66
|
# Checks to see whether the device has been licensed.
|
|
67
|
+
# @rspec_example
|
|
57
68
|
# @return [EnabledState]
|
|
58
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
59
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
60
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
69
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
70
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
71
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
61
72
|
def license_activation_status
|
|
62
73
|
super
|
|
63
74
|
end
|
|
64
75
|
|
|
65
76
|
##
|
|
66
77
|
# Retrieves the active license file.
|
|
78
|
+
# @rspec_example
|
|
67
79
|
# @return [char]
|
|
68
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
69
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
70
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
80
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
81
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
82
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
71
83
|
def license_file
|
|
72
84
|
super
|
|
73
85
|
end
|
|
74
86
|
|
|
75
87
|
##
|
|
76
|
-
# Gets information indicating whether the given module are enabled in the license.
|
|
88
|
+
# Gets information indicating whether the given module are enabled in the license.
|
|
89
|
+
# Caution! This enabled state is what is specified in the license for the module without
|
|
90
|
+
# regard for whether the module is provisionable or provisioned under this hardware
|
|
91
|
+
# and configuration. See the Provision interface.
|
|
92
|
+
# @rspec_example
|
|
77
93
|
# @return [EnabledState]
|
|
78
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
79
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
80
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
94
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
95
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
96
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
81
97
|
def module_enabled_state
|
|
82
98
|
super
|
|
83
99
|
end
|
|
84
100
|
|
|
85
101
|
##
|
|
86
|
-
# Gets information about expiry of the given module. Caution! The expiry information
|
|
102
|
+
# Gets information about expiry of the given module. Caution! The expiry information
|
|
103
|
+
# does not indicate whether a module is provisionable or provisioned. See the Provision
|
|
104
|
+
# interface. Note: This returns the enabled state as well. When getting the module
|
|
105
|
+
# expiry information, we suggest making use of the enabled state returned here rather
|
|
106
|
+
# than getting enabled state separately.
|
|
107
|
+
# @rspec_example
|
|
87
108
|
# @return [ModuleExpiry]
|
|
88
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
89
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
90
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
109
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
110
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
111
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
91
112
|
def module_expiry
|
|
92
113
|
super
|
|
93
114
|
end
|
|
94
115
|
|
|
95
116
|
##
|
|
96
|
-
# Gets the module keys used to license the device, including descriptive information
|
|
117
|
+
# Gets the module keys used to license the device, including descriptive information
|
|
118
|
+
# about them. You will get active and inactive keys (and the record has a field describing
|
|
119
|
+
# whether it is active). See also get_time_limited_module_keys.
|
|
120
|
+
# @rspec_example
|
|
97
121
|
# @return [ModuleKey]
|
|
98
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
99
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
100
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
122
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
123
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
124
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
101
125
|
def module_keys
|
|
102
126
|
super
|
|
103
127
|
end
|
|
104
128
|
|
|
105
129
|
##
|
|
106
|
-
# Gets the list of registration keys used to license the device. This returns the base
|
|
130
|
+
# Gets the list of registration keys used to license the device. This returns the base
|
|
131
|
+
# key first, then add-on keys. As of v10.0.0, there are new add-on keys that are time
|
|
132
|
+
# limited; with this method you can tell they are there but not when they expire. If
|
|
133
|
+
# that matters, you should use the newer method get_time_limited_module_keys. All of
|
|
134
|
+
# the keys returned are active keys.
|
|
135
|
+
# @rspec_example
|
|
107
136
|
# @return [String]
|
|
108
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
109
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
110
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
137
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
138
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
139
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
111
140
|
def registration_keys
|
|
112
141
|
super
|
|
113
142
|
end
|
|
114
143
|
|
|
115
144
|
##
|
|
116
145
|
# Gets the kernel dossier based on this registration keys.
|
|
146
|
+
# @rspec_example
|
|
117
147
|
# @return [String]
|
|
118
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
119
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
120
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
148
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
149
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
150
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
121
151
|
# @param [Hash] opts
|
|
122
152
|
# @option opts [String] :registration_keys The list of registration keys used to get the kernel dossier.
|
|
123
153
|
def system_dossier(opts)
|
|
@@ -126,17 +156,21 @@ module IControl::Management
|
|
|
126
156
|
end
|
|
127
157
|
|
|
128
158
|
##
|
|
129
|
-
# Gets the time limited module keys used to license the device, including descriptive
|
|
159
|
+
# Gets the time limited module keys used to license the device, including descriptive
|
|
160
|
+
# information about them. You will get active and inactive keys (and the record has
|
|
161
|
+
# a field describing whether it is active).
|
|
162
|
+
# @rspec_example
|
|
130
163
|
# @return [TimeLimitedModuleKey]
|
|
131
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
132
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
133
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
164
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
165
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
166
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
134
167
|
def time_limited_module_keys
|
|
135
168
|
super
|
|
136
169
|
end
|
|
137
170
|
|
|
138
171
|
##
|
|
139
172
|
# Gets the version information for this interface.
|
|
173
|
+
# @rspec_example
|
|
140
174
|
# @return [String]
|
|
141
175
|
def version
|
|
142
176
|
super
|
|
@@ -144,9 +178,10 @@ module IControl::Management
|
|
|
144
178
|
|
|
145
179
|
##
|
|
146
180
|
# Installs and authorizes the device using this stream of license file data.
|
|
147
|
-
# @
|
|
148
|
-
# @raise [IControl::Common::
|
|
149
|
-
# @raise [IControl::Common::
|
|
181
|
+
# @rspec_example
|
|
182
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
183
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
184
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
150
185
|
# @param [Hash] opts
|
|
151
186
|
# @option opts [char] :license_file_data The license file data.
|
|
152
187
|
def install_license(opts)
|
|
@@ -156,9 +191,10 @@ module IControl::Management
|
|
|
156
191
|
|
|
157
192
|
##
|
|
158
193
|
# Installs and authorizes the device using this license file somewhere on the device.
|
|
159
|
-
# @
|
|
160
|
-
# @raise [IControl::Common::
|
|
161
|
-
# @raise [IControl::Common::
|
|
194
|
+
# @rspec_example
|
|
195
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
196
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
197
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
162
198
|
# @param [Hash] opts
|
|
163
199
|
# @option opts [String] :license_file The license file location.
|
|
164
200
|
def install_license_from_file(opts)
|
|
@@ -168,10 +204,11 @@ module IControl::Management
|
|
|
168
204
|
|
|
169
205
|
##
|
|
170
206
|
# Checks to see whether the device is running with an evaluation license.
|
|
207
|
+
# @rspec_example
|
|
171
208
|
# @return [boolean]
|
|
172
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
173
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
174
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
209
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
210
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
211
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
175
212
|
def is_evaluation_license
|
|
176
213
|
super
|
|
177
214
|
end
|
|
@@ -199,15 +236,17 @@ module IControl::Management
|
|
|
199
236
|
end
|
|
200
237
|
|
|
201
238
|
##
|
|
202
|
-
# A struct that describes a module key. Note: description fields in this structure
|
|
239
|
+
# A struct that describes a module key. Note: description fields in this structure
|
|
240
|
+
# are for information only and content in them is not guaranteed to remain constant.
|
|
241
|
+
# The primary programmatic use of this structure is to obtain license keys.
|
|
203
242
|
# @attr [String] description A description of the module.
|
|
204
243
|
# @attr [String] key The license key.
|
|
205
|
-
# @attr [
|
|
244
|
+
# @attr [StringSequence] child_description A sequence of strings giving child module descriptions.
|
|
206
245
|
# @attr [Object] active The key status (active or inactive).
|
|
207
246
|
class ModuleKey < IControl::Base::Struct
|
|
208
247
|
icontrol_attribute :description, String
|
|
209
248
|
icontrol_attribute :key, String
|
|
210
|
-
icontrol_attribute :child_description,
|
|
249
|
+
icontrol_attribute :child_description, StringSequence
|
|
211
250
|
icontrol_attribute :active, Object
|
|
212
251
|
end
|
|
213
252
|
|
|
@@ -223,7 +262,9 @@ module IControl::Management
|
|
|
223
262
|
end
|
|
224
263
|
|
|
225
264
|
##
|
|
226
|
-
# A struct that describes a time limited module key. Note: description fields in this
|
|
265
|
+
# A struct that describes a time limited module key. Note: description fields in this
|
|
266
|
+
# structure are for information only and content in them is not guaranteed to remain
|
|
267
|
+
# constant. The primary programmatic use of this structure is to obtain license keys.
|
|
227
268
|
# @attr [String] description A description of the module.
|
|
228
269
|
# @attr [String] key The license key.
|
|
229
270
|
# @attr [IControl::Management::LicenseAdministration::ModuleKeyTimeLimits] limits The time limits for the module key.
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
module IControl::Management
|
|
2
2
|
##
|
|
3
|
-
# The Named interface provides the calls to manipulate the named.conf and the named
|
|
3
|
+
# The Named interface provides the calls to manipulate the named.conf and the named
|
|
4
|
+
# server
|
|
4
5
|
class Named < IControl::Base
|
|
5
6
|
|
|
6
7
|
set_id_name "statements"
|
|
7
8
|
|
|
8
9
|
##
|
|
9
10
|
# Deletes the &quot;acl" statement specified by the statement names.
|
|
10
|
-
# @
|
|
11
|
-
# @raise [IControl::Common::
|
|
12
|
-
# @raise [IControl::Common::
|
|
11
|
+
# @rspec_example
|
|
12
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
13
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
14
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
13
15
|
# @param [Hash] opts
|
|
14
16
|
# @option opts [String] :statement_names The names of the acl Statements
|
|
15
17
|
def delete_acl_statement(opts)
|
|
@@ -18,19 +20,22 @@ module IControl::Management
|
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
##
|
|
21
|
-
# Deletes the &quot;controls" statement. There can only be one &quot;controls"
|
|
22
|
-
#
|
|
23
|
-
# @
|
|
24
|
-
# @raise [IControl::Common::
|
|
23
|
+
# Deletes the &quot;controls" statement. There can only be one &quot;controls"
|
|
24
|
+
# statement in the file.
|
|
25
|
+
# @rspec_example
|
|
26
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
27
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
28
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
25
29
|
def delete_controls_statement
|
|
26
30
|
super
|
|
27
31
|
end
|
|
28
32
|
|
|
29
33
|
##
|
|
30
34
|
# Deletes the &quot;include" statement.
|
|
31
|
-
# @
|
|
32
|
-
# @raise [IControl::Common::
|
|
33
|
-
# @raise [IControl::Common::
|
|
35
|
+
# @rspec_example
|
|
36
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
37
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
38
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
34
39
|
# @param [Hash] opts
|
|
35
40
|
# @option opts [String] :path_names The path_names for the include files
|
|
36
41
|
def delete_include_statement(opts)
|
|
@@ -40,9 +45,10 @@ module IControl::Management
|
|
|
40
45
|
|
|
41
46
|
##
|
|
42
47
|
# Deletes this &quot;key" statement.
|
|
43
|
-
# @
|
|
44
|
-
# @raise [IControl::Common::
|
|
45
|
-
# @raise [IControl::Common::
|
|
48
|
+
# @rspec_example
|
|
49
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
50
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
51
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
46
52
|
# @param [Hash] opts
|
|
47
53
|
# @option opts [String] :statement_names The names of the statements to delete
|
|
48
54
|
def delete_key_statement(opts)
|
|
@@ -51,28 +57,33 @@ module IControl::Management
|
|
|
51
57
|
end
|
|
52
58
|
|
|
53
59
|
##
|
|
54
|
-
# Deletes an &quot;logging" statement. There can only be one &quot;logging"
|
|
55
|
-
#
|
|
56
|
-
# @
|
|
57
|
-
# @raise [IControl::Common::
|
|
60
|
+
# Deletes an &quot;logging" statement. There can only be one &quot;logging"
|
|
61
|
+
# statement in the file.
|
|
62
|
+
# @rspec_example
|
|
63
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
64
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
65
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
58
66
|
def delete_logging_statement
|
|
59
67
|
super
|
|
60
68
|
end
|
|
61
69
|
|
|
62
70
|
##
|
|
63
|
-
# Deletes the &quot;options" statement. There can only be one &quot;options"
|
|
64
|
-
#
|
|
65
|
-
# @
|
|
66
|
-
# @raise [IControl::Common::
|
|
71
|
+
# Deletes the &quot;options" statement. There can only be one &quot;options"
|
|
72
|
+
# statement in the file.
|
|
73
|
+
# @rspec_example
|
|
74
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
75
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
76
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
67
77
|
def delete_options_statement
|
|
68
78
|
super
|
|
69
79
|
end
|
|
70
80
|
|
|
71
81
|
##
|
|
72
82
|
# Deletes the &quot;server" statement.
|
|
73
|
-
# @
|
|
74
|
-
# @raise [IControl::Common::
|
|
75
|
-
# @raise [IControl::Common::
|
|
83
|
+
# @rspec_example
|
|
84
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
85
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
86
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
76
87
|
# @param [Hash] opts
|
|
77
88
|
# @option opts [String] :statement_names The statements to delete.
|
|
78
89
|
def delete_server_statement(opts)
|
|
@@ -81,55 +92,67 @@ module IControl::Management
|
|
|
81
92
|
end
|
|
82
93
|
|
|
83
94
|
##
|
|
84
|
-
# Deletes an &quot;trusted_keys" statement. There can only be one &quot;trusted_keys"
|
|
85
|
-
#
|
|
86
|
-
# @
|
|
87
|
-
# @raise [IControl::Common::
|
|
95
|
+
# Deletes an &quot;trusted_keys" statement. There can only be one &quot;trusted_keys"
|
|
96
|
+
# statement in the file.
|
|
97
|
+
# @rspec_example
|
|
98
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
99
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
100
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
88
101
|
def delete_trusted_keys_statement
|
|
89
102
|
super
|
|
90
103
|
end
|
|
91
104
|
|
|
92
105
|
##
|
|
93
106
|
# Get the version of bind (named) running on the server as a string
|
|
107
|
+
# @rspec_example
|
|
94
108
|
# @return [String]
|
|
95
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
96
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
97
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
109
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
110
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
111
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
98
112
|
def bind_version
|
|
99
113
|
super
|
|
100
114
|
end
|
|
101
115
|
|
|
102
116
|
##
|
|
103
|
-
# Gets the entire contents of the named.conf file in a sequence of strings, one per
|
|
117
|
+
# Gets the entire contents of the named.conf file in a sequence of strings, one per
|
|
118
|
+
# line.
|
|
119
|
+
# @rspec_example
|
|
104
120
|
# @return [String]
|
|
105
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
106
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
107
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
121
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
122
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
123
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
108
124
|
def named_configuration_file
|
|
109
125
|
super
|
|
110
126
|
end
|
|
111
127
|
|
|
112
128
|
##
|
|
113
129
|
# Gets the version information for this interface.
|
|
130
|
+
# @rspec_example
|
|
114
131
|
# @return [String]
|
|
115
132
|
def version
|
|
116
133
|
super
|
|
117
134
|
end
|
|
118
135
|
|
|
119
136
|
##
|
|
120
|
-
# Adds the new &quot;acl name" statement if they do not already exist. If the &quot;acl
|
|
121
|
-
#
|
|
122
|
-
#
|
|
123
|
-
# @
|
|
137
|
+
# Adds the new &quot;acl name" statement if they do not already exist. If the &quot;acl
|
|
138
|
+
# name" statement already exists, it will delete the existing statement and replace
|
|
139
|
+
# it with this one.
|
|
140
|
+
# @rspec_example
|
|
141
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
142
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
143
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
124
144
|
def set_acl_statement
|
|
125
145
|
super
|
|
126
146
|
end
|
|
127
147
|
|
|
128
148
|
##
|
|
129
|
-
# Sets the &quot;controls" statement. If there is no existing controls statement,
|
|
130
|
-
#
|
|
131
|
-
#
|
|
132
|
-
# @
|
|
149
|
+
# Sets the &quot;controls" statement. If there is no existing controls statement,
|
|
150
|
+
# one is added. If one exists, it is deleted and replaced with this new one. There
|
|
151
|
+
# can only be one &quot;controls" statement in the file.
|
|
152
|
+
# @rspec_example
|
|
153
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
154
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
155
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
133
156
|
# @param [Hash] opts
|
|
134
157
|
# @option opts [IControl::Management::StatementDefinition] :statement The "controls" statement definition.
|
|
135
158
|
def set_controls_statement(opts)
|
|
@@ -139,27 +162,33 @@ module IControl::Management
|
|
|
139
162
|
|
|
140
163
|
##
|
|
141
164
|
# Adds this &quot;include" statement
|
|
142
|
-
# @
|
|
143
|
-
# @raise [IControl::Common::
|
|
144
|
-
# @raise [IControl::Common::
|
|
165
|
+
# @rspec_example
|
|
166
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
167
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
168
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
145
169
|
def set_include_statement
|
|
146
170
|
super
|
|
147
171
|
end
|
|
148
172
|
|
|
149
173
|
##
|
|
150
|
-
# Sets the &quot;key" statement. If a key statement with this name already exists,
|
|
151
|
-
#
|
|
152
|
-
# @
|
|
153
|
-
# @raise [IControl::Common::
|
|
174
|
+
# Sets the &quot;key" statement. If a key statement with this name already exists,
|
|
175
|
+
# it is deleted and the new one is added. Otherwise the key statement will be added.
|
|
176
|
+
# @rspec_example
|
|
177
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
178
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
179
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
154
180
|
def set_key_statement
|
|
155
181
|
super
|
|
156
182
|
end
|
|
157
183
|
|
|
158
184
|
##
|
|
159
|
-
# Sets a new &quot;logging" statement. If the logging statement exists, it is deleted
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
# @
|
|
185
|
+
# Sets a new &quot;logging" statement. If the logging statement exists, it is deleted
|
|
186
|
+
# and replaced with the new statement. If there is no logging statement, this one is
|
|
187
|
+
# added. There can only be one &quot;logging" statement in the file.
|
|
188
|
+
# @rspec_example
|
|
189
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
190
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
191
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
163
192
|
# @param [Hash] opts
|
|
164
193
|
# @option opts [IControl::Management::StatementDefinition] :statement The statement definition.
|
|
165
194
|
def set_logging_statement(opts)
|
|
@@ -168,10 +197,13 @@ module IControl::Management
|
|
|
168
197
|
end
|
|
169
198
|
|
|
170
199
|
##
|
|
171
|
-
# If there is an existing &quot;options" statement, it is replaced with this statement.
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
# @
|
|
200
|
+
# If there is an existing &quot;options" statement, it is replaced with this statement.
|
|
201
|
+
# If there is no existing &quot;options" statement, this new one is added. There
|
|
202
|
+
# can only be one &quot;options" statement in the file.
|
|
203
|
+
# @rspec_example
|
|
204
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
205
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
206
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
175
207
|
# @param [Hash] opts
|
|
176
208
|
# @option opts [IControl::Management::StatementDefinition] :statement The statement definition.
|
|
177
209
|
def set_options_statement(opts)
|
|
@@ -180,19 +212,23 @@ module IControl::Management
|
|
|
180
212
|
end
|
|
181
213
|
|
|
182
214
|
##
|
|
183
|
-
# Adds the new &quot;server" statement if they do not exist. If they exist, these
|
|
184
|
-
#
|
|
185
|
-
# @
|
|
186
|
-
# @raise [IControl::Common::
|
|
215
|
+
# Adds the new &quot;server" statement if they do not exist. If they exist, these
|
|
216
|
+
# statement will replace them.
|
|
217
|
+
# @rspec_example
|
|
218
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
219
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
220
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
187
221
|
def set_server_statement
|
|
188
222
|
super
|
|
189
223
|
end
|
|
190
224
|
|
|
191
225
|
##
|
|
192
|
-
# Adds a new &quot;trusted-keys" statement or replaces the existing one. There
|
|
193
|
-
#
|
|
194
|
-
# @
|
|
195
|
-
# @raise [IControl::Common::
|
|
226
|
+
# Adds a new &quot;trusted-keys" statement or replaces the existing one. There
|
|
227
|
+
# can only be one &quot;trusted_keys" statement in the file.
|
|
228
|
+
# @rspec_example
|
|
229
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
230
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
231
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
196
232
|
# @param [Hash] opts
|
|
197
233
|
# @option opts [IControl::Management::StatementDefinition] :statement The statement definition.
|
|
198
234
|
def set_trusted_keys_statement(opts)
|