@@ -6,20 +6,19 @@ class BlobstoreBenchmarksSchema < VCAP::Config
66 # rubocop:disable Metrics/BlockLength
77 define_schema do
88 blobstore_section = {
9- optional ( : blobstore_type) => String ,
10- optional ( : blobstore_provider) => String ,
9+ blobstore_type : String ,
10+ blobstore_provider : String ,
1111
12- optional ( :fog_connection ) => Hash ,
1312 optional ( :connection_config ) => Hash ,
14- optional ( :webdav_config ) => Hash ,
13+ optional ( :fog_connection ) => Hash ,
1514
16- optional ( : fog_aws_storage_options) => Hash ,
17- optional ( : fog_gcp_storage_options) => Hash ,
15+ fog_aws_storage_options : Hash ,
16+ fog_gcp_storage_options : Hash ,
1817
19- optional ( : resource_directory_key) => String ,
20- optional ( : buildpack_directory_key) => String ,
21- optional ( : app_package_directory_key) => String ,
22- optional ( : droplet_directory_key) => String ,
18+ resource_directory_key : String ,
19+ buildpack_directory_key : String ,
20+ app_package_directory_key : String ,
21+ droplet_directory_key : String ,
2322
2423 optional ( :maximum_size ) => Integer ,
2524 optional ( :minimum_size ) => Integer ,
@@ -29,30 +28,30 @@ class BlobstoreBenchmarksSchema < VCAP::Config
2928 }
3029
3130 {
32- optional ( : logging) => {
33- optional ( : level) => String ,
34- optional ( : file) => String ,
35- optional ( : syslog) => String ,
36- optional ( : stdout_sink_enabled) => bool
31+ logging : {
32+ level : String , # debug, info, etc.
33+ file : String , # Log file to use
34+ syslog : String , # Name to associate with syslog messages (should start with 'vcap.')
35+ stdout_sink_enabled : bool
3736 } ,
3837
3938 db : {
40- optional ( :database ) => Hash ,
41- optional ( :db_connection_string ) => String ,
42- optional ( :max_connections ) => Integer ,
43- optional ( :pool_timeout ) => Integer ,
44- optional ( :log_level ) => String ,
45- optional ( :log_db_queries ) => bool ,
46- optional ( :ssl_verify_hostname ) => bool ,
47- optional ( :connection_validation_timeout ) => Integer ,
39+ optional ( :database ) => Hash , # db connection hash for sequel\
40+ max_connections : Integer , # max connections in the connection pool
41+ pool_timeout : Integer , # timeout before raising an error when connection can't be established to the db
42+ log_level : String , # debug, info, etc.
43+ log_db_queries : bool ,
44+ ssl_verify_hostname : bool ,
45+ connection_validation_timeout : Integer ,
4846 optional ( :ca_cert_path ) => String
4947 } ,
50- optional ( :storage_cli_config_file_resource_pool ) => String ,
51- optional ( :storage_cli_config_file_buildpacks ) => String ,
52- optional ( :storage_cli_config_file_packages ) => String ,
53- optional ( :storage_cli_config_file_droplets ) => String ,
48+ storage_cli_config_file_resource_pool : String ,
49+ storage_cli_config_file_buildpacks : String ,
50+ storage_cli_config_file_packages : String ,
51+ storage_cli_config_file_droplets : String ,
52+
53+ db_encryption_key : enum ( String , NilClass ) ,
5454
55- optional ( :db_encryption_key ) => enum ( String , NilClass ) ,
5655 optional ( :database_encryption ) => {
5756 keys : Hash ,
5857 current_key_label : String ,
@@ -64,10 +63,10 @@ class BlobstoreBenchmarksSchema < VCAP::Config
6463 packages : blobstore_section ,
6564 droplets : blobstore_section ,
6665
67- optional ( : pid_filename) => String ,
68- optional ( : index) => Integer ,
69- optional ( : name) => String ,
70- optional ( : default_app_ssh_access) => bool
66+ pid_filename : String ,
67+ index : Integer , # Component index (cc-0, cc-1, etc)
68+ name : String , # Component name (api_z1, api_z2)
69+ default_app_ssh_access : bool ,
7170 }
7271 end
7372 # rubocop:enable Metrics/BlockLength
0 commit comments