fog-openstack 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/docs/orchestration.md +23 -0
  3. data/examples/event/basics.rb +22 -0
  4. data/gemfiles/Gemfile-1.9 +1 -0
  5. data/lib/fog/compute/openstack.rb +28 -2
  6. data/lib/fog/compute/openstack/models/os_interface.rb +15 -0
  7. data/lib/fog/compute/openstack/models/os_interfaces.rb +28 -0
  8. data/lib/fog/compute/openstack/models/server.rb +5 -0
  9. data/lib/fog/compute/openstack/requests/create_os_interface.rb +42 -0
  10. data/lib/fog/compute/openstack/requests/delete_key_pair.rb +1 -1
  11. data/lib/fog/compute/openstack/requests/delete_os_interface.rb +24 -0
  12. data/lib/fog/compute/openstack/requests/get_hypervisor.rb +64 -0
  13. data/lib/fog/compute/openstack/requests/get_key_pair.rb +1 -1
  14. data/lib/fog/compute/openstack/requests/get_os_interface.rb +24 -0
  15. data/lib/fog/compute/openstack/requests/list_hypervisor_servers.rb +42 -0
  16. data/lib/fog/compute/openstack/requests/list_hypervisors.rb +27 -0
  17. data/lib/fog/compute/openstack/requests/list_hypervisors_detail.rb +71 -0
  18. data/lib/fog/compute/openstack/requests/list_os_interfaces.rb +24 -0
  19. data/lib/fog/dns/openstack/v2/requests/create_zone.rb +1 -1
  20. data/lib/fog/event/openstack.rb +120 -0
  21. data/lib/fog/event/openstack/models/event.rb +16 -0
  22. data/lib/fog/event/openstack/models/events.rb +23 -0
  23. data/lib/fog/event/openstack/requests/get_event.rb +27 -0
  24. data/lib/fog/event/openstack/requests/list_events.rb +42 -0
  25. data/lib/fog/identity/openstack/v3/models/domains.rb +23 -11
  26. data/lib/fog/key_manager/openstack.rb +1 -1
  27. data/lib/fog/metering/openstack.rb +1 -0
  28. data/lib/fog/network/openstack.rb +10 -0
  29. data/lib/fog/network/openstack/models/subnet_pool.rb +47 -0
  30. data/lib/fog/network/openstack/models/subnet_pools.rb +33 -0
  31. data/lib/fog/network/openstack/requests/create_subnet_pool.rb +56 -0
  32. data/lib/fog/network/openstack/requests/delete_subnet_pool.rb +28 -0
  33. data/lib/fog/network/openstack/requests/get_subnet_pool.rb +29 -0
  34. data/lib/fog/network/openstack/requests/list_subnet_pools.rb +25 -0
  35. data/lib/fog/network/openstack/requests/update_subnet_pool.rb +46 -0
  36. data/lib/fog/openstack.rb +90 -68
  37. data/lib/fog/openstack/core.rb +53 -7
  38. data/lib/fog/openstack/version.rb +1 -1
  39. data/lib/fog/shared_file_system/openstack.rb +51 -8
  40. data/lib/fog/shared_file_system/openstack/models/share.rb +28 -0
  41. data/lib/fog/shared_file_system/openstack/models/share_access_rule.rb +35 -0
  42. data/lib/fog/shared_file_system/openstack/models/share_access_rules.rb +30 -0
  43. data/lib/fog/shared_file_system/openstack/requests/extend_share.rb +24 -0
  44. data/lib/fog/shared_file_system/openstack/requests/get_limits.rb +45 -0
  45. data/lib/fog/shared_file_system/openstack/requests/get_quota.rb +26 -0
  46. data/lib/fog/shared_file_system/openstack/requests/grant_share_access.rb +34 -0
  47. data/lib/fog/shared_file_system/openstack/requests/list_share_access_rules.rb +29 -0
  48. data/lib/fog/shared_file_system/openstack/requests/revoke_share_access.rb +24 -0
  49. data/lib/fog/shared_file_system/openstack/requests/share_action.rb +16 -0
  50. data/lib/fog/shared_file_system/openstack/requests/shrink_share.rb +24 -0
  51. data/lib/fog/shared_file_system/openstack/requests/update_quota.rb +30 -0
  52. metadata +36 -2
@@ -0,0 +1,30 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def update_quota(project_id, options = {})
6
+ request(
7
+ :body => Fog::JSON.encode('quota_set' => options),
8
+ :expects => 200,
9
+ :method => 'PUT',
10
+ :path => "#{action_prefix}quota-sets/#{project_id}"
11
+ )
12
+ end
13
+ end
14
+
15
+ class Mock
16
+ def update_quota(project_id, options = {})
17
+ # stringify keys
18
+ options = Hash[options.map { |k, v| [k.to_s, v] }]
19
+ data[:quota_updated] = data[:quota].merge(options)
20
+ data[:quota_updated]['id'] = project_id
21
+
22
+ response = Excon::Response.new
23
+ response.status = 200
24
+ response.body = {'quota_set' => data[:quota_updated]}
25
+ response
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -231,6 +231,7 @@ files:
231
231
  - examples/compute/basics.rb
232
232
  - examples/compute/block_device_mapping_v2.rb
233
233
  - examples/container_infra/basics.rb
234
+ - examples/event/basics.rb
234
235
  - examples/identity/basics.rb
235
236
  - examples/identity/basics_v3.rb
236
237
  - examples/image/upload-test-image.rb
@@ -299,6 +300,8 @@ files:
299
300
  - lib/fog/compute/openstack/models/metadatum.rb
300
301
  - lib/fog/compute/openstack/models/network.rb
301
302
  - lib/fog/compute/openstack/models/networks.rb
303
+ - lib/fog/compute/openstack/models/os_interface.rb
304
+ - lib/fog/compute/openstack/models/os_interfaces.rb
302
305
  - lib/fog/compute/openstack/models/security_group.rb
303
306
  - lib/fog/compute/openstack/models/security_group_rule.rb
304
307
  - lib/fog/compute/openstack/models/security_group_rules.rb
@@ -332,6 +335,7 @@ files:
332
335
  - lib/fog/compute/openstack/requests/create_flavor_metadata.rb
333
336
  - lib/fog/compute/openstack/requests/create_image.rb
334
337
  - lib/fog/compute/openstack/requests/create_key_pair.rb
338
+ - lib/fog/compute/openstack/requests/create_os_interface.rb
335
339
  - lib/fog/compute/openstack/requests/create_security_group.rb
336
340
  - lib/fog/compute/openstack/requests/create_security_group_rule.rb
337
341
  - lib/fog/compute/openstack/requests/create_server.rb
@@ -345,6 +349,7 @@ files:
345
349
  - lib/fog/compute/openstack/requests/delete_key_pair.rb
346
350
  - lib/fog/compute/openstack/requests/delete_meta.rb
347
351
  - lib/fog/compute/openstack/requests/delete_metadata.rb
352
+ - lib/fog/compute/openstack/requests/delete_os_interface.rb
348
353
  - lib/fog/compute/openstack/requests/delete_security_group.rb
349
354
  - lib/fog/compute/openstack/requests/delete_security_group_rule.rb
350
355
  - lib/fog/compute/openstack/requests/delete_server.rb
@@ -364,11 +369,13 @@ files:
364
369
  - lib/fog/compute/openstack/requests/get_flavor_details.rb
365
370
  - lib/fog/compute/openstack/requests/get_flavor_metadata.rb
366
371
  - lib/fog/compute/openstack/requests/get_host_details.rb
372
+ - lib/fog/compute/openstack/requests/get_hypervisor.rb
367
373
  - lib/fog/compute/openstack/requests/get_hypervisor_statistics.rb
368
374
  - lib/fog/compute/openstack/requests/get_image_details.rb
369
375
  - lib/fog/compute/openstack/requests/get_key_pair.rb
370
376
  - lib/fog/compute/openstack/requests/get_limits.rb
371
377
  - lib/fog/compute/openstack/requests/get_metadata.rb
378
+ - lib/fog/compute/openstack/requests/get_os_interface.rb
372
379
  - lib/fog/compute/openstack/requests/get_quota.rb
373
380
  - lib/fog/compute/openstack/requests/get_quota_defaults.rb
374
381
  - lib/fog/compute/openstack/requests/get_security_group.rb
@@ -389,10 +396,14 @@ files:
389
396
  - lib/fog/compute/openstack/requests/list_flavors.rb
390
397
  - lib/fog/compute/openstack/requests/list_flavors_detail.rb
391
398
  - lib/fog/compute/openstack/requests/list_hosts.rb
399
+ - lib/fog/compute/openstack/requests/list_hypervisor_servers.rb
400
+ - lib/fog/compute/openstack/requests/list_hypervisors.rb
401
+ - lib/fog/compute/openstack/requests/list_hypervisors_detail.rb
392
402
  - lib/fog/compute/openstack/requests/list_images.rb
393
403
  - lib/fog/compute/openstack/requests/list_images_detail.rb
394
404
  - lib/fog/compute/openstack/requests/list_key_pairs.rb
395
405
  - lib/fog/compute/openstack/requests/list_metadata.rb
406
+ - lib/fog/compute/openstack/requests/list_os_interfaces.rb
396
407
  - lib/fog/compute/openstack/requests/list_private_addresses.rb
397
408
  - lib/fog/compute/openstack/requests/list_public_addresses.rb
398
409
  - lib/fog/compute/openstack/requests/list_security_groups.rb
@@ -500,6 +511,11 @@ files:
500
511
  - lib/fog/dns/openstack/v2/requests/update_quota.rb
501
512
  - lib/fog/dns/openstack/v2/requests/update_recordset.rb
502
513
  - lib/fog/dns/openstack/v2/requests/update_zone.rb
514
+ - lib/fog/event/openstack.rb
515
+ - lib/fog/event/openstack/models/event.rb
516
+ - lib/fog/event/openstack/models/events.rb
517
+ - lib/fog/event/openstack/requests/get_event.rb
518
+ - lib/fog/event/openstack/requests/list_events.rb
503
519
  - lib/fog/identity/openstack.rb
504
520
  - lib/fog/identity/openstack/v2.rb
505
521
  - lib/fog/identity/openstack/v2/models/ec2_credential.rb
@@ -808,6 +824,8 @@ files:
808
824
  - lib/fog/network/openstack/models/security_group_rules.rb
809
825
  - lib/fog/network/openstack/models/security_groups.rb
810
826
  - lib/fog/network/openstack/models/subnet.rb
827
+ - lib/fog/network/openstack/models/subnet_pool.rb
828
+ - lib/fog/network/openstack/models/subnet_pools.rb
811
829
  - lib/fog/network/openstack/models/subnets.rb
812
830
  - lib/fog/network/openstack/models/vpn_service.rb
813
831
  - lib/fog/network/openstack/models/vpn_services.rb
@@ -834,6 +852,7 @@ files:
834
852
  - lib/fog/network/openstack/requests/create_security_group.rb
835
853
  - lib/fog/network/openstack/requests/create_security_group_rule.rb
836
854
  - lib/fog/network/openstack/requests/create_subnet.rb
855
+ - lib/fog/network/openstack/requests/create_subnet_pool.rb
837
856
  - lib/fog/network/openstack/requests/create_vpn_service.rb
838
857
  - lib/fog/network/openstack/requests/delete_floating_ip.rb
839
858
  - lib/fog/network/openstack/requests/delete_ike_policy.rb
@@ -856,6 +875,7 @@ files:
856
875
  - lib/fog/network/openstack/requests/delete_security_group.rb
857
876
  - lib/fog/network/openstack/requests/delete_security_group_rule.rb
858
877
  - lib/fog/network/openstack/requests/delete_subnet.rb
878
+ - lib/fog/network/openstack/requests/delete_subnet_pool.rb
859
879
  - lib/fog/network/openstack/requests/delete_vpn_service.rb
860
880
  - lib/fog/network/openstack/requests/disassociate_floating_ip.rb
861
881
  - lib/fog/network/openstack/requests/disassociate_lb_health_monitor.rb
@@ -883,6 +903,7 @@ files:
883
903
  - lib/fog/network/openstack/requests/get_security_group.rb
884
904
  - lib/fog/network/openstack/requests/get_security_group_rule.rb
885
905
  - lib/fog/network/openstack/requests/get_subnet.rb
906
+ - lib/fog/network/openstack/requests/get_subnet_pool.rb
886
907
  - lib/fog/network/openstack/requests/get_vpn_service.rb
887
908
  - lib/fog/network/openstack/requests/list_extensions.rb
888
909
  - lib/fog/network/openstack/requests/list_floating_ips.rb
@@ -904,6 +925,7 @@ files:
904
925
  - lib/fog/network/openstack/requests/list_routers.rb
905
926
  - lib/fog/network/openstack/requests/list_security_group_rules.rb
906
927
  - lib/fog/network/openstack/requests/list_security_groups.rb
928
+ - lib/fog/network/openstack/requests/list_subnet_pools.rb
907
929
  - lib/fog/network/openstack/requests/list_subnets.rb
908
930
  - lib/fog/network/openstack/requests/list_vpn_services.rb
909
931
  - lib/fog/network/openstack/requests/remove_router_interface.rb
@@ -927,6 +949,7 @@ files:
927
949
  - lib/fog/network/openstack/requests/update_router.rb
928
950
  - lib/fog/network/openstack/requests/update_security_group.rb
929
951
  - lib/fog/network/openstack/requests/update_subnet.rb
952
+ - lib/fog/network/openstack/requests/update_subnet_pool.rb
930
953
  - lib/fog/network/openstack/requests/update_vpn_service.rb
931
954
  - lib/fog/nfv/openstack.rb
932
955
  - lib/fog/nfv/openstack/models/vnf.rb
@@ -1000,6 +1023,8 @@ files:
1000
1023
  - lib/fog/shared_file_system/openstack/models/network.rb
1001
1024
  - lib/fog/shared_file_system/openstack/models/networks.rb
1002
1025
  - lib/fog/shared_file_system/openstack/models/share.rb
1026
+ - lib/fog/shared_file_system/openstack/models/share_access_rule.rb
1027
+ - lib/fog/shared_file_system/openstack/models/share_access_rules.rb
1003
1028
  - lib/fog/shared_file_system/openstack/models/shares.rb
1004
1029
  - lib/fog/shared_file_system/openstack/models/snapshot.rb
1005
1030
  - lib/fog/shared_file_system/openstack/models/snapshots.rb
@@ -1009,15 +1034,24 @@ files:
1009
1034
  - lib/fog/shared_file_system/openstack/requests/delete_share.rb
1010
1035
  - lib/fog/shared_file_system/openstack/requests/delete_share_network.rb
1011
1036
  - lib/fog/shared_file_system/openstack/requests/delete_snapshot.rb
1037
+ - lib/fog/shared_file_system/openstack/requests/extend_share.rb
1038
+ - lib/fog/shared_file_system/openstack/requests/get_limits.rb
1039
+ - lib/fog/shared_file_system/openstack/requests/get_quota.rb
1012
1040
  - lib/fog/shared_file_system/openstack/requests/get_share.rb
1013
1041
  - lib/fog/shared_file_system/openstack/requests/get_share_network.rb
1014
1042
  - lib/fog/shared_file_system/openstack/requests/get_snapshot.rb
1043
+ - lib/fog/shared_file_system/openstack/requests/grant_share_access.rb
1044
+ - lib/fog/shared_file_system/openstack/requests/list_share_access_rules.rb
1015
1045
  - lib/fog/shared_file_system/openstack/requests/list_share_networks.rb
1016
1046
  - lib/fog/shared_file_system/openstack/requests/list_share_networks_detail.rb
1017
1047
  - lib/fog/shared_file_system/openstack/requests/list_shares.rb
1018
1048
  - lib/fog/shared_file_system/openstack/requests/list_shares_detail.rb
1019
1049
  - lib/fog/shared_file_system/openstack/requests/list_snapshots.rb
1020
1050
  - lib/fog/shared_file_system/openstack/requests/list_snapshots_detail.rb
1051
+ - lib/fog/shared_file_system/openstack/requests/revoke_share_access.rb
1052
+ - lib/fog/shared_file_system/openstack/requests/share_action.rb
1053
+ - lib/fog/shared_file_system/openstack/requests/shrink_share.rb
1054
+ - lib/fog/shared_file_system/openstack/requests/update_quota.rb
1021
1055
  - lib/fog/shared_file_system/openstack/requests/update_share.rb
1022
1056
  - lib/fog/shared_file_system/openstack/requests/update_share_network.rb
1023
1057
  - lib/fog/shared_file_system/openstack/requests/update_snapshot.rb