fog-huaweicloud 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +13 -0
- data/.hound.yml +2 -0
- data/.rakeTasks +7 -0
- data/.rubocop.yml +110 -0
- data/.ruby-gemset +1 -0
- data/.travis.yml +32 -0
- data/CHANGELOG.md +47 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/CONTRIBUTING.md +18 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +1 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +44 -0
- data/fog-huaweicloud.gemspec +38 -0
- data/lib/fog/baremetal/huaweicloud/models/chassis.rb +49 -0
- data/lib/fog/baremetal/huaweicloud/models/chassis_collection.rb +44 -0
- data/lib/fog/baremetal/huaweicloud/models/driver.rb +24 -0
- data/lib/fog/baremetal/huaweicloud/models/drivers.rb +21 -0
- data/lib/fog/baremetal/huaweicloud/models/node.rb +96 -0
- data/lib/fog/baremetal/huaweicloud/models/nodes.rb +44 -0
- data/lib/fog/baremetal/huaweicloud/models/port.rb +50 -0
- data/lib/fog/baremetal/huaweicloud/models/ports.rb +44 -0
- data/lib/fog/baremetal/huaweicloud/requests/create_chassis.rb +44 -0
- data/lib/fog/baremetal/huaweicloud/requests/create_node.rb +54 -0
- data/lib/fog/baremetal/huaweicloud/requests/create_port.rb +46 -0
- data/lib/fog/baremetal/huaweicloud/requests/delete_chassis.rb +25 -0
- data/lib/fog/baremetal/huaweicloud/requests/delete_node.rb +25 -0
- data/lib/fog/baremetal/huaweicloud/requests/delete_port.rb +25 -0
- data/lib/fog/baremetal/huaweicloud/requests/get_chassis.rb +24 -0
- data/lib/fog/baremetal/huaweicloud/requests/get_driver.rb +24 -0
- data/lib/fog/baremetal/huaweicloud/requests/get_driver_properties.rb +40 -0
- data/lib/fog/baremetal/huaweicloud/requests/get_node.rb +24 -0
- data/lib/fog/baremetal/huaweicloud/requests/get_port.rb +24 -0
- data/lib/fog/baremetal/huaweicloud/requests/list_chassis.rb +42 -0
- data/lib/fog/baremetal/huaweicloud/requests/list_chassis_detailed.rb +25 -0
- data/lib/fog/baremetal/huaweicloud/requests/list_drivers.rb +25 -0
- data/lib/fog/baremetal/huaweicloud/requests/list_nodes.rb +34 -0
- data/lib/fog/baremetal/huaweicloud/requests/list_nodes_detailed.rb +25 -0
- data/lib/fog/baremetal/huaweicloud/requests/list_ports.rb +42 -0
- data/lib/fog/baremetal/huaweicloud/requests/list_ports_detailed.rb +25 -0
- data/lib/fog/baremetal/huaweicloud/requests/patch_chassis.rb +41 -0
- data/lib/fog/baremetal/huaweicloud/requests/patch_node.rb +41 -0
- data/lib/fog/baremetal/huaweicloud/requests/patch_port.rb +41 -0
- data/lib/fog/baremetal/huaweicloud/requests/set_node_maintenance.rb +30 -0
- data/lib/fog/baremetal/huaweicloud/requests/set_node_power_state.rb +35 -0
- data/lib/fog/baremetal/huaweicloud/requests/set_node_provision_state.rb +38 -0
- data/lib/fog/baremetal/huaweicloud/requests/unset_node_maintenance.rb +30 -0
- data/lib/fog/baremetal/huaweicloud.rb +284 -0
- data/lib/fog/compute/huaweicloud/models/address.rb +67 -0
- data/lib/fog/compute/huaweicloud/models/addresses.rb +28 -0
- data/lib/fog/compute/huaweicloud/models/aggregate.rb +59 -0
- data/lib/fog/compute/huaweicloud/models/aggregates.rb +26 -0
- data/lib/fog/compute/huaweicloud/models/availability_zone.rb +19 -0
- data/lib/fog/compute/huaweicloud/models/availability_zones.rb +22 -0
- data/lib/fog/compute/huaweicloud/models/flavor.rb +64 -0
- data/lib/fog/compute/huaweicloud/models/flavors.rb +29 -0
- data/lib/fog/compute/huaweicloud/models/host.rb +28 -0
- data/lib/fog/compute/huaweicloud/models/hosts.rb +26 -0
- data/lib/fog/compute/huaweicloud/models/image.rb +47 -0
- data/lib/fog/compute/huaweicloud/models/images.rb +38 -0
- data/lib/fog/compute/huaweicloud/models/key_pair.rb +56 -0
- data/lib/fog/compute/huaweicloud/models/key_pairs.rb +29 -0
- data/lib/fog/compute/huaweicloud/models/metadata.rb +65 -0
- data/lib/fog/compute/huaweicloud/models/metadatum.rb +27 -0
- data/lib/fog/compute/huaweicloud/models/network.rb +13 -0
- data/lib/fog/compute/huaweicloud/models/networks.rb +30 -0
- data/lib/fog/compute/huaweicloud/models/os_interface.rb +15 -0
- data/lib/fog/compute/huaweicloud/models/os_interfaces.rb +28 -0
- data/lib/fog/compute/huaweicloud/models/security_group.rb +57 -0
- data/lib/fog/compute/huaweicloud/models/security_group_rule.rb +32 -0
- data/lib/fog/compute/huaweicloud/models/security_group_rules.rb +21 -0
- data/lib/fog/compute/huaweicloud/models/security_groups.rb +24 -0
- data/lib/fog/compute/huaweicloud/models/server.rb +410 -0
- data/lib/fog/compute/huaweicloud/models/server_group.rb +22 -0
- data/lib/fog/compute/huaweicloud/models/server_groups.rb +28 -0
- data/lib/fog/compute/huaweicloud/models/servers.rb +59 -0
- data/lib/fog/compute/huaweicloud/models/service.rb +42 -0
- data/lib/fog/compute/huaweicloud/models/services.rb +35 -0
- data/lib/fog/compute/huaweicloud/models/snapshot.rb +32 -0
- data/lib/fog/compute/huaweicloud/models/snapshots.rb +37 -0
- data/lib/fog/compute/huaweicloud/models/tenant.rb +24 -0
- data/lib/fog/compute/huaweicloud/models/tenants.rb +24 -0
- data/lib/fog/compute/huaweicloud/models/volume.rb +52 -0
- data/lib/fog/compute/huaweicloud/models/volume_attachment.rb +15 -0
- data/lib/fog/compute/huaweicloud/models/volume_attachments.rb +20 -0
- data/lib/fog/compute/huaweicloud/models/volumes.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/add_aggregate_host.rb +30 -0
- data/lib/fog/compute/huaweicloud/requests/add_fixed_ip.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/add_flavor_access.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/add_security_group.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/allocate_address.rb +39 -0
- data/lib/fog/compute/huaweicloud/requests/associate_address.rb +30 -0
- data/lib/fog/compute/huaweicloud/requests/attach_volume.rb +39 -0
- data/lib/fog/compute/huaweicloud/requests/boot_from_snapshot.rb +41 -0
- data/lib/fog/compute/huaweicloud/requests/change_server_password.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/confirm_resize_server.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/create_aggregate.rb +42 -0
- data/lib/fog/compute/huaweicloud/requests/create_flavor.rb +85 -0
- data/lib/fog/compute/huaweicloud/requests/create_flavor_metadata.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/create_image.rb +44 -0
- data/lib/fog/compute/huaweicloud/requests/create_key_pair.rb +48 -0
- data/lib/fog/compute/huaweicloud/requests/create_os_interface.rb +42 -0
- data/lib/fog/compute/huaweicloud/requests/create_security_group.rb +51 -0
- data/lib/fog/compute/huaweicloud/requests/create_security_group_rule.rb +57 -0
- data/lib/fog/compute/huaweicloud/requests/create_server.rb +187 -0
- data/lib/fog/compute/huaweicloud/requests/create_server_group.rb +31 -0
- data/lib/fog/compute/huaweicloud/requests/create_snapshot.rb +51 -0
- data/lib/fog/compute/huaweicloud/requests/create_volume.rb +58 -0
- data/lib/fog/compute/huaweicloud/requests/delete_aggregate.rb +28 -0
- data/lib/fog/compute/huaweicloud/requests/delete_flavor.rb +28 -0
- data/lib/fog/compute/huaweicloud/requests/delete_flavor_metadata.rb +30 -0
- data/lib/fog/compute/huaweicloud/requests/delete_image.rb +36 -0
- data/lib/fog/compute/huaweicloud/requests/delete_key_pair.rb +31 -0
- data/lib/fog/compute/huaweicloud/requests/delete_meta.rb +35 -0
- data/lib/fog/compute/huaweicloud/requests/delete_metadata.rb +23 -0
- data/lib/fog/compute/huaweicloud/requests/delete_os_interface.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/delete_security_group.rb +31 -0
- data/lib/fog/compute/huaweicloud/requests/delete_security_group_rule.rb +31 -0
- data/lib/fog/compute/huaweicloud/requests/delete_server.rb +40 -0
- data/lib/fog/compute/huaweicloud/requests/delete_server_group.rb +28 -0
- data/lib/fog/compute/huaweicloud/requests/delete_service.rb +32 -0
- data/lib/fog/compute/huaweicloud/requests/delete_snapshot.rb +28 -0
- data/lib/fog/compute/huaweicloud/requests/delete_volume.rb +28 -0
- data/lib/fog/compute/huaweicloud/requests/detach_volume.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/disable_service.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/disable_service_log_reason.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/disassociate_address.rb +25 -0
- data/lib/fog/compute/huaweicloud/requests/enable_service.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/evacuate_server.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/get_address.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/get_aggregate.rb +25 -0
- data/lib/fog/compute/huaweicloud/requests/get_console_output.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/get_flavor_details.rb +39 -0
- data/lib/fog/compute/huaweicloud/requests/get_flavor_metadata.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/get_host_details.rb +60 -0
- data/lib/fog/compute/huaweicloud/requests/get_hypervisor.rb +64 -0
- data/lib/fog/compute/huaweicloud/requests/get_hypervisor_statistics.rb +39 -0
- data/lib/fog/compute/huaweicloud/requests/get_image_details.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/get_key_pair.rb +50 -0
- data/lib/fog/compute/huaweicloud/requests/get_limits.rb +94 -0
- data/lib/fog/compute/huaweicloud/requests/get_metadata.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/get_os_interface.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/get_quota.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/get_security_group.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/get_security_group_rule.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/get_server_details.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/get_server_group.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/get_server_password.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/get_server_volumes.rb +27 -0
- data/lib/fog/compute/huaweicloud/requests/get_snapshot_details.rb +30 -0
- data/lib/fog/compute/huaweicloud/requests/get_usage.rb +48 -0
- data/lib/fog/compute/huaweicloud/requests/get_vnc_console.rb +49 -0
- data/lib/fog/compute/huaweicloud/requests/get_volume_details.rb +32 -0
- data/lib/fog/compute/huaweicloud/requests/list_address_pools.rb +28 -0
- data/lib/fog/compute/huaweicloud/requests/list_addresses.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/list_aggregates.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/list_all_addresses.rb +62 -0
- data/lib/fog/compute/huaweicloud/requests/list_availability_zones.rb +23 -0
- data/lib/fog/compute/huaweicloud/requests/list_flavors.rb +35 -0
- data/lib/fog/compute/huaweicloud/requests/list_flavors_detail.rb +35 -0
- data/lib/fog/compute/huaweicloud/requests/list_hosts.rb +27 -0
- data/lib/fog/compute/huaweicloud/requests/list_hypervisor_servers.rb +42 -0
- data/lib/fog/compute/huaweicloud/requests/list_hypervisors.rb +27 -0
- data/lib/fog/compute/huaweicloud/requests/list_hypervisors_detail.rb +71 -0
- data/lib/fog/compute/huaweicloud/requests/list_images.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/list_images_detail.rb +36 -0
- data/lib/fog/compute/huaweicloud/requests/list_key_pairs.rb +39 -0
- data/lib/fog/compute/huaweicloud/requests/list_metadata.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/list_os_interfaces.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/list_private_addresses.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/list_public_addresses.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/list_security_groups.rb +67 -0
- data/lib/fog/compute/huaweicloud/requests/list_server_groups.rb +28 -0
- data/lib/fog/compute/huaweicloud/requests/list_servers.rb +36 -0
- data/lib/fog/compute/huaweicloud/requests/list_servers_detail.rb +43 -0
- data/lib/fog/compute/huaweicloud/requests/list_services.rb +66 -0
- data/lib/fog/compute/huaweicloud/requests/list_snapshots.rb +40 -0
- data/lib/fog/compute/huaweicloud/requests/list_snapshots_detail.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/list_tenants.rb +43 -0
- data/lib/fog/compute/huaweicloud/requests/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/list_usages.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/list_volume_attachments.rb +31 -0
- data/lib/fog/compute/huaweicloud/requests/list_volumes.rb +39 -0
- data/lib/fog/compute/huaweicloud/requests/list_volumes_detail.rb +25 -0
- data/lib/fog/compute/huaweicloud/requests/list_zones.rb +33 -0
- data/lib/fog/compute/huaweicloud/requests/list_zones_detailed.rb +68 -0
- data/lib/fog/compute/huaweicloud/requests/live_migrate_server.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/migrate_server.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/pause_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/reboot_server.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/rebuild_server.rb +34 -0
- data/lib/fog/compute/huaweicloud/requests/release_address.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/remote_consoles.rb +54 -0
- data/lib/fog/compute/huaweicloud/requests/remove_aggregate_host.rb +30 -0
- data/lib/fog/compute/huaweicloud/requests/remove_fixed_ip.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/remove_flavor_access.rb +29 -0
- data/lib/fog/compute/huaweicloud/requests/remove_security_group.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/rescue_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/reset_server_state.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/resize_server.rb +20 -0
- data/lib/fog/compute/huaweicloud/requests/resume_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/revert_resize_server.rb +26 -0
- data/lib/fog/compute/huaweicloud/requests/server_action.rb +16 -0
- data/lib/fog/compute/huaweicloud/requests/server_actions.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/server_diagnostics.rb +25 -0
- data/lib/fog/compute/huaweicloud/requests/set_metadata.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/set_tenant.rb +19 -0
- data/lib/fog/compute/huaweicloud/requests/shelve_offload_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/shelve_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/start_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/stop_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/suspend_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/unpause_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/unshelve_server.rb +24 -0
- data/lib/fog/compute/huaweicloud/requests/update_aggregate.rb +37 -0
- data/lib/fog/compute/huaweicloud/requests/update_aggregate_metadata.rb +30 -0
- data/lib/fog/compute/huaweicloud/requests/update_flavor_metadata.rb +33 -0
- data/lib/fog/compute/huaweicloud/requests/update_meta.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/update_metadata.rb +38 -0
- data/lib/fog/compute/huaweicloud/requests/update_quota.rb +27 -0
- data/lib/fog/compute/huaweicloud/requests/update_server.rb +32 -0
- data/lib/fog/compute/huaweicloud.rb +413 -0
- data/lib/fog/container_infra/huaweicloud/models/base.rb +19 -0
- data/lib/fog/container_infra/huaweicloud/models/bay.rb +56 -0
- data/lib/fog/container_infra/huaweicloud/models/bay_model.rb +62 -0
- data/lib/fog/container_infra/huaweicloud/models/bay_models.rb +23 -0
- data/lib/fog/container_infra/huaweicloud/models/bays.rb +23 -0
- data/lib/fog/container_infra/huaweicloud/models/certificate.rb +20 -0
- data/lib/fog/container_infra/huaweicloud/models/certificates.rb +25 -0
- data/lib/fog/container_infra/huaweicloud/models/cluster.rb +56 -0
- data/lib/fog/container_infra/huaweicloud/models/cluster_template.rb +61 -0
- data/lib/fog/container_infra/huaweicloud/models/cluster_templates.rb +24 -0
- data/lib/fog/container_infra/huaweicloud/models/clusters.rb +24 -0
- data/lib/fog/container_infra/huaweicloud/requests/create_bay.rb +27 -0
- data/lib/fog/container_infra/huaweicloud/requests/create_bay_model.rb +56 -0
- data/lib/fog/container_infra/huaweicloud/requests/create_certificate.rb +29 -0
- data/lib/fog/container_infra/huaweicloud/requests/create_cluster.rb +27 -0
- data/lib/fog/container_infra/huaweicloud/requests/create_cluster_template.rb +56 -0
- data/lib/fog/container_infra/huaweicloud/requests/delete_bay.rb +24 -0
- data/lib/fog/container_infra/huaweicloud/requests/delete_bay_model.rb +24 -0
- data/lib/fog/container_infra/huaweicloud/requests/delete_cluster.rb +24 -0
- data/lib/fog/container_infra/huaweicloud/requests/delete_cluster_template.rb +24 -0
- data/lib/fog/container_infra/huaweicloud/requests/get_bay.rb +51 -0
- data/lib/fog/container_infra/huaweicloud/requests/get_bay_model.rb +55 -0
- data/lib/fog/container_infra/huaweicloud/requests/get_certificate.rb +27 -0
- data/lib/fog/container_infra/huaweicloud/requests/get_cluster.rb +41 -0
- data/lib/fog/container_infra/huaweicloud/requests/get_cluster_template.rb +55 -0
- data/lib/fog/container_infra/huaweicloud/requests/list_bay_models.rb +69 -0
- data/lib/fog/container_infra/huaweicloud/requests/list_bays.rb +55 -0
- data/lib/fog/container_infra/huaweicloud/requests/list_cluster_templates.rb +59 -0
- data/lib/fog/container_infra/huaweicloud/requests/list_clusters.rb +37 -0
- data/lib/fog/container_infra/huaweicloud/requests/update_bay.rb +27 -0
- data/lib/fog/container_infra/huaweicloud/requests/update_bay_model.rb +56 -0
- data/lib/fog/container_infra/huaweicloud/requests/update_cluster.rb +27 -0
- data/lib/fog/container_infra/huaweicloud/requests/update_cluster_template.rb +56 -0
- data/lib/fog/container_infra/huaweicloud.rb +163 -0
- data/lib/fog/dns/huaweicloud/v1/requests/get_quota.rb +26 -0
- data/lib/fog/dns/huaweicloud/v1/requests/list_domains.rb +27 -0
- data/lib/fog/dns/huaweicloud/v1/requests/update_quota.rb +31 -0
- data/lib/fog/dns/huaweicloud/v1.rb +128 -0
- data/lib/fog/dns/huaweicloud/v2/models/pool.rb +21 -0
- data/lib/fog/dns/huaweicloud/v2/models/pools.rb +25 -0
- data/lib/fog/dns/huaweicloud/v2/models/recordset.rb +55 -0
- data/lib/fog/dns/huaweicloud/v2/models/recordsets.rb +30 -0
- data/lib/fog/dns/huaweicloud/v2/models/zone.rb +50 -0
- data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_accept.rb +29 -0
- data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_accepts.rb +25 -0
- data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_request.rb +50 -0
- data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_requests.rb +30 -0
- data/lib/fog/dns/huaweicloud/v2/models/zones.rb +30 -0
- data/lib/fog/dns/huaweicloud/v2/requests/create_recordset.rb +54 -0
- data/lib/fog/dns/huaweicloud/v2/requests/create_zone.rb +49 -0
- data/lib/fog/dns/huaweicloud/v2/requests/create_zone_transfer_accept.rb +35 -0
- data/lib/fog/dns/huaweicloud/v2/requests/create_zone_transfer_request.rb +34 -0
- data/lib/fog/dns/huaweicloud/v2/requests/delete_recordset.rb +36 -0
- data/lib/fog/dns/huaweicloud/v2/requests/delete_zone.rb +35 -0
- data/lib/fog/dns/huaweicloud/v2/requests/delete_zone_transfer_request.rb +26 -0
- data/lib/fog/dns/huaweicloud/v2/requests/get_pool.rb +30 -0
- data/lib/fog/dns/huaweicloud/v2/requests/get_quota.rb +29 -0
- data/lib/fog/dns/huaweicloud/v2/requests/get_recordset.rb +36 -0
- data/lib/fog/dns/huaweicloud/v2/requests/get_zone.rb +30 -0
- data/lib/fog/dns/huaweicloud/v2/requests/get_zone_transfer_accept.rb +28 -0
- data/lib/fog/dns/huaweicloud/v2/requests/get_zone_transfer_request.rb +29 -0
- data/lib/fog/dns/huaweicloud/v2/requests/list_pools.rb +30 -0
- data/lib/fog/dns/huaweicloud/v2/requests/list_recordsets.rb +54 -0
- data/lib/fog/dns/huaweicloud/v2/requests/list_zone_transfer_accepts.rb +27 -0
- data/lib/fog/dns/huaweicloud/v2/requests/list_zone_transfer_requests.rb +27 -0
- data/lib/fog/dns/huaweicloud/v2/requests/list_zones.rb +30 -0
- data/lib/fog/dns/huaweicloud/v2/requests/update_quota.rb +34 -0
- data/lib/fog/dns/huaweicloud/v2/requests/update_recordset.rb +40 -0
- data/lib/fog/dns/huaweicloud/v2/requests/update_zone.rb +39 -0
- data/lib/fog/dns/huaweicloud/v2/requests/update_zone_transfer_request.rb +36 -0
- data/lib/fog/dns/huaweicloud/v2.rb +342 -0
- data/lib/fog/dns/huaweicloud.rb +21 -0
- data/lib/fog/event/huaweicloud/models/event.rb +16 -0
- data/lib/fog/event/huaweicloud/models/events.rb +23 -0
- data/lib/fog/event/huaweicloud/requests/get_event.rb +27 -0
- data/lib/fog/event/huaweicloud/requests/list_events.rb +42 -0
- data/lib/fog/event/huaweicloud.rb +120 -0
- data/lib/fog/huaweicloud/core.rb +224 -0
- data/lib/fog/huaweicloud/errors.rb +42 -0
- data/lib/fog/huaweicloud/models/collection.rb +48 -0
- data/lib/fog/huaweicloud/models/meta_parent.rb +31 -0
- data/lib/fog/huaweicloud/models/model.rb +44 -0
- data/lib/fog/huaweicloud/version.rb +5 -0
- data/lib/fog/huaweicloud.rb +626 -0
- data/lib/fog/identity/huaweicloud/v2/models/ec2_credential.rb +39 -0
- data/lib/fog/identity/huaweicloud/v2/models/ec2_credentials.rb +56 -0
- data/lib/fog/identity/huaweicloud/v2/models/role.rb +53 -0
- data/lib/fog/identity/huaweicloud/v2/models/roles.rb +22 -0
- data/lib/fog/identity/huaweicloud/v2/models/tenant.rb +63 -0
- data/lib/fog/identity/huaweicloud/v2/models/tenants.rb +32 -0
- data/lib/fog/identity/huaweicloud/v2/models/user.rb +69 -0
- data/lib/fog/identity/huaweicloud/v2/models/users.rb +45 -0
- data/lib/fog/identity/huaweicloud/v2/requests/add_user_to_tenant.rb +36 -0
- data/lib/fog/identity/huaweicloud/v2/requests/check_token.rb +22 -0
- data/lib/fog/identity/huaweicloud/v2/requests/create_ec2_credential.rb +59 -0
- data/lib/fog/identity/huaweicloud/v2/requests/create_role.rb +38 -0
- data/lib/fog/identity/huaweicloud/v2/requests/create_tenant.rb +34 -0
- data/lib/fog/identity/huaweicloud/v2/requests/create_user.rb +45 -0
- data/lib/fog/identity/huaweicloud/v2/requests/create_user_role.rb +26 -0
- data/lib/fog/identity/huaweicloud/v2/requests/delete_ec2_credential.rb +43 -0
- data/lib/fog/identity/huaweicloud/v2/requests/delete_role.rb +30 -0
- data/lib/fog/identity/huaweicloud/v2/requests/delete_tenant.rb +33 -0
- data/lib/fog/identity/huaweicloud/v2/requests/delete_user.rb +31 -0
- data/lib/fog/identity/huaweicloud/v2/requests/delete_user_role.rb +25 -0
- data/lib/fog/identity/huaweicloud/v2/requests/get_ec2_credential.rb +50 -0
- data/lib/fog/identity/huaweicloud/v2/requests/get_role.rb +30 -0
- data/lib/fog/identity/huaweicloud/v2/requests/get_tenant.rb +33 -0
- data/lib/fog/identity/huaweicloud/v2/requests/get_tenants_by_id.rb +20 -0
- data/lib/fog/identity/huaweicloud/v2/requests/get_tenants_by_name.rb +20 -0
- data/lib/fog/identity/huaweicloud/v2/requests/get_user_by_id.rb +34 -0
- data/lib/fog/identity/huaweicloud/v2/requests/get_user_by_name.rb +29 -0
- data/lib/fog/identity/huaweicloud/v2/requests/list_ec2_credentials.rb +61 -0
- data/lib/fog/identity/huaweicloud/v2/requests/list_endpoints_for_token.rb +20 -0
- data/lib/fog/identity/huaweicloud/v2/requests/list_roles.rb +34 -0
- data/lib/fog/identity/huaweicloud/v2/requests/list_roles_for_user_on_tenant.rb +32 -0
- data/lib/fog/identity/huaweicloud/v2/requests/list_tenants.rb +53 -0
- data/lib/fog/identity/huaweicloud/v2/requests/list_user_global_roles.rb +20 -0
- data/lib/fog/identity/huaweicloud/v2/requests/list_users.rb +47 -0
- data/lib/fog/identity/huaweicloud/v2/requests/remove_user_from_tenant.rb +22 -0
- data/lib/fog/identity/huaweicloud/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/identity/huaweicloud/v2/requests/update_tenant.rb +30 -0
- data/lib/fog/identity/huaweicloud/v2/requests/update_user.rb +34 -0
- data/lib/fog/identity/huaweicloud/v2/requests/validate_token.rb +22 -0
- data/lib/fog/identity/huaweicloud/v2.rb +181 -0
- data/lib/fog/identity/huaweicloud/v3/models/domain.rb +59 -0
- data/lib/fog/identity/huaweicloud/v3/models/domains.rb +63 -0
- data/lib/fog/identity/huaweicloud/v3/models/endpoint.rb +47 -0
- data/lib/fog/identity/huaweicloud/v3/models/endpoints.rb +27 -0
- data/lib/fog/identity/huaweicloud/v3/models/group.rb +94 -0
- data/lib/fog/identity/huaweicloud/v3/models/groups.rb +32 -0
- data/lib/fog/identity/huaweicloud/v3/models/os_credential.rb +74 -0
- data/lib/fog/identity/huaweicloud/v3/models/os_credentials.rb +32 -0
- data/lib/fog/identity/huaweicloud/v3/models/policies.rb +32 -0
- data/lib/fog/identity/huaweicloud/v3/models/policy.rb +43 -0
- data/lib/fog/identity/huaweicloud/v3/models/project.rb +116 -0
- data/lib/fog/identity/huaweicloud/v3/models/projects.rb +75 -0
- data/lib/fog/identity/huaweicloud/v3/models/role.rb +41 -0
- data/lib/fog/identity/huaweicloud/v3/models/role_assignment.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/models/role_assignments.rb +25 -0
- data/lib/fog/identity/huaweicloud/v3/models/roles.rb +40 -0
- data/lib/fog/identity/huaweicloud/v3/models/service.rb +48 -0
- data/lib/fog/identity/huaweicloud/v3/models/services.rb +32 -0
- data/lib/fog/identity/huaweicloud/v3/models/token.rb +24 -0
- data/lib/fog/identity/huaweicloud/v3/models/tokens.rb +40 -0
- data/lib/fog/identity/huaweicloud/v3/models/user.rb +82 -0
- data/lib/fog/identity/huaweicloud/v3/models/users.rb +36 -0
- data/lib/fog/identity/huaweicloud/v3/requests/add_user_to_group.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/auth_domains.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/auth_projects.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/check_domain_group_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/check_domain_user_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/check_project_group_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/check_project_user_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_domain.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_endpoint.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_group.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_os_credential.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_policy.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_project.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_role.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_service.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/create_user.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_domain.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_endpoint.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_group.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_os_credential.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_policy.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_project.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_service.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/delete_user.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_domain.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_endpoint.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_group.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_os_credential.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_policy.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_project.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_role.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_service.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/get_user.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/grant_domain_group_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/grant_domain_user_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/grant_project_group_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/grant_project_user_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/group_user_check.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_domain_group_roles.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_domain_user_roles.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_domains.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_endpoints.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_group_users.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_groups.rb +31 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_os_credentials.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_policies.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_project_group_roles.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_project_user_roles.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_projects.rb +30 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_role_assignments.rb +38 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_roles.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_services.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_user_groups.rb +22 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_user_projects.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/list_users.rb +23 -0
- data/lib/fog/identity/huaweicloud/v3/requests/remove_user_from_group.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/revoke_domain_group_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/revoke_domain_user_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/revoke_project_group_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/revoke_project_user_role.rb +20 -0
- data/lib/fog/identity/huaweicloud/v3/requests/token_authenticate.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/token_check.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/token_revoke.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/token_validate.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_domain.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_endpoint.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_group.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_os_credential.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_policy.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_project.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_role.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_service.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3/requests/update_user.rb +21 -0
- data/lib/fog/identity/huaweicloud/v3.rb +162 -0
- data/lib/fog/identity/huaweicloud.rb +117 -0
- data/lib/fog/image/huaweicloud/v1/models/image.rb +78 -0
- data/lib/fog/image/huaweicloud/v1/models/images.rb +106 -0
- data/lib/fog/image/huaweicloud/v1/requests/add_member_to_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v1/requests/create_image.rb +78 -0
- data/lib/fog/image/huaweicloud/v1/requests/delete_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v1/requests/get_image.rb +47 -0
- data/lib/fog/image/huaweicloud/v1/requests/get_image_by_id.rb +44 -0
- data/lib/fog/image/huaweicloud/v1/requests/get_image_members.rb +31 -0
- data/lib/fog/image/huaweicloud/v1/requests/get_shared_images.rb +31 -0
- data/lib/fog/image/huaweicloud/v1/requests/list_public_images.rb +36 -0
- data/lib/fog/image/huaweicloud/v1/requests/list_public_images_detailed.rb +37 -0
- data/lib/fog/image/huaweicloud/v1/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v1/requests/set_tenant.rb +21 -0
- data/lib/fog/image/huaweicloud/v1/requests/update_image.rb +66 -0
- data/lib/fog/image/huaweicloud/v1/requests/update_image_members.rb +39 -0
- data/lib/fog/image/huaweicloud/v1.rb +133 -0
- data/lib/fog/image/huaweicloud/v2/models/image.rb +214 -0
- data/lib/fog/image/huaweicloud/v2/models/images.rb +66 -0
- data/lib/fog/image/huaweicloud/v2/requests/add_member_to_image.rb +26 -0
- data/lib/fog/image/huaweicloud/v2/requests/add_tag_to_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v2/requests/create_image.rb +51 -0
- data/lib/fog/image/huaweicloud/v2/requests/deactivate_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v2/requests/delete_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v2/requests/download_image.rb +29 -0
- data/lib/fog/image/huaweicloud/v2/requests/get_image.rb +47 -0
- data/lib/fog/image/huaweicloud/v2/requests/get_image_by_id.rb +35 -0
- data/lib/fog/image/huaweicloud/v2/requests/get_image_members.rb +31 -0
- data/lib/fog/image/huaweicloud/v2/requests/get_member_details.rb +33 -0
- data/lib/fog/image/huaweicloud/v2/requests/get_shared_images.rb +31 -0
- data/lib/fog/image/huaweicloud/v2/requests/list_images.rb +36 -0
- data/lib/fog/image/huaweicloud/v2/requests/reactivate_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v2/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v2/requests/remove_tag_from_image.rb +25 -0
- data/lib/fog/image/huaweicloud/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/image/huaweicloud/v2/requests/update_image.rb +49 -0
- data/lib/fog/image/huaweicloud/v2/requests/update_image_member.rb +34 -0
- data/lib/fog/image/huaweicloud/v2/requests/upload_image.rb +30 -0
- data/lib/fog/image/huaweicloud/v2.rb +141 -0
- data/lib/fog/image/huaweicloud.rb +23 -0
- data/lib/fog/introspection/huaweicloud/models/rules.rb +29 -0
- data/lib/fog/introspection/huaweicloud/models/rules_collection.rb +32 -0
- data/lib/fog/introspection/huaweicloud/requests/abort_introspection.rb +25 -0
- data/lib/fog/introspection/huaweicloud/requests/create_introspection.rb +35 -0
- data/lib/fog/introspection/huaweicloud/requests/create_rules.rb +37 -0
- data/lib/fog/introspection/huaweicloud/requests/delete_rules.rb +23 -0
- data/lib/fog/introspection/huaweicloud/requests/delete_rules_all.rb +23 -0
- data/lib/fog/introspection/huaweicloud/requests/get_introspection.rb +24 -0
- data/lib/fog/introspection/huaweicloud/requests/get_introspection_details.rb +24 -0
- data/lib/fog/introspection/huaweicloud/requests/get_rules.rb +24 -0
- data/lib/fog/introspection/huaweicloud/requests/list_rules.rb +24 -0
- data/lib/fog/introspection/huaweicloud.rb +103 -0
- data/lib/fog/key_manager/huaweicloud/models/acl.rb +23 -0
- data/lib/fog/key_manager/huaweicloud/models/container.rb +44 -0
- data/lib/fog/key_manager/huaweicloud/models/containers.rb +25 -0
- data/lib/fog/key_manager/huaweicloud/models/secret.rb +53 -0
- data/lib/fog/key_manager/huaweicloud/models/secrets.rb +25 -0
- data/lib/fog/key_manager/huaweicloud/requests/create_container.rb +19 -0
- data/lib/fog/key_manager/huaweicloud/requests/create_secret.rb +19 -0
- data/lib/fog/key_manager/huaweicloud/requests/delete_container.rb +18 -0
- data/lib/fog/key_manager/huaweicloud/requests/delete_container_acl.rb +24 -0
- data/lib/fog/key_manager/huaweicloud/requests/delete_secret.rb +18 -0
- data/lib/fog/key_manager/huaweicloud/requests/delete_secret_acl.rb +24 -0
- data/lib/fog/key_manager/huaweicloud/requests/get_container.rb +18 -0
- data/lib/fog/key_manager/huaweicloud/requests/get_container_acl.rb +31 -0
- data/lib/fog/key_manager/huaweicloud/requests/get_secret.rb +18 -0
- data/lib/fog/key_manager/huaweicloud/requests/get_secret_acl.rb +31 -0
- data/lib/fog/key_manager/huaweicloud/requests/get_secret_metadata.rb +18 -0
- data/lib/fog/key_manager/huaweicloud/requests/get_secret_payload.rb +21 -0
- data/lib/fog/key_manager/huaweicloud/requests/list_containers.rb +19 -0
- data/lib/fog/key_manager/huaweicloud/requests/list_secrets.rb +19 -0
- data/lib/fog/key_manager/huaweicloud/requests/replace_container_acl.rb +27 -0
- data/lib/fog/key_manager/huaweicloud/requests/replace_secret_acl.rb +27 -0
- data/lib/fog/key_manager/huaweicloud/requests/update_container_acl.rb +26 -0
- data/lib/fog/key_manager/huaweicloud/requests/update_secret_acl.rb +26 -0
- data/lib/fog/key_manager/huaweicloud.rb +151 -0
- data/lib/fog/metering/huaweicloud/models/event.rb +16 -0
- data/lib/fog/metering/huaweicloud/models/events.rb +23 -0
- data/lib/fog/metering/huaweicloud/models/meter.rb +0 -0
- data/lib/fog/metering/huaweicloud/models/meters.rb +0 -0
- data/lib/fog/metering/huaweicloud/models/resource.rb +15 -0
- data/lib/fog/metering/huaweicloud/models/resources.rb +23 -0
- data/lib/fog/metering/huaweicloud/requests/get_event.rb +27 -0
- data/lib/fog/metering/huaweicloud/requests/get_resource.rb +29 -0
- data/lib/fog/metering/huaweicloud/requests/get_samples.rb +52 -0
- data/lib/fog/metering/huaweicloud/requests/get_statistics.rb +52 -0
- data/lib/fog/metering/huaweicloud/requests/list_events.rb +42 -0
- data/lib/fog/metering/huaweicloud/requests/list_meters.rb +46 -0
- data/lib/fog/metering/huaweicloud/requests/list_resources.rb +29 -0
- data/lib/fog/metering/huaweicloud.rb +132 -0
- data/lib/fog/metric/huaweicloud/models/metric.rb +18 -0
- data/lib/fog/metric/huaweicloud/models/metrics.rb +31 -0
- data/lib/fog/metric/huaweicloud/models/resource.rb +16 -0
- data/lib/fog/metric/huaweicloud/models/resources.rb +24 -0
- data/lib/fog/metric/huaweicloud/requests/get_metric.rb +62 -0
- data/lib/fog/metric/huaweicloud/requests/get_metric_measures.rb +38 -0
- data/lib/fog/metric/huaweicloud/requests/get_resource.rb +37 -0
- data/lib/fog/metric/huaweicloud/requests/get_resource_metric_measures.rb +46 -0
- data/lib/fog/metric/huaweicloud/requests/list_metrics.rb +104 -0
- data/lib/fog/metric/huaweicloud/requests/list_resources.rb +70 -0
- data/lib/fog/metric/huaweicloud.rb +126 -0
- data/lib/fog/monitoring/huaweicloud/models/alarm.rb +47 -0
- data/lib/fog/monitoring/huaweicloud/models/alarm_count.rb +17 -0
- data/lib/fog/monitoring/huaweicloud/models/alarm_counts.rb +16 -0
- data/lib/fog/monitoring/huaweicloud/models/alarm_definition.rb +57 -0
- data/lib/fog/monitoring/huaweicloud/models/alarm_definitions.rb +42 -0
- data/lib/fog/monitoring/huaweicloud/models/alarm_state.rb +32 -0
- data/lib/fog/monitoring/huaweicloud/models/alarm_states.rb +20 -0
- data/lib/fog/monitoring/huaweicloud/models/alarms.rb +30 -0
- data/lib/fog/monitoring/huaweicloud/models/dimension_value.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/models/dimension_values.rb +16 -0
- data/lib/fog/monitoring/huaweicloud/models/measurement.rb +20 -0
- data/lib/fog/monitoring/huaweicloud/models/measurements.rb +16 -0
- data/lib/fog/monitoring/huaweicloud/models/metric.rb +27 -0
- data/lib/fog/monitoring/huaweicloud/models/metrics.rb +36 -0
- data/lib/fog/monitoring/huaweicloud/models/notification_method.rb +47 -0
- data/lib/fog/monitoring/huaweicloud/models/notification_methods.rb +42 -0
- data/lib/fog/monitoring/huaweicloud/models/statistic.rb +20 -0
- data/lib/fog/monitoring/huaweicloud/models/statistics.rb +16 -0
- data/lib/fog/monitoring/huaweicloud/requests/create_alarm_definition.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/create_metric.rb +29 -0
- data/lib/fog/monitoring/huaweicloud/requests/create_metric_array.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/create_notification_method.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/delete_alarm.rb +18 -0
- data/lib/fog/monitoring/huaweicloud/requests/delete_alarm_definition.rb +18 -0
- data/lib/fog/monitoring/huaweicloud/requests/delete_notification_method.rb +18 -0
- data/lib/fog/monitoring/huaweicloud/requests/find_measurements.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/get_alarm.rb +21 -0
- data/lib/fog/monitoring/huaweicloud/requests/get_alarm_counts.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/get_alarm_definition.rb +18 -0
- data/lib/fog/monitoring/huaweicloud/requests/get_notification_method.rb +18 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_alarm_definitions.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_alarm_state_history_for_all_alarms.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_alarm_state_history_for_specific_alarm.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_alarms.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_dimension_values.rb +21 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_metric_names.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_metrics.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_notification_method_types.rb +21 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_notification_methods.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/list_statistics.rb +22 -0
- data/lib/fog/monitoring/huaweicloud/requests/patch_alarm.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/patch_alarm_definition.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/patch_notification_method.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/put_notification_method.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/update_alarm.rb +19 -0
- data/lib/fog/monitoring/huaweicloud/requests/update_alarm_definition.rb +19 -0
- data/lib/fog/monitoring/huaweicloud.rb +96 -0
- data/lib/fog/network/huaweicloud/models/extension.rb +15 -0
- data/lib/fog/network/huaweicloud/models/extensions.rb +32 -0
- data/lib/fog/network/huaweicloud/models/floating_ip.rb +64 -0
- data/lib/fog/network/huaweicloud/models/floating_ips.rb +32 -0
- data/lib/fog/network/huaweicloud/models/ike_policies.rb +32 -0
- data/lib/fog/network/huaweicloud/models/ike_policy.rb +43 -0
- data/lib/fog/network/huaweicloud/models/ipsec_policies.rb +32 -0
- data/lib/fog/network/huaweicloud/models/ipsec_policy.rb +45 -0
- data/lib/fog/network/huaweicloud/models/ipsec_site_connection.rb +51 -0
- data/lib/fog/network/huaweicloud/models/ipsec_site_connections.rb +33 -0
- data/lib/fog/network/huaweicloud/models/lb_health_monitor.rb +57 -0
- data/lib/fog/network/huaweicloud/models/lb_health_monitors.rb +32 -0
- data/lib/fog/network/huaweicloud/models/lb_member.rb +42 -0
- data/lib/fog/network/huaweicloud/models/lb_members.rb +32 -0
- data/lib/fog/network/huaweicloud/models/lb_pool.rb +67 -0
- data/lib/fog/network/huaweicloud/models/lb_pools.rb +32 -0
- data/lib/fog/network/huaweicloud/models/lb_vip.rb +48 -0
- data/lib/fog/network/huaweicloud/models/lb_vips.rb +32 -0
- data/lib/fog/network/huaweicloud/models/network.rb +43 -0
- data/lib/fog/network/huaweicloud/models/network_ip_availabilities.rb +24 -0
- data/lib/fog/network/huaweicloud/models/network_ip_availability.rb +17 -0
- data/lib/fog/network/huaweicloud/models/networks.rb +32 -0
- data/lib/fog/network/huaweicloud/models/port.rb +42 -0
- data/lib/fog/network/huaweicloud/models/ports.rb +32 -0
- data/lib/fog/network/huaweicloud/models/rbac_policies.rb +33 -0
- data/lib/fog/network/huaweicloud/models/rbac_policy.rb +34 -0
- data/lib/fog/network/huaweicloud/models/router.rb +61 -0
- data/lib/fog/network/huaweicloud/models/routers.rb +32 -0
- data/lib/fog/network/huaweicloud/models/security_group.rb +37 -0
- data/lib/fog/network/huaweicloud/models/security_group_rule.rb +33 -0
- data/lib/fog/network/huaweicloud/models/security_group_rules.rb +32 -0
- data/lib/fog/network/huaweicloud/models/security_groups.rb +32 -0
- data/lib/fog/network/huaweicloud/models/subnet.rb +45 -0
- data/lib/fog/network/huaweicloud/models/subnet_pool.rb +47 -0
- data/lib/fog/network/huaweicloud/models/subnet_pools.rb +33 -0
- data/lib/fog/network/huaweicloud/models/subnets.rb +32 -0
- data/lib/fog/network/huaweicloud/models/vpc.rb +34 -0
- data/lib/fog/network/huaweicloud/models/vpcs.rb +32 -0
- data/lib/fog/network/huaweicloud/models/vpn_service.rb +42 -0
- data/lib/fog/network/huaweicloud/models/vpn_services.rb +32 -0
- data/lib/fog/network/huaweicloud/requests/add_router_interface.rb +52 -0
- data/lib/fog/network/huaweicloud/requests/associate_floating_ip.rb +47 -0
- data/lib/fog/network/huaweicloud/requests/associate_lb_health_monitor.rb +37 -0
- data/lib/fog/network/huaweicloud/requests/create_floating_ip.rb +45 -0
- data/lib/fog/network/huaweicloud/requests/create_ike_policy.rb +52 -0
- data/lib/fog/network/huaweicloud/requests/create_ipsec_policy.rb +52 -0
- data/lib/fog/network/huaweicloud/requests/create_ipsec_site_connection.rb +65 -0
- data/lib/fog/network/huaweicloud/requests/create_lb_health_monitor.rb +54 -0
- data/lib/fog/network/huaweicloud/requests/create_lb_member.rb +51 -0
- data/lib/fog/network/huaweicloud/requests/create_lb_pool.rb +58 -0
- data/lib/fog/network/huaweicloud/requests/create_lb_vip.rb +58 -0
- data/lib/fog/network/huaweicloud/requests/create_lbaas_healthmonitor.rb +57 -0
- data/lib/fog/network/huaweicloud/requests/create_lbaas_l7policy.rb +50 -0
- data/lib/fog/network/huaweicloud/requests/create_lbaas_l7rule.rb +50 -0
- data/lib/fog/network/huaweicloud/requests/create_lbaas_listener.rb +55 -0
- data/lib/fog/network/huaweicloud/requests/create_lbaas_loadbalancer.rb +52 -0
- data/lib/fog/network/huaweicloud/requests/create_lbaas_pool.rb +53 -0
- data/lib/fog/network/huaweicloud/requests/create_lbaas_pool_member.rb +49 -0
- data/lib/fog/network/huaweicloud/requests/create_network.rb +88 -0
- data/lib/fog/network/huaweicloud/requests/create_port.rb +53 -0
- data/lib/fog/network/huaweicloud/requests/create_rbac_policy.rb +42 -0
- data/lib/fog/network/huaweicloud/requests/create_router.rb +76 -0
- data/lib/fog/network/huaweicloud/requests/create_security_group.rb +92 -0
- data/lib/fog/network/huaweicloud/requests/create_security_group_rule.rb +79 -0
- data/lib/fog/network/huaweicloud/requests/create_subnet.rb +54 -0
- data/lib/fog/network/huaweicloud/requests/create_subnet_pool.rb +56 -0
- data/lib/fog/network/huaweicloud/requests/create_vpc.rb +40 -0
- data/lib/fog/network/huaweicloud/requests/create_vpn_service.rb +51 -0
- data/lib/fog/network/huaweicloud/requests/delete_floating_ip.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_ike_policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_ipsec_policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_ipsec_site_connection.rb +29 -0
- data/lib/fog/network/huaweicloud/requests/delete_lb_health_monitor.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lb_member.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lb_pool.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lb_vip.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lbaas_l7policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lbaas_l7rule.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lbaas_listener.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lbaas_pool.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_lbaas_pool_member.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_network.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_port.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_quota.rb +23 -0
- data/lib/fog/network/huaweicloud/requests/delete_rbac_policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_router.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_security_group.rb +32 -0
- data/lib/fog/network/huaweicloud/requests/delete_security_group_rule.rb +32 -0
- data/lib/fog/network/huaweicloud/requests/delete_subnet.rb +36 -0
- data/lib/fog/network/huaweicloud/requests/delete_subnet_pool.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/delete_vpc.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/delete_vpn_service.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/disassociate_floating_ip.rb +47 -0
- data/lib/fog/network/huaweicloud/requests/disassociate_lb_health_monitor.rb +29 -0
- data/lib/fog/network/huaweicloud/requests/get_extension.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_floating_ip.rb +39 -0
- data/lib/fog/network/huaweicloud/requests/get_ike_policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_ipsec_policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_ipsec_site_connection.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lb_health_monitor.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lb_member.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lb_pool.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lb_pool_stats.rb +33 -0
- data/lib/fog/network/huaweicloud/requests/get_lb_vip.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lbaas_l7policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lbaas_l7rule.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lbaas_listener.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lbaas_pool.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_lbaas_pool_member.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_network.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_network_ip_availability.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_port.rb +51 -0
- data/lib/fog/network/huaweicloud/requests/get_quota.rb +26 -0
- data/lib/fog/network/huaweicloud/requests/get_quotas.rb +26 -0
- data/lib/fog/network/huaweicloud/requests/get_rbac_policy.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/get_router.rb +30 -0
- data/lib/fog/network/huaweicloud/requests/get_security_group.rb +52 -0
- data/lib/fog/network/huaweicloud/requests/get_security_group_rule.rb +47 -0
- data/lib/fog/network/huaweicloud/requests/get_subnet.rb +46 -0
- data/lib/fog/network/huaweicloud/requests/get_subnet_pool.rb +29 -0
- data/lib/fog/network/huaweicloud/requests/get_vpc.rb +22 -0
- data/lib/fog/network/huaweicloud/requests/get_vpn_service.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/list_extensions.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_floating_ips.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_ike_policies.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_ipsec_policies.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_ipsec_site_connections.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lb_health_monitors.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lb_members.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lb_pools.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lb_vips.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lbaas_healthmonitors.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lbaas_l7policies.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lbaas_l7rules.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lbaas_listeners.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lbaas_loadbalancers.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lbaas_pool_members.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_lbaas_pools.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_network_ip_availabilities.rb +28 -0
- data/lib/fog/network/huaweicloud/requests/list_networks.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_ports.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_rbac_policies.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_routers.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_security_group_rules.rb +48 -0
- data/lib/fog/network/huaweicloud/requests/list_security_groups.rb +53 -0
- data/lib/fog/network/huaweicloud/requests/list_subnet_pools.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/list_subnets.rb +24 -0
- data/lib/fog/network/huaweicloud/requests/list_vpcs.rb +22 -0
- data/lib/fog/network/huaweicloud/requests/list_vpn_services.rb +25 -0
- data/lib/fog/network/huaweicloud/requests/remove_router_interface.rb +34 -0
- data/lib/fog/network/huaweicloud/requests/set_tenant.rb +20 -0
- data/lib/fog/network/huaweicloud/requests/update_ike_policy.rb +48 -0
- data/lib/fog/network/huaweicloud/requests/update_ipsec_policy.rb +51 -0
- data/lib/fog/network/huaweicloud/requests/update_ipsec_site_connection.rb +63 -0
- data/lib/fog/network/huaweicloud/requests/update_lb_health_monitor.rb +43 -0
- data/lib/fog/network/huaweicloud/requests/update_lb_member.rb +39 -0
- data/lib/fog/network/huaweicloud/requests/update_lb_pool.rb +40 -0
- data/lib/fog/network/huaweicloud/requests/update_lb_vip.rb +42 -0
- data/lib/fog/network/huaweicloud/requests/update_lbaas_healthmonitor.rb +43 -0
- data/lib/fog/network/huaweicloud/requests/update_lbaas_l7policy.rb +43 -0
- data/lib/fog/network/huaweicloud/requests/update_lbaas_l7rule.rb +42 -0
- data/lib/fog/network/huaweicloud/requests/update_lbaas_listener.rb +44 -0
- data/lib/fog/network/huaweicloud/requests/update_lbaas_loadbalancer.rb +41 -0
- data/lib/fog/network/huaweicloud/requests/update_lbaas_pool.rb +40 -0
- data/lib/fog/network/huaweicloud/requests/update_lbaas_pool_member.rb +39 -0
- data/lib/fog/network/huaweicloud/requests/update_network.rb +58 -0
- data/lib/fog/network/huaweicloud/requests/update_port.rb +44 -0
- data/lib/fog/network/huaweicloud/requests/update_quota.rb +27 -0
- data/lib/fog/network/huaweicloud/requests/update_rbac_policy.rb +41 -0
- data/lib/fog/network/huaweicloud/requests/update_router.rb +71 -0
- data/lib/fog/network/huaweicloud/requests/update_security_group.rb +41 -0
- data/lib/fog/network/huaweicloud/requests/update_subnet.rb +43 -0
- data/lib/fog/network/huaweicloud/requests/update_subnet_pool.rb +46 -0
- data/lib/fog/network/huaweicloud/requests/update_vpn_service.rb +46 -0
- data/lib/fog/network/huaweicloud.rb +491 -0
- data/lib/fog/nfv/huaweicloud/models/vnf.rb +58 -0
- data/lib/fog/nfv/huaweicloud/models/vnfd.rb +53 -0
- data/lib/fog/nfv/huaweicloud/models/vnfds.rb +28 -0
- data/lib/fog/nfv/huaweicloud/models/vnfs.rb +28 -0
- data/lib/fog/nfv/huaweicloud/requests/create_vnf.rb +37 -0
- data/lib/fog/nfv/huaweicloud/requests/create_vnfd.rb +35 -0
- data/lib/fog/nfv/huaweicloud/requests/delete_vnf.rb +23 -0
- data/lib/fog/nfv/huaweicloud/requests/delete_vnfd.rb +23 -0
- data/lib/fog/nfv/huaweicloud/requests/get_vnf.rb +24 -0
- data/lib/fog/nfv/huaweicloud/requests/get_vnfd.rb +24 -0
- data/lib/fog/nfv/huaweicloud/requests/list_vnfds.rb +25 -0
- data/lib/fog/nfv/huaweicloud/requests/list_vnfs.rb +25 -0
- data/lib/fog/nfv/huaweicloud/requests/update_vnf.rb +35 -0
- data/lib/fog/nfv/huaweicloud.rb +133 -0
- data/lib/fog/orchestration/huaweicloud/models/event.rb +18 -0
- data/lib/fog/orchestration/huaweicloud/models/events.rb +31 -0
- data/lib/fog/orchestration/huaweicloud/models/resource.rb +30 -0
- data/lib/fog/orchestration/huaweicloud/models/resource_schemas.rb +15 -0
- data/lib/fog/orchestration/huaweicloud/models/resources.rb +35 -0
- data/lib/fog/orchestration/huaweicloud/models/stack.rb +128 -0
- data/lib/fog/orchestration/huaweicloud/models/stacks.rb +64 -0
- data/lib/fog/orchestration/huaweicloud/models/template.rb +13 -0
- data/lib/fog/orchestration/huaweicloud/models/templates.rb +45 -0
- data/lib/fog/orchestration/huaweicloud/requests/abandon_stack.rb +15 -0
- data/lib/fog/orchestration/huaweicloud/requests/build_info.rb +15 -0
- data/lib/fog/orchestration/huaweicloud/requests/cancel_update.rb +26 -0
- data/lib/fog/orchestration/huaweicloud/requests/create_stack.rb +99 -0
- data/lib/fog/orchestration/huaweicloud/requests/delete_stack.rb +58 -0
- data/lib/fog/orchestration/huaweicloud/requests/get_stack_template.rb +20 -0
- data/lib/fog/orchestration/huaweicloud/requests/list_events.rb +46 -0
- data/lib/fog/orchestration/huaweicloud/requests/list_resource_events.rb +28 -0
- data/lib/fog/orchestration/huaweicloud/requests/list_resource_types.rb +27 -0
- data/lib/fog/orchestration/huaweicloud/requests/list_resources.rb +46 -0
- data/lib/fog/orchestration/huaweicloud/requests/list_stack_data.rb +27 -0
- data/lib/fog/orchestration/huaweicloud/requests/list_stack_data_detailed.rb +49 -0
- data/lib/fog/orchestration/huaweicloud/requests/list_stack_events.rb +27 -0
- data/lib/fog/orchestration/huaweicloud/requests/patch_stack.rb +37 -0
- data/lib/fog/orchestration/huaweicloud/requests/preview_stack.rb +16 -0
- data/lib/fog/orchestration/huaweicloud/requests/show_event_details.rb +26 -0
- data/lib/fog/orchestration/huaweicloud/requests/show_resource_data.rb +26 -0
- data/lib/fog/orchestration/huaweicloud/requests/show_resource_metadata.rb +26 -0
- data/lib/fog/orchestration/huaweicloud/requests/show_resource_schema.rb +15 -0
- data/lib/fog/orchestration/huaweicloud/requests/show_resource_template.rb +20 -0
- data/lib/fog/orchestration/huaweicloud/requests/show_stack_details.rb +26 -0
- data/lib/fog/orchestration/huaweicloud/requests/update_stack.rb +88 -0
- data/lib/fog/orchestration/huaweicloud/requests/validate_template.rb +16 -0
- data/lib/fog/orchestration/huaweicloud.rb +156 -0
- data/lib/fog/orchestration/util/recursive_hot_file_loader.rb +220 -0
- data/lib/fog/planning/huaweicloud/models/plan.rb +69 -0
- data/lib/fog/planning/huaweicloud/models/plans.rb +31 -0
- data/lib/fog/planning/huaweicloud/models/role.rb +23 -0
- data/lib/fog/planning/huaweicloud/models/roles.rb +16 -0
- data/lib/fog/planning/huaweicloud/requests/add_role_to_plan.rb +40 -0
- data/lib/fog/planning/huaweicloud/requests/create_plan.rb +33 -0
- data/lib/fog/planning/huaweicloud/requests/delete_plan.rb +23 -0
- data/lib/fog/planning/huaweicloud/requests/get_plan.rb +58 -0
- data/lib/fog/planning/huaweicloud/requests/get_plan_templates.rb +28 -0
- data/lib/fog/planning/huaweicloud/requests/list_plans.rb +61 -0
- data/lib/fog/planning/huaweicloud/requests/list_roles.rb +32 -0
- data/lib/fog/planning/huaweicloud/requests/patch_plan.rb +51 -0
- data/lib/fog/planning/huaweicloud/requests/remove_role_from_plan.rb +32 -0
- data/lib/fog/planning/huaweicloud.rb +149 -0
- data/lib/fog/shared_file_system/huaweicloud/models/availability_zone.rb +15 -0
- data/lib/fog/shared_file_system/huaweicloud/models/availability_zones.rb +16 -0
- data/lib/fog/shared_file_system/huaweicloud/models/network.rb +42 -0
- data/lib/fog/shared_file_system/huaweicloud/models/networks.rb +28 -0
- data/lib/fog/shared_file_system/huaweicloud/models/share.rb +95 -0
- data/lib/fog/shared_file_system/huaweicloud/models/share_access_rule.rb +35 -0
- data/lib/fog/shared_file_system/huaweicloud/models/share_access_rules.rb +30 -0
- data/lib/fog/shared_file_system/huaweicloud/models/share_export_location.rb +16 -0
- data/lib/fog/shared_file_system/huaweicloud/models/share_export_locations.rb +31 -0
- data/lib/fog/shared_file_system/huaweicloud/models/shares.rb +28 -0
- data/lib/fog/shared_file_system/huaweicloud/models/snapshot.rb +45 -0
- data/lib/fog/shared_file_system/huaweicloud/models/snapshots.rb +28 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/add_security_service_to_share_network.rb +28 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/create_security_service.rb +47 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/create_share.rb +49 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/create_share_network.rb +41 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/create_snapshot.rb +46 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/delete_security_service.rb +24 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/delete_share.rb +29 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/delete_share_network.rb +28 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/delete_snapshot.rb +30 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/extend_share.rb +24 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/get_limits.rb +45 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/get_quota.rb +26 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/get_security_service.rb +26 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/get_share.rb +26 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/get_share_export_location.rb +29 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/get_share_network.rb +26 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/get_snapshot.rb +26 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/grant_share_access.rb +34 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_availability_zones.rb +24 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_security_services.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_security_services_detail.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_share_access_rules.rb +29 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_share_export_locations.rb +27 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_share_networks.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_share_networks_detail.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_shares.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_shares_detail.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_snapshots.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/list_snapshots_detail.rb +25 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/remove_security_service_from_share_network.rb +28 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/revoke_share_access.rb +24 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/share_action.rb +16 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/share_network_action.rb +16 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/shrink_share.rb +24 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/update_quota.rb +30 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/update_security_service.rb +31 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/update_share.rb +39 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/update_share_network.rb +31 -0
- data/lib/fog/shared_file_system/huaweicloud/requests/update_snapshot.rb +31 -0
- data/lib/fog/shared_file_system/huaweicloud.rb +389 -0
- data/lib/fog/storage/huaweicloud/models/directories.rb +36 -0
- data/lib/fog/storage/huaweicloud/models/directory.rb +50 -0
- data/lib/fog/storage/huaweicloud/models/file.rb +195 -0
- data/lib/fog/storage/huaweicloud/models/files.rb +95 -0
- data/lib/fog/storage/huaweicloud/requests/copy_object.rb +23 -0
- data/lib/fog/storage/huaweicloud/requests/delete_container.rb +20 -0
- data/lib/fog/storage/huaweicloud/requests/delete_multiple_objects.rb +65 -0
- data/lib/fog/storage/huaweicloud/requests/delete_object.rb +21 -0
- data/lib/fog/storage/huaweicloud/requests/delete_static_large_object.rb +41 -0
- data/lib/fog/storage/huaweicloud/requests/get_container.rb +42 -0
- data/lib/fog/storage/huaweicloud/requests/get_containers.rb +31 -0
- data/lib/fog/storage/huaweicloud/requests/get_object.rb +27 -0
- data/lib/fog/storage/huaweicloud/requests/get_object_http_url.rb +21 -0
- data/lib/fog/storage/huaweicloud/requests/get_object_https_url.rb +81 -0
- data/lib/fog/storage/huaweicloud/requests/head_container.rb +26 -0
- data/lib/fog/storage/huaweicloud/requests/head_containers.rb +23 -0
- data/lib/fog/storage/huaweicloud/requests/head_object.rb +21 -0
- data/lib/fog/storage/huaweicloud/requests/post_object.rb +26 -0
- data/lib/fog/storage/huaweicloud/requests/post_set_meta_temp_url_key.rb +33 -0
- data/lib/fog/storage/huaweicloud/requests/public_url.rb +34 -0
- data/lib/fog/storage/huaweicloud/requests/put_container.rb +24 -0
- data/lib/fog/storage/huaweicloud/requests/put_dynamic_obj_manifest.rb +41 -0
- data/lib/fog/storage/huaweicloud/requests/put_object.rb +65 -0
- data/lib/fog/storage/huaweicloud/requests/put_object_manifest.rb +14 -0
- data/lib/fog/storage/huaweicloud/requests/put_static_obj_manifest.rb +55 -0
- data/lib/fog/storage/huaweicloud.rb +177 -0
- data/lib/fog/volume/huaweicloud/models/availability_zone.rb +10 -0
- data/lib/fog/volume/huaweicloud/models/availability_zones.rb +14 -0
- data/lib/fog/volume/huaweicloud/models/backup.rb +46 -0
- data/lib/fog/volume/huaweicloud/models/backups.rb +26 -0
- data/lib/fog/volume/huaweicloud/models/snapshot.rb +38 -0
- data/lib/fog/volume/huaweicloud/models/snapshots.rb +26 -0
- data/lib/fog/volume/huaweicloud/models/transfer.rb +28 -0
- data/lib/fog/volume/huaweicloud/models/transfers.rb +34 -0
- data/lib/fog/volume/huaweicloud/models/volume.rb +66 -0
- data/lib/fog/volume/huaweicloud/models/volume_type.rb +35 -0
- data/lib/fog/volume/huaweicloud/models/volume_types.rb +22 -0
- data/lib/fog/volume/huaweicloud/models/volumes.rb +35 -0
- data/lib/fog/volume/huaweicloud/requests/accept_transfer.rb +22 -0
- data/lib/fog/volume/huaweicloud/requests/action.rb +16 -0
- data/lib/fog/volume/huaweicloud/requests/create_backup.rb +49 -0
- data/lib/fog/volume/huaweicloud/requests/create_snapshot.rb +18 -0
- data/lib/fog/volume/huaweicloud/requests/create_transfer.rb +25 -0
- data/lib/fog/volume/huaweicloud/requests/create_volume.rb +23 -0
- data/lib/fog/volume/huaweicloud/requests/create_volume_type.rb +41 -0
- data/lib/fog/volume/huaweicloud/requests/delete_backup.rb +23 -0
- data/lib/fog/volume/huaweicloud/requests/delete_metadata.rb +15 -0
- data/lib/fog/volume/huaweicloud/requests/delete_snapshot.rb +23 -0
- data/lib/fog/volume/huaweicloud/requests/delete_snapshot_metadata.rb +15 -0
- data/lib/fog/volume/huaweicloud/requests/delete_transfer.rb +15 -0
- data/lib/fog/volume/huaweicloud/requests/delete_volume.rb +23 -0
- data/lib/fog/volume/huaweicloud/requests/delete_volume_type.rb +23 -0
- data/lib/fog/volume/huaweicloud/requests/extend_volume.rb +25 -0
- data/lib/fog/volume/huaweicloud/requests/get_backup_details.rb +34 -0
- data/lib/fog/volume/huaweicloud/requests/get_quota.rb +26 -0
- data/lib/fog/volume/huaweicloud/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/volume/huaweicloud/requests/get_quota_usage.rb +43 -0
- data/lib/fog/volume/huaweicloud/requests/get_snapshot_details.rb +15 -0
- data/lib/fog/volume/huaweicloud/requests/get_transfer_details.rb +17 -0
- data/lib/fog/volume/huaweicloud/requests/get_volume_details.rb +15 -0
- data/lib/fog/volume/huaweicloud/requests/get_volume_type_details.rb +32 -0
- data/lib/fog/volume/huaweicloud/requests/list_backups.rb +16 -0
- data/lib/fog/volume/huaweicloud/requests/list_backups_detailed.rb +45 -0
- data/lib/fog/volume/huaweicloud/requests/list_snapshots.rb +41 -0
- data/lib/fog/volume/huaweicloud/requests/list_snapshots_detailed.rb +27 -0
- data/lib/fog/volume/huaweicloud/requests/list_transfers.rb +18 -0
- data/lib/fog/volume/huaweicloud/requests/list_transfers_detailed.rb +18 -0
- data/lib/fog/volume/huaweicloud/requests/list_volume_types.rb +41 -0
- data/lib/fog/volume/huaweicloud/requests/list_volumes.rb +30 -0
- data/lib/fog/volume/huaweicloud/requests/list_volumes_detailed.rb +16 -0
- data/lib/fog/volume/huaweicloud/requests/list_zones.rb +32 -0
- data/lib/fog/volume/huaweicloud/requests/replace_metadata.rb +20 -0
- data/lib/fog/volume/huaweicloud/requests/restore_backup.rb +17 -0
- data/lib/fog/volume/huaweicloud/requests/set_tenant.rb +19 -0
- data/lib/fog/volume/huaweicloud/requests/snapshot_action.rb +16 -0
- data/lib/fog/volume/huaweicloud/requests/update_metadata.rb +20 -0
- data/lib/fog/volume/huaweicloud/requests/update_quota.rb +27 -0
- data/lib/fog/volume/huaweicloud/requests/update_snapshot.rb +37 -0
- data/lib/fog/volume/huaweicloud/requests/update_snapshot_metadata.rb +20 -0
- data/lib/fog/volume/huaweicloud/requests/update_volume.rb +25 -0
- data/lib/fog/volume/huaweicloud/requests/update_volume_type.rb +41 -0
- data/lib/fog/volume/huaweicloud/v1/models/availability_zone.rb +15 -0
- data/lib/fog/volume/huaweicloud/v1/models/availability_zones.rb +16 -0
- data/lib/fog/volume/huaweicloud/v1/models/backup.rb +15 -0
- data/lib/fog/volume/huaweicloud/v1/models/backups.rb +16 -0
- data/lib/fog/volume/huaweicloud/v1/models/snapshot.rb +44 -0
- data/lib/fog/volume/huaweicloud/v1/models/snapshots.rb +16 -0
- data/lib/fog/volume/huaweicloud/v1/models/transfer.rb +18 -0
- data/lib/fog/volume/huaweicloud/v1/models/transfers.rb +16 -0
- data/lib/fog/volume/huaweicloud/v1/models/volume.rb +37 -0
- data/lib/fog/volume/huaweicloud/v1/models/volume_type.rb +16 -0
- data/lib/fog/volume/huaweicloud/v1/models/volume_types.rb +16 -0
- data/lib/fog/volume/huaweicloud/v1/models/volumes.rb +16 -0
- data/lib/fog/volume/huaweicloud/v1/requests/accept_transfer.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/action.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/create_backup.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/create_snapshot.rb +45 -0
- data/lib/fog/volume/huaweicloud/v1/requests/create_transfer.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/create_volume.rb +49 -0
- data/lib/fog/volume/huaweicloud/v1/requests/create_volume_type.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/delete_backup.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/delete_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/delete_snapshot.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/delete_transfer.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/delete_volume.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/delete_volume_type.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/extend_volume.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_backup_details.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_quota.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_quota_usage.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_transfer_details.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_volume_details.rb +35 -0
- data/lib/fog/volume/huaweicloud/v1/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_backups.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_snapshots.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_transfers.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_volume_types.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_volumes.rb +46 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/volume/huaweicloud/v1/requests/list_zones.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/real.rb +11 -0
- data/lib/fog/volume/huaweicloud/v1/requests/real_mock.rb +14 -0
- data/lib/fog/volume/huaweicloud/v1/requests/replace_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/restore_backup.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/set_tenant.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/update_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/update_quota.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/update_snapshot.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1/requests/update_volume.rb +2 -0
- data/lib/fog/volume/huaweicloud/v1.rb +183 -0
- data/lib/fog/volume/huaweicloud/v2/models/availability_zone.rb +15 -0
- data/lib/fog/volume/huaweicloud/v2/models/availability_zones.rb +16 -0
- data/lib/fog/volume/huaweicloud/v2/models/backup.rb +15 -0
- data/lib/fog/volume/huaweicloud/v2/models/backups.rb +16 -0
- data/lib/fog/volume/huaweicloud/v2/models/snapshot.rb +44 -0
- data/lib/fog/volume/huaweicloud/v2/models/snapshots.rb +16 -0
- data/lib/fog/volume/huaweicloud/v2/models/transfer.rb +18 -0
- data/lib/fog/volume/huaweicloud/v2/models/transfers.rb +16 -0
- data/lib/fog/volume/huaweicloud/v2/models/volume.rb +37 -0
- data/lib/fog/volume/huaweicloud/v2/models/volume_type.rb +16 -0
- data/lib/fog/volume/huaweicloud/v2/models/volume_types.rb +16 -0
- data/lib/fog/volume/huaweicloud/v2/models/volumes.rb +16 -0
- data/lib/fog/volume/huaweicloud/v2/requests/accept_transfer.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/action.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/create_backup.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/create_snapshot.rb +45 -0
- data/lib/fog/volume/huaweicloud/v2/requests/create_transfer.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/create_volume.rb +49 -0
- data/lib/fog/volume/huaweicloud/v2/requests/create_volume_type.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/delete_backup.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/delete_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/delete_snapshot.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/delete_transfer.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/delete_volume.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/delete_volume_type.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/extend_volume.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_backup_details.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_quota.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_quota_usage.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_transfer_details.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_volume_details.rb +35 -0
- data/lib/fog/volume/huaweicloud/v2/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_backups.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_snapshots.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_transfers.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_volume_types.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_volumes.rb +46 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/volume/huaweicloud/v2/requests/list_zones.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/real.rb +11 -0
- data/lib/fog/volume/huaweicloud/v2/requests/real_mock.rb +14 -0
- data/lib/fog/volume/huaweicloud/v2/requests/replace_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/restore_backup.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/set_tenant.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/snapshot_action.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/update_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/update_quota.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/update_snapshot.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/update_volume.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2/requests/update_volume_type.rb +2 -0
- data/lib/fog/volume/huaweicloud/v2.rb +185 -0
- data/lib/fog/volume/huaweicloud.rb +33 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/create_action.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/create_action_execution.rb +31 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/create_cron_trigger.rb +55 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/create_environment.rb +31 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/create_execution.rb +30 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/create_workbook.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/create_workflow.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/delete_action.rb +25 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/delete_action_execution.rb +25 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/delete_cron_trigger.rb +25 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/delete_environment.rb +25 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/delete_execution.rb +25 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/delete_workbook.rb +25 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/delete_workflow.rb +25 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_action.rb +27 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_action_execution.rb +26 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_cron_trigger.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_environment.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_execution.rb +26 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_task.rb +27 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_workbook.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/get_workflow.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_action_executions.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_actions.rb +30 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_cron_triggers.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_environments.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_executions.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_services.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_tasks.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_workbooks.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/list_workflows.rb +30 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/rerun_task.rb +33 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/update_action.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/update_action_execution.rb +33 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/update_environment.rb +31 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/update_execution.rb +33 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/update_workbook.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/update_workflow.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/validate_action.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/validate_workbook.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2/requests/validate_workflow.rb +28 -0
- data/lib/fog/workflow/huaweicloud/v2.rb +160 -0
- data/lib/fog/workflow/huaweicloud.rb +12 -0
- data/supported.md +56 -0
- metadata +1294 -15
@@ -0,0 +1,413 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class HuaweiCloud < Fog::Service
|
4
|
+
SUPPORTED_VERSIONS = /v2\.0|v2\.1/
|
5
|
+
SUPPORTED_MICROVERSION = '2.15'.freeze
|
6
|
+
|
7
|
+
requires :huaweicloud_auth_url
|
8
|
+
recognizes :huaweicloud_auth_token, :huaweicloud_management_url,
|
9
|
+
:persistent, :huaweicloud_service_type, :huaweicloud_service_name,
|
10
|
+
:huaweicloud_tenant, :huaweicloud_tenant_id,
|
11
|
+
:huaweicloud_api_key, :huaweicloud_username, :huaweicloud_identity_endpoint,
|
12
|
+
:current_user, :current_tenant, :huaweicloud_region,
|
13
|
+
:huaweicloud_endpoint_type, :huaweicloud_cache_ttl,
|
14
|
+
:huaweicloud_project_name, :huaweicloud_project_id,
|
15
|
+
:huaweicloud_project_domain, :huaweicloud_user_domain, :huaweicloud_domain_name,
|
16
|
+
:huaweicloud_project_domain_id, :huaweicloud_user_domain_id, :huaweicloud_domain_id,
|
17
|
+
:huaweicloud_identity_prefix
|
18
|
+
|
19
|
+
## MODELS
|
20
|
+
#
|
21
|
+
model_path 'fog/compute/huaweicloud/models'
|
22
|
+
model :aggregate
|
23
|
+
collection :aggregates
|
24
|
+
model :availability_zone
|
25
|
+
collection :availability_zones
|
26
|
+
model :server
|
27
|
+
collection :servers
|
28
|
+
model :service
|
29
|
+
collection :services
|
30
|
+
model :image
|
31
|
+
collection :images
|
32
|
+
model :flavor
|
33
|
+
collection :flavors
|
34
|
+
model :metadatum
|
35
|
+
collection :metadata
|
36
|
+
model :address
|
37
|
+
collection :addresses
|
38
|
+
model :security_group
|
39
|
+
collection :security_groups
|
40
|
+
model :security_group_rule
|
41
|
+
collection :security_group_rules
|
42
|
+
model :key_pair
|
43
|
+
collection :key_pairs
|
44
|
+
model :tenant
|
45
|
+
collection :tenants
|
46
|
+
model :volume
|
47
|
+
collection :volumes
|
48
|
+
model :volume_attachment
|
49
|
+
collection :volume_attachments
|
50
|
+
model :network
|
51
|
+
collection :networks
|
52
|
+
model :snapshot
|
53
|
+
collection :snapshots
|
54
|
+
model :host
|
55
|
+
collection :hosts
|
56
|
+
model :server_group
|
57
|
+
collection :server_groups
|
58
|
+
model :os_interface
|
59
|
+
collection :os_interfaces
|
60
|
+
|
61
|
+
## REQUESTS
|
62
|
+
#
|
63
|
+
request_path 'fog/compute/huaweicloud/requests'
|
64
|
+
|
65
|
+
# Aggregate CRUD
|
66
|
+
request :list_aggregates
|
67
|
+
request :create_aggregate
|
68
|
+
request :update_aggregate
|
69
|
+
request :get_aggregate
|
70
|
+
request :update_aggregate
|
71
|
+
request :update_aggregate_metadata
|
72
|
+
request :add_aggregate_host
|
73
|
+
request :remove_aggregate_host
|
74
|
+
request :delete_aggregate
|
75
|
+
|
76
|
+
# Server CRUD
|
77
|
+
request :list_servers
|
78
|
+
request :list_servers_detail
|
79
|
+
request :create_server
|
80
|
+
request :get_server_details
|
81
|
+
request :get_server_password
|
82
|
+
request :update_server
|
83
|
+
request :delete_server
|
84
|
+
|
85
|
+
# Server Actions
|
86
|
+
request :server_actions
|
87
|
+
request :server_action
|
88
|
+
request :reboot_server
|
89
|
+
request :rebuild_server
|
90
|
+
request :resize_server
|
91
|
+
request :confirm_resize_server
|
92
|
+
request :revert_resize_server
|
93
|
+
request :pause_server
|
94
|
+
request :unpause_server
|
95
|
+
request :suspend_server
|
96
|
+
request :resume_server
|
97
|
+
request :start_server
|
98
|
+
request :stop_server
|
99
|
+
request :rescue_server
|
100
|
+
request :change_server_password
|
101
|
+
request :add_fixed_ip
|
102
|
+
request :remove_fixed_ip
|
103
|
+
request :server_diagnostics
|
104
|
+
request :boot_from_snapshot
|
105
|
+
request :reset_server_state
|
106
|
+
request :add_security_group
|
107
|
+
request :remove_security_group
|
108
|
+
request :shelve_server
|
109
|
+
request :unshelve_server
|
110
|
+
request :shelve_offload_server
|
111
|
+
|
112
|
+
# Server Extenstions
|
113
|
+
request :get_console_output
|
114
|
+
request :get_vnc_console
|
115
|
+
request :live_migrate_server
|
116
|
+
request :migrate_server
|
117
|
+
request :evacuate_server
|
118
|
+
|
119
|
+
# Server Remote Consoles
|
120
|
+
request :remote_consoles
|
121
|
+
|
122
|
+
# Service CRUD
|
123
|
+
request :list_services
|
124
|
+
request :enable_service
|
125
|
+
request :disable_service
|
126
|
+
request :disable_service_log_reason
|
127
|
+
request :delete_service
|
128
|
+
|
129
|
+
# Image CRUD
|
130
|
+
request :list_images
|
131
|
+
request :list_images_detail
|
132
|
+
request :create_image
|
133
|
+
request :get_image_details
|
134
|
+
request :delete_image
|
135
|
+
|
136
|
+
# Flavor CRUD
|
137
|
+
request :list_flavors
|
138
|
+
request :list_flavors_detail
|
139
|
+
request :get_flavor_details
|
140
|
+
request :create_flavor
|
141
|
+
request :delete_flavor
|
142
|
+
|
143
|
+
# Flavor Actions
|
144
|
+
request :get_flavor_metadata
|
145
|
+
request :create_flavor_metadata
|
146
|
+
request :update_flavor_metadata
|
147
|
+
request :delete_flavor_metadata
|
148
|
+
|
149
|
+
# Flavor Access
|
150
|
+
request :add_flavor_access
|
151
|
+
request :remove_flavor_access
|
152
|
+
request :list_tenants_with_flavor_access
|
153
|
+
|
154
|
+
# Hypervisor
|
155
|
+
request :get_hypervisor_statistics
|
156
|
+
request :get_hypervisor
|
157
|
+
request :list_hypervisors
|
158
|
+
request :list_hypervisors_detail
|
159
|
+
request :list_hypervisor_servers
|
160
|
+
|
161
|
+
# Metadata
|
162
|
+
request :list_metadata
|
163
|
+
request :get_metadata
|
164
|
+
request :set_metadata
|
165
|
+
request :update_metadata
|
166
|
+
request :delete_metadata
|
167
|
+
|
168
|
+
# Metadatam
|
169
|
+
request :delete_meta
|
170
|
+
request :update_meta
|
171
|
+
|
172
|
+
# Address
|
173
|
+
request :list_addresses
|
174
|
+
request :list_address_pools
|
175
|
+
request :list_all_addresses
|
176
|
+
request :list_private_addresses
|
177
|
+
request :list_public_addresses
|
178
|
+
request :get_address
|
179
|
+
request :allocate_address
|
180
|
+
request :associate_address
|
181
|
+
request :release_address
|
182
|
+
request :disassociate_address
|
183
|
+
|
184
|
+
# Security Group
|
185
|
+
request :list_security_groups
|
186
|
+
request :get_security_group
|
187
|
+
request :create_security_group
|
188
|
+
request :create_security_group_rule
|
189
|
+
request :delete_security_group
|
190
|
+
request :delete_security_group_rule
|
191
|
+
request :get_security_group_rule
|
192
|
+
|
193
|
+
# Key Pair
|
194
|
+
request :list_key_pairs
|
195
|
+
request :get_key_pair
|
196
|
+
request :create_key_pair
|
197
|
+
request :delete_key_pair
|
198
|
+
|
199
|
+
# Tenant
|
200
|
+
request :list_tenants
|
201
|
+
request :set_tenant
|
202
|
+
request :get_limits
|
203
|
+
|
204
|
+
# Volume
|
205
|
+
request :list_volumes
|
206
|
+
request :list_volumes_detail
|
207
|
+
request :create_volume
|
208
|
+
request :get_volume_details
|
209
|
+
request :delete_volume
|
210
|
+
request :attach_volume
|
211
|
+
request :detach_volume
|
212
|
+
request :get_server_volumes
|
213
|
+
request :list_volume_attachments
|
214
|
+
|
215
|
+
# Snapshot
|
216
|
+
request :create_snapshot
|
217
|
+
request :list_snapshots
|
218
|
+
request :list_snapshots_detail
|
219
|
+
request :get_snapshot_details
|
220
|
+
request :delete_snapshot
|
221
|
+
|
222
|
+
# Usage
|
223
|
+
request :list_usages
|
224
|
+
request :get_usage
|
225
|
+
|
226
|
+
# Quota
|
227
|
+
request :get_quota
|
228
|
+
request :get_quota_defaults
|
229
|
+
request :update_quota
|
230
|
+
|
231
|
+
# Hosts
|
232
|
+
request :list_hosts
|
233
|
+
request :get_host_details
|
234
|
+
|
235
|
+
# Zones
|
236
|
+
request :list_zones
|
237
|
+
request :list_zones_detailed
|
238
|
+
request :list_availability_zones
|
239
|
+
|
240
|
+
# Server Group
|
241
|
+
request :list_server_groups
|
242
|
+
request :get_server_group
|
243
|
+
request :create_server_group
|
244
|
+
request :delete_server_group
|
245
|
+
|
246
|
+
# Server Os Interfaces
|
247
|
+
request :list_os_interfaces
|
248
|
+
request :get_os_interface
|
249
|
+
request :create_os_interface
|
250
|
+
request :delete_os_interface
|
251
|
+
|
252
|
+
class Mock
|
253
|
+
attr_reader :auth_token
|
254
|
+
attr_reader :auth_token_expiration
|
255
|
+
attr_reader :current_user
|
256
|
+
attr_reader :current_tenant
|
257
|
+
|
258
|
+
def self.data
|
259
|
+
@data ||= Hash.new do |hash, key|
|
260
|
+
hash[key] = {
|
261
|
+
:last_modified => {
|
262
|
+
:images => {},
|
263
|
+
:servers => {},
|
264
|
+
:key_pairs => {},
|
265
|
+
:security_groups => {},
|
266
|
+
:addresses => {}
|
267
|
+
},
|
268
|
+
:aggregates => [{
|
269
|
+
"availability_zone" => "nova",
|
270
|
+
"created_at" => "2012-11-16T06:22:23.032493",
|
271
|
+
"deleted" => false,
|
272
|
+
"deleted_at" => nil,
|
273
|
+
"id" => 1,
|
274
|
+
"name" => "name",
|
275
|
+
"updated_at" => nil
|
276
|
+
}],
|
277
|
+
:images => {
|
278
|
+
"0e09fbd6-43c5-448a-83e9-0d3d05f9747e" => {
|
279
|
+
"id" => "0e09fbd6-43c5-448a-83e9-0d3d05f9747e",
|
280
|
+
"name" => "cirros-0.3.0-x86_64-blank",
|
281
|
+
'progress' => 100,
|
282
|
+
'status' => "ACTIVE",
|
283
|
+
'updated' => "",
|
284
|
+
'minRam' => 0,
|
285
|
+
'minDisk' => 0,
|
286
|
+
'metadata' => {},
|
287
|
+
'links' => [{"href" => "http://nova1:8774/v1.1/admin/images/1", "rel" => "self"},
|
288
|
+
{"href" => "http://nova1:8774/admin/images/2", "rel" => "bookmark"}]
|
289
|
+
}
|
290
|
+
},
|
291
|
+
:servers => {},
|
292
|
+
:key_pairs => {},
|
293
|
+
:security_groups => {
|
294
|
+
'0' => {
|
295
|
+
"id" => 0,
|
296
|
+
"tenant_id" => Fog::Mock.random_hex(8),
|
297
|
+
"name" => "default",
|
298
|
+
"description" => "default",
|
299
|
+
"rules" => [
|
300
|
+
{"id" => 0,
|
301
|
+
"parent_group_id" => 0,
|
302
|
+
"from_port" => 68,
|
303
|
+
"to_port" => 68,
|
304
|
+
"ip_protocol" => "udp",
|
305
|
+
"ip_range" => {"cidr" => "0.0.0.0/0"},
|
306
|
+
"group" => {}},
|
307
|
+
],
|
308
|
+
},
|
309
|
+
},
|
310
|
+
:server_groups => {},
|
311
|
+
:server_security_group_map => {},
|
312
|
+
:addresses => {},
|
313
|
+
:quota => {
|
314
|
+
'security_group_rules' => 20,
|
315
|
+
'security_groups' => 10,
|
316
|
+
'injected_file_content_bytes' => 10240,
|
317
|
+
'injected_file_path_bytes' => 256,
|
318
|
+
'injected_files' => 5,
|
319
|
+
'metadata_items' => 128,
|
320
|
+
'floating_ips' => 10,
|
321
|
+
'instances' => 10,
|
322
|
+
'key_pairs' => 10,
|
323
|
+
'gigabytes' => 5000,
|
324
|
+
'volumes' => 10,
|
325
|
+
'cores' => 20,
|
326
|
+
'ram' => 51200
|
327
|
+
},
|
328
|
+
:volumes => {},
|
329
|
+
:snapshots => {},
|
330
|
+
:os_interfaces => [
|
331
|
+
{
|
332
|
+
"fixed_ips" => [
|
333
|
+
{
|
334
|
+
"ip_address" => "192.168.1.3",
|
335
|
+
"subnet_id" => "f8a6e8f8-c2ec-497c-9f23-da9616de54ef"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"mac_addr" => "fa:16:3e:4c:2c:30",
|
339
|
+
"subnet_id" => "3cb9bc59-5699-4588-a4b1-b87f96708bc6",
|
340
|
+
"port_id" => "ce531f90-199f-48c0-816c-13e38010b442",
|
341
|
+
"port_state" => "ACTIVE"
|
342
|
+
}
|
343
|
+
]
|
344
|
+
}
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
def self.reset
|
349
|
+
@data = nil
|
350
|
+
end
|
351
|
+
|
352
|
+
include Fog::HuaweiCloud::Core
|
353
|
+
|
354
|
+
def initialize(options = {})
|
355
|
+
@auth_token = Fog::Mock.random_base64(64)
|
356
|
+
@auth_token_expiration = (Time.now.utc + 86400).iso8601
|
357
|
+
|
358
|
+
initialize_identity options
|
359
|
+
|
360
|
+
management_url = URI.parse(options[:huaweicloud_auth_url])
|
361
|
+
management_url.port = 8774
|
362
|
+
management_url.path = '/v1.1/1'
|
363
|
+
@huaweicloud_management_url = management_url.to_s
|
364
|
+
|
365
|
+
identity_public_endpoint = URI.parse(options[:huaweicloud_auth_url])
|
366
|
+
identity_public_endpoint.port = 5000
|
367
|
+
@huaweicloud_identity_public_endpoint = identity_public_endpoint.to_s
|
368
|
+
end
|
369
|
+
|
370
|
+
def data
|
371
|
+
self.class.data["#{@huaweicloud_username}-#{@current_tenant}"]
|
372
|
+
end
|
373
|
+
|
374
|
+
def reset_data
|
375
|
+
self.class.data.delete("#{@huaweicloud_username}-#{@current_tenant}")
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
class Real
|
380
|
+
include Fog::HuaweiCloud::Core
|
381
|
+
|
382
|
+
def self.not_found_class
|
383
|
+
Fog::Compute::HuaweiCloud::NotFound
|
384
|
+
end
|
385
|
+
|
386
|
+
def initialize(options = {})
|
387
|
+
@supported_versions = SUPPORTED_VERSIONS
|
388
|
+
@supported_microversion = SUPPORTED_MICROVERSION
|
389
|
+
@microversion_key = 'X-HuaweiCloud-Nova-API-Version'
|
390
|
+
|
391
|
+
initialize_identity options
|
392
|
+
|
393
|
+
@huaweicloud_identity_service_type = options[:huaweicloud_identity_service_type] || 'identity'
|
394
|
+
|
395
|
+
@huaweicloud_service_type = options[:huaweicloud_service_type] || %w(nova compute)
|
396
|
+
@huaweicloud_service_name = options[:huaweicloud_service_name]
|
397
|
+
|
398
|
+
@connection_options = options[:connection_options] || {}
|
399
|
+
|
400
|
+
authenticate
|
401
|
+
|
402
|
+
unless @path =~ %r{/(v2|v2\.0|v2\.1)}
|
403
|
+
raise Fog::HuaweiCloud::Errors::ServiceUnavailable,
|
404
|
+
"HuaweiCloud compute binding only supports version v2 and v2.1"
|
405
|
+
end
|
406
|
+
|
407
|
+
@persistent = options[:persistent] || false
|
408
|
+
@connection = Fog::Core::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
end
|
412
|
+
end
|
413
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'fog/huaweicloud/models/model'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module ContainerInfra
|
5
|
+
class HuaweiCloud
|
6
|
+
class Base < Fog::HuaweiCloud::Model
|
7
|
+
def convert_update_params(params)
|
8
|
+
params = params.map do |key, value|
|
9
|
+
{
|
10
|
+
"path" => "/#{key}",
|
11
|
+
"op" => value ? "replace" : "remove"
|
12
|
+
}.merge(value ? {"value" => value} : {})
|
13
|
+
end
|
14
|
+
params.each {|k,v| params[k] = v.to_s.capitalize if [true, false].include?(v)}
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module ContainerInfra
|
5
|
+
class HuaweiCloud
|
6
|
+
class Bay < Fog::ContainerInfra::HuaweiCloud::Base
|
7
|
+
identity :uuid
|
8
|
+
|
9
|
+
attribute :api_address
|
10
|
+
attribute :coe_version
|
11
|
+
attribute :baymodel_id
|
12
|
+
attribute :create_timeout
|
13
|
+
attribute :created_at
|
14
|
+
attribute :discovery_url
|
15
|
+
attribute :master_addresses
|
16
|
+
attribute :master_count
|
17
|
+
attribute :name
|
18
|
+
attribute :node_addresses
|
19
|
+
attribute :node_count
|
20
|
+
attribute :stack_id
|
21
|
+
attribute :status
|
22
|
+
attribute :status_reason
|
23
|
+
attribute :updated_at
|
24
|
+
|
25
|
+
def create
|
26
|
+
requires :name, :baymodel_id
|
27
|
+
merge_attributes(service.create_bay(attributes).body)
|
28
|
+
self
|
29
|
+
end
|
30
|
+
|
31
|
+
def update
|
32
|
+
requires :uuid, :name, :baymodel_id
|
33
|
+
attrs = attributes.select{|k,_| allowed_update_attributes.include? k}
|
34
|
+
attrs = convert_update_params(attrs)
|
35
|
+
merge_attributes(service.update_bay(uuid, attrs).body)
|
36
|
+
self
|
37
|
+
end
|
38
|
+
|
39
|
+
def destroy
|
40
|
+
requires :uuid
|
41
|
+
service.delete_bay(uuid)
|
42
|
+
true
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def allowed_update_attributes
|
48
|
+
[
|
49
|
+
:node_count
|
50
|
+
]
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module ContainerInfra
|
5
|
+
class HuaweiCloud
|
6
|
+
class BayModel < Fog::ContainerInfra::HuaweiCloud::Base
|
7
|
+
identity :uuid
|
8
|
+
|
9
|
+
attribute :apiserver_port
|
10
|
+
attribute :cluster_distro
|
11
|
+
attribute :coe
|
12
|
+
attribute :created_at
|
13
|
+
attribute :dns_nameserver
|
14
|
+
attribute :docker_storage_driver
|
15
|
+
attribute :docker_volume_size
|
16
|
+
attribute :external_network_id
|
17
|
+
attribute :fixed_network
|
18
|
+
attribute :fixed_subnet
|
19
|
+
attribute :flavor_id
|
20
|
+
attribute :floating_ip_enabled
|
21
|
+
attribute :http_proxy
|
22
|
+
attribute :https_proxy
|
23
|
+
attribute :image_id
|
24
|
+
attribute :insecure_registry
|
25
|
+
attribute :keypair_id
|
26
|
+
attribute :labels
|
27
|
+
attribute :master_flavor_id
|
28
|
+
attribute :master_lb_enabled
|
29
|
+
attribute :name
|
30
|
+
attribute :network_driver
|
31
|
+
attribute :no_proxy
|
32
|
+
attribute :public
|
33
|
+
attribute :registry_enabled
|
34
|
+
attribute :server_type
|
35
|
+
attribute :tls_disabled
|
36
|
+
attribute :updated_at
|
37
|
+
attribute :volume_driver
|
38
|
+
|
39
|
+
def create
|
40
|
+
requires :name, :keypair_id, :flavor_id, :image_id,
|
41
|
+
:external_network_id, :coe
|
42
|
+
merge_attributes(service.create_bay_model(attributes).body)
|
43
|
+
self
|
44
|
+
end
|
45
|
+
|
46
|
+
def update
|
47
|
+
requires :uuid, :name, :keypair_id, :flavor_id, :image_id,
|
48
|
+
:external_network_id, :coe
|
49
|
+
attrs = convert_update_params(attributes)
|
50
|
+
merge_attributes(service.update_bay_model(uuid, attrs).body)
|
51
|
+
self
|
52
|
+
end
|
53
|
+
|
54
|
+
def destroy
|
55
|
+
requires :uuid
|
56
|
+
service.delete_bay_model(uuid)
|
57
|
+
true
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'fog/huaweicloud/models/collection'
|
2
|
+
require 'fog/container_infra/huaweicloud/models/bay_model'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module ContainerInfra
|
6
|
+
class HuaweiCloud
|
7
|
+
class BayModels < Fog::HuaweiCloud::Collection
|
8
|
+
model Fog::ContainerInfra::HuaweiCloud::BayModel
|
9
|
+
|
10
|
+
def all
|
11
|
+
load_response(service.list_bay_models, 'baymodels')
|
12
|
+
end
|
13
|
+
|
14
|
+
def get(bay_model_uuid_or_name)
|
15
|
+
resource = service.get_bay_model(bay_model_uuid_or_name).body
|
16
|
+
new(resource)
|
17
|
+
rescue Fog::ContainerInfra::HuaweiCloud::NotFound
|
18
|
+
nil
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'fog/huaweicloud/models/collection'
|
2
|
+
require 'fog/container_infra/huaweicloud/models/bay'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module ContainerInfra
|
6
|
+
class HuaweiCloud
|
7
|
+
class Bays < Fog::HuaweiCloud::Collection
|
8
|
+
model Fog::ContainerInfra::HuaweiCloud::Bay
|
9
|
+
|
10
|
+
def all
|
11
|
+
load_response(service.list_bays, "bays")
|
12
|
+
end
|
13
|
+
|
14
|
+
def get(bay_uuid_or_name)
|
15
|
+
resource = service.get_bay(bay_uuid_or_name).body
|
16
|
+
new(resource)
|
17
|
+
rescue Fog::ContainerInfra::HuaweiCloud::NotFound
|
18
|
+
nil
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module ContainerInfra
|
5
|
+
class HuaweiCloud
|
6
|
+
class Certificate < Fog::ContainerInfra::HuaweiCloud::Base
|
7
|
+
identity :bay_uuid
|
8
|
+
|
9
|
+
attribute :pem
|
10
|
+
attribute :csr
|
11
|
+
|
12
|
+
def create
|
13
|
+
requires :csr, :bay_uuid
|
14
|
+
merge_attributes(service.create_certificate(attributes).body)
|
15
|
+
self
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'fog/huaweicloud/models/collection'
|
2
|
+
require 'fog/container_infra/huaweicloud/models/certificate'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module ContainerInfra
|
6
|
+
class HuaweiCloud
|
7
|
+
class Certificates < Fog::HuaweiCloud::Collection
|
8
|
+
|
9
|
+
model Fog::ContainerInfra::HuaweiCloud::Certificate
|
10
|
+
|
11
|
+
def create(bay_uuid)
|
12
|
+
resource = service.create_certificate(bay_uuid).body
|
13
|
+
new(resource)
|
14
|
+
end
|
15
|
+
|
16
|
+
def get(bay_uuid)
|
17
|
+
resource = service.get_certificate(bay_uuid).body
|
18
|
+
new(resource)
|
19
|
+
rescue Fog::ContainerInfra::HuaweiCloud::NotFound
|
20
|
+
nil
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module ContainerInfra
|
5
|
+
class HuaweiCloud
|
6
|
+
class Cluster < Fog::ContainerInfra::HuaweiCloud::Base
|
7
|
+
identity :uuid
|
8
|
+
|
9
|
+
attribute :api_address
|
10
|
+
attribute :coe_version
|
11
|
+
attribute :cluster_template_id
|
12
|
+
attribute :create_timeout
|
13
|
+
attribute :created_at
|
14
|
+
attribute :discovery_url
|
15
|
+
attribute :master_addresses
|
16
|
+
attribute :master_count
|
17
|
+
attribute :name
|
18
|
+
attribute :node_addresses
|
19
|
+
attribute :node_count
|
20
|
+
attribute :stack_id
|
21
|
+
attribute :status
|
22
|
+
attribute :status_reason
|
23
|
+
attribute :updated_at
|
24
|
+
|
25
|
+
def create
|
26
|
+
requires :name, :cluster_template_id
|
27
|
+
merge_attributes(service.create_cluster(attributes).body)
|
28
|
+
self
|
29
|
+
end
|
30
|
+
|
31
|
+
def update
|
32
|
+
requires :uuid, :name, :cluster_template_id
|
33
|
+
attrs = attributes.select{|k,_| allowed_update_attributes.include? k}
|
34
|
+
attrs = convert_update_params(attrs)
|
35
|
+
merge_attributes(service.update_cluster(uuid, attrs).body)
|
36
|
+
self
|
37
|
+
end
|
38
|
+
|
39
|
+
def destroy
|
40
|
+
requires :uuid
|
41
|
+
service.delete_cluster(uuid)
|
42
|
+
true
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def allowed_update_attributes
|
48
|
+
[
|
49
|
+
:node_count
|
50
|
+
]
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|