From 5b43b7370b10b77c21704b87aa6ff1213e9a371e Mon Sep 17 00:00:00 2001 From: jbtrystram Date: Thu, 4 Jun 2026 07:28:42 +0000 Subject: [PATCH] ore: drop Alibaba Cloud SDK and aliyun upload code paths The alibaba-cloud-sdk-go and aliyun-oss-go-sdk dependencies are no longer used for uploading images. Remove all ore aliyun subcommands, the platform API wrapper, auth config reader, Python upload/replicate wrappers, and the vendored SDKs (plus their transitive deps). Image building (qcow2 artifact via osbuild) is preserved. The v1.json schema and cosa_v1.go types for upload metadata are kept for backward compatibility with existing build metadata. This was prompted by orphaning of the aliyun sdk package in F44. Also, this SDK is no longer maintained upstream. Authored-by: Opencode.ai claude-opus-4-6@default --- docs/mantle/credentials.md | 43 +- docs/mantle/ore.md | 2 +- go.mod | 7 - go.sum | 54 - mantle/README.md | 44 +- mantle/auth/aliyun.go | 70 - mantle/cmd/ore/aliyun.go | 23 - mantle/cmd/ore/aliyun/aliyun.go | 59 - mantle/cmd/ore/aliyun/copy-image.go | 74 - mantle/cmd/ore/aliyun/create-image.go | 120 - mantle/cmd/ore/aliyun/delete.go | 51 - mantle/cmd/ore/aliyun/list-regions.go | 50 - mantle/cmd/ore/aliyun/visibility.go | 94 - mantle/platform/api/aliyun/api.go | 505 -- mantle/platform/api/aws/images.go | 3 +- mantle/platforms.md | 4 - rpms.in.yaml | 1 - rpms.lock.yaml | 7 - src/cmd-generate-release-meta | 4 +- src/cosalib/aliyun.py | 195 - src/cosalib/cli.py | 4 - src/deps.txt | 4 +- .../aliyun/alibaba-cloud-sdk-go/LICENSE | 201 - .../alibaba-cloud-sdk-go/sdk/api_timeout.go | 254 - .../sdk/auth/credential.go | 83 - .../auth/credentials/access_key_credential.go | 34 - .../credentials/bearer_token_credential.go | 12 - .../cli_profile_credentials_provider.go | 235 - .../sdk/auth/credentials/credentials.go | 1426 ------ .../default_credentials_provider.go | 106 - .../sdk/auth/credentials/ecs_ram_role.go | 29 - .../credentials/env_credentials_provider.go | 44 - .../profile_credentials_provider.go | 179 - .../sdk/auth/credentials/provider/env.go | 30 - .../provider/instance_credentials.go | 93 - .../provider/profile_credentials.go | 159 - .../sdk/auth/credentials/provider/provider.go | 22 - .../credentials/provider/provider_chain.go | 36 - .../credentials/rsa_key_pair_credential.go | 17 - .../sdk/auth/credentials/sts_credential.go | 15 - .../credentials/sts_role_arn_credential.go | 75 - .../credentials/uri_credentials_provider.go | 169 - .../sdk/auth/roa_signature_composer.go | 131 - .../sdk/auth/rpc_signature_composer.go | 92 - .../alibaba-cloud-sdk-go/sdk/auth/signer.go | 101 - .../sdk/auth/signers/algorithms.go | 59 - .../sdk/auth/signers/credential_updater.go | 54 - .../sdk/auth/signers/session_credential.go | 7 - .../sdk/auth/signers/signer_access_key.go | 55 - .../sdk/auth/signers/signer_bearer_token.go | 35 - .../sdk/auth/signers/signer_ecs_ram_role.go | 170 - .../sdk/auth/signers/signer_key_pair.go | 151 - .../sdk/auth/signers/signer_ram_role_arn.go | 184 - .../sdk/auth/signers/signer_sts_token.go | 55 - .../sdk/auth/signers/signer_v2.go | 55 - .../aliyun/alibaba-cloud-sdk-go/sdk/client.go | 915 ---- .../aliyun/alibaba-cloud-sdk-go/sdk/config.go | 98 - .../sdk/endpoints/endpoints_config.go | 4106 ----------------- .../sdk/endpoints/local_global_resolver.go | 29 - .../sdk/endpoints/local_regional_resolver.go | 34 - .../sdk/endpoints/location_resolver.go | 159 - .../sdk/endpoints/mapping_resolver.go | 35 - .../sdk/endpoints/resolver.go | 82 - .../sdk/errors/client_error.go | 92 - .../alibaba-cloud-sdk-go/sdk/errors/error.go | 23 - .../sdk/errors/server_error.go | 137 - .../signature_does_not_match_wrapper.go | 45 - .../alibaba-cloud-sdk-go/sdk/internal/path.go | 16 - .../sdk/internal/utils.go | 31 - .../aliyun/alibaba-cloud-sdk-go/sdk/logger.go | 116 - .../sdk/requests/acs_request.go | 538 --- .../sdk/requests/common_request.go | 113 - .../sdk/requests/roa_request.go | 149 - .../sdk/requests/rpc_request.go | 81 - .../sdk/requests/types.go | 53 - .../sdk/responses/json_parser.go | 333 -- .../sdk/responses/response.go | 150 - .../alibaba-cloud-sdk-go/sdk/utils/debug.go | 36 - .../alibaba-cloud-sdk-go/sdk/utils/doc.go | 4 - .../alibaba-cloud-sdk-go/sdk/utils/utils.go | 147 - .../alibaba-cloud-sdk-go/sdk/version.go | 4 - .../ecs/accept_inquired_system_event.go | 104 - .../services/ecs/activate_router_interface.go | 102 - .../services/ecs/add_bandwidth_package_ips.go | 105 - .../services/ecs/add_tags.go | 110 - .../services/ecs/allocate_dedicated_hosts.go | 139 - .../services/ecs/allocate_eip_address.go | 109 - .../ecs/allocate_public_ip_address.go | 106 - .../ecs/apply_auto_snapshot_policy.go | 103 - .../services/ecs/assign_ipv6_addresses.go | 111 - .../ecs/assign_private_ip_addresses.go | 109 - .../services/ecs/associate_eip_address.go | 105 - .../services/ecs/associate_ha_vip.go | 105 - .../services/ecs/attach_classic_link_vpc.go | 103 - .../services/ecs/attach_disk.go | 119 - .../services/ecs/attach_instance_ram_role.go | 108 - .../services/ecs/attach_key_pair.go | 107 - .../services/ecs/attach_network_interface.go | 107 - .../services/ecs/authorize_security_group.go | 139 - .../ecs/authorize_security_group_egress.go | 139 - .../ecs/cancel_auto_snapshot_policy.go | 102 - .../services/ecs/cancel_copy_image.go | 103 - .../ecs/cancel_image_pipeline_execution.go | 110 - .../ecs/cancel_physical_connection.go | 105 - .../ecs/cancel_simulated_system_events.go | 103 - .../services/ecs/cancel_task.go | 102 - .../services/ecs/client.go | 129 - .../services/ecs/connect_router_interface.go | 102 - .../ecs/convert_nat_public_ip_to_eip.go | 102 - .../services/ecs/copy_image.go | 118 - .../services/ecs/copy_snapshot.go | 127 - .../services/ecs/create_activation.go | 117 - .../ecs/create_auto_provisioning_group.go | 283 -- .../ecs/create_auto_snapshot_policy.go | 133 - .../ecs/create_capacity_reservation.go | 130 - .../services/ecs/create_command.go | 128 - .../ecs/create_dedicated_host_cluster.go | 115 - .../services/ecs/create_demand.go | 114 - .../services/ecs/create_deployment_set.go | 111 - .../ecs/create_diagnostic_metric_set.go | 103 - .../services/ecs/create_diagnostic_report.go | 104 - .../services/ecs/create_disk.go | 147 - .../ecs/create_elasticity_assurance.go | 140 - .../services/ecs/create_forward_entry.go | 109 - .../services/ecs/create_ha_vip.go | 107 - .../services/ecs/create_hpc_cluster.go | 106 - .../services/ecs/create_image.go | 146 - .../services/ecs/create_image_component.go | 118 - .../services/ecs/create_image_pipeline.go | 185 - .../services/ecs/create_instance.go | 203 - .../services/ecs/create_key_pair.go | 114 - .../services/ecs/create_launch_template.go | 203 - .../ecs/create_launch_template_version.go | 196 - .../services/ecs/create_nat_gateway.go | 117 - .../services/ecs/create_network_interface.go | 181 - .../create_network_interface_permission.go | 106 - .../ecs/create_physical_connection.go | 115 - .../services/ecs/create_prefix_list.go | 115 - .../services/ecs/create_route_entry.go | 114 - .../services/ecs/create_router_interface.go | 125 - .../services/ecs/create_savings_plan.go | 109 - .../services/ecs/create_security_group.go | 117 - .../ecs/create_simulated_system_events.go | 106 - .../services/ecs/create_snapshot.go | 128 - .../services/ecs/create_snapshot_group.go | 120 - .../services/ecs/create_storage_set.go | 108 - .../services/ecs/create_v_switch.go | 109 - .../ecs/create_virtual_border_router.go | 114 - .../services/ecs/create_vpc.go | 110 - .../ecs/deactivate_router_interface.go | 102 - .../services/ecs/delete_activation.go | 104 - .../ecs/delete_auto_provisioning_group.go | 104 - .../ecs/delete_auto_snapshot_policy.go | 102 - .../services/ecs/delete_bandwidth_package.go | 103 - .../services/ecs/delete_command.go | 103 - .../ecs/delete_dedicated_host_cluster.go | 103 - .../services/ecs/delete_demand.go | 105 - .../services/ecs/delete_deployment_set.go | 103 - .../ecs/delete_diagnostic_metric_sets.go | 99 - .../services/ecs/delete_diagnostic_reports.go | 99 - .../services/ecs/delete_disk.go | 103 - .../services/ecs/delete_forward_entry.go | 104 - .../services/ecs/delete_ha_vip.go | 104 - .../services/ecs/delete_hpc_cluster.go | 104 - .../services/ecs/delete_image.go | 104 - .../services/ecs/delete_image_component.go | 103 - .../services/ecs/delete_image_pipeline.go | 103 - .../services/ecs/delete_instance.go | 106 - .../services/ecs/delete_instances.go | 108 - .../services/ecs/delete_key_pairs.go | 102 - .../services/ecs/delete_launch_template.go | 106 - .../ecs/delete_launch_template_version.go | 106 - .../services/ecs/delete_nat_gateway.go | 103 - .../services/ecs/delete_network_interface.go | 103 - .../delete_network_interface_permission.go | 104 - .../ecs/delete_physical_connection.go | 104 - .../services/ecs/delete_prefix_list.go | 103 - .../services/ecs/delete_route_entry.go | 112 - .../services/ecs/delete_router_interface.go | 105 - .../services/ecs/delete_security_group.go | 103 - .../services/ecs/delete_snapshot.go | 104 - .../services/ecs/delete_snapshot_group.go | 104 - .../services/ecs/delete_storage_set.go | 104 - .../services/ecs/delete_v_switch.go | 103 - .../ecs/delete_virtual_border_router.go | 105 - .../services/ecs/delete_vpc.go | 103 - .../ecs/deregister_managed_instance.go | 104 - .../services/ecs/describe_access_points.go | 115 - .../ecs/describe_account_attributes.go | 104 - .../services/ecs/describe_activations.go | 121 - ...escribe_auto_provisioning_group_history.go | 111 - ...cribe_auto_provisioning_group_instances.go | 109 - .../ecs/describe_auto_provisioning_groups.go | 119 - .../ecs/describe_auto_snapshot_policy_ex.go | 118 - .../ecs/describe_available_resource.go | 118 - .../ecs/describe_bandwidth_limitation.go | 108 - .../ecs/describe_bandwidth_packages.go | 110 - ...describe_capacity_reservation_instances.go | 110 - .../ecs/describe_capacity_reservations.go | 123 - .../ecs/describe_classic_link_instances.go | 109 - .../ecs/describe_cloud_assistant_settings.go | 106 - .../ecs/describe_cloud_assistant_status.go | 113 - .../services/ecs/describe_clusters.go | 103 - .../services/ecs/describe_commands.go | 126 - .../ecs/describe_dedicated_host_auto_renew.go | 104 - .../ecs/describe_dedicated_host_clusters.go | 121 - .../ecs/describe_dedicated_host_types.go | 105 - .../services/ecs/describe_dedicated_hosts.go | 128 - .../services/ecs/describe_demands.go | 124 - ...ment_set_supported_instance_type_family.go | 104 - .../services/ecs/describe_deployment_sets.go | 115 - .../ecs/describe_diagnostic_metric_sets.go | 105 - .../ecs/describe_diagnostic_metrics.go | 104 - .../describe_diagnostic_report_attributes.go | 111 - .../ecs/describe_diagnostic_reports.go | 106 - .../ecs/describe_disk_default_kms_key_id.go | 100 - ...cribe_disk_encryption_by_default_status.go | 100 - .../ecs/describe_disk_monitor_data.go | 108 - .../services/ecs/describe_disks.go | 145 - .../ecs/describe_disks_full_status.go | 123 - .../services/ecs/describe_eip_addresses.go | 120 - .../services/ecs/describe_eip_monitor_data.go | 107 - ...asticity_assurance_auto_renew_attribute.go | 104 - ...describe_elasticity_assurance_instances.go | 110 - .../ecs/describe_elasticity_assurances.go | 123 - .../services/ecs/describe_eni_monitor_data.go | 109 - .../ecs/describe_forward_table_entries.go | 110 - .../services/ecs/describe_ha_vips.go | 115 - .../services/ecs/describe_hpc_clusters.go | 110 - .../services/ecs/describe_image_components.go | 122 - .../ecs/describe_image_from_family.go | 104 - .../ecs/describe_image_pipeline_executions.go | 118 - .../services/ecs/describe_image_pipelines.go | 118 - .../ecs/describe_image_share_permission.go | 112 - .../describe_image_support_instance_types.go | 113 - .../services/ecs/describe_images.go | 141 - ...describe_instance_attachment_attributes.go | 109 - .../ecs/describe_instance_attribute.go | 135 - .../describe_instance_auto_renew_attribute.go | 110 - .../ecs/describe_instance_history_events.go | 132 - ...escribe_instance_maintenance_attributes.go | 109 - .../describe_instance_modification_price.go | 120 - .../ecs/describe_instance_monitor_data.go | 107 - .../ecs/describe_instance_ram_role.go | 108 - .../services/ecs/describe_instance_status.go | 111 - .../ecs/describe_instance_topology.go | 103 - .../ecs/describe_instance_type_families.go | 104 - .../services/ecs/describe_instance_types.go | 148 - .../services/ecs/describe_instance_vnc_url.go | 104 - .../services/ecs/describe_instances.go | 157 - .../ecs/describe_instances_full_status.go | 118 - .../ecs/describe_invocation_results.go | 121 - .../services/ecs/describe_invocations.go | 129 - .../services/ecs/describe_key_pairs.go | 118 - .../ecs/describe_launch_template_versions.go | 115 - .../services/ecs/describe_launch_templates.go | 118 - .../services/ecs/describe_limitation.go | 105 - .../ecs/describe_managed_instances.go | 124 - .../services/ecs/describe_nat_gateways.go | 110 - .../describe_network_interface_attribute.go | 146 - .../describe_network_interface_permissions.go | 110 - .../ecs/describe_network_interfaces.go | 131 - .../describe_new_project_eip_monitor_data.go | 107 - .../ecs/describe_physical_connections.go | 117 - .../ecs/describe_prefix_list_associations.go | 107 - .../ecs/describe_prefix_list_attributes.go | 110 - .../services/ecs/describe_prefix_lists.go | 109 - .../services/ecs/describe_price.go | 167 - .../ecs/describe_recommend_instance_type.go | 118 - .../services/ecs/describe_regions.go | 106 - .../services/ecs/describe_renewal_price.go | 114 - ..._reserved_instance_auto_renew_attribute.go | 104 - .../ecs/describe_reserved_instances.go | 125 - .../services/ecs/describe_resource_by_tags.go | 115 - .../ecs/describe_resources_modification.go | 112 - .../services/ecs/describe_route_tables.go | 113 - .../ecs/describe_router_interfaces.go | 114 - .../ecs/describe_savings_plan_estimation.go | 114 - .../ecs/describe_savings_plan_price.go | 107 - .../ecs/describe_security_group_attribute.go | 116 - .../ecs/describe_security_group_references.go | 104 - .../services/ecs/describe_security_groups.go | 130 - .../ecs/describe_send_file_results.go | 123 - .../services/ecs/describe_snapshot_groups.go | 119 - .../services/ecs/describe_snapshot_links.go | 111 - .../ecs/describe_snapshot_monitor_data.go | 107 - .../services/ecs/describe_snapshot_package.go | 108 - .../services/ecs/describe_snapshots.go | 136 - .../services/ecs/describe_snapshots_usage.go | 104 - .../services/ecs/describe_spot_advice.go | 116 - .../ecs/describe_spot_price_history.go | 114 - .../ecs/describe_storage_capacity_units.go | 120 - .../ecs/describe_storage_set_details.go | 112 - .../services/ecs/describe_storage_sets.go | 112 - .../services/ecs/describe_tags.go | 117 - .../services/ecs/describe_task_attribute.go | 114 - .../services/ecs/describe_tasks.go | 116 - .../ecs/describe_terminal_sessions.go | 108 - .../ecs/describe_user_business_behavior.go | 104 - .../services/ecs/describe_user_data.go | 105 - .../services/ecs/describe_v_routers.go | 109 - .../services/ecs/describe_v_switches.go | 112 - .../ecs/describe_virtual_border_routers.go | 114 - ..._border_routers_for_physical_connection.go | 115 - .../services/ecs/describe_vpcs.go | 110 - .../services/ecs/describe_zones.go | 107 - .../services/ecs/detach_classic_link_vpc.go | 103 - .../services/ecs/detach_disk.go | 105 - .../services/ecs/detach_instance_ram_role.go | 107 - .../services/ecs/detach_key_pair.go | 107 - .../services/ecs/detach_network_interface.go | 105 - .../services/ecs/disable_activation.go | 104 - .../ecs/disable_disk_encryption_by_default.go | 99 - .../ecs/enable_disk_encryption_by_default.go | 102 - .../ecs/enable_physical_connection.go | 105 - .../services/ecs/end_terminal_session.go | 103 - .../services/ecs/endpoint.go | 56 - .../services/ecs/export_image.go | 108 - .../services/ecs/export_snapshot.go | 105 - .../ecs/get_instance_console_output.go | 107 - .../services/ecs/get_instance_screenshot.go | 106 - .../services/ecs/import_image.go | 142 - .../services/ecs/import_key_pair.go | 113 - .../services/ecs/install_cloud_assistant.go | 103 - .../services/ecs/invoke_command.go | 140 - .../services/ecs/join_resource_group.go | 105 - .../services/ecs/join_security_group.go | 105 - .../services/ecs/leave_security_group.go | 105 - .../services/ecs/list_plugin_status.go | 113 - .../services/ecs/list_tag_resources.go | 121 - .../ecs/modify_auto_provisioning_group.go | 121 - .../ecs/modify_auto_snapshot_policy_ex.go | 124 - .../ecs/modify_bandwidth_package_spec.go | 104 - .../ecs/modify_capacity_reservation.go | 111 - .../ecs/modify_cloud_assistant_settings.go | 130 - .../services/ecs/modify_command.go | 109 - .../ecs/modify_dedicated_host_attribute.go | 111 - ...modify_dedicated_host_auto_release_time.go | 104 - ...ify_dedicated_host_auto_renew_attribute.go | 108 - ...modify_dedicated_host_cluster_attribute.go | 105 - .../ecs/modify_dedicated_hosts_charge_type.go | 118 - .../services/ecs/modify_demand.go | 114 - .../ecs/modify_deployment_set_attribute.go | 105 - .../ecs/modify_diagnostic_metric_set.go | 103 - .../services/ecs/modify_disk_attribute.go | 110 - .../services/ecs/modify_disk_charge_type.go | 108 - .../ecs/modify_disk_default_kms_key_id.go | 100 - .../services/ecs/modify_disk_deployment.go | 108 - .../services/ecs/modify_disk_spec.go | 118 - .../ecs/modify_eip_address_attribute.go | 104 - .../ecs/modify_elasticity_assurance.go | 117 - ...asticity_assurance_auto_renew_attribute.go | 106 - .../services/ecs/modify_forward_entry.go | 109 - .../services/ecs/modify_ha_vip_attribute.go | 105 - .../ecs/modify_hpc_cluster_attribute.go | 106 - .../services/ecs/modify_image_attribute.go | 116 - .../modify_image_share_group_permission.go | 105 - .../ecs/modify_image_share_permission.go | 107 - .../modify_instance_attachment_attributes.go | 105 - .../services/ecs/modify_instance_attribute.go | 148 - .../ecs/modify_instance_auto_release_time.go | 104 - .../modify_instance_auto_renew_attribute.go | 107 - .../ecs/modify_instance_charge_type.go | 119 - .../ecs/modify_instance_deployment.go | 113 - .../modify_instance_maintenance_attributes.go | 112 - .../ecs/modify_instance_metadata_options.go | 106 - .../ecs/modify_instance_network_spec.go | 119 - .../services/ecs/modify_instance_spec.go | 124 - .../ecs/modify_instance_vnc_passwd.go | 104 - .../ecs/modify_instance_vpc_attribute.go | 107 - .../ecs/modify_invocation_attribute.go | 110 - .../modify_launch_template_default_version.go | 106 - .../services/ecs/modify_managed_instance.go | 105 - .../ecs/modify_network_interface_attribute.go | 136 - .../modify_physical_connection_attribute.go | 113 - .../services/ecs/modify_prefix_list.go | 118 - .../ecs/modify_prepay_instance_spec.go | 129 - .../ecs/modify_reserved_instance_attribute.go | 108 - ..._reserved_instance_auto_renew_attribute.go | 106 - .../services/ecs/modify_reserved_instances.go | 114 - .../ecs/modify_router_interface_attribute.go | 110 - .../ecs/modify_router_interface_spec.go | 107 - .../ecs/modify_security_group_attribute.go | 105 - .../ecs/modify_security_group_egress_rule.go | 120 - .../ecs/modify_security_group_policy.go | 105 - .../ecs/modify_security_group_rule.go | 120 - .../services/ecs/modify_snapshot_attribute.go | 107 - .../services/ecs/modify_snapshot_category.go | 106 - .../services/ecs/modify_snapshot_group.go | 105 - .../modify_storage_capacity_unit_attribute.go | 105 - .../ecs/modify_storage_set_attribute.go | 106 - .../ecs/modify_user_business_behavior.go | 104 - .../services/ecs/modify_v_router_attribute.go | 105 - .../services/ecs/modify_v_switch_attribute.go | 105 - .../modify_virtual_border_router_attribute.go | 112 - .../services/ecs/modify_vpc_attribute.go | 107 - .../ecs/purchase_elasticity_assurance.go | 111 - .../purchase_reserved_instances_offering.go | 133 - .../ecs/purchase_storage_capacity_unit.go | 128 - .../services/ecs/re_activate_instances.go | 103 - .../services/ecs/re_init_disk.go | 108 - .../services/ecs/reboot_instance.go | 105 - .../services/ecs/reboot_instances.go | 107 - .../ecs/recover_virtual_border_router.go | 105 - .../services/ecs/redeploy_dedicated_host.go | 104 - .../services/ecs/redeploy_instance.go | 105 - .../ecs/release_capacity_reservation.go | 104 - .../services/ecs/release_dedicated_host.go | 103 - .../services/ecs/release_eip_address.go | 103 - .../services/ecs/release_public_ip_address.go | 102 - .../ecs/remove_bandwidth_package_ips.go | 105 - .../services/ecs/remove_tags.go | 110 - .../services/ecs/renew_dedicated_hosts.go | 114 - .../ecs/renew_elasticity_assurances.go | 111 - .../services/ecs/renew_instance.go | 108 - .../services/ecs/renew_reserved_instances.go | 117 - .../services/ecs/replace_system_disk.go | 127 - .../services/ecs/report_instances_status.go | 110 - .../services/ecs/reset_disk.go | 105 - .../ecs/reset_disk_default_kms_key_id.go | 99 - .../services/ecs/reset_disks.go | 111 - .../services/ecs/resize_disk.go | 107 - .../services/ecs/revoke_security_group.go | 140 - .../ecs/revoke_security_group_egress.go | 140 - .../services/ecs/run_command.go | 140 - .../services/ecs/run_instances.go | 290 -- .../services/ecs/send_file.go | 122 - .../ecs/start_image_pipeline_execution.go | 119 - .../services/ecs/start_instance.go | 105 - .../services/ecs/start_instances.go | 106 - .../services/ecs/start_terminal_session.go | 110 - .../services/ecs/stop_instance.go | 108 - .../services/ecs/stop_instances.go | 108 - .../services/ecs/stop_invocation.go | 104 - .../services/ecs/struct_access_point_set.go | 21 - .../services/ecs/struct_access_point_type.go | 28 - .../services/ecs/struct_account.go | 22 - .../ecs/struct_account_attribute_item.go | 22 - .../ecs/struct_account_attribute_items.go | 21 - .../services/ecs/struct_accounts.go | 21 - .../ecs/struct_action_on_maintenance.go | 23 - .../services/ecs/struct_activation.go | 32 - .../services/ecs/struct_activation_list.go | 21 - .../services/ecs/struct_activity_detail.go | 22 - .../services/ecs/struct_activity_details.go | 21 - .../services/ecs/struct_add_accounts.go | 21 - .../services/ecs/struct_additional_info.go | 21 - .../services/ecs/struct_advanced_options.go | 24 - .../ecs/struct_agent_upgrade_config.go | 23 - .../services/ecs/struct_allocated_resource.go | 27 - ...urces_in_describe_capacity_reservations.go | 21 - ...urces_in_describe_elasticity_assurances.go | 21 - .../ecs/struct_allowed_upgrade_windows_.go | 21 - ...truct_assigned_private_ip_addresses_set.go | 23 - .../ecs/struct_associated_eip_addresses.go | 21 - .../ecs/struct_associated_instances.go | 21 - .../ecs/struct_associated_public_ip.go | 22 - .../struct_attach_instance_ram_role_result.go | 24 - ...struct_attach_instance_ram_role_results.go | 21 - .../services/ecs/struct_attachment.go | 32 - .../services/ecs/struct_attachments.go | 21 - .../services/ecs/struct_attribute.go | 22 - .../services/ecs/struct_attribute_values.go | 21 - ...in_describe_instance_modification_price.go | 21 - .../struct_attributes_in_describe_price.go | 21 - ...ct_attributes_in_describe_renewal_price.go | 21 - .../ecs/struct_auto_provisioning_group.go | 41 - ...truct_auto_provisioning_group_histories.go | 21 - .../struct_auto_provisioning_group_history.go | 25 - .../ecs/struct_auto_provisioning_groups.go | 21 - .../ecs/struct_auto_snapshot_policies.go | 21 - .../ecs/struct_auto_snapshot_policy.go | 37 - .../struct_available_dedicated_host_types.go | 21 - .../ecs/struct_available_disk_categories.go | 21 - .../ecs/struct_available_instance_type.go | 22 - ...pes_in_describe_dedicated_host_clusters.go | 21 - ...ilable_instance_types_in_describe_zones.go | 21 - .../services/ecs/struct_available_resource.go | 23 - .../ecs/struct_available_resource_creation.go | 21 - ...esources_in_describe_available_resource.go | 21 - ...rces_in_describe_resources_modification.go | 21 - ...t_available_resources_in_describe_zones.go | 21 - .../ecs/struct_available_spot_resource.go | 24 - .../ecs/struct_available_spot_resources.go | 21 - .../ecs/struct_available_spot_zone.go | 22 - .../ecs/struct_available_spot_zones.go | 21 - .../ecs/struct_available_volume_categories.go | 21 - .../services/ecs/struct_available_zone.go | 25 - ...le_zones_in_describe_available_resource.go | 21 - ...ones_in_describe_resources_modification.go | 21 - .../services/ecs/struct_bandwidth.go | 24 - .../services/ecs/struct_bandwidth_package.go | 35 - ...width_package_ids_in_create_nat_gateway.go | 21 - ...th_package_ids_in_describe_nat_gateways.go | 21 - .../services/ecs/struct_bandwidth_packages.go | 21 - .../services/ecs/struct_bandwidths.go | 21 - .../struct_bond_interface_specification.go | 22 - .../services/ecs/struct_capacities.go | 21 - .../services/ecs/struct_capacity.go | 33 - .../ecs/struct_capacity_reservation_item.go | 39 - ...describe_capacity_reservation_instances.go | 21 - .../ecs/struct_capacity_reservation_set.go | 21 - .../ecs/struct_capacity_reservation_usage.go | 23 - .../ecs/struct_capacity_reservation_usages.go | 21 - .../services/ecs/struct_cluster.go | 21 - .../services/ecs/struct_clusters.go | 21 - .../services/ecs/struct_command.go | 39 - .../services/ecs/struct_commands.go | 21 - .../services/ecs/struct_condition.go | 21 - .../struct_condition_supported_resource.go | 27 - .../struct_condition_supported_resources.go | 21 - .../services/ecs/struct_conditions.go | 21 - .../services/ecs/struct_connection.go | 25 - ...truct_connection_tracking_configuration.go | 23 - .../services/ecs/struct_connections.go | 21 - .../struct_copy_encryption_configuration.go | 22 - .../services/ecs/struct_coupon.go | 27 - ...in_describe_instance_modification_price.go | 21 - .../ecs/struct_coupons_in_describe_price.go | 21 - ...truct_coupons_in_describe_renewal_price.go | 21 - .../services/ecs/struct_cpu_options.go | 28 - .../services/ecs/struct_data.go | 21 - .../services/ecs/struct_data_disk.go | 32 - .../ecs/struct_data_disk_categories.go | 21 - .../services/ecs/struct_data_disks.go | 21 - .../services/ecs/struct_data_point.go | 22 - .../services/ecs/struct_dedicated_host.go | 53 - .../ecs/struct_dedicated_host_attribute.go | 23 - .../ecs/struct_dedicated_host_cluster.go | 29 - .../struct_dedicated_host_cluster_capacity.go | 26 - .../ecs/struct_dedicated_host_clusters.go | 21 - .../ecs/struct_dedicated_host_generations.go | 21 - .../ecs/struct_dedicated_host_id_sets.go | 21 - .../services/ecs/struct_dedicated_host_ids.go | 21 - .../struct_dedicated_host_renew_attribute.go | 26 - .../struct_dedicated_host_renew_attributes.go | 21 - .../ecs/struct_dedicated_host_type.go | 35 - .../ecs/struct_dedicated_host_types.go | 21 - .../services/ecs/struct_dedicated_hosts.go | 21 - .../struct_dedicated_instance_attribute.go | 22 - .../services/ecs/struct_demand.go | 39 - .../services/ecs/struct_demands.go | 21 - .../services/ecs/struct_deployment_set.go | 32 - .../services/ecs/struct_deployment_sets.go | 21 - .../services/ecs/struct_depreciate_info.go | 29 - .../struct_detach_instance_ram_role_result.go | 25 - ...struct_detach_instance_ram_role_results.go | 21 - .../services/ecs/struct_detail_info.go | 30 - ...in_describe_instance_modification_price.go | 21 - .../struct_detail_infos_in_describe_price.go | 21 - ..._detail_infos_in_describe_renewal_price.go | 21 - .../services/ecs/struct_detection_options.go | 22 - .../services/ecs/struct_disk.go | 69 - .../ecs/struct_disk_device_mapping.go | 33 - ..._mappings_in_describe_image_from_family.go | 21 - ...ce_mappings_in_describe_image_pipelines.go | 21 - ...disk_device_mappings_in_describe_images.go | 21 - .../services/ecs/struct_disk_event_set.go | 21 - .../services/ecs/struct_disk_event_type.go | 25 - .../ecs/struct_disk_full_status_set.go | 21 - .../ecs/struct_disk_full_status_type.go | 26 - .../services/ecs/struct_disk_monitor_data.go | 30 - .../ecs/struct_disks_in_describe_disks.go | 21 - ...t_disks_in_describe_storage_set_details.go | 21 - .../struct_ecs_capacity_reservation_attr.go | 22 - .../services/ecs/struct_eip_address.go | 33 - ..._address_in_describe_instance_attribute.go | 24 - ...truct_eip_address_in_describe_instances.go | 25 - .../services/ecs/struct_eip_addresses.go | 21 - .../services/ecs/struct_eip_monitor_data.go | 26 - ...itor_datas_in_describe_eip_monitor_data.go | 21 - ...n_describe_new_project_eip_monitor_data.go | 21 - .../ecs/struct_elasticity_assurance_item.go | 39 - ...describe_elasticity_assurance_instances.go | 21 - ...ct_elasticity_assurance_renew_attribute.go | 24 - ...t_elasticity_assurance_renew_attributes.go | 21 - .../ecs/struct_elasticity_assurance_set.go | 21 - .../ecs/struct_elasticity_assurance_usage.go | 23 - .../ecs/struct_elasticity_assurance_usages.go | 21 - .../services/ecs/struct_enhanced_network.go | 25 - .../services/ecs/struct_eni_monitor_data.go | 28 - .../services/ecs/struct_entries.go | 21 - .../services/ecs/struct_entry.go | 22 - .../services/ecs/struct_event_cycle_status.go | 22 - .../services/ecs/struct_event_id_set.go | 21 - .../services/ecs/struct_event_type.go | 22 - .../services/ecs/struct_extended_attribute.go | 34 - .../services/ecs/struct_features.go | 26 - .../services/ecs/struct_fee_of_instance.go | 23 - ...s_in_modify_dedicated_hosts_charge_type.go | 21 - ...nstances_in_modify_instance_charge_type.go | 21 - .../ecs/struct_forward_table_entries.go | 21 - .../ecs/struct_forward_table_entry.go | 28 - ...forward_table_ids_in_create_nat_gateway.go | 21 - ...ward_table_ids_in_describe_nat_gateways.go | 21 - .../services/ecs/struct_ha_vip.go | 31 - .../services/ecs/struct_ha_vips.go | 21 - .../services/ecs/struct_health_status.go | 22 - .../ecs/struct_hibernation_options.go | 21 - .../services/ecs/struct_host_detail_info.go | 21 - .../services/ecs/struct_hpc_cluster.go | 23 - .../services/ecs/struct_hpc_clusters.go | 21 - .../services/ecs/struct_image.go | 52 - .../services/ecs/struct_image_component.go | 21 - .../ecs/struct_image_component_set.go | 32 - .../services/ecs/struct_image_features.go | 21 - .../services/ecs/struct_image_options.go | 27 - .../services/ecs/struct_image_pipeline.go | 21 - .../ecs/struct_image_pipeline_execution.go | 21 - .../struct_image_pipeline_execution_set.go | 29 - .../services/ecs/struct_image_pipeline_set.go | 44 - .../services/ecs/struct_image_tag.go | 22 - .../services/ecs/struct_image_tags.go | 21 - .../services/ecs/struct_images.go | 21 - .../ecs/struct_import_image_options.go | 28 - .../services/ecs/struct_inactive_disk.go | 25 - ...sks_in_describe_instance_history_events.go | 21 - ...disks_in_describe_instances_full_status.go | 21 - ..._address_in_describe_instance_attribute.go | 21 - ..._inner_ip_address_in_describe_instances.go | 21 - .../services/ecs/struct_instance.go | 105 - .../struct_instance_cloud_assistant_status.go | 29 - ...uct_instance_cloud_assistant_status_set.go | 21 - .../ecs/struct_instance_full_status_set.go | 21 - .../ecs/struct_instance_full_status_type.go | 24 - .../ecs/struct_instance_generations.go | 21 - .../services/ecs/struct_instance_id_set.go | 21 - .../services/ecs/struct_instance_id_sets.go | 21 - ...e_ids_in_create_auto_provisioning_group.go | 21 - ...nstance_ids_in_describe_deployment_sets.go | 21 - ..._instance_in_describe_managed_instances.go | 36 - .../ecs/struct_instance_monitor_data.go | 37 - .../ecs/struct_instance_plugin_status.go | 22 - .../ecs/struct_instance_plugin_status_set.go | 21 - .../ecs/struct_instance_ram_role_set.go | 22 - ...role_sets_in_describe_instance_ram_role.go | 21 - ...m_role_sets_in_detach_instance_ram_role.go | 21 - .../ecs/struct_instance_renew_attribute.go | 25 - .../ecs/struct_instance_renew_attributes.go | 21 - .../services/ecs/struct_instance_response.go | 25 - ..._instance_responses_in_reboot_instances.go | 21 - ...t_instance_responses_in_start_instances.go | 21 - ...ct_instance_responses_in_stop_instances.go | 21 - .../services/ecs/struct_instance_status.go | 22 - .../services/ecs/struct_instance_statuses.go | 21 - .../ecs/struct_instance_system_event_set.go | 21 - .../ecs/struct_instance_system_event_type.go | 32 - .../services/ecs/struct_instance_tag.go | 22 - .../services/ecs/struct_instance_type.go | 67 - ...lies_in_describe_instance_type_families.go | 21 - ...nstance_type_families_in_describe_zones.go | 21 - .../ecs/struct_instance_type_family.go | 22 - ...n_describe_image_support_instance_types.go | 21 - ...stance_types_in_describe_instance_types.go | 21 - ...struct_instance_types_in_describe_zones.go | 21 - ...cribe_auto_provisioning_group_instances.go | 21 - ...t_instances_in_describe_dedicated_hosts.go | 21 - ...describe_instance_attachment_attributes.go | 21 - .../struct_instances_in_describe_instances.go | 21 - ...instances_in_describe_managed_instances.go | 21 - .../services/ecs/struct_invocation.go | 57 - .../services/ecs/struct_invocation_result.go | 40 - .../services/ecs/struct_invocation_results.go | 21 - ...uct_invocations_in_describe_invocations.go | 21 - ...vocations_in_describe_send_file_results.go | 21 - .../services/ecs/struct_invoke_instance.go | 35 - ...nvoke_instances_in_describe_invocations.go | 21 - ...instances_in_describe_send_file_results.go | 21 - .../services/ecs/struct_ipv4_prefix_set.go | 21 - ...efix_set_in_assign_private_ip_addresses.go | 21 - ...prefix_sets_in_create_network_interface.go | 21 - ..._ipv4_prefix_sets_in_describe_instances.go | 21 - ...in_describe_network_interface_attribute.go | 21 - ...fix_sets_in_describe_network_interfaces.go | 21 - .../services/ecs/struct_ipv6_prefix_set.go | 21 - ...v6_prefix_sets_in_assign_ipv6_addresses.go | 21 - ...prefix_sets_in_create_network_interface.go | 21 - ..._ipv6_prefix_sets_in_describe_instances.go | 21 - ...in_describe_network_interface_attribute.go | 21 - ...fix_sets_in_describe_network_interfaces.go | 21 - .../services/ecs/struct_ipv6_set.go | 21 - ...ruct_ipv6_sets_in_assign_ipv6_addresses.go | 21 - ...t_ipv6_sets_in_create_network_interface.go | 21 - .../struct_ipv6_sets_in_describe_instances.go | 21 - ...in_describe_network_interface_attribute.go | 21 - ...pv6_sets_in_describe_network_interfaces.go | 21 - .../services/ecs/struct_issue.go | 26 - ...n_describe_diagnostic_report_attributes.go | 21 - ...t_issues_in_describe_diagnostic_reports.go | 21 - .../services/ecs/struct_item.go | 24 - .../services/ecs/struct_items.go | 21 - .../services/ecs/struct_key_pair.go | 26 - .../services/ecs/struct_key_pairs.go | 21 - .../services/ecs/struct_launch_result.go | 27 - .../services/ecs/struct_launch_results.go | 21 - .../ecs/struct_launch_template_config.go | 25 - .../ecs/struct_launch_template_configs.go | 21 - .../ecs/struct_launch_template_data.go | 74 - .../ecs/struct_launch_template_set.go | 29 - .../ecs/struct_launch_template_sets.go | 21 - .../ecs/struct_launch_template_version.go | 22 - .../struct_launch_template_version_numbers.go | 21 - .../ecs/struct_launch_template_version_set.go | 29 - .../struct_launch_template_version_sets.go | 21 - .../ecs/struct_launch_template_versions.go | 21 - .../services/ecs/struct_link.go | 22 - .../services/ecs/struct_links.go | 21 - .../ecs/struct_local_storage_capacities.go | 21 - .../ecs/struct_local_storage_capacity.go | 23 - .../services/ecs/struct_lock_reason.go | 22 - .../ecs/struct_maintenance_attribute.go | 24 - .../ecs/struct_maintenance_attributes.go | 21 - .../services/ecs/struct_maintenance_window.go | 22 - .../ecs/struct_maintenance_windows_.go | 21 - .../ecs/struct_marketplace_image_price.go | 24 - .../struct_member_network_interface_ids.go | 21 - .../services/ecs/struct_metadata_options.go | 23 - .../services/ecs/struct_metric.go | 27 - .../services/ecs/struct_metric_ids.go | 21 - .../services/ecs/struct_metric_result.go | 25 - .../services/ecs/struct_metric_results.go | 21 - .../services/ecs/struct_metric_set.go | 26 - .../services/ecs/struct_metric_sets.go | 21 - .../services/ecs/struct_metrics.go | 21 - .../services/ecs/struct_migration_options.go | 21 - ...itor_data_in_describe_disk_monitor_data.go | 21 - ...nitor_data_in_describe_eni_monitor_data.go | 21 - ..._data_in_describe_instance_monitor_data.go | 21 - ..._data_in_describe_snapshot_monitor_data.go | 21 - .../services/ecs/struct_mount_instance.go | 23 - .../services/ecs/struct_mount_instances.go | 21 - .../services/ecs/struct_nat_gateway.go | 32 - .../services/ecs/struct_nat_gateways.go | 21 - .../services/ecs/struct_network_attributes.go | 22 - .../services/ecs/struct_network_card_info.go | 21 - .../services/ecs/struct_network_cards.go | 21 - .../services/ecs/struct_network_interface.go | 36 - .../struct_network_interface_permission.go | 26 - .../struct_network_interface_permissions.go | 21 - .../ecs/struct_network_interface_set.go | 49 - .../ecs/struct_network_interface_sets.go | 21 - ...struct_network_interface_traffic_config.go | 23 - ...etwork_interfaces_in_describe_instances.go | 21 - ...es_in_describe_launch_template_versions.go | 21 - ...pes_in_describe_recommend_instance_type.go | 21 - .../struct_network_types_in_describe_zones.go | 21 - .../services/ecs/struct_next_hop.go | 24 - .../services/ecs/struct_next_hops.go | 21 - .../services/ecs/struct_operation_lock.go | 21 - ...ation_locks_in_describe_dedicated_hosts.go | 21 - ...truct_operation_locks_in_describe_disks.go | 21 - ...eration_locks_in_describe_eip_addresses.go | 21 - ...on_locks_in_describe_instance_attribute.go | 21 - ...t_operation_locks_in_describe_instances.go | 21 - ...on_locks_in_describe_reserved_instances.go | 21 - .../services/ecs/struct_operation_progress.go | 24 - ...n_progress_set_in_delete_snapshot_group.go | 21 - ...progress_set_in_describe_task_attribute.go | 21 - ...t_operation_progress_set_in_reset_disks.go | 21 - .../ecs/struct_oss_delivery_config.go | 27 - .../ecs/struct_oss_delivery_configs.go | 21 - .../services/ecs/struct_parameter.go | 23 - .../ecs/struct_parameter_definition.go | 26 - .../ecs/struct_parameter_definitions.go | 21 - .../services/ecs/struct_parameter_names.go | 21 - .../services/ecs/struct_parameters.go | 21 - .../ecs/struct_pay_as_you_go_options.go | 21 - .../services/ecs/struct_permission.go | 44 - .../services/ecs/struct_permissions.go | 21 - .../ecs/struct_physical_connection_set.go | 21 - .../ecs/struct_physical_connection_type.go | 38 - .../services/ecs/struct_placement.go | 21 - .../services/ecs/struct_plugin_status.go | 25 - .../services/ecs/struct_plugin_status_set.go | 21 - .../services/ecs/struct_possible_values.go | 21 - .../services/ecs/struct_prefix_list.go | 27 - .../ecs/struct_prefix_list_association.go | 22 - .../ecs/struct_prefix_list_associations.go | 21 - .../services/ecs/struct_prefix_lists.go | 21 - .../services/ecs/struct_price.go | 38 - .../services/ecs/struct_price_info.go | 24 - ...ice_info_in_describe_savings_plan_price.go | 22 - .../services/ecs/struct_price_warning.go | 22 - .../ecs/struct_private_dns_name_options.go | 25 - ..._address_in_describe_instance_attribute.go | 21 - ...rivate_ip_address_in_describe_instances.go | 21 - .../services/ecs/struct_private_ip_set.go | 24 - ...e_ip_set_in_assign_private_ip_addresses.go | 21 - ...ate_ip_sets_in_create_network_interface.go | 21 - ...t_private_ip_sets_in_describe_instances.go | 21 - ...in_describe_network_interface_attribute.go | 21 - ..._ip_sets_in_describe_network_interfaces.go | 21 - .../ecs/struct_private_pool_options_id_set.go | 21 - .../services/ecs/struct_promotion.go | 25 - ...in_describe_instance_modification_price.go | 21 - .../struct_promotions_in_describe_price.go | 21 - ...ct_promotions_in_describe_renewal_price.go | 21 - ..._address_in_describe_instance_attribute.go | 21 - ...public_ip_address_in_describe_instances.go | 21 - .../services/ecs/struct_public_ip_addresse.go | 22 - .../ecs/struct_public_ip_addresses.go | 21 - .../services/ecs/struct_rdma_ip_address.go | 21 - .../ecs/struct_recommend_instance_type.go | 30 - .../services/ecs/struct_recurrence_rule.go | 24 - .../services/ecs/struct_recurrence_rules.go | 21 - .../services/ecs/struct_referenced_info.go | 21 - .../ecs/struct_referenced_prefix_list_info.go | 22 - .../struct_referenced_prefix_list_infos.go | 21 - .../ecs/struct_referencing_security_group.go | 22 - .../ecs/struct_referencing_security_groups.go | 21 - .../services/ecs/struct_region.go | 24 - .../services/ecs/struct_regions.go | 21 - .../services/ecs/struct_related_item.go | 22 - ...lated_item_set_in_delete_snapshot_group.go | 21 - ...ted_item_set_in_describe_task_attribute.go | 21 - .../struct_related_item_set_in_reset_disks.go | 21 - .../services/ecs/struct_related_price.go | 21 - .../services/ecs/struct_report.go | 31 - .../services/ecs/struct_reports.go | 21 - .../services/ecs/struct_reserved_instance.go | 38 - ...ce_id_sets_in_modify_reserved_instances.go | 21 - ...in_purchase_reserved_instances_offering.go | 21 - ...nce_id_sets_in_renew_reserved_instances.go | 21 - ...truct_reserved_instance_renew_attribute.go | 24 - ...ruct_reserved_instance_renew_attributes.go | 21 - .../services/ecs/struct_reserved_instances.go | 21 - .../services/ecs/struct_resource.go | 23 - .../services/ecs/struct_resource_ids.go | 21 - .../ecs/struct_resource_type_count.go | 32 - .../services/ecs/struct_resources.go | 21 - .../services/ecs/struct_resources_info.go | 27 - .../services/ecs/struct_result.go | 24 - .../ecs/struct_results_in_attach_key_pair.go | 21 - .../ecs/struct_results_in_detach_key_pair.go | 21 - .../services/ecs/struct_route_entry.go | 27 - .../services/ecs/struct_route_entrys.go | 21 - .../services/ecs/struct_route_table.go | 26 - .../services/ecs/struct_route_table_ids.go | 21 - .../services/ecs/struct_route_tables.go | 21 - .../ecs/struct_router_interface_set.go | 21 - .../ecs/struct_router_interface_type.go | 45 - .../services/ecs/struct_rule.go | 22 - ...in_describe_instance_modification_price.go | 21 - .../struct_rule_id_set_in_describe_price.go | 21 - ...t_rule_id_set_in_describe_renewal_price.go | 21 - ...in_describe_instance_modification_price.go | 21 - .../ecs/struct_rule_ids_in_describe_price.go | 21 - ...ruct_rule_ids_in_describe_renewal_price.go | 21 - ...in_describe_instance_modification_price.go | 21 - .../ecs/struct_rules_in_describe_price.go | 21 - .../struct_rules_in_describe_renewal_price.go | 21 - ...ct_rules_in_describe_savings_plan_price.go | 21 - .../services/ecs/struct_rules_item.go | 22 - .../ecs/struct_scheduled_system_event_set.go | 21 - .../ecs/struct_scheduled_system_event_type.go | 28 - .../services/ecs/struct_security_group.go | 34 - ...y_group_ids_in_create_network_interface.go | 21 - ...roup_ids_in_describe_instance_attribute.go | 21 - ...ecurity_group_ids_in_describe_instances.go | 21 - ...ds_in_describe_launch_template_versions.go | 21 - ...in_describe_network_interface_attribute.go | 21 - ...roup_ids_in_describe_network_interfaces.go | 21 - .../ecs/struct_security_group_reference.go | 22 - .../ecs/struct_security_group_references.go | 21 - .../services/ecs/struct_security_groups.go | 21 - .../services/ecs/struct_session.go | 29 - .../services/ecs/struct_sessions.go | 21 - .../services/ecs/struct_share_group.go | 21 - .../services/ecs/struct_share_groups.go | 21 - .../struct_slave_interface_specification.go | 23 - ...in_describe_network_interface_attribute.go | 21 - ...truct_slave_interface_specification_set.go | 23 - .../ecs/struct_sls_delivery_config.go | 24 - .../ecs/struct_sls_delivery_configs.go | 21 - .../services/ecs/struct_snapshot.go | 49 - .../services/ecs/struct_snapshot_group.go | 30 - .../services/ecs/struct_snapshot_groups.go | 21 - .../services/ecs/struct_snapshot_link.go | 32 - .../services/ecs/struct_snapshot_links.go | 21 - .../services/ecs/struct_snapshot_package.go | 24 - .../services/ecs/struct_snapshot_packages.go | 21 - ...t_snapshots_in_describe_snapshot_groups.go | 21 - .../struct_snapshots_in_describe_snapshots.go | 21 - .../services/ecs/struct_socket_capacities.go | 21 - .../services/ecs/struct_socket_capacity.go | 25 - .../services/ecs/struct_spot_options.go | 23 - .../services/ecs/struct_spot_price_type.go | 27 - .../services/ecs/struct_spot_prices.go | 21 - .../services/ecs/struct_status.go | 22 - .../ecs/struct_storage_capacity_unit.go | 31 - .../ecs/struct_storage_capacity_unit_ids.go | 21 - .../ecs/struct_storage_capacity_units.go | 21 - .../services/ecs/struct_storage_set.go | 27 - .../services/ecs/struct_storage_sets.go | 21 - .../services/ecs/struct_sub_price.go | 30 - .../services/ecs/struct_sub_prices.go | 21 - ...in_describe_instance_modification_price.go | 21 - .../ecs/struct_sub_rules_in_describe_price.go | 21 - ...uct_sub_rules_in_describe_renewal_price.go | 21 - .../services/ecs/struct_supply_info.go | 25 - .../services/ecs/struct_supply_infos.go | 21 - .../ecs/struct_supported_boot_modes.go | 21 - ...supported_custom_instance_type_families.go | 21 - ...milies_in_describe_dedicated_host_types.go | 21 - ...pe_families_in_describe_dedicated_hosts.go | 21 - ...s_list_in_describe_dedicated_host_types.go | 21 - ..._types_list_in_describe_dedicated_hosts.go | 21 - .../services/ecs/struct_supported_resource.go | 26 - ...esources_in_describe_available_resource.go | 21 - ...rces_in_describe_resources_modification.go | 21 - .../ecs/struct_supported_topology_types.go | 21 - .../services/ecs/struct_supported_values.go | 21 - .../ecs/struct_system_disk_categories.go | 21 - .../services/ecs/struct_tag.go | 25 - .../services/ecs/struct_tag_resource.go | 24 - .../services/ecs/struct_tag_resources.go | 21 - ...struct_tags_in_create_network_interface.go | 21 - .../struct_tags_in_describe_activations.go | 21 - ...gs_in_describe_auto_provisioning_groups.go | 21 - ...ags_in_describe_auto_snapshot_policy_ex.go | 21 - ..._tags_in_describe_capacity_reservations.go | 21 - .../ecs/struct_tags_in_describe_commands.go | 21 - ...ags_in_describe_dedicated_host_clusters.go | 21 - ...struct_tags_in_describe_dedicated_hosts.go | 21 - .../ecs/struct_tags_in_describe_disks.go | 21 - ..._tags_in_describe_elasticity_assurances.go | 21 - ...truct_tags_in_describe_image_components.go | 21 - ...ruct_tags_in_describe_image_from_family.go | 21 - ...s_in_describe_image_pipeline_executions.go | 21 - ...struct_tags_in_describe_image_pipelines.go | 21 - .../ecs/struct_tags_in_describe_images.go | 21 - .../ecs/struct_tags_in_describe_instances.go | 21 - ...uct_tags_in_describe_invocation_results.go | 21 - .../struct_tags_in_describe_invocations.go | 21 - .../ecs/struct_tags_in_describe_key_pairs.go | 21 - ...gs_in_describe_launch_template_versions.go | 21 - ...truct_tags_in_describe_launch_templates.go | 21 - ...ruct_tags_in_describe_managed_instances.go | 21 - ...in_describe_network_interface_attribute.go | 21 - ...uct_tags_in_describe_network_interfaces.go | 21 - ...uct_tags_in_describe_reserved_instances.go | 21 - ...struct_tags_in_describe_security_groups.go | 21 - ...ruct_tags_in_describe_send_file_results.go | 21 - ...struct_tags_in_describe_snapshot_groups.go | 21 - .../ecs/struct_tags_in_describe_snapshots.go | 21 - ...tags_in_describe_storage_capacity_units.go | 21 - .../ecs/struct_tags_in_describe_tags.go | 21 - .../struct_target_capacity_specification.go | 24 - .../services/ecs/struct_task.go | 31 - .../services/ecs/struct_task_set.go | 21 - .../services/ecs/struct_to_region_ids.go | 21 - .../services/ecs/struct_topology.go | 22 - .../services/ecs/struct_topologys.go | 21 - .../services/ecs/struct_user_cidrs.go | 21 - .../services/ecs/struct_v_router.go | 27 - .../services/ecs/struct_v_routers.go | 21 - .../services/ecs/struct_v_switch.go | 31 - .../services/ecs/struct_v_switch_ids.go | 21 - .../services/ecs/struct_v_switches.go | 21 - .../services/ecs/struct_value_item.go | 27 - ...rder_router_for_physical_connection_set.go | 21 - ...der_router_for_physical_connection_type.go | 28 - .../ecs/struct_virtual_border_router_set.go | 21 - .../ecs/struct_virtual_border_router_type.go | 40 - .../services/ecs/struct_vpc.go | 31 - .../services/ecs/struct_vpc_attributes.go | 24 - .../services/ecs/struct_vpcs.go | 21 - .../services/ecs/struct_zone.go | 32 - ...nes_in_describe_recommend_instance_type.go | 21 - .../ecs/struct_zones_in_describe_zones.go | 21 - .../services/ecs/tag_resources.go | 110 - .../ecs/terminate_physical_connection.go | 105 - .../ecs/terminate_virtual_border_router.go | 105 - .../services/ecs/unassign_ipv6_addresses.go | 105 - .../ecs/unassign_private_ip_addresses.go | 105 - .../services/ecs/unassociate_eip_address.go | 105 - .../services/ecs/unassociate_ha_vip.go | 106 - .../services/ecs/untag_resources.go | 106 - .../aliyun/aliyun-oss-go-sdk/LICENSE | 14 - .../aliyun/aliyun-oss-go-sdk/oss/auth.go | 339 -- .../aliyun/aliyun-oss-go-sdk/oss/bucket.go | 1321 ------ .../aliyun/aliyun-oss-go-sdk/oss/client.go | 2956 ------------ .../aliyun/aliyun-oss-go-sdk/oss/conf.go | 301 -- .../aliyun/aliyun-oss-go-sdk/oss/conn.go | 1021 ---- .../aliyun/aliyun-oss-go-sdk/oss/const.go | 273 -- .../aliyun/aliyun-oss-go-sdk/oss/crc.go | 123 - .../aliyun/aliyun-oss-go-sdk/oss/download.go | 567 --- .../aliyun/aliyun-oss-go-sdk/oss/error.go | 136 - .../aliyun-oss-go-sdk/oss/limit_reader_1_6.go | 29 - .../aliyun-oss-go-sdk/oss/limit_reader_1_7.go | 91 - .../aliyun-oss-go-sdk/oss/livechannel.go | 257 -- .../aliyun/aliyun-oss-go-sdk/oss/mime.go | 594 --- .../aliyun/aliyun-oss-go-sdk/oss/model.go | 69 - .../aliyun/aliyun-oss-go-sdk/oss/multicopy.go | 474 -- .../aliyun/aliyun-oss-go-sdk/oss/multipart.go | 320 -- .../aliyun/aliyun-oss-go-sdk/oss/option.go | 735 --- .../aliyun/aliyun-oss-go-sdk/oss/progress.go | 116 - .../aliyun-oss-go-sdk/oss/redirect_1_6.go | 12 - .../aliyun-oss-go-sdk/oss/redirect_1_7.go | 13 - .../aliyun-oss-go-sdk/oss/select_object.go | 197 - .../oss/select_object_type.go | 365 -- .../aliyun-oss-go-sdk/oss/transport_1_6.go | 42 - .../aliyun-oss-go-sdk/oss/transport_1_7.go | 45 - .../aliyun/aliyun-oss-go-sdk/oss/type.go | 1695 ------- .../aliyun/aliyun-oss-go-sdk/oss/upload.go | 578 --- .../aliyun/aliyun-oss-go-sdk/oss/utils.go | 674 --- .../github.com/json-iterator/go/.codecov.yml | 3 - vendor/github.com/json-iterator/go/.gitignore | 4 - .../github.com/json-iterator/go/.travis.yml | 14 - vendor/github.com/json-iterator/go/Gopkg.lock | 21 - vendor/github.com/json-iterator/go/Gopkg.toml | 26 - vendor/github.com/json-iterator/go/LICENSE | 21 - vendor/github.com/json-iterator/go/README.md | 85 - vendor/github.com/json-iterator/go/adapter.go | 150 - vendor/github.com/json-iterator/go/any.go | 325 -- .../github.com/json-iterator/go/any_array.go | 278 -- .../github.com/json-iterator/go/any_bool.go | 137 - .../github.com/json-iterator/go/any_float.go | 83 - .../github.com/json-iterator/go/any_int32.go | 74 - .../github.com/json-iterator/go/any_int64.go | 74 - .../json-iterator/go/any_invalid.go | 82 - vendor/github.com/json-iterator/go/any_nil.go | 69 - .../github.com/json-iterator/go/any_number.go | 123 - .../github.com/json-iterator/go/any_object.go | 374 -- vendor/github.com/json-iterator/go/any_str.go | 166 - .../github.com/json-iterator/go/any_uint32.go | 74 - .../github.com/json-iterator/go/any_uint64.go | 74 - vendor/github.com/json-iterator/go/build.sh | 12 - vendor/github.com/json-iterator/go/config.go | 375 -- .../go/fuzzy_mode_convert_table.md | 7 - vendor/github.com/json-iterator/go/iter.go | 349 -- .../github.com/json-iterator/go/iter_array.go | 64 - .../github.com/json-iterator/go/iter_float.go | 342 -- .../github.com/json-iterator/go/iter_int.go | 346 -- .../json-iterator/go/iter_object.go | 267 -- .../github.com/json-iterator/go/iter_skip.go | 130 - .../json-iterator/go/iter_skip_sloppy.go | 163 - .../json-iterator/go/iter_skip_strict.go | 99 - .../github.com/json-iterator/go/iter_str.go | 215 - .../github.com/json-iterator/go/jsoniter.go | 18 - vendor/github.com/json-iterator/go/pool.go | 42 - vendor/github.com/json-iterator/go/reflect.go | 337 -- .../json-iterator/go/reflect_array.go | 104 - .../json-iterator/go/reflect_dynamic.go | 70 - .../json-iterator/go/reflect_extension.go | 483 -- .../json-iterator/go/reflect_json_number.go | 112 - .../go/reflect_json_raw_message.go | 76 - .../json-iterator/go/reflect_map.go | 346 -- .../json-iterator/go/reflect_marshaler.go | 225 - .../json-iterator/go/reflect_native.go | 453 -- .../json-iterator/go/reflect_optional.go | 129 - .../json-iterator/go/reflect_slice.go | 99 - .../go/reflect_struct_decoder.go | 1097 ----- .../go/reflect_struct_encoder.go | 211 - vendor/github.com/json-iterator/go/stream.go | 210 - .../json-iterator/go/stream_float.go | 111 - .../github.com/json-iterator/go/stream_int.go | 190 - .../github.com/json-iterator/go/stream_str.go | 372 -- vendor/github.com/json-iterator/go/test.sh | 12 - .../modern-go/concurrent/.gitignore | 1 - .../modern-go/concurrent/.travis.yml | 14 - .../github.com/modern-go/concurrent/LICENSE | 201 - .../github.com/modern-go/concurrent/README.md | 49 - .../modern-go/concurrent/executor.go | 14 - .../modern-go/concurrent/go_above_19.go | 15 - .../modern-go/concurrent/go_below_19.go | 33 - vendor/github.com/modern-go/concurrent/log.go | 13 - .../github.com/modern-go/concurrent/test.sh | 12 - .../concurrent/unbounded_executor.go | 119 - .../github.com/modern-go/reflect2/.gitignore | 2 - .../github.com/modern-go/reflect2/.travis.yml | 15 - .../github.com/modern-go/reflect2/Gopkg.lock | 9 - .../github.com/modern-go/reflect2/Gopkg.toml | 31 - vendor/github.com/modern-go/reflect2/LICENSE | 201 - .../github.com/modern-go/reflect2/README.md | 71 - .../modern-go/reflect2/go_above_118.go | 23 - .../modern-go/reflect2/go_above_19.go | 17 - .../modern-go/reflect2/go_below_118.go | 21 - .../github.com/modern-go/reflect2/reflect2.go | 300 -- .../modern-go/reflect2/reflect2_amd64.s | 0 .../modern-go/reflect2/reflect2_kind.go | 30 - .../modern-go/reflect2/relfect2_386.s | 0 .../modern-go/reflect2/relfect2_amd64p32.s | 0 .../modern-go/reflect2/relfect2_arm.s | 0 .../modern-go/reflect2/relfect2_arm64.s | 0 .../modern-go/reflect2/relfect2_mips64x.s | 0 .../modern-go/reflect2/relfect2_mipsx.s | 0 .../modern-go/reflect2/relfect2_ppc64x.s | 0 .../modern-go/reflect2/relfect2_s390x.s | 0 .../modern-go/reflect2/safe_field.go | 58 - .../github.com/modern-go/reflect2/safe_map.go | 101 - .../modern-go/reflect2/safe_slice.go | 92 - .../modern-go/reflect2/safe_struct.go | 29 - .../modern-go/reflect2/safe_type.go | 78 - .../github.com/modern-go/reflect2/type_map.go | 70 - .../modern-go/reflect2/unsafe_array.go | 65 - .../modern-go/reflect2/unsafe_eface.go | 59 - .../modern-go/reflect2/unsafe_field.go | 74 - .../modern-go/reflect2/unsafe_iface.go | 64 - .../modern-go/reflect2/unsafe_link.go | 76 - .../modern-go/reflect2/unsafe_map.go | 130 - .../modern-go/reflect2/unsafe_ptr.go | 46 - .../modern-go/reflect2/unsafe_slice.go | 177 - .../modern-go/reflect2/unsafe_struct.go | 59 - .../modern-go/reflect2/unsafe_type.go | 85 - .../opentracing/opentracing-go/.gitignore | 1 - .../opentracing/opentracing-go/.golangci.yml | 3 - .../opentracing/opentracing-go/CHANGELOG.md | 63 - .../opentracing/opentracing-go/LICENSE | 201 - .../opentracing/opentracing-go/Makefile | 20 - .../opentracing/opentracing-go/README.md | 171 - .../opentracing/opentracing-go/ext.go | 24 - .../opentracing/opentracing-go/ext/field.go | 17 - .../opentracing/opentracing-go/ext/tags.go | 215 - .../opentracing-go/globaltracer.go | 42 - .../opentracing/opentracing-go/gocontext.go | 65 - .../opentracing/opentracing-go/log/field.go | 282 -- .../opentracing/opentracing-go/log/util.go | 61 - .../opentracing/opentracing-go/noop.go | 64 - .../opentracing/opentracing-go/propagation.go | 176 - .../opentracing/opentracing-go/span.go | 189 - .../opentracing/opentracing-go/tracer.go | 304 -- vendor/gopkg.in/ini.v1/.editorconfig | 12 - vendor/gopkg.in/ini.v1/.gitignore | 7 - vendor/gopkg.in/ini.v1/.golangci.yml | 27 - vendor/gopkg.in/ini.v1/LICENSE | 191 - vendor/gopkg.in/ini.v1/Makefile | 15 - vendor/gopkg.in/ini.v1/README.md | 43 - vendor/gopkg.in/ini.v1/codecov.yml | 16 - vendor/gopkg.in/ini.v1/data_source.go | 76 - vendor/gopkg.in/ini.v1/deprecated.go | 22 - vendor/gopkg.in/ini.v1/error.go | 49 - vendor/gopkg.in/ini.v1/file.go | 541 --- vendor/gopkg.in/ini.v1/helper.go | 24 - vendor/gopkg.in/ini.v1/ini.go | 176 - vendor/gopkg.in/ini.v1/key.go | 837 ---- vendor/gopkg.in/ini.v1/parser.go | 520 --- vendor/gopkg.in/ini.v1/section.go | 256 - vendor/gopkg.in/ini.v1/struct.go | 747 --- vendor/modules.txt | 34 - 1140 files changed, 9 insertions(+), 97820 deletions(-) delete mode 100644 mantle/auth/aliyun.go delete mode 100644 mantle/cmd/ore/aliyun.go delete mode 100644 mantle/cmd/ore/aliyun/aliyun.go delete mode 100644 mantle/cmd/ore/aliyun/copy-image.go delete mode 100644 mantle/cmd/ore/aliyun/create-image.go delete mode 100644 mantle/cmd/ore/aliyun/delete.go delete mode 100644 mantle/cmd/ore/aliyun/list-regions.go delete mode 100644 mantle/cmd/ore/aliyun/visibility.go delete mode 100644 mantle/platform/api/aliyun/api.go delete mode 100644 src/cosalib/aliyun.py delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/cli_profile_credentials_provider.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/credentials.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/default_credentials_provider.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/env_credentials_provider.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/profile_credentials_provider.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/uri_credentials_provider.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/path.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/utils.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/doc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/version.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_image_pipeline_execution.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_snapshot.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_activation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_capacity_reservation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_dedicated_host_cluster.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_demand.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_metric_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_report.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_elasticity_assurance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_component.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_prefix_list.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_savings_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_activation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_dedicated_host_cluster.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_demand.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_metric_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_reports.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_component.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_pipeline.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_prefix_list.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deregister_managed_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_activations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservation_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_settings.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_supported_instance_type_family.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metric_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metrics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_report_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_reports.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_default_kms_key_id.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_encryption_by_default_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_auto_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_components.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_from_family.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipeline_executions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipelines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attachment_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_maintenance_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_managed_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_associations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_lists.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instance_auto_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_estimation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_send_file_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_advice.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_capacity_units.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_terminal_sessions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_activation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_disk_encryption_by_default.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_disk_encryption_by_default.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/end_terminal_session.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_plugin_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_capacity_reservation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_cloud_assistant_settings.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_cluster_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_hosts_charge_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_demand.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_diagnostic_metric_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_default_kms_key_id.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_deployment.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance_auto_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attachment_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_maintenance_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_metadata_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_invocation_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_managed_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prefix_list.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_auto_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_category.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_capacity_unit_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_elasticity_assurance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_storage_capacity_unit.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_dedicated_host.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_capacity_reservation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_elasticity_assurances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk_default_kms_key_id.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_command.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/send_file.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_image_pipeline_execution.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_terminal_session.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_items.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_action_on_maintenance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation_list.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_add_accounts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_additional_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_advanced_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_agent_upgrade_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_capacity_reservations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allowed_upgrade_windows_.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_assigned_private_ip_addresses_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachment.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachments.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute_values.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_histories.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_dedicated_host_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zone.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bond_interface_specification.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacities.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item_in_describe_capacity_reservation_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usage.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usages.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_conditions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection_tracking_configuration.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connections.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_copy_encryption_configuration.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupon.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cpu_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster_capacity.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_id_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demands.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_depreciate_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detection_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_from_family.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_pipelines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_images.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_storage_set_details.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item_in_describe_elasticity_assurance_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usage.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usages.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_enhanced_network.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entries.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_id_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_features.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_dedicated_hosts_charge_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_instance_charge_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hibernation_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host_detail_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_features.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tag.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_import_image_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disk.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instance_history_events.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instances_full_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_create_auto_provisioning_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_managed_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_response.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_reboot_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_start_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_stop_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_auto_provisioning_group_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instance_attachment_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_managed_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_invocations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_send_file_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_invocations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_send_file_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set_in_assign_private_ip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_create_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_assign_ipv6_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_create_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_assign_ipv6_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_create_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issue.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_report_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_reports.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_items.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_result.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_numbers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_versions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacities.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacity.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_window.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_windows_.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_marketplace_image_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_member_network_interface_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metadata_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_result.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metrics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_migration_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_eni_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_card_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_cards.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_traffic_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_delete_snapshot_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_describe_task_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_reset_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_configs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definition.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definitions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_names.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_pay_as_you_go_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_placement.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_possible_values.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_association.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_associations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_lists.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info_in_describe_savings_plan_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_warning.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_dns_name_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set_in_assign_private_ip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_create_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_pool_options_id_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotion.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rule.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rules.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_infos.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_delete_snapshot_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_describe_task_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_reset_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_report.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reports.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_modify_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_purchase_reserved_instances_offering.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_renew_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_savings_plan_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_create_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_launch_template_versions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_session.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sessions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_in_describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_configs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshot_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshots.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacities.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacity.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_units.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_sets.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_prices.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_instance_modification_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_renewal_price.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_infos.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_boot_modes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_custom_instance_type_families.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_host_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_host_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_topology_types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_values.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_create_network_interface.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_activations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_provisioning_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_snapshot_policy_ex.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_capacity_reservations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_commands.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_host_clusters.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_hosts.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_elasticity_assurances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_components.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_from_family.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipeline_executions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipelines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocation_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocations.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_key_pairs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_templates.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_managed_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interface_attribute.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interfaces.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_reserved_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_send_file_results.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshot_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_storage_capacity_units.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_to_region_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topologys.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/LICENSE delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/auth.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/bucket.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/client.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conf.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conn.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/const.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/crc.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/download.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/error.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_6.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_7.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/livechannel.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/mime.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/model.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multicopy.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multipart.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/option.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/progress.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_6.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_7.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object_type.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_6.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_7.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/type.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/upload.go delete mode 100644 vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/utils.go delete mode 100644 vendor/github.com/json-iterator/go/.codecov.yml delete mode 100644 vendor/github.com/json-iterator/go/.gitignore delete mode 100644 vendor/github.com/json-iterator/go/.travis.yml delete mode 100644 vendor/github.com/json-iterator/go/Gopkg.lock delete mode 100644 vendor/github.com/json-iterator/go/Gopkg.toml delete mode 100644 vendor/github.com/json-iterator/go/LICENSE delete mode 100644 vendor/github.com/json-iterator/go/README.md delete mode 100644 vendor/github.com/json-iterator/go/adapter.go delete mode 100644 vendor/github.com/json-iterator/go/any.go delete mode 100644 vendor/github.com/json-iterator/go/any_array.go delete mode 100644 vendor/github.com/json-iterator/go/any_bool.go delete mode 100644 vendor/github.com/json-iterator/go/any_float.go delete mode 100644 vendor/github.com/json-iterator/go/any_int32.go delete mode 100644 vendor/github.com/json-iterator/go/any_int64.go delete mode 100644 vendor/github.com/json-iterator/go/any_invalid.go delete mode 100644 vendor/github.com/json-iterator/go/any_nil.go delete mode 100644 vendor/github.com/json-iterator/go/any_number.go delete mode 100644 vendor/github.com/json-iterator/go/any_object.go delete mode 100644 vendor/github.com/json-iterator/go/any_str.go delete mode 100644 vendor/github.com/json-iterator/go/any_uint32.go delete mode 100644 vendor/github.com/json-iterator/go/any_uint64.go delete mode 100644 vendor/github.com/json-iterator/go/build.sh delete mode 100644 vendor/github.com/json-iterator/go/config.go delete mode 100644 vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md delete mode 100644 vendor/github.com/json-iterator/go/iter.go delete mode 100644 vendor/github.com/json-iterator/go/iter_array.go delete mode 100644 vendor/github.com/json-iterator/go/iter_float.go delete mode 100644 vendor/github.com/json-iterator/go/iter_int.go delete mode 100644 vendor/github.com/json-iterator/go/iter_object.go delete mode 100644 vendor/github.com/json-iterator/go/iter_skip.go delete mode 100644 vendor/github.com/json-iterator/go/iter_skip_sloppy.go delete mode 100644 vendor/github.com/json-iterator/go/iter_skip_strict.go delete mode 100644 vendor/github.com/json-iterator/go/iter_str.go delete mode 100644 vendor/github.com/json-iterator/go/jsoniter.go delete mode 100644 vendor/github.com/json-iterator/go/pool.go delete mode 100644 vendor/github.com/json-iterator/go/reflect.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_array.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_dynamic.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_extension.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_json_number.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_json_raw_message.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_map.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_marshaler.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_native.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_optional.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_slice.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_struct_decoder.go delete mode 100644 vendor/github.com/json-iterator/go/reflect_struct_encoder.go delete mode 100644 vendor/github.com/json-iterator/go/stream.go delete mode 100644 vendor/github.com/json-iterator/go/stream_float.go delete mode 100644 vendor/github.com/json-iterator/go/stream_int.go delete mode 100644 vendor/github.com/json-iterator/go/stream_str.go delete mode 100644 vendor/github.com/json-iterator/go/test.sh delete mode 100644 vendor/github.com/modern-go/concurrent/.gitignore delete mode 100644 vendor/github.com/modern-go/concurrent/.travis.yml delete mode 100644 vendor/github.com/modern-go/concurrent/LICENSE delete mode 100644 vendor/github.com/modern-go/concurrent/README.md delete mode 100644 vendor/github.com/modern-go/concurrent/executor.go delete mode 100644 vendor/github.com/modern-go/concurrent/go_above_19.go delete mode 100644 vendor/github.com/modern-go/concurrent/go_below_19.go delete mode 100644 vendor/github.com/modern-go/concurrent/log.go delete mode 100644 vendor/github.com/modern-go/concurrent/test.sh delete mode 100644 vendor/github.com/modern-go/concurrent/unbounded_executor.go delete mode 100644 vendor/github.com/modern-go/reflect2/.gitignore delete mode 100644 vendor/github.com/modern-go/reflect2/.travis.yml delete mode 100644 vendor/github.com/modern-go/reflect2/Gopkg.lock delete mode 100644 vendor/github.com/modern-go/reflect2/Gopkg.toml delete mode 100644 vendor/github.com/modern-go/reflect2/LICENSE delete mode 100644 vendor/github.com/modern-go/reflect2/README.md delete mode 100644 vendor/github.com/modern-go/reflect2/go_above_118.go delete mode 100644 vendor/github.com/modern-go/reflect2/go_above_19.go delete mode 100644 vendor/github.com/modern-go/reflect2/go_below_118.go delete mode 100644 vendor/github.com/modern-go/reflect2/reflect2.go delete mode 100644 vendor/github.com/modern-go/reflect2/reflect2_amd64.s delete mode 100644 vendor/github.com/modern-go/reflect2/reflect2_kind.go delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_386.s delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_arm.s delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_arm64.s delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_mips64x.s delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_mipsx.s delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s delete mode 100644 vendor/github.com/modern-go/reflect2/relfect2_s390x.s delete mode 100644 vendor/github.com/modern-go/reflect2/safe_field.go delete mode 100644 vendor/github.com/modern-go/reflect2/safe_map.go delete mode 100644 vendor/github.com/modern-go/reflect2/safe_slice.go delete mode 100644 vendor/github.com/modern-go/reflect2/safe_struct.go delete mode 100644 vendor/github.com/modern-go/reflect2/safe_type.go delete mode 100644 vendor/github.com/modern-go/reflect2/type_map.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_array.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_eface.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_field.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_iface.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_link.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_map.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_ptr.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_slice.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_struct.go delete mode 100644 vendor/github.com/modern-go/reflect2/unsafe_type.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/.gitignore delete mode 100644 vendor/github.com/opentracing/opentracing-go/.golangci.yml delete mode 100644 vendor/github.com/opentracing/opentracing-go/CHANGELOG.md delete mode 100644 vendor/github.com/opentracing/opentracing-go/LICENSE delete mode 100644 vendor/github.com/opentracing/opentracing-go/Makefile delete mode 100644 vendor/github.com/opentracing/opentracing-go/README.md delete mode 100644 vendor/github.com/opentracing/opentracing-go/ext.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/ext/field.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/ext/tags.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/globaltracer.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/gocontext.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/log/field.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/log/util.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/noop.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/propagation.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/span.go delete mode 100644 vendor/github.com/opentracing/opentracing-go/tracer.go delete mode 100644 vendor/gopkg.in/ini.v1/.editorconfig delete mode 100644 vendor/gopkg.in/ini.v1/.gitignore delete mode 100644 vendor/gopkg.in/ini.v1/.golangci.yml delete mode 100644 vendor/gopkg.in/ini.v1/LICENSE delete mode 100644 vendor/gopkg.in/ini.v1/Makefile delete mode 100644 vendor/gopkg.in/ini.v1/README.md delete mode 100644 vendor/gopkg.in/ini.v1/codecov.yml delete mode 100644 vendor/gopkg.in/ini.v1/data_source.go delete mode 100644 vendor/gopkg.in/ini.v1/deprecated.go delete mode 100644 vendor/gopkg.in/ini.v1/error.go delete mode 100644 vendor/gopkg.in/ini.v1/file.go delete mode 100644 vendor/gopkg.in/ini.v1/helper.go delete mode 100644 vendor/gopkg.in/ini.v1/ini.go delete mode 100644 vendor/gopkg.in/ini.v1/key.go delete mode 100644 vendor/gopkg.in/ini.v1/parser.go delete mode 100644 vendor/gopkg.in/ini.v1/section.go delete mode 100644 vendor/gopkg.in/ini.v1/struct.go diff --git a/docs/mantle/credentials.md b/docs/mantle/credentials.md index d4c184e330..0c9c4bca10 100644 --- a/docs/mantle/credentials.md +++ b/docs/mantle/credentials.md @@ -6,7 +6,7 @@ nav_order: 9 # Platform Credentials {: .no_toc } -Each platform reads the credentials it uses from different files. The `aliyun`, `aws`, `azure`, `do`, `esx` and `packet` +Each platform reads the credentials it uses from different files. The `aws`, `azure`, `do`, `esx` and `packet` platforms support selecting from multiple configured credentials, call "profiles". The examples below are for the "default" profile, but other profiles can be specified in the credentials files and selected via the `---profile` flag: @@ -17,47 +17,6 @@ kola spawn -p aws --aws-profile other_profile 1. TOC {:toc} -## aliyun - -`aliyun` reads the `~/.aliyun/config.json` file used by Aliyun's aliyun command-line tool. -It can be created using the `aliyun` command: -``` -$ aliyun configure -``` -To configure a different profile, use the `--profile` flag -``` -$ aliyun configure --profile other_profile -``` - -The `~/.aliyun/config.json` file can also be populated manually: -``` -{ - "current": "", - "profiles": [ - { - "name": "", - "mode": "AK", - "access_key_id": "ACCESS_KEY_ID", - "access_key_secret": "ACCESS_KEY_SECRET", - "sts_token": "", - "ram_role_name": "", - "ram_role_arn": "", - "ram_session_name": "", - "private_key": "", - "key_pair_name": "", - "expired_seconds": 0, - "verified": "", - "region_id": "eu-central-1", - "output_format": "json", - "language": "zh", - "site": "", - "retry_timeout": 0, - "retry_count": 0 - } - ] -} -``` - ## aws `aws` reads the `~/.aws/credentials` file used by Amazon's aws command-line tool. diff --git a/docs/mantle/ore.md b/docs/mantle/ore.md index e2b78d8a75..c45db3950e 100644 --- a/docs/mantle/ore.md +++ b/docs/mantle/ore.md @@ -6,7 +6,7 @@ nav_order: 1 # ore Ore provides a low-level interface for each cloud provider. It has commands -related to launching instances on a variety of platforms (gcloud, aliyun, aws, +related to launching instances on a variety of platforms (gcloud, aws, azure, esx, and packet) within the latest SDK image. Ore mimics the underlying api for each cloud provider closely, so the interface for each cloud provider is different. See each providers `help` command for the available actions. diff --git a/go.mod b/go.mod index 13c34910eb..616567f20a 100644 --- a/go.mod +++ b/go.mod @@ -12,8 +12,6 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.4 github.com/IBM-Cloud/bluemix-go v0.0.0-20250324085928-caa6511f0c13 github.com/IBM/ibm-cos-sdk-go v1.14.0 - github.com/aliyun/alibaba-cloud-sdk-go v1.63.107 - github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible github.com/aws/aws-sdk-go-v2 v1.41.6 github.com/aws/aws-sdk-go-v2/config v1.32.16 github.com/aws/aws-sdk-go-v2/credentials v1.19.15 @@ -105,14 +103,10 @@ require ( github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect - github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/spf13/pflag v1.0.10 // indirect @@ -133,7 +127,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20260401024825-9d38bb4040a9 // indirect google.golang.org/grpc v1.80.0 // indirect google.golang.org/protobuf v1.36.11 // indirect - gopkg.in/ini.v1 v1.67.0 // indirect sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/go.sum b/go.sum index ac7d03f494..3b8fd1004a 100644 --- a/go.sum +++ b/go.sum @@ -4,7 +4,6 @@ cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIi cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs= cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.21.1 h1:jHb/wfvRikGdxMXYV3QG/SzUOPYN9KEUUuC0Yd0/vC0= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.21.1/go.mod h1:pzBXCYn05zvYIrwLgtK8Ap8QcjRg+0i76tMQdWN6wOk= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.13.1 h1:Hk5QBxZQC1jb2Fwj6mpzme37xbCDdNTxU7O9eb5+LB4= @@ -35,19 +34,12 @@ github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJ github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE= github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0 h1:XRzhVemXdgvJqCH0sFfrBUTnUJSBrBf7++ypk+twtRs= github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0/go.mod h1:HKpQxkWaGLJ+D/5H8QRpyQXA1eKjxkFlOMwck5+33Jk= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/IBM-Cloud/bluemix-go v0.0.0-20250324085928-caa6511f0c13 h1:oBtZEpmwueJSSS6vgK1BJmoxAX5di3uWGPgAmeMz1i8= github.com/IBM-Cloud/bluemix-go v0.0.0-20250324085928-caa6511f0c13/go.mod h1:/7hMjdZA6fEpd/dQAOEABxKEwN0t72P3PlpEDu0Y7bE= github.com/IBM/go-sdk-core/v5 v5.21.2 h1:mJ5QbLPOm4g5qhZiVB6wbSllfpeUExftGoyPek2hk4M= github.com/IBM/go-sdk-core/v5 v5.21.2/go.mod h1:ngpMgwkjur1VNUjqn11LPk3o5eCyOCRbcfg/0YAY7Hc= github.com/IBM/ibm-cos-sdk-go v1.14.0 h1:K8uhFw4/yAEVjCHpaFkQXdPaPC4LGa9Zhb66vt3rS3M= github.com/IBM/ibm-cos-sdk-go v1.14.0/go.mod h1:Nvo9K1YYlJ3NtolQnnbOwV5MFre24YhnRuMzheMakeI= -github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/aliyun/alibaba-cloud-sdk-go v1.63.107 h1:qagvUyrgOnBIlVRQWOyCZGVKUIYbMBdGdJ104vBpRFU= -github.com/aliyun/alibaba-cloud-sdk-go v1.63.107/go.mod h1:SOSDHfe1kX91v3W5QiBsWSLqeLxImobbMX1mxrFHsVQ= -github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible h1:8psS8a+wKfiLt1iVDX79F7Y6wUM49Lcha2FMXt4UM8g= -github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/aws/aws-sdk-go-v2 v1.41.6 h1:1AX0AthnBQzMx1vbmir3Y4WsnJgiydmnJjiLu+LvXOg= github.com/aws/aws-sdk-go-v2 v1.41.6/go.mod h1:dy0UzBIfwSeot4grGvY1AqFWN5zgziMmWGzysDnHFcQ= @@ -138,7 +130,6 @@ github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/frostschutz/go-fibmap v0.0.0-20160825162329-b32c231bfe6a h1:uW54f9RL/0sd6JKvYXp18CbwGWgrn7eknZRm08VEdPQ= github.com/frostschutz/go-fibmap v0.0.0-20160825162329-b32c231bfe6a/go.mod h1:lRHaZbkaPTYkvVMU3Wm4lF/4113iwNclbfv/gZsHG+I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= @@ -148,7 +139,6 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS github.com/gabriel-vasile/mimetype v1.4.11 h1:AQvxbp830wPhHTqc1u7nzoLT+ZFxGY7emj5DR5DYFik= github.com/gabriel-vasile/mimetype v1.4.11/go.mod h1:d+9Oxyo1wTzWdyVUPMmXFvp4F9tea18J8ufA774AB3s= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -179,10 +169,8 @@ github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9L github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo= github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= @@ -200,7 +188,6 @@ github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -209,7 +196,6 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM= @@ -242,9 +228,6 @@ github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9Y github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/keybase/go-keychain v0.0.1 h1:way+bWYa6lDppZoZcgMbYsvC7GxljxrskdNInRtuthU= @@ -268,11 +251,6 @@ github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= @@ -324,8 +302,6 @@ github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y= github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b h1:FfH+VrHHk6Lxt9HdVS0PXzSXFyS2NbZKXv33FYPol0A= -github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b/go.mod h1:AC62GU6hc0BrNm+9RK9VSiwa/EUe1bkIeFORAMcHvJU= github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw= github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pin/tftp v2.1.0+incompatible h1:Yng4J7jv6lOc6IF4XoB5mnd3P7ZrF60XQq+my3FAMus= @@ -353,17 +329,12 @@ github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpE github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= -github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= -github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= -github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= github.com/vincent-petithory/dataurl v1.0.0 h1:cXw+kPto8NLuJtlMsI152irrVw9fRDX8AbShPRpg2CI= github.com/vincent-petithory/dataurl v1.0.0/go.mod h1:FHafX5vmDzyP+1CQATJn7WFKc9CvnvxyvZy6I1MrG/U= github.com/vishvananda/netlink v1.3.1 h1:3AEMt62VKqz90r0tmNhog0r/PpWKmrEShJU0wJW6bV0= @@ -403,13 +374,10 @@ go.opentelemetry.io/otel/sdk/metric v1.42.0 h1:D/1QR46Clz6ajyZ3G8SgNlTJKBdGp84q9 go.opentelemetry.io/otel/sdk/metric v1.42.0/go.mod h1:Ua6AAlDKdZ7tdvaQKfSmnFTdHx37+J4ba8MwVCYM5hc= go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09nk+3A= go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0= -go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0= go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= @@ -423,16 +391,6 @@ golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI= golang.org/x/crypto v0.50.0/go.mod h1:3muZ7vA7PBCE6xgPX7nkzzjiUq87kRItoJQM1Yo8S+Q= -golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= @@ -485,7 +443,6 @@ golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -552,10 +509,7 @@ golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg= golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164= golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= -golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= @@ -573,12 +527,8 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= -gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= google.golang.org/api v0.276.0 h1:nVArUtfLEihtW+b0DdcqRGK1xoEm2+ltAihyztq7MKY= google.golang.org/api v0.276.0/go.mod h1:Fnag/EWUPIcJXuIkP1pjoTgS5vdxlk3eeemL7Do6bvw= google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 h1:XzmzkmB14QhVhgnawEVsOn6OFsnpyxNPRY9QV01dNB0= @@ -606,8 +556,6 @@ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= -gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -617,9 +565,7 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= diff --git a/mantle/README.md b/mantle/README.md index ff5ad4a3aa..35c92ff4a8 100644 --- a/mantle/README.md +++ b/mantle/README.md @@ -153,7 +153,7 @@ is not invoked manually. ### ore Ore provides a low-level interface for each cloud provider. It has commands -related to launching instances on a variety of platforms (gcloud, aliyun, aws, +related to launching instances on a variety of platforms (gcloud, aws, azure, esx, and ibmcloud) within the latest SDK image. Ore mimics the underlying api for each cloud provider closely, so the interface for each cloud provider is different. See each providers `help` command for the available actions. @@ -183,7 +183,7 @@ Plume release handles this as well, so it does not need to be run as part of the release process. ## Platform Credentials -Each platform reads the credentials it uses from different files. The `aliyun`, `aws`, `azure`, `do`, `esx`, and `ibmcloud` +Each platform reads the credentials it uses from different files. The `aws`, `azure`, `do`, `esx`, and `ibmcloud` platforms support selecting from multiple configured credentials, call "profiles". The examples below are for the "default" profile, but other profiles can be specified in the credentials files and selected via the `---profile` flag: @@ -191,46 +191,6 @@ via the `---profile` flag: kola spawn -p aws --aws-profile other_profile ``` -### aliyun -`aliyun` reads the `~/.aliyun/config.json` file used by Aliyun's aliyun command-line tool. -It can be created using the `aliyun` command: -``` -$ aliyun configure -``` -To configure a different profile, use the `--profile` flag -``` -$ aliyun configure --profile other_profile -``` - -The `~/.aliyun/config.json` file can also be populated manually: -``` -{ - "current": "", - "profiles": [ - { - "name": "", - "mode": "AK", - "access_key_id": "ACCESS_KEY_ID", - "access_key_secret": "ACCESS_KEY_SECRET", - "sts_token": "", - "ram_role_name": "", - "ram_role_arn": "", - "ram_session_name": "", - "private_key": "", - "key_pair_name": "", - "expired_seconds": 0, - "verified": "", - "region_id": "eu-central-1", - "output_format": "json", - "language": "zh", - "site": "", - "retry_timeout": 0, - "retry_count": 0 - } - ] -} -``` - ### aws `aws` reads the `~/.aws/credentials` file used by Amazon's aws command-line tool. It can be created using the `aws` command: diff --git a/mantle/auth/aliyun.go b/mantle/auth/aliyun.go deleted file mode 100644 index 300f11156d..0000000000 --- a/mantle/auth/aliyun.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2019 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package auth - -import ( - "encoding/json" - "fmt" - "os" - "os/user" - "path/filepath" -) - -const AliyunConfigPath = ".aliyun/config.json" - -type AliyunProfile struct { - Name string `json:"name"` - AccessKeyID string `json:"access_key_id"` - AccessKeySecret string `json:"access_key_secret"` - Region string `json:"region_id"` -} - -type AliyunConfig struct { - Profiles []AliyunProfile `json:"profiles"` -} - -// ReadAliyunConfig decodes an aliyun config file -// -// If path is empty, $HOME/.aliyun/config.json is read. -func ReadAliyunConfig(path string) (map[string]AliyunProfile, error) { - if path == "" { - user, err := user.Current() - if err != nil { - return nil, err - } - path = filepath.Join(user.HomeDir, AliyunConfigPath) - } - - f, err := os.Open(path) - if err != nil { - return nil, err - } - defer f.Close() - - var config AliyunConfig - if err := json.NewDecoder(f).Decode(&config); err != nil { - return nil, err - } - if len(config.Profiles) == 0 { - return nil, fmt.Errorf("aliyun config %q contains no profiles", path) - } - - retProfiles := make(map[string]AliyunProfile) - for _, p := range config.Profiles { - retProfiles[p.Name] = p - } - - return retProfiles, nil -} diff --git a/mantle/cmd/ore/aliyun.go b/mantle/cmd/ore/aliyun.go deleted file mode 100644 index 313085f7ec..0000000000 --- a/mantle/cmd/ore/aliyun.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2019 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package main - -import ( - "github.com/coreos/coreos-assembler/mantle/cmd/ore/aliyun" -) - -func init() { - root.AddCommand(aliyun.Aliyun) -} diff --git a/mantle/cmd/ore/aliyun/aliyun.go b/mantle/cmd/ore/aliyun/aliyun.go deleted file mode 100644 index 05fe51ef3d..0000000000 --- a/mantle/cmd/ore/aliyun/aliyun.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2019 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package aliyun - -import ( - "fmt" - "os" - - "github.com/coreos/pkg/capnslog" - "github.com/spf13/cobra" - - "github.com/coreos/coreos-assembler/mantle/cli" - "github.com/coreos/coreos-assembler/mantle/platform/api/aliyun" -) - -var ( - plog = capnslog.NewPackageLogger("github.com/coreos/coreos-assembler/mantle", "ore/aliyun") - - Aliyun = &cobra.Command{ - Use: "aliyun [command]", - Short: "aliyun machine utilities", - } - - API *aliyun.API - options aliyun.Options -) - -func init() { - defaultConfigPath := os.Getenv("ALIYUN_CONFIG_FILE") - - Aliyun.PersistentFlags().StringVar(&options.ConfigPath, "config-file", defaultConfigPath, "config file (default \""+defaultConfigPath+"\")") - Aliyun.PersistentFlags().StringVar(&options.Profile, "profile", "", "profile (default \"default\")") - Aliyun.PersistentFlags().StringVar(&options.Region, "region", "", "region") - cli.WrapPreRun(Aliyun, preflightCheck) -} - -func preflightCheck(cmd *cobra.Command, args []string) error { - plog.Debugf("Running aliyun preflight check") - api, err := aliyun.New(&options) - if err != nil { - return fmt.Errorf("could not create aliyun client: %v", err) - } - - plog.Debugf("Preflight check success; we have liftoff") - API = api - return nil -} diff --git a/mantle/cmd/ore/aliyun/copy-image.go b/mantle/cmd/ore/aliyun/copy-image.go deleted file mode 100644 index ca9e9f0641..0000000000 --- a/mantle/cmd/ore/aliyun/copy-image.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2019 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package aliyun - -import ( - "encoding/json" - "fmt" - "os" - - "github.com/spf13/cobra" -) - -var ( - cmdCopyImage = &cobra.Command{ - Use: "copy-image ", - Short: "Copy aliyun image between regions", - Long: `Copy an aliyun image to one or more regions. - -After a successful run, the final line of output will be a line of JSON describing the resources created. -`, - RunE: runCopyImage, - - SilenceUsage: true, - } - - sourceImageID string - destImageName string - destImageDescription string - waitForReady bool -) - -func init() { - Aliyun.AddCommand(cmdCopyImage) - cmdCopyImage.Flags().StringVar(&sourceImageID, "image", "", "source image") - cmdCopyImage.Flags().StringVar(&destImageName, "name", "", "destination image name") - cmdCopyImage.Flags().StringVar(&destImageDescription, "description", "", "destination image description") - cmdCopyImage.Flags().BoolVar(&waitForReady, "wait-for-ready", false, "wait for the copied image to be marked available") -} - -func runCopyImage(cmd *cobra.Command, args []string) error { - if len(args) == 0 { - fmt.Fprintf(os.Stderr, "Specify one or more regions.\n") - os.Exit(2) - } - - ids := make(map[string]string) - for _, region := range args { - id, err := API.CopyImage(sourceImageID, destImageName, region, destImageDescription, "", false, waitForReady) - if err != nil { - fmt.Fprintf(os.Stderr, "Copying image to region %q: %v\n", region, err) - os.Exit(1) - } - ids[region] = id - } - - err := json.NewEncoder(os.Stdout).Encode(ids) - if err != nil { - fmt.Fprintf(os.Stderr, "Couldn't encode result: %v\n", err) - os.Exit(1) - } - return nil -} diff --git a/mantle/cmd/ore/aliyun/create-image.go b/mantle/cmd/ore/aliyun/create-image.go deleted file mode 100644 index a1de478333..0000000000 --- a/mantle/cmd/ore/aliyun/create-image.go +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright 2019 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package aliyun - -import ( - "fmt" - "os" - - "github.com/spf13/cobra" - - "github.com/coreos/coreos-assembler/mantle/util" -) - -var ( - cmdCreate = &cobra.Command{ - Use: "create-image", - Short: "Create image on aliyun", - Long: `Upload an image to aliyun. - -After a successful run, the final line of output will be the ID of the image. -`, - RunE: runCreate, - - SilenceUsage: true, - } - - bucket string - diskSize string - path string - name string - format string - device string - description string - architecture string - force bool - sizeInspect bool - deleteObject bool -) - -func init() { - Aliyun.AddCommand(cmdCreate) - cmdCreate.Flags().StringVar(&path, "file", "", "path to image") - cmdCreate.Flags().StringVar(&diskSize, "disk-size-gib", "8", "image disk size in GiB") - cmdCreate.Flags().BoolVar(&sizeInspect, "disk-size-inspect", false, "set image disk size to size of local file") - cmdCreate.Flags().StringVar(&bucket, "bucket", "", "object storage bucket") - cmdCreate.Flags().StringVar(&format, "format", "qcow2", "image format") - cmdCreate.Flags().StringVar(&device, "device", "/dev/xvda", "image device") - cmdCreate.Flags().StringVar(&description, "description", "", "image description") - cmdCreate.Flags().StringVar(&architecture, "architecture", "x86_64", "image architecture") - cmdCreate.Flags().StringVar(&name, "name", "", "image name") - cmdCreate.Flags().BoolVar(&force, "force", false, "overwrite any existing object storage") - cmdCreate.Flags().BoolVar(&deleteObject, "delete-object", true, "delete uploaded OSS object after image is created") -} - -func runCreate(cmd *cobra.Command, args []string) error { - // Check if image exists first when force not enabled - if !force { - images, err := API.GetImages(name) - if err != nil { - fmt.Fprintf(os.Stderr, "getting images: %v", err) - os.Exit(1) - } - - for _, image := range images.Images.Image { - fmt.Println(image.ImageId) - return nil - } - } - - if sizeInspect { - imageInfo, err := util.GetImageInfo(path) - if err != nil { - fmt.Fprintf(os.Stderr, "Unable to query size of disk: %v\n", err) - os.Exit(1) - } - plog.Debugf("Image size: %v\n", imageInfo.VirtualSize) - const GiB = 1024 * 1024 * 1024 - diskSizeGiB := uint(imageInfo.VirtualSize / GiB) - // Round up if there's leftover - if imageInfo.VirtualSize%GiB > 0 { - diskSizeGiB += 1 - } - - diskSize = fmt.Sprintf("%d", diskSizeGiB) - } - - err := API.UploadFile(path, bucket, name, force) - if err != nil { - fmt.Fprintf(os.Stderr, "Uploading image to object storage: %v\n", err) - os.Exit(1) - } - - id, err := API.ImportImage(format, bucket, name, diskSize, device, name, description, architecture, force) - if err != nil { - fmt.Fprintf(os.Stderr, "Couldn't create image: %v\n", err) - os.Exit(1) - } - - if deleteObject { - if err := API.DeleteFile(bucket, name); err != nil { - fmt.Fprintf(os.Stderr, "Deleting image from object storage: %v\n", err) - os.Exit(1) - } - } - - fmt.Println(id) - return nil -} diff --git a/mantle/cmd/ore/aliyun/delete.go b/mantle/cmd/ore/aliyun/delete.go deleted file mode 100644 index 64fe4bab55..0000000000 --- a/mantle/cmd/ore/aliyun/delete.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2019 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package aliyun - -import ( - "fmt" - "os" - - "github.com/spf13/cobra" -) - -var ( - cmdDelete = &cobra.Command{ - Use: "delete-image", - Short: "Delete image on aliyun", - Long: `Delete an image from aliyun.`, - RunE: runDelete, - - SilenceUsage: true, - } - - deleteId string - deleteForce bool -) - -func init() { - Aliyun.AddCommand(cmdDelete) - cmdDelete.Flags().StringVar(&deleteId, "id", "", "image ID") - cmdDelete.Flags().BoolVar(&deleteForce, "force", false, "force deletion") -} - -func runDelete(cmd *cobra.Command, args []string) error { - err := API.DeleteImage(deleteId, deleteForce) - if err != nil { - fmt.Fprintf(os.Stderr, "Couldn't delete image: %v\n", err) - os.Exit(1) - } - return nil -} diff --git a/mantle/cmd/ore/aliyun/list-regions.go b/mantle/cmd/ore/aliyun/list-regions.go deleted file mode 100644 index 9aff27ab1e..0000000000 --- a/mantle/cmd/ore/aliyun/list-regions.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2019 Red Hat Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package aliyun - -import ( - "fmt" - "os" - - "github.com/spf13/cobra" -) - -var ( - cmdListRegions = &cobra.Command{ - Use: "list-regions", - Short: "List enabled regions in the given aliyun account", - Long: `List enabled regions in the given aliyun account.`, - RunE: runListRegions, - - SilenceUsage: true, - } -) - -func init() { - Aliyun.AddCommand(cmdListRegions) -} - -func runListRegions(cmd *cobra.Command, args []string) error { - regions, err := API.ListRegions() - if err != nil { - fmt.Fprintf(os.Stderr, "could not list regions: %v\n", err) - os.Exit(1) - } - - for _, region := range regions { - fmt.Println(region) - } - return nil -} diff --git a/mantle/cmd/ore/aliyun/visibility.go b/mantle/cmd/ore/aliyun/visibility.go deleted file mode 100644 index 6b6372cf14..0000000000 --- a/mantle/cmd/ore/aliyun/visibility.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2021 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package aliyun - -import ( - "fmt" - "strings" - - "github.com/spf13/cobra" -) - -var ( - cmdVisibility = &cobra.Command{ - Use: "visibility ", - Short: "Change the visibility of images on aliyun", - Long: `Change the visibilityu of images on aliyun. - -Images can be marked as publicly available or private. -`, - RunE: changeVisibility, - - SilenceUsage: true, - } - - private bool - public bool -) - -func init() { - Aliyun.AddCommand(cmdVisibility) - cmdVisibility.Flags().BoolVar(&private, "private", false, "mark image as private") - cmdVisibility.Flags().BoolVar(&public, "public", false, "mark image as publicly available") - -} - -func changeVisibility(cmd *cobra.Command, args []string) error { - if len(args) == 0 { - return fmt.Errorf("Specify one ore more region:image pairs.\n") - } - - if (public && private) || (!public && !private) { - return fmt.Errorf("Must only specify --public or --private.\n") - } - - supportedRegions, err := API.ListRegions() - if err != nil { - return fmt.Errorf("could not list regions: %v\n", err) - } - supportedMap := make(map[string]bool) - for _, r := range supportedRegions { - supportedMap[r] = true - } - - for _, pair := range args { - if !strings.Contains(pair, ":") { - return fmt.Errorf("Argument isn't a valid region:image pair: %v\n", pair) - } - - v := strings.Split(pair, ":") - if len(v) > 2 { - return fmt.Errorf("Argument isn't a valid region:image pair: %v\n", pair) - } - - region, image := v[0], v[1] - - if !supportedMap[region] { - return fmt.Errorf("%v is not a valid region\n", region) - } - - // default bool is false - var visibility bool - if public { - visibility = true - } - err = API.ChangeVisibility(region, image, visibility) - if err != nil { - return fmt.Errorf("Couldn't change the visibility of image %v in region %v: %v", image, region, err) - } - } - - return nil -} diff --git a/mantle/platform/api/aliyun/api.go b/mantle/platform/api/aliyun/api.go deleted file mode 100644 index bb5a9ad907..0000000000 --- a/mantle/platform/api/aliyun/api.go +++ /dev/null @@ -1,505 +0,0 @@ -// Copyright 2019 Red Hat -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package aliyun - -import ( - "fmt" - "io" - "sort" - "time" - - "github.com/coreos/coreos-assembler/mantle/auth" - "github.com/coreos/coreos-assembler/mantle/platform" - "github.com/coreos/coreos-assembler/mantle/util" - "github.com/coreos/pkg/capnslog" - "github.com/coreos/pkg/multierror" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/services/ecs" - "github.com/aliyun/aliyun-oss-go-sdk/oss" -) - -var plog = capnslog.NewPackageLogger("github.com/coreos/coreos-assembler/mantle", "platform/api/aliyun") - -var defaultConnectTimeout = 15 * time.Second -var defaultReadTimeout = 30 * time.Second - -type Options struct { - *platform.Options - // The aliyun region regional api calls should use - Region string - - // Config file. Defaults to ~/.aliyun/config.json - ConfigPath string - // The profile to use when resolving credentials, if applicable - Profile string - - // AccessKeyID is the optional access key to use. It will override all other sources - AccessKeyID string - // SecretKey is the optional secret key to use. It will override all other sources - SecretKey string -} - -type API struct { - ecs *ecs.Client - oss *oss.Client - opts *Options -} - -// New creates a new aliyun API wrapper. It uses credentials from any of the -// standard credentials sources, including the environment and the profile -// configured in ~/.aliyun. -func New(opts *Options) (*API, error) { - profiles, err := auth.ReadAliyunConfig(opts.ConfigPath) - if err != nil { - return nil, fmt.Errorf("couldn't read aliyun config: %v", err) - } - - if opts.Profile == "" { - opts.Profile = "default" - } - - profile, ok := profiles[opts.Profile] - if !ok { - return nil, fmt.Errorf("no such profile %q", opts.Profile) - } - - if opts.AccessKeyID == "" { - opts.AccessKeyID = profile.AccessKeyID - } - - if opts.SecretKey == "" { - opts.SecretKey = profile.AccessKeySecret - } - - if opts.Region == "" { - opts.Region = profile.Region - } - - config := sdk.NewConfig() - config.Scheme = "HTTPS" - credential := credentials.NewAccessKeyCredential(opts.AccessKeyID, opts.SecretKey) - ecs, err := ecs.NewClientWithOptions(opts.Region, config, credential) - if err != nil { - return nil, err - } - - oss, err := oss.New(getOSSEndpoint(opts.Region), opts.AccessKeyID, opts.SecretKey) - if err != nil { - return nil, err - } - - api := &API{ - ecs: ecs, - oss: oss, - opts: opts, - } - - return api, nil -} - -func getOSSEndpoint(region string) string { - return fmt.Sprintf("https://oss-%s.aliyuncs.com", region) -} - -// CopyImage replicates an image to a new region -func (a *API) CopyImage(source_id, dest_name, dest_region, dest_description, kms_key_id string, encrypted bool, wait_for_ready bool) (string, error) { - request := ecs.CreateCopyImageRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.Scheme = "https" - request.ImageId = source_id - request.DestinationImageName = dest_name - request.DestinationRegionId = dest_region - request.DestinationDescription = dest_description - request.KMSKeyId = kms_key_id - request.Encrypted = requests.NewBoolean(encrypted) - request.Tag = &[]ecs.CopyImageTag{ - { - Key: "created-by", - Value: "mantle", - }, - } - - // Check if an image with the name has already been uploaded. This can - // happen when replication to a region fails which happens often on aliyun - images, err := a.GetImagesInRegion(dest_name, dest_region) - if err != nil { - return "", fmt.Errorf("getting image: %v", err) - } - - // return early if there is already an image with that tag - if len(images.Images.Image) > 0 { - plog.Infof("image with name %v in %v region already exists--skipping copy", dest_name, dest_region) - return images.Images.Image[0].ImageId, nil - } - - response, err := a.ecs.CopyImage(request) - if err != nil { - return "", fmt.Errorf("copying image: %v", err) - } - - // if we have a need to operate on an image immediately after the image has - // been copied to a region, we can wait for it to be marked available - // - // NB: this gem from the Aliyun API docs - "A single region can have only - // one image copy task running at a time. Other image copy tasks queue up - // for the current task to complete before they run in sequence." - // - // Not sure if this means only one copy task can run for the *entire* region - // or if the limitation is per account, per region...but this kind of - // queuing would explain some of the delays observed. - if wait_for_ready { - plog.Infof("waiting for %v in %v to be available before returning", response.ImageId, dest_region) - if err = a.WaitForImageReady(dest_region, response.ImageId); err != nil { - // Waiting failed... Let's just log it and move on since this is - // just to be nice. if we do have to use the image right after, - // we'll fail. - plog.Warningf("failed to wait: %v", err) - } - } - return response.ImageId, nil -} - -// WaitForImageReady checks that an image in a region is available to be -// operated on. i.e. when you want to modify attributes of an image -func (a *API) WaitForImageReady(region_id string, image_id string) error { - checkAvailable := func() error { - images, err := a.GetImagesByID(image_id, region_id) - if err != nil { - return fmt.Errorf("getting images: %v", err) - } - for _, img := range images.Images.Image { - if img.ImageId == image_id && img.Status == "Available" { - return nil - } - } - return fmt.Errorf("%v in %v was not available", image_id, region_id) - } - - if err := util.RetryUntilTimeout(10*time.Minute, 10*time.Second, checkAvailable); err != nil { - return fmt.Errorf("%v in %v never became available: %v", image_id, region_id, err) - } - - return nil -} - -// ImportImage attempts to import an image from OSS returning the image_id & error -// -// NOTE: this function will re-use existing images that share the same final name -// if the name is not unique then provide force to pre-remove any images with the -// specified name -func (a *API) ImportImage(format, bucket, object, image_size, device, name, description, architecture string, force bool) (string, error) { - images, err := a.GetImages(name) - if err != nil { - return "", fmt.Errorf("getting images: %v", err) - } - - for _, image := range images.Images.Image { - if force { - plog.Infof("deleting pre-existing image %v", image.ImageId) - err = a.DeleteImage(image.ImageId, force) - if err != nil { - return "", fmt.Errorf("deleting image %v: %v", image.ImageId, err) - } - } else { - // save time & re-use the existing image but inform the user - plog.Infof("reusing existing image %v", image.ImageId) - return image.ImageId, nil - } - } - - request := ecs.CreateImportImageRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.DiskDeviceMapping = &[]ecs.ImportImageDiskDeviceMapping{ - { - Format: format, - OSSBucket: bucket, - OSSObject: object, - DiskImageSize: image_size, - Device: device, - }, - } - request.ImageName = name - request.Description = description - request.Architecture = architecture - request.Tag = &[]ecs.ImportImageTag{ - { - Key: "created-by", - Value: "mantle", - }, - } - - plog.Infof("importing image") - response, err := a.ecs.ImportImage(request) - if err != nil { - return "", fmt.Errorf("importing image: %v", err) - } - - return a.finishImportImageTask(response) -} - -// Wait for the import image task and return the image id. See also similar -// code in AWS' finishSnapshotTask. -func (a *API) finishImportImageTask(importImageResponse *ecs.ImportImageResponse) (string, error) { - lastStatus := "" - importDone := func(taskId string) (bool, error) { - request := ecs.CreateDescribeTasksRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.TaskIds = taskId - res, err := a.ecs.DescribeTasks(request) - if err != nil { - return false, err - } - - if len(res.TaskSet.Task) != 1 { - return false, fmt.Errorf("expected result about one task, got %v", res.TaskSet.Task) - } - - currentStatus := res.TaskSet.Task[0].TaskStatus - if currentStatus != lastStatus { - plog.Infof("task %v transitioned to status: %v", taskId, currentStatus) - lastStatus = currentStatus - } - - switch currentStatus { - case "Finished": - return true, nil - case "Processing": - return false, nil - case "Waiting": - return false, nil - case "Deleted": - return false, fmt.Errorf("task %v was deleted", taskId) - case "Paused": - return false, fmt.Errorf("task %v was paused", taskId) - case "Failed": - return false, fmt.Errorf("task %v failed", taskId) - default: - return false, fmt.Errorf("unexpected status for task %v: %v", taskId, currentStatus) - } - } - - for { - done, err := importDone(importImageResponse.TaskId) - if err != nil { - return "", err - } - if done { - break - } - time.Sleep(10 * time.Second) - } - - return importImageResponse.ImageId, nil -} - -// GetImagesInRegion retrieves a list of images by ImageName in a specified region -func (a *API) GetImagesInRegion(name string, region string) (*ecs.DescribeImagesResponse, error) { - request := ecs.CreateDescribeImagesRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.ImageName = name - request.RegionId = region - return a.ecs.DescribeImages(request) -} - -// GetImages retrieves a list of images by ImageName -func (a *API) GetImages(name string) (*ecs.DescribeImagesResponse, error) { - request := ecs.CreateDescribeImagesRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.ImageName = name - return a.ecs.DescribeImages(request) -} - -// GetImagesByID retrieves a list of images by ImageId -func (a *API) GetImagesByID(id string, region string) (*ecs.DescribeImagesResponse, error) { - request := ecs.CreateDescribeImagesRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.ImageId = id - request.RegionId = region - return a.ecs.DescribeImages(request) -} - -// DeleteImage deletes an image and it's underlying snapshots -func (a *API) DeleteImage(id string, force bool) error { - request := ecs.CreateDeleteImageRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.ImageId = id - request.Force = requests.NewBoolean(force) - - // use the region from the profile for this call - images, err := a.GetImagesByID(id, a.opts.Region) - if err != nil { - return fmt.Errorf("getting image: %v", err) - } - - _, err = a.ecs.DeleteImage(request) - if err != nil { - return fmt.Errorf("deleting image: %v", err) - } - - var errs multierror.Error - for _, img := range images.Images.Image { - for _, mapping := range img.DiskDeviceMappings.DiskDeviceMapping { - err = a.DeleteSnapshot(mapping.SnapshotId, force) - if err != nil { - errs = append(errs, fmt.Errorf("deleting snapshot %v: %v", mapping.SnapshotId, err)) - } - } - } - return errs.AsError() -} - -// DeleteSnapshot deletes a snapshot -func (a *API) DeleteSnapshot(id string, force bool) error { - request := ecs.CreateDeleteSnapshotRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.SnapshotId = id - request.Force = requests.NewBoolean(force) - _, err := a.ecs.DeleteSnapshot(request) - return err -} - -// UploadFile is a multipart upload, use for larger files -// -// NOTE: this function will return early if an object already exists -// at the specified path, if it might not be unique provide the force -// option to skip these checks -func (a *API) UploadFile(filepath, bucket, path string, force bool) error { - bucketClient, err := a.oss.Bucket(bucket) - if err != nil { - return fmt.Errorf("getting bucket %q: %v", bucket, err) - } - - if !force { - // TODO: Switch to head object whenever the library actually adds the call :( - objects, err := bucketClient.ListObjects() - if err != nil { - return fmt.Errorf("listing objects in bucket: %v", err) - } - - for _, object := range objects.Objects { - // Already exists, inform & re-use - if object.Key == path { - plog.Infof("object already exists and force is false") - return nil - } - } - } - - // Use 1000K part size with 10 coroutines to speed up the upload - plog.Infof("uploading oss://%v/%v", bucket, path) - return bucketClient.UploadFile(path, filepath, 1000*1024, oss.Routines(10)) -} - -// DeleteFile deletes a file from an OSS bucket -func (a *API) DeleteFile(bucket, path string) error { - bucketClient, err := a.oss.Bucket(bucket) - if err != nil { - return fmt.Errorf("getting bucket %q: %v", bucket, err) - } - - plog.Infof("deleting oss://%v/%v", bucket, path) - return bucketClient.DeleteObject(path) -} - -// PutObject performs a singlepart upload into an OSS bucket -func (a *API) PutObject(r io.Reader, bucket, path string, force bool) error { - bucketClient, err := a.oss.Bucket(bucket) - if err != nil { - return fmt.Errorf("getting bucket %q: %v", bucket, err) - } - - if !force { - // TODO: Switch to head object whenever the library actually adds the call :( - objects, err := bucketClient.ListObjects() - if err != nil { - return fmt.Errorf("listing objects in bucket: %v", err) - } - - for _, object := range objects.Objects { - if object.Key == path { - return fmt.Errorf("object already exists and force is false") - } - } - } - - return bucketClient.PutObject(path, r) -} - -// ListRegions lists the enabled regions in aliyun implicitly -// by the Profile and Region options. -func (a *API) ListRegions() ([]string, error) { - request := ecs.CreateDescribeRegionsRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - - response, err := a.ecs.DescribeRegions(request) - if err != nil { - return nil, fmt.Errorf("describing regions: %v", err) - } - ret := make([]string, 0, len(response.Regions.Region)) - for _, region := range response.Regions.Region { - ret = append(ret, region.RegionId) - } - sort.Strings(ret) - return ret, nil -} - -// ChangeVisibility modifies an image uploaded to Aliyun as either public or -// private. -// NOTE: only us-east-1 and us-west-1 support making images public unless -// your account has been allowlisted by Aliyun to operate on all regions -func (a *API) ChangeVisibility(region string, id string, public bool) error { - var visibilityStr = "private" - if public { - visibilityStr = "public" - } - - // Need to check the visibility of an image - images, err := a.GetImagesByID(id, region) - if err != nil { - return fmt.Errorf("getting image id %v: %v", id, err) - } - if images.TotalCount == 0 { - return fmt.Errorf("no image found with id %v", id) - } - - for _, img := range images.Images.Image { - if img.ImageId == id && img.IsPublic != public { - request := ecs.CreateModifyImageSharePermissionRequest() - request.SetConnectTimeout(defaultConnectTimeout) - request.SetReadTimeout(defaultReadTimeout) - request.ImageId = id - request.RegionId = region - request.IsPublic = requests.NewBoolean(public) - - _, err := a.ecs.ModifyImageSharePermission(request) - return err - } else { - plog.Infof("image %v already at requested visibility of %v", id, visibilityStr) - } - } - return nil -} diff --git a/mantle/platform/api/aws/images.go b/mantle/platform/api/aws/images.go index d759627e1d..ccf074973a 100644 --- a/mantle/platform/api/aws/images.go +++ b/mantle/platform/api/aws/images.go @@ -184,8 +184,7 @@ func (a *API) CreateSnapshot(imageName, sourceURL string, format EC2ImageFormat) } // Wait on a snapshot import task, post-process the snapshot (e.g. adding -// tags), and return a Snapshot. See also similar code in aliyun's -// finishImportImageTask. +// tags), and return a Snapshot. func (a *API) finishSnapshotTask(snapshotTaskID, imageName string) (*Snapshot, error) { snapshotDone := func(snapshotTaskID string) (bool, string, error) { taskRes, err := a.ec2.DescribeImportSnapshotTasks(context.Background(), &ec2.DescribeImportSnapshotTasksInput{ diff --git a/mantle/platforms.md b/mantle/platforms.md index a2424bc2e7..d532d0b1cd 100644 --- a/mantle/platforms.md +++ b/mantle/platforms.md @@ -54,10 +54,6 @@ create images from the image file. # Existing Platforms -## Aliyun - - - The Aliyun platform wraps both [alibaba-cloud-sdk-go](https://github.com/aliyun/alibaba-cloud-sdk-go) as well as [aliyun-oss-go-sdk](https://github.com/aliyun/aliyun-oss-go-sdk). - ## AWS - The AWS platform wraps [aws-sdk-go](https://github.com/aws/aws-sdk-go). diff --git a/rpms.in.yaml b/rpms.in.yaml index 48f0216f5c..47fd2ddcb5 100644 --- a/rpms.in.yaml +++ b/rpms.in.yaml @@ -70,7 +70,6 @@ packages: - genisoimage - git - golang - - golang-github-aliyun-cli - name: grub2 arches: only: diff --git a/rpms.lock.yaml b/rpms.lock.yaml index 3abc32c4e3..3ed6f9e8af 100644 --- a/rpms.lock.yaml +++ b/rpms.lock.yaml @@ -669,13 +669,6 @@ arches: name: gobject-introspection evr: 1.84.0-1.fc42 sourcerpm: gobject-introspection-1.84.0-1.fc42.src.rpm - - url: https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/42/Everything/x86_64/os/Packages/g/golang-github-aliyun-cli-3.0.125-7.fc41.x86_64.rpm - repoid: fedora - size: 3967699 - checksum: sha256:74f2846c9bd9138e0f205b71c214ec6daf64bb6417c263a77cc6b999207ac3d6 - name: golang-github-aliyun-cli - evr: 3.0.125-7.fc41 - sourcerpm: golang-github-aliyun-cli-3.0.125-7.fc41.src.rpm - url: https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/42/Everything/x86_64/os/Packages/g/google-noto-fonts-common-20250301-1.fc42.noarch.rpm repoid: fedora size: 17482 diff --git a/src/cmd-generate-release-meta b/src/cmd-generate-release-meta index 8b6f59b1a3..d33f0abab9 100755 --- a/src/cmd-generate-release-meta +++ b/src/cmd-generate-release-meta @@ -172,8 +172,8 @@ def append_build(out, input_): } } } - # Aliyun/AWS specific additions - for meta_key, cloud, image_field in ("aliyun", "aliyun", "id"), ("amis", "aws", "hvm"): + # AWS specific additions + for meta_key, cloud, image_field in ("amis", "aws", "hvm"),: if input_.get(meta_key, None) is not None: arch_dict["media"].setdefault(cloud, {}).setdefault("images", {}) for cloud_dict in input_.get(meta_key): diff --git a/src/cosalib/aliyun.py b/src/cosalib/aliyun.py deleted file mode 100644 index 6263d0fa48..0000000000 --- a/src/cosalib/aliyun.py +++ /dev/null @@ -1,195 +0,0 @@ -import subprocess -import logging as log -import json -import sys -from cosalib.cmdlib import runcmd -from tenacity import ( - retry, - stop_after_attempt -) - - -def remove_aliyun_image(aliyun_id, region): - print(f"aliyun: removing image {aliyun_id} in {region}") - try: - runcmd([ - 'ore', - 'aliyun', '--log-level', 'debug', 'delete-image', - '--id', aliyun_id, - '--force']) - except SystemExit: - raise Exception("Failed to remove image") - - -@retry(reraise=True, stop=stop_after_attempt(3)) -def aliyun_run_ore_replicate(build, args): - build.refresh_meta() - aliyun_img_data = build.meta.get('aliyun', []) - if len(aliyun_img_data) < 1: - raise SystemExit(("buildmeta doesn't contain source images. " - "Run buildextend-aliyun first")) - - if not args.region: - args.region = subprocess.check_output([ - 'ore', f'--config-file={args.config}' if args.config else '', - 'aliyun', 'list-regions' - ]).decode().strip().split() - log.info(("default: replicating to all regions. If this is not " - " desirable, use '--regions'")) - - log.info("replicating to regions: %s", args.region) - - # only replicate to regions that don't already exist - existing_regions = [item['name'] for item in aliyun_img_data] - duplicates = list(set(args.region).intersection(existing_regions)) - if len(duplicates) > 0: - print((f"Images already exist in {duplicates} region(s)" - ", skipping listed region(s)...")) - region_list = list(set(args.region) - set(duplicates)) - if len(region_list) == 0: - print("no new regions detected") - sys.exit(0) - - source_image = aliyun_img_data[0]['id'] - source_region = aliyun_img_data[0]['name'] - upload_name = f"{build.build_name}-{build.build_id}" - - ore_args = [ - 'ore', - '--log-level', args.log_level, - 'aliyun', 'copy-image', - '--name', upload_name, - '--description', f'{build.summary} {build.build_id}', - '--image', source_image, - '--region', source_region, - '--wait-for-ready' - ] - - if args.config: - ore_args.extend(['--config-file', args.config]) - - upload_failed_in_region = None - - # Copy the image to all regions. We'll then go mark - # them public afterwards since it takes some time - # for each image to show up in each region. - for upload_region in region_list: - region_ore_args = ore_args.copy() + [upload_region] - print("+ {}".format(subprocess.list2cmdline(region_ore_args))) - try: - ore_data = json.loads(subprocess.check_output(region_ore_args)) - except subprocess.CalledProcessError: - upload_failed_in_region = upload_region - break - - aliyun_img_data.extend([ - { - 'name': region, - 'id': val - } for region, val in ore_data.items() - ]) - - build.meta['aliyun'] = aliyun_img_data - build.meta_write() - - # we've successfully replicated to *some* of the regions, so exit early. - # if `cosa aliyun-replicate` is ran again with the same arguments, it will - # retry the failed regions and then proceed to mark them public if - # requested - if upload_failed_in_region is not None: - raise Exception(f"Upload failed in {upload_failed_in_region} region") - - # all images have been uploaded, so we can try to mark them public - if args.public: - make_public(build, args) - - -# a dedicated function for marking images public -def make_public(build, args): - build.refresh_meta() - aliyun_img_data = build.meta.get('aliyun', []) - - make_public_args = [ - 'ore', - '--log-level', args.log_level, - 'aliyun', 'visibility', '--public' - ] - - if args.config: - make_public_args.extend(['--config-file', args.config]) - - # build out a list of region:image pairs to pass to `ore aliyun visibility` - region_image_pairs = [] - for entry in aliyun_img_data: - # id == image id, name == region id - image_id = entry['id'] - region_id = entry['name'] - - region_image_pairs.append(f"{region_id}:{image_id}") - - make_public_copy = make_public_args.copy() + region_image_pairs - print("+ {}".format(subprocess.list2cmdline(make_public_copy))) - try: - subprocess.check_call(make_public_copy) - except subprocess.CalledProcessError: - raise Exception("Unable to mark all the desired images as public") - - -@retry(reraise=True, stop=stop_after_attempt(3)) -def aliyun_run_ore(build, args): - if not build.have_artifact: - raise Exception(f"Missing build artifact {build.image_path}") - - build.refresh_meta() - ore_args = ['ore'] - if args.log_level: - ore_args.extend(['--log-level', args.log_level]) - - if args.force: - ore_args.extend(['--force']) - - region = "us-west-1" - if args.region is not None: - region = args.region[0] - - upload_name = f"{build.build_name}-{build.build_id}" - if args.name_suffix: - upload_name = f"{build.build_name}-{args.name_suffix}-{build.build_id}" - - if args.bucket is None: - raise Exception("Must supply OSS bucket when uploading") - - ore_args.extend([ - f'--config-file={args.config}' if args.config else '', - 'aliyun', 'create-image', - '--region', region, - '--bucket', args.bucket, - '--name', upload_name, - '--file', f"{build.image_path}", - '--description', f'{build.summary} {build.build_id}', - '--architecture', build.basearch, - '--disk-size-inspect' - ]) - - print(ore_args) - try: - # convert the binary output to string and remove trailing white space - ore_data = subprocess.check_output(ore_args).decode('utf-8').strip() - except subprocess.CalledProcessError: - raise Exception(f'Failed to create image in {region}') - - build.meta['aliyun'] = [{ - 'name': region, - 'id': ore_data - }] - build.meta_write() - - if args.public: - make_public(build, args) - - -def aliyun_cli(parser): - parser.add_argument("--bucket", help="OSS Bucket") - parser.add_argument("--name-suffix", help="Suffix for uploaded image name") - parser.add_argument("--public", action="store_true", help="Mark images as publicly available") - return parser diff --git a/src/cosalib/cli.py b/src/cosalib/cli.py index c55bcaad52..91eee4747a 100644 --- a/src/cosalib/cli.py +++ b/src/cosalib/cli.py @@ -6,7 +6,6 @@ import os from cosalib import ( - aliyun, aws, azure, digitalocean, @@ -21,9 +20,6 @@ "aws": (aws.aws_cli, aws.aws_run_ore, aws.aws_run_ore_replicate), - "aliyun": (aliyun.aliyun_cli, - aliyun.aliyun_run_ore, - aliyun.aliyun_run_ore_replicate), "azure": (azure.azure_cli, azure.azure_run_ore, azure.azure_run_ore_replicate), diff --git a/src/deps.txt b/src/deps.txt index 2d240919ff..3180d86e7c 100644 --- a/src/deps.txt +++ b/src/deps.txt @@ -39,8 +39,8 @@ podman buildah skopeo jq yq -# For interacting with AWS/Aliyun/HTTP -golang-github-aliyun-cli python3-boto3 python3-requests +# For interacting with AWS/HTTP +python3-boto3 python3-requests # For python retries python3-tenacity diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE deleted file mode 100644 index 0c44dcefe3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2009-present, Alibaba Cloud All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go deleted file mode 100644 index bf64c57dd0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go +++ /dev/null @@ -1,254 +0,0 @@ -package sdk - -import ( - "encoding/json" - "strings" - "time" -) - -var apiTimeouts = `{ - "ecs": { - "ActivateRouterInterface": 10, - "AddTags": 61, - "AllocateDedicatedHosts": 10, - "AllocateEipAddress": 17, - "AllocatePublicIpAddress": 36, - "ApplyAutoSnapshotPolicy": 10, - "AssignIpv6Addresses": 10, - "AssignPrivateIpAddresses": 10, - "AssociateEipAddress": 17, - "AttachClassicLinkVpc": 14, - "AttachDisk": 36, - "AttachInstanceRamRole": 11, - "AttachKeyPair": 16, - "AttachNetworkInterface": 16, - "AuthorizeSecurityGroupEgress": 16, - "AuthorizeSecurityGroup": 16, - "CancelAutoSnapshotPolicy": 10, - "CancelCopyImage": 10, - "CancelPhysicalConnection": 10, - "CancelSimulatedSystemEvents": 10, - "CancelTask": 10, - "ConnectRouterInterface": 10, - "ConvertNatPublicIpToEip": 12, - "CopyImage": 10, - "CreateAutoSnapshotPolicy": 10, - "CreateCommand": 16, - "CreateDeploymentSet": 16, - "CreateDisk": 36, - "CreateHpcCluster": 10, - "CreateImage": 36, - "CreateInstance": 86, - "CreateKeyPair": 10, - "CreateLaunchTemplate": 10, - "CreateLaunchTemplateVersion": 10, - "CreateNatGateway": 36, - "CreateNetworkInterfacePermission": 13, - "CreateNetworkInterface": 16, - "CreatePhysicalConnection": 10, - "CreateRouteEntry": 17, - "CreateRouterInterface": 10, - "CreateSecurityGroup": 86, - "CreateSimulatedSystemEvents": 10, - "CreateSnapshot": 86, - "CreateVirtualBorderRouter": 10, - "CreateVpc": 16, - "CreateVSwitch": 17, - "DeactivateRouterInterface": 10, - "DeleteAutoSnapshotPolicy": 10, - "DeleteBandwidthPackage": 10, - "DeleteCommand": 16, - "DeleteDeploymentSet": 12, - "DeleteDisk": 16, - "DeleteHpcCluster": 10, - "DeleteImage": 36, - "DeleteInstance": 66, - "DeleteKeyPairs": 10, - "DeleteLaunchTemplate": 10, - "DeleteLaunchTemplateVersion": 10, - "DeleteNatGateway": 10, - "DeleteNetworkInterfacePermission": 10, - "DeleteNetworkInterface": 16, - "DeletePhysicalConnection": 10, - "DeleteRouteEntry": 16, - "DeleteRouterInterface": 10, - "DeleteSecurityGroup": 87, - "DeleteSnapshot": 17, - "DeleteVirtualBorderRouter": 10, - "DeleteVpc": 17, - "DeleteVSwitch": 17, - "DescribeAccessPoints": 10, - "DescribeAccountAttributes": 10, - "DescribeAutoSnapshotPolicyEx": 16, - "DescribeAvailableResource": 10, - "DescribeBandwidthLimitation": 16, - "DescribeBandwidthPackages": 10, - "DescribeClassicLinkInstances": 15, - "DescribeCloudAssistantStatus": 16, - "DescribeClusters": 10, - "DescribeCommands": 16, - "DescribeDedicatedHosts": 10, - "DescribeDedicatedHostTypes": 10, - "DescribeDeploymentSets": 26, - "DescribeDiskMonitorData": 16, - "DescribeDisksFullStatus": 14, - "DescribeDisks": 19, - "DescribeEipAddresses": 16, - "DescribeEipMonitorData": 16, - "DescribeEniMonitorData": 10, - "DescribeHaVips": 10, - "DescribeHpcClusters": 16, - "DescribeImageSharePermission": 10, - "DescribeImages": 38, - "DescribeImageSupportInstanceTypes": 16, - "DescribeInstanceAttribute": 36, - "DescribeInstanceAutoRenewAttribute": 17, - "DescribeInstanceHistoryEvents": 19, - "DescribeInstanceMonitorData": 19, - "DescribeInstancePhysicalAttribute": 10, - "DescribeInstanceRamRole": 11, - "DescribeInstancesFullStatus": 14, - "DescribeInstances": 10, - "DescribeInstanceStatus": 26, - "DescribeInstanceTopology": 12, - "DescribeInstanceTypeFamilies": 17, - "DescribeInstanceTypes": 17, - "DescribeInstanceVncPasswd": 10, - "DescribeInstanceVncUrl": 36, - "DescribeInvocationResults": 16, - "DescribeInvocations": 16, - "DescribeKeyPairs": 12, - "DescribeLaunchTemplates": 16, - "DescribeLaunchTemplateVersions": 16, - "DescribeLimitation": 36, - "DescribeNatGateways": 10, - "DescribeNetworkInterfacePermissions": 13, - "DescribeNetworkInterfaces": 16, - "DescribeNewProjectEipMonitorData": 16, - "DescribePhysicalConnections": 10, - "DescribePrice": 16, - "DescribeRecommendInstanceType": 10, - "DescribeRegions": 19, - "DescribeRenewalPrice": 16, - "DescribeResourceByTags": 10, - "DescribeResourcesModification": 17, - "DescribeRouterInterfaces": 10, - "DescribeRouteTables": 17, - "DescribeSecurityGroupAttribute": 133, - "DescribeSecurityGroupReferences": 16, - "DescribeSecurityGroups": 25, - "DescribeSnapshotLinks": 17, - "DescribeSnapshotMonitorData": 12, - "DescribeSnapshotPackage": 10, - "DescribeSnapshots": 26, - "DescribeSnapshotsUsage": 26, - "DescribeSpotPriceHistory": 22, - "DescribeTags": 17, - "DescribeTaskAttribute": 10, - "DescribeTasks": 11, - "DescribeUserBusinessBehavior": 13, - "DescribeUserData": 10, - "DescribeVirtualBorderRoutersForPhysicalConnection": 10, - "DescribeVirtualBorderRouters": 10, - "DescribeVpcs": 41, - "DescribeVRouters": 17, - "DescribeVSwitches": 17, - "DescribeZones": 103, - "DetachClassicLinkVpc": 14, - "DetachDisk": 17, - "DetachInstanceRamRole": 10, - "DetachKeyPair": 10, - "DetachNetworkInterface": 16, - "EipFillParams": 19, - "EipFillProduct": 13, - "EipNotifyPaid": 10, - "EnablePhysicalConnection": 10, - "ExportImage": 10, - "GetInstanceConsoleOutput": 14, - "GetInstanceScreenshot": 14, - "ImportImage": 29, - "ImportKeyPair": 10, - "InstallCloudAssistant": 10, - "InvokeCommand": 16, - "JoinResourceGroup": 10, - "JoinSecurityGroup": 66, - "LeaveSecurityGroup": 66, - "ModifyAutoSnapshotPolicyEx": 10, - "ModifyBandwidthPackageSpec": 11, - "ModifyCommand": 10, - "ModifyDeploymentSetAttribute": 10, - "ModifyDiskAttribute": 16, - "ModifyDiskChargeType": 13, - "ModifyEipAddressAttribute": 14, - "ModifyImageAttribute": 10, - "ModifyImageSharePermission": 16, - "ModifyInstanceAttribute": 22, - "ModifyInstanceAutoReleaseTime": 15, - "ModifyInstanceAutoRenewAttribute": 16, - "ModifyInstanceChargeType": 22, - "ModifyInstanceDeployment": 10, - "ModifyInstanceNetworkSpec": 36, - "ModifyInstanceSpec": 62, - "ModifyInstanceVncPasswd": 35, - "ModifyInstanceVpcAttribute": 15, - "ModifyLaunchTemplateDefaultVersion": 10, - "ModifyNetworkInterfaceAttribute": 10, - "ModifyPhysicalConnectionAttribute": 10, - "ModifyPrepayInstanceSpec": 13, - "ModifyRouterInterfaceAttribute": 10, - "ModifySecurityGroupAttribute": 10, - "ModifySecurityGroupEgressRule": 10, - "ModifySecurityGroupPolicy": 10, - "ModifySecurityGroupRule": 16, - "ModifySnapshotAttribute": 10, - "ModifyUserBusinessBehavior": 10, - "ModifyVirtualBorderRouterAttribute": 10, - "ModifyVpcAttribute": 10, - "ModifyVRouterAttribute": 10, - "ModifyVSwitchAttribute": 10, - "ReActivateInstances": 10, - "RebootInstance": 27, - "RedeployInstance": 14, - "ReInitDisk": 16, - "ReleaseDedicatedHost": 10, - "ReleaseEipAddress": 16, - "ReleasePublicIpAddress": 10, - "RemoveTags": 10, - "RenewInstance": 19, - "ReplaceSystemDisk": 36, - "ResetDisk": 36, - "ResizeDisk": 11, - "RevokeSecurityGroupEgress": 13, - "RevokeSecurityGroup": 16, - "RunInstances": 86, - "StartInstance": 46, - "StopInstance": 27, - "StopInvocation": 10, - "TerminatePhysicalConnection": 10, - "TerminateVirtualBorderRouter": 10, - "UnassignIpv6Addresses": 10, - "UnassignPrivateIpAddresses": 10, - "UnassociateEipAddress": 16 - } -} -` - -var timeout map[string]map[string]int - -func init() { - timeout = make(map[string]map[string]int) - json.Unmarshal([]byte(apiTimeouts), &timeout) -} - -func getAPIMaxTimeout(product, actionName string) (time.Duration, bool) { - if timeout == nil { - return 0 * time.Millisecond, false - } - - obj := timeout[strings.ToLower(product)] - if obj != nil && obj[actionName] != 0 { - return time.Duration(obj[actionName]) * time.Second, true - } - - return 0 * time.Millisecond, false -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go deleted file mode 100644 index b2ab1d6380..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package auth - -import ( - "fmt" - "reflect" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" -) - -type Credential interface { -} - -func ToCredentialsProvider(credential Credential) (provider credentials.CredentialsProvider, err error) { - if credential == nil { - provider = credentials.NewDefaultCredentialsProvider() - return - } - - switch instance := credential.(type) { - case *credentials.AccessKeyCredential: - { - provider = credentials.NewStaticAKCredentialsProvider(instance.AccessKeyId, instance.AccessKeySecret) - return - } - case *credentials.StsTokenCredential: - { - provider = credentials.NewStaticSTSCredentialsProvider(instance.AccessKeyId, instance.AccessKeySecret, instance.AccessKeyStsToken) - return - } - case *credentials.BearerTokenCredential: - { - provider = credentials.NewBearerTokenCredentialsProvider(instance.BearerToken) - return - } - case *credentials.RamRoleArnCredential: - { - preProvider := credentials.NewStaticAKCredentialsProvider(instance.AccessKeyId, instance.AccessKeySecret) - provider, err = credentials.NewRAMRoleARNCredentialsProvider( - preProvider, - instance.RoleArn, - instance.RoleSessionName, - instance.RoleSessionExpiration, - instance.Policy, - instance.StsRegion, - instance.ExternalId) - return - } - case *credentials.RsaKeyPairCredential: - { - provider, err = credentials.NewRSAKeyPairCredentialsProvider(instance.PublicKeyId, instance.PrivateKey, instance.SessionExpiration) - return - } - case *credentials.EcsRamRoleCredential: - { - provider = credentials.NewECSRAMRoleCredentialsProvider(instance.RoleName) - return - } - case credentials.CredentialsProvider: - { - provider = instance - return - } - default: - message := fmt.Sprintf(errors.UnsupportedCredentialErrorMessage, reflect.TypeOf(credential)) - err = errors.NewClientError(errors.UnsupportedCredentialErrorCode, message, nil) - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go deleted file mode 100644 index 68f8226330..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go +++ /dev/null @@ -1,34 +0,0 @@ -package credentials - -// Deprecated: Use AccessKeyCredential in this package instead. -type BaseCredential struct { - AccessKeyId string - AccessKeySecret string -} - -type AccessKeyCredential struct { - AccessKeyId string - AccessKeySecret string -} - -// Deprecated: Use NewAccessKeyCredential in this package instead. -func NewBaseCredential(accessKeyId, accessKeySecret string) *BaseCredential { - return &BaseCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - } -} - -func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential { - return &AccessKeyCredential{ - AccessKeyId: baseCred.AccessKeyId, - AccessKeySecret: baseCred.AccessKeySecret, - } -} - -func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential { - return &AccessKeyCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go deleted file mode 100644 index 6d4763e663..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go +++ /dev/null @@ -1,12 +0,0 @@ -package credentials - -type BearerTokenCredential struct { - BearerToken string -} - -// NewBearerTokenCredential return a BearerTokenCredential object -func NewBearerTokenCredential(token string) *BearerTokenCredential { - return &BearerTokenCredential{ - BearerToken: token, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/cli_profile_credentials_provider.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/cli_profile_credentials_provider.go deleted file mode 100644 index 3b73424ab2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/cli_profile_credentials_provider.go +++ /dev/null @@ -1,235 +0,0 @@ -package credentials - -import ( - "encoding/json" - "fmt" - "io/ioutil" - "os" - "path" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal" -) - -type CLIProfileCredentialsProvider struct { - profileName string - innerProvider CredentialsProvider -} - -type CLIProfileCredentialsProviderBuilder struct { - provider *CLIProfileCredentialsProvider -} - -func (b *CLIProfileCredentialsProviderBuilder) WithProfileName(profileName string) *CLIProfileCredentialsProviderBuilder { - b.provider.profileName = profileName - return b -} - -func (b *CLIProfileCredentialsProviderBuilder) Build() *CLIProfileCredentialsProvider { - // 优先级: - // 1. 使用显示指定的 profileName - // 2. 使用环境变量(ALIBABA_CLOUD_PROFILE)制定的 profileName - // 3. 使用 CLI 配置中的当前 profileName - if b.provider.profileName == "" { - b.provider.profileName = os.Getenv("ALIBABA_CLOUD_PROFILE") - } - - return b.provider -} - -func NewCLIProfileCredentialsProviderBuilder() *CLIProfileCredentialsProviderBuilder { - return &CLIProfileCredentialsProviderBuilder{ - provider: &CLIProfileCredentialsProvider{}, - } -} - -type profile struct { - Name string `json:"name"` - Mode string `json:"mode"` - AccessKeyID string `json:"access_key_id"` - AccessKeySecret string `json:"access_key_secret"` - SecurityToken string `json:"sts_token"` - RegionID string `json:"region_id"` - RoleArn string `json:"ram_role_arn"` - RoleSessionName string `json:"ram_session_name"` - DurationSeconds int `json:"expired_seconds"` - StsRegion string `json:"sts_region"` - EnableVpc bool `json:"enable_vpc"` - SourceProfile string `json:"source_profile"` - RoleName string `json:"ram_role_name"` - OIDCTokenFile string `json:"oidc_token_file"` - OIDCProviderARN string `json:"oidc_provider_arn"` - Policy string `json:"policy"` - ExternalId string `json:"external_id"` -} - -type configuration struct { - Current string `json:"current"` - Profiles []*profile `json:"profiles"` -} - -func newConfigurationFromPath(cfgPath string) (conf *configuration, err error) { - bytes, err := ioutil.ReadFile(cfgPath) - if err != nil { - err = fmt.Errorf("reading aliyun cli config from '%s' failed %v", cfgPath, err) - return - } - - conf = &configuration{} - - err = json.Unmarshal(bytes, conf) - if err != nil { - err = fmt.Errorf("unmarshal aliyun cli config from '%s' failed: %s", cfgPath, string(bytes)) - return - } - - if conf.Profiles == nil || len(conf.Profiles) == 0 { - err = fmt.Errorf("no any configured profiles in '%s'", cfgPath) - return - } - - return -} - -func (conf *configuration) getProfile(name string) (profile *profile, err error) { - for _, p := range conf.Profiles { - if p.Name == name { - profile = p - return - } - } - - err = fmt.Errorf("unable to get profile with '%s'", name) - return -} - -func (provider *CLIProfileCredentialsProvider) getCredentialsProvider(conf *configuration, profileName string) (credentialsProvider CredentialsProvider, err error) { - p, err := conf.getProfile(profileName) - if err != nil { - return - } - - switch p.Mode { - case "AK": - credentialsProvider, err = NewStaticAKCredentialsProviderBuilder(). - WithAccessKeyId(p.AccessKeyID). - WithAccessKeySecret(p.AccessKeySecret). - Build() - case "StsToken": - credentialsProvider, err = NewStaticSTSCredentialsProviderBuilder(). - WithAccessKeyId(p.AccessKeyID). - WithAccessKeySecret(p.AccessKeySecret). - WithSecurityToken(p.SecurityToken). - Build() - case "RamRoleArn": - previousProvider, err1 := NewStaticAKCredentialsProviderBuilder(). - WithAccessKeyId(p.AccessKeyID). - WithAccessKeySecret(p.AccessKeySecret). - Build() - if err1 != nil { - return nil, err1 - } - - credentialsProvider, err = NewRAMRoleARNCredentialsProviderBuilder(). - WithCredentialsProvider(previousProvider). - WithRoleArn(p.RoleArn). - WithRoleSessionName(p.RoleSessionName). - WithDurationSeconds(p.DurationSeconds). - WithStsRegion(p.StsRegion). - WithEnableVpc(p.EnableVpc). - WithPolicy(p.Policy). - WithExternalId(p.ExternalId). - Build() - case "EcsRamRole": - credentialsProvider, err = NewECSRAMRoleCredentialsProviderBuilder().WithRoleName(p.RoleName).Build() - case "OIDC": - credentialsProvider, err = NewOIDCCredentialsProviderBuilder(). - WithOIDCTokenFilePath(p.OIDCTokenFile). - WithOIDCProviderARN(p.OIDCProviderARN). - WithRoleArn(p.RoleArn). - WithStsRegion(p.StsRegion). - WithEnableVpc(p.EnableVpc). - WithDurationSeconds(p.DurationSeconds). - WithRoleSessionName(p.RoleSessionName). - WithPolicy(p.Policy). - Build() - case "ChainableRamRoleArn": - var previousProvider CredentialsProvider - previousProvider, err1 := provider.getCredentialsProvider(conf, p.SourceProfile) - if err1 != nil { - err = fmt.Errorf("get source profile failed: %s", err1.Error()) - return - } - credentialsProvider, err = NewRAMRoleARNCredentialsProviderBuilder(). - WithCredentialsProvider(previousProvider). - WithRoleArn(p.RoleArn). - WithRoleSessionName(p.RoleSessionName). - WithDurationSeconds(p.DurationSeconds). - WithStsRegion(p.StsRegion). - WithEnableVpc(p.EnableVpc). - WithPolicy(p.Policy). - WithExternalId(p.ExternalId). - Build() - default: - err = fmt.Errorf("unsupported profile mode '%s'", p.Mode) - } - - return -} - -// 默认设置为 GetHomePath,测试时便于 mock -var getHomePath = internal.GetHomePath - -func (provider *CLIProfileCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if strings.ToLower(os.Getenv("ALIBABA_CLOUD_CLI_PROFILE_DISABLED")) == "true" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The CLI profile is disabled", nil) - return - } - if provider.innerProvider == nil { - homedir := getHomePath() - if homedir == "" { - err = fmt.Errorf("cannot found home dir") - return - } - - cfgPath := path.Join(homedir, ".aliyun/config.json") - var conf *configuration - conf, err = newConfigurationFromPath(cfgPath) - if err != nil { - return - } - - if provider.profileName == "" { - provider.profileName = conf.Current - } - - provider.innerProvider, err = provider.getCredentialsProvider(conf, provider.profileName) - if err != nil { - return - } - } - - innerCC, err := provider.innerProvider.GetCredentials() - if err != nil { - return - } - - providerName := innerCC.ProviderName - if providerName == "" { - providerName = provider.innerProvider.GetProviderName() - } - - cc = &Credentials{ - AccessKeyId: innerCC.AccessKeyId, - AccessKeySecret: innerCC.AccessKeySecret, - SecurityToken: innerCC.SecurityToken, - ProviderName: fmt.Sprintf("%s/%s", provider.GetProviderName(), providerName), - } - - return -} - -func (provider *CLIProfileCredentialsProvider) GetProviderName() string { - return "cli_profile" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/credentials.go deleted file mode 100644 index 09b9905bcd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/credentials.go +++ /dev/null @@ -1,1426 +0,0 @@ -package credentials - -import ( - "context" - "encoding/json" - "fmt" - "io" - "io/ioutil" - "net" - "net/http" - "net/url" - "os" - "strconv" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type assumedRoleUser struct { -} - -type credentials struct { - SecurityToken *string `json:"SecurityToken"` - Expiration *string `json:"Expiration"` - AccessKeySecret *string `json:"AccessKeySecret"` - AccessKeyId *string `json:"AccessKeyId"` -} - -type ecsRAMRoleCredentials struct { - SecurityToken *string `json:"SecurityToken"` - Expiration *string `json:"Expiration"` - AccessKeySecret *string `json:"AccessKeySecret"` - AccessKeyId *string `json:"AccessKeyId"` - LastUpdated *string `json:"LastUpdated"` - Code *string `json:"Code"` -} - -type assumeRoleResponse struct { - RequestID *string `json:"RequestId"` - AssumedRoleUser *assumedRoleUser `json:"AssumedRoleUser"` - Credentials *credentials `json:"Credentials"` -} - -type generateSessionAccessKeyResponse struct { - RequestID *string `json:"RequestId"` - SessionAccessKey *sessionAccessKey `json:"SessionAccessKey"` -} - -type sessionAccessKey struct { - SessionAccessKeyId *string `json:"SessionAccessKeyId"` - SessionAccessKeySecret *string `json:"SessionAccessKeySecret"` - Expiration *string `json:"Expiration"` -} - -type SessionCredentials struct { - AccessKeyId string - AccessKeySecret string - SecurityToken string - Expiration string -} - -type Credentials struct { - AccessKeyId string - AccessKeySecret string - SecurityToken string - BearerToken string - ProviderName string -} - -type do func(req *http.Request) (*http.Response, error) - -var hookDo = func(fn do) do { - return fn -} - -type newReuqest func(method, url string, body io.Reader) (*http.Request, error) - -var hookNewRequest = func(fn newReuqest) newReuqest { - return fn -} - -type HttpOptions struct { - // Connection timeout - ConnectTimeout time.Duration - // Read timeout - ReadTimeout time.Duration -} - -type CredentialsProvider interface { - GetCredentials() (cc *Credentials, err error) - GetProviderName() string -} - -type StaticAKCredentialsProvider struct { - accessKeyId string - accessKeySecret string -} - -type StaticAKCredentialsProviderBuilder struct { - provider *StaticAKCredentialsProvider -} - -func NewStaticAKCredentialsProviderBuilder() *StaticAKCredentialsProviderBuilder { - return &StaticAKCredentialsProviderBuilder{ - provider: &StaticAKCredentialsProvider{}, - } -} - -func (builder *StaticAKCredentialsProviderBuilder) WithAccessKeyId(accessKeyId string) *StaticAKCredentialsProviderBuilder { - builder.provider.accessKeyId = accessKeyId - return builder -} - -func (builder *StaticAKCredentialsProviderBuilder) WithAccessKeySecret(accessKeySecret string) *StaticAKCredentialsProviderBuilder { - builder.provider.accessKeySecret = accessKeySecret - return builder -} - -func (builder *StaticAKCredentialsProviderBuilder) Build() (provider *StaticAKCredentialsProvider, err error) { - if builder.provider.accessKeyId == "" { - builder.provider.accessKeyId = os.Getenv("ALIBABA_CLOUD_ACCESS_KEY_ID") - } - - if builder.provider.accessKeyId == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The access key id is empty", nil) - return - } - - if builder.provider.accessKeySecret == "" { - builder.provider.accessKeySecret = os.Getenv("ALIBABA_CLOUD_ACCESS_KEY_SECRET") - } - - if builder.provider.accessKeySecret == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The access key secret is empty", nil) - return - } - - provider = builder.provider - return -} - -func NewStaticAKCredentialsProvider(accessKeyId, accessKeySecret string) *StaticAKCredentialsProvider { - return &StaticAKCredentialsProvider{ - accessKeyId: accessKeyId, - accessKeySecret: accessKeySecret, - } -} - -func (provider *StaticAKCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - cc = &Credentials{ - AccessKeyId: provider.accessKeyId, - AccessKeySecret: provider.accessKeySecret, - ProviderName: provider.GetProviderName(), - } - return -} - -func (provider *StaticAKCredentialsProvider) GetProviderName() string { - return "static_ak" -} - -type StaticSTSCredentialsProvider struct { - accessKeyId string - accessKeySecret string - securityToken string -} - -type StaticSTSCredentialsProviderBuilder struct { - provider *StaticSTSCredentialsProvider -} - -func NewStaticSTSCredentialsProviderBuilder() *StaticSTSCredentialsProviderBuilder { - return &StaticSTSCredentialsProviderBuilder{ - provider: &StaticSTSCredentialsProvider{}, - } -} - -func (builder *StaticSTSCredentialsProviderBuilder) WithAccessKeyId(accessKeyId string) *StaticSTSCredentialsProviderBuilder { - builder.provider.accessKeyId = accessKeyId - return builder -} - -func (builder *StaticSTSCredentialsProviderBuilder) WithAccessKeySecret(accessKeySecret string) *StaticSTSCredentialsProviderBuilder { - builder.provider.accessKeySecret = accessKeySecret - return builder -} - -func (builder *StaticSTSCredentialsProviderBuilder) WithSecurityToken(securityToken string) *StaticSTSCredentialsProviderBuilder { - builder.provider.securityToken = securityToken - return builder -} - -func (builder *StaticSTSCredentialsProviderBuilder) Build() (provider *StaticSTSCredentialsProvider, err error) { - if builder.provider.accessKeyId == "" { - builder.provider.accessKeyId = os.Getenv("ALIBABA_CLOUD_ACCESS_KEY_ID") - } - - if builder.provider.accessKeyId == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The access key id is empty", nil) - return - } - - if builder.provider.accessKeySecret == "" { - builder.provider.accessKeySecret = os.Getenv("ALIBABA_CLOUD_ACCESS_KEY_SECRET") - } - - if builder.provider.accessKeySecret == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The access key secret is empty", nil) - return - } - - if builder.provider.securityToken == "" { - builder.provider.securityToken = os.Getenv("ALIBABA_CLOUD_SECURITY_TOKEN") - } - - if builder.provider.securityToken == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The security token is empty", nil) - return - } - - provider = builder.provider - return -} - -func NewStaticSTSCredentialsProvider(accessKeyId, accessKeySecret, securityToken string) *StaticSTSCredentialsProvider { - return &StaticSTSCredentialsProvider{ - accessKeyId: accessKeyId, - accessKeySecret: accessKeySecret, - securityToken: securityToken, - } -} - -func (provider *StaticSTSCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - cc = &Credentials{ - AccessKeyId: provider.accessKeyId, - AccessKeySecret: provider.accessKeySecret, - SecurityToken: provider.securityToken, - ProviderName: provider.GetProviderName(), - } - return -} - -func (provider *StaticSTSCredentialsProvider) GetProviderName() string { - return "static_sts" -} - -type BearerTokenCredentialsProvider struct { - bearerToken string -} - -func NewBearerTokenCredentialsProvider(bearerToken string) *BearerTokenCredentialsProvider { - return &BearerTokenCredentialsProvider{ - bearerToken: bearerToken, - } -} - -func (provider *BearerTokenCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - cc = &Credentials{ - BearerToken: provider.bearerToken, - ProviderName: provider.GetProviderName(), - } - return -} - -func (provider *BearerTokenCredentialsProvider) GetProviderName() string { - return "bearer_token" -} - -// Deprecated: the RSA key pair credentials is deprecated -type RSAKeyPairCredentialsProvider struct { - PublicKeyId string - PrivateKeyId string - durationSeconds int - sessionAccessKey *sessionAccessKey - lastUpdateTimestamp int64 - expirationTimestamp int64 -} - -// Deprecated: the RSA key pair credentials is deprecated -func NewRSAKeyPairCredentialsProvider(publicKeyId, privateKeyId string, durationSeconds int) (provider *RSAKeyPairCredentialsProvider, err error) { - provider = &RSAKeyPairCredentialsProvider{ - PublicKeyId: publicKeyId, - PrivateKeyId: privateKeyId, - } - - if durationSeconds > 0 { - if durationSeconds >= 900 && durationSeconds <= 3600 { - provider.durationSeconds = durationSeconds - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Key Pair session duration should be in the range of 15min - 1hr", nil) - } - } else { - // set to default value - provider.durationSeconds = 3600 - } - return -} - -// Deprecated: the RSA key pair credentials is deprecated -func (provider *RSAKeyPairCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if provider.sessionAccessKey == nil || provider.needUpdateCredential() { - sessionAccessKey, err := provider.getCredentials() - if err != nil { - return nil, err - } - - expirationTime, err := time.Parse("2006-01-02T15:04:05Z", *sessionAccessKey.Expiration) - if err != nil { - return nil, err - } - - provider.sessionAccessKey = sessionAccessKey - provider.lastUpdateTimestamp = time.Now().Unix() - provider.expirationTimestamp = expirationTime.Unix() - } - - cc = &Credentials{ - AccessKeyId: *provider.sessionAccessKey.SessionAccessKeyId, - AccessKeySecret: *provider.sessionAccessKey.SessionAccessKeySecret, - ProviderName: provider.GetProviderName(), - } - return -} - -func (provider *RSAKeyPairCredentialsProvider) needUpdateCredential() bool { - if provider.expirationTimestamp == 0 { - return true - } - - return provider.expirationTimestamp-time.Now().Unix() <= 180 -} - -func (provider *RSAKeyPairCredentialsProvider) getCredentials() (sessionAK *sessionAccessKey, err error) { - method := "POST" - host := "sts.ap-northeast-1.aliyuncs.com" - - queries := make(map[string]string) - queries["Version"] = "2015-04-01" - queries["Action"] = "GenerateSessionAccessKey" - queries["Format"] = "JSON" - queries["Timestamp"] = utils.GetTimeInFormatISO8601() - queries["SignatureMethod"] = "SHA256withRSA" - queries["SignatureVersion"] = "1.0" - queries["SignatureNonce"] = utils.GetNonce() - queries["PublicKeyId"] = provider.PublicKeyId - queries["SignatureType"] = "PRIVATEKEY" - - bodyForm := make(map[string]string) - bodyForm["DurationSeconds"] = strconv.Itoa(provider.durationSeconds) - - // caculate signature - signParams := make(map[string]string) - for key, value := range queries { - signParams[key] = value - } - for key, value := range bodyForm { - signParams[key] = value - } - - stringToSign := utils.GetUrlFormedMap(signParams) - stringToSign = strings.Replace(stringToSign, "+", "%20", -1) - stringToSign = strings.Replace(stringToSign, "*", "%2A", -1) - stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) - stringToSign = url.QueryEscape(stringToSign) - stringToSign = method + "&%2F&" + stringToSign - - queries["Signature"] = utils.Sha256WithRsa(stringToSign, provider.PrivateKeyId) - - querystring := utils.GetUrlFormedMap(queries) - // do request - httpUrl := fmt.Sprintf("https://%s/?%s", host, querystring) - - body := utils.GetUrlFormedMap(bodyForm) - - httpRequest, err := hookNewRequest(http.NewRequest)(method, httpUrl, strings.NewReader(body)) - if err != nil { - return - } - - // set headers - httpRequest.Header["Accept-Encoding"] = []string{"identity"} - httpRequest.Header["Content-Type"] = []string{"application/x-www-form-urlencoded"} - httpClient := &http.Client{} - - httpResponse, err := hookDo(httpClient.Do)(httpRequest) - if err != nil { - return - } - - defer httpResponse.Body.Close() - - responseBody, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - - if httpResponse.StatusCode != http.StatusOK { - message := "refresh temp ak failed" - err = errors.NewServerError(httpResponse.StatusCode, string(responseBody), message) - return - } - - var data generateSessionAccessKeyResponse - err = json.Unmarshal(responseBody, &data) - if err != nil { - err = fmt.Errorf("refresh temp ak err, json.Unmarshal fail: %s", err.Error()) - return - } - - if data.SessionAccessKey == nil { - err = fmt.Errorf("refresh temp ak token err, fail to get credentials") - return - } - - if data.SessionAccessKey.SessionAccessKeyId == nil || data.SessionAccessKey.SessionAccessKeySecret == nil { - err = fmt.Errorf("refresh temp ak token err, fail to get credentials") - return - } - - sessionAK = data.SessionAccessKey - return -} - -func (provider *RSAKeyPairCredentialsProvider) GetProviderName() string { - return "rsa_key_pair" -} - -type RAMRoleARNCredentialsProvider struct { - // for previous credentials - accessKeyId string - accessKeySecret string - securityToken string - credentialsProvider CredentialsProvider - - roleArn string - roleSessionName string - durationSeconds int - policy string - externalId string - - // for sts endpoint - stsRegion string - enableVpc bool - stsEndpoint string - - // for http options - httpOptions *HttpOptions - - // inner - expirationTimestamp int64 - lastUpdateTimestamp int64 - previousProviderName string - sessionCredentials *SessionCredentials -} - -type RAMRoleARNCredentialsProviderBuilder struct { - provider *RAMRoleARNCredentialsProvider -} - -func NewRAMRoleARNCredentialsProviderBuilder() *RAMRoleARNCredentialsProviderBuilder { - return &RAMRoleARNCredentialsProviderBuilder{ - provider: &RAMRoleARNCredentialsProvider{}, - } -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithAccessKeyId(accessKeyId string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.accessKeyId = accessKeyId - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithAccessKeySecret(accessKeySecret string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.accessKeySecret = accessKeySecret - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithSecurityToken(securityToken string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.securityToken = securityToken - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithCredentialsProvider(credentialsProvider CredentialsProvider) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.credentialsProvider = credentialsProvider - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithRoleArn(roleArn string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.roleArn = roleArn - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithStsRegion(region string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.stsRegion = region - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithEnableVpc(enableVpc bool) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.enableVpc = enableVpc - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithStsEndpoint(endpoint string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.stsEndpoint = endpoint - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithRoleSessionName(roleSessionName string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.roleSessionName = roleSessionName - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithPolicy(policy string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.policy = policy - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithExternalId(externalId string) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.externalId = externalId - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithDurationSeconds(durationSeconds int) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.durationSeconds = durationSeconds - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) WithHttpOptions(httpOptions *HttpOptions) *RAMRoleARNCredentialsProviderBuilder { - builder.provider.httpOptions = httpOptions - return builder -} - -func (builder *RAMRoleARNCredentialsProviderBuilder) Build() (provider *RAMRoleARNCredentialsProvider, err error) { - if builder.provider.credentialsProvider == nil { - if builder.provider.accessKeyId != "" && builder.provider.accessKeySecret != "" && builder.provider.securityToken != "" { - builder.provider.credentialsProvider, err = NewStaticSTSCredentialsProviderBuilder(). - WithAccessKeyId(builder.provider.accessKeyId). - WithAccessKeySecret(builder.provider.accessKeySecret). - WithSecurityToken(builder.provider.securityToken). - Build() - if err != nil { - return - } - } else if builder.provider.accessKeyId != "" && builder.provider.accessKeySecret != "" { - builder.provider.credentialsProvider, err = NewStaticAKCredentialsProviderBuilder(). - WithAccessKeyId(builder.provider.accessKeyId). - WithAccessKeySecret(builder.provider.accessKeySecret). - Build() - if err != nil { - return - } - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Must specify a previous credentials provider to assume role", nil) - return - } - } - - if builder.provider.roleArn == "" { - if roleArn := os.Getenv("ALIBABA_CLOUD_ROLE_ARN"); roleArn != "" { - builder.provider.roleArn = roleArn - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The RoleArn is empty", nil) - return - } - } - - if builder.provider.roleSessionName == "" { - if roleSessionName := os.Getenv("ALIBABA_CLOUD_ROLE_SESSION_NAME"); roleSessionName != "" { - builder.provider.roleSessionName = roleSessionName - } else { - builder.provider.roleSessionName = "aliyun-go-sdk-" + strconv.FormatInt(time.Now().UnixNano()/1000, 10) - } - } - - // duration seconds - if builder.provider.durationSeconds == 0 { - // default to 3600 - builder.provider.durationSeconds = 3600 - } - - if builder.provider.durationSeconds < 900 { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Session duration should be in the range of 900s - max session duration", nil) - return - } - - // sts endpoint - if builder.provider.stsEndpoint == "" { - if !builder.provider.enableVpc { - builder.provider.enableVpc = strings.ToLower(os.Getenv("ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED")) == "true" - } - prefix := "sts" - if builder.provider.enableVpc { - prefix = "sts-vpc" - } - if builder.provider.stsRegion != "" { - builder.provider.stsEndpoint = fmt.Sprintf("%s.%s.aliyuncs.com", prefix, builder.provider.stsRegion) - } else if region := os.Getenv("ALIBABA_CLOUD_STS_REGION"); region != "" { - builder.provider.stsEndpoint = fmt.Sprintf("%s.%s.aliyuncs.com", prefix, region) - } else { - builder.provider.stsEndpoint = "sts.aliyuncs.com" - } - } - - provider = builder.provider - return -} - -func NewRAMRoleARNCredentialsProvider(credentialsProvider CredentialsProvider, roleArn, roleSessionName string, durationSeconds int, policy, stsRegion, externalId string) (provider *RAMRoleARNCredentialsProvider, err error) { - provider = &RAMRoleARNCredentialsProvider{ - credentialsProvider: credentialsProvider, - roleArn: roleArn, - durationSeconds: durationSeconds, - policy: policy, - stsRegion: stsRegion, - externalId: externalId, - } - - if len(roleSessionName) > 0 { - provider.roleSessionName = roleSessionName - } else { - provider.roleSessionName = "aliyun-go-sdk-" + strconv.FormatInt(time.Now().UnixNano()/1000, 10) - } - - if durationSeconds > 0 { - if durationSeconds >= 900 && durationSeconds <= 3600 { - provider.durationSeconds = durationSeconds - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Assume Role session duration should be in the range of 15min - 1hr", nil) - } - } else { - // default to 3600 - provider.durationSeconds = 3600 - } - - return -} - -func (provider *RAMRoleARNCredentialsProvider) getCredentials(cc *Credentials) (sessionCredentials *SessionCredentials, err error) { - method := "POST" - var host string - if provider.stsEndpoint != "" { - host = provider.stsEndpoint - } else if provider.stsRegion != "" { - host = fmt.Sprintf("sts.%s.aliyuncs.com", provider.stsRegion) - } else { - host = "sts.aliyuncs.com" - } - - queries := make(map[string]string) - queries["Version"] = "2015-04-01" - queries["Action"] = "AssumeRole" - queries["Format"] = "JSON" - queries["Timestamp"] = utils.GetTimeInFormatISO8601() - queries["SignatureMethod"] = "HMAC-SHA1" - queries["SignatureVersion"] = "1.0" - queries["SignatureNonce"] = utils.GetNonce() - queries["AccessKeyId"] = cc.AccessKeyId - if cc.SecurityToken != "" { - queries["SecurityToken"] = cc.SecurityToken - } - - bodyForm := make(map[string]string) - bodyForm["RoleArn"] = provider.roleArn - if provider.policy != "" { - bodyForm["Policy"] = provider.policy - } - if provider.externalId != "" { - bodyForm["ExternalId"] = provider.externalId - } - bodyForm["RoleSessionName"] = provider.roleSessionName - bodyForm["DurationSeconds"] = strconv.Itoa(provider.durationSeconds) - - // caculate signature - signParams := make(map[string]string) - for key, value := range queries { - signParams[key] = value - } - for key, value := range bodyForm { - signParams[key] = value - } - - stringToSign := utils.GetUrlFormedMap(signParams) - stringToSign = strings.Replace(stringToSign, "+", "%20", -1) - stringToSign = strings.Replace(stringToSign, "*", "%2A", -1) - stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) - stringToSign = url.QueryEscape(stringToSign) - stringToSign = method + "&%2F&" + stringToSign - secret := cc.AccessKeySecret + "&" - queries["Signature"] = utils.ShaHmac1(stringToSign, secret) - - querystring := utils.GetUrlFormedMap(queries) - // do request - httpUrl := fmt.Sprintf("https://%s/?%s", host, querystring) - - body := utils.GetUrlFormedMap(bodyForm) - - httpRequest, err := hookNewRequest(http.NewRequest)(method, httpUrl, strings.NewReader(body)) - if err != nil { - return - } - - // set headers - httpRequest.Header["Accept-Encoding"] = []string{"identity"} - httpRequest.Header["Content-Type"] = []string{"application/x-www-form-urlencoded"} - - connectTimeout := 5 * time.Second - readTimeout := 10 * time.Second - if provider.httpOptions != nil && provider.httpOptions.ConnectTimeout > 0 { - connectTimeout = provider.httpOptions.ConnectTimeout - } - if provider.httpOptions != nil && provider.httpOptions.ReadTimeout > 0 { - readTimeout = provider.httpOptions.ReadTimeout - } - transport := http.DefaultTransport.(*http.Transport).Clone() - transport.DialContext = func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } - - httpClient := &http.Client{ - Timeout: connectTimeout + readTimeout, - Transport: transport, - } - - httpResponse, err := hookDo(httpClient.Do)(httpRequest) - if err != nil { - return - } - - defer httpResponse.Body.Close() - - responseBody, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - - if httpResponse.StatusCode != http.StatusOK { - message := "refresh session token failed" - err = errors.NewServerError(httpResponse.StatusCode, string(responseBody), message) - return - } - var data assumeRoleResponse - err = json.Unmarshal(responseBody, &data) - if err != nil { - err = fmt.Errorf("refresh RoleArn sts token err, json.Unmarshal fail: %s", err.Error()) - return - } - if data.Credentials == nil { - err = fmt.Errorf("refresh RoleArn sts token err, fail to get credentials") - return - } - - if data.Credentials.AccessKeyId == nil || data.Credentials.AccessKeySecret == nil || data.Credentials.SecurityToken == nil { - err = fmt.Errorf("refresh RoleArn sts token err, fail to get credentials") - return - } - - sessionCredentials = &SessionCredentials{ - AccessKeyId: *data.Credentials.AccessKeyId, - AccessKeySecret: *data.Credentials.AccessKeySecret, - SecurityToken: *data.Credentials.SecurityToken, - Expiration: *data.Credentials.Expiration, - } - return -} - -func (provider *RAMRoleARNCredentialsProvider) needUpdateCredential() (result bool) { - if provider.expirationTimestamp == 0 { - return true - } - - return provider.expirationTimestamp-time.Now().Unix() <= 180 -} - -func (provider *RAMRoleARNCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if provider.sessionCredentials == nil || provider.needUpdateCredential() { - // 获取前置凭证 - previousCredentials, err1 := provider.credentialsProvider.GetCredentials() - if err1 != nil { - return nil, err1 - } - sessionCredentials, err2 := provider.getCredentials(previousCredentials) - if err2 != nil { - return nil, err2 - } - - expirationTime, err := time.Parse("2006-01-02T15:04:05Z", sessionCredentials.Expiration) - if err != nil { - return nil, err - } - - provider.expirationTimestamp = expirationTime.Unix() - provider.lastUpdateTimestamp = time.Now().Unix() - provider.previousProviderName = previousCredentials.ProviderName - provider.sessionCredentials = sessionCredentials - } - if provider.previousProviderName == "" { - provider.previousProviderName = provider.credentialsProvider.GetProviderName() - } - - cc = &Credentials{ - AccessKeyId: provider.sessionCredentials.AccessKeyId, - AccessKeySecret: provider.sessionCredentials.AccessKeySecret, - SecurityToken: provider.sessionCredentials.SecurityToken, - ProviderName: fmt.Sprintf("%s/%s", provider.GetProviderName(), provider.previousProviderName), - } - return -} - -func (provider *RAMRoleARNCredentialsProvider) GetProviderName() string { - return "ram_role_arn" -} - -type ECSRAMRoleCredentialsProvider struct { - roleName string - disableIMDSv1 bool - - // for http options - httpOptions *HttpOptions - - sessionCredentials *SessionCredentials - expirationTimestamp int64 -} - -type ECSRAMRoleCredentialsProviderBuilder struct { - provider *ECSRAMRoleCredentialsProvider -} - -func NewECSRAMRoleCredentialsProviderBuilder() *ECSRAMRoleCredentialsProviderBuilder { - return &ECSRAMRoleCredentialsProviderBuilder{ - provider: &ECSRAMRoleCredentialsProvider{}, - } -} - -func (builder *ECSRAMRoleCredentialsProviderBuilder) WithRoleName(roleName string) *ECSRAMRoleCredentialsProviderBuilder { - builder.provider.roleName = roleName - return builder -} - -func (builder *ECSRAMRoleCredentialsProviderBuilder) WithDisableIMDSv1(disableIMDSv1 bool) *ECSRAMRoleCredentialsProviderBuilder { - builder.provider.disableIMDSv1 = disableIMDSv1 - return builder -} - -func (builder *ECSRAMRoleCredentialsProviderBuilder) WithHttpOptions(httpOptions *HttpOptions) *ECSRAMRoleCredentialsProviderBuilder { - builder.provider.httpOptions = httpOptions - return builder -} - -const defaultMetadataTokenDuration = 21600 // 6 hours - -func (builder *ECSRAMRoleCredentialsProviderBuilder) Build() (provider *ECSRAMRoleCredentialsProvider, err error) { - - if strings.ToLower(os.Getenv("ALIBABA_CLOUD_ECS_METADATA_DISABLED")) == "true" { - err = fmt.Errorf("IMDS credentials is disabled") - return - } - - // 设置 roleName 默认值 - if builder.provider.roleName == "" { - builder.provider.roleName = os.Getenv("ALIBABA_CLOUD_ECS_METADATA") - } - - if !builder.provider.disableIMDSv1 { - builder.provider.disableIMDSv1 = strings.ToLower(os.Getenv("ALIBABA_CLOUD_IMDSV1_DISABLED")) == "true" - } - - provider = builder.provider - return -} - -func NewECSRAMRoleCredentialsProvider(roleName string) *ECSRAMRoleCredentialsProvider { - return &ECSRAMRoleCredentialsProvider{ - roleName: roleName, - } -} - -func (provider *ECSRAMRoleCredentialsProvider) needUpdateCredential() bool { - if provider.expirationTimestamp == 0 { - return true - } - - return provider.expirationTimestamp-time.Now().Unix() <= 180 -} - -func (provider *ECSRAMRoleCredentialsProvider) getMetadataToken() (metadataToken string, err error) { - // PUT http://100.100.100.200/latest/api/token - var requestUrl = "http://100.100.100.200/latest/api/token" - httpRequest, _err := hookNewRequest(http.NewRequest)("PUT", requestUrl, strings.NewReader("")) - if _err != nil { - if provider.disableIMDSv1 { - err = fmt.Errorf("get metadata token failed: %s", _err.Error()) - } - return - } - httpRequest.Header.Set("X-aliyun-ecs-metadata-token-ttl-seconds", strconv.Itoa(defaultMetadataTokenDuration)) - - connectTimeout := 1 * time.Second - readTimeout := 1 * time.Second - - if provider.httpOptions != nil && provider.httpOptions.ConnectTimeout > 0 { - connectTimeout = provider.httpOptions.ConnectTimeout - } - if provider.httpOptions != nil && provider.httpOptions.ReadTimeout > 0 { - readTimeout = provider.httpOptions.ReadTimeout - } - transport := http.DefaultTransport.(*http.Transport).Clone() - transport.DialContext = func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } - - httpClient := &http.Client{ - Timeout: connectTimeout + readTimeout, - Transport: transport, - } - - httpResponse, _err := hookDo(httpClient.Do)(httpRequest) - if _err != nil { - if provider.disableIMDSv1 { - err = fmt.Errorf("get metadata token failed: %s", _err.Error()) - } - return - } - - defer httpResponse.Body.Close() - - responseBody, _err := ioutil.ReadAll(httpResponse.Body) - if _err != nil { - if provider.disableIMDSv1 { - err = fmt.Errorf("get metadata token failed: %s", _err.Error()) - } - return - } - - if httpResponse.StatusCode != http.StatusOK { - if provider.disableIMDSv1 { - err = errors.NewServerError(httpResponse.StatusCode, string(responseBody), "refresh Ecs sts token err") - } - return - } - - metadataToken = strings.TrimSpace(string(responseBody)) - return -} - -func (provider *ECSRAMRoleCredentialsProvider) getRoleName() (roleName string, err error) { - connectTimeout := 1 * time.Second - readTimeout := 1 * time.Second - - if provider.httpOptions != nil && provider.httpOptions.ConnectTimeout > 0 { - connectTimeout = provider.httpOptions.ConnectTimeout - } - if provider.httpOptions != nil && provider.httpOptions.ReadTimeout > 0 { - readTimeout = provider.httpOptions.ReadTimeout - } - transport := http.DefaultTransport.(*http.Transport).Clone() - transport.DialContext = func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } - - httpClient := &http.Client{ - Timeout: connectTimeout + readTimeout, - Transport: transport, - } - - var securityCredURL = "http://100.100.100.200/latest/meta-data/ram/security-credentials/" - httpRequest, err := hookNewRequest(http.NewRequest)("GET", securityCredURL, strings.NewReader("")) - if err != nil { - err = fmt.Errorf("get role name failed: %s", err.Error()) - return - } - - metadataToken, err := provider.getMetadataToken() - if err != nil { - return - } - if metadataToken != "" { - httpRequest.Header.Set("X-aliyun-ecs-metadata-token", metadataToken) - } - - httpResponse, err := hookDo(httpClient.Do)(httpRequest) - if err != nil { - err = fmt.Errorf("get role name failed: %s", err.Error()) - return - } - - if httpResponse.StatusCode != http.StatusOK { - err = fmt.Errorf("get role name failed: request %s %d", securityCredURL, httpResponse.StatusCode) - return - } - - defer httpResponse.Body.Close() - - responseBody, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - - roleName = strings.TrimSpace(string(responseBody)) - return -} - -func (provider *ECSRAMRoleCredentialsProvider) getCredentials() (sessionCredentials *SessionCredentials, err error) { - roleName := provider.roleName - if roleName == "" { - roleName, err = provider.getRoleName() - if err != nil { - return - } - } - - connectTimeout := 1 * time.Second - readTimeout := 1 * time.Second - - if provider.httpOptions != nil && provider.httpOptions.ConnectTimeout > 0 { - connectTimeout = provider.httpOptions.ConnectTimeout - } - if provider.httpOptions != nil && provider.httpOptions.ReadTimeout > 0 { - readTimeout = provider.httpOptions.ReadTimeout - } - transport := http.DefaultTransport.(*http.Transport).Clone() - transport.DialContext = func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } - - httpClient := &http.Client{ - Timeout: connectTimeout + readTimeout, - Transport: transport, - } - - var requestUrl = "http://100.100.100.200/latest/meta-data/ram/security-credentials/" + roleName - httpRequest, err := hookNewRequest(http.NewRequest)("GET", requestUrl, strings.NewReader("")) - if err != nil { - err = fmt.Errorf("refresh Ecs sts token err: %s", err.Error()) - return - } - - metadataToken, err := provider.getMetadataToken() - if err != nil { - return - } - if metadataToken != "" { - httpRequest.Header.Set("X-aliyun-ecs-metadata-token", metadataToken) - } - - httpResponse, err := hookDo(httpClient.Do)(httpRequest) - if err != nil { - err = fmt.Errorf("refresh Ecs sts token err: %s", err.Error()) - return - } - - defer httpResponse.Body.Close() - - responseBody, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - - if httpResponse.StatusCode != http.StatusOK { - err = fmt.Errorf("refresh Ecs sts token err, httpStatus: %d, message = %s", httpResponse.StatusCode, string(responseBody)) - return - } - - var data ecsRAMRoleCredentials - err = json.Unmarshal(responseBody, &data) - if err != nil { - err = fmt.Errorf("refresh Ecs sts token err, json.Unmarshal fail: %s", err.Error()) - return - } - - if data.AccessKeyId == nil || data.AccessKeySecret == nil || data.SecurityToken == nil { - err = fmt.Errorf("refresh Ecs sts token err, fail to get credentials") - return - } - - if *data.Code != "Success" { - err = fmt.Errorf("refresh Ecs sts token err, Code is not Success") - return - } - - sessionCredentials = &SessionCredentials{ - AccessKeyId: *data.AccessKeyId, - AccessKeySecret: *data.AccessKeySecret, - SecurityToken: *data.SecurityToken, - Expiration: *data.Expiration, - } - return -} - -func (provider *ECSRAMRoleCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if provider.sessionCredentials == nil || provider.needUpdateCredential() { - sessionCredentials, err1 := provider.getCredentials() - if err1 != nil { - return nil, err1 - } - - provider.sessionCredentials = sessionCredentials - expirationTime, err2 := time.Parse("2006-01-02T15:04:05Z", sessionCredentials.Expiration) - if err2 != nil { - return nil, err2 - } - provider.expirationTimestamp = expirationTime.Unix() - } - - cc = &Credentials{ - AccessKeyId: provider.sessionCredentials.AccessKeyId, - AccessKeySecret: provider.sessionCredentials.AccessKeySecret, - SecurityToken: provider.sessionCredentials.SecurityToken, - ProviderName: provider.GetProviderName(), - } - return -} - -func (provider *ECSRAMRoleCredentialsProvider) GetProviderName() string { - return "ecs_ram_role" -} - -type OIDCCredentialsProvider struct { - oidcProviderARN string - oidcTokenFilePath string - roleArn string - roleSessionName string - durationSeconds int - policy string - // for sts endpoint - stsRegion string - enableVpc bool - stsEndpoint string - lastUpdateTimestamp int64 - expirationTimestamp int64 - sessionCredentials *SessionCredentials - // for http options - httpOptions *HttpOptions -} - -type OIDCCredentialsProviderBuilder struct { - provider *OIDCCredentialsProvider -} - -func NewOIDCCredentialsProviderBuilder() *OIDCCredentialsProviderBuilder { - return &OIDCCredentialsProviderBuilder{ - provider: &OIDCCredentialsProvider{}, - } -} - -func (b *OIDCCredentialsProviderBuilder) WithOIDCProviderARN(oidcProviderArn string) *OIDCCredentialsProviderBuilder { - b.provider.oidcProviderARN = oidcProviderArn - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithOIDCTokenFilePath(oidcTokenFilePath string) *OIDCCredentialsProviderBuilder { - b.provider.oidcTokenFilePath = oidcTokenFilePath - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithRoleArn(roleArn string) *OIDCCredentialsProviderBuilder { - b.provider.roleArn = roleArn - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithRoleSessionName(roleSessionName string) *OIDCCredentialsProviderBuilder { - b.provider.roleSessionName = roleSessionName - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithDurationSeconds(durationSeconds int) *OIDCCredentialsProviderBuilder { - b.provider.durationSeconds = durationSeconds - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithStsRegion(region string) *OIDCCredentialsProviderBuilder { - b.provider.stsRegion = region - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithEnableVpc(enableVpc bool) *OIDCCredentialsProviderBuilder { - b.provider.enableVpc = enableVpc - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithSTSEndpoint(stsEndpoint string) *OIDCCredentialsProviderBuilder { - b.provider.stsEndpoint = stsEndpoint - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithPolicy(policy string) *OIDCCredentialsProviderBuilder { - b.provider.policy = policy - return b -} - -func (b *OIDCCredentialsProviderBuilder) WithHttpOptions(httpOptions *HttpOptions) *OIDCCredentialsProviderBuilder { - b.provider.httpOptions = httpOptions - return b -} - -func (b *OIDCCredentialsProviderBuilder) Build() (provider *OIDCCredentialsProvider, err error) { - provider = b.provider - - if provider.roleSessionName == "" { - provider.roleSessionName = "aliyun-go-sdk-" + strconv.FormatInt(time.Now().UnixNano()/1000, 10) - } - - if provider.oidcTokenFilePath == "" { - provider.oidcTokenFilePath = os.Getenv("ALIBABA_CLOUD_OIDC_TOKEN_FILE") - } - - if provider.oidcTokenFilePath == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "OIDCTokenFilePath can not be empty", nil) - return - } - - if provider.oidcProviderARN == "" { - provider.oidcProviderARN = os.Getenv("ALIBABA_CLOUD_OIDC_PROVIDER_ARN") - } - - if provider.oidcProviderARN == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "OIDCProviderARN can not be empty", nil) - return - } - - if provider.roleArn == "" { - provider.roleArn = os.Getenv("ALIBABA_CLOUD_ROLE_ARN") - } - - if provider.roleArn == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "RoleArn can not be empty", nil) - return - } - - if provider.durationSeconds == 0 { - provider.durationSeconds = 3600 - } - - if provider.durationSeconds < 900 || provider.durationSeconds > 3600 { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Assume Role session duration should be in the range of 15min - 1hr", nil) - } - - // sts endpoint - if provider.stsEndpoint == "" { - if !provider.enableVpc { - provider.enableVpc = strings.ToLower(os.Getenv("ALIBABA_CLOUD_VPC_ENDPOINT_ENABLED")) == "true" - } - prefix := "sts" - if provider.enableVpc { - prefix = "sts-vpc" - } - if provider.stsRegion != "" { - provider.stsEndpoint = fmt.Sprintf("%s.%s.aliyuncs.com", prefix, provider.stsRegion) - } else if region := os.Getenv("ALIBABA_CLOUD_STS_REGION"); region != "" { - provider.stsEndpoint = fmt.Sprintf("%s.%s.aliyuncs.com", prefix, region) - } else { - provider.stsEndpoint = "sts.aliyuncs.com" - } - } - - return -} - -func (provider *OIDCCredentialsProvider) getCredentials() (sessionCredentials *SessionCredentials, err error) { - method := "POST" - var host string - if provider.stsEndpoint != "" { - host = provider.stsEndpoint - } else if provider.stsRegion != "" { - host = fmt.Sprintf("sts.%s.aliyuncs.com", provider.stsRegion) - } else { - host = "sts.aliyuncs.com" - } - - queries := make(map[string]string) - queries["Version"] = "2015-04-01" - queries["Action"] = "AssumeRoleWithOIDC" - queries["Format"] = "JSON" - queries["Timestamp"] = utils.GetTimeInFormatISO8601() - - bodyForm := make(map[string]string) - bodyForm["RoleArn"] = provider.roleArn - bodyForm["OIDCProviderArn"] = provider.oidcProviderARN - token, err := ioutil.ReadFile(provider.oidcTokenFilePath) - if err != nil { - return - } - - bodyForm["OIDCToken"] = string(token) - if provider.policy != "" { - bodyForm["Policy"] = provider.policy - } - - bodyForm["RoleSessionName"] = provider.roleSessionName - bodyForm["DurationSeconds"] = strconv.Itoa(provider.durationSeconds) - - // caculate signature - signParams := make(map[string]string) - for key, value := range queries { - signParams[key] = value - } - for key, value := range bodyForm { - signParams[key] = value - } - - querystring := utils.GetUrlFormedMap(queries) - // do request - httpUrl := fmt.Sprintf("https://%s/?%s", host, querystring) - - body := utils.GetUrlFormedMap(bodyForm) - - httpRequest, err := hookNewRequest(http.NewRequest)(method, httpUrl, strings.NewReader(body)) - if err != nil { - return - } - - // set headers - httpRequest.Header["Accept-Encoding"] = []string{"identity"} - httpRequest.Header["Content-Type"] = []string{"application/x-www-form-urlencoded"} - - connectTimeout := 5 * time.Second - readTimeout := 10 * time.Second - if provider.httpOptions != nil && provider.httpOptions.ConnectTimeout > 0 { - connectTimeout = provider.httpOptions.ConnectTimeout - } - if provider.httpOptions != nil && provider.httpOptions.ReadTimeout > 0 { - readTimeout = provider.httpOptions.ReadTimeout - } - transport := http.DefaultTransport.(*http.Transport).Clone() - transport.DialContext = func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } - - httpClient := &http.Client{ - Timeout: connectTimeout + readTimeout, - Transport: transport, - } - - httpResponse, err := hookDo(httpClient.Do)(httpRequest) - if err != nil { - return - } - - defer httpResponse.Body.Close() - - responseBody, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - - if httpResponse.StatusCode != http.StatusOK { - message := "get session token failed" - err = errors.NewServerError(httpResponse.StatusCode, string(responseBody), message) - return - } - var data assumeRoleResponse - err = json.Unmarshal(responseBody, &data) - if err != nil { - err = fmt.Errorf("get oidc sts token err, json.Unmarshal fail: %s", err.Error()) - return - } - if data.Credentials == nil { - err = fmt.Errorf("get oidc sts token err, fail to get credentials") - return - } - - if data.Credentials.AccessKeyId == nil || data.Credentials.AccessKeySecret == nil || data.Credentials.SecurityToken == nil { - err = fmt.Errorf("refresh RoleArn sts token err, fail to get credentials") - return - } - - sessionCredentials = &SessionCredentials{ - AccessKeyId: *data.Credentials.AccessKeyId, - AccessKeySecret: *data.Credentials.AccessKeySecret, - SecurityToken: *data.Credentials.SecurityToken, - Expiration: *data.Credentials.Expiration, - } - return -} - -func (provider *OIDCCredentialsProvider) needUpdateCredential() (result bool) { - if provider.expirationTimestamp == 0 { - return true - } - - return provider.expirationTimestamp-time.Now().Unix() <= 180 -} - -func (provider *OIDCCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if provider.sessionCredentials == nil || provider.needUpdateCredential() { - sessionCredentials, err1 := provider.getCredentials() - if err1 != nil { - return nil, err1 - } - - provider.sessionCredentials = sessionCredentials - expirationTime, err2 := time.Parse("2006-01-02T15:04:05Z", sessionCredentials.Expiration) - if err2 != nil { - return nil, err2 - } - - provider.lastUpdateTimestamp = time.Now().Unix() - provider.expirationTimestamp = expirationTime.Unix() - } - - cc = &Credentials{ - AccessKeyId: provider.sessionCredentials.AccessKeyId, - AccessKeySecret: provider.sessionCredentials.AccessKeySecret, - SecurityToken: provider.sessionCredentials.SecurityToken, - ProviderName: provider.GetProviderName(), - } - return -} - -func (provider *OIDCCredentialsProvider) GetProviderName() string { - return "oidc_role_arn" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/default_credentials_provider.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/default_credentials_provider.go deleted file mode 100644 index c956b4cd17..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/default_credentials_provider.go +++ /dev/null @@ -1,106 +0,0 @@ -package credentials - -import ( - "fmt" - "os" - "strings" -) - -type DefaultCredentialsProvider struct { - providerChain []CredentialsProvider - lastUsedProvider CredentialsProvider -} - -func NewDefaultCredentialsProvider() (provider *DefaultCredentialsProvider) { - providers := []CredentialsProvider{} - - // Add static ak or sts credentials provider - providers = append(providers, NewEnvironmentVariableCredentialsProvider()) - - // oidc check - oidcProvider, err := NewOIDCCredentialsProviderBuilder().Build() - if err == nil { - providers = append(providers, oidcProvider) - } - - // cli credentials provider - providers = append(providers, NewCLIProfileCredentialsProviderBuilder().Build()) - - // profile credentials provider - // providers = append(providers) - providers = append(providers, NewProfileCredentialsProviderBuilder().Build()) - - // Add IMDS - ecsRamRoleProvider, err := NewECSRAMRoleCredentialsProviderBuilder().Build() - if err == nil { - providers = append(providers, ecsRamRoleProvider) - } - - // credentials uri - if os.Getenv("ALIBABA_CLOUD_CREDENTIALS_URI") != "" { - credentialsUriProvider, err := NewURLCredentialsProviderBuilderBuilder().Build() - if err == nil { - providers = append(providers, credentialsUriProvider) - } - } - - return &DefaultCredentialsProvider{ - providerChain: providers, - } -} - -func (provider *DefaultCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if provider.lastUsedProvider != nil { - inner, err1 := provider.lastUsedProvider.GetCredentials() - if err1 != nil { - err = err1 - return - } - - providerName := inner.ProviderName - if providerName == "" { - providerName = provider.lastUsedProvider.GetProviderName() - } - - cc = &Credentials{ - AccessKeyId: inner.AccessKeyId, - AccessKeySecret: inner.AccessKeySecret, - SecurityToken: inner.SecurityToken, - ProviderName: fmt.Sprintf("%s/%s", provider.GetProviderName(), providerName), - } - return - } - - errors := []string{} - for _, p := range provider.providerChain { - provider.lastUsedProvider = p - inner, errInLoop := p.GetCredentials() - - if errInLoop != nil { - errors = append(errors, errInLoop.Error()) - // 如果有错误,进入下一个获取过程 - continue - } - - if inner != nil { - providerName := inner.ProviderName - if providerName == "" { - providerName = p.GetProviderName() - } - cc = &Credentials{ - AccessKeyId: inner.AccessKeyId, - AccessKeySecret: inner.AccessKeySecret, - SecurityToken: inner.SecurityToken, - ProviderName: fmt.Sprintf("%s/%s", provider.GetProviderName(), providerName), - } - return - } - } - - err = fmt.Errorf("unable to get credentials from any of the providers in the chain: %s", strings.Join(errors, ", ")) - return -} - -func (provider *DefaultCredentialsProvider) GetProviderName() string { - return "default" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go deleted file mode 100644 index 55a5c2da03..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go +++ /dev/null @@ -1,29 +0,0 @@ -package credentials - -func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential { - return &EcsRamRoleCredential{ - RoleName: oldCred.RoleName, - } -} - -type EcsRamRoleCredential struct { - RoleName string -} - -func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential { - return &EcsRamRoleCredential{ - RoleName: roleName, - } -} - -// Deprecated: Use EcsRamRoleCredential in this package instead. -type StsRoleNameOnEcsCredential struct { - RoleName string -} - -// Deprecated: Use NewEcsRamRoleCredential in this package instead. -func NewStsRoleNameOnEcsCredential(roleName string) *StsRoleNameOnEcsCredential { - return &StsRoleNameOnEcsCredential{ - RoleName: roleName, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/env_credentials_provider.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/env_credentials_provider.go deleted file mode 100644 index bda1ae823a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/env_credentials_provider.go +++ /dev/null @@ -1,44 +0,0 @@ -package credentials - -import ( - "fmt" - "os" -) - -type EnvironmentVariableCredentialsProvider struct { -} - -func NewEnvironmentVariableCredentialsProvider() (provider *EnvironmentVariableCredentialsProvider) { - return &EnvironmentVariableCredentialsProvider{} -} - -func (provider *EnvironmentVariableCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - accessKeyId := os.Getenv("ALIBABA_CLOUD_ACCESS_KEY_ID") - - if accessKeyId == "" { - err = fmt.Errorf("unable to get credentials from enviroment variables, Access key ID must be specified via environment variable (ALIBABA_CLOUD_ACCESS_KEY_ID)") - return - } - - accessKeySecret := os.Getenv("ALIBABA_CLOUD_ACCESS_KEY_SECRET") - - if accessKeySecret == "" { - err = fmt.Errorf("unable to get credentials from enviroment variables, Access key secret must be specified via environment variable (ALIBABA_CLOUD_ACCESS_KEY_SECRET)") - return - } - - securityToken := os.Getenv("ALIBABA_CLOUD_SECURITY_TOKEN") - - cc = &Credentials{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - SecurityToken: securityToken, - ProviderName: provider.GetProviderName(), - } - - return -} - -func (provider *EnvironmentVariableCredentialsProvider) GetProviderName() string { - return "env" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/profile_credentials_provider.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/profile_credentials_provider.go deleted file mode 100644 index 52b9d12b9c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/profile_credentials_provider.go +++ /dev/null @@ -1,179 +0,0 @@ -package credentials - -import ( - "errors" - "fmt" - "os" - "path" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal" - "gopkg.in/ini.v1" -) - -type ProfileCredentialsProvider struct { - profileName string - innerProvider CredentialsProvider -} - -type ProfileCredentialsProviderBuilder struct { - provider *ProfileCredentialsProvider -} - -func NewProfileCredentialsProviderBuilder() (builder *ProfileCredentialsProviderBuilder) { - return &ProfileCredentialsProviderBuilder{ - provider: &ProfileCredentialsProvider{}, - } -} - -func (b *ProfileCredentialsProviderBuilder) WithProfileName(profileName string) *ProfileCredentialsProviderBuilder { - b.provider.profileName = profileName - return b -} - -func (b *ProfileCredentialsProviderBuilder) Build() (provider *ProfileCredentialsProvider) { - // 优先级: - // 1. 使用显示指定的 profileName - // 2. 使用环境变量(ALIBABA_CLOUD_PROFILE)指定的 profileName - // 3. 兜底使用 default 作为 profileName - b.provider.profileName = internal.GetDefaultString(b.provider.profileName, os.Getenv("ALIBABA_CLOUD_PROFILE"), "default") - - provider = b.provider - return -} - -func (provider *ProfileCredentialsProvider) getCredentialsProvider(ini *ini.File) (credentialsProvider CredentialsProvider, err error) { - section, err := ini.GetSection(provider.profileName) - if err != nil { - err = errors.New("ERROR: Can not load section" + err.Error()) - return - } - - value, err := section.GetKey("type") - if err != nil { - err = errors.New("ERROR: Can not find credential type" + err.Error()) - return - } - - switch value.String() { - case "access_key": - value1, err1 := section.GetKey("access_key_id") - value2, err2 := section.GetKey("access_key_secret") - if err1 != nil || err2 != nil { - err = errors.New("ERROR: Failed to get value") - return - } - - if value1.String() == "" || value2.String() == "" { - err = errors.New("ERROR: Value can't be empty") - return - } - - credentialsProvider, err = NewStaticAKCredentialsProviderBuilder(). - WithAccessKeyId(value1.String()). - WithAccessKeySecret(value2.String()). - Build() - case "ecs_ram_role": - value1, err1 := section.GetKey("role_name") - if err1 != nil { - err = errors.New("ERROR: Failed to get value") - return - } - credentialsProvider, err = NewECSRAMRoleCredentialsProviderBuilder().WithRoleName(value1.String()).Build() - case "ram_role_arn": - value1, err1 := section.GetKey("access_key_id") - value2, err2 := section.GetKey("access_key_secret") - value3, err3 := section.GetKey("role_arn") - value4, err4 := section.GetKey("role_session_name") - if err1 != nil || err2 != nil || err3 != nil || err4 != nil { - err = errors.New("ERROR: Failed to get value") - return - } - if value1.String() == "" || value2.String() == "" || value3.String() == "" || value4.String() == "" { - err = errors.New("ERROR: Value can't be empty") - return - } - previous, err5 := NewStaticAKCredentialsProviderBuilder(). - WithAccessKeyId(value1.String()). - WithAccessKeySecret(value2.String()). - Build() - if err5 != nil { - err = errors.New("get previous credentials provider failed") - return - } - rawPolicy, _ := section.GetKey("policy") - policy := "" - if rawPolicy != nil { - policy = rawPolicy.String() - } - - credentialsProvider, err = NewRAMRoleARNCredentialsProviderBuilder(). - WithCredentialsProvider(previous). - WithRoleArn(value3.String()). - WithRoleSessionName(value4.String()). - WithPolicy(policy). - WithDurationSeconds(3600). - Build() - default: - err = errors.New("ERROR: Failed to get credential") - } - return -} - -func (provider *ProfileCredentialsProvider) getIni() (iniInfo *ini.File, err error) { - sharedCfgPath := os.Getenv("ALIBABA_CLOUD_CREDENTIALS_FILE") - if sharedCfgPath == "" { - homeDir := getHomePath() - if homeDir == "" { - err = fmt.Errorf("cannot found home dir") - return - } - - sharedCfgPath = path.Join(homeDir, ".alibabacloud/credentials") - } - - iniInfo, err = ini.Load(sharedCfgPath) - if err != nil { - err = errors.New("ERROR: Can not open file" + err.Error()) - return - } - - return -} - -func (provider *ProfileCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if provider.innerProvider == nil { - var iniInfo *ini.File - iniInfo, err = provider.getIni() - if err != nil { - return - } - - provider.innerProvider, err = provider.getCredentialsProvider(iniInfo) - if err != nil { - return - } - } - - innerCC, err := provider.innerProvider.GetCredentials() - if err != nil { - return - } - - providerName := innerCC.ProviderName - if providerName == "" { - providerName = provider.innerProvider.GetProviderName() - } - - cc = &Credentials{ - AccessKeyId: innerCC.AccessKeyId, - AccessKeySecret: innerCC.AccessKeySecret, - SecurityToken: innerCC.SecurityToken, - ProviderName: fmt.Sprintf("%s/%s", provider.GetProviderName(), providerName), - } - - return -} - -func (provider ProfileCredentialsProvider) GetProviderName() string { - return "profile" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go deleted file mode 100644 index 3cd0d020a7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go +++ /dev/null @@ -1,30 +0,0 @@ -package provider - -import ( - "errors" - "os" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" -) - -type EnvProvider struct{} - -var ProviderEnv = new(EnvProvider) - -func NewEnvProvider() Provider { - return &EnvProvider{} -} - -func (p *EnvProvider) Resolve() (auth.Credential, error) { - accessKeyID, ok1 := os.LookupEnv(ENVAccessKeyID) - accessKeySecret, ok2 := os.LookupEnv(ENVAccessKeySecret) - if !ok1 || !ok2 { - return nil, nil - } - if accessKeyID == "" || accessKeySecret == "" { - return nil, errors.New("Environmental variable (ALIBABACLOUD_ACCESS_KEY_ID or ALIBABACLOUD_ACCESS_KEY_SECRET) is empty") - } - return credentials.NewAccessKeyCredential(accessKeyID, accessKeySecret), nil -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go deleted file mode 100644 index 59bc31b894..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go +++ /dev/null @@ -1,93 +0,0 @@ -package provider - -import ( - "encoding/json" - "errors" - "fmt" - "io/ioutil" - "net/http" - "os" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" -) - -var securityCredURL = "http://100.100.100.200/latest/meta-data/ram/security-credentials/" - -type InstanceCredentialsProvider struct{} - -var ProviderInstance = new(InstanceCredentialsProvider) - -var HookGet = func(fn func(string) (int, []byte, error)) func(string) (int, []byte, error) { - return fn -} - -func NewInstanceCredentialsProvider() Provider { - return &InstanceCredentialsProvider{} -} - -func (p *InstanceCredentialsProvider) Resolve() (auth.Credential, error) { - roleName, ok := os.LookupEnv(ENVEcsMetadata) - if !ok { - return nil, nil - } - if roleName == "" { - return nil, errors.New("environmental variable 'ALIBABA_CLOUD_ECS_METADATA' are empty") - } - status, content, err := HookGet(get)(securityCredURL + roleName) - if err != nil { - return nil, err - } - if status != 200 { - if status == 404 { - return nil, errors.New("the role was not found in the instance") - } - return nil, fmt.Errorf("received %d when getting security credentials for %s", status, roleName) - } - body := make(map[string]interface{}) - - if err := json.Unmarshal(content, &body); err != nil { - return nil, err - } - - accessKeyID, err := extractString(body, "AccessKeyId") - if err != nil { - return nil, err - } - accessKeySecret, err := extractString(body, "AccessKeySecret") - if err != nil { - return nil, err - } - securityToken, err := extractString(body, "SecurityToken") - if err != nil { - return nil, err - } - - return credentials.NewStsTokenCredential(accessKeyID, accessKeySecret, securityToken), nil -} - -func get(url string) (status int, content []byte, err error) { - httpClient := &http.Client{ - Timeout: 1 * time.Second, - } - resp, err := httpClient.Get(url) - if err != nil { - return - } - defer resp.Body.Close() - content, err = ioutil.ReadAll(resp.Body) - return resp.StatusCode, content, err -} - -func extractString(m map[string]interface{}, key string) (string, error) { - raw, ok := m[key] - if !ok { - return "", fmt.Errorf("%s not in map", key) - } - str, ok := raw.(string) - if !ok { - return "", fmt.Errorf("%s is not a string in map", key) - } - return str, nil -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go deleted file mode 100644 index 146b97945b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go +++ /dev/null @@ -1,159 +0,0 @@ -package provider - -import ( - "bufio" - "errors" - "os" - "runtime" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - - ini "gopkg.in/ini.v1" -) - -type ProfileProvider struct { - Profile string -} - -var ProviderProfile = NewProfileProvider() - -// NewProfileProvider receive zero or more parameters, -// when length of name is 0, the value of field Profile will be "default", -// and when there are multiple inputs, the function will take the -// first one and discard the other values. -func NewProfileProvider(name ...string) Provider { - p := new(ProfileProvider) - if len(name) == 0 { - p.Profile = "default" - } else { - p.Profile = name[0] - } - return p -} - -// Resolve implements the Provider interface -// when credential type is rsa_key_pair, the content of private_key file -// must be able to be parsed directly into the required string -// that NewRsaKeyPairCredential function needed -func (p *ProfileProvider) Resolve() (auth.Credential, error) { - path, ok := os.LookupEnv(ENVCredentialFile) - if !ok { - var err error - path, err = checkDefaultPath() - if err != nil { - return nil, err - } - if path == "" { - return nil, nil - } - } else if path == "" { - return nil, errors.New("Environment variable '" + ENVCredentialFile + "' cannot be empty") - } - - ini, err := ini.Load(path) - if err != nil { - return nil, errors.New("ERROR: Can not open file" + err.Error()) - } - - section, err := ini.GetSection(p.Profile) - if err != nil { - return nil, errors.New("ERROR: Can not load section" + err.Error()) - } - - value, err := section.GetKey("type") - if err != nil { - return nil, errors.New("ERROR: Can not find credential type" + err.Error()) - } - - switch value.String() { - case "access_key": - value1, err1 := section.GetKey("access_key_id") - value2, err2 := section.GetKey("access_key_secret") - if err1 != nil || err2 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" || value2.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - return credentials.NewAccessKeyCredential(value1.String(), value2.String()), nil - case "ecs_ram_role": - value1, err1 := section.GetKey("role_name") - if err1 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - return credentials.NewEcsRamRoleCredential(value1.String()), nil - case "ram_role_arn": - value1, err1 := section.GetKey("access_key_id") - value2, err2 := section.GetKey("access_key_secret") - value3, err3 := section.GetKey("role_arn") - value4, err4 := section.GetKey("role_session_name") - if err1 != nil || err2 != nil || err3 != nil || err4 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" || value2.String() == "" || value3.String() == "" || value4.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - return credentials.NewRamRoleArnCredential(value1.String(), value2.String(), value3.String(), value4.String(), 3600), nil - case "rsa_key_pair": - value1, err1 := section.GetKey("public_key_id") - value2, err2 := section.GetKey("private_key_file") - if err1 != nil || err2 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" || value2.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - file, err := os.Open(value2.String()) - if err != nil { - return nil, errors.New("ERROR: Can not get private_key") - } - defer file.Close() - var privateKey string - scan := bufio.NewScanner(file) - var data string - for scan.Scan() { - if strings.HasPrefix(scan.Text(), "----") { - continue - } - data += scan.Text() + "\n" - } - return credentials.NewRsaKeyPairCredential(privateKey, value1.String(), 3600), nil - default: - return nil, errors.New("ERROR: Failed to get credential") - } -} - -// GetHomePath return home directory according to the system. -// if the environmental virables does not exist, will return empty -func GetHomePath() string { - if runtime.GOOS == "windows" { - path, ok := os.LookupEnv("USERPROFILE") - if !ok { - return "" - } - return path - } - path, ok := os.LookupEnv("HOME") - if !ok { - return "" - } - return path -} - -func checkDefaultPath() (path string, err error) { - path = GetHomePath() - if path == "" { - return "", errors.New("The default credential file path is invalid") - } - path = strings.Replace("~/.alibabacloud/credentials", "~", path, 1) - _, err = os.Stat(path) - if err != nil { - return "", nil - } - return path, nil -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go deleted file mode 100644 index a3c831ef17..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go +++ /dev/null @@ -1,22 +0,0 @@ -package provider - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" -) - -// Environmental virables that may be used by the provider -const ( - // Deprecated: don't use it outside of this project - ENVAccessKeyID = "ALIBABA_CLOUD_ACCESS_KEY_ID" - // Deprecated: don't use it outside of this project - ENVAccessKeySecret = "ALIBABA_CLOUD_ACCESS_KEY_SECRET" - // Deprecated: don't use it outside of this project - ENVCredentialFile = "ALIBABA_CLOUD_CREDENTIALS_FILE" - // Deprecated: don't use it outside of this project - ENVEcsMetadata = "ALIBABA_CLOUD_ECS_METADATA" -) - -// When you want to customize the provider, you only need to implement the method of the interface. -type Provider interface { - Resolve() (auth.Credential, error) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go deleted file mode 100644 index 471560ac35..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go +++ /dev/null @@ -1,36 +0,0 @@ -package provider - -import ( - "errors" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" -) - -type ProviderChain struct { - Providers []Provider -} - -var defaultproviders = []Provider{ProviderEnv, ProviderProfile, ProviderInstance} -var DefaultChain = NewProviderChain(defaultproviders) - -func NewProviderChain(providers []Provider) Provider { - return &ProviderChain{ - Providers: providers, - } -} - -func (p *ProviderChain) Resolve() (auth.Credential, error) { - for _, provider := range p.Providers { - creds, err := provider.Resolve() - if err != nil { - return nil, err - } - - if creds == nil { - continue - } - - return creds, err - } - return nil, errors.New("no credential found") -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go deleted file mode 100644 index 63f462aefd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go +++ /dev/null @@ -1,17 +0,0 @@ -package credentials - -// Deprecated: the RSA key pair is deprecated -type RsaKeyPairCredential struct { - PrivateKey string - PublicKeyId string - SessionExpiration int -} - -// Deprecated: the RSA key pair is deprecated -func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential { - return &RsaKeyPairCredential{ - PrivateKey: privateKey, - PublicKeyId: publicKeyId, - SessionExpiration: sessionExpiration, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go deleted file mode 100644 index 554431ff0b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go +++ /dev/null @@ -1,15 +0,0 @@ -package credentials - -type StsTokenCredential struct { - AccessKeyId string - AccessKeySecret string - AccessKeyStsToken string -} - -func NewStsTokenCredential(accessKeyId, accessKeySecret, accessKeyStsToken string) *StsTokenCredential { - return &StsTokenCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - AccessKeyStsToken: accessKeyStsToken, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go deleted file mode 100644 index c8e07018f4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go +++ /dev/null @@ -1,75 +0,0 @@ -package credentials - -// Deprecated: Use RamRoleArnCredential in this package instead. -type StsRoleArnCredential struct { - AccessKeyId string - AccessKeySecret string - RoleArn string - RoleSessionName string - RoleSessionExpiration int -} - -type RamRoleArnCredential struct { - AccessKeyId string - AccessKeySecret string - RoleArn string - RoleSessionName string - RoleSessionExpiration int - Policy string - StsRegion string - ExternalId string -} - -// Deprecated: Use RamRoleArnCredential in this package instead. -func NewStsRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *StsRoleArnCredential { - return &StsRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - RoleSessionExpiration: roleSessionExpiration, - } -} - -func (oldCred *StsRoleArnCredential) ToRamRoleArnCredential() *RamRoleArnCredential { - return &RamRoleArnCredential{ - AccessKeyId: oldCred.AccessKeyId, - AccessKeySecret: oldCred.AccessKeySecret, - RoleArn: oldCred.RoleArn, - RoleSessionName: oldCred.RoleSessionName, - RoleSessionExpiration: oldCred.RoleSessionExpiration, - } -} - -func NewRamRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *RamRoleArnCredential { - return &RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - RoleSessionExpiration: roleSessionExpiration, - } -} - -func NewRamRoleArnWithPolicyCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string, roleSessionExpiration int) *RamRoleArnCredential { - return &RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - RoleSessionExpiration: roleSessionExpiration, - Policy: policy, - } -} - -func NewRamRoleArnWithPolicyAndExternalIdCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy, externalId string, roleSessionExpiration int) *RamRoleArnCredential { - return &RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - RoleSessionExpiration: roleSessionExpiration, - Policy: policy, - ExternalId: externalId, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/uri_credentials_provider.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/uri_credentials_provider.go deleted file mode 100644 index 5bc41f545d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/uri_credentials_provider.go +++ /dev/null @@ -1,169 +0,0 @@ -package credentials - -import ( - "context" - "encoding/json" - "fmt" - "io/ioutil" - "net" - "net/http" - "os" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" -) - -type URLCredentialsProvider struct { - url string - // for sts - sessionCredentials *SessionCredentials - // for http options - httpOptions *HttpOptions - // inner - expirationTimestamp int64 -} - -type URLCredentialsProviderBuilder struct { - provider *URLCredentialsProvider -} - -func NewURLCredentialsProviderBuilderBuilder() *URLCredentialsProviderBuilder { - return &URLCredentialsProviderBuilder{ - provider: &URLCredentialsProvider{}, - } -} - -func (builder *URLCredentialsProviderBuilder) WithUrl(url string) *URLCredentialsProviderBuilder { - builder.provider.url = url - return builder -} - -func (builder *URLCredentialsProviderBuilder) WithHttpOptions(httpOptions *HttpOptions) *URLCredentialsProviderBuilder { - builder.provider.httpOptions = httpOptions - return builder -} - -func (builder *URLCredentialsProviderBuilder) Build() (provider *URLCredentialsProvider, err error) { - - if builder.provider.url == "" { - builder.provider.url = os.Getenv("ALIBABA_CLOUD_CREDENTIALS_URI") - } - - if builder.provider.url == "" { - err = errors.NewClientError(errors.InvalidParamErrorCode, "The url is empty", nil) - return - } - - provider = builder.provider - return -} - -type urlResponse struct { - AccessKeyId *string `json:"AccessKeyId"` - AccessKeySecret *string `json:"AccessKeySecret"` - SecurityToken *string `json:"SecurityToken"` - Expiration *string `json:"Expiration"` -} - -func (provider *URLCredentialsProvider) getCredentials() (session *SessionCredentials, err error) { - connectTimeout := 5 * time.Second - readTimeout := 10 * time.Second - if provider.httpOptions != nil && provider.httpOptions.ConnectTimeout > 0 { - connectTimeout = provider.httpOptions.ConnectTimeout - } - if provider.httpOptions != nil && provider.httpOptions.ReadTimeout > 0 { - readTimeout = provider.httpOptions.ReadTimeout - } - transport := http.DefaultTransport.(*http.Transport).Clone() - transport.DialContext = func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } - - httpClient := &http.Client{ - Timeout: connectTimeout + readTimeout, - Transport: transport, - } - - httpRequest, err := hookNewRequest(http.NewRequest)("GET", provider.url, strings.NewReader("")) - if err != nil { - return - } - - httpResponse, err := hookDo(httpClient.Do)(httpRequest) - if err != nil { - fmt.Println(err) - return - } - - defer httpResponse.Body.Close() - - responseBody, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - - if httpResponse.StatusCode != http.StatusOK { - err = fmt.Errorf("get credentials from %s failed: %s", provider.url, string(responseBody)) - return - } - - var resp urlResponse - err = json.Unmarshal(responseBody, &resp) - if err != nil { - err = fmt.Errorf("get credentials from %s failed with error, json unmarshal fail: %s", provider.url, err.Error()) - return - } - - if resp.AccessKeyId == nil || resp.AccessKeySecret == nil || resp.SecurityToken == nil || resp.Expiration == nil { - err = fmt.Errorf("refresh credentials from %s failed: %s", provider.url, string(responseBody)) - return - } - - session = &SessionCredentials{ - AccessKeyId: *resp.AccessKeyId, - AccessKeySecret: *resp.AccessKeySecret, - SecurityToken: *resp.SecurityToken, - Expiration: *resp.Expiration, - } - return -} - -func (provider *URLCredentialsProvider) needUpdateCredential() (result bool) { - if provider.expirationTimestamp == 0 { - return true - } - - return provider.expirationTimestamp-time.Now().Unix() <= 180 -} - -func (provider *URLCredentialsProvider) GetCredentials() (cc *Credentials, err error) { - if provider.sessionCredentials == nil || provider.needUpdateCredential() { - sessionCredentials, err1 := provider.getCredentials() - if err1 != nil { - return nil, err1 - } - - provider.sessionCredentials = sessionCredentials - expirationTime, err2 := time.Parse("2006-01-02T15:04:05Z", sessionCredentials.Expiration) - if err2 != nil { - return nil, err2 - } - provider.expirationTimestamp = expirationTime.Unix() - } - - cc = &Credentials{ - AccessKeyId: provider.sessionCredentials.AccessKeyId, - AccessKeySecret: provider.sessionCredentials.AccessKeySecret, - SecurityToken: provider.sessionCredentials.SecurityToken, - ProviderName: provider.GetProviderName(), - } - return -} - -func (provider *URLCredentialsProvider) GetProviderName() string { - return "credential_uri" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go deleted file mode 100644 index 485e4116c6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package auth - -import ( - "bytes" - "sort" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var debug utils.Debug - -var hookGetDate = func(fn func() string) string { - return fn() -} - -func init() { - debug = utils.Init("sdk") -} - -func signRoaRequest(request requests.AcsRequest, credentialsProvider credentials.CredentialsProvider) (err error) { - // 先获取 accesskey,确保刷新 credential - cc, err := credentialsProvider.GetCredentials() - if err != nil { - return err - } - - completeROASignParams(request, cc) - stringToSign := buildRoaStringToSign(request) - request.SetStringToSign(stringToSign) - secret := cc.AccessKeySecret + "" - signature := utils.ShaHmac1(stringToSign, secret) - request.GetHeaders()["Authorization"] = "acs " + cc.AccessKeyId + ":" + signature - - return -} - -func completeROASignParams(request requests.AcsRequest, cc *credentials.Credentials) { - headerParams := request.GetHeaders() - headerParams["x-acs-credentials-provider"] = cc.ProviderName - - if cc.SecurityToken != "" { - headerParams["x-acs-security-token"] = cc.SecurityToken - } - - if cc.BearerToken != "" { - headerParams["x-acs-bearer-token"] = cc.BearerToken - } - - // complete header params - headerParams["Date"] = hookGetDate(utils.GetTimeInFormatRFC2616) - headerParams["x-acs-signature-method"] = "HMAC-SHA1" - headerParams["x-acs-signature-version"] = "1.0" - if request.GetFormParams() != nil && len(request.GetFormParams()) > 0 { - formString := utils.GetUrlFormedMap(request.GetFormParams()) - request.SetContent([]byte(formString)) - if headerParams["Content-Type"] == "" { - headerParams["Content-Type"] = requests.Form - } - } - contentMD5 := utils.GetMD5Base64(request.GetContent()) - headerParams["Content-MD5"] = contentMD5 - if _, contains := headerParams["Content-Type"]; !contains { - headerParams["Content-Type"] = requests.Raw - } - switch format := request.GetAcceptFormat(); format { - case "JSON": - headerParams["Accept"] = requests.Json - case "XML": - headerParams["Accept"] = requests.Xml - default: - headerParams["Accept"] = requests.Raw - } -} - -func buildRoaStringToSign(request requests.AcsRequest) (stringToSign string) { - - headers := request.GetHeaders() - - stringToSignBuilder := bytes.Buffer{} - stringToSignBuilder.WriteString(request.GetMethod()) - stringToSignBuilder.WriteString(requests.HeaderSeparator) - - // append header keys for sign - appendIfContain(headers, &stringToSignBuilder, "Accept", requests.HeaderSeparator) - appendIfContain(headers, &stringToSignBuilder, "Content-MD5", requests.HeaderSeparator) - appendIfContain(headers, &stringToSignBuilder, "Content-Type", requests.HeaderSeparator) - appendIfContain(headers, &stringToSignBuilder, "Date", requests.HeaderSeparator) - - // sort and append headers witch starts with 'x-acs-' - var acsHeaders []string - for key := range headers { - if strings.HasPrefix(key, "x-acs-") { - acsHeaders = append(acsHeaders, key) - } - } - sort.Strings(acsHeaders) - for _, key := range acsHeaders { - stringToSignBuilder.WriteString(key + ":" + headers[key]) - stringToSignBuilder.WriteString(requests.HeaderSeparator) - } - - // append query params - stringToSignBuilder.WriteString(request.BuildQueries()) - stringToSign = stringToSignBuilder.String() - debug("stringToSign: %s", stringToSign) - return -} - -func appendIfContain(sourceMap map[string]string, target *bytes.Buffer, key, separator string) { - if value, contain := sourceMap[key]; contain && len(value) > 0 { - target.WriteString(sourceMap[key]) - target.WriteString(separator) - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go deleted file mode 100644 index eb42deeba1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package auth - -import ( - "net/url" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var hookGetNonce = func(fn func() string) string { - return fn() -} - -func signRpcRequest(request requests.AcsRequest, regionId string, provider credentials.CredentialsProvider) (err error) { - cc, err := provider.GetCredentials() - if err != nil { - return - } - - queryParams := request.GetQueryParams() - queryParams["Version"] = request.GetVersion() - queryParams["Action"] = request.GetActionName() - queryParams["Format"] = request.GetAcceptFormat() - queryParams["Timestamp"] = hookGetDate(utils.GetTimeInFormatISO8601) - queryParams["SignatureMethod"] = "HMAC-SHA1" - queryParams["SignatureVersion"] = "1.0" - queryParams["SignatureType"] = "" - queryParams["SignatureNonce"] = hookGetNonce(utils.GetNonce) - queryParams["AccessKeyId"] = cc.AccessKeyId - - if _, contains := queryParams["RegionId"]; !contains { - queryParams["RegionId"] = regionId - } - - if cc.SecurityToken != "" { - queryParams["SecurityToken"] = cc.SecurityToken - } - - if cc.BearerToken != "" { - queryParams["BearerToken"] = cc.BearerToken - queryParams["SignatureType"] = "BEARERTOKEN" - } - - request.GetHeaders()["Content-Type"] = requests.Form - request.GetHeaders()["x-acs-credentials-provider"] = cc.ProviderName - formString := utils.GetUrlFormedMap(request.GetFormParams()) - request.SetContent([]byte(formString)) - - // remove while retry - delete(request.GetQueryParams(), "Signature") - - stringToSign := buildRpcStringToSign(request) - request.SetStringToSign(stringToSign) - secret := cc.AccessKeySecret + "&" - request.GetQueryParams()["Signature"] = utils.ShaHmac1(stringToSign, secret) - - return -} - -func buildRpcStringToSign(request requests.AcsRequest) (stringToSign string) { - signParams := make(map[string]string) - for key, value := range request.GetQueryParams() { - signParams[key] = value - } - for key, value := range request.GetFormParams() { - signParams[key] = value - } - - stringToSign = utils.GetUrlFormedMap(signParams) - stringToSign = strings.Replace(stringToSign, "+", "%20", -1) - stringToSign = strings.Replace(stringToSign, "*", "%2A", -1) - stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) - stringToSign = url.QueryEscape(stringToSign) - stringToSign = request.GetMethod() + "&%2F&" + stringToSign - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go deleted file mode 100644 index e1c0ecc7f9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package auth - -import ( - "fmt" - "reflect" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -type Signer interface { - GetName() string - GetType() string - // GetVersion() string - // Deprecated: Use credentials provider instead of - GetAccessKeyId() (string, error) - // Deprecated: Use credentials provider instead of - GetExtraParam() map[string]string - // Deprecated: Use credentials provider instead of - Sign(stringToSign, secretSuffix string) string -} - -func NewSignerWithCredential(credential Credential, commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error)) (signer Signer, err error) { - switch instance := credential.(type) { - case *credentials.AccessKeyCredential: - { - signer = signers.NewAccessKeySigner(instance) - } - case *credentials.StsTokenCredential: - { - signer = signers.NewStsTokenSigner(instance) - } - case *credentials.BearerTokenCredential: - { - signer = signers.NewBearerTokenSigner(instance) - } - case *credentials.RamRoleArnCredential: - { - signer, err = signers.NewRamRoleArnSigner(instance, commonApi) - } - case *credentials.RsaKeyPairCredential: - { - signer, err = signers.NewSignerKeyPair(instance, commonApi) - } - case *credentials.EcsRamRoleCredential: - { - signer = signers.NewEcsRamRoleSigner(instance, commonApi) - } - case *credentials.BaseCredential: // deprecated user interface - { - signer = signers.NewAccessKeySigner(instance.ToAccessKeyCredential()) - } - case *credentials.StsRoleArnCredential: // deprecated user interface - { - signer, err = signers.NewRamRoleArnSigner(instance.ToRamRoleArnCredential(), commonApi) - } - case *credentials.StsRoleNameOnEcsCredential: // deprecated user interface - { - signer = signers.NewEcsRamRoleSigner(instance.ToEcsRamRoleCredential(), commonApi) - } - default: - message := fmt.Sprintf(errors.UnsupportedCredentialErrorMessage, reflect.TypeOf(credential)) - err = errors.NewClientError(errors.UnsupportedCredentialErrorCode, message, nil) - } - return -} - -func Sign(request requests.AcsRequest, signer Signer, regionId string, credentialsProvider credentials.CredentialsProvider) (err error) { - switch request.GetStyle() { - case requests.ROA: - { - err = signRoaRequest(request, credentialsProvider) - } - case requests.RPC: - { - err = signRpcRequest(request, regionId, credentialsProvider) - } - default: - message := fmt.Sprintf(errors.UnknownRequestTypeErrorMessage, reflect.TypeOf(request)) - err = errors.NewClientError(errors.UnknownRequestTypeErrorCode, message, nil) - } - - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go deleted file mode 100644 index 941b68dfba..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "crypto" - "crypto/hmac" - "crypto/rand" - "crypto/rsa" - "crypto/sha1" - "crypto/x509" - "encoding/base64" -) - -// Deprecated: use utils.ShaHmac1() instead of -func ShaHmac1(source, secret string) string { - key := []byte(secret) - hmac := hmac.New(sha1.New, key) - hmac.Write([]byte(source)) - signedBytes := hmac.Sum(nil) - signedString := base64.StdEncoding.EncodeToString(signedBytes) - return signedString -} - -// Deprecated: use utils.Sha256WithRsa() instead of -func Sha256WithRsa(source, secret string) string { - // block, _ := pem.Decode([]byte(secret)) - decodeString, err := base64.StdEncoding.DecodeString(secret) - if err != nil { - panic(err) - } - private, err := x509.ParsePKCS8PrivateKey(decodeString) - if err != nil { - panic(err) - } - - h := crypto.Hash.New(crypto.SHA256) - h.Write([]byte(source)) - hashed := h.Sum(nil) - signature, err := rsa.SignPKCS1v15(rand.Reader, private.(*rsa.PrivateKey), - crypto.SHA256, hashed) - if err != nil { - panic(err) - } - - return base64.StdEncoding.EncodeToString(signature) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go deleted file mode 100644 index ba291a41e8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -const defaultInAdvanceScale = 0.95 - -type credentialUpdater struct { - credentialExpiration int - lastUpdateTimestamp int64 - inAdvanceScale float64 - buildRequestMethod func() (*requests.CommonRequest, error) - responseCallBack func(response *responses.CommonResponse) error - refreshApi func(request *requests.CommonRequest) (response *responses.CommonResponse, err error) -} - -func (updater *credentialUpdater) needUpdateCredential() (result bool) { - if updater.inAdvanceScale == 0 { - updater.inAdvanceScale = defaultInAdvanceScale - } - return time.Now().Unix()-updater.lastUpdateTimestamp >= int64(float64(updater.credentialExpiration)*updater.inAdvanceScale) -} - -func (updater *credentialUpdater) updateCredential() (err error) { - request, err := updater.buildRequestMethod() - if err != nil { - return - } - response, err := updater.refreshApi(request) - if err != nil { - return - } - updater.lastUpdateTimestamp = time.Now().Unix() - err = updater.responseCallBack(response) - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go deleted file mode 100644 index 99c624c880..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go +++ /dev/null @@ -1,7 +0,0 @@ -package signers - -type SessionCredential struct { - AccessKeyId string - AccessKeySecret string - StsToken string -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go deleted file mode 100644 index abd888c93e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type AccessKeySigner struct { - credential *credentials.AccessKeyCredential -} - -func (signer *AccessKeySigner) GetExtraParam() map[string]string { - return nil -} - -func NewAccessKeySigner(credential *credentials.AccessKeyCredential) *AccessKeySigner { - return &AccessKeySigner{ - credential: credential, - } -} - -func (*AccessKeySigner) GetName() string { - return "HMAC-SHA1" -} - -func (*AccessKeySigner) GetType() string { - return "" -} - -func (*AccessKeySigner) GetVersion() string { - return "1.0" -} - -func (signer *AccessKeySigner) GetAccessKeyId() (accessKeyId string, err error) { - return signer.credential.AccessKeyId, nil -} - -func (signer *AccessKeySigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.credential.AccessKeySecret + secretSuffix - return utils.ShaHmac1(stringToSign, secret) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go deleted file mode 100644 index 75b78433ad..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go +++ /dev/null @@ -1,35 +0,0 @@ -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" -) - -type BearerTokenSigner struct { - credential *credentials.BearerTokenCredential -} - -func NewBearerTokenSigner(credential *credentials.BearerTokenCredential) *BearerTokenSigner { - return &BearerTokenSigner{ - credential: credential, - } -} - -func (signer *BearerTokenSigner) GetExtraParam() map[string]string { - return map[string]string{"BearerToken": signer.credential.BearerToken} -} - -func (*BearerTokenSigner) GetName() string { - return "" -} -func (*BearerTokenSigner) GetType() string { - return "BEARERTOKEN" -} -func (*BearerTokenSigner) GetVersion() string { - return "1.0" -} -func (signer *BearerTokenSigner) GetAccessKeyId() (accessKeyId string, err error) { - return "", nil -} -func (signer *BearerTokenSigner) Sign(stringToSign, secretSuffix string) string { - return "" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go deleted file mode 100644 index d570e9c236..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "encoding/json" - "fmt" - "net/http" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" - jmespath "github.com/jmespath/go-jmespath" -) - -var securityCredURL = "http://100.100.100.200/latest/meta-data/ram/security-credentials/" - -type EcsRamRoleSigner struct { - *credentialUpdater - sessionCredential *SessionCredential - credential *credentials.EcsRamRoleCredential - commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error) -} - -func NewEcsRamRoleSigner(credential *credentials.EcsRamRoleCredential, commonApi func(*requests.CommonRequest, interface{}) (response *responses.CommonResponse, err error)) (signer *EcsRamRoleSigner) { - signer = &EcsRamRoleSigner{ - credential: credential, - commonApi: commonApi, - } - - signer.credentialUpdater = &credentialUpdater{ - credentialExpiration: defaultDurationSeconds / 60, - buildRequestMethod: signer.buildCommonRequest, - responseCallBack: signer.refreshCredential, - refreshApi: signer.refreshApi, - } - - return signer -} - -func (*EcsRamRoleSigner) GetName() string { - return "HMAC-SHA1" -} - -func (*EcsRamRoleSigner) GetType() string { - return "" -} - -func (*EcsRamRoleSigner) GetVersion() string { - return "1.0" -} - -func (signer *EcsRamRoleSigner) GetAccessKeyId() (accessKeyId string, err error) { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - err = signer.updateCredential() - if err != nil { - return - } - } - if signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0 { - return "", nil - } - return signer.sessionCredential.AccessKeyId, nil -} - -func (signer *EcsRamRoleSigner) GetExtraParam() map[string]string { - if signer.sessionCredential == nil { - return make(map[string]string) - } - if len(signer.sessionCredential.StsToken) <= 0 { - return make(map[string]string) - } - return map[string]string{"SecurityToken": signer.sessionCredential.StsToken} -} - -func (signer *EcsRamRoleSigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.sessionCredential.AccessKeySecret + secretSuffix - return utils.ShaHmac1(stringToSign, secret) -} - -func (signer *EcsRamRoleSigner) buildCommonRequest() (request *requests.CommonRequest, err error) { - return -} - -func (signer *EcsRamRoleSigner) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - requestUrl := securityCredURL + signer.credential.RoleName - httpRequest, err := http.NewRequest(requests.GET, requestUrl, strings.NewReader("")) - if err != nil { - err = fmt.Errorf("refresh Ecs sts token err: %s", err.Error()) - return - } - httpClient := &http.Client{ - Timeout: 5 * time.Second, - } - httpResponse, err := httpClient.Do(httpRequest) - if err != nil { - err = fmt.Errorf("refresh Ecs sts token err: %s", err.Error()) - return - } - - response = responses.NewCommonResponse() - err = responses.Unmarshal(response, httpResponse, "") - return -} - -func (signer *EcsRamRoleSigner) refreshCredential(response *responses.CommonResponse) (err error) { - if response.GetHttpStatus() != http.StatusOK { - return fmt.Errorf("refresh Ecs sts token err, httpStatus: %d, message = %s", response.GetHttpStatus(), response.GetHttpContentString()) - } - var data interface{} - err = json.Unmarshal(response.GetHttpContentBytes(), &data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, json.Unmarshal fail: %s", err.Error()) - } - code, err := jmespath.Search("Code", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get Code: %s", err.Error()) - } - if code.(string) != "Success" { - return fmt.Errorf("refresh Ecs sts token err, Code is not Success") - } - accessKeyId, err := jmespath.Search("AccessKeyId", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get AccessKeyId: %s", err.Error()) - } - accessKeySecret, err := jmespath.Search("AccessKeySecret", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get AccessKeySecret: %s", err.Error()) - } - securityToken, err := jmespath.Search("SecurityToken", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get SecurityToken: %s", err.Error()) - } - expiration, err := jmespath.Search("Expiration", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get Expiration: %s", err.Error()) - } - if accessKeyId == nil || accessKeySecret == nil || securityToken == nil || expiration == nil { - return - } - - expirationTime, err := time.Parse("2006-01-02T15:04:05Z", expiration.(string)) - signer.credentialExpiration = int(expirationTime.Unix() - time.Now().Unix()) - signer.sessionCredential = &SessionCredential{ - AccessKeyId: accessKeyId.(string), - AccessKeySecret: accessKeySecret.(string), - StsToken: securityToken.(string), - } - - return -} - -func (signer *EcsRamRoleSigner) GetSessionCredential() *SessionCredential { - return signer.sessionCredential -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go deleted file mode 100644 index 4f1308c90b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "encoding/json" - "fmt" - "net/http" - "strconv" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" - jmespath "github.com/jmespath/go-jmespath" -) - -// Deprecated: RSA key pair is deprecated -type SignerKeyPair struct { - *credentialUpdater - sessionCredential *SessionCredential - credential *credentials.RsaKeyPairCredential - commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error) -} - -// Deprecated: RSA key pair is deprecated -func NewSignerKeyPair(credential *credentials.RsaKeyPairCredential, commonApi func(*requests.CommonRequest, interface{}) (response *responses.CommonResponse, err error)) (signer *SignerKeyPair, err error) { - signer = &SignerKeyPair{ - credential: credential, - commonApi: commonApi, - } - - signer.credentialUpdater = &credentialUpdater{ - credentialExpiration: credential.SessionExpiration, - buildRequestMethod: signer.buildCommonRequest, - responseCallBack: signer.refreshCredential, - refreshApi: signer.refreshApi, - } - - if credential.SessionExpiration > 0 { - if credential.SessionExpiration >= 900 && credential.SessionExpiration <= 3600 { - signer.credentialExpiration = credential.SessionExpiration - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Key Pair session duration should be in the range of 15min - 1Hr", nil) - } - } else { - signer.credentialExpiration = defaultDurationSeconds - } - return -} - -func (*SignerKeyPair) GetName() string { - return "HMAC-SHA1" -} - -func (*SignerKeyPair) GetType() string { - return "" -} - -func (*SignerKeyPair) GetVersion() string { - return "1.0" -} - -func (signer *SignerKeyPair) ensureCredential() error { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - return signer.updateCredential() - } - return nil -} - -func (signer *SignerKeyPair) GetAccessKeyId() (accessKeyId string, err error) { - err = signer.ensureCredential() - if err != nil { - return - } - if signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0 { - accessKeyId = "" - return - } - - accessKeyId = signer.sessionCredential.AccessKeyId - return -} - -func (signer *SignerKeyPair) GetExtraParam() map[string]string { - return make(map[string]string) -} - -func (signer *SignerKeyPair) Sign(stringToSign, secretSuffix string) string { - secret := signer.sessionCredential.AccessKeySecret + secretSuffix - return utils.ShaHmac1(stringToSign, secret) -} - -func (signer *SignerKeyPair) buildCommonRequest() (request *requests.CommonRequest, err error) { - request = requests.NewCommonRequest() - request.Product = "Sts" - request.Version = "2015-04-01" - request.ApiName = "GenerateSessionAccessKey" - request.Scheme = requests.HTTPS - request.SetDomain("sts.ap-northeast-1.aliyuncs.com") - request.QueryParams["PublicKeyId"] = signer.credential.PublicKeyId - request.QueryParams["DurationSeconds"] = strconv.Itoa(signer.credentialExpiration) - return -} - -func (signer *SignerKeyPair) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - signerV2 := NewSignerV2(signer.credential) - return signer.commonApi(request, signerV2) -} - -func (signer *SignerKeyPair) refreshCredential(response *responses.CommonResponse) (err error) { - if response.GetHttpStatus() != http.StatusOK { - message := "refresh session AccessKey failed" - err = errors.NewServerError(response.GetHttpStatus(), response.GetHttpContentString(), message) - return - } - var data interface{} - err = json.Unmarshal(response.GetHttpContentBytes(), &data) - if err != nil { - return fmt.Errorf("refresh KeyPair err, json.Unmarshal fail: %s", err.Error()) - } - accessKeyId, err := jmespath.Search("SessionAccessKey.SessionAccessKeyId", data) - if err != nil { - return fmt.Errorf("refresh KeyPair err, fail to get SessionAccessKeyId: %s", err.Error()) - } - accessKeySecret, err := jmespath.Search("SessionAccessKey.SessionAccessKeySecret", data) - if err != nil { - return fmt.Errorf("refresh KeyPair err, fail to get SessionAccessKeySecret: %s", err.Error()) - } - if accessKeyId == nil || accessKeySecret == nil { - return - } - signer.sessionCredential = &SessionCredential{ - AccessKeyId: accessKeyId.(string), - AccessKeySecret: accessKeySecret.(string), - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go deleted file mode 100644 index df3fcfd5a4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "encoding/json" - "fmt" - "net/http" - "strconv" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" - jmespath "github.com/jmespath/go-jmespath" -) - -const ( - defaultDurationSeconds = 3600 -) - -type RamRoleArnSigner struct { - *credentialUpdater - roleSessionName string - sessionCredential *SessionCredential - credential *credentials.RamRoleArnCredential - commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error) -} - -func NewRamRoleArnSigner(credential *credentials.RamRoleArnCredential, commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error)) (signer *RamRoleArnSigner, err error) { - signer = &RamRoleArnSigner{ - credential: credential, - commonApi: commonApi, - } - - signer.credentialUpdater = &credentialUpdater{ - credentialExpiration: credential.RoleSessionExpiration, - buildRequestMethod: signer.buildCommonRequest, - responseCallBack: signer.refreshCredential, - refreshApi: signer.refreshApi, - } - - if len(credential.RoleSessionName) > 0 { - signer.roleSessionName = credential.RoleSessionName - } else { - signer.roleSessionName = "aliyun-go-sdk-" + strconv.FormatInt(time.Now().UnixNano()/1000, 10) - } - if credential.RoleSessionExpiration > 0 { - if credential.RoleSessionExpiration >= 900 && credential.RoleSessionExpiration <= 3600 { - signer.credentialExpiration = credential.RoleSessionExpiration - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Assume Role session duration should be in the range of 15min - 1Hr", nil) - } - } else { - signer.credentialExpiration = defaultDurationSeconds - } - return -} - -func (*RamRoleArnSigner) GetName() string { - return "HMAC-SHA1" -} - -func (*RamRoleArnSigner) GetType() string { - return "" -} - -func (*RamRoleArnSigner) GetVersion() string { - return "1.0" -} - -func (signer *RamRoleArnSigner) GetAccessKeyId() (accessKeyId string, err error) { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - err = signer.updateCredential() - if err != nil { - return - } - } - - if signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0 { - return "", err - } - - return signer.sessionCredential.AccessKeyId, nil -} - -func (signer *RamRoleArnSigner) GetExtraParam() map[string]string { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - signer.updateCredential() - } - if signer.sessionCredential == nil || len(signer.sessionCredential.StsToken) <= 0 { - return make(map[string]string) - } - return map[string]string{"SecurityToken": signer.sessionCredential.StsToken} -} - -func (signer *RamRoleArnSigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.sessionCredential.AccessKeySecret + secretSuffix - return utils.ShaHmac1(stringToSign, secret) -} - -func (signer *RamRoleArnSigner) buildCommonRequest() (request *requests.CommonRequest, err error) { - request = requests.NewCommonRequest() - if signer.credential.StsRegion != "" { - request.Domain = fmt.Sprintf("sts.%s.aliyuncs.com", signer.credential.StsRegion) - } else { - request.Domain = "sts.aliyuncs.com" - } - request.Product = "Sts" - request.Version = "2015-04-01" - request.ApiName = "AssumeRole" - request.Scheme = requests.HTTPS - request.QueryParams["RoleArn"] = signer.credential.RoleArn - if signer.credential.Policy != "" { - request.QueryParams["Policy"] = signer.credential.Policy - } - if signer.credential.ExternalId != "" { - request.QueryParams["ExternalId"] = signer.credential.ExternalId - } - request.QueryParams["RoleSessionName"] = signer.credential.RoleSessionName - request.QueryParams["DurationSeconds"] = strconv.Itoa(signer.credentialExpiration) - return -} - -func (signer *RamRoleArnSigner) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - credential := &credentials.AccessKeyCredential{ - AccessKeyId: signer.credential.AccessKeyId, - AccessKeySecret: signer.credential.AccessKeySecret, - } - signerV1 := NewAccessKeySigner(credential) - return signer.commonApi(request, signerV1) -} - -func (signer *RamRoleArnSigner) refreshCredential(response *responses.CommonResponse) (err error) { - if response.GetHttpStatus() != http.StatusOK { - message := "refresh session token failed" - err = errors.NewServerError(response.GetHttpStatus(), response.GetHttpContentString(), message) - return - } - var data interface{} - err = json.Unmarshal(response.GetHttpContentBytes(), &data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, json.Unmarshal fail: %s", err.Error()) - } - accessKeyId, err := jmespath.Search("Credentials.AccessKeyId", data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, fail to get AccessKeyId: %s", err.Error()) - } - accessKeySecret, err := jmespath.Search("Credentials.AccessKeySecret", data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, fail to get AccessKeySecret: %s", err.Error()) - } - securityToken, err := jmespath.Search("Credentials.SecurityToken", data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, fail to get SecurityToken: %s", err.Error()) - } - if accessKeyId == nil || accessKeySecret == nil || securityToken == nil { - return - } - signer.sessionCredential = &SessionCredential{ - AccessKeyId: accessKeyId.(string), - AccessKeySecret: accessKeySecret.(string), - StsToken: securityToken.(string), - } - return -} - -func (signer *RamRoleArnSigner) GetSessionCredential() *SessionCredential { - return signer.sessionCredential -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go deleted file mode 100644 index 822ec6ab16..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type StsTokenSigner struct { - credential *credentials.StsTokenCredential -} - -func NewStsTokenSigner(credential *credentials.StsTokenCredential) *StsTokenSigner { - return &StsTokenSigner{ - credential: credential, - } -} - -func (*StsTokenSigner) GetName() string { - return "HMAC-SHA1" -} - -func (*StsTokenSigner) GetType() string { - return "" -} - -func (*StsTokenSigner) GetVersion() string { - return "1.0" -} - -func (signer *StsTokenSigner) GetAccessKeyId() (accessKeyId string, err error) { - return signer.credential.AccessKeyId, nil -} - -func (signer *StsTokenSigner) GetExtraParam() map[string]string { - return map[string]string{"SecurityToken": signer.credential.AccessKeyStsToken} -} - -func (signer *StsTokenSigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.credential.AccessKeySecret + secretSuffix - return utils.ShaHmac1(stringToSign, secret) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go deleted file mode 100644 index 112b1ae0f3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type SignerV2 struct { - credential *credentials.RsaKeyPairCredential -} - -func (signer *SignerV2) GetExtraParam() map[string]string { - return nil -} - -func NewSignerV2(credential *credentials.RsaKeyPairCredential) *SignerV2 { - return &SignerV2{ - credential: credential, - } -} - -func (*SignerV2) GetName() string { - return "SHA256withRSA" -} - -func (*SignerV2) GetType() string { - return "PRIVATEKEY" -} - -func (*SignerV2) GetVersion() string { - return "1.0" -} - -func (signer *SignerV2) GetAccessKeyId() (accessKeyId string, err error) { - return signer.credential.PublicKeyId, err -} - -func (signer *SignerV2) Sign(stringToSign, secretSuffix string) string { - secret := signer.credential.PrivateKey - return utils.Sha256WithRsa(stringToSign, secret) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go deleted file mode 100644 index 339fc9c309..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go +++ /dev/null @@ -1,915 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package sdk - -import ( - "context" - "crypto/tls" - "fmt" - "net" - "net/http" - "net/url" - "os" - "reflect" - "regexp" - "runtime" - "strconv" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" - opentracing "github.com/opentracing/opentracing-go" - "github.com/opentracing/opentracing-go/ext" -) - -var debug = utils.Init("sdk") - -var defaultConnectTimeout = 5 * time.Second -var defaultReadTimeout = 10 * time.Second - -var DefaultUserAgent = fmt.Sprintf("AlibabaCloud (%s; %s) Golang/%s Core/%s", runtime.GOOS, runtime.GOARCH, strings.Trim(runtime.Version(), "go"), Version) - -type Do func(req *http.Request) (*http.Response, error) - -var hookDo = func(fn Do) Do { - return fn -} - -// Client the type Client -type Client struct { - SourceIp string - SecureTransport string - isInsecure bool - regionId string - config *Config - httpProxy string - httpsProxy string - noProxy string - logger *Logger - userAgent map[string]string - // Deprecated: don't use it - signer auth.Signer - httpClient *http.Client - asyncTaskQueue chan func() - readTimeout time.Duration - connectTimeout time.Duration - EndpointMap map[string]string - EndpointType string - Network string - Domain string - isOpenAsync bool - isCloseTrace bool - rootSpan opentracing.Span - credentialsProvider credentials.CredentialsProvider -} - -// Deprecated: don't use it -func (client *Client) Init() (err error) { - panic("not support yet") -} - -func (client *Client) SetEndpointRules(endpointMap map[string]string, endpointType string, netWork string) { - client.EndpointMap = endpointMap - client.Network = netWork - client.EndpointType = endpointType -} - -func (client *Client) SetHTTPSInsecure(isInsecure bool) { - client.isInsecure = isInsecure -} - -func (client *Client) GetHTTPSInsecure() bool { - return client.isInsecure -} - -func (client *Client) SetHttpsProxy(httpsProxy string) { - client.httpsProxy = httpsProxy -} - -func (client *Client) GetHttpsProxy() string { - return client.httpsProxy -} - -func (client *Client) SetHttpProxy(httpProxy string) { - client.httpProxy = httpProxy -} - -func (client *Client) GetHttpProxy() string { - return client.httpProxy -} - -func (client *Client) SetNoProxy(noProxy string) { - client.noProxy = noProxy -} - -func (client *Client) GetNoProxy() string { - return client.noProxy -} - -func (client *Client) SetTransport(transport http.RoundTripper) { - if client.httpClient == nil { - client.httpClient = &http.Client{} - } - client.httpClient.Transport = transport -} - -func (client *Client) SetCloseTrace(isCloseTrace bool) { - client.isCloseTrace = isCloseTrace -} - -func (client *Client) GetCloseTrace() bool { - return client.isCloseTrace -} - -func (client *Client) SetTracerRootSpan(rootSpan opentracing.Span) { - client.rootSpan = rootSpan -} - -func (client *Client) GetTracerRootSpan() opentracing.Span { - return client.rootSpan -} - -// InitWithProviderChain will get credential from the providerChain, -// the RsaKeyPairCredential Only applicable to regionID `ap-northeast-1`, -// if your providerChain may return a credential type with RsaKeyPairCredential, -// please ensure your regionID is `ap-northeast-1`. -func (client *Client) InitWithProviderChain(regionId string, provider provider.Provider) (err error) { - config := client.InitClientConfig() - credential, err := provider.Resolve() - if err != nil { - return - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithOptions(regionId string, config *Config, credential auth.Credential) (err error) { - if regionId != "" { - match, _ := regexp.MatchString("^[a-zA-Z0-9_-]+$", regionId) - if !match { - return fmt.Errorf("regionId contains invalid characters") - } - } - - client.regionId = regionId - client.config = config - client.httpClient = &http.Client{} - client.isCloseTrace = false - - if config.Transport != nil { - client.httpClient.Transport = config.Transport - } else if config.HttpTransport != nil { - client.httpClient.Transport = config.HttpTransport - } - - if config.Timeout > 0 { - client.httpClient.Timeout = config.Timeout - } - - if config.EnableAsync { - client.EnableAsync(config.GoRoutinePoolSize, config.MaxTaskQueueSize) - } - - client.credentialsProvider, err = auth.ToCredentialsProvider(credential) - return -} - -func (client *Client) SetReadTimeout(readTimeout time.Duration) { - client.readTimeout = readTimeout -} - -func (client *Client) SetConnectTimeout(connectTimeout time.Duration) { - client.connectTimeout = connectTimeout -} - -func (client *Client) GetReadTimeout() time.Duration { - return client.readTimeout -} - -func (client *Client) GetConnectTimeout() time.Duration { - return client.connectTimeout -} - -func (client *Client) getHttpProxy(scheme string) (proxy *url.URL, err error) { - if scheme == "https" { - if client.GetHttpsProxy() != "" { - proxy, err = url.Parse(client.httpsProxy) - } else if rawurl := os.Getenv("HTTPS_PROXY"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } else if rawurl := os.Getenv("https_proxy"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } - } else { - if client.GetHttpProxy() != "" { - proxy, err = url.Parse(client.httpProxy) - } else if rawurl := os.Getenv("HTTP_PROXY"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } else if rawurl := os.Getenv("http_proxy"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } - } - - return proxy, err -} - -func (client *Client) getNoProxy() []string { - var urls []string - if client.GetNoProxy() != "" { - urls = strings.Split(client.noProxy, ",") - } else if rawurl := os.Getenv("NO_PROXY"); rawurl != "" { - urls = strings.Split(rawurl, ",") - } else if rawurl := os.Getenv("no_proxy"); rawurl != "" { - urls = strings.Split(rawurl, ",") - } - - return urls -} - -// EnableAsync enable the async task queue -func (client *Client) EnableAsync(routinePoolSize, maxTaskQueueSize int) { - if client.isOpenAsync { - fmt.Println("warning: Please not call EnableAsync repeatedly") - return - } - client.isOpenAsync = true - client.asyncTaskQueue = make(chan func(), maxTaskQueueSize) - for i := 0; i < routinePoolSize; i++ { - go func() { - for { - task, notClosed := <-client.asyncTaskQueue - if !notClosed { - return - } else { - task() - } - } - }() - } -} - -func (client *Client) InitWithAccessKey(regionId, accessKeyId, accessKeySecret string) (err error) { - config := client.InitClientConfig() - credential := &credentials.AccessKeyCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithStsToken(regionId, accessKeyId, accessKeySecret, securityToken string) (err error) { - config := client.InitClientConfig() - credential := &credentials.StsTokenCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - AccessKeyStsToken: securityToken, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (err error) { - config := client.InitClientConfig() - credential := &credentials.RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (err error) { - config := client.InitClientConfig() - credential := &credentials.RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - Policy: policy, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithRsaKeyPair(regionId, publicKeyId, privateKey string, sessionExpiration int) (err error) { - config := client.InitClientConfig() - credential := &credentials.RsaKeyPairCredential{ - PrivateKey: privateKey, - PublicKeyId: publicKeyId, - SessionExpiration: sessionExpiration, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithEcsRamRole(regionId, roleName string) (err error) { - config := client.InitClientConfig() - credential := &credentials.EcsRamRoleCredential{ - RoleName: roleName, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithBearerToken(regionId, bearerToken string) (err error) { - config := client.InitClientConfig() - credential := &credentials.BearerTokenCredential{ - BearerToken: bearerToken, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitClientConfig() (config *Config) { - if client.config != nil { - return client.config - } else { - return NewConfig() - } -} - -func (client *Client) DoAction(request requests.AcsRequest, response responses.AcsResponse) (err error) { - if (client.SecureTransport == "false" || client.SecureTransport == "true") && client.SourceIp != "" { - t := reflect.TypeOf(request).Elem() - v := reflect.ValueOf(request).Elem() - for i := 0; i < t.NumField(); i++ { - value := v.FieldByName(t.Field(i).Name) - if t.Field(i).Name == "requests.RoaRequest" || t.Field(i).Name == "RoaRequest" { - request.GetHeaders()["x-acs-proxy-source-ip"] = client.SourceIp - request.GetHeaders()["x-acs-proxy-secure-transport"] = client.SecureTransport - return client.DoActionWithSigner(request, response, nil) - } else if t.Field(i).Name == "PathPattern" && !value.IsZero() { - request.GetHeaders()["x-acs-proxy-source-ip"] = client.SourceIp - request.GetHeaders()["x-acs-proxy-secure-transport"] = client.SecureTransport - return client.DoActionWithSigner(request, response, nil) - } else if i == t.NumField()-1 { - request.GetQueryParams()["SourceIp"] = client.SourceIp - request.GetQueryParams()["SecureTransport"] = client.SecureTransport - return client.DoActionWithSigner(request, response, nil) - } - } - } - return client.DoActionWithSigner(request, response, nil) -} -func (client *Client) GetEndpointRules(regionId string, product string) (endpointRaw string, err error) { - if client.EndpointType == "regional" { - if regionId == "" { - err = fmt.Errorf("RegionId is empty, please set a valid RegionId") - return "", err - } - endpointRaw = strings.Replace("..aliyuncs.com", "", regionId, 1) - } else { - endpointRaw = ".aliyuncs.com" - } - endpointRaw = strings.Replace(endpointRaw, "", strings.ToLower(product), 1) - if client.Network == "" || client.Network == "public" { - endpointRaw = strings.Replace(endpointRaw, "", "", 1) - } else { - endpointRaw = strings.Replace(endpointRaw, "", "-"+client.Network, 1) - } - return endpointRaw, nil -} - -func (client *Client) buildRequestWithSigner(request requests.AcsRequest) (httpRequest *http.Request, err error) { - // add clientVersion - request.GetHeaders()["x-sdk-core-version"] = Version - - regionId := client.regionId - if len(request.GetRegionId()) > 0 { - regionId = request.GetRegionId() - } - - // resolve endpoint - endpoint := request.GetDomain() - - if endpoint == "" && client.Domain != "" { - endpoint = client.Domain - } - - if endpoint == "" { - endpoint = endpoints.GetEndpointFromMap(regionId, request.GetProduct()) - } - - if endpoint == "" && client.EndpointType != "" && - (request.GetProduct() != "Sts" || len(request.GetQueryParams()) == 0) { - if client.EndpointMap != nil && client.Network == "" || client.Network == "public" { - endpoint = client.EndpointMap[regionId] - } - - if endpoint == "" { - endpoint, err = client.GetEndpointRules(regionId, request.GetProduct()) - if err != nil { - return - } - } - } - - if endpoint == "" { - resolveParam := &endpoints.ResolveParam{ - Domain: request.GetDomain(), - Product: request.GetProduct(), - RegionId: regionId, - LocationProduct: request.GetLocationServiceCode(), - LocationEndpointType: request.GetLocationEndpointType(), - CommonApi: client.ProcessCommonRequest, - } - endpoint, err = endpoints.Resolve(resolveParam) - if err != nil { - return - } - } - - request.SetDomain(endpoint) - if request.GetScheme() == "" { - request.SetScheme(client.config.Scheme) - } - // init request params - err = requests.InitParams(request) - if err != nil { - return - } - - credentialsProvider := client.credentialsProvider - httpRequest, err = buildHttpRequest(request, regionId, credentialsProvider) - if err == nil { - userAgent := DefaultUserAgent + getSendUserAgent(client.config.UserAgent, client.userAgent, request.GetUserAgent()) - httpRequest.Header.Set("User-Agent", userAgent) - } - - return -} - -func getSendUserAgent(configUserAgent string, clientUserAgent, requestUserAgent map[string]string) string { - realUserAgent := "" - for key1, value1 := range clientUserAgent { - for key2 := range requestUserAgent { - if key1 == key2 { - key1 = "" - } - } - if key1 != "" { - realUserAgent += fmt.Sprintf(" %s/%s", key1, value1) - - } - } - for key, value := range requestUserAgent { - realUserAgent += fmt.Sprintf(" %s/%s", key, value) - } - if configUserAgent != "" { - return realUserAgent + fmt.Sprintf(" Extra/%s", configUserAgent) - } - return realUserAgent -} - -func (client *Client) AppendUserAgent(key, value string) { - newkey := true - - if client.userAgent == nil { - client.userAgent = make(map[string]string) - } - if strings.ToLower(key) != "core" && strings.ToLower(key) != "go" { - for tag := range client.userAgent { - if tag == key { - client.userAgent[tag] = value - newkey = false - } - } - if newkey { - client.userAgent[key] = value - } - } -} - -func (client *Client) BuildRequestWithSigner(request requests.AcsRequest, signer auth.Signer) (err error) { - _, err = client.buildRequestWithSigner(request) - return -} - -func (client *Client) getTimeout(request requests.AcsRequest) (time.Duration, time.Duration) { - readTimeout := defaultReadTimeout - connectTimeout := defaultConnectTimeout - - reqReadTimeout := request.GetReadTimeout() - reqConnectTimeout := request.GetConnectTimeout() - if reqReadTimeout != 0*time.Millisecond { - readTimeout = reqReadTimeout - } else if client.readTimeout != 0*time.Millisecond { - readTimeout = client.readTimeout - } else if client.httpClient.Timeout != 0 { - readTimeout = client.httpClient.Timeout - } else if timeout, ok := getAPIMaxTimeout(request.GetProduct(), request.GetActionName()); ok { - readTimeout = timeout - } - - if reqConnectTimeout != 0*time.Millisecond { - connectTimeout = reqConnectTimeout - } else if client.connectTimeout != 0*time.Millisecond { - connectTimeout = client.connectTimeout - } - return readTimeout, connectTimeout -} - -func Timeout(connectTimeout time.Duration) func(cxt context.Context, net, addr string) (c net.Conn, err error) { - return func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } -} - -func (client *Client) setTimeout(request requests.AcsRequest) { - readTimeout, connectTimeout := client.getTimeout(request) - client.httpClient.Timeout = readTimeout - if trans, ok := client.httpClient.Transport.(*http.Transport); ok && trans != nil { - trans.DialContext = Timeout(connectTimeout) - client.httpClient.Transport = trans - } else if client.httpClient.Transport == nil { - client.httpClient.Transport = &http.Transport{ - DialContext: Timeout(connectTimeout), - } - } -} - -func (client *Client) getHTTPSInsecure(request requests.AcsRequest) (insecure bool) { - if request.GetHTTPSInsecure() != nil { - insecure = *request.GetHTTPSInsecure() - } else { - insecure = client.GetHTTPSInsecure() - } - return insecure -} - -// Deprecated: don't use it -func (client *Client) DoActionWithSigner(request requests.AcsRequest, response responses.AcsResponse, signer auth.Signer) (err error) { - if client.Network != "" { - match, _ := regexp.MatchString("^[a-zA-Z0-9_-]+$", client.Network) - if !match { - return fmt.Errorf("netWork contains invalid characters") - } - } - fieldMap := make(map[string]string) - initLogMsg(fieldMap) - defer func() { - client.printLog(fieldMap, err) - }() - httpRequest, err := client.buildRequestWithSigner(request) - if err != nil { - return - } - - client.setTimeout(request) - proxy, err := client.getHttpProxy(httpRequest.URL.Scheme) - if err != nil { - return err - } - - noProxy := client.getNoProxy() - - var flag bool - for _, value := range noProxy { - if strings.HasPrefix(value, "*") { - value = fmt.Sprintf(".%s", value) - } - noProxyReg, err := regexp.Compile(value) - if err != nil { - return err - } - if noProxyReg.MatchString(httpRequest.Host) { - flag = true - break - } - } - - // Set whether to ignore certificate validation. - // Default InsecureSkipVerify is false. - if trans, ok := client.httpClient.Transport.(*http.Transport); ok && trans != nil { - if trans.TLSClientConfig != nil { - trans.TLSClientConfig.InsecureSkipVerify = client.getHTTPSInsecure(request) - } else { - trans.TLSClientConfig = &tls.Config{ - InsecureSkipVerify: client.getHTTPSInsecure(request), - } - } - if proxy != nil && !flag { - trans.Proxy = http.ProxyURL(proxy) - } - client.httpClient.Transport = trans - } - - // Set tracer - var span opentracing.Span - if ok := opentracing.IsGlobalTracerRegistered(); ok && !client.isCloseTrace { - tracer := opentracing.GlobalTracer() - var rootCtx opentracing.SpanContext - var rootSpan opentracing.Span - - if rootSpan = client.rootSpan; rootSpan != nil { - rootCtx = rootSpan.Context() - } else if rootSpan = request.GetTracerSpan(); rootSpan != nil { - rootCtx = rootSpan.Context() - } - - span = tracer.StartSpan( - httpRequest.URL.RequestURI(), - opentracing.ChildOf(rootCtx), - opentracing.Tag{Key: string(ext.Component), Value: "aliyunApi"}, - opentracing.Tag{Key: "actionName", Value: request.GetActionName()}) - - defer span.Finish() - tracer.Inject( - span.Context(), - opentracing.HTTPHeaders, - opentracing.HTTPHeadersCarrier(httpRequest.Header)) - } - - var httpResponse *http.Response - for retryTimes := 0; retryTimes <= client.config.MaxRetryTime; retryTimes++ { - if retryTimes > 0 { - client.printLog(fieldMap, err) - initLogMsg(fieldMap) - } - putMsgToMap(fieldMap, httpRequest) - debug("> %s %s %s", httpRequest.Method, httpRequest.URL.RequestURI(), httpRequest.Proto) - debug("> Host: %s", httpRequest.Host) - for key, value := range httpRequest.Header { - debug("> %s: %v", key, strings.Join(value, "")) - } - debug(">") - debug(" Retry Times: %d.", retryTimes) - - startTime := time.Now() - fieldMap["{start_time}"] = startTime.Format("2006-01-02 15:04:05") - httpResponse, err = hookDo(client.httpClient.Do)(httpRequest) - fieldMap["{cost}"] = time.Since(startTime).String() - if err == nil { - fieldMap["{code}"] = strconv.Itoa(httpResponse.StatusCode) - fieldMap["{res_headers}"] = TransToString(httpResponse.Header) - debug("< %s %s", httpResponse.Proto, httpResponse.Status) - for key, value := range httpResponse.Header { - debug("< %s: %v", key, strings.Join(value, "")) - } - } - debug("<") - // receive error - if err != nil { - debug(" Error: %s.", err.Error()) - if span != nil { - ext.LogError(span, err) - } - if !client.config.AutoRetry { - return - } else if retryTimes >= client.config.MaxRetryTime { - // timeout but reached the max retry times, return - times := strconv.Itoa(retryTimes + 1) - timeoutErrorMsg := fmt.Sprintf(errors.TimeoutErrorMessage, times, times) - if strings.Contains(err.Error(), "Client.Timeout") { - timeoutErrorMsg += " Read timeout. Please set a valid ReadTimeout." - } else { - timeoutErrorMsg += " Connect timeout. Please set a valid ConnectTimeout." - } - err = errors.NewClientError(errors.TimeoutErrorCode, timeoutErrorMsg, err) - return - } - } - if isCertificateError(err) { - return - } - - // if status code >= 500 or timeout, will trigger retry - if client.config.AutoRetry && (err != nil || isServerError(httpResponse)) { - client.setTimeout(request) - // rewrite signatureNonce and signature - httpRequest, err = client.buildRequestWithSigner(request) - if err != nil { - return - } - continue - } - break - } - if span != nil { - ext.HTTPStatusCode.Set(span, uint16(httpResponse.StatusCode)) - } - - err = responses.Unmarshal(response, httpResponse, request.GetAcceptFormat()) - fieldMap["{res_body}"] = response.GetHttpContentString() - debug("%s", response.GetHttpContentString()) - // wrap server errors - if serverErr, ok := err.(*errors.ServerError); ok { - var wrapInfo = map[string]string{} - serverErr.RespHeaders = response.GetHttpHeaders() - wrapInfo["StringToSign"] = request.GetStringToSign() - err = errors.WrapServerError(serverErr, wrapInfo) - } - return -} - -func isCertificateError(err error) bool { - if err != nil && strings.Contains(err.Error(), "x509: certificate signed by unknown authority") { - return true - } - return false -} - -func putMsgToMap(fieldMap map[string]string, request *http.Request) { - fieldMap["{host}"] = request.Host - fieldMap["{method}"] = request.Method - fieldMap["{uri}"] = request.URL.RequestURI() - fieldMap["{pid}"] = strconv.Itoa(os.Getpid()) - fieldMap["{version}"] = strings.Split(request.Proto, "/")[1] - hostname, _ := os.Hostname() - fieldMap["{hostname}"] = hostname - fieldMap["{req_headers}"] = TransToString(request.Header) - fieldMap["{target}"] = request.URL.Path + request.URL.RawQuery -} - -func buildHttpRequest(request requests.AcsRequest, regionId string, credentialsProvider credentials.CredentialsProvider) (httpRequest *http.Request, err error) { - err = auth.Sign(request, nil, regionId, credentialsProvider) - if err != nil { - return - } - requestMethod := request.GetMethod() - requestUrl := request.BuildUrl() - body := request.GetBodyReader() - httpRequest, err = http.NewRequest(requestMethod, requestUrl, body) - if err != nil { - return - } - for key, value := range request.GetHeaders() { - httpRequest.Header[key] = []string{value} - } - // host is a special case - if host, containsHost := request.GetHeaders()["Host"]; containsHost { - httpRequest.Host = host - } - return -} - -func isServerError(httpResponse *http.Response) bool { - return httpResponse.StatusCode >= http.StatusInternalServerError -} - -/* - * only block when any one of the following occurs: - * 1. the asyncTaskQueue is full, increase the queue size to avoid this - * 2. Shutdown() in progressing, the client is being closed - */ -func (client *Client) AddAsyncTask(task func()) (err error) { - if client.asyncTaskQueue != nil { - if client.isOpenAsync { - client.asyncTaskQueue <- task - } - } else { - err = errors.NewClientError(errors.AsyncFunctionNotEnabledCode, errors.AsyncFunctionNotEnabledMessage, nil) - } - return -} - -func (client *Client) GetConfig() *Config { - return client.config -} - -// Deprecated: don't use it -func (client *Client) GetSigner() auth.Signer { - return client.signer -} - -// Deprecated: don't use it -func (client *Client) SetSigner(signer auth.Signer) { - client.signer = signer -} - -// Deprecated: don't use it -func NewClient() (client *Client, err error) { - client = &Client{} - err = client.Init() - return -} - -func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { - client = &Client{} - var pc provider.Provider - if len(providers) == 0 { - pc = provider.DefaultChain - } else { - pc = provider.NewProviderChain(providers) - } - err = client.InitWithProviderChain(regionId, pc) - return -} - -// Usage: -// ```go -// credentialsProvider := credentials.NewStaticAKCredentialsProvider(accessKeyId, accessKeySecret) -// sdk.NewClientWithOptions(regionId, config, credentialsProvider) -// ``` -// More credentials provider, see: github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials -// - StaticAKCredentialsProvider -// - StaticSTSCredentialsProvider -// - BearerTokenCredentialsProvider -// - RAMRoleARNCredentialsProvider -// - ECSRAMRoleCredentialsProvider -// - OIDCCredentialsProvider -func NewClientWithOptions(regionId string, config *Config, credential auth.Credential) (client *Client, err error) { - client = &Client{} - err = client.InitWithOptions(regionId, config, credential) - return -} - -// Deprecated: use NewClientWithOptions(regionId, config, credentialsProvider) instead of -func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { - client = &Client{} - err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) - return -} - -// Deprecated: use NewClientWithOptions(regionId, config, credentialsProvider) instead of -func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { - client = &Client{} - err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) - return -} - -// Deprecated: use NewClientWithOptions(regionId, config, credentialsProvider) instead of -func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) - return -} - -// Deprecated: use NewClientWithOptions(regionId, config, credentialsProvider) instead of -func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) - return -} - -// Deprecated: use NewClientWithOptions(regionId, config, credentialsProvider) instead of -func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithEcsRamRole(regionId, roleName) - return -} - -// Deprecated: the RsaKeyPair is deprecated -func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { - client = &Client{} - err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) - return -} - -// Deprecated: use NewClientWithOptions(regionId, config, credentialsProvider) instead of -func NewClientWithBearerToken(regionId, bearerToken string) (client *Client, err error) { - client = &Client{} - err = client.InitWithBearerToken(regionId, bearerToken) - return -} - -func (client *Client) ProcessCommonRequest(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - request.TransToAcsRequest() - response = responses.NewCommonResponse() - err = client.DoAction(request, response) - return -} - -func (client *Client) ProcessCommonRequestWithSigner(request *requests.CommonRequest, signerInterface interface{}) (response *responses.CommonResponse, err error) { - if signer, isSigner := signerInterface.(auth.Signer); isSigner { - request.TransToAcsRequest() - response = responses.NewCommonResponse() - err = client.DoActionWithSigner(request, response, signer) - return - } - panic("should not be here") -} - -func (client *Client) Shutdown() { - if client.asyncTaskQueue != nil { - close(client.asyncTaskQueue) - } - - client.isOpenAsync = false -} - -// Deprecated: Use NewClientWithRamRoleArn in this package instead. -func NewClientWithStsRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { - return NewClientWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) -} - -// Deprecated: Use NewClientWithEcsRamRole in this package instead. -func NewClientWithStsRoleNameOnEcs(regionId string, roleName string) (client *Client, err error) { - return NewClientWithEcsRamRole(regionId, roleName) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go deleted file mode 100644 index e2555fb1af..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package sdk - -import ( - "net/http" - "time" -) - -type Config struct { - AutoRetry bool - MaxRetryTime int - UserAgent string - Debug bool - HttpTransport *http.Transport - Transport http.RoundTripper - EnableAsync bool - MaxTaskQueueSize int - GoRoutinePoolSize int - Scheme string - Timeout time.Duration -} - -func NewConfig() (config *Config) { - // with default vaule - config = &Config{ - AutoRetry: false, - MaxRetryTime: 3, - Debug: false, - EnableAsync: false, - MaxTaskQueueSize: 1000, - GoRoutinePoolSize: 5, - Scheme: "HTTP", - } - return -} - -func (c *Config) WithAutoRetry(isAutoRetry bool) *Config { - c.AutoRetry = isAutoRetry - return c -} - -func (c *Config) WithMaxRetryTime(maxRetryTime int) *Config { - c.MaxRetryTime = maxRetryTime - return c -} - -func (c *Config) WithUserAgent(userAgent string) *Config { - c.UserAgent = userAgent - return c -} - -func (c *Config) WithDebug(isDebug bool) *Config { - c.Debug = isDebug - return c -} - -func (c *Config) WithTimeout(timeout time.Duration) *Config { - c.Timeout = timeout - return c -} - -func (c *Config) WithHttpTransport(httpTransport *http.Transport) *Config { - c.HttpTransport = httpTransport - return c -} - -func (c *Config) WithEnableAsync(isEnableAsync bool) *Config { - c.EnableAsync = isEnableAsync - return c -} - -func (c *Config) WithMaxTaskQueueSize(maxTaskQueueSize int) *Config { - c.MaxTaskQueueSize = maxTaskQueueSize - return c -} - -func (c *Config) WithGoRoutinePoolSize(goRoutinePoolSize int) *Config { - c.GoRoutinePoolSize = goRoutinePoolSize - return c -} - -func (c *Config) WithScheme(scheme string) *Config { - c.Scheme = scheme - return c -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go deleted file mode 100644 index ddda77e8bf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go +++ /dev/null @@ -1,4106 +0,0 @@ -package endpoints - -import ( - "encoding/json" - "fmt" - "sync" -) - -const endpointsJson = `{ - "products": [ - { - "code": "emr", - "document_id": "28140", - "location_service_code": "emr", - "regional_endpoints": [ - { - "region": "cn-qingdao", - "endpoint": "emr.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "emr.eu-west-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "emr.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "emr.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "emr.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "emr.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "emr.ap-south-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "emr.us-east-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "emr.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "emr.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "emr.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "emr.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "emr.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "emr.aliyuncs.com" - } - ], - "global_endpoint": "emr.aliyuncs.com", - "regional_endpoint_pattern": "emr.[RegionId].aliyuncs.com" - }, - { - "code": "petadata", - "document_id": "", - "location_service_code": "petadata", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "petadata.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "petadata.ap-southeast-2.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "petadata.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "petadata.ap-southeast-5.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "petadata.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "petadata.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "petadata.aliyuncs.com" - } - ], - "global_endpoint": "petadata.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "dbs", - "document_id": "", - "location_service_code": "dbs", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dbs-api.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dbs-api.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alidnsgtm", - "document_id": "", - "location_service_code": "alidnsgtm", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "alidns.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "alidns.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "elasticsearch", - "document_id": "", - "location_service_code": "elasticsearch", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "elasticsearch.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "elasticsearch.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "elasticsearch.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "elasticsearch.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "elasticsearch.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "elasticsearch.ap-southeast-3.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "elasticsearch.us-west-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "elasticsearch.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "elasticsearch.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "elasticsearch.eu-central-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "elasticsearch.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "elasticsearch.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "elasticsearch.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "elasticsearch.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "elasticsearch.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "baas", - "document_id": "", - "location_service_code": "baas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "baas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "baas.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "baas.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "baas.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "baas.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "baas.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cr", - "document_id": "60716", - "location_service_code": "cr", - "regional_endpoints": null, - "global_endpoint": "cr.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudap", - "document_id": "", - "location_service_code": "cloudap", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudwf.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "imagesearch", - "document_id": "", - "location_service_code": "imagesearch", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "imagesearch.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "imagesearch.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "imagesearch.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "imagesearch.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "pts", - "document_id": "", - "location_service_code": "pts", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "pts.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ehs", - "document_id": "", - "location_service_code": "ehs", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "ehpc.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ehpc.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ehpc.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ehpc.cn-qingdao.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ehpc.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ehpc.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "ehpc.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ehpc.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ehpc.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ehpc.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ehpc.ap-southeast-2.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "polardb", - "document_id": "58764", - "location_service_code": "polardb", - "regional_endpoints": [ - { - "region": "ap-south-1", - "endpoint": "polardb.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "polardb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "polardb.ap-southeast-5.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "polardb.aliyuncs.com" - }, - { - "code": "r-kvstore", - "document_id": "60831", - "location_service_code": "redisa", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "r-kvstore.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "r-kvstore.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "r-kvstore.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "r-kvstore.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "r-kvstore.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "r-kvstore.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "r-kvstore.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "r-kvstore.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "r-kvstore.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "r-kvstore.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "r-kvstore.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "r-kvstore.ap-southeast-5.aliyuncs.com" - } - ], - "global_endpoint": "r-kvstore.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "xianzhi", - "document_id": "", - "location_service_code": "xianzhi", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "xianzhi.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "pcdn", - "document_id": "", - "location_service_code": "pcdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "pcdn.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cdn", - "document_id": "27148", - "location_service_code": "cdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cdn.aliyuncs.com" - } - ], - "global_endpoint": "cdn.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudauth", - "document_id": "60687", - "location_service_code": "cloudauth", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudauth.aliyuncs.com" - } - ], - "global_endpoint": "cloudauth.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "nas", - "document_id": "62598", - "location_service_code": "nas", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "nas.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "nas.ap-south-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "nas.eu-central-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "nas.us-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "nas.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "nas.cn-qingdao.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "nas.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "nas.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "nas.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "nas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "nas.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "nas.ap-northeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "nas.us-east-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "nas.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "nas.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "nas.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "nas.ap-southeast-3.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alidns", - "document_id": "29739", - "location_service_code": "alidns", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "alidns.aliyuncs.com" - } - ], - "global_endpoint": "alidns.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "dts", - "document_id": "", - "location_service_code": "dts", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dts.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "emas", - "document_id": "", - "location_service_code": "emas", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "mhub.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "mhub.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dysmsapi", - "document_id": "", - "location_service_code": "dysmsapi", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-chengdu", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dysmsapi.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudwf", - "document_id": "58111", - "location_service_code": "cloudwf", - "regional_endpoints": null, - "global_endpoint": "cloudwf.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "fc", - "document_id": "", - "location_service_code": "fc", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "cn-beijing.fc.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ap-southeast-2.fc.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "cn-huhehaote.fc.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "cn-shanghai.fc.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "cn-hangzhou.fc.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "cn-shenzhen.fc.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "saf", - "document_id": "", - "location_service_code": "saf", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "saf.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "saf.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "saf.cn-shenzhen.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "rds", - "document_id": "26223", - "location_service_code": "rds", - "regional_endpoints": [ - { - "region": "ap-northeast-1", - "endpoint": "rds.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "rds.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "rds.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "rds.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "rds.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "rds.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "rds.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "rds.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "rds.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "rds.me-east-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "rds.aliyuncs.com" - } - ], - "global_endpoint": "rds.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "vpc", - "document_id": "34962", - "location_service_code": "vpc", - "regional_endpoints": [ - { - "region": "ap-south-1", - "endpoint": "vpc.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "vpc.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "vpc.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "vpc.cn-huhehaote.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "vpc.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "vpc.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "vpc.ap-southeast-3.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "vpc.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "vpc.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "vpc.eu-west-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "vpc.aliyuncs.com" - } - ], - "global_endpoint": "vpc.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "gpdb", - "document_id": "", - "location_service_code": "gpdb", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "gpdb.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "gpdb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "gpdb.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "gpdb.ap-southeast-2.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "gpdb.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "gpdb.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "gpdb.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "gpdb.eu-west-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "gpdb.ap-south-1.aliyuncs.com" - } - ], - "global_endpoint": "gpdb.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "yunmarket", - "document_id": "", - "location_service_code": "yunmarket", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "market.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "pvtz", - "document_id": "", - "location_service_code": "pvtz", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "pvtz.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "pvtz.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "oss", - "document_id": "", - "location_service_code": "oss", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "oss-cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "oss-cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "oss-cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "oss-cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "oss-cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "oss-ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "oss-us-west-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "oss-cn-qingdao.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "foas", - "document_id": "", - "location_service_code": "foas", - "regional_endpoints": [ - { - "region": "cn-qingdao", - "endpoint": "foas.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "foas.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "foas.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "foas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "foas.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "foas.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "foas.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddos", - "document_id": "", - "location_service_code": "ddos", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ddospro.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ddospro.cn-hongkong.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cbn", - "document_id": "", - "location_service_code": "cbn", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "cbn.aliyuncs.com" - } - ], - "global_endpoint": "cbn.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "nlp", - "document_id": "", - "location_service_code": "nlp", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "nlp.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hsm", - "document_id": "", - "location_service_code": "hsm", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "hsm.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ons", - "document_id": "44416", - "location_service_code": "ons", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "ons.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "ons.cn-huhehaote.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ons.us-east-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ons.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ons.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ons.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ons.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ons.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ons.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "ons.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ons.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ons.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ons.cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ons.eu-central-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ons.eu-west-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ons.us-west-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ons.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ons.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "kms", - "document_id": "", - "location_service_code": "kms", - "regional_endpoints": [ - { - "region": "cn-hongkong", - "endpoint": "kms.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "kms.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "kms.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "kms.cn-qingdao.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "kms.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "kms.us-east-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "kms.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "kms.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "kms.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "kms.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "kms.cn-huhehaote.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "kms.me-east-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "kms.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "kms.ap-southeast-3.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "kms.us-west-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "kms.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "kms.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "kms.eu-central-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "kms.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cps", - "document_id": "", - "location_service_code": "cps", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudpush.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ensdisk", - "document_id": "", - "location_service_code": "ensdisk", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ens.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudapi", - "document_id": "43590", - "location_service_code": "apigateway", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "apigateway.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "apigateway.ap-south-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "apigateway.us-east-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "apigateway.me-east-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "apigateway.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "apigateway.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "apigateway.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "apigateway.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "apigateway.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "apigateway.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "apigateway.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "apigateway.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "apigateway.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "apigateway.us-west-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "apigateway.cn-shenzhen.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "apigateway.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "apigateway.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "apigateway.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "apigateway.cn-hongkong.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "apigateway.[RegionId].aliyuncs.com" - }, - { - "code": "eci", - "document_id": "", - "location_service_code": "eci", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "eci.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "onsvip", - "document_id": "", - "location_service_code": "onsvip", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "ons.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ons.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ons.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ons.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ons.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ons.cn-qingdao.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "linkwan", - "document_id": "", - "location_service_code": "linkwan", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "linkwan.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "linkwan.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosdip", - "document_id": "", - "location_service_code": "ddosdip", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "ddosdip.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "batchcompute", - "document_id": "44717", - "location_service_code": "batchcompute", - "regional_endpoints": [ - { - "region": "us-west-1", - "endpoint": "batchcompute.us-west-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "batchcompute.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "batchcompute.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "batchcompute.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "batchcompute.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "batchcompute.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "batchcompute.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "batchcompute.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "batchcompute.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "batchcompute.[RegionId].aliyuncs.com" - }, - { - "code": "aegis", - "document_id": "28449", - "location_service_code": "vipaegis", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "aegis.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "aegis.ap-southeast-3.aliyuncs.com" - } - ], - "global_endpoint": "aegis.cn-hangzhou.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "arms", - "document_id": "42924", - "location_service_code": "arms", - "regional_endpoints": [ - { - "region": "cn-hongkong", - "endpoint": "arms.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "arms.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "arms.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "arms.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "arms.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "arms.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "arms.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "arms.[RegionId].aliyuncs.com" - }, - { - "code": "live", - "document_id": "48207", - "location_service_code": "live", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "live.aliyuncs.com" - } - ], - "global_endpoint": "live.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "alimt", - "document_id": "", - "location_service_code": "alimt", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "mt.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "actiontrail", - "document_id": "", - "location_service_code": "actiontrail", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "actiontrail.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "actiontrail.cn-qingdao.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "actiontrail.us-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "actiontrail.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "actiontrail.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "actiontrail.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "actiontrail.ap-south-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "actiontrail.me-east-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "actiontrail.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "actiontrail.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "actiontrail.cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "actiontrail.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "actiontrail.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "actiontrail.ap-northeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "actiontrail.us-west-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "actiontrail.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "actiontrail.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "actiontrail.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "actiontrail.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "smartag", - "document_id": "", - "location_service_code": "smartag", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "smartag.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "smartag.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "smartag.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "smartag.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "smartag.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "smartag.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "smartag.ap-southeast-2.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "vod", - "document_id": "60574", - "location_service_code": "vod", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "vod.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "vod.eu-central-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "domain", - "document_id": "42875", - "location_service_code": "domain", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "domain-intl.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "domain.aliyuncs.com" - } - ], - "global_endpoint": "domain.aliyuncs.com", - "regional_endpoint_pattern": "domain.aliyuncs.com" - }, - { - "code": "ros", - "document_id": "28899", - "location_service_code": "ros", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ros.aliyuncs.com" - } - ], - "global_endpoint": "ros.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudphoto", - "document_id": "59902", - "location_service_code": "cloudphoto", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "cloudphoto.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "cloudphoto.[RegionId].aliyuncs.com" - }, - { - "code": "rtc", - "document_id": "", - "location_service_code": "rtc", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "rtc.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "odpsmayi", - "document_id": "", - "location_service_code": "odpsmayi", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "bsb.cloud.alipay.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "bsb.cloud.alipay.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ims", - "document_id": "", - "location_service_code": "ims", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ims.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "csb", - "document_id": "64837", - "location_service_code": "csb", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "csb.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "csb.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "csb.[RegionId].aliyuncs.com" - }, - { - "code": "cds", - "document_id": "62887", - "location_service_code": "codepipeline", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "cds.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "cds.cn-beijing.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosbgp", - "document_id": "", - "location_service_code": "ddosbgp", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ddosbgp.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ddosbgp.us-west-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dybaseapi", - "document_id": "", - "location_service_code": "dybaseapi", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-chengdu", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ecs", - "document_id": "25484", - "location_service_code": "ecs", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "ecs.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ecs.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ecs.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ecs.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ecs.ap-southeast-3.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ecs.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ecs.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ecs.eu-west-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "ecs.me-east-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "ecs.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "ecs-cn-hangzhou.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "ccc", - "document_id": "63027", - "location_service_code": "ccc", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ccc.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ccc.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "ccc.[RegionId].aliyuncs.com" - }, - { - "code": "cs", - "document_id": "26043", - "location_service_code": "cs", - "regional_endpoints": null, - "global_endpoint": "cs.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "drdspre", - "document_id": "", - "location_service_code": "drdspre", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "drds.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "drds.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "drds.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "drds.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "drds.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dcdn", - "document_id": "", - "location_service_code": "dcdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "dcdn.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dcdn.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "linkedmall", - "document_id": "", - "location_service_code": "linkedmall", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "linkedmall.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "linkedmall.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "trademark", - "document_id": "", - "location_service_code": "trademark", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "trademark.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "openanalytics", - "document_id": "", - "location_service_code": "openanalytics", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "openanalytics.cn-shenzhen.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "openanalytics.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "openanalytics.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "openanalytics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "openanalytics.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "openanalytics.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "openanalytics.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "openanalytics.cn-zhangjiakou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "sts", - "document_id": "28756", - "location_service_code": "sts", - "regional_endpoints": null, - "global_endpoint": "sts.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "waf", - "document_id": "62847", - "location_service_code": "waf", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "wafopenapi.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ots", - "document_id": "", - "location_service_code": "ots", - "regional_endpoints": [ - { - "region": "me-east-1", - "endpoint": "ots.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "ots.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ots.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "ots.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ots.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ots.ap-southeast-2.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ots.us-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ots.us-east-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ots.ap-south-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ots.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ots.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ots.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ots.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ots.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ots.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ots.ap-southeast-3.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudfirewall", - "document_id": "", - "location_service_code": "cloudfirewall", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudfw.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dm", - "document_id": "29434", - "location_service_code": "dm", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "dm.ap-southeast-2.aliyuncs.com" - } - ], - "global_endpoint": "dm.aliyuncs.com", - "regional_endpoint_pattern": "dm.[RegionId].aliyuncs.com" - }, - { - "code": "oas", - "document_id": "", - "location_service_code": "oas", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "cn-shenzhen.oas.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "cn-beijing.oas.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "cn-hangzhou.oas.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddoscoo", - "document_id": "", - "location_service_code": "ddoscoo", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ddoscoo.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "jaq", - "document_id": "35037", - "location_service_code": "jaq", - "regional_endpoints": null, - "global_endpoint": "jaq.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "iovcc", - "document_id": "", - "location_service_code": "iovcc", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "iovcc.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "sas-api", - "document_id": "28498", - "location_service_code": "sas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "sas.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "chatbot", - "document_id": "60760", - "location_service_code": "beebot", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "chatbot.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "chatbot.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "chatbot.[RegionId].aliyuncs.com" - }, - { - "code": "airec", - "document_id": "", - "location_service_code": "airec", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "airec.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "airec.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "airec.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dmsenterprise", - "document_id": "", - "location_service_code": "dmsenterprise", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dms-enterprise.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ivision", - "document_id": "", - "location_service_code": "ivision", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ivision.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ivision.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "odpsplusmayi", - "document_id": "", - "location_service_code": "odpsplusmayi", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "bsb.cloud.alipay.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "bsb.cloud.alipay.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "bsb.cloud.alipay.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "gameshield", - "document_id": "", - "location_service_code": "gameshield", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "gameshield.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "gameshield.cn-zhangjiakou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "scdn", - "document_id": "", - "location_service_code": "scdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "scdn.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hitsdb", - "document_id": "", - "location_service_code": "hitsdb", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "hitsdb.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hdm", - "document_id": "", - "location_service_code": "hdm", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "hdm-api.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "slb", - "document_id": "27565", - "location_service_code": "slb", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "slb.eu-west-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "slb.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "slb.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "slb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "slb.ap-south-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "slb.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "slb.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "slb.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "slb.me-east-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "slb.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-wulanchabu", - "endpoint": "slb.cn-wulanchabu.aliyuncs.com" - }, - { - "region": "cn-heyuan", - "endpoint": "slb.cn-heyuan.aliyuncs.com" - }, - { - "region": "cn-guangzhou", - "endpoint": "slb.cn-guangzhou.aliyuncs.com" - }, - { - "region": "cn-chengdu", - "endpoint": "slb.cn-chengdu.aliyuncs.com" - }, - { - "region": "ap-southeast-6", - "endpoint": "slb.ap-southeast-6.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "slb.eu-west-1.aliyuncs.com" - } - ], - "global_endpoint": "slb.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "green", - "document_id": "28427", - "location_service_code": "green", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "green.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "green.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "green.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "green.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "green.us-west-1.aliyuncs.com" - } - ], - "global_endpoint": "green.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cccvn", - "document_id": "", - "location_service_code": "cccvn", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "voicenavigator.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosrewards", - "document_id": "", - "location_service_code": "ddosrewards", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ddosright.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "iot", - "document_id": "30557", - "location_service_code": "iot", - "regional_endpoints": [ - { - "region": "us-east-1", - "endpoint": "iot.us-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "iot.ap-northeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "iot.us-west-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "iot.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "iot.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "iot.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "iot.[RegionId].aliyuncs.com" - }, - { - "code": "bssopenapi", - "document_id": "", - "location_service_code": "bssopenapi", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "sca", - "document_id": "", - "location_service_code": "sca", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "qualitycheck.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "luban", - "document_id": "", - "location_service_code": "luban", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "luban.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "luban.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "drdspost", - "document_id": "", - "location_service_code": "drdspost", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "drds.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "drds.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "drds", - "document_id": "51111", - "location_service_code": "drds", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "drds.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "drds.aliyuncs.com", - "regional_endpoint_pattern": "drds.aliyuncs.com" - }, - { - "code": "httpdns", - "document_id": "52679", - "location_service_code": "httpdns", - "regional_endpoints": null, - "global_endpoint": "httpdns-api.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cas", - "document_id": "", - "location_service_code": "cas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cas.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "cas.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "cas.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "cas.eu-central-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "cas.me-east-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hpc", - "document_id": "35201", - "location_service_code": "hpc", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "hpc.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "hpc.aliyuncs.com" - } - ], - "global_endpoint": "hpc.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosbasic", - "document_id": "", - "location_service_code": "ddosbasic", - "regional_endpoints": [ - { - "region": "ap-south-1", - "endpoint": "antiddos-openapi.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "antiddos-openapi.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "antiddos-openapi.ap-southeast-3.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "antiddos-openapi.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "antiddos-openapi.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "antiddos-openapi.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "antiddos-openapi.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "antiddos-openapi.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "antiddos-openapi.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "antiddos-openapi.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "antiddos.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "clouddesktop", - "document_id": "", - "location_service_code": "clouddesktop", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "clouddesktop.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "clouddesktop.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "clouddesktop.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "clouddesktop.cn-shenzhen.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "uis", - "document_id": "", - "location_service_code": "uis", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "uis.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "imm", - "document_id": "", - "location_service_code": "imm", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "imm.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "imm.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "imm.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "imm.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "imm.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "imm.cn-shenzhen.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ens", - "document_id": "", - "location_service_code": "ens", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ens.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ram", - "document_id": "28672", - "location_service_code": "ram", - "regional_endpoints": null, - "global_endpoint": "ram.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "hcs_mgw", - "document_id": "", - "location_service_code": "hcs_mgw", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "mgw.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "mgw.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "mgw.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "itaas", - "document_id": "55759", - "location_service_code": "itaas", - "regional_endpoints": null, - "global_endpoint": "itaas.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "qualitycheck", - "document_id": "50807", - "location_service_code": "qualitycheck", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "qualitycheck.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alikafka", - "document_id": "", - "location_service_code": "alikafka", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "alikafka.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "alikafka.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "alikafka.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "alikafka.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "alikafka.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "alikafka.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "alikafka.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "alikafka.cn-qingdao.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "faas", - "document_id": "", - "location_service_code": "faas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "faas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "faas.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "faas.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "faas.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alidfs", - "document_id": "", - "location_service_code": "alidfs", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "dfs.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dfs.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cms", - "document_id": "28615", - "location_service_code": "cms", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "metrics.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "metrics.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "metrics.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "metrics.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "metrics.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "metrics.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "domain-intl", - "document_id": "", - "location_service_code": "domain-intl", - "regional_endpoints": null, - "global_endpoint": "domain-intl.aliyuncs.com", - "regional_endpoint_pattern": "domain-intl.aliyuncs.com" - }, - { - "code": "kvstore", - "document_id": "", - "location_service_code": "kvstore", - "regional_endpoints": [ - { - "region": "ap-northeast-1", - "endpoint": "r-kvstore.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ccs", - "document_id": "", - "location_service_code": "ccs", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ccs.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ess", - "document_id": "25925", - "location_service_code": "ess", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "ess.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ess.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ess.eu-west-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "ess.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ess.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ess.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "ess.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ess.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ess.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ess.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ess.aliyuncs.com" - } - ], - "global_endpoint": "ess.aliyuncs.com", - "regional_endpoint_pattern": "ess.[RegionId].aliyuncs.com" - }, - { - "code": "dds", - "document_id": "61715", - "location_service_code": "dds", - "regional_endpoints": [ - { - "region": "me-east-1", - "endpoint": "mongodb.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "mongodb.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-7", - "endpoint": "mongodb.ap-southeast-7.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "mongodb.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "mongodb.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "mongodb.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "mongodb.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "mongodb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "mongodb.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "mongodb.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "mongodb.ap-south-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "mongodb.aliyuncs.com" - } - ], - "global_endpoint": "mongodb.aliyuncs.com", - "regional_endpoint_pattern": "mongodb.[RegionId].aliyuncs.com" - }, - { - "code": "mts", - "document_id": "29212", - "location_service_code": "mts", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "mts.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "mts.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "mts.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "mts.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "mts.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "mts.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "mts.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "mts.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "mts.us-west-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "mts.eu-central-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "mts.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "mts.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "push", - "document_id": "30074", - "location_service_code": "push", - "regional_endpoints": null, - "global_endpoint": "cloudpush.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "hcs_sgw", - "document_id": "", - "location_service_code": "hcs_sgw", - "regional_endpoints": [ - { - "region": "eu-central-1", - "endpoint": "sgw.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "sgw.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "sgw.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hbase", - "document_id": "", - "location_service_code": "hbase", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "hbase.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "hbase.ap-south-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "hbase.me-east-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "hbase.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "hbase.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "hbase.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "hbase.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "hbase.aliyuncs.com" - } - ], - "global_endpoint": "hbase.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "bastionhost", - "document_id": "", - "location_service_code": "bastionhost", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "yundun-bastionhost.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "vs", - "document_id": "", - "location_service_code": "vs", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "vs.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "vs.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - } - ] -}` - -var initOnce sync.Once -var data interface{} - -func getEndpointConfigData() interface{} { - initOnce.Do(func() { - err := json.Unmarshal([]byte(endpointsJson), &data) - if err != nil { - panic(fmt.Sprintf("init endpoint config data failed. %s", err)) - } - }) - return data -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go deleted file mode 100644 index dbcc03b3c3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go +++ /dev/null @@ -1,29 +0,0 @@ -package endpoints - -import ( - "fmt" - "strings" - - "github.com/jmespath/go-jmespath" -) - -type LocalGlobalResolver struct { -} - -func (resolver *LocalGlobalResolver) GetName() (name string) { - name = "local global resolver" - return -} - -func (resolver *LocalGlobalResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - // get the global endpoints configs - endpointExpression := fmt.Sprintf("products[?code=='%s'].global_endpoint", strings.ToLower(param.Product)) - endpointData, err := jmespath.Search(endpointExpression, getEndpointConfigData()) - if err == nil && endpointData != nil && len(endpointData.([]interface{})) > 0 { - endpoint = endpointData.([]interface{})[0].(string) - support = len(endpoint) > 0 - return - } - support = false - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go deleted file mode 100644 index 7965829f2e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go +++ /dev/null @@ -1,34 +0,0 @@ -package endpoints - -import ( - "fmt" - "strings" - - "github.com/jmespath/go-jmespath" -) - -type LocalRegionalResolver struct { -} - -func (resolver *LocalRegionalResolver) GetName() (name string) { - name = "local regional resolver" - return -} - -func (resolver *LocalRegionalResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - // get the regional endpoints configs - regionalExpression := fmt.Sprintf("products[?code=='%s'].regional_endpoints", strings.ToLower(param.Product)) - regionalData, err := jmespath.Search(regionalExpression, getEndpointConfigData()) - if err == nil && regionalData != nil && len(regionalData.([]interface{})) > 0 { - endpointExpression := fmt.Sprintf("[0][?region=='%s'].endpoint", strings.ToLower(param.RegionId)) - var endpointData interface{} - endpointData, err = jmespath.Search(endpointExpression, regionalData) - if err == nil && endpointData != nil && len(endpointData.([]interface{})) > 0 { - endpoint = endpointData.([]interface{})[0].(string) - support = len(endpoint) > 0 - return - } - } - support = false - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go deleted file mode 100644 index dbbf2051c2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go +++ /dev/null @@ -1,159 +0,0 @@ -package endpoints - -import ( - "encoding/json" - "sync" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" -) - -const ( - // EndpointCacheExpireTime ... - EndpointCacheExpireTime = 3600 //Seconds -) - -// Cache caches endpoint for specific product and region -type Cache struct { - sync.RWMutex - cache map[string]interface{} -} - -// Get ... -func (c *Cache) Get(k string) (v interface{}) { - c.RLock() - v = c.cache[k] - c.RUnlock() - return -} - -// Set ... -func (c *Cache) Set(k string, v interface{}) { - c.Lock() - c.cache[k] = v - c.Unlock() -} - -var lastClearTimePerProduct = &Cache{cache: make(map[string]interface{})} -var endpointCache = &Cache{cache: make(map[string]interface{})} - -// LocationResolver ... -type LocationResolver struct { -} - -func (resolver *LocationResolver) GetName() (name string) { - name = "location resolver" - return -} - -// TryResolve resolves endpoint giving product and region -func (resolver *LocationResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - if len(param.LocationProduct) <= 0 { - support = false - return - } - - //get from cache - cacheKey := param.Product + "#" + param.RegionId - var ok bool - endpoint, ok = endpointCache.Get(cacheKey).(string) - - if ok && len(endpoint) > 0 && !CheckCacheIsExpire(cacheKey) { - support = true - return - } - - //get from remote - getEndpointRequest := requests.NewCommonRequest() - - getEndpointRequest.Product = "Location" - getEndpointRequest.Version = "2015-06-12" - getEndpointRequest.ApiName = "DescribeEndpoints" - getEndpointRequest.Domain = "location-readonly.aliyuncs.com" - getEndpointRequest.Method = "GET" - getEndpointRequest.Scheme = requests.HTTPS - - getEndpointRequest.QueryParams["Id"] = param.RegionId - getEndpointRequest.QueryParams["ServiceCode"] = param.LocationProduct - if len(param.LocationEndpointType) > 0 { - getEndpointRequest.QueryParams["Type"] = param.LocationEndpointType - } else { - getEndpointRequest.QueryParams["Type"] = "openAPI" - } - - response, err := param.CommonApi(getEndpointRequest) - if err != nil { - support = false - return - } - - if !response.IsSuccess() { - support = false - return - } - - var getEndpointResponse GetEndpointResponse - err = json.Unmarshal([]byte(response.GetHttpContentString()), &getEndpointResponse) - if err != nil { - support = false - return - } - - if !getEndpointResponse.Success || getEndpointResponse.Endpoints == nil { - support = false - return - } - if len(getEndpointResponse.Endpoints.Endpoint) <= 0 { - support = false - return - } - if len(getEndpointResponse.Endpoints.Endpoint[0].Endpoint) > 0 { - endpoint = getEndpointResponse.Endpoints.Endpoint[0].Endpoint - endpointCache.Set(cacheKey, endpoint) - lastClearTimePerProduct.Set(cacheKey, time.Now().Unix()) - support = true - return - } - - support = false - return -} - -// CheckCacheIsExpire ... -func CheckCacheIsExpire(cacheKey string) bool { - lastClearTime, ok := lastClearTimePerProduct.Get(cacheKey).(int64) - if !ok { - return true - } - - if lastClearTime <= 0 { - lastClearTime = time.Now().Unix() - lastClearTimePerProduct.Set(cacheKey, lastClearTime) - } - - now := time.Now().Unix() - elapsedTime := now - lastClearTime - return elapsedTime > EndpointCacheExpireTime -} - -// GetEndpointResponse ... -type GetEndpointResponse struct { - Endpoints *EndpointsObj - RequestId string - Success bool -} - -// EndpointsObj ... -type EndpointsObj struct { - Endpoint []EndpointObj -} - -// EndpointObj ... -type EndpointObj struct { - // Protocols map[string]string - Type string - Namespace string - Id string - SerivceCode string - Endpoint string -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go deleted file mode 100644 index 2ac5617cbb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go +++ /dev/null @@ -1,35 +0,0 @@ -package endpoints - -import ( - "fmt" - "strings" - "sync" -) - -const keyFormatter = "%s::%s" - -type EndpointMapping struct { - sync.RWMutex - endpoint map[string]string -} - -var endpointMapping = EndpointMapping{endpoint: make(map[string]string)} - -// AddEndpointMapping use productId and regionId as key to store the endpoint into inner map -// when using the same productId and regionId as key, the endpoint will be covered. -func AddEndpointMapping(regionId, productId, endpoint string) (err error) { - key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) - endpointMapping.Lock() - endpointMapping.endpoint[key] = endpoint - endpointMapping.Unlock() - return nil -} - -// GetEndpointFromMap use Product and RegionId as key to find endpoint from inner map -func GetEndpointFromMap(regionId, productId string) string { - key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) - endpointMapping.RLock() - endpoint := endpointMapping.endpoint[key] - endpointMapping.RUnlock() - return endpoint -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go deleted file mode 100644 index eb4fabd856..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go +++ /dev/null @@ -1,82 +0,0 @@ -package endpoints - -import ( - "encoding/json" - "fmt" - "sync" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var debug utils.Debug - -func init() { - debug = utils.Init("sdk") -} - -const ( - ResolveEndpointUserGuideLink = "" -) - -var once sync.Once -var resolvers []Resolver - -type Resolver interface { - TryResolve(param *ResolveParam) (endpoint string, support bool, err error) - GetName() (name string) -} - -// Resolve resolve endpoint with params -// It will resolve with each supported resolver until anyone resolved -func Resolve(param *ResolveParam) (endpoint string, err error) { - supportedResolvers := getAllResolvers() - var lastErr error - for _, resolver := range supportedResolvers { - endpoint, supported, resolveErr := resolver.TryResolve(param) - if resolveErr != nil { - lastErr = resolveErr - } - - if supported { - debug("resolve endpoint with %s\n", param) - debug("\t%s by resolver(%s)\n", endpoint, resolver.GetName()) - return endpoint, nil - } - } - - // not support - errorMsg := fmt.Sprintf(errors.CanNotResolveEndpointErrorMessage, param, ResolveEndpointUserGuideLink) - err = errors.NewClientError(errors.CanNotResolveEndpointErrorCode, errorMsg, lastErr) - return -} - -func getAllResolvers() []Resolver { - once.Do(func() { - resolvers = []Resolver{ - &LocationResolver{}, - &LocalRegionalResolver{}, - &LocalGlobalResolver{}, - } - }) - return resolvers -} - -type ResolveParam struct { - Domain string - Product string - RegionId string - LocationProduct string - LocationEndpointType string - CommonApi func(request *requests.CommonRequest) (response *responses.CommonResponse, err error) `json:"-"` -} - -func (param *ResolveParam) String() string { - jsonBytes, err := json.Marshal(param) - if err != nil { - return fmt.Sprint("ResolveParam.String() process error:", err) - } - return string(jsonBytes) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go deleted file mode 100644 index 1e2d9c0040..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package errors - -import "fmt" - -const ( - DefaultClientErrorStatus = 400 - DefaultClientErrorCode = "SDK.ClientError" - - UnsupportedCredentialErrorCode = "SDK.UnsupportedCredential" - UnsupportedCredentialErrorMessage = "Specified credential (type = %s) is not supported, please check" - - CanNotResolveEndpointErrorCode = "SDK.CanNotResolveEndpoint" - CanNotResolveEndpointErrorMessage = "Can not resolve endpoint(param = %s), please check your accessKey with secret, and read the user guide\n %s" - - UnsupportedParamPositionErrorCode = "SDK.UnsupportedParamPosition" - UnsupportedParamPositionErrorMessage = "Specified param position (%s) is not supported, please upgrade sdk and retry" - - AsyncFunctionNotEnabledCode = "SDK.AsyncFunctionNotEnabled" - AsyncFunctionNotEnabledMessage = "Async function is not enabled in client, please invoke 'client.EnableAsync' function" - - UnknownRequestTypeErrorCode = "SDK.UnknownRequestType" - UnknownRequestTypeErrorMessage = "Unknown Request Type: %s" - - MissingParamErrorCode = "SDK.MissingParam" - InvalidParamErrorCode = "SDK.InvalidParam" - - JsonUnmarshalErrorCode = "SDK.JsonUnmarshalError" - JsonUnmarshalErrorMessage = "Failed to unmarshal response, but you can get the data via response.GetHttpStatusCode() and response.GetHttpContentString()" - - TimeoutErrorCode = "SDK.TimeoutError" - TimeoutErrorMessage = "The request timed out %s times(%s for retry), perhaps we should have the threshold raised a little?" -) - -type ClientError struct { - errorCode string - message string - originError error -} - -func NewClientError(errorCode, message string, originErr error) Error { - return &ClientError{ - errorCode: errorCode, - message: message, - originError: originErr, - } -} - -func (err *ClientError) Error() string { - clientErrMsg := fmt.Sprintf("[%s] %s", err.ErrorCode(), err.message) - if err.originError != nil { - return clientErrMsg + "\ncaused by:\n" + err.originError.Error() - } - return clientErrMsg -} - -func (err *ClientError) OriginError() error { - return err.originError -} - -func (*ClientError) HttpStatus() int { - return DefaultClientErrorStatus -} - -func (err *ClientError) ErrorCode() string { - if err.errorCode == "" { - return DefaultClientErrorCode - } else { - return err.errorCode - } -} - -func (err *ClientError) Message() string { - return err.message -} - -func (err *ClientError) String() string { - return err.Error() -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go deleted file mode 100644 index 49962f3b5e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package errors - -type Error interface { - error - HttpStatus() int - ErrorCode() string - Message() string - OriginError() error -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go deleted file mode 100644 index 8746a6b5a1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package errors - -import ( - "encoding/json" - "fmt" - - "github.com/jmespath/go-jmespath" -) - -var wrapperList = []ServerErrorWrapper{ - &SignatureDostNotMatchWrapper{}, -} - -type ServerError struct { - RespHeaders map[string][]string - httpStatus int - requestId string - hostId string - errorCode string - recommend string - message string - comment string - accessDeniedDetail map[string]interface{} -} - -type ServerErrorWrapper interface { - tryWrap(error *ServerError, wrapInfo map[string]string) bool -} - -func (err *ServerError) Error() string { - if err.accessDeniedDetail != nil { - return fmt.Sprintf("SDK.ServerError\nErrorCode: %s\nRecommend: %s\nRequestId: %s\nMessage: %s\nRespHeaders: %s\nAccessDeniedDetail: %s", - err.errorCode, err.comment+err.recommend, err.requestId, err.message, err.RespHeaders, err.accessDeniedDetail) - } - return fmt.Sprintf("SDK.ServerError\nErrorCode: %s\nRecommend: %s\nRequestId: %s\nMessage: %s\nRespHeaders: %s", - err.errorCode, err.comment+err.recommend, err.requestId, err.message, err.RespHeaders) -} - -func NewServerError(httpStatus int, responseContent, comment string) Error { - result := &ServerError{ - httpStatus: httpStatus, - message: responseContent, - comment: comment, - } - - var data interface{} - err := json.Unmarshal([]byte(responseContent), &data) - if err == nil { - requestId, _ := jmespath.Search("RequestId", data) - hostId, _ := jmespath.Search("HostId", data) - errorCode, _ := jmespath.Search("Code", data) - recommend, _ := jmespath.Search("Recommend", data) - message, _ := jmespath.Search("Message", data) - accessDeniedDetail, _ := jmespath.Search("AccessDeniedDetail", data) - - if requestId != nil { - result.requestId = requestId.(string) - } - if hostId != nil { - result.hostId = hostId.(string) - } - if errorCode != nil { - result.errorCode = errorCode.(string) - } - if recommend != nil { - result.recommend = recommend.(string) - } - if message != nil { - result.message = message.(string) - } - if accessDeniedDetail != nil { - result.accessDeniedDetail = accessDeniedDetail.(map[string]interface{}) - } - } - - return result -} - -func WrapServerError(originError *ServerError, wrapInfo map[string]string) *ServerError { - for _, wrapper := range wrapperList { - ok := wrapper.tryWrap(originError, wrapInfo) - if ok { - return originError - } - } - return originError -} - -func (err *ServerError) HttpStatus() int { - return err.httpStatus -} - -func (err *ServerError) ErrorCode() string { - return err.errorCode -} - -func (err *ServerError) Message() string { - return err.message -} - -func (err *ServerError) OriginError() error { - return nil -} - -func (err *ServerError) HostId() string { - return err.hostId -} - -func (err *ServerError) RequestId() string { - return err.requestId -} - -func (err *ServerError) Recommend() string { - return err.recommend -} - -func (err *ServerError) Comment() string { - return err.comment -} - -func (err *ServerError) AccessDeniedDetail() map[string]interface{} { - return err.accessDeniedDetail -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go deleted file mode 100644 index 4b09d7d71c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go +++ /dev/null @@ -1,45 +0,0 @@ -package errors - -import ( - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -const SignatureDostNotMatchErrorCode = "SignatureDoesNotMatch" -const IncompleteSignatureErrorCode = "IncompleteSignature" -const MessageContain = "server string to sign is:" - -var debug utils.Debug - -func init() { - debug = utils.Init("sdk") -} - -type SignatureDostNotMatchWrapper struct { -} - -func (*SignatureDostNotMatchWrapper) tryWrap(error *ServerError, wrapInfo map[string]string) (ok bool) { - clientStringToSign := wrapInfo["StringToSign"] - if (error.errorCode == SignatureDostNotMatchErrorCode || error.errorCode == IncompleteSignatureErrorCode) && clientStringToSign != "" { - message := error.message - if strings.Contains(message, MessageContain) { - str := strings.Split(message, MessageContain) - serverStringToSign := str[1] - - if clientStringToSign == serverStringToSign { - // user secret is error - error.recommend = "InvalidAccessKeySecret: Please check you AccessKeySecret" - } else { - debug("Client StringToSign: %s", clientStringToSign) - debug("Server StringToSign: %s", serverStringToSign) - error.recommend = "This may be a bug with the SDK and we hope you can submit this question in the " + - "github issue(https://github.com/aliyun/alibaba-cloud-sdk-go/issues), thanks very much" - } - } - ok = true - return - } - ok = false - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/path.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/path.go deleted file mode 100644 index 974fa35cb7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/path.go +++ /dev/null @@ -1,16 +0,0 @@ -package internal - -import ( - "os" - "runtime" -) - -// GetHomePath return home directory according to the system. -// if the environmental virables does not exist, will return empty string -func GetHomePath() string { - if runtime.GOOS == "windows" { - return os.Getenv("USERPROFILE") - } - - return os.Getenv("HOME") -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/utils.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/utils.go deleted file mode 100644 index 394a8871b9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/internal/utils.go +++ /dev/null @@ -1,31 +0,0 @@ -package internal - -import "os" - -// Get first non-empty value -func GetDefaultString(values ...string) string { - for _, v := range values { - if v != "" { - return v - } - } - - return "" -} - -// set back the memoried enviroment variables -type Rollback func() - -func Memory(keys ...string) Rollback { - // remenber enviroment variables - m := make(map[string]string) - for _, key := range keys { - m[key] = os.Getenv(key) - } - - return func() { - for _, key := range keys { - os.Setenv(key, m[key]) - } - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go deleted file mode 100644 index c7613dcf02..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go +++ /dev/null @@ -1,116 +0,0 @@ -package sdk - -import ( - "encoding/json" - "io" - "log" - "os" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var logChannel string - -type Logger struct { - *log.Logger - formatTemplate string - isOpen bool - lastLogMsg string -} - -var defaultLoggerTemplate = `{time} {channel}: "{method} {uri} HTTP/{version}" {code} {cost} {hostname}` -var loggerParam = []string{"{time}", "{start_time}", "{ts}", "{channel}", "{pid}", "{host}", "{method}", "{uri}", "{version}", "{target}", "{hostname}", "{code}", "{error}", "{req_headers}", "{res_body}", "{res_headers}", "{cost}"} - -func initLogMsg(fieldMap map[string]string) { - for _, value := range loggerParam { - fieldMap[value] = "" - } -} - -func (client *Client) GetLogger() *Logger { - return client.logger -} - -func (client *Client) GetLoggerMsg() string { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - return client.logger.lastLogMsg -} - -func (client *Client) SetLogger(level string, channel string, out io.Writer, template string) { - if level == "" { - level = "info" - } - - logChannel = "AlibabaCloud" - if channel != "" { - logChannel = channel - } - log := log.New(out, "["+strings.ToUpper(level)+"]", log.Lshortfile) - if template == "" { - template = defaultLoggerTemplate - } - - client.logger = &Logger{ - Logger: log, - formatTemplate: template, - isOpen: true, - } -} - -func (client *Client) OpenLogger() { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - client.logger.isOpen = true -} - -func (client *Client) CloseLogger() { - if client.logger != nil { - client.logger.isOpen = false - } -} - -func (client *Client) SetTemplate(template string) { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - client.logger.formatTemplate = template -} - -func (client *Client) GetTemplate() string { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - return client.logger.formatTemplate -} - -func TransToString(object interface{}) string { - byt, err := json.Marshal(object) - if err != nil { - return "" - } - return string(byt) -} - -func (client *Client) printLog(fieldMap map[string]string, err error) { - if err != nil { - fieldMap["{error}"] = err.Error() - } - fieldMap["{time}"] = time.Now().Format("2006-01-02 15:04:05") - fieldMap["{ts}"] = utils.GetTimeInFormatISO8601() - fieldMap["{channel}"] = logChannel - if client.logger != nil { - logMsg := client.logger.formatTemplate - for key, value := range fieldMap { - logMsg = strings.Replace(logMsg, key, value, -1) - } - client.logger.lastLogMsg = logMsg - if client.logger.isOpen { - client.logger.Output(2, logMsg) - } - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go deleted file mode 100644 index 0893c06a8e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go +++ /dev/null @@ -1,538 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package requests - -import ( - "encoding/json" - "fmt" - "io" - "reflect" - "strconv" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - opentracing "github.com/opentracing/opentracing-go" -) - -const ( - RPC = "RPC" - ROA = "ROA" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - DefaultHttpPort = "80" - - GET = "GET" - PUT = "PUT" - POST = "POST" - DELETE = "DELETE" - PATCH = "PATCH" - HEAD = "HEAD" - OPTIONS = "OPTIONS" - - Json = "application/json" - Xml = "application/xml" - Raw = "application/octet-stream" - Form = "application/x-www-form-urlencoded" - - Header = "Header" - Query = "Query" - Body = "Body" - Path = "Path" - - HeaderSeparator = "\n" -) - -// interface -type AcsRequest interface { - GetScheme() string - GetMethod() string - GetDomain() string - GetPort() string - GetRegionId() string - GetHeaders() map[string]string - GetQueryParams() map[string]string - GetFormParams() map[string]string - GetContent() []byte - GetBodyReader() io.Reader - GetStyle() string - GetProduct() string - GetVersion() string - SetVersion(version string) - GetActionName() string - GetAcceptFormat() string - GetLocationServiceCode() string - GetLocationEndpointType() string - GetReadTimeout() time.Duration - GetConnectTimeout() time.Duration - SetReadTimeout(readTimeout time.Duration) - SetConnectTimeout(connectTimeout time.Duration) - SetHTTPSInsecure(isInsecure bool) - GetHTTPSInsecure() *bool - - GetUserAgent() map[string]string - - SetStringToSign(stringToSign string) - GetStringToSign() string - - SetDomain(domain string) - SetContent(content []byte) - SetScheme(scheme string) - BuildUrl() string - BuildQueries() string - - addHeaderParam(key, value string) - addQueryParam(key, value string) - addFormParam(key, value string) - addPathParam(key, value string) - - SetTracerSpan(span opentracing.Span) - GetTracerSpan() opentracing.Span -} - -// base class -type baseRequest struct { - Scheme string - Method string - Domain string - Port string - RegionId string - ReadTimeout time.Duration - ConnectTimeout time.Duration - isInsecure *bool - - userAgent map[string]string - product string - version string - - actionName string - - AcceptFormat string - - QueryParams map[string]string - Headers map[string]string - FormParams map[string]string - Content []byte - - locationServiceCode string - locationEndpointType string - - queries string - - stringToSign string - - span opentracing.Span -} - -func (request *baseRequest) GetQueryParams() map[string]string { - return request.QueryParams -} - -func (request *baseRequest) GetFormParams() map[string]string { - return request.FormParams -} - -func (request *baseRequest) GetReadTimeout() time.Duration { - return request.ReadTimeout -} - -func (request *baseRequest) GetConnectTimeout() time.Duration { - return request.ConnectTimeout -} - -func (request *baseRequest) SetReadTimeout(readTimeout time.Duration) { - request.ReadTimeout = readTimeout -} - -func (request *baseRequest) SetConnectTimeout(connectTimeout time.Duration) { - request.ConnectTimeout = connectTimeout -} - -func (request *baseRequest) GetHTTPSInsecure() *bool { - return request.isInsecure -} - -func (request *baseRequest) SetHTTPSInsecure(isInsecure bool) { - request.isInsecure = &isInsecure -} - -func (request *baseRequest) GetContent() []byte { - return request.Content -} - -func (request *baseRequest) SetVersion(version string) { - request.version = version -} - -func (request *baseRequest) GetVersion() string { - return request.version -} - -func (request *baseRequest) GetActionName() string { - return request.actionName -} - -func (request *baseRequest) SetContent(content []byte) { - request.Content = content -} - -func (request *baseRequest) GetUserAgent() map[string]string { - return request.userAgent -} - -func (request *baseRequest) AppendUserAgent(key, value string) { - newkey := true - if request.userAgent == nil { - request.userAgent = make(map[string]string) - } - if strings.ToLower(key) != "core" && strings.ToLower(key) != "go" { - for tag := range request.userAgent { - if tag == key { - request.userAgent[tag] = value - newkey = false - } - } - if newkey { - request.userAgent[key] = value - } - } -} - -func (request *baseRequest) addHeaderParam(key, value string) { - request.Headers[key] = value -} - -func (request *baseRequest) addQueryParam(key, value string) { - request.QueryParams[key] = value -} - -func (request *baseRequest) addFormParam(key, value string) { - request.FormParams[key] = value -} - -func (request *baseRequest) GetAcceptFormat() string { - return request.AcceptFormat -} - -func (request *baseRequest) GetLocationServiceCode() string { - return request.locationServiceCode -} - -func (request *baseRequest) GetLocationEndpointType() string { - return request.locationEndpointType -} - -func (request *baseRequest) GetProduct() string { - return request.product -} - -func (request *baseRequest) GetScheme() string { - return request.Scheme -} - -func (request *baseRequest) SetScheme(scheme string) { - request.Scheme = scheme -} - -func (request *baseRequest) GetMethod() string { - return request.Method -} - -func (request *baseRequest) GetDomain() string { - return request.Domain -} - -func (request *baseRequest) SetDomain(host string) { - request.Domain = host -} - -func (request *baseRequest) GetPort() string { - return request.Port -} - -func (request *baseRequest) GetRegionId() string { - return request.RegionId -} - -func (request *baseRequest) GetHeaders() map[string]string { - return request.Headers -} - -func (request *baseRequest) SetContentType(contentType string) { - request.addHeaderParam("Content-Type", contentType) -} - -func (request *baseRequest) GetContentType() (contentType string, contains bool) { - contentType, contains = request.Headers["Content-Type"] - return -} - -func (request *baseRequest) SetStringToSign(stringToSign string) { - request.stringToSign = stringToSign -} - -func (request *baseRequest) GetStringToSign() string { - return request.stringToSign -} - -func (request *baseRequest) SetTracerSpan(span opentracing.Span) { - request.span = span -} -func (request *baseRequest) GetTracerSpan() opentracing.Span { - return request.span -} - -func defaultBaseRequest() (request *baseRequest) { - request = &baseRequest{ - Scheme: "", - AcceptFormat: "JSON", - Method: GET, - QueryParams: make(map[string]string), - Headers: map[string]string{ - "x-sdk-client": "golang/1.0.0", - "x-sdk-invoke-type": "normal", - "Accept-Encoding": "identity", - }, - FormParams: make(map[string]string), - } - return -} - -func InitParams(request AcsRequest) (err error) { - requestValue := reflect.ValueOf(request).Elem() - err = flatRepeatedList(requestValue, request, "", "") - return -} - -func flatRepeatedList(dataValue reflect.Value, request AcsRequest, position, prefix string) (err error) { - dataType := dataValue.Type() - for i := 0; i < dataType.NumField(); i++ { - field := dataType.Field(i) - name, containsNameTag := field.Tag.Lookup("name") - fieldPosition := position - if fieldPosition == "" { - fieldPosition, _ = field.Tag.Lookup("position") - } - typeTag, containsTypeTag := field.Tag.Lookup("type") - if containsNameTag { - if !containsTypeTag { - // simple param - key := prefix + name - value := dataValue.Field(i).String() - if dataValue.Field(i).Kind().String() == "map" { - byt, _ := json.Marshal(dataValue.Field(i).Interface()) - value = string(byt) - if value == "null" { - value = "" - } - } - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else if typeTag == "Repeated" { - // repeated param - err = handleRepeatedParams(request, dataValue, prefix, name, fieldPosition, i) - if err != nil { - return - } - } else if typeTag == "Struct" { - err = handleStruct(request, dataValue, prefix, name, fieldPosition, i) - if err != nil { - return - } - } else if typeTag == "Map" { - err = handleMap(request, dataValue, prefix, name, fieldPosition, i) - if err != nil { - return err - } - } else if typeTag == "Json" { - byt, err := json.Marshal(dataValue.Field(i).Interface()) - if err != nil { - return err - } - key := prefix + name - err = addParam(request, fieldPosition, key, string(byt)) - if err != nil { - return err - } - } - } - } - return -} - -func handleRepeatedParams(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { - repeatedFieldValue := dataValue.Field(index) - if repeatedFieldValue.Kind() != reflect.Slice { - // possible value: {"[]string", "*[]struct"}, we must call Elem() in the last condition - repeatedFieldValue = repeatedFieldValue.Elem() - } - if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { - for m := 0; m < repeatedFieldValue.Len(); m++ { - elementValue := repeatedFieldValue.Index(m) - key := prefix + name + "." + strconv.Itoa(m+1) - if elementValue.Type().Kind().String() == "string" { - value := elementValue.String() - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else { - err = flatRepeatedList(elementValue, request, fieldPosition, key+".") - if err != nil { - return - } - } - } - } - return nil -} - -func handleParam(request AcsRequest, dataValue reflect.Value, key, fieldPosition string) (err error) { - if dataValue.Type().String() == "[]string" { - if dataValue.IsNil() { - return - } - for j := 0; j < dataValue.Len(); j++ { - err = addParam(request, fieldPosition, key+"."+strconv.Itoa(j+1), dataValue.Index(j).String()) - if err != nil { - return - } - } - } else { - if dataValue.Type().Kind().String() == "string" { - value := dataValue.String() - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else if dataValue.Type().Kind().String() == "struct" { - err = flatRepeatedList(dataValue, request, fieldPosition, key+".") - if err != nil { - return - } - } else if dataValue.Type().Kind().String() == "int" { - value := dataValue.Int() - err = addParam(request, fieldPosition, key, strconv.Itoa(int(value))) - if err != nil { - return err - } - } - } - return nil -} - -func handleMap(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { - valueField := dataValue.Field(index) - if valueField.IsValid() && !valueField.IsNil() { - iter := valueField.MapRange() - for iter.Next() { - k := iter.Key() - v := iter.Value() - key := prefix + name + ".#" + strconv.Itoa(k.Len()) + "#" + k.String() - if v.Kind() == reflect.Ptr || v.Kind() == reflect.Interface { - elementValue := v.Elem() - err = handleParam(request, elementValue, key, fieldPosition) - if err != nil { - return err - } - } else if v.IsValid() && v.IsNil() { - err = handleParam(request, v, key, fieldPosition) - if err != nil { - return err - } - } - } - } - return nil -} - -func handleStruct(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { - valueField := dataValue.Field(index) - if valueField.IsValid() && valueField.String() != "" { - valueFieldType := valueField.Type() - for m := 0; m < valueFieldType.NumField(); m++ { - fieldName := valueFieldType.Field(m).Name - elementValue := valueField.FieldByName(fieldName) - key := prefix + name + "." + fieldName - if elementValue.Type().String() == "[]string" { - if elementValue.IsNil() { - continue - } - for j := 0; j < elementValue.Len(); j++ { - err = addParam(request, fieldPosition, key+"."+strconv.Itoa(j+1), elementValue.Index(j).String()) - if err != nil { - return - } - } - } else { - if elementValue.Type().Kind().String() == "string" { - value := elementValue.String() - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else if elementValue.Type().Kind().String() == "struct" { - err = flatRepeatedList(elementValue, request, fieldPosition, key+".") - if err != nil { - return - } - } else if !elementValue.IsNil() { - repeatedFieldValue := elementValue.Elem() - if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { - for m := 0; m < repeatedFieldValue.Len(); m++ { - elementValue := repeatedFieldValue.Index(m) - if elementValue.Type().Kind().String() == "string" { - value := elementValue.String() - err := addParam(request, fieldPosition, key+"."+strconv.Itoa(m+1), value) - if err != nil { - return err - } - } else { - err = flatRepeatedList(elementValue, request, fieldPosition, key+"."+strconv.Itoa(m+1)+".") - if err != nil { - return - } - } - } - } - } - } - } - } - return nil -} - -func addParam(request AcsRequest, position, name, value string) (err error) { - if len(value) > 0 { - switch position { - case Header: - request.addHeaderParam(name, value) - case Query: - request.addQueryParam(name, value) - case Path: - request.addPathParam(name, value) - case Body: - request.addFormParam(name, value) - default: - errMsg := fmt.Sprintf(errors.UnsupportedParamPositionErrorMessage, position) - err = errors.NewClientError(errors.UnsupportedParamPositionErrorCode, errMsg, nil) - } - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go deleted file mode 100644 index 2ecc5ef998..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go +++ /dev/null @@ -1,113 +0,0 @@ -package requests - -import ( - "bytes" - "fmt" - "io" - "sort" - "strings" -) - -type CommonRequest struct { - *baseRequest - - Version string - ApiName string - Product string - ServiceCode string - EndpointType string - - // roa params - PathPattern string - PathParams map[string]string - - Ontology AcsRequest -} - -func NewCommonRequest() (request *CommonRequest) { - request = &CommonRequest{ - baseRequest: defaultBaseRequest(), - } - request.Headers["x-sdk-invoke-type"] = "common" - request.PathParams = make(map[string]string) - return -} - -func (request *CommonRequest) String() string { - request.TransToAcsRequest() - - resultBuilder := bytes.Buffer{} - - mapOutput := func(m map[string]string) { - if len(m) > 0 { - sortedKeys := make([]string, 0) - for k := range m { - sortedKeys = append(sortedKeys, k) - } - - // sort 'string' key in increasing order - sort.Strings(sortedKeys) - - for _, key := range sortedKeys { - resultBuilder.WriteString(key + ": " + m[key] + "\n") - } - } - } - - // Request Line - resultBuilder.WriteString(fmt.Sprintf("%s %s %s/1.1\n", request.Method, request.BuildQueries(), strings.ToUpper(request.Scheme))) - - // Headers - resultBuilder.WriteString("Host" + ": " + request.Domain + "\n") - mapOutput(request.Headers) - - resultBuilder.WriteString("\n") - // Body - if len(request.Content) > 0 { - resultBuilder.WriteString(string(request.Content) + "\n") - } else { - mapOutput(request.FormParams) - } - - return resultBuilder.String() -} - -func (request *CommonRequest) TransToAcsRequest() { - if len(request.PathPattern) > 0 { - roaRequest := &RoaRequest{} - roaRequest.initWithCommonRequest(request) - request.Ontology = roaRequest - } else { - rpcRequest := &RpcRequest{} - rpcRequest.baseRequest = request.baseRequest - rpcRequest.product = request.Product - rpcRequest.version = request.Version - rpcRequest.locationServiceCode = request.ServiceCode - rpcRequest.locationEndpointType = request.EndpointType - rpcRequest.actionName = request.ApiName - rpcRequest.Headers["x-acs-version"] = request.Version - rpcRequest.Headers["x-acs-action"] = request.ApiName - rpcRequest.span = request.span - request.Ontology = rpcRequest - } -} - -func (request *CommonRequest) BuildUrl() string { - return request.Ontology.BuildUrl() -} - -func (request *CommonRequest) BuildQueries() string { - return request.Ontology.BuildQueries() -} - -func (request *CommonRequest) GetBodyReader() io.Reader { - return request.Ontology.GetBodyReader() -} - -func (request *CommonRequest) GetStyle() string { - return request.Ontology.GetStyle() -} - -func (request *CommonRequest) addPathParam(key, value string) { - request.PathParams[key] = value -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go deleted file mode 100644 index 62b108d452..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package requests - -import ( - "bytes" - "fmt" - "io" - "net/url" - "sort" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type RoaRequest struct { - *baseRequest - pathPattern string - PathParams map[string]string -} - -func (*RoaRequest) GetStyle() string { - return ROA -} - -func (request *RoaRequest) GetBodyReader() io.Reader { - if request.FormParams != nil && len(request.FormParams) > 0 { - formString := utils.GetUrlFormedMap(request.FormParams) - return strings.NewReader(formString) - } else if len(request.Content) > 0 { - return bytes.NewReader(request.Content) - } else { - return nil - } -} - -// for sign method, need not url encoded -func (request *RoaRequest) BuildQueries() string { - return request.buildQueries() -} - -func (request *RoaRequest) buildPath() string { - path := request.pathPattern - for key, value := range request.PathParams { - path = strings.Replace(path, "["+key+"]", value, 1) - } - return path -} - -func (request *RoaRequest) buildQueries() string { - // replace path params with value - path := request.buildPath() - queryParams := request.QueryParams - // sort QueryParams by key - var queryKeys []string - for key := range queryParams { - queryKeys = append(queryKeys, key) - } - sort.Strings(queryKeys) - - // append urlBuilder - urlBuilder := bytes.Buffer{} - urlBuilder.WriteString(path) - if len(queryKeys) > 0 { - urlBuilder.WriteString("?") - } - for i := 0; i < len(queryKeys); i++ { - queryKey := queryKeys[i] - urlBuilder.WriteString(queryKey) - if value := queryParams[queryKey]; len(value) > 0 { - urlBuilder.WriteString("=") - urlBuilder.WriteString(value) - } - if i < len(queryKeys)-1 { - urlBuilder.WriteString("&") - } - } - result := urlBuilder.String() - return result -} - -func (request *RoaRequest) buildQueryString() string { - queryParams := request.QueryParams - // sort QueryParams by key - q := url.Values{} - for key, value := range queryParams { - q.Add(key, value) - } - return q.Encode() -} - -func (request *RoaRequest) BuildUrl() string { - // for network trans, need url encoded - scheme := strings.ToLower(request.Scheme) - domain := request.Domain - port := request.Port - path := request.buildPath() - url := fmt.Sprintf("%s://%s:%s%s", scheme, domain, port, path) - querystring := request.buildQueryString() - if len(querystring) > 0 { - url = fmt.Sprintf("%s?%s", url, querystring) - } - return url -} - -func (request *RoaRequest) addPathParam(key, value string) { - request.PathParams[key] = value -} - -func (request *RoaRequest) InitWithApiInfo(product, version, action, uriPattern, serviceCode, endpointType string) { - request.baseRequest = defaultBaseRequest() - request.PathParams = make(map[string]string) - request.Headers["x-acs-version"] = version - request.Headers["x-acs-action"] = action - request.pathPattern = uriPattern - request.locationServiceCode = serviceCode - request.locationEndpointType = endpointType - request.product = product - //request.version = version - request.actionName = action -} - -func (request *RoaRequest) initWithCommonRequest(commonRequest *CommonRequest) { - request.baseRequest = commonRequest.baseRequest - request.PathParams = commonRequest.PathParams - request.product = commonRequest.Product - //request.version = commonRequest.Version - request.Headers["x-acs-version"] = commonRequest.Version - if commonRequest.ApiName != "" { - request.Headers["x-acs-action"] = commonRequest.ApiName - } - request.actionName = commonRequest.ApiName - request.pathPattern = commonRequest.PathPattern - request.locationServiceCode = commonRequest.ServiceCode - request.locationEndpointType = "" - request.span = commonRequest.span -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go deleted file mode 100644 index a04765e94a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package requests - -import ( - "fmt" - "io" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type RpcRequest struct { - *baseRequest -} - -func (request *RpcRequest) init() { - request.baseRequest = defaultBaseRequest() - request.Method = POST -} - -func (*RpcRequest) GetStyle() string { - return RPC -} - -func (request *RpcRequest) GetBodyReader() io.Reader { - if request.FormParams != nil && len(request.FormParams) > 0 { - formString := utils.GetUrlFormedMap(request.FormParams) - return strings.NewReader(formString) - } else { - return strings.NewReader("") - } -} - -func (request *RpcRequest) BuildQueries() string { - request.queries = "/?" + utils.GetUrlFormedMap(request.QueryParams) - return request.queries -} - -func (request *RpcRequest) BuildUrl() string { - url := fmt.Sprintf("%s://%s", strings.ToLower(request.Scheme), request.Domain) - if len(request.Port) > 0 { - url = fmt.Sprintf("%s:%s", url, request.Port) - } - return url + request.BuildQueries() -} - -func (request *RpcRequest) GetVersion() string { - return request.version -} - -func (request *RpcRequest) GetActionName() string { - return request.actionName -} - -func (request *RpcRequest) addPathParam(key, value string) { - panic("not support") -} - -func (request *RpcRequest) InitWithApiInfo(product, version, action, serviceCode, endpointType string) { - request.init() - request.product = product - request.version = version - request.actionName = action - request.locationServiceCode = serviceCode - request.locationEndpointType = endpointType - request.Headers["x-acs-version"] = version - request.Headers["x-acs-action"] = action -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go deleted file mode 100644 index 28af63ea10..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go +++ /dev/null @@ -1,53 +0,0 @@ -package requests - -import "strconv" - -type Integer string - -func NewInteger(integer int) Integer { - return Integer(strconv.Itoa(integer)) -} - -func (integer Integer) HasValue() bool { - return integer != "" -} - -func (integer Integer) GetValue() (int, error) { - return strconv.Atoi(string(integer)) -} - -func NewInteger64(integer int64) Integer { - return Integer(strconv.FormatInt(integer, 10)) -} - -func (integer Integer) GetValue64() (int64, error) { - return strconv.ParseInt(string(integer), 10, 0) -} - -type Boolean string - -func NewBoolean(bool bool) Boolean { - return Boolean(strconv.FormatBool(bool)) -} - -func (boolean Boolean) HasValue() bool { - return boolean != "" -} - -func (boolean Boolean) GetValue() (bool, error) { - return strconv.ParseBool(string(boolean)) -} - -type Float string - -func NewFloat(f float64) Float { - return Float(strconv.FormatFloat(f, 'f', 6, 64)) -} - -func (float Float) HasValue() bool { - return float != "" -} - -func (float Float) GetValue() (float64, error) { - return strconv.ParseFloat(string(float), 64) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go deleted file mode 100644 index cd66316d7f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go +++ /dev/null @@ -1,333 +0,0 @@ -package responses - -import ( - "encoding/json" - "io" - "math" - "reflect" - "strconv" - "strings" - "unsafe" - - jsoniter "github.com/json-iterator/go" - "github.com/modern-go/reflect2" -) - -const maxUint = ^uint(0) -const maxInt = int(maxUint >> 1) -const minInt = -maxInt - 1 - -var jsonParser jsoniter.API - -func init() { - jsonParser = jsoniter.Config{ - EscapeHTML: true, - SortMapKeys: true, - ValidateJsonRawMessage: true, - CaseSensitive: true, - }.Froze() - - jsonParser.RegisterExtension(newBetterFuzzyExtension()) -} - -func newBetterFuzzyExtension() jsoniter.DecoderExtension { - return jsoniter.DecoderExtension{ - reflect2.DefaultTypeOfKind(reflect.String): &nullableFuzzyStringDecoder{}, - reflect2.DefaultTypeOfKind(reflect.Bool): &fuzzyBoolDecoder{}, - reflect2.DefaultTypeOfKind(reflect.Float32): &nullableFuzzyFloat32Decoder{}, - reflect2.DefaultTypeOfKind(reflect.Float64): &nullableFuzzyFloat64Decoder{}, - reflect2.DefaultTypeOfKind(reflect.Int): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(maxInt) || val < float64(minInt) { - iter.ReportError("fuzzy decode int", "exceed range") - return - } - *((*int)(ptr)) = int(val) - } else { - *((*int)(ptr)) = iter.ReadInt() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(maxUint) || val < 0 { - iter.ReportError("fuzzy decode uint", "exceed range") - return - } - *((*uint)(ptr)) = uint(val) - } else { - *((*uint)(ptr)) = iter.ReadUint() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int8): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt8) || val < float64(math.MinInt8) { - iter.ReportError("fuzzy decode int8", "exceed range") - return - } - *((*int8)(ptr)) = int8(val) - } else { - *((*int8)(ptr)) = iter.ReadInt8() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint8): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint8) || val < 0 { - iter.ReportError("fuzzy decode uint8", "exceed range") - return - } - *((*uint8)(ptr)) = uint8(val) - } else { - *((*uint8)(ptr)) = iter.ReadUint8() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int16): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt16) || val < float64(math.MinInt16) { - iter.ReportError("fuzzy decode int16", "exceed range") - return - } - *((*int16)(ptr)) = int16(val) - } else { - *((*int16)(ptr)) = iter.ReadInt16() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint16): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint16) || val < 0 { - iter.ReportError("fuzzy decode uint16", "exceed range") - return - } - *((*uint16)(ptr)) = uint16(val) - } else { - *((*uint16)(ptr)) = iter.ReadUint16() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int32): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt32) || val < float64(math.MinInt32) { - iter.ReportError("fuzzy decode int32", "exceed range") - return - } - *((*int32)(ptr)) = int32(val) - } else { - *((*int32)(ptr)) = iter.ReadInt32() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint32): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint32) || val < 0 { - iter.ReportError("fuzzy decode uint32", "exceed range") - return - } - *((*uint32)(ptr)) = uint32(val) - } else { - *((*uint32)(ptr)) = iter.ReadUint32() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int64): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt64) || val < float64(math.MinInt64) { - iter.ReportError("fuzzy decode int64", "exceed range") - return - } - *((*int64)(ptr)) = int64(val) - } else { - *((*int64)(ptr)) = iter.ReadInt64() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint64): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint64) || val < 0 { - iter.ReportError("fuzzy decode uint64", "exceed range") - return - } - *((*uint64)(ptr)) = uint64(val) - } else { - *((*uint64)(ptr)) = iter.ReadUint64() - } - }}, - } -} - -type nullableFuzzyStringDecoder struct { -} - -func (decoder *nullableFuzzyStringDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - switch valueType { - case jsoniter.NumberValue: - var number json.Number - iter.ReadVal(&number) - *((*string)(ptr)) = string(number) - case jsoniter.StringValue: - *((*string)(ptr)) = iter.ReadString() - case jsoniter.BoolValue: - *((*string)(ptr)) = strconv.FormatBool(iter.ReadBool()) - case jsoniter.NilValue: - iter.ReadNil() - *((*string)(ptr)) = "" - default: - iter.ReportError("fuzzyStringDecoder", "not number or string or bool") - } -} - -type fuzzyBoolDecoder struct { -} - -func (decoder *fuzzyBoolDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - switch valueType { - case jsoniter.BoolValue: - *((*bool)(ptr)) = iter.ReadBool() - case jsoniter.NumberValue: - var number json.Number - iter.ReadVal(&number) - num, err := number.Int64() - if err != nil { - iter.ReportError("fuzzyBoolDecoder", "get value from json.number failed") - } - if num == 0 { - *((*bool)(ptr)) = false - } else { - *((*bool)(ptr)) = true - } - case jsoniter.StringValue: - strValue := strings.ToLower(iter.ReadString()) - if strValue == "true" { - *((*bool)(ptr)) = true - } else if strValue == "false" || strValue == "" { - *((*bool)(ptr)) = false - } else { - iter.ReportError("fuzzyBoolDecoder", "unsupported bool value: "+strValue) - } - case jsoniter.NilValue: - iter.ReadNil() - *((*bool)(ptr)) = false - default: - iter.ReportError("fuzzyBoolDecoder", "not number or string or nil") - } -} - -type nullableFuzzyIntegerDecoder struct { - fun func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) -} - -func (decoder *nullableFuzzyIntegerDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - var str string - switch valueType { - case jsoniter.NumberValue: - var number json.Number - iter.ReadVal(&number) - str = string(number) - case jsoniter.StringValue: - str = iter.ReadString() - // support empty string - if str == "" { - str = "0" - } - case jsoniter.BoolValue: - if iter.ReadBool() { - str = "1" - } else { - str = "0" - } - case jsoniter.NilValue: - iter.ReadNil() - str = "0" - default: - iter.ReportError("fuzzyIntegerDecoder", "not number or string") - } - newIter := iter.Pool().BorrowIterator([]byte(str)) - defer iter.Pool().ReturnIterator(newIter) - isFloat := strings.IndexByte(str, '.') != -1 - decoder.fun(isFloat, ptr, newIter) - if newIter.Error != nil && newIter.Error != io.EOF { - iter.Error = newIter.Error - } -} - -type nullableFuzzyFloat32Decoder struct { -} - -func (decoder *nullableFuzzyFloat32Decoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - var str string - switch valueType { - case jsoniter.NumberValue: - *((*float32)(ptr)) = iter.ReadFloat32() - case jsoniter.StringValue: - str = iter.ReadString() - // support empty string - if str == "" { - *((*float32)(ptr)) = 0 - return - } - newIter := iter.Pool().BorrowIterator([]byte(str)) - defer iter.Pool().ReturnIterator(newIter) - *((*float32)(ptr)) = newIter.ReadFloat32() - if newIter.Error != nil && newIter.Error != io.EOF { - iter.Error = newIter.Error - } - case jsoniter.BoolValue: - // support bool to float32 - if iter.ReadBool() { - *((*float32)(ptr)) = 1 - } else { - *((*float32)(ptr)) = 0 - } - case jsoniter.NilValue: - iter.ReadNil() - *((*float32)(ptr)) = 0 - default: - iter.ReportError("nullableFuzzyFloat32Decoder", "not number or string") - } -} - -type nullableFuzzyFloat64Decoder struct { -} - -func (decoder *nullableFuzzyFloat64Decoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - var str string - switch valueType { - case jsoniter.NumberValue: - *((*float64)(ptr)) = iter.ReadFloat64() - case jsoniter.StringValue: - str = iter.ReadString() - // support empty string - if str == "" { - *((*float64)(ptr)) = 0 - return - } - newIter := iter.Pool().BorrowIterator([]byte(str)) - defer iter.Pool().ReturnIterator(newIter) - *((*float64)(ptr)) = newIter.ReadFloat64() - if newIter.Error != nil && newIter.Error != io.EOF { - iter.Error = newIter.Error - } - case jsoniter.BoolValue: - // support bool to float64 - if iter.ReadBool() { - *((*float64)(ptr)) = 1 - } else { - *((*float64)(ptr)) = 0 - } - case jsoniter.NilValue: - // support empty string - iter.ReadNil() - *((*float64)(ptr)) = 0 - default: - iter.ReportError("nullableFuzzyFloat64Decoder", "not number or string") - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go deleted file mode 100644 index 332756c223..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package responses - -import ( - "bytes" - "encoding/xml" - "fmt" - "io/ioutil" - "net/http" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" -) - -type AcsResponse interface { - IsSuccess() bool - GetHttpStatus() int - GetHttpHeaders() map[string][]string - GetHttpContentString() string - GetHttpContentBytes() []byte - GetOriginHttpResponse() *http.Response - parseFromHttpResponse(httpResponse *http.Response) error -} - -// Unmarshal object from http response body to target Response -func Unmarshal(response AcsResponse, httpResponse *http.Response, format string) (err error) { - err = response.parseFromHttpResponse(httpResponse) - if err != nil { - return - } - if !response.IsSuccess() { - err = errors.NewServerError(response.GetHttpStatus(), response.GetHttpContentString(), "") - return - } - - if _, isCommonResponse := response.(*CommonResponse); isCommonResponse { - // common response need not unmarshal - return - } - - if len(response.GetHttpContentBytes()) == 0 { - return - } - - if strings.ToUpper(format) == "JSON" { - err = jsonParser.Unmarshal(response.GetHttpContentBytes(), response) - if err != nil { - err = errors.NewClientError(errors.JsonUnmarshalErrorCode, errors.JsonUnmarshalErrorMessage, err) - } - } else if strings.ToUpper(format) == "XML" { - err = xml.Unmarshal(response.GetHttpContentBytes(), response) - } - return -} - -type BaseResponse struct { - httpStatus int - httpHeaders map[string][]string - httpContentString string - httpContentBytes []byte - originHttpResponse *http.Response -} - -func (baseResponse *BaseResponse) GetHttpStatus() int { - return baseResponse.httpStatus -} - -func (baseResponse *BaseResponse) GetHttpHeaders() map[string][]string { - return baseResponse.httpHeaders -} - -func (baseResponse *BaseResponse) GetHttpContentString() string { - return baseResponse.httpContentString -} - -func (baseResponse *BaseResponse) GetHttpContentBytes() []byte { - return baseResponse.httpContentBytes -} - -func (baseResponse *BaseResponse) GetOriginHttpResponse() *http.Response { - return baseResponse.originHttpResponse -} - -func (baseResponse *BaseResponse) IsSuccess() bool { - if baseResponse.GetHttpStatus() >= 200 && baseResponse.GetHttpStatus() < 300 { - return true - } - - return false -} - -func (baseResponse *BaseResponse) parseFromHttpResponse(httpResponse *http.Response) (err error) { - defer httpResponse.Body.Close() - body, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - baseResponse.httpStatus = httpResponse.StatusCode - baseResponse.httpHeaders = httpResponse.Header - baseResponse.httpContentBytes = body - baseResponse.httpContentString = string(body) - baseResponse.originHttpResponse = httpResponse - return -} - -func (baseResponse *BaseResponse) String() string { - resultBuilder := bytes.Buffer{} - // statusCode - // resultBuilder.WriteString("\n") - if baseResponse.originHttpResponse != nil { - resultBuilder.WriteString(fmt.Sprintf("%s %s\n", baseResponse.originHttpResponse.Proto, baseResponse.originHttpResponse.Status)) - } - // httpHeaders - //resultBuilder.WriteString("Headers:\n") - if baseResponse.httpHeaders != nil { - for key, value := range baseResponse.httpHeaders { - resultBuilder.WriteString(key + ": " + strings.Join(value, ";") + "\n") - } - resultBuilder.WriteString("\n") - } - - // content - //resultBuilder.WriteString("Content:\n") - resultBuilder.WriteString(baseResponse.httpContentString + "\n") - - return resultBuilder.String() -} - -type CommonResponse struct { - *BaseResponse -} - -func NewCommonResponse() (response *CommonResponse) { - return &CommonResponse{ - BaseResponse: &BaseResponse{}, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go deleted file mode 100644 index 09440d27be..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go +++ /dev/null @@ -1,36 +0,0 @@ -package utils - -import ( - "fmt" - "os" - "strings" -) - -type Debug func(format string, v ...interface{}) - -var hookGetEnv = func() string { - return os.Getenv("DEBUG") -} - -var hookPrint = func(input string) { - fmt.Println(input) -} - -func Init(flag string) Debug { - enable := false - - env := hookGetEnv() - parts := strings.Split(env, ",") - for _, part := range parts { - if part == flag { - enable = true - break - } - } - - return func(format string, v ...interface{}) { - if enable { - hookPrint(fmt.Sprintf(format, v...)) - } - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/doc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/doc.go deleted file mode 100644 index 67e1c5a661..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/doc.go +++ /dev/null @@ -1,4 +0,0 @@ -// The utils package just degisned for github.com/aliyun/alibaba-clouc-sdk-go/sdk inner. -// Don't use it in other places, we don't keep compability -// We will change it to internal package in the future -package utils diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go deleted file mode 100644 index 3777839442..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package utils - -import ( - "bytes" - "crypto" - "crypto/hmac" - "crypto/md5" - "crypto/rand" - "crypto/rsa" - "crypto/sha1" - "crypto/x509" - "encoding/base64" - "encoding/hex" - "fmt" - mathrand "math/rand" - "net/url" - "reflect" - "runtime" - "strconv" - "sync/atomic" - "time" -) - -var processStartTime int64 = time.Now().UnixNano() / 1e6 -var seqId int64 = 0 - -func getGID() uint64 { - // https://blog.sgmansfield.com/2015/12/goroutine-ids/ - b := make([]byte, 64) - b = b[:runtime.Stack(b, false)] - b = bytes.TrimPrefix(b, []byte("goroutine ")) - b = b[:bytes.IndexByte(b, ' ')] - n, _ := strconv.ParseUint(string(b), 10, 64) - return n -} - -func GetNonce() (uuidHex string) { - routineId := getGID() - currentTime := time.Now().UnixNano() / 1e6 - seq := atomic.AddInt64(&seqId, 1) - randNum := mathrand.Int63() - msg := fmt.Sprintf("%d-%d-%d-%d-%d", processStartTime, routineId, currentTime, seq, randNum) - h := md5.New() - h.Write([]byte(msg)) - return hex.EncodeToString(h.Sum(nil)) -} - -func GetMD5Base64(bytes []byte) (base64Value string) { - md5Ctx := md5.New() - md5Ctx.Write(bytes) - md5Value := md5Ctx.Sum(nil) - base64Value = base64.StdEncoding.EncodeToString(md5Value) - return -} - -func GetTimeInFormatISO8601() (timeStr string) { - gmt := time.FixedZone("GMT", 0) - - return time.Now().In(gmt).Format("2006-01-02T15:04:05Z") -} - -func GetTimeInFormatRFC2616() (timeStr string) { - gmt := time.FixedZone("GMT", 0) - - return time.Now().In(gmt).Format("Mon, 02 Jan 2006 15:04:05 GMT") -} - -func GetUrlFormedMap(source map[string]string) (urlEncoded string) { - urlEncoder := url.Values{} - for key, value := range source { - urlEncoder.Add(key, value) - } - urlEncoded = urlEncoder.Encode() - return -} - -// Deprecated: don't use it -func InitStructWithDefaultTag(bean interface{}) { - configType := reflect.TypeOf(bean) - for i := 0; i < configType.Elem().NumField(); i++ { - field := configType.Elem().Field(i) - defaultValue := field.Tag.Get("default") - if defaultValue == "" { - continue - } - setter := reflect.ValueOf(bean).Elem().Field(i) - switch field.Type.String() { - case "int": - intValue, _ := strconv.ParseInt(defaultValue, 10, 64) - setter.SetInt(intValue) - case "time.Duration": - intValue, _ := strconv.ParseInt(defaultValue, 10, 64) - setter.SetInt(intValue) - case "string": - setter.SetString(defaultValue) - case "bool": - boolValue, _ := strconv.ParseBool(defaultValue) - setter.SetBool(boolValue) - } - } -} - -func ShaHmac1(source, secret string) string { - key := []byte(secret) - hmac := hmac.New(sha1.New, key) - hmac.Write([]byte(source)) - signedBytes := hmac.Sum(nil) - signedString := base64.StdEncoding.EncodeToString(signedBytes) - return signedString -} - -func Sha256WithRsa(source, secret string) string { - // block, _ := pem.Decode([]byte(secret)) - decodeString, err := base64.StdEncoding.DecodeString(secret) - if err != nil { - panic(err) - } - private, err := x509.ParsePKCS8PrivateKey(decodeString) - if err != nil { - panic(err) - } - - h := crypto.Hash.New(crypto.SHA256) - h.Write([]byte(source)) - hashed := h.Sum(nil) - signature, err := rsa.SignPKCS1v15(rand.Reader, private.(*rsa.PrivateKey), - crypto.SHA256, hashed) - if err != nil { - panic(err) - } - - return base64.StdEncoding.EncodeToString(signature) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/version.go deleted file mode 100644 index 19c67d60d5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/version.go +++ /dev/null @@ -1,4 +0,0 @@ -package sdk - -// Follow the latest version -const Version = "1.63.22" diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go deleted file mode 100644 index 64ed658c2e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AcceptInquiredSystemEvent invokes the ecs.AcceptInquiredSystemEvent API synchronously -func (client *Client) AcceptInquiredSystemEvent(request *AcceptInquiredSystemEventRequest) (response *AcceptInquiredSystemEventResponse, err error) { - response = CreateAcceptInquiredSystemEventResponse() - err = client.DoAction(request, response) - return -} - -// AcceptInquiredSystemEventWithChan invokes the ecs.AcceptInquiredSystemEvent API asynchronously -func (client *Client) AcceptInquiredSystemEventWithChan(request *AcceptInquiredSystemEventRequest) (<-chan *AcceptInquiredSystemEventResponse, <-chan error) { - responseChan := make(chan *AcceptInquiredSystemEventResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AcceptInquiredSystemEvent(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AcceptInquiredSystemEventWithCallback invokes the ecs.AcceptInquiredSystemEvent API asynchronously -func (client *Client) AcceptInquiredSystemEventWithCallback(request *AcceptInquiredSystemEventRequest, callback func(response *AcceptInquiredSystemEventResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AcceptInquiredSystemEventResponse - var err error - defer close(result) - response, err = client.AcceptInquiredSystemEvent(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AcceptInquiredSystemEventRequest is the request struct for api AcceptInquiredSystemEvent -type AcceptInquiredSystemEventRequest struct { - *requests.RpcRequest - EventId string `position:"Query" name:"EventId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Choice string `position:"Query" name:"Choice"` -} - -// AcceptInquiredSystemEventResponse is the response struct for api AcceptInquiredSystemEvent -type AcceptInquiredSystemEventResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAcceptInquiredSystemEventRequest creates a request to invoke AcceptInquiredSystemEvent API -func CreateAcceptInquiredSystemEventRequest() (request *AcceptInquiredSystemEventRequest) { - request = &AcceptInquiredSystemEventRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AcceptInquiredSystemEvent", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAcceptInquiredSystemEventResponse creates a response to parse from AcceptInquiredSystemEvent response -func CreateAcceptInquiredSystemEventResponse() (response *AcceptInquiredSystemEventResponse) { - response = &AcceptInquiredSystemEventResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go deleted file mode 100644 index f0e19e62bc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ActivateRouterInterface invokes the ecs.ActivateRouterInterface API synchronously -func (client *Client) ActivateRouterInterface(request *ActivateRouterInterfaceRequest) (response *ActivateRouterInterfaceResponse, err error) { - response = CreateActivateRouterInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// ActivateRouterInterfaceWithChan invokes the ecs.ActivateRouterInterface API asynchronously -func (client *Client) ActivateRouterInterfaceWithChan(request *ActivateRouterInterfaceRequest) (<-chan *ActivateRouterInterfaceResponse, <-chan error) { - responseChan := make(chan *ActivateRouterInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ActivateRouterInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ActivateRouterInterfaceWithCallback invokes the ecs.ActivateRouterInterface API asynchronously -func (client *Client) ActivateRouterInterfaceWithCallback(request *ActivateRouterInterfaceRequest, callback func(response *ActivateRouterInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ActivateRouterInterfaceResponse - var err error - defer close(result) - response, err = client.ActivateRouterInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ActivateRouterInterfaceRequest is the request struct for api ActivateRouterInterface -type ActivateRouterInterfaceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` -} - -// ActivateRouterInterfaceResponse is the response struct for api ActivateRouterInterface -type ActivateRouterInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateActivateRouterInterfaceRequest creates a request to invoke ActivateRouterInterface API -func CreateActivateRouterInterfaceRequest() (request *ActivateRouterInterfaceRequest) { - request = &ActivateRouterInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateActivateRouterInterfaceResponse creates a response to parse from ActivateRouterInterface response -func CreateActivateRouterInterfaceResponse() (response *ActivateRouterInterfaceResponse) { - response = &ActivateRouterInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go deleted file mode 100644 index 640e8163a9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AddBandwidthPackageIps invokes the ecs.AddBandwidthPackageIps API synchronously -func (client *Client) AddBandwidthPackageIps(request *AddBandwidthPackageIpsRequest) (response *AddBandwidthPackageIpsResponse, err error) { - response = CreateAddBandwidthPackageIpsResponse() - err = client.DoAction(request, response) - return -} - -// AddBandwidthPackageIpsWithChan invokes the ecs.AddBandwidthPackageIps API asynchronously -func (client *Client) AddBandwidthPackageIpsWithChan(request *AddBandwidthPackageIpsRequest) (<-chan *AddBandwidthPackageIpsResponse, <-chan error) { - responseChan := make(chan *AddBandwidthPackageIpsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddBandwidthPackageIps(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddBandwidthPackageIpsWithCallback invokes the ecs.AddBandwidthPackageIps API asynchronously -func (client *Client) AddBandwidthPackageIpsWithCallback(request *AddBandwidthPackageIpsRequest, callback func(response *AddBandwidthPackageIpsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddBandwidthPackageIpsResponse - var err error - defer close(result) - response, err = client.AddBandwidthPackageIps(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddBandwidthPackageIpsRequest is the request struct for api AddBandwidthPackageIps -type AddBandwidthPackageIpsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - IpCount string `position:"Query" name:"IpCount"` -} - -// AddBandwidthPackageIpsResponse is the response struct for api AddBandwidthPackageIps -type AddBandwidthPackageIpsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAddBandwidthPackageIpsRequest creates a request to invoke AddBandwidthPackageIps API -func CreateAddBandwidthPackageIpsRequest() (request *AddBandwidthPackageIpsRequest) { - request = &AddBandwidthPackageIpsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AddBandwidthPackageIps", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddBandwidthPackageIpsResponse creates a response to parse from AddBandwidthPackageIps response -func CreateAddBandwidthPackageIpsResponse() (response *AddBandwidthPackageIpsResponse) { - response = &AddBandwidthPackageIpsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go deleted file mode 100644 index 3400d23e40..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AddTags invokes the ecs.AddTags API synchronously -func (client *Client) AddTags(request *AddTagsRequest) (response *AddTagsResponse, err error) { - response = CreateAddTagsResponse() - err = client.DoAction(request, response) - return -} - -// AddTagsWithChan invokes the ecs.AddTags API asynchronously -func (client *Client) AddTagsWithChan(request *AddTagsRequest) (<-chan *AddTagsResponse, <-chan error) { - responseChan := make(chan *AddTagsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddTags(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddTagsWithCallback invokes the ecs.AddTags API asynchronously -func (client *Client) AddTagsWithCallback(request *AddTagsRequest, callback func(response *AddTagsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddTagsResponse - var err error - defer close(result) - response, err = client.AddTags(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddTagsRequest is the request struct for api AddTags -type AddTagsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Tag *[]AddTagsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId string `position:"Query" name:"ResourceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// AddTagsTag is a repeated param struct in AddTagsRequest -type AddTagsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// AddTagsResponse is the response struct for api AddTags -type AddTagsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAddTagsRequest creates a request to invoke AddTags API -func CreateAddTagsRequest() (request *AddTagsRequest) { - request = &AddTagsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AddTags", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddTagsResponse creates a response to parse from AddTags response -func CreateAddTagsResponse() (response *AddTagsResponse) { - response = &AddTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go deleted file mode 100644 index cd2077f823..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go +++ /dev/null @@ -1,139 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AllocateDedicatedHosts invokes the ecs.AllocateDedicatedHosts API synchronously -func (client *Client) AllocateDedicatedHosts(request *AllocateDedicatedHostsRequest) (response *AllocateDedicatedHostsResponse, err error) { - response = CreateAllocateDedicatedHostsResponse() - err = client.DoAction(request, response) - return -} - -// AllocateDedicatedHostsWithChan invokes the ecs.AllocateDedicatedHosts API asynchronously -func (client *Client) AllocateDedicatedHostsWithChan(request *AllocateDedicatedHostsRequest) (<-chan *AllocateDedicatedHostsResponse, <-chan error) { - responseChan := make(chan *AllocateDedicatedHostsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AllocateDedicatedHosts(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AllocateDedicatedHostsWithCallback invokes the ecs.AllocateDedicatedHosts API asynchronously -func (client *Client) AllocateDedicatedHostsWithCallback(request *AllocateDedicatedHostsRequest, callback func(response *AllocateDedicatedHostsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AllocateDedicatedHostsResponse - var err error - defer close(result) - response, err = client.AllocateDedicatedHosts(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AllocateDedicatedHostsRequest is the request struct for api AllocateDedicatedHosts -type AllocateDedicatedHostsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CpuOverCommitRatio requests.Float `position:"Query" name:"CpuOverCommitRatio"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - MinQuantity requests.Integer `position:"Query" name:"MinQuantity"` - ActionOnMaintenance string `position:"Query" name:"ActionOnMaintenance"` - Tag *[]AllocateDedicatedHostsTag `position:"Query" name:"Tag" type:"Repeated"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - Period requests.Integer `position:"Query" name:"Period"` - DedicatedHostName string `position:"Query" name:"DedicatedHostName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions AllocateDedicatedHostsPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - NetworkAttributesSlbUdpTimeout requests.Integer `position:"Query" name:"NetworkAttributes.SlbUdpTimeout"` - ZoneId string `position:"Query" name:"ZoneId"` - AutoPlacement string `position:"Query" name:"AutoPlacement"` - NetworkAttributesUdpTimeout requests.Integer `position:"Query" name:"NetworkAttributes.UdpTimeout"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` - DedicatedHostType string `position:"Query" name:"DedicatedHostType"` - Quantity requests.Integer `position:"Query" name:"Quantity"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - SchedulerOptionsFenceId string `position:"Query" name:"SchedulerOptions.FenceId"` - ChargeType string `position:"Query" name:"ChargeType"` -} - -// AllocateDedicatedHostsTag is a repeated param struct in AllocateDedicatedHostsRequest -type AllocateDedicatedHostsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// AllocateDedicatedHostsPromotionOptions is a repeated param struct in AllocateDedicatedHostsRequest -type AllocateDedicatedHostsPromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// AllocateDedicatedHostsResponse is the response struct for api AllocateDedicatedHosts -type AllocateDedicatedHostsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` - DedicatedHostIdSets DedicatedHostIdSets `json:"DedicatedHostIdSets" xml:"DedicatedHostIdSets"` -} - -// CreateAllocateDedicatedHostsRequest creates a request to invoke AllocateDedicatedHosts API -func CreateAllocateDedicatedHostsRequest() (request *AllocateDedicatedHostsRequest) { - request = &AllocateDedicatedHostsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AllocateDedicatedHosts", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAllocateDedicatedHostsResponse creates a response to parse from AllocateDedicatedHosts response -func CreateAllocateDedicatedHostsResponse() (response *AllocateDedicatedHostsResponse) { - response = &AllocateDedicatedHostsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go deleted file mode 100644 index f314c1e91b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AllocateEipAddress invokes the ecs.AllocateEipAddress API synchronously -func (client *Client) AllocateEipAddress(request *AllocateEipAddressRequest) (response *AllocateEipAddressResponse, err error) { - response = CreateAllocateEipAddressResponse() - err = client.DoAction(request, response) - return -} - -// AllocateEipAddressWithChan invokes the ecs.AllocateEipAddress API asynchronously -func (client *Client) AllocateEipAddressWithChan(request *AllocateEipAddressRequest) (<-chan *AllocateEipAddressResponse, <-chan error) { - responseChan := make(chan *AllocateEipAddressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AllocateEipAddress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AllocateEipAddressWithCallback invokes the ecs.AllocateEipAddress API asynchronously -func (client *Client) AllocateEipAddressWithCallback(request *AllocateEipAddressRequest, callback func(response *AllocateEipAddressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AllocateEipAddressResponse - var err error - defer close(result) - response, err = client.AllocateEipAddress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AllocateEipAddressRequest is the request struct for api AllocateEipAddress -type AllocateEipAddressRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - ISP string `position:"Query" name:"ISP"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth string `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ActivityId requests.Integer `position:"Query" name:"ActivityId"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` -} - -// AllocateEipAddressResponse is the response struct for api AllocateEipAddress -type AllocateEipAddressResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` - EipAddress string `json:"EipAddress" xml:"EipAddress"` -} - -// CreateAllocateEipAddressRequest creates a request to invoke AllocateEipAddress API -func CreateAllocateEipAddressRequest() (request *AllocateEipAddressRequest) { - request = &AllocateEipAddressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AllocateEipAddress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAllocateEipAddressResponse creates a response to parse from AllocateEipAddress response -func CreateAllocateEipAddressResponse() (response *AllocateEipAddressResponse) { - response = &AllocateEipAddressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go deleted file mode 100644 index a92f37eac2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AllocatePublicIpAddress invokes the ecs.AllocatePublicIpAddress API synchronously -func (client *Client) AllocatePublicIpAddress(request *AllocatePublicIpAddressRequest) (response *AllocatePublicIpAddressResponse, err error) { - response = CreateAllocatePublicIpAddressResponse() - err = client.DoAction(request, response) - return -} - -// AllocatePublicIpAddressWithChan invokes the ecs.AllocatePublicIpAddress API asynchronously -func (client *Client) AllocatePublicIpAddressWithChan(request *AllocatePublicIpAddressRequest) (<-chan *AllocatePublicIpAddressResponse, <-chan error) { - responseChan := make(chan *AllocatePublicIpAddressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AllocatePublicIpAddress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AllocatePublicIpAddressWithCallback invokes the ecs.AllocatePublicIpAddress API asynchronously -func (client *Client) AllocatePublicIpAddressWithCallback(request *AllocatePublicIpAddressRequest, callback func(response *AllocatePublicIpAddressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AllocatePublicIpAddressResponse - var err error - defer close(result) - response, err = client.AllocatePublicIpAddress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AllocatePublicIpAddressRequest is the request struct for api AllocatePublicIpAddress -type AllocatePublicIpAddressRequest struct { - *requests.RpcRequest - IpAddress string `position:"Query" name:"IpAddress"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - VlanId string `position:"Query" name:"VlanId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// AllocatePublicIpAddressResponse is the response struct for api AllocatePublicIpAddress -type AllocatePublicIpAddressResponse struct { - *responses.BaseResponse - IpAddress string `json:"IpAddress" xml:"IpAddress"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAllocatePublicIpAddressRequest creates a request to invoke AllocatePublicIpAddress API -func CreateAllocatePublicIpAddressRequest() (request *AllocatePublicIpAddressRequest) { - request = &AllocatePublicIpAddressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AllocatePublicIpAddress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAllocatePublicIpAddressResponse creates a response to parse from AllocatePublicIpAddress response -func CreateAllocatePublicIpAddressResponse() (response *AllocatePublicIpAddressResponse) { - response = &AllocatePublicIpAddressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go deleted file mode 100644 index 60c8d816c3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ApplyAutoSnapshotPolicy invokes the ecs.ApplyAutoSnapshotPolicy API synchronously -func (client *Client) ApplyAutoSnapshotPolicy(request *ApplyAutoSnapshotPolicyRequest) (response *ApplyAutoSnapshotPolicyResponse, err error) { - response = CreateApplyAutoSnapshotPolicyResponse() - err = client.DoAction(request, response) - return -} - -// ApplyAutoSnapshotPolicyWithChan invokes the ecs.ApplyAutoSnapshotPolicy API asynchronously -func (client *Client) ApplyAutoSnapshotPolicyWithChan(request *ApplyAutoSnapshotPolicyRequest) (<-chan *ApplyAutoSnapshotPolicyResponse, <-chan error) { - responseChan := make(chan *ApplyAutoSnapshotPolicyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ApplyAutoSnapshotPolicy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ApplyAutoSnapshotPolicyWithCallback invokes the ecs.ApplyAutoSnapshotPolicy API asynchronously -func (client *Client) ApplyAutoSnapshotPolicyWithCallback(request *ApplyAutoSnapshotPolicyRequest, callback func(response *ApplyAutoSnapshotPolicyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ApplyAutoSnapshotPolicyResponse - var err error - defer close(result) - response, err = client.ApplyAutoSnapshotPolicy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ApplyAutoSnapshotPolicyRequest is the request struct for api ApplyAutoSnapshotPolicy -type ApplyAutoSnapshotPolicyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` - DiskIds string `position:"Query" name:"diskIds"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ApplyAutoSnapshotPolicyResponse is the response struct for api ApplyAutoSnapshotPolicy -type ApplyAutoSnapshotPolicyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateApplyAutoSnapshotPolicyRequest creates a request to invoke ApplyAutoSnapshotPolicy API -func CreateApplyAutoSnapshotPolicyRequest() (request *ApplyAutoSnapshotPolicyRequest) { - request = &ApplyAutoSnapshotPolicyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ApplyAutoSnapshotPolicy", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateApplyAutoSnapshotPolicyResponse creates a response to parse from ApplyAutoSnapshotPolicy response -func CreateApplyAutoSnapshotPolicyResponse() (response *ApplyAutoSnapshotPolicyResponse) { - response = &ApplyAutoSnapshotPolicyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go deleted file mode 100644 index 211df10a0e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AssignIpv6Addresses invokes the ecs.AssignIpv6Addresses API synchronously -func (client *Client) AssignIpv6Addresses(request *AssignIpv6AddressesRequest) (response *AssignIpv6AddressesResponse, err error) { - response = CreateAssignIpv6AddressesResponse() - err = client.DoAction(request, response) - return -} - -// AssignIpv6AddressesWithChan invokes the ecs.AssignIpv6Addresses API asynchronously -func (client *Client) AssignIpv6AddressesWithChan(request *AssignIpv6AddressesRequest) (<-chan *AssignIpv6AddressesResponse, <-chan error) { - responseChan := make(chan *AssignIpv6AddressesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AssignIpv6Addresses(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AssignIpv6AddressesWithCallback invokes the ecs.AssignIpv6Addresses API asynchronously -func (client *Client) AssignIpv6AddressesWithCallback(request *AssignIpv6AddressesRequest, callback func(response *AssignIpv6AddressesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AssignIpv6AddressesResponse - var err error - defer close(result) - response, err = client.AssignIpv6Addresses(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AssignIpv6AddressesRequest is the request struct for api AssignIpv6Addresses -type AssignIpv6AddressesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Ipv6Prefix *[]string `position:"Query" name:"Ipv6Prefix" type:"Repeated"` - Ipv6PrefixCount requests.Integer `position:"Query" name:"Ipv6PrefixCount"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` - Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` -} - -// AssignIpv6AddressesResponse is the response struct for api AssignIpv6Addresses -type AssignIpv6AddressesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - Ipv6Sets Ipv6SetsInAssignIpv6Addresses `json:"Ipv6Sets" xml:"Ipv6Sets"` - Ipv6PrefixSets Ipv6PrefixSetsInAssignIpv6Addresses `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` -} - -// CreateAssignIpv6AddressesRequest creates a request to invoke AssignIpv6Addresses API -func CreateAssignIpv6AddressesRequest() (request *AssignIpv6AddressesRequest) { - request = &AssignIpv6AddressesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AssignIpv6Addresses", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAssignIpv6AddressesResponse creates a response to parse from AssignIpv6Addresses response -func CreateAssignIpv6AddressesResponse() (response *AssignIpv6AddressesResponse) { - response = &AssignIpv6AddressesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go deleted file mode 100644 index 30ccfb676f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AssignPrivateIpAddresses invokes the ecs.AssignPrivateIpAddresses API synchronously -func (client *Client) AssignPrivateIpAddresses(request *AssignPrivateIpAddressesRequest) (response *AssignPrivateIpAddressesResponse, err error) { - response = CreateAssignPrivateIpAddressesResponse() - err = client.DoAction(request, response) - return -} - -// AssignPrivateIpAddressesWithChan invokes the ecs.AssignPrivateIpAddresses API asynchronously -func (client *Client) AssignPrivateIpAddressesWithChan(request *AssignPrivateIpAddressesRequest) (<-chan *AssignPrivateIpAddressesResponse, <-chan error) { - responseChan := make(chan *AssignPrivateIpAddressesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AssignPrivateIpAddresses(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AssignPrivateIpAddressesWithCallback invokes the ecs.AssignPrivateIpAddresses API asynchronously -func (client *Client) AssignPrivateIpAddressesWithCallback(request *AssignPrivateIpAddressesRequest, callback func(response *AssignPrivateIpAddressesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AssignPrivateIpAddressesResponse - var err error - defer close(result) - response, err = client.AssignPrivateIpAddresses(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AssignPrivateIpAddressesRequest is the request struct for api AssignPrivateIpAddresses -type AssignPrivateIpAddressesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Ipv4Prefix *[]string `position:"Query" name:"Ipv4Prefix" type:"Repeated"` - ClientToken string `position:"Query" name:"ClientToken"` - SecondaryPrivateIpAddressCount requests.Integer `position:"Query" name:"SecondaryPrivateIpAddressCount"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Ipv4PrefixCount requests.Integer `position:"Query" name:"Ipv4PrefixCount"` - PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// AssignPrivateIpAddressesResponse is the response struct for api AssignPrivateIpAddresses -type AssignPrivateIpAddressesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AssignedPrivateIpAddressesSet AssignedPrivateIpAddressesSet `json:"AssignedPrivateIpAddressesSet" xml:"AssignedPrivateIpAddressesSet"` -} - -// CreateAssignPrivateIpAddressesRequest creates a request to invoke AssignPrivateIpAddresses API -func CreateAssignPrivateIpAddressesRequest() (request *AssignPrivateIpAddressesRequest) { - request = &AssignPrivateIpAddressesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AssignPrivateIpAddresses", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAssignPrivateIpAddressesResponse creates a response to parse from AssignPrivateIpAddresses response -func CreateAssignPrivateIpAddressesResponse() (response *AssignPrivateIpAddressesResponse) { - response = &AssignPrivateIpAddressesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go deleted file mode 100644 index f30fd2e7a4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AssociateEipAddress invokes the ecs.AssociateEipAddress API synchronously -func (client *Client) AssociateEipAddress(request *AssociateEipAddressRequest) (response *AssociateEipAddressResponse, err error) { - response = CreateAssociateEipAddressResponse() - err = client.DoAction(request, response) - return -} - -// AssociateEipAddressWithChan invokes the ecs.AssociateEipAddress API asynchronously -func (client *Client) AssociateEipAddressWithChan(request *AssociateEipAddressRequest) (<-chan *AssociateEipAddressResponse, <-chan error) { - responseChan := make(chan *AssociateEipAddressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AssociateEipAddress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AssociateEipAddressWithCallback invokes the ecs.AssociateEipAddress API asynchronously -func (client *Client) AssociateEipAddressWithCallback(request *AssociateEipAddressRequest, callback func(response *AssociateEipAddressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AssociateEipAddressResponse - var err error - defer close(result) - response, err = client.AssociateEipAddress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AssociateEipAddressRequest is the request struct for api AssociateEipAddress -type AssociateEipAddressRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AllocationId string `position:"Query" name:"AllocationId"` - InstanceType string `position:"Query" name:"InstanceType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// AssociateEipAddressResponse is the response struct for api AssociateEipAddress -type AssociateEipAddressResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAssociateEipAddressRequest creates a request to invoke AssociateEipAddress API -func CreateAssociateEipAddressRequest() (request *AssociateEipAddressRequest) { - request = &AssociateEipAddressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AssociateEipAddress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAssociateEipAddressResponse creates a response to parse from AssociateEipAddress response -func CreateAssociateEipAddressResponse() (response *AssociateEipAddressResponse) { - response = &AssociateEipAddressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go deleted file mode 100644 index 71abdbd58f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AssociateHaVip invokes the ecs.AssociateHaVip API synchronously -func (client *Client) AssociateHaVip(request *AssociateHaVipRequest) (response *AssociateHaVipResponse, err error) { - response = CreateAssociateHaVipResponse() - err = client.DoAction(request, response) - return -} - -// AssociateHaVipWithChan invokes the ecs.AssociateHaVip API asynchronously -func (client *Client) AssociateHaVipWithChan(request *AssociateHaVipRequest) (<-chan *AssociateHaVipResponse, <-chan error) { - responseChan := make(chan *AssociateHaVipResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AssociateHaVip(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AssociateHaVipWithCallback invokes the ecs.AssociateHaVip API asynchronously -func (client *Client) AssociateHaVipWithCallback(request *AssociateHaVipRequest, callback func(response *AssociateHaVipResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AssociateHaVipResponse - var err error - defer close(result) - response, err = client.AssociateHaVip(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AssociateHaVipRequest is the request struct for api AssociateHaVip -type AssociateHaVipRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - HaVipId string `position:"Query" name:"HaVipId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// AssociateHaVipResponse is the response struct for api AssociateHaVip -type AssociateHaVipResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAssociateHaVipRequest creates a request to invoke AssociateHaVip API -func CreateAssociateHaVipRequest() (request *AssociateHaVipRequest) { - request = &AssociateHaVipRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AssociateHaVip", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAssociateHaVipResponse creates a response to parse from AssociateHaVip response -func CreateAssociateHaVipResponse() (response *AssociateHaVipResponse) { - response = &AssociateHaVipResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go deleted file mode 100644 index 6797d497a7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AttachClassicLinkVpc invokes the ecs.AttachClassicLinkVpc API synchronously -func (client *Client) AttachClassicLinkVpc(request *AttachClassicLinkVpcRequest) (response *AttachClassicLinkVpcResponse, err error) { - response = CreateAttachClassicLinkVpcResponse() - err = client.DoAction(request, response) - return -} - -// AttachClassicLinkVpcWithChan invokes the ecs.AttachClassicLinkVpc API asynchronously -func (client *Client) AttachClassicLinkVpcWithChan(request *AttachClassicLinkVpcRequest) (<-chan *AttachClassicLinkVpcResponse, <-chan error) { - responseChan := make(chan *AttachClassicLinkVpcResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AttachClassicLinkVpc(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AttachClassicLinkVpcWithCallback invokes the ecs.AttachClassicLinkVpc API asynchronously -func (client *Client) AttachClassicLinkVpcWithCallback(request *AttachClassicLinkVpcRequest, callback func(response *AttachClassicLinkVpcResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AttachClassicLinkVpcResponse - var err error - defer close(result) - response, err = client.AttachClassicLinkVpc(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AttachClassicLinkVpcRequest is the request struct for api AttachClassicLinkVpc -type AttachClassicLinkVpcRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - VpcId string `position:"Query" name:"VpcId"` -} - -// AttachClassicLinkVpcResponse is the response struct for api AttachClassicLinkVpc -type AttachClassicLinkVpcResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAttachClassicLinkVpcRequest creates a request to invoke AttachClassicLinkVpc API -func CreateAttachClassicLinkVpcRequest() (request *AttachClassicLinkVpcRequest) { - request = &AttachClassicLinkVpcRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AttachClassicLinkVpc", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAttachClassicLinkVpcResponse creates a response to parse from AttachClassicLinkVpc response -func CreateAttachClassicLinkVpcResponse() (response *AttachClassicLinkVpcResponse) { - response = &AttachClassicLinkVpcResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go deleted file mode 100644 index 3b0190d5e3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go +++ /dev/null @@ -1,119 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AttachDisk invokes the ecs.AttachDisk API synchronously -func (client *Client) AttachDisk(request *AttachDiskRequest) (response *AttachDiskResponse, err error) { - response = CreateAttachDiskResponse() - err = client.DoAction(request, response) - return -} - -// AttachDiskWithChan invokes the ecs.AttachDisk API asynchronously -func (client *Client) AttachDiskWithChan(request *AttachDiskRequest) (<-chan *AttachDiskResponse, <-chan error) { - responseChan := make(chan *AttachDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AttachDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AttachDiskWithCallback invokes the ecs.AttachDisk API asynchronously -func (client *Client) AttachDiskWithCallback(request *AttachDiskRequest, callback func(response *AttachDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AttachDiskResponse - var err error - defer close(result) - response, err = client.AttachDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AttachDiskRequest is the request struct for api AttachDisk -type AttachDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KeyPairName string `position:"Query" name:"KeyPairName"` - Bootable requests.Boolean `position:"Query" name:"Bootable"` - Password string `position:"Query" name:"Password"` - DiskId string `position:"Query" name:"DiskId"` - DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AdditionalInfo AttachDiskAdditionalInfo `position:"Query" name:"AdditionalInfo" type:"Struct"` - InstanceId string `position:"Query" name:"InstanceId"` - Force requests.Boolean `position:"Query" name:"Force"` - Device string `position:"Query" name:"Device"` -} - -// AttachDiskAdditionalInfo is a repeated param struct in AttachDiskRequest -type AttachDiskAdditionalInfo struct { - EnableSRIOV string `name:"EnableSRIOV"` - Identifier string `name:"Identifier"` - SafeMode string `name:"SafeMode"` - TargetDevice string `name:"TargetDevice"` -} - -// AttachDiskResponse is the response struct for api AttachDisk -type AttachDiskResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAttachDiskRequest creates a request to invoke AttachDisk API -func CreateAttachDiskRequest() (request *AttachDiskRequest) { - request = &AttachDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AttachDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAttachDiskResponse creates a response to parse from AttachDisk response -func CreateAttachDiskResponse() (response *AttachDiskResponse) { - response = &AttachDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go deleted file mode 100644 index 8d49dc0845..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AttachInstanceRamRole invokes the ecs.AttachInstanceRamRole API synchronously -func (client *Client) AttachInstanceRamRole(request *AttachInstanceRamRoleRequest) (response *AttachInstanceRamRoleResponse, err error) { - response = CreateAttachInstanceRamRoleResponse() - err = client.DoAction(request, response) - return -} - -// AttachInstanceRamRoleWithChan invokes the ecs.AttachInstanceRamRole API asynchronously -func (client *Client) AttachInstanceRamRoleWithChan(request *AttachInstanceRamRoleRequest) (<-chan *AttachInstanceRamRoleResponse, <-chan error) { - responseChan := make(chan *AttachInstanceRamRoleResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AttachInstanceRamRole(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AttachInstanceRamRoleWithCallback invokes the ecs.AttachInstanceRamRole API asynchronously -func (client *Client) AttachInstanceRamRoleWithCallback(request *AttachInstanceRamRoleRequest, callback func(response *AttachInstanceRamRoleResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AttachInstanceRamRoleResponse - var err error - defer close(result) - response, err = client.AttachInstanceRamRole(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AttachInstanceRamRoleRequest is the request struct for api AttachInstanceRamRole -type AttachInstanceRamRoleRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Policy string `position:"Query" name:"Policy"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RamRoleName string `position:"Query" name:"RamRoleName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// AttachInstanceRamRoleResponse is the response struct for api AttachInstanceRamRole -type AttachInstanceRamRoleResponse struct { - *responses.BaseResponse - RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - FailCount int `json:"FailCount" xml:"FailCount"` - AttachInstanceRamRoleResults AttachInstanceRamRoleResults `json:"AttachInstanceRamRoleResults" xml:"AttachInstanceRamRoleResults"` -} - -// CreateAttachInstanceRamRoleRequest creates a request to invoke AttachInstanceRamRole API -func CreateAttachInstanceRamRoleRequest() (request *AttachInstanceRamRoleRequest) { - request = &AttachInstanceRamRoleRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AttachInstanceRamRole", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAttachInstanceRamRoleResponse creates a response to parse from AttachInstanceRamRole response -func CreateAttachInstanceRamRoleResponse() (response *AttachInstanceRamRoleResponse) { - response = &AttachInstanceRamRoleResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go deleted file mode 100644 index 492e97e425..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AttachKeyPair invokes the ecs.AttachKeyPair API synchronously -func (client *Client) AttachKeyPair(request *AttachKeyPairRequest) (response *AttachKeyPairResponse, err error) { - response = CreateAttachKeyPairResponse() - err = client.DoAction(request, response) - return -} - -// AttachKeyPairWithChan invokes the ecs.AttachKeyPair API asynchronously -func (client *Client) AttachKeyPairWithChan(request *AttachKeyPairRequest) (<-chan *AttachKeyPairResponse, <-chan error) { - responseChan := make(chan *AttachKeyPairResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AttachKeyPair(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AttachKeyPairWithCallback invokes the ecs.AttachKeyPair API asynchronously -func (client *Client) AttachKeyPairWithCallback(request *AttachKeyPairRequest, callback func(response *AttachKeyPairResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AttachKeyPairResponse - var err error - defer close(result) - response, err = client.AttachKeyPair(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AttachKeyPairRequest is the request struct for api AttachKeyPair -type AttachKeyPairRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KeyPairName string `position:"Query" name:"KeyPairName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// AttachKeyPairResponse is the response struct for api AttachKeyPair -type AttachKeyPairResponse struct { - *responses.BaseResponse - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount string `json:"TotalCount" xml:"TotalCount"` - FailCount string `json:"FailCount" xml:"FailCount"` - Results ResultsInAttachKeyPair `json:"Results" xml:"Results"` -} - -// CreateAttachKeyPairRequest creates a request to invoke AttachKeyPair API -func CreateAttachKeyPairRequest() (request *AttachKeyPairRequest) { - request = &AttachKeyPairRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AttachKeyPair", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAttachKeyPairResponse creates a response to parse from AttachKeyPair response -func CreateAttachKeyPairResponse() (response *AttachKeyPairResponse) { - response = &AttachKeyPairResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go deleted file mode 100644 index 71982f65b7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AttachNetworkInterface invokes the ecs.AttachNetworkInterface API synchronously -func (client *Client) AttachNetworkInterface(request *AttachNetworkInterfaceRequest) (response *AttachNetworkInterfaceResponse, err error) { - response = CreateAttachNetworkInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// AttachNetworkInterfaceWithChan invokes the ecs.AttachNetworkInterface API asynchronously -func (client *Client) AttachNetworkInterfaceWithChan(request *AttachNetworkInterfaceRequest) (<-chan *AttachNetworkInterfaceResponse, <-chan error) { - responseChan := make(chan *AttachNetworkInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AttachNetworkInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AttachNetworkInterfaceWithCallback invokes the ecs.AttachNetworkInterface API asynchronously -func (client *Client) AttachNetworkInterfaceWithCallback(request *AttachNetworkInterfaceRequest, callback func(response *AttachNetworkInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AttachNetworkInterfaceResponse - var err error - defer close(result) - response, err = client.AttachNetworkInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AttachNetworkInterfaceRequest is the request struct for api AttachNetworkInterface -type AttachNetworkInterfaceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TrunkNetworkInstanceId string `position:"Query" name:"TrunkNetworkInstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - WaitForNetworkConfigurationReady requests.Boolean `position:"Query" name:"WaitForNetworkConfigurationReady"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkCardIndex requests.Integer `position:"Query" name:"NetworkCardIndex"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// AttachNetworkInterfaceResponse is the response struct for api AttachNetworkInterface -type AttachNetworkInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAttachNetworkInterfaceRequest creates a request to invoke AttachNetworkInterface API -func CreateAttachNetworkInterfaceRequest() (request *AttachNetworkInterfaceRequest) { - request = &AttachNetworkInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AttachNetworkInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAttachNetworkInterfaceResponse creates a response to parse from AttachNetworkInterface response -func CreateAttachNetworkInterfaceResponse() (response *AttachNetworkInterfaceResponse) { - response = &AttachNetworkInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go deleted file mode 100644 index fe9a0facdd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go +++ /dev/null @@ -1,139 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AuthorizeSecurityGroup invokes the ecs.AuthorizeSecurityGroup API synchronously -func (client *Client) AuthorizeSecurityGroup(request *AuthorizeSecurityGroupRequest) (response *AuthorizeSecurityGroupResponse, err error) { - response = CreateAuthorizeSecurityGroupResponse() - err = client.DoAction(request, response) - return -} - -// AuthorizeSecurityGroupWithChan invokes the ecs.AuthorizeSecurityGroup API asynchronously -func (client *Client) AuthorizeSecurityGroupWithChan(request *AuthorizeSecurityGroupRequest) (<-chan *AuthorizeSecurityGroupResponse, <-chan error) { - responseChan := make(chan *AuthorizeSecurityGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AuthorizeSecurityGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AuthorizeSecurityGroupWithCallback invokes the ecs.AuthorizeSecurityGroup API asynchronously -func (client *Client) AuthorizeSecurityGroupWithCallback(request *AuthorizeSecurityGroupRequest, callback func(response *AuthorizeSecurityGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AuthorizeSecurityGroupResponse - var err error - defer close(result) - response, err = client.AuthorizeSecurityGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AuthorizeSecurityGroupRequest is the request struct for api AuthorizeSecurityGroup -type AuthorizeSecurityGroupRequest struct { - *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePrefixListId string `position:"Query" name:"SourcePrefixListId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` - SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` - Permissions *[]AuthorizeSecurityGroupPermissions `position:"Query" name:"Permissions" type:"Repeated"` - Policy string `position:"Query" name:"Policy"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - SourceGroupId string `position:"Query" name:"SourceGroupId"` -} - -// AuthorizeSecurityGroupPermissions is a repeated param struct in AuthorizeSecurityGroupRequest -type AuthorizeSecurityGroupPermissions struct { - Policy string `name:"Policy"` - Priority string `name:"Priority"` - IpProtocol string `name:"IpProtocol"` - SourceCidrIp string `name:"SourceCidrIp"` - Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` - SourceGroupId string `name:"SourceGroupId"` - SourcePrefixListId string `name:"SourcePrefixListId"` - PortRange string `name:"PortRange"` - DestCidrIp string `name:"DestCidrIp"` - Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` - SourcePortRange string `name:"SourcePortRange"` - SourceGroupOwnerAccount string `name:"SourceGroupOwnerAccount"` - SourceGroupOwnerId string `name:"SourceGroupOwnerId"` - NicType string `name:"NicType"` - Description string `name:"Description"` -} - -// AuthorizeSecurityGroupResponse is the response struct for api AuthorizeSecurityGroup -type AuthorizeSecurityGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAuthorizeSecurityGroupRequest creates a request to invoke AuthorizeSecurityGroup API -func CreateAuthorizeSecurityGroupRequest() (request *AuthorizeSecurityGroupRequest) { - request = &AuthorizeSecurityGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AuthorizeSecurityGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAuthorizeSecurityGroupResponse creates a response to parse from AuthorizeSecurityGroup response -func CreateAuthorizeSecurityGroupResponse() (response *AuthorizeSecurityGroupResponse) { - response = &AuthorizeSecurityGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go deleted file mode 100644 index f109cd6bac..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go +++ /dev/null @@ -1,139 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// AuthorizeSecurityGroupEgress invokes the ecs.AuthorizeSecurityGroupEgress API synchronously -func (client *Client) AuthorizeSecurityGroupEgress(request *AuthorizeSecurityGroupEgressRequest) (response *AuthorizeSecurityGroupEgressResponse, err error) { - response = CreateAuthorizeSecurityGroupEgressResponse() - err = client.DoAction(request, response) - return -} - -// AuthorizeSecurityGroupEgressWithChan invokes the ecs.AuthorizeSecurityGroupEgress API asynchronously -func (client *Client) AuthorizeSecurityGroupEgressWithChan(request *AuthorizeSecurityGroupEgressRequest) (<-chan *AuthorizeSecurityGroupEgressResponse, <-chan error) { - responseChan := make(chan *AuthorizeSecurityGroupEgressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AuthorizeSecurityGroupEgress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AuthorizeSecurityGroupEgressWithCallback invokes the ecs.AuthorizeSecurityGroupEgress API asynchronously -func (client *Client) AuthorizeSecurityGroupEgressWithCallback(request *AuthorizeSecurityGroupEgressRequest, callback func(response *AuthorizeSecurityGroupEgressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AuthorizeSecurityGroupEgressResponse - var err error - defer close(result) - response, err = client.AuthorizeSecurityGroupEgress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AuthorizeSecurityGroupEgressRequest is the request struct for api AuthorizeSecurityGroupEgress -type AuthorizeSecurityGroupEgressRequest struct { - *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - DestPrefixListId string `position:"Query" name:"DestPrefixListId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - Permissions *[]AuthorizeSecurityGroupEgressPermissions `position:"Query" name:"Permissions" type:"Repeated"` - Policy string `position:"Query" name:"Policy"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - DestGroupId string `position:"Query" name:"DestGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` -} - -// AuthorizeSecurityGroupEgressPermissions is a repeated param struct in AuthorizeSecurityGroupEgressRequest -type AuthorizeSecurityGroupEgressPermissions struct { - Policy string `name:"Policy"` - Priority string `name:"Priority"` - IpProtocol string `name:"IpProtocol"` - DestCidrIp string `name:"DestCidrIp"` - Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` - DestGroupId string `name:"DestGroupId"` - DestPrefixListId string `name:"DestPrefixListId"` - PortRange string `name:"PortRange"` - SourceCidrIp string `name:"SourceCidrIp"` - Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` - SourcePortRange string `name:"SourcePortRange"` - DestGroupOwnerAccount string `name:"DestGroupOwnerAccount"` - DestGroupOwnerId string `name:"DestGroupOwnerId"` - NicType string `name:"NicType"` - Description string `name:"Description"` -} - -// AuthorizeSecurityGroupEgressResponse is the response struct for api AuthorizeSecurityGroupEgress -type AuthorizeSecurityGroupEgressResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAuthorizeSecurityGroupEgressRequest creates a request to invoke AuthorizeSecurityGroupEgress API -func CreateAuthorizeSecurityGroupEgressRequest() (request *AuthorizeSecurityGroupEgressRequest) { - request = &AuthorizeSecurityGroupEgressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "AuthorizeSecurityGroupEgress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateAuthorizeSecurityGroupEgressResponse creates a response to parse from AuthorizeSecurityGroupEgress response -func CreateAuthorizeSecurityGroupEgressResponse() (response *AuthorizeSecurityGroupEgressResponse) { - response = &AuthorizeSecurityGroupEgressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go deleted file mode 100644 index 0aa7ce3742..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CancelAutoSnapshotPolicy invokes the ecs.CancelAutoSnapshotPolicy API synchronously -func (client *Client) CancelAutoSnapshotPolicy(request *CancelAutoSnapshotPolicyRequest) (response *CancelAutoSnapshotPolicyResponse, err error) { - response = CreateCancelAutoSnapshotPolicyResponse() - err = client.DoAction(request, response) - return -} - -// CancelAutoSnapshotPolicyWithChan invokes the ecs.CancelAutoSnapshotPolicy API asynchronously -func (client *Client) CancelAutoSnapshotPolicyWithChan(request *CancelAutoSnapshotPolicyRequest) (<-chan *CancelAutoSnapshotPolicyResponse, <-chan error) { - responseChan := make(chan *CancelAutoSnapshotPolicyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CancelAutoSnapshotPolicy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CancelAutoSnapshotPolicyWithCallback invokes the ecs.CancelAutoSnapshotPolicy API asynchronously -func (client *Client) CancelAutoSnapshotPolicyWithCallback(request *CancelAutoSnapshotPolicyRequest, callback func(response *CancelAutoSnapshotPolicyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CancelAutoSnapshotPolicyResponse - var err error - defer close(result) - response, err = client.CancelAutoSnapshotPolicy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CancelAutoSnapshotPolicyRequest is the request struct for api CancelAutoSnapshotPolicy -type CancelAutoSnapshotPolicyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DiskIds string `position:"Query" name:"diskIds"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// CancelAutoSnapshotPolicyResponse is the response struct for api CancelAutoSnapshotPolicy -type CancelAutoSnapshotPolicyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCancelAutoSnapshotPolicyRequest creates a request to invoke CancelAutoSnapshotPolicy API -func CreateCancelAutoSnapshotPolicyRequest() (request *CancelAutoSnapshotPolicyRequest) { - request = &CancelAutoSnapshotPolicyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CancelAutoSnapshotPolicy", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCancelAutoSnapshotPolicyResponse creates a response to parse from CancelAutoSnapshotPolicy response -func CreateCancelAutoSnapshotPolicyResponse() (response *CancelAutoSnapshotPolicyResponse) { - response = &CancelAutoSnapshotPolicyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go deleted file mode 100644 index 2f3ccd8285..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CancelCopyImage invokes the ecs.CancelCopyImage API synchronously -func (client *Client) CancelCopyImage(request *CancelCopyImageRequest) (response *CancelCopyImageResponse, err error) { - response = CreateCancelCopyImageResponse() - err = client.DoAction(request, response) - return -} - -// CancelCopyImageWithChan invokes the ecs.CancelCopyImage API asynchronously -func (client *Client) CancelCopyImageWithChan(request *CancelCopyImageRequest) (<-chan *CancelCopyImageResponse, <-chan error) { - responseChan := make(chan *CancelCopyImageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CancelCopyImage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CancelCopyImageWithCallback invokes the ecs.CancelCopyImage API asynchronously -func (client *Client) CancelCopyImageWithCallback(request *CancelCopyImageRequest, callback func(response *CancelCopyImageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CancelCopyImageResponse - var err error - defer close(result) - response, err = client.CancelCopyImage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CancelCopyImageRequest is the request struct for api CancelCopyImage -type CancelCopyImageRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// CancelCopyImageResponse is the response struct for api CancelCopyImage -type CancelCopyImageResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCancelCopyImageRequest creates a request to invoke CancelCopyImage API -func CreateCancelCopyImageRequest() (request *CancelCopyImageRequest) { - request = &CancelCopyImageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CancelCopyImage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCancelCopyImageResponse creates a response to parse from CancelCopyImage response -func CreateCancelCopyImageResponse() (response *CancelCopyImageResponse) { - response = &CancelCopyImageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_image_pipeline_execution.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_image_pipeline_execution.go deleted file mode 100644 index eca4700c52..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_image_pipeline_execution.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CancelImagePipelineExecution invokes the ecs.CancelImagePipelineExecution API synchronously -func (client *Client) CancelImagePipelineExecution(request *CancelImagePipelineExecutionRequest) (response *CancelImagePipelineExecutionResponse, err error) { - response = CreateCancelImagePipelineExecutionResponse() - err = client.DoAction(request, response) - return -} - -// CancelImagePipelineExecutionWithChan invokes the ecs.CancelImagePipelineExecution API asynchronously -func (client *Client) CancelImagePipelineExecutionWithChan(request *CancelImagePipelineExecutionRequest) (<-chan *CancelImagePipelineExecutionResponse, <-chan error) { - responseChan := make(chan *CancelImagePipelineExecutionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CancelImagePipelineExecution(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CancelImagePipelineExecutionWithCallback invokes the ecs.CancelImagePipelineExecution API asynchronously -func (client *Client) CancelImagePipelineExecutionWithCallback(request *CancelImagePipelineExecutionRequest, callback func(response *CancelImagePipelineExecutionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CancelImagePipelineExecutionResponse - var err error - defer close(result) - response, err = client.CancelImagePipelineExecution(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CancelImagePipelineExecutionRequest is the request struct for api CancelImagePipelineExecution -type CancelImagePipelineExecutionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ExecutionId string `position:"Query" name:"ExecutionId"` - TemplateTag *[]CancelImagePipelineExecutionTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// CancelImagePipelineExecutionTemplateTag is a repeated param struct in CancelImagePipelineExecutionRequest -type CancelImagePipelineExecutionTemplateTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CancelImagePipelineExecutionResponse is the response struct for api CancelImagePipelineExecution -type CancelImagePipelineExecutionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCancelImagePipelineExecutionRequest creates a request to invoke CancelImagePipelineExecution API -func CreateCancelImagePipelineExecutionRequest() (request *CancelImagePipelineExecutionRequest) { - request = &CancelImagePipelineExecutionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CancelImagePipelineExecution", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCancelImagePipelineExecutionResponse creates a response to parse from CancelImagePipelineExecution response -func CreateCancelImagePipelineExecutionResponse() (response *CancelImagePipelineExecutionResponse) { - response = &CancelImagePipelineExecutionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go deleted file mode 100644 index afd7090a42..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CancelPhysicalConnection invokes the ecs.CancelPhysicalConnection API synchronously -func (client *Client) CancelPhysicalConnection(request *CancelPhysicalConnectionRequest) (response *CancelPhysicalConnectionResponse, err error) { - response = CreateCancelPhysicalConnectionResponse() - err = client.DoAction(request, response) - return -} - -// CancelPhysicalConnectionWithChan invokes the ecs.CancelPhysicalConnection API asynchronously -func (client *Client) CancelPhysicalConnectionWithChan(request *CancelPhysicalConnectionRequest) (<-chan *CancelPhysicalConnectionResponse, <-chan error) { - responseChan := make(chan *CancelPhysicalConnectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CancelPhysicalConnection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CancelPhysicalConnectionWithCallback invokes the ecs.CancelPhysicalConnection API asynchronously -func (client *Client) CancelPhysicalConnectionWithCallback(request *CancelPhysicalConnectionRequest, callback func(response *CancelPhysicalConnectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CancelPhysicalConnectionResponse - var err error - defer close(result) - response, err = client.CancelPhysicalConnection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CancelPhysicalConnectionRequest is the request struct for api CancelPhysicalConnection -type CancelPhysicalConnectionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` -} - -// CancelPhysicalConnectionResponse is the response struct for api CancelPhysicalConnection -type CancelPhysicalConnectionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCancelPhysicalConnectionRequest creates a request to invoke CancelPhysicalConnection API -func CreateCancelPhysicalConnectionRequest() (request *CancelPhysicalConnectionRequest) { - request = &CancelPhysicalConnectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CancelPhysicalConnection", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCancelPhysicalConnectionResponse creates a response to parse from CancelPhysicalConnection response -func CreateCancelPhysicalConnectionResponse() (response *CancelPhysicalConnectionResponse) { - response = &CancelPhysicalConnectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go deleted file mode 100644 index 8613b1eaa8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CancelSimulatedSystemEvents invokes the ecs.CancelSimulatedSystemEvents API synchronously -func (client *Client) CancelSimulatedSystemEvents(request *CancelSimulatedSystemEventsRequest) (response *CancelSimulatedSystemEventsResponse, err error) { - response = CreateCancelSimulatedSystemEventsResponse() - err = client.DoAction(request, response) - return -} - -// CancelSimulatedSystemEventsWithChan invokes the ecs.CancelSimulatedSystemEvents API asynchronously -func (client *Client) CancelSimulatedSystemEventsWithChan(request *CancelSimulatedSystemEventsRequest) (<-chan *CancelSimulatedSystemEventsResponse, <-chan error) { - responseChan := make(chan *CancelSimulatedSystemEventsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CancelSimulatedSystemEvents(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CancelSimulatedSystemEventsWithCallback invokes the ecs.CancelSimulatedSystemEvents API asynchronously -func (client *Client) CancelSimulatedSystemEventsWithCallback(request *CancelSimulatedSystemEventsRequest, callback func(response *CancelSimulatedSystemEventsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CancelSimulatedSystemEventsResponse - var err error - defer close(result) - response, err = client.CancelSimulatedSystemEvents(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CancelSimulatedSystemEventsRequest is the request struct for api CancelSimulatedSystemEvents -type CancelSimulatedSystemEventsRequest struct { - *requests.RpcRequest - EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// CancelSimulatedSystemEventsResponse is the response struct for api CancelSimulatedSystemEvents -type CancelSimulatedSystemEventsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCancelSimulatedSystemEventsRequest creates a request to invoke CancelSimulatedSystemEvents API -func CreateCancelSimulatedSystemEventsRequest() (request *CancelSimulatedSystemEventsRequest) { - request = &CancelSimulatedSystemEventsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CancelSimulatedSystemEvents", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCancelSimulatedSystemEventsResponse creates a response to parse from CancelSimulatedSystemEvents response -func CreateCancelSimulatedSystemEventsResponse() (response *CancelSimulatedSystemEventsResponse) { - response = &CancelSimulatedSystemEventsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go deleted file mode 100644 index 70d6b4aff3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CancelTask invokes the ecs.CancelTask API synchronously -func (client *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error) { - response = CreateCancelTaskResponse() - err = client.DoAction(request, response) - return -} - -// CancelTaskWithChan invokes the ecs.CancelTask API asynchronously -func (client *Client) CancelTaskWithChan(request *CancelTaskRequest) (<-chan *CancelTaskResponse, <-chan error) { - responseChan := make(chan *CancelTaskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CancelTask(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CancelTaskWithCallback invokes the ecs.CancelTask API asynchronously -func (client *Client) CancelTaskWithCallback(request *CancelTaskRequest, callback func(response *CancelTaskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CancelTaskResponse - var err error - defer close(result) - response, err = client.CancelTask(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CancelTaskRequest is the request struct for api CancelTask -type CancelTaskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TaskId string `position:"Query" name:"TaskId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// CancelTaskResponse is the response struct for api CancelTask -type CancelTaskResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCancelTaskRequest creates a request to invoke CancelTask API -func CreateCancelTaskRequest() (request *CancelTaskRequest) { - request = &CancelTaskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CancelTask", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCancelTaskResponse creates a response to parse from CancelTask response -func CreateCancelTaskResponse() (response *CancelTaskResponse) { - response = &CancelTaskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go deleted file mode 100644 index e7ffd52e2c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/client.go +++ /dev/null @@ -1,129 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "reflect" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" -) - -// Client is the sdk client struct, each func corresponds to an OpenAPI -type Client struct { - sdk.Client -} - -// SetClientProperty Set Property by Reflect -func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) { - v := reflect.ValueOf(client).Elem() - if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() { - v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue)) - } -} - -// SetEndpointDataToClient Set EndpointMap and ENdpointType -func SetEndpointDataToClient(client *Client) { - SetClientProperty(client, "EndpointMap", GetEndpointMap()) - SetClientProperty(client, "EndpointType", GetEndpointType()) -} - -// NewClient creates a sdk client with environment variables -func NewClient() (client *Client, err error) { - client = &Client{} - err = client.Init() - SetEndpointDataToClient(client) - return -} - -// NewClientWithProvider creates a sdk client with providers -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { - client = &Client{} - var pc provider.Provider - if len(providers) == 0 { - pc = provider.DefaultChain - } else { - pc = provider.NewProviderChain(providers) - } - err = client.InitWithProviderChain(regionId, pc) - SetEndpointDataToClient(client) - return -} - -// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential -// this is the common api to create a sdk client -func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) { - client = &Client{} - err = client.InitWithOptions(regionId, config, credential) - SetEndpointDataToClient(client) - return -} - -// NewClientWithAccessKey is a shortcut to create sdk client with accesskey -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { - client = &Client{} - err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) - SetEndpointDataToClient(client) - return -} - -// NewClientWithStsToken is a shortcut to create sdk client with sts token -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { - client = &Client{} - err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) - SetEndpointDataToClient(client) - return -} - -// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithEcsRamRole(regionId, roleName) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { - client = &Client{} - err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) - SetEndpointDataToClient(client) - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go deleted file mode 100644 index 301a93cf00..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ConnectRouterInterface invokes the ecs.ConnectRouterInterface API synchronously -func (client *Client) ConnectRouterInterface(request *ConnectRouterInterfaceRequest) (response *ConnectRouterInterfaceResponse, err error) { - response = CreateConnectRouterInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// ConnectRouterInterfaceWithChan invokes the ecs.ConnectRouterInterface API asynchronously -func (client *Client) ConnectRouterInterfaceWithChan(request *ConnectRouterInterfaceRequest) (<-chan *ConnectRouterInterfaceResponse, <-chan error) { - responseChan := make(chan *ConnectRouterInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ConnectRouterInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ConnectRouterInterfaceWithCallback invokes the ecs.ConnectRouterInterface API asynchronously -func (client *Client) ConnectRouterInterfaceWithCallback(request *ConnectRouterInterfaceRequest, callback func(response *ConnectRouterInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ConnectRouterInterfaceResponse - var err error - defer close(result) - response, err = client.ConnectRouterInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ConnectRouterInterfaceRequest is the request struct for api ConnectRouterInterface -type ConnectRouterInterfaceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` -} - -// ConnectRouterInterfaceResponse is the response struct for api ConnectRouterInterface -type ConnectRouterInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateConnectRouterInterfaceRequest creates a request to invoke ConnectRouterInterface API -func CreateConnectRouterInterfaceRequest() (request *ConnectRouterInterfaceRequest) { - request = &ConnectRouterInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ConnectRouterInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateConnectRouterInterfaceResponse creates a response to parse from ConnectRouterInterface response -func CreateConnectRouterInterfaceResponse() (response *ConnectRouterInterfaceResponse) { - response = &ConnectRouterInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go deleted file mode 100644 index 9be9c7a8a7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ConvertNatPublicIpToEip invokes the ecs.ConvertNatPublicIpToEip API synchronously -func (client *Client) ConvertNatPublicIpToEip(request *ConvertNatPublicIpToEipRequest) (response *ConvertNatPublicIpToEipResponse, err error) { - response = CreateConvertNatPublicIpToEipResponse() - err = client.DoAction(request, response) - return -} - -// ConvertNatPublicIpToEipWithChan invokes the ecs.ConvertNatPublicIpToEip API asynchronously -func (client *Client) ConvertNatPublicIpToEipWithChan(request *ConvertNatPublicIpToEipRequest) (<-chan *ConvertNatPublicIpToEipResponse, <-chan error) { - responseChan := make(chan *ConvertNatPublicIpToEipResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ConvertNatPublicIpToEip(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ConvertNatPublicIpToEipWithCallback invokes the ecs.ConvertNatPublicIpToEip API asynchronously -func (client *Client) ConvertNatPublicIpToEipWithCallback(request *ConvertNatPublicIpToEipRequest, callback func(response *ConvertNatPublicIpToEipResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ConvertNatPublicIpToEipResponse - var err error - defer close(result) - response, err = client.ConvertNatPublicIpToEip(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ConvertNatPublicIpToEipRequest is the request struct for api ConvertNatPublicIpToEip -type ConvertNatPublicIpToEipRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// ConvertNatPublicIpToEipResponse is the response struct for api ConvertNatPublicIpToEip -type ConvertNatPublicIpToEipResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateConvertNatPublicIpToEipRequest creates a request to invoke ConvertNatPublicIpToEip API -func CreateConvertNatPublicIpToEipRequest() (request *ConvertNatPublicIpToEipRequest) { - request = &ConvertNatPublicIpToEipRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ConvertNatPublicIpToEip", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateConvertNatPublicIpToEipResponse creates a response to parse from ConvertNatPublicIpToEip response -func CreateConvertNatPublicIpToEipResponse() (response *ConvertNatPublicIpToEipResponse) { - response = &ConvertNatPublicIpToEipResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go deleted file mode 100644 index c170843c8a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CopyImage invokes the ecs.CopyImage API synchronously -func (client *Client) CopyImage(request *CopyImageRequest) (response *CopyImageResponse, err error) { - response = CreateCopyImageResponse() - err = client.DoAction(request, response) - return -} - -// CopyImageWithChan invokes the ecs.CopyImage API asynchronously -func (client *Client) CopyImageWithChan(request *CopyImageRequest) (<-chan *CopyImageResponse, <-chan error) { - responseChan := make(chan *CopyImageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CopyImage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CopyImageWithCallback invokes the ecs.CopyImage API asynchronously -func (client *Client) CopyImageWithCallback(request *CopyImageRequest, callback func(response *CopyImageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CopyImageResponse - var err error - defer close(result) - response, err = client.CopyImage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CopyImageRequest is the request struct for api CopyImage -type CopyImageRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - EncryptAlgorithm string `position:"Query" name:"EncryptAlgorithm"` - DestinationRegionId string `position:"Query" name:"DestinationRegionId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CopyImageTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - DestinationImageName string `position:"Query" name:"DestinationImageName"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` - DestinationDescription string `position:"Query" name:"DestinationDescription"` -} - -// CopyImageTag is a repeated param struct in CopyImageRequest -type CopyImageTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CopyImageResponse is the response struct for api CopyImage -type CopyImageResponse struct { - *responses.BaseResponse - ImageId string `json:"ImageId" xml:"ImageId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCopyImageRequest creates a request to invoke CopyImage API -func CreateCopyImageRequest() (request *CopyImageRequest) { - request = &CopyImageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CopyImage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCopyImageResponse creates a response to parse from CopyImage response -func CreateCopyImageResponse() (response *CopyImageResponse) { - response = &CopyImageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_snapshot.go deleted file mode 100644 index 1c8a1c5319..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_snapshot.go +++ /dev/null @@ -1,127 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CopySnapshot invokes the ecs.CopySnapshot API synchronously -func (client *Client) CopySnapshot(request *CopySnapshotRequest) (response *CopySnapshotResponse, err error) { - response = CreateCopySnapshotResponse() - err = client.DoAction(request, response) - return -} - -// CopySnapshotWithChan invokes the ecs.CopySnapshot API asynchronously -func (client *Client) CopySnapshotWithChan(request *CopySnapshotRequest) (<-chan *CopySnapshotResponse, <-chan error) { - responseChan := make(chan *CopySnapshotResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CopySnapshot(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CopySnapshotWithCallback invokes the ecs.CopySnapshot API asynchronously -func (client *Client) CopySnapshotWithCallback(request *CopySnapshotRequest, callback func(response *CopySnapshotResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CopySnapshotResponse - var err error - defer close(result) - response, err = client.CopySnapshot(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CopySnapshotRequest is the request struct for api CopySnapshot -type CopySnapshotRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - ClientToken string `position:"Query" name:"ClientToken"` - DestinationRegionId string `position:"Query" name:"DestinationRegionId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CopySnapshotTag `position:"Query" name:"Tag" type:"Repeated"` - Arn *[]CopySnapshotArn `position:"Query" name:"Arn" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DestinationSnapshotName string `position:"Query" name:"DestinationSnapshotName"` - DestinationSnapshotDescription string `position:"Query" name:"DestinationSnapshotDescription"` - Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` - DestinationStorageLocationArn string `position:"Query" name:"DestinationStorageLocationArn"` -} - -// CopySnapshotTag is a repeated param struct in CopySnapshotRequest -type CopySnapshotTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CopySnapshotArn is a repeated param struct in CopySnapshotRequest -type CopySnapshotArn struct { - RoleType string `name:"RoleType"` - Rolearn string `name:"Rolearn"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// CopySnapshotResponse is the response struct for api CopySnapshot -type CopySnapshotResponse struct { - *responses.BaseResponse - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCopySnapshotRequest creates a request to invoke CopySnapshot API -func CreateCopySnapshotRequest() (request *CopySnapshotRequest) { - request = &CopySnapshotRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CopySnapshot", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCopySnapshotResponse creates a response to parse from CopySnapshot response -func CreateCopySnapshotResponse() (response *CopySnapshotResponse) { - response = &CopySnapshotResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_activation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_activation.go deleted file mode 100644 index 52874777a5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_activation.go +++ /dev/null @@ -1,117 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateActivation invokes the ecs.CreateActivation API synchronously -func (client *Client) CreateActivation(request *CreateActivationRequest) (response *CreateActivationResponse, err error) { - response = CreateCreateActivationResponse() - err = client.DoAction(request, response) - return -} - -// CreateActivationWithChan invokes the ecs.CreateActivation API asynchronously -func (client *Client) CreateActivationWithChan(request *CreateActivationRequest) (<-chan *CreateActivationResponse, <-chan error) { - responseChan := make(chan *CreateActivationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateActivation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateActivationWithCallback invokes the ecs.CreateActivation API asynchronously -func (client *Client) CreateActivationWithCallback(request *CreateActivationRequest, callback func(response *CreateActivationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateActivationResponse - var err error - defer close(result) - response, err = client.CreateActivation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateActivationRequest is the request struct for api CreateActivation -type CreateActivationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - InstanceCount requests.Integer `position:"Query" name:"InstanceCount"` - Tag *[]CreateActivationTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceName string `position:"Query" name:"InstanceName"` - TimeToLiveInHours requests.Integer `position:"Query" name:"TimeToLiveInHours"` - IpAddressRange string `position:"Query" name:"IpAddressRange"` -} - -// CreateActivationTag is a repeated param struct in CreateActivationRequest -type CreateActivationTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateActivationResponse is the response struct for api CreateActivation -type CreateActivationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ActivationCode string `json:"ActivationCode" xml:"ActivationCode"` - ActivationId string `json:"ActivationId" xml:"ActivationId"` -} - -// CreateCreateActivationRequest creates a request to invoke CreateActivation API -func CreateCreateActivationRequest() (request *CreateActivationRequest) { - request = &CreateActivationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateActivation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateActivationResponse creates a response to parse from CreateActivation response -func CreateCreateActivationResponse() (response *CreateActivationResponse) { - response = &CreateActivationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go deleted file mode 100644 index 416d685adf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go +++ /dev/null @@ -1,283 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateAutoProvisioningGroup invokes the ecs.CreateAutoProvisioningGroup API synchronously -func (client *Client) CreateAutoProvisioningGroup(request *CreateAutoProvisioningGroupRequest) (response *CreateAutoProvisioningGroupResponse, err error) { - response = CreateCreateAutoProvisioningGroupResponse() - err = client.DoAction(request, response) - return -} - -// CreateAutoProvisioningGroupWithChan invokes the ecs.CreateAutoProvisioningGroup API asynchronously -func (client *Client) CreateAutoProvisioningGroupWithChan(request *CreateAutoProvisioningGroupRequest) (<-chan *CreateAutoProvisioningGroupResponse, <-chan error) { - responseChan := make(chan *CreateAutoProvisioningGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateAutoProvisioningGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateAutoProvisioningGroupWithCallback invokes the ecs.CreateAutoProvisioningGroup API asynchronously -func (client *Client) CreateAutoProvisioningGroupWithCallback(request *CreateAutoProvisioningGroupRequest, callback func(response *CreateAutoProvisioningGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateAutoProvisioningGroupResponse - var err error - defer close(result) - response, err = client.CreateAutoProvisioningGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateAutoProvisioningGroupRequest is the request struct for api CreateAutoProvisioningGroup -type CreateAutoProvisioningGroupRequest struct { - *requests.RpcRequest - LaunchConfigurationDataDisk *[]CreateAutoProvisioningGroupLaunchConfigurationDataDisk `position:"Query" name:"LaunchConfiguration.DataDisk" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LaunchConfigurationSystemDiskCategory string `position:"Query" name:"LaunchConfiguration.SystemDiskCategory"` - AutoProvisioningGroupType string `position:"Query" name:"AutoProvisioningGroupType"` - LaunchConfigurationSystemDiskPerformanceLevel string `position:"Query" name:"LaunchConfiguration.SystemDiskPerformanceLevel"` - LaunchConfigurationHostNames *[]string `position:"Query" name:"LaunchConfiguration.HostNames" type:"Repeated"` - LaunchConfigurationSecurityGroupIds *[]string `position:"Query" name:"LaunchConfiguration.SecurityGroupIds" type:"Repeated"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LaunchConfigurationImageId string `position:"Query" name:"LaunchConfiguration.ImageId"` - LaunchConfigurationResourceGroupId string `position:"Query" name:"LaunchConfiguration.ResourceGroupId"` - ResourcePlanningOnly requests.Boolean `position:"Query" name:"ResourcePlanningOnly"` - LaunchConfigurationPassword string `position:"Query" name:"LaunchConfiguration.Password"` - LaunchConfigurationAutoReleaseTime string `position:"Query" name:"LaunchConfiguration.AutoReleaseTime"` - PayAsYouGoAllocationStrategy string `position:"Query" name:"PayAsYouGoAllocationStrategy"` - DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` - Tag *[]CreateAutoProvisioningGroupTag `position:"Query" name:"Tag" type:"Repeated"` - LaunchConfigurationKeyPairName string `position:"Query" name:"LaunchConfiguration.KeyPairName"` - SystemDiskConfig *[]CreateAutoProvisioningGroupSystemDiskConfig `position:"Query" name:"SystemDiskConfig" type:"Repeated"` - DataDiskConfig *[]CreateAutoProvisioningGroupDataDiskConfig `position:"Query" name:"DataDiskConfig" type:"Repeated"` - ValidUntil string `position:"Query" name:"ValidUntil"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - PrePaidOptions CreateAutoProvisioningGroupPrePaidOptions `position:"Query" name:"PrePaidOptions" type:"Struct"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LaunchConfigurationImageFamily string `position:"Query" name:"LaunchConfiguration.ImageFamily"` - LaunchConfigurationSystemDiskSize requests.Integer `position:"Query" name:"LaunchConfiguration.SystemDiskSize"` - LaunchConfigurationInternetMaxBandwidthOut requests.Integer `position:"Query" name:"LaunchConfiguration.InternetMaxBandwidthOut"` - LaunchConfigurationHostName string `position:"Query" name:"LaunchConfiguration.HostName"` - MinTargetCapacity string `position:"Query" name:"MinTargetCapacity"` - MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` - LaunchConfiguration CreateAutoProvisioningGroupLaunchConfiguration `position:"Query" name:"LaunchConfiguration" type:"Struct"` - LaunchConfigurationArn *[]CreateAutoProvisioningGroupLaunchConfigurationArn `position:"Query" name:"LaunchConfiguration.Arn" type:"Repeated"` - LaunchConfigurationPasswordInherit requests.Boolean `position:"Query" name:"LaunchConfiguration.PasswordInherit"` - ClientToken string `position:"Query" name:"ClientToken"` - LaunchConfigurationSecurityGroupId string `position:"Query" name:"LaunchConfiguration.SecurityGroupId"` - Description string `position:"Query" name:"Description"` - TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` - LaunchConfigurationUserData string `position:"Query" name:"LaunchConfiguration.UserData"` - LaunchConfigurationCreditSpecification string `position:"Query" name:"LaunchConfiguration.CreditSpecification"` - LaunchConfigurationSystemDisk CreateAutoProvisioningGroupLaunchConfigurationSystemDisk `position:"Query" name:"LaunchConfiguration.SystemDisk" type:"Struct"` - LaunchConfigurationInstanceName string `position:"Query" name:"LaunchConfiguration.InstanceName"` - LaunchConfigurationInstanceDescription string `position:"Query" name:"LaunchConfiguration.InstanceDescription"` - SpotAllocationStrategy string `position:"Query" name:"SpotAllocationStrategy"` - ResourcePoolOptions CreateAutoProvisioningGroupResourcePoolOptions `position:"Query" name:"ResourcePoolOptions" type:"Struct"` - TerminateInstances requests.Boolean `position:"Query" name:"TerminateInstances"` - LaunchConfigurationSystemDiskName string `position:"Query" name:"LaunchConfiguration.SystemDiskName"` - LaunchConfigurationSystemDiskDescription string `position:"Query" name:"LaunchConfiguration.SystemDiskDescription"` - ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` - LaunchTemplateConfig *[]CreateAutoProvisioningGroupLaunchTemplateConfig `position:"Query" name:"LaunchTemplateConfig" type:"Repeated"` - LaunchConfigurationRamRoleName string `position:"Query" name:"LaunchConfiguration.RamRoleName"` - LaunchConfigurationInternetMaxBandwidthIn requests.Integer `position:"Query" name:"LaunchConfiguration.InternetMaxBandwidthIn"` - SpotInstanceInterruptionBehavior string `position:"Query" name:"SpotInstanceInterruptionBehavior"` - LaunchConfigurationSecurityEnhancementStrategy string `position:"Query" name:"LaunchConfiguration.SecurityEnhancementStrategy"` - LaunchConfigurationTag *[]CreateAutoProvisioningGroupLaunchConfigurationTag `position:"Query" name:"LaunchConfiguration.Tag" type:"Repeated"` - LaunchConfigurationDeploymentSetId string `position:"Query" name:"LaunchConfiguration.DeploymentSetId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SpotInstancePoolsToUseCount requests.Integer `position:"Query" name:"SpotInstancePoolsToUseCount"` - LaunchConfigurationInternetChargeType string `position:"Query" name:"LaunchConfiguration.InternetChargeType"` - LaunchTemplateVersion string `position:"Query" name:"LaunchTemplateVersion"` - LaunchConfigurationIoOptimized string `position:"Query" name:"LaunchConfiguration.IoOptimized"` - PayAsYouGoTargetCapacity string `position:"Query" name:"PayAsYouGoTargetCapacity"` - HibernationOptionsConfigured requests.Boolean `position:"Query" name:"HibernationOptionsConfigured"` - TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` - SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` - LaunchConfigurationNetworkInterface *[]CreateAutoProvisioningGroupLaunchConfigurationNetworkInterface `position:"Query" name:"LaunchConfiguration.NetworkInterface" type:"Repeated"` - ValidFrom string `position:"Query" name:"ValidFrom"` - AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"` - LaunchConfigurationAdditionalInfo CreateAutoProvisioningGroupLaunchConfigurationAdditionalInfo `position:"Query" name:"LaunchConfiguration.AdditionalInfo" type:"Struct"` -} - -// CreateAutoProvisioningGroupLaunchConfigurationDataDisk is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchConfigurationDataDisk struct { - PerformanceLevel string `name:"PerformanceLevel"` - KmsKeyId string `name:"KmsKeyId"` - Description string `name:"Description"` - SnapshotId string `name:"SnapshotId"` - Size string `name:"Size"` - Device string `name:"Device"` - DiskName string `name:"DiskName"` - Category string `name:"Category"` - DeleteWithInstance string `name:"DeleteWithInstance"` - Encrypted string `name:"Encrypted"` - EncryptAlgorithm string `name:"EncryptAlgorithm"` - ProvisionedIops string `name:"ProvisionedIops"` - BurstingEnabled string `name:"BurstingEnabled"` -} - -// CreateAutoProvisioningGroupTag is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateAutoProvisioningGroupSystemDiskConfig is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupSystemDiskConfig struct { - DiskCategory string `name:"DiskCategory"` -} - -// CreateAutoProvisioningGroupDataDiskConfig is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupDataDiskConfig struct { - DiskCategory string `name:"DiskCategory"` -} - -// CreateAutoProvisioningGroupPrePaidOptions is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupPrePaidOptions struct { - SpecifyCapacityDistribution *[]CreateAutoProvisioningGroupPrePaidOptionsSpecifyCapacityDistributionItem `name:"SpecifyCapacityDistribution" type:"Repeated"` -} - -// CreateAutoProvisioningGroupLaunchConfiguration is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchConfiguration struct { - Period string `name:"Period"` - PeriodUnit string `name:"PeriodUnit"` - AutoRenew string `name:"AutoRenew"` - AutoRenewPeriod string `name:"AutoRenewPeriod"` -} - -// CreateAutoProvisioningGroupLaunchConfigurationArn is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchConfigurationArn struct { - Rolearn string `name:"Rolearn"` - RoleType string `name:"RoleType"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// CreateAutoProvisioningGroupLaunchConfigurationSystemDisk is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchConfigurationSystemDisk struct { - Encrypted string `name:"Encrypted"` - KMSKeyId string `name:"KMSKeyId"` - EncryptAlgorithm string `name:"EncryptAlgorithm"` - ProvisionedIops string `name:"ProvisionedIops"` - BurstingEnabled string `name:"BurstingEnabled"` -} - -// CreateAutoProvisioningGroupResourcePoolOptions is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupResourcePoolOptions struct { - Strategy string `name:"Strategy"` - PrivatePoolIds *[]string `name:"PrivatePoolIds" type:"Repeated"` -} - -// CreateAutoProvisioningGroupLaunchTemplateConfig is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchTemplateConfig struct { - VSwitchId string `name:"VSwitchId"` - MaxPrice string `name:"MaxPrice"` - Priority string `name:"Priority"` - InstanceType string `name:"InstanceType"` - WeightedCapacity string `name:"WeightedCapacity"` - MaxQuantity string `name:"MaxQuantity"` - Cores *[]string `name:"Cores" type:"Repeated"` - Memories *[]string `name:"Memories" type:"Repeated"` - InstanceFamilyLevel string `name:"InstanceFamilyLevel"` - ExcludedInstanceTypes *[]string `name:"ExcludedInstanceTypes" type:"Repeated"` - Architectures *[]string `name:"Architectures" type:"Repeated"` - BurstablePerformance string `name:"BurstablePerformance"` - SecondaryNetworkInterface *[]CreateAutoProvisioningGroupLaunchTemplateConfigSecondaryNetworkInterface `name:"SecondaryNetworkInterface" type:"Repeated"` - ImageId string `name:"ImageId"` -} - -// CreateAutoProvisioningGroupLaunchConfigurationTag is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchConfigurationTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateAutoProvisioningGroupLaunchConfigurationNetworkInterface is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchConfigurationNetworkInterface struct { - SecurityGroupId string `name:"SecurityGroupId"` - SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` - InstanceType string `name:"InstanceType"` -} - -// CreateAutoProvisioningGroupLaunchConfigurationAdditionalInfo is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchConfigurationAdditionalInfo struct { - PvdConfig string `name:"PvdConfig"` -} - -// CreateAutoProvisioningGroupPrePaidOptionsSpecifyCapacityDistributionItem is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupPrePaidOptionsSpecifyCapacityDistributionItem struct { - InstanceTypes *[]string `name:"InstanceTypes" type:"Repeated"` - MinTargetCapacity string `name:"MinTargetCapacity"` -} - -// CreateAutoProvisioningGroupLaunchTemplateConfigSecondaryNetworkInterface is a repeated param struct in CreateAutoProvisioningGroupRequest -type CreateAutoProvisioningGroupLaunchTemplateConfigSecondaryNetworkInterface struct { - VSwitchId string `name:"VSwitchId"` -} - -// CreateAutoProvisioningGroupResponse is the response struct for api CreateAutoProvisioningGroup -type CreateAutoProvisioningGroupResponse struct { - *responses.BaseResponse - AutoProvisioningGroupId string `json:"AutoProvisioningGroupId" xml:"AutoProvisioningGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` - LaunchResults LaunchResults `json:"LaunchResults" xml:"LaunchResults"` -} - -// CreateCreateAutoProvisioningGroupRequest creates a request to invoke CreateAutoProvisioningGroup API -func CreateCreateAutoProvisioningGroupRequest() (request *CreateAutoProvisioningGroupRequest) { - request = &CreateAutoProvisioningGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateAutoProvisioningGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateAutoProvisioningGroupResponse creates a response to parse from CreateAutoProvisioningGroup response -func CreateCreateAutoProvisioningGroupResponse() (response *CreateAutoProvisioningGroupResponse) { - response = &CreateAutoProvisioningGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go deleted file mode 100644 index 51893d7263..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go +++ /dev/null @@ -1,133 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateAutoSnapshotPolicy invokes the ecs.CreateAutoSnapshotPolicy API synchronously -func (client *Client) CreateAutoSnapshotPolicy(request *CreateAutoSnapshotPolicyRequest) (response *CreateAutoSnapshotPolicyResponse, err error) { - response = CreateCreateAutoSnapshotPolicyResponse() - err = client.DoAction(request, response) - return -} - -// CreateAutoSnapshotPolicyWithChan invokes the ecs.CreateAutoSnapshotPolicy API asynchronously -func (client *Client) CreateAutoSnapshotPolicyWithChan(request *CreateAutoSnapshotPolicyRequest) (<-chan *CreateAutoSnapshotPolicyResponse, <-chan error) { - responseChan := make(chan *CreateAutoSnapshotPolicyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateAutoSnapshotPolicy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateAutoSnapshotPolicyWithCallback invokes the ecs.CreateAutoSnapshotPolicy API asynchronously -func (client *Client) CreateAutoSnapshotPolicyWithCallback(request *CreateAutoSnapshotPolicyRequest, callback func(response *CreateAutoSnapshotPolicyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateAutoSnapshotPolicyResponse - var err error - defer close(result) - response, err = client.CreateAutoSnapshotPolicy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateAutoSnapshotPolicyRequest is the request struct for api CreateAutoSnapshotPolicy -type CreateAutoSnapshotPolicyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CopyEncryptionConfiguration CreateAutoSnapshotPolicyCopyEncryptionConfiguration `position:"Query" name:"CopyEncryptionConfiguration" type:"Struct"` - CopiedSnapshotsRetentionDays requests.Integer `position:"Query" name:"CopiedSnapshotsRetentionDays"` - TimePoints string `position:"Query" name:"timePoints"` - RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - StorageLocationArn string `position:"Query" name:"StorageLocationArn"` - Tag *[]CreateAutoSnapshotPolicyTag `position:"Query" name:"Tag" type:"Repeated"` - EnableCrossRegionCopy requests.Boolean `position:"Query" name:"EnableCrossRegionCopy"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` - RetentionDays requests.Integer `position:"Query" name:"retentionDays"` - TargetCopyRegions string `position:"Query" name:"TargetCopyRegions"` -} - -// CreateAutoSnapshotPolicyCopyEncryptionConfiguration is a repeated param struct in CreateAutoSnapshotPolicyRequest -type CreateAutoSnapshotPolicyCopyEncryptionConfiguration struct { - Encrypted string `name:"Encrypted"` - KMSKeyId string `name:"KMSKeyId"` - Arn *[]CreateAutoSnapshotPolicyCopyEncryptionConfigurationArnItem `name:"Arn" type:"Repeated"` -} - -// CreateAutoSnapshotPolicyTag is a repeated param struct in CreateAutoSnapshotPolicyRequest -type CreateAutoSnapshotPolicyTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateAutoSnapshotPolicyCopyEncryptionConfigurationArnItem is a repeated param struct in CreateAutoSnapshotPolicyRequest -type CreateAutoSnapshotPolicyCopyEncryptionConfigurationArnItem struct { - Rolearn string `name:"Rolearn"` - RoleType string `name:"RoleType"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// CreateAutoSnapshotPolicyResponse is the response struct for api CreateAutoSnapshotPolicy -type CreateAutoSnapshotPolicyResponse struct { - *responses.BaseResponse - AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateAutoSnapshotPolicyRequest creates a request to invoke CreateAutoSnapshotPolicy API -func CreateCreateAutoSnapshotPolicyRequest() (request *CreateAutoSnapshotPolicyRequest) { - request = &CreateAutoSnapshotPolicyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateAutoSnapshotPolicy", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateAutoSnapshotPolicyResponse creates a response to parse from CreateAutoSnapshotPolicy response -func CreateCreateAutoSnapshotPolicyResponse() (response *CreateAutoSnapshotPolicyResponse) { - response = &CreateAutoSnapshotPolicyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_capacity_reservation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_capacity_reservation.go deleted file mode 100644 index 1c32867262..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_capacity_reservation.go +++ /dev/null @@ -1,130 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateCapacityReservation invokes the ecs.CreateCapacityReservation API synchronously -func (client *Client) CreateCapacityReservation(request *CreateCapacityReservationRequest) (response *CreateCapacityReservationResponse, err error) { - response = CreateCreateCapacityReservationResponse() - err = client.DoAction(request, response) - return -} - -// CreateCapacityReservationWithChan invokes the ecs.CreateCapacityReservation API asynchronously -func (client *Client) CreateCapacityReservationWithChan(request *CreateCapacityReservationRequest) (<-chan *CreateCapacityReservationResponse, <-chan error) { - responseChan := make(chan *CreateCapacityReservationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateCapacityReservation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateCapacityReservationWithCallback invokes the ecs.CreateCapacityReservation API asynchronously -func (client *Client) CreateCapacityReservationWithCallback(request *CreateCapacityReservationRequest, callback func(response *CreateCapacityReservationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateCapacityReservationResponse - var err error - defer close(result) - response, err = client.CreateCapacityReservation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateCapacityReservationRequest is the request struct for api CreateCapacityReservation -type CreateCapacityReservationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - StartTime string `position:"Query" name:"StartTime"` - Platform string `position:"Query" name:"Platform"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]CreateCapacityReservationTag `position:"Query" name:"Tag" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - EfficientStatus requests.Integer `position:"Query" name:"EfficientStatus"` - Period requests.Integer `position:"Query" name:"Period"` - EndTimeType string `position:"Query" name:"EndTimeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - TimeSlot string `position:"Query" name:"TimeSlot"` - ZoneId *[]string `position:"Query" name:"ZoneId" type:"Repeated"` - ChargeType string `position:"Query" name:"ChargeType"` - PackageType string `position:"Query" name:"PackageType"` - InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` -} - -// CreateCapacityReservationTag is a repeated param struct in CreateCapacityReservationRequest -type CreateCapacityReservationTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateCapacityReservationResponse is the response struct for api CreateCapacityReservation -type CreateCapacityReservationResponse struct { - *responses.BaseResponse - PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateCapacityReservationRequest creates a request to invoke CreateCapacityReservation API -func CreateCreateCapacityReservationRequest() (request *CreateCapacityReservationRequest) { - request = &CreateCapacityReservationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateCapacityReservation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateCapacityReservationResponse creates a response to parse from CreateCapacityReservation response -func CreateCreateCapacityReservationResponse() (response *CreateCapacityReservationResponse) { - response = &CreateCapacityReservationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go deleted file mode 100644 index 4dc2259b8f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go +++ /dev/null @@ -1,128 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateCommand invokes the ecs.CreateCommand API synchronously -func (client *Client) CreateCommand(request *CreateCommandRequest) (response *CreateCommandResponse, err error) { - response = CreateCreateCommandResponse() - err = client.DoAction(request, response) - return -} - -// CreateCommandWithChan invokes the ecs.CreateCommand API asynchronously -func (client *Client) CreateCommandWithChan(request *CreateCommandRequest) (<-chan *CreateCommandResponse, <-chan error) { - responseChan := make(chan *CreateCommandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateCommand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateCommandWithCallback invokes the ecs.CreateCommand API asynchronously -func (client *Client) CreateCommandWithCallback(request *CreateCommandRequest, callback func(response *CreateCommandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateCommandResponse - var err error - defer close(result) - response, err = client.CreateCommand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateCommandRequest is the request struct for api CreateCommand -type CreateCommandRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SystemTag *[]CreateCommandSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` - WorkingDir string `position:"Query" name:"WorkingDir"` - Description string `position:"Query" name:"Description"` - Type string `position:"Query" name:"Type"` - CommandContent string `position:"Query" name:"CommandContent"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - ContentEncoding string `position:"Query" name:"ContentEncoding"` - Tag *[]CreateCommandTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` - EnableParameter requests.Boolean `position:"Query" name:"EnableParameter"` - Launcher string `position:"Query" name:"Launcher"` -} - -// CreateCommandSystemTag is a repeated param struct in CreateCommandRequest -type CreateCommandSystemTag struct { - Key string `name:"Key"` - Value string `name:"Value"` - Scope string `name:"Scope"` -} - -// CreateCommandTag is a repeated param struct in CreateCommandRequest -type CreateCommandTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateCommandResponse is the response struct for api CreateCommand -type CreateCommandResponse struct { - *responses.BaseResponse - CommandId string `json:"CommandId" xml:"CommandId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateCommandRequest creates a request to invoke CreateCommand API -func CreateCreateCommandRequest() (request *CreateCommandRequest) { - request = &CreateCommandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateCommand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateCommandResponse creates a response to parse from CreateCommand response -func CreateCreateCommandResponse() (response *CreateCommandResponse) { - response = &CreateCommandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_dedicated_host_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_dedicated_host_cluster.go deleted file mode 100644 index 9595f947a3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_dedicated_host_cluster.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateDedicatedHostCluster invokes the ecs.CreateDedicatedHostCluster API synchronously -func (client *Client) CreateDedicatedHostCluster(request *CreateDedicatedHostClusterRequest) (response *CreateDedicatedHostClusterResponse, err error) { - response = CreateCreateDedicatedHostClusterResponse() - err = client.DoAction(request, response) - return -} - -// CreateDedicatedHostClusterWithChan invokes the ecs.CreateDedicatedHostCluster API asynchronously -func (client *Client) CreateDedicatedHostClusterWithChan(request *CreateDedicatedHostClusterRequest) (<-chan *CreateDedicatedHostClusterResponse, <-chan error) { - responseChan := make(chan *CreateDedicatedHostClusterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateDedicatedHostCluster(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateDedicatedHostClusterWithCallback invokes the ecs.CreateDedicatedHostCluster API asynchronously -func (client *Client) CreateDedicatedHostClusterWithCallback(request *CreateDedicatedHostClusterRequest, callback func(response *CreateDedicatedHostClusterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateDedicatedHostClusterResponse - var err error - defer close(result) - response, err = client.CreateDedicatedHostCluster(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateDedicatedHostClusterRequest is the request struct for api CreateDedicatedHostCluster -type CreateDedicatedHostClusterRequest struct { - *requests.RpcRequest - DedicatedHostClusterName string `position:"Query" name:"DedicatedHostClusterName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CreateDedicatedHostClusterTag `position:"Query" name:"Tag" type:"Repeated"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// CreateDedicatedHostClusterTag is a repeated param struct in CreateDedicatedHostClusterRequest -type CreateDedicatedHostClusterTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateDedicatedHostClusterResponse is the response struct for api CreateDedicatedHostCluster -type CreateDedicatedHostClusterResponse struct { - *responses.BaseResponse - DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateDedicatedHostClusterRequest creates a request to invoke CreateDedicatedHostCluster API -func CreateCreateDedicatedHostClusterRequest() (request *CreateDedicatedHostClusterRequest) { - request = &CreateDedicatedHostClusterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDedicatedHostCluster", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateDedicatedHostClusterResponse creates a response to parse from CreateDedicatedHostCluster response -func CreateCreateDedicatedHostClusterResponse() (response *CreateDedicatedHostClusterResponse) { - response = &CreateDedicatedHostClusterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_demand.go deleted file mode 100644 index 34233326ca..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_demand.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateDemand invokes the ecs.CreateDemand API synchronously -func (client *Client) CreateDemand(request *CreateDemandRequest) (response *CreateDemandResponse, err error) { - response = CreateCreateDemandResponse() - err = client.DoAction(request, response) - return -} - -// CreateDemandWithChan invokes the ecs.CreateDemand API asynchronously -func (client *Client) CreateDemandWithChan(request *CreateDemandRequest) (<-chan *CreateDemandResponse, <-chan error) { - responseChan := make(chan *CreateDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateDemandWithCallback invokes the ecs.CreateDemand API asynchronously -func (client *Client) CreateDemandWithCallback(request *CreateDemandRequest, callback func(response *CreateDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateDemandResponse - var err error - defer close(result) - response, err = client.CreateDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateDemandRequest is the request struct for api CreateDemand -type CreateDemandRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - StartTime string `position:"Query" name:"StartTime"` - DemandDescription string `position:"Query" name:"DemandDescription"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - DemandName string `position:"Query" name:"DemandName"` - Amount requests.Integer `position:"Query" name:"Amount"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// CreateDemandResponse is the response struct for api CreateDemand -type CreateDemandResponse struct { - *responses.BaseResponse - DemandId string `json:"DemandId" xml:"DemandId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateDemandRequest creates a request to invoke CreateDemand API -func CreateCreateDemandRequest() (request *CreateDemandRequest) { - request = &CreateDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDemand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateDemandResponse creates a response to parse from CreateDemand response -func CreateCreateDemandResponse() (response *CreateDemandResponse) { - response = &CreateDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go deleted file mode 100644 index 10efe5e664..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateDeploymentSet invokes the ecs.CreateDeploymentSet API synchronously -func (client *Client) CreateDeploymentSet(request *CreateDeploymentSetRequest) (response *CreateDeploymentSetResponse, err error) { - response = CreateCreateDeploymentSetResponse() - err = client.DoAction(request, response) - return -} - -// CreateDeploymentSetWithChan invokes the ecs.CreateDeploymentSet API asynchronously -func (client *Client) CreateDeploymentSetWithChan(request *CreateDeploymentSetRequest) (<-chan *CreateDeploymentSetResponse, <-chan error) { - responseChan := make(chan *CreateDeploymentSetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateDeploymentSet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateDeploymentSetWithCallback invokes the ecs.CreateDeploymentSet API asynchronously -func (client *Client) CreateDeploymentSetWithCallback(request *CreateDeploymentSetRequest, callback func(response *CreateDeploymentSetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateDeploymentSetResponse - var err error - defer close(result) - response, err = client.CreateDeploymentSet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateDeploymentSetRequest is the request struct for api CreateDeploymentSet -type CreateDeploymentSetRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - GroupCount requests.Integer `position:"Query" name:"GroupCount"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DeploymentSetName string `position:"Query" name:"DeploymentSetName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - OnUnableToRedeployFailedInstance string `position:"Query" name:"OnUnableToRedeployFailedInstance"` - Granularity string `position:"Query" name:"Granularity"` - Domain string `position:"Query" name:"Domain"` - Strategy string `position:"Query" name:"Strategy"` -} - -// CreateDeploymentSetResponse is the response struct for api CreateDeploymentSet -type CreateDeploymentSetResponse struct { - *responses.BaseResponse - DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateDeploymentSetRequest creates a request to invoke CreateDeploymentSet API -func CreateCreateDeploymentSetRequest() (request *CreateDeploymentSetRequest) { - request = &CreateDeploymentSetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDeploymentSet", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateDeploymentSetResponse creates a response to parse from CreateDeploymentSet response -func CreateCreateDeploymentSetResponse() (response *CreateDeploymentSetResponse) { - response = &CreateDeploymentSetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_metric_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_metric_set.go deleted file mode 100644 index 7968c40cb1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_metric_set.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateDiagnosticMetricSet invokes the ecs.CreateDiagnosticMetricSet API synchronously -func (client *Client) CreateDiagnosticMetricSet(request *CreateDiagnosticMetricSetRequest) (response *CreateDiagnosticMetricSetResponse, err error) { - response = CreateCreateDiagnosticMetricSetResponse() - err = client.DoAction(request, response) - return -} - -// CreateDiagnosticMetricSetWithChan invokes the ecs.CreateDiagnosticMetricSet API asynchronously -func (client *Client) CreateDiagnosticMetricSetWithChan(request *CreateDiagnosticMetricSetRequest) (<-chan *CreateDiagnosticMetricSetResponse, <-chan error) { - responseChan := make(chan *CreateDiagnosticMetricSetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateDiagnosticMetricSet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateDiagnosticMetricSetWithCallback invokes the ecs.CreateDiagnosticMetricSet API asynchronously -func (client *Client) CreateDiagnosticMetricSetWithCallback(request *CreateDiagnosticMetricSetRequest, callback func(response *CreateDiagnosticMetricSetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateDiagnosticMetricSetResponse - var err error - defer close(result) - response, err = client.CreateDiagnosticMetricSet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateDiagnosticMetricSetRequest is the request struct for api CreateDiagnosticMetricSet -type CreateDiagnosticMetricSetRequest struct { - *requests.RpcRequest - MetricIds *[]string `position:"Query" name:"MetricIds" type:"Repeated"` - Description string `position:"Query" name:"Description"` - MetricSetName string `position:"Query" name:"MetricSetName"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// CreateDiagnosticMetricSetResponse is the response struct for api CreateDiagnosticMetricSet -type CreateDiagnosticMetricSetResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` -} - -// CreateCreateDiagnosticMetricSetRequest creates a request to invoke CreateDiagnosticMetricSet API -func CreateCreateDiagnosticMetricSetRequest() (request *CreateDiagnosticMetricSetRequest) { - request = &CreateDiagnosticMetricSetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDiagnosticMetricSet", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateDiagnosticMetricSetResponse creates a response to parse from CreateDiagnosticMetricSet response -func CreateCreateDiagnosticMetricSetResponse() (response *CreateDiagnosticMetricSetResponse) { - response = &CreateDiagnosticMetricSetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_report.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_report.go deleted file mode 100644 index c7821f4bf9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_report.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateDiagnosticReport invokes the ecs.CreateDiagnosticReport API synchronously -func (client *Client) CreateDiagnosticReport(request *CreateDiagnosticReportRequest) (response *CreateDiagnosticReportResponse, err error) { - response = CreateCreateDiagnosticReportResponse() - err = client.DoAction(request, response) - return -} - -// CreateDiagnosticReportWithChan invokes the ecs.CreateDiagnosticReport API asynchronously -func (client *Client) CreateDiagnosticReportWithChan(request *CreateDiagnosticReportRequest) (<-chan *CreateDiagnosticReportResponse, <-chan error) { - responseChan := make(chan *CreateDiagnosticReportResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateDiagnosticReport(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateDiagnosticReportWithCallback invokes the ecs.CreateDiagnosticReport API asynchronously -func (client *Client) CreateDiagnosticReportWithCallback(request *CreateDiagnosticReportRequest, callback func(response *CreateDiagnosticReportResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateDiagnosticReportResponse - var err error - defer close(result) - response, err = client.CreateDiagnosticReport(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateDiagnosticReportRequest is the request struct for api CreateDiagnosticReport -type CreateDiagnosticReportRequest struct { - *requests.RpcRequest - MetricSetId string `position:"Query" name:"MetricSetId"` - StartTime string `position:"Query" name:"StartTime"` - ResourceId string `position:"Query" name:"ResourceId"` - EndTime string `position:"Query" name:"EndTime"` - AdditionalOptions map[string]string `position:"Query" name:"AdditionalOptions" type:"Map"` -} - -// CreateDiagnosticReportResponse is the response struct for api CreateDiagnosticReport -type CreateDiagnosticReportResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ReportId string `json:"ReportId" xml:"ReportId"` -} - -// CreateCreateDiagnosticReportRequest creates a request to invoke CreateDiagnosticReport API -func CreateCreateDiagnosticReportRequest() (request *CreateDiagnosticReportRequest) { - request = &CreateDiagnosticReportRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDiagnosticReport", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateDiagnosticReportResponse creates a response to parse from CreateDiagnosticReport response -func CreateCreateDiagnosticReportResponse() (response *CreateDiagnosticReportResponse) { - response = &CreateDiagnosticReportResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go deleted file mode 100644 index 5a040f67c6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go +++ /dev/null @@ -1,147 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateDisk invokes the ecs.CreateDisk API synchronously -func (client *Client) CreateDisk(request *CreateDiskRequest) (response *CreateDiskResponse, err error) { - response = CreateCreateDiskResponse() - err = client.DoAction(request, response) - return -} - -// CreateDiskWithChan invokes the ecs.CreateDisk API asynchronously -func (client *Client) CreateDiskWithChan(request *CreateDiskRequest) (<-chan *CreateDiskResponse, <-chan error) { - responseChan := make(chan *CreateDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateDiskWithCallback invokes the ecs.CreateDisk API asynchronously -func (client *Client) CreateDiskWithCallback(request *CreateDiskRequest, callback func(response *CreateDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateDiskResponse - var err error - defer close(result) - response, err = client.CreateDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateDiskRequest is the request struct for api CreateDisk -type CreateDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - EncryptAlgorithm string `position:"Query" name:"EncryptAlgorithm"` - DiskName string `position:"Query" name:"DiskName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` - Tag *[]CreateDiskTag `position:"Query" name:"Tag" type:"Repeated"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ProvisionedIops requests.Integer `position:"Query" name:"ProvisionedIops"` - InstanceId string `position:"Query" name:"InstanceId"` - Size requests.Integer `position:"Query" name:"Size"` - ZoneId string `position:"Query" name:"ZoneId"` - StorageClusterId string `position:"Query" name:"StorageClusterId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - ClientToken string `position:"Query" name:"ClientToken"` - SystemTag *[]CreateDiskSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` - Description string `position:"Query" name:"Description"` - DiskCategory string `position:"Query" name:"DiskCategory"` - MultiAttach string `position:"Query" name:"MultiAttach"` - AdvancedFeatures string `position:"Query" name:"AdvancedFeatures"` - Arn *[]CreateDiskArn `position:"Query" name:"Arn" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PerformanceLevel string `position:"Query" name:"PerformanceLevel"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - BurstingEnabled requests.Boolean `position:"Query" name:"BurstingEnabled"` - StorageSetId string `position:"Query" name:"StorageSetId"` - Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` -} - -// CreateDiskTag is a repeated param struct in CreateDiskRequest -type CreateDiskTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateDiskSystemTag is a repeated param struct in CreateDiskRequest -type CreateDiskSystemTag struct { - Scope string `name:"Scope"` - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateDiskArn is a repeated param struct in CreateDiskRequest -type CreateDiskArn struct { - Rolearn string `name:"Rolearn"` - RoleType string `name:"RoleType"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// CreateDiskResponse is the response struct for api CreateDisk -type CreateDiskResponse struct { - *responses.BaseResponse - DiskId string `json:"DiskId" xml:"DiskId"` - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` -} - -// CreateCreateDiskRequest creates a request to invoke CreateDisk API -func CreateCreateDiskRequest() (request *CreateDiskRequest) { - request = &CreateDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateDiskResponse creates a response to parse from CreateDisk response -func CreateCreateDiskResponse() (response *CreateDiskResponse) { - response = &CreateDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_elasticity_assurance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_elasticity_assurance.go deleted file mode 100644 index 6acfea8046..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_elasticity_assurance.go +++ /dev/null @@ -1,140 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateElasticityAssurance invokes the ecs.CreateElasticityAssurance API synchronously -func (client *Client) CreateElasticityAssurance(request *CreateElasticityAssuranceRequest) (response *CreateElasticityAssuranceResponse, err error) { - response = CreateCreateElasticityAssuranceResponse() - err = client.DoAction(request, response) - return -} - -// CreateElasticityAssuranceWithChan invokes the ecs.CreateElasticityAssurance API asynchronously -func (client *Client) CreateElasticityAssuranceWithChan(request *CreateElasticityAssuranceRequest) (<-chan *CreateElasticityAssuranceResponse, <-chan error) { - responseChan := make(chan *CreateElasticityAssuranceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateElasticityAssurance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateElasticityAssuranceWithCallback invokes the ecs.CreateElasticityAssurance API asynchronously -func (client *Client) CreateElasticityAssuranceWithCallback(request *CreateElasticityAssuranceRequest, callback func(response *CreateElasticityAssuranceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateElasticityAssuranceResponse - var err error - defer close(result) - response, err = client.CreateElasticityAssurance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateElasticityAssuranceRequest is the request struct for api CreateElasticityAssurance -type CreateElasticityAssuranceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - StartTime string `position:"Query" name:"StartTime"` - Platform string `position:"Query" name:"Platform"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` - InstanceType *[]string `position:"Query" name:"InstanceType" type:"Repeated"` - Tag *[]CreateElasticityAssuranceTag `position:"Query" name:"Tag" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - AssuranceTimes string `position:"Query" name:"AssuranceTimes"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - InstanceCpuCoreCount requests.Integer `position:"Query" name:"InstanceCpuCoreCount"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - ZoneId *[]string `position:"Query" name:"ZoneId" type:"Repeated"` - RecurrenceRules *[]CreateElasticityAssuranceRecurrenceRules `position:"Query" name:"RecurrenceRules" type:"Repeated"` - ChargeType string `position:"Query" name:"ChargeType"` - PackageType string `position:"Query" name:"PackageType"` - InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` -} - -// CreateElasticityAssuranceTag is a repeated param struct in CreateElasticityAssuranceRequest -type CreateElasticityAssuranceTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateElasticityAssuranceRecurrenceRules is a repeated param struct in CreateElasticityAssuranceRequest -type CreateElasticityAssuranceRecurrenceRules struct { - RecurrenceType string `name:"RecurrenceType"` - RecurrenceValue string `name:"RecurrenceValue"` - StartHour string `name:"StartHour"` - EndHour string `name:"EndHour"` -} - -// CreateElasticityAssuranceResponse is the response struct for api CreateElasticityAssurance -type CreateElasticityAssuranceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` - OrderId string `json:"OrderId" xml:"OrderId"` -} - -// CreateCreateElasticityAssuranceRequest creates a request to invoke CreateElasticityAssurance API -func CreateCreateElasticityAssuranceRequest() (request *CreateElasticityAssuranceRequest) { - request = &CreateElasticityAssuranceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateElasticityAssurance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateElasticityAssuranceResponse creates a response to parse from CreateElasticityAssurance response -func CreateCreateElasticityAssuranceResponse() (response *CreateElasticityAssuranceResponse) { - response = &CreateElasticityAssuranceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go deleted file mode 100644 index 8ef63b4586..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateForwardEntry invokes the ecs.CreateForwardEntry API synchronously -func (client *Client) CreateForwardEntry(request *CreateForwardEntryRequest) (response *CreateForwardEntryResponse, err error) { - response = CreateCreateForwardEntryResponse() - err = client.DoAction(request, response) - return -} - -// CreateForwardEntryWithChan invokes the ecs.CreateForwardEntry API asynchronously -func (client *Client) CreateForwardEntryWithChan(request *CreateForwardEntryRequest) (<-chan *CreateForwardEntryResponse, <-chan error) { - responseChan := make(chan *CreateForwardEntryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateForwardEntry(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateForwardEntryWithCallback invokes the ecs.CreateForwardEntry API asynchronously -func (client *Client) CreateForwardEntryWithCallback(request *CreateForwardEntryRequest, callback func(response *CreateForwardEntryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateForwardEntryResponse - var err error - defer close(result) - response, err = client.CreateForwardEntry(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateForwardEntryRequest is the request struct for api CreateForwardEntry -type CreateForwardEntryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ForwardTableId string `position:"Query" name:"ForwardTableId"` - InternalIp string `position:"Query" name:"InternalIp"` - ExternalIp string `position:"Query" name:"ExternalIp"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InternalPort string `position:"Query" name:"InternalPort"` - ExternalPort string `position:"Query" name:"ExternalPort"` -} - -// CreateForwardEntryResponse is the response struct for api CreateForwardEntry -type CreateForwardEntryResponse struct { - *responses.BaseResponse - ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateForwardEntryRequest creates a request to invoke CreateForwardEntry API -func CreateCreateForwardEntryRequest() (request *CreateForwardEntryRequest) { - request = &CreateForwardEntryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateForwardEntry", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateForwardEntryResponse creates a response to parse from CreateForwardEntry response -func CreateCreateForwardEntryResponse() (response *CreateForwardEntryResponse) { - response = &CreateForwardEntryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go deleted file mode 100644 index fd743616d3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateHaVip invokes the ecs.CreateHaVip API synchronously -func (client *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { - response = CreateCreateHaVipResponse() - err = client.DoAction(request, response) - return -} - -// CreateHaVipWithChan invokes the ecs.CreateHaVip API asynchronously -func (client *Client) CreateHaVipWithChan(request *CreateHaVipRequest) (<-chan *CreateHaVipResponse, <-chan error) { - responseChan := make(chan *CreateHaVipResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateHaVip(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateHaVipWithCallback invokes the ecs.CreateHaVip API asynchronously -func (client *Client) CreateHaVipWithCallback(request *CreateHaVipRequest, callback func(response *CreateHaVipResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateHaVipResponse - var err error - defer close(result) - response, err = client.CreateHaVip(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateHaVipRequest is the request struct for api CreateHaVip -type CreateHaVipRequest struct { - *requests.RpcRequest - IpAddress string `position:"Query" name:"IpAddress"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` -} - -// CreateHaVipResponse is the response struct for api CreateHaVip -type CreateHaVipResponse struct { - *responses.BaseResponse - HaVipId string `json:"HaVipId" xml:"HaVipId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateHaVipRequest creates a request to invoke CreateHaVip API -func CreateCreateHaVipRequest() (request *CreateHaVipRequest) { - request = &CreateHaVipRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateHaVip", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateHaVipResponse creates a response to parse from CreateHaVip response -func CreateCreateHaVipResponse() (response *CreateHaVipResponse) { - response = &CreateHaVipResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go deleted file mode 100644 index e16e294b5e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateHpcCluster invokes the ecs.CreateHpcCluster API synchronously -func (client *Client) CreateHpcCluster(request *CreateHpcClusterRequest) (response *CreateHpcClusterResponse, err error) { - response = CreateCreateHpcClusterResponse() - err = client.DoAction(request, response) - return -} - -// CreateHpcClusterWithChan invokes the ecs.CreateHpcCluster API asynchronously -func (client *Client) CreateHpcClusterWithChan(request *CreateHpcClusterRequest) (<-chan *CreateHpcClusterResponse, <-chan error) { - responseChan := make(chan *CreateHpcClusterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateHpcCluster(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateHpcClusterWithCallback invokes the ecs.CreateHpcCluster API asynchronously -func (client *Client) CreateHpcClusterWithCallback(request *CreateHpcClusterRequest, callback func(response *CreateHpcClusterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateHpcClusterResponse - var err error - defer close(result) - response, err = client.CreateHpcCluster(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateHpcClusterRequest is the request struct for api CreateHpcCluster -type CreateHpcClusterRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` -} - -// CreateHpcClusterResponse is the response struct for api CreateHpcCluster -type CreateHpcClusterResponse struct { - *responses.BaseResponse - HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateHpcClusterRequest creates a request to invoke CreateHpcCluster API -func CreateCreateHpcClusterRequest() (request *CreateHpcClusterRequest) { - request = &CreateHpcClusterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateHpcCluster", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateHpcClusterResponse creates a response to parse from CreateHpcCluster response -func CreateCreateHpcClusterResponse() (response *CreateHpcClusterResponse) { - response = &CreateHpcClusterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go deleted file mode 100644 index 485d12b8af..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go +++ /dev/null @@ -1,146 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateImage invokes the ecs.CreateImage API synchronously -func (client *Client) CreateImage(request *CreateImageRequest) (response *CreateImageResponse, err error) { - response = CreateCreateImageResponse() - err = client.DoAction(request, response) - return -} - -// CreateImageWithChan invokes the ecs.CreateImage API asynchronously -func (client *Client) CreateImageWithChan(request *CreateImageRequest) (<-chan *CreateImageResponse, <-chan error) { - responseChan := make(chan *CreateImageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateImage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateImageWithCallback invokes the ecs.CreateImage API asynchronously -func (client *Client) CreateImageWithCallback(request *CreateImageRequest, callback func(response *CreateImageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateImageResponse - var err error - defer close(result) - response, err = client.CreateImage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateImageRequest is the request struct for api CreateImage -type CreateImageRequest struct { - *requests.RpcRequest - DiskDeviceMapping *[]CreateImageDiskDeviceMapping `position:"Query" name:"DiskDeviceMapping" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - ClientToken string `position:"Query" name:"ClientToken"` - SystemTag *[]CreateImageSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` - Description string `position:"Query" name:"Description"` - Platform string `position:"Query" name:"Platform"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Features CreateImageFeatures `position:"Query" name:"Features" type:"Struct"` - BootMode string `position:"Query" name:"BootMode"` - ImageName string `position:"Query" name:"ImageName"` - StorageLocationArn string `position:"Query" name:"StorageLocationArn"` - Tag *[]CreateImageTag `position:"Query" name:"Tag" type:"Repeated"` - Architecture string `position:"Query" name:"Architecture"` - DetectionStrategy string `position:"Query" name:"DetectionStrategy"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ImageFamily string `position:"Query" name:"ImageFamily"` - ImageVersion string `position:"Query" name:"ImageVersion"` -} - -// CreateImageDiskDeviceMapping is a repeated param struct in CreateImageRequest -type CreateImageDiskDeviceMapping struct { - SnapshotId string `name:"SnapshotId"` - Size string `name:"Size"` - DiskType string `name:"DiskType"` - Device string `name:"Device"` -} - -// CreateImageSystemTag is a repeated param struct in CreateImageRequest -type CreateImageSystemTag struct { - Scope string `name:"Scope"` - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateImageFeatures is a repeated param struct in CreateImageRequest -type CreateImageFeatures struct { - ImdsSupport string `name:"ImdsSupport"` -} - -// CreateImageTag is a repeated param struct in CreateImageRequest -type CreateImageTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateImageResponse is the response struct for api CreateImage -type CreateImageResponse struct { - *responses.BaseResponse - ImageId string `json:"ImageId" xml:"ImageId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateImageRequest creates a request to invoke CreateImage API -func CreateCreateImageRequest() (request *CreateImageRequest) { - request = &CreateImageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateImage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateImageResponse creates a response to parse from CreateImage response -func CreateCreateImageResponse() (response *CreateImageResponse) { - response = &CreateImageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_component.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_component.go deleted file mode 100644 index 9d90264273..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_component.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateImageComponent invokes the ecs.CreateImageComponent API synchronously -func (client *Client) CreateImageComponent(request *CreateImageComponentRequest) (response *CreateImageComponentResponse, err error) { - response = CreateCreateImageComponentResponse() - err = client.DoAction(request, response) - return -} - -// CreateImageComponentWithChan invokes the ecs.CreateImageComponent API asynchronously -func (client *Client) CreateImageComponentWithChan(request *CreateImageComponentRequest) (<-chan *CreateImageComponentResponse, <-chan error) { - responseChan := make(chan *CreateImageComponentResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateImageComponent(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateImageComponentWithCallback invokes the ecs.CreateImageComponent API asynchronously -func (client *Client) CreateImageComponentWithCallback(request *CreateImageComponentRequest, callback func(response *CreateImageComponentResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateImageComponentResponse - var err error - defer close(result) - response, err = client.CreateImageComponent(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateImageComponentRequest is the request struct for api CreateImageComponent -type CreateImageComponentRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - SystemType string `position:"Query" name:"SystemType"` - ComponentVersion string `position:"Query" name:"ComponentVersion"` - Content string `position:"Query" name:"Content"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CreateImageComponentTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ComponentType string `position:"Query" name:"ComponentType"` - Name string `position:"Query" name:"Name"` -} - -// CreateImageComponentTag is a repeated param struct in CreateImageComponentRequest -type CreateImageComponentTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateImageComponentResponse is the response struct for api CreateImageComponent -type CreateImageComponentResponse struct { - *responses.BaseResponse - ImageComponentId string `json:"ImageComponentId" xml:"ImageComponentId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateImageComponentRequest creates a request to invoke CreateImageComponent API -func CreateCreateImageComponentRequest() (request *CreateImageComponentRequest) { - request = &CreateImageComponentRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateImageComponent", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateImageComponentResponse creates a response to parse from CreateImageComponent response -func CreateCreateImageComponentResponse() (response *CreateImageComponentResponse) { - response = &CreateImageComponentResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go deleted file mode 100644 index a5c078dba0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go +++ /dev/null @@ -1,185 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateImagePipeline invokes the ecs.CreateImagePipeline API synchronously -func (client *Client) CreateImagePipeline(request *CreateImagePipelineRequest) (response *CreateImagePipelineResponse, err error) { - response = CreateCreateImagePipelineResponse() - err = client.DoAction(request, response) - return -} - -// CreateImagePipelineWithChan invokes the ecs.CreateImagePipeline API asynchronously -func (client *Client) CreateImagePipelineWithChan(request *CreateImagePipelineRequest) (<-chan *CreateImagePipelineResponse, <-chan error) { - responseChan := make(chan *CreateImagePipelineResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateImagePipeline(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateImagePipelineWithCallback invokes the ecs.CreateImagePipeline API asynchronously -func (client *Client) CreateImagePipelineWithCallback(request *CreateImagePipelineRequest, callback func(response *CreateImagePipelineResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateImagePipelineResponse - var err error - defer close(result) - response, err = client.CreateImagePipeline(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateImagePipelineRequest is the request struct for api CreateImagePipeline -type CreateImagePipelineRequest struct { - *requests.RpcRequest - BaseImageType string `position:"Query" name:"BaseImageType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - ImageOptions CreateImagePipelineImageOptions `position:"Query" name:"ImageOptions" type:"Struct"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDiskSize"` - Tag *[]CreateImagePipelineTag `position:"Query" name:"Tag" type:"Repeated"` - AdvancedOptions CreateImagePipelineAdvancedOptions `position:"Query" name:"AdvancedOptions" type:"Struct"` - RepairMode string `position:"Query" name:"RepairMode"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - AddAccount *[]string `position:"Query" name:"AddAccount" type:"Repeated"` - DeleteInstanceOnFailure requests.Boolean `position:"Query" name:"DeleteInstanceOnFailure"` - Name string `position:"Query" name:"Name"` - ImportImageOptions CreateImagePipelineImportImageOptions `position:"Query" name:"ImportImageOptions" type:"Struct"` - TestContent string `position:"Query" name:"TestContent"` - ClientToken string `position:"Query" name:"ClientToken"` - ToRegionId *[]string `position:"Query" name:"ToRegionId" type:"Repeated"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - ImageName string `position:"Query" name:"ImageName"` - InstanceType string `position:"Query" name:"InstanceType"` - NvmeSupport string `position:"Query" name:"NvmeSupport"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - BaseImage string `position:"Query" name:"BaseImage"` - ImageFamily string `position:"Query" name:"ImageFamily"` - BuildContent string `position:"Query" name:"BuildContent"` -} - -// CreateImagePipelineImageOptions is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineImageOptions struct { - ImageName string `name:"ImageName"` - ImageFamily string `name:"ImageFamily"` - Description string `name:"Description"` - ImageFeatures CreateImagePipelineImageOptionsImageFeatures `name:"ImageFeatures" type:"Struct"` - ImageTags *[]CreateImagePipelineImageOptionsImageTagsItem `name:"ImageTags" type:"Repeated"` -} - -// CreateImagePipelineTag is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateImagePipelineAdvancedOptions is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineAdvancedOptions struct { - RetainCloudAssistant string `name:"RetainCloudAssistant"` - SkipBuildImage string `name:"SkipBuildImage"` - SkipCheckImage string `name:"SkipCheckImage"` - ImageNameSuffix string `name:"ImageNameSuffix"` -} - -// CreateImagePipelineImportImageOptions is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineImportImageOptions struct { - Architecture string `name:"Architecture"` - OSType string `name:"OSType"` - Platform string `name:"Platform"` - BootMode string `name:"BootMode"` - LicenseType string `name:"LicenseType"` - DiskDeviceMappings *[]CreateImagePipelineImportImageOptionsDiskDeviceMappingsItem `name:"DiskDeviceMappings" type:"Repeated"` - Features CreateImagePipelineImportImageOptionsFeatures `name:"Features" type:"Struct"` - RetainImportedImage string `name:"RetainImportedImage"` -} - -// CreateImagePipelineImageOptionsImageFeatures is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineImageOptionsImageFeatures struct { - NvmeSupport string `name:"NvmeSupport"` -} - -// CreateImagePipelineImageOptionsImageTagsItem is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineImageOptionsImageTagsItem struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateImagePipelineImportImageOptionsDiskDeviceMappingsItem is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineImportImageOptionsDiskDeviceMappingsItem struct { - OSSBucket string `name:"OSSBucket"` - OSSObject string `name:"OSSObject"` - Format string `name:"Format"` - DiskImageSize string `name:"DiskImageSize"` -} - -// CreateImagePipelineImportImageOptionsFeatures is a repeated param struct in CreateImagePipelineRequest -type CreateImagePipelineImportImageOptionsFeatures struct { - NvmeSupport string `name:"NvmeSupport"` -} - -// CreateImagePipelineResponse is the response struct for api CreateImagePipeline -type CreateImagePipelineResponse struct { - *responses.BaseResponse - ImagePipelineId string `json:"ImagePipelineId" xml:"ImagePipelineId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateImagePipelineRequest creates a request to invoke CreateImagePipeline API -func CreateCreateImagePipelineRequest() (request *CreateImagePipelineRequest) { - request = &CreateImagePipelineRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateImagePipeline", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateImagePipelineResponse creates a response to parse from CreateImagePipeline response -func CreateCreateImagePipelineResponse() (response *CreateImagePipelineResponse) { - response = &CreateImagePipelineResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go deleted file mode 100644 index a6ea452c0c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go +++ /dev/null @@ -1,203 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateInstance invokes the ecs.CreateInstance API synchronously -func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { - response = CreateCreateInstanceResponse() - err = client.DoAction(request, response) - return -} - -// CreateInstanceWithChan invokes the ecs.CreateInstance API asynchronously -func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error) { - responseChan := make(chan *CreateInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateInstanceWithCallback invokes the ecs.CreateInstance API asynchronously -func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateInstanceResponse - var err error - defer close(result) - response, err = client.CreateInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateInstanceRequest is the request struct for api CreateInstance -type CreateInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` - HostName string `position:"Query" name:"HostName"` - Password string `position:"Query" name:"Password"` - SystemDisk CreateInstanceSystemDisk `position:"Query" name:"SystemDisk" type:"Struct"` - DeploymentSetGroupNo requests.Integer `position:"Query" name:"DeploymentSetGroupNo"` - StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` - Tag *[]CreateInstanceTag `position:"Query" name:"Tag" type:"Repeated"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - NodeControllerId string `position:"Query" name:"NodeControllerId"` - Period requests.Integer `position:"Query" name:"Period"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CapacityReservationPreference string `position:"Query" name:"CapacityReservationPreference"` - VSwitchId string `position:"Query" name:"VSwitchId"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceName string `position:"Query" name:"InstanceName"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` - Affinity string `position:"Query" name:"Affinity"` - ImageId string `position:"Query" name:"ImageId"` - ClientToken string `position:"Query" name:"ClientToken"` - VlanId string `position:"Query" name:"VlanId"` - SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - HibernationOptionsConfigured requests.Boolean `position:"Query" name:"HibernationOptions.Configured"` - Description string `position:"Query" name:"Description"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - CapacityReservationId string `position:"Query" name:"CapacityReservationId"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - UserData string `position:"Query" name:"UserData"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - HttpEndpoint string `position:"Query" name:"HttpEndpoint"` - InstanceType string `position:"Query" name:"InstanceType"` - Arn *[]CreateInstanceArn `position:"Query" name:"Arn" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - InnerIpAddress string `position:"Query" name:"InnerIpAddress"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tenancy string `position:"Query" name:"Tenancy"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - RamRoleName string `position:"Query" name:"RamRoleName"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - ClusterId string `position:"Query" name:"ClusterId"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - DataDisk *[]CreateInstanceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - StorageSetId string `position:"Query" name:"StorageSetId"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - ImageFamily string `position:"Query" name:"ImageFamily"` - HttpTokens string `position:"Query" name:"HttpTokens"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` -} - -// CreateInstanceSystemDisk is a repeated param struct in CreateInstanceRequest -type CreateInstanceSystemDisk struct { - StorageClusterId string `name:"StorageClusterId"` -} - -// CreateInstanceTag is a repeated param struct in CreateInstanceRequest -type CreateInstanceTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateInstanceArn is a repeated param struct in CreateInstanceRequest -type CreateInstanceArn struct { - Rolearn string `name:"Rolearn"` - RoleType string `name:"RoleType"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// CreateInstanceDataDisk is a repeated param struct in CreateInstanceRequest -type CreateInstanceDataDisk struct { - DiskName string `name:"DiskName"` - SnapshotId string `name:"SnapshotId"` - Size string `name:"Size"` - Encrypted string `name:"Encrypted"` - PerformanceLevel string `name:"PerformanceLevel"` - EncryptAlgorithm string `name:"EncryptAlgorithm"` - Description string `name:"Description"` - StorageClusterId string `name:"StorageClusterId"` - Category string `name:"Category"` - KMSKeyId string `name:"KMSKeyId"` - Device string `name:"Device"` - DeleteWithInstance string `name:"DeleteWithInstance"` -} - -// CreateInstanceResponse is the response struct for api CreateInstance -type CreateInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - OrderId string `json:"OrderId" xml:"OrderId"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` -} - -// CreateCreateInstanceRequest creates a request to invoke CreateInstance API -func CreateCreateInstanceRequest() (request *CreateInstanceRequest) { - request = &CreateInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateInstanceResponse creates a response to parse from CreateInstance response -func CreateCreateInstanceResponse() (response *CreateInstanceResponse) { - response = &CreateInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go deleted file mode 100644 index f20c376c3f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateKeyPair invokes the ecs.CreateKeyPair API synchronously -func (client *Client) CreateKeyPair(request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error) { - response = CreateCreateKeyPairResponse() - err = client.DoAction(request, response) - return -} - -// CreateKeyPairWithChan invokes the ecs.CreateKeyPair API asynchronously -func (client *Client) CreateKeyPairWithChan(request *CreateKeyPairRequest) (<-chan *CreateKeyPairResponse, <-chan error) { - responseChan := make(chan *CreateKeyPairResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateKeyPair(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateKeyPairWithCallback invokes the ecs.CreateKeyPair API asynchronously -func (client *Client) CreateKeyPairWithCallback(request *CreateKeyPairRequest, callback func(response *CreateKeyPairResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateKeyPairResponse - var err error - defer close(result) - response, err = client.CreateKeyPair(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateKeyPairRequest is the request struct for api CreateKeyPair -type CreateKeyPairRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KeyPairName string `position:"Query" name:"KeyPairName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CreateKeyPairTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// CreateKeyPairTag is a repeated param struct in CreateKeyPairRequest -type CreateKeyPairTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateKeyPairResponse is the response struct for api CreateKeyPair -type CreateKeyPairResponse struct { - *responses.BaseResponse - PrivateKeyBody string `json:"PrivateKeyBody" xml:"PrivateKeyBody"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - KeyPairId string `json:"KeyPairId" xml:"KeyPairId"` - RequestId string `json:"RequestId" xml:"RequestId"` - KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` -} - -// CreateCreateKeyPairRequest creates a request to invoke CreateKeyPair API -func CreateCreateKeyPairRequest() (request *CreateKeyPairRequest) { - request = &CreateKeyPairRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateKeyPair", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateKeyPairResponse creates a response to parse from CreateKeyPair response -func CreateCreateKeyPairResponse() (response *CreateKeyPairResponse) { - response = &CreateKeyPairResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go deleted file mode 100644 index dd09da1c65..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go +++ /dev/null @@ -1,203 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateLaunchTemplate invokes the ecs.CreateLaunchTemplate API synchronously -func (client *Client) CreateLaunchTemplate(request *CreateLaunchTemplateRequest) (response *CreateLaunchTemplateResponse, err error) { - response = CreateCreateLaunchTemplateResponse() - err = client.DoAction(request, response) - return -} - -// CreateLaunchTemplateWithChan invokes the ecs.CreateLaunchTemplate API asynchronously -func (client *Client) CreateLaunchTemplateWithChan(request *CreateLaunchTemplateRequest) (<-chan *CreateLaunchTemplateResponse, <-chan error) { - responseChan := make(chan *CreateLaunchTemplateResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateLaunchTemplate(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateLaunchTemplateWithCallback invokes the ecs.CreateLaunchTemplate API asynchronously -func (client *Client) CreateLaunchTemplateWithCallback(request *CreateLaunchTemplateRequest, callback func(response *CreateLaunchTemplateResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateLaunchTemplateResponse - var err error - defer close(result) - response, err = client.CreateLaunchTemplate(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateLaunchTemplateRequest is the request struct for api CreateLaunchTemplate -type CreateLaunchTemplateRequest struct { - *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - NetworkType string `position:"Query" name:"NetworkType"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - HostName string `position:"Query" name:"HostName"` - SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` - TemplateTag *[]CreateLaunchTemplateTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` - Tag *[]CreateLaunchTemplateTag `position:"Query" name:"Tag" type:"Repeated"` - SystemDiskAutoSnapshotPolicyId string `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - Period requests.Integer `position:"Query" name:"Period"` - Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` - TemplateResourceGroupId string `position:"Query" name:"TemplateResourceGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` - SystemDiskBurstingEnabled requests.Boolean `position:"Query" name:"SystemDisk.BurstingEnabled"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceName string `position:"Query" name:"InstanceName"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - VersionDescription string `position:"Query" name:"VersionDescription"` - SystemDiskDeleteWithInstance requests.Boolean `position:"Query" name:"SystemDisk.DeleteWithInstance"` - ImageId string `position:"Query" name:"ImageId"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - UserData string `position:"Query" name:"UserData"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - HttpEndpoint string `position:"Query" name:"HttpEndpoint"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - NetworkInterface *[]CreateLaunchTemplateNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - RamRoleName string `position:"Query" name:"RamRoleName"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` - DataDisk *[]CreateLaunchTemplateDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - SystemDiskProvisionedIops requests.Integer `position:"Query" name:"SystemDisk.ProvisionedIops"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - VpcId string `position:"Query" name:"VpcId"` - HttpTokens string `position:"Query" name:"HttpTokens"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` - SystemDiskEncrypted string `position:"Query" name:"SystemDisk.Encrypted"` -} - -// CreateLaunchTemplateTemplateTag is a repeated param struct in CreateLaunchTemplateRequest -type CreateLaunchTemplateTemplateTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateLaunchTemplateTag is a repeated param struct in CreateLaunchTemplateRequest -type CreateLaunchTemplateTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateLaunchTemplateNetworkInterface is a repeated param struct in CreateLaunchTemplateRequest -type CreateLaunchTemplateNetworkInterface struct { - VSwitchId string `name:"VSwitchId"` - NetworkInterfaceName string `name:"NetworkInterfaceName"` - Description string `name:"Description"` - SecurityGroupId string `name:"SecurityGroupId"` - PrimaryIpAddress string `name:"PrimaryIpAddress"` - SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` - InstanceType string `name:"InstanceType"` - NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` - DeleteOnRelease string `name:"DeleteOnRelease"` -} - -// CreateLaunchTemplateDataDisk is a repeated param struct in CreateLaunchTemplateRequest -type CreateLaunchTemplateDataDisk struct { - PerformanceLevel string `name:"PerformanceLevel"` - Description string `name:"Description"` - SnapshotId string `name:"SnapshotId"` - Size string `name:"Size"` - Device string `name:"Device"` - DiskName string `name:"DiskName"` - Category string `name:"Category"` - DeleteWithInstance string `name:"DeleteWithInstance"` - Encrypted string `name:"Encrypted"` - AutoSnapshotPolicyId string `name:"AutoSnapshotPolicyId"` - ProvisionedIops string `name:"ProvisionedIops"` - BurstingEnabled string `name:"BurstingEnabled"` -} - -// CreateLaunchTemplateResponse is the response struct for api CreateLaunchTemplate -type CreateLaunchTemplateResponse struct { - *responses.BaseResponse - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - RequestId string `json:"RequestId" xml:"RequestId"` - LaunchTemplateVersionNumber int64 `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"` -} - -// CreateCreateLaunchTemplateRequest creates a request to invoke CreateLaunchTemplate API -func CreateCreateLaunchTemplateRequest() (request *CreateLaunchTemplateRequest) { - request = &CreateLaunchTemplateRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateLaunchTemplate", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateLaunchTemplateResponse creates a response to parse from CreateLaunchTemplate response -func CreateCreateLaunchTemplateResponse() (response *CreateLaunchTemplateResponse) { - response = &CreateLaunchTemplateResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go deleted file mode 100644 index 8bde3afcfa..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go +++ /dev/null @@ -1,196 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateLaunchTemplateVersion invokes the ecs.CreateLaunchTemplateVersion API synchronously -func (client *Client) CreateLaunchTemplateVersion(request *CreateLaunchTemplateVersionRequest) (response *CreateLaunchTemplateVersionResponse, err error) { - response = CreateCreateLaunchTemplateVersionResponse() - err = client.DoAction(request, response) - return -} - -// CreateLaunchTemplateVersionWithChan invokes the ecs.CreateLaunchTemplateVersion API asynchronously -func (client *Client) CreateLaunchTemplateVersionWithChan(request *CreateLaunchTemplateVersionRequest) (<-chan *CreateLaunchTemplateVersionResponse, <-chan error) { - responseChan := make(chan *CreateLaunchTemplateVersionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateLaunchTemplateVersion(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateLaunchTemplateVersionWithCallback invokes the ecs.CreateLaunchTemplateVersion API asynchronously -func (client *Client) CreateLaunchTemplateVersionWithCallback(request *CreateLaunchTemplateVersionRequest, callback func(response *CreateLaunchTemplateVersionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateLaunchTemplateVersionResponse - var err error - defer close(result) - response, err = client.CreateLaunchTemplateVersion(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateLaunchTemplateVersionRequest is the request struct for api CreateLaunchTemplateVersion -type CreateLaunchTemplateVersionRequest struct { - *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - NetworkType string `position:"Query" name:"NetworkType"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - HostName string `position:"Query" name:"HostName"` - SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` - Tag *[]CreateLaunchTemplateVersionTag `position:"Query" name:"Tag" type:"Repeated"` - SystemDiskAutoSnapshotPolicyId string `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - Period requests.Integer `position:"Query" name:"Period"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` - SystemDiskBurstingEnabled requests.Boolean `position:"Query" name:"SystemDisk.BurstingEnabled"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceName string `position:"Query" name:"InstanceName"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - VersionDescription string `position:"Query" name:"VersionDescription"` - SystemDiskDeleteWithInstance requests.Boolean `position:"Query" name:"SystemDisk.DeleteWithInstance"` - ImageId string `position:"Query" name:"ImageId"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - UserData string `position:"Query" name:"UserData"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - HttpEndpoint string `position:"Query" name:"HttpEndpoint"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - NetworkInterface *[]CreateLaunchTemplateVersionNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - RamRoleName string `position:"Query" name:"RamRoleName"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` - DataDisk *[]CreateLaunchTemplateVersionDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - SystemDiskProvisionedIops requests.Integer `position:"Query" name:"SystemDisk.ProvisionedIops"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - VpcId string `position:"Query" name:"VpcId"` - HttpTokens string `position:"Query" name:"HttpTokens"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` - SystemDiskEncrypted string `position:"Query" name:"SystemDisk.Encrypted"` -} - -// CreateLaunchTemplateVersionTag is a repeated param struct in CreateLaunchTemplateVersionRequest -type CreateLaunchTemplateVersionTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateLaunchTemplateVersionNetworkInterface is a repeated param struct in CreateLaunchTemplateVersionRequest -type CreateLaunchTemplateVersionNetworkInterface struct { - VSwitchId string `name:"VSwitchId"` - NetworkInterfaceName string `name:"NetworkInterfaceName"` - Description string `name:"Description"` - SecurityGroupId string `name:"SecurityGroupId"` - PrimaryIpAddress string `name:"PrimaryIpAddress"` - SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` - InstanceType string `name:"InstanceType"` - NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` - DeleteOnRelease string `name:"DeleteOnRelease"` -} - -// CreateLaunchTemplateVersionDataDisk is a repeated param struct in CreateLaunchTemplateVersionRequest -type CreateLaunchTemplateVersionDataDisk struct { - PerformanceLevel string `name:"PerformanceLevel"` - Description string `name:"Description"` - SnapshotId string `name:"SnapshotId"` - Size string `name:"Size"` - Device string `name:"Device"` - DiskName string `name:"DiskName"` - Category string `name:"Category"` - DeleteWithInstance string `name:"DeleteWithInstance"` - Encrypted string `name:"Encrypted"` - ProvisionedIops string `name:"ProvisionedIops"` - BurstingEnabled string `name:"BurstingEnabled"` - AutoSnapshotPolicyId string `name:"AutoSnapshotPolicyId"` -} - -// CreateLaunchTemplateVersionResponse is the response struct for api CreateLaunchTemplateVersion -type CreateLaunchTemplateVersionResponse struct { - *responses.BaseResponse - LaunchTemplateVersionNumber int64 `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` -} - -// CreateCreateLaunchTemplateVersionRequest creates a request to invoke CreateLaunchTemplateVersion API -func CreateCreateLaunchTemplateVersionRequest() (request *CreateLaunchTemplateVersionRequest) { - request = &CreateLaunchTemplateVersionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateLaunchTemplateVersion", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateLaunchTemplateVersionResponse creates a response to parse from CreateLaunchTemplateVersion response -func CreateCreateLaunchTemplateVersionResponse() (response *CreateLaunchTemplateVersionResponse) { - response = &CreateLaunchTemplateVersionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go deleted file mode 100644 index 4d11565af7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go +++ /dev/null @@ -1,117 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateNatGateway invokes the ecs.CreateNatGateway API synchronously -func (client *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *CreateNatGatewayResponse, err error) { - response = CreateCreateNatGatewayResponse() - err = client.DoAction(request, response) - return -} - -// CreateNatGatewayWithChan invokes the ecs.CreateNatGateway API asynchronously -func (client *Client) CreateNatGatewayWithChan(request *CreateNatGatewayRequest) (<-chan *CreateNatGatewayResponse, <-chan error) { - responseChan := make(chan *CreateNatGatewayResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateNatGateway(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateNatGatewayWithCallback invokes the ecs.CreateNatGateway API asynchronously -func (client *Client) CreateNatGatewayWithCallback(request *CreateNatGatewayRequest, callback func(response *CreateNatGatewayResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateNatGatewayResponse - var err error - defer close(result) - response, err = client.CreateNatGateway(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateNatGatewayRequest is the request struct for api CreateNatGateway -type CreateNatGatewayRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - BandwidthPackage *[]CreateNatGatewayBandwidthPackage `position:"Query" name:"BandwidthPackage" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VpcId string `position:"Query" name:"VpcId"` - Name string `position:"Query" name:"Name"` -} - -// CreateNatGatewayBandwidthPackage is a repeated param struct in CreateNatGatewayRequest -type CreateNatGatewayBandwidthPackage struct { - Bandwidth string `name:"Bandwidth"` - Zone string `name:"Zone"` - IpCount string `name:"IpCount"` -} - -// CreateNatGatewayResponse is the response struct for api CreateNatGateway -type CreateNatGatewayResponse struct { - *responses.BaseResponse - NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` - RequestId string `json:"RequestId" xml:"RequestId"` - ForwardTableIds ForwardTableIdsInCreateNatGateway `json:"ForwardTableIds" xml:"ForwardTableIds"` - BandwidthPackageIds BandwidthPackageIdsInCreateNatGateway `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` -} - -// CreateCreateNatGatewayRequest creates a request to invoke CreateNatGateway API -func CreateCreateNatGatewayRequest() (request *CreateNatGatewayRequest) { - request = &CreateNatGatewayRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNatGateway", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateNatGatewayResponse creates a response to parse from CreateNatGateway response -func CreateCreateNatGatewayResponse() (response *CreateNatGatewayResponse) { - response = &CreateNatGatewayResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go deleted file mode 100644 index 984e9ed5fc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go +++ /dev/null @@ -1,181 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateNetworkInterface invokes the ecs.CreateNetworkInterface API synchronously -func (client *Client) CreateNetworkInterface(request *CreateNetworkInterfaceRequest) (response *CreateNetworkInterfaceResponse, err error) { - response = CreateCreateNetworkInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// CreateNetworkInterfaceWithChan invokes the ecs.CreateNetworkInterface API asynchronously -func (client *Client) CreateNetworkInterfaceWithChan(request *CreateNetworkInterfaceRequest) (<-chan *CreateNetworkInterfaceResponse, <-chan error) { - responseChan := make(chan *CreateNetworkInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateNetworkInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateNetworkInterfaceWithCallback invokes the ecs.CreateNetworkInterface API asynchronously -func (client *Client) CreateNetworkInterfaceWithCallback(request *CreateNetworkInterfaceRequest, callback func(response *CreateNetworkInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateNetworkInterfaceResponse - var err error - defer close(result) - response, err = client.CreateNetworkInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateNetworkInterfaceRequest is the request struct for api CreateNetworkInterface -type CreateNetworkInterfaceRequest struct { - *requests.RpcRequest - QueueNumber requests.Integer `position:"Query" name:"QueueNumber"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Ipv4Prefix *[]string `position:"Query" name:"Ipv4Prefix" type:"Repeated"` - NetworkInterfaceTrafficConfig CreateNetworkInterfaceNetworkInterfaceTrafficConfig `position:"Query" name:"NetworkInterfaceTrafficConfig" type:"Struct"` - SecondaryPrivateIpAddressCount requests.Integer `position:"Query" name:"SecondaryPrivateIpAddressCount"` - BusinessType string `position:"Query" name:"BusinessType"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - EnhancedNetwork CreateNetworkInterfaceEnhancedNetwork `position:"Query" name:"EnhancedNetwork" type:"Struct"` - Tag *[]CreateNetworkInterfaceTag `position:"Query" name:"Tag" type:"Repeated"` - NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` - Visible requests.Boolean `position:"Query" name:"Visible"` - Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` - RxQueueSize requests.Integer `position:"Query" name:"RxQueueSize"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` - Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` - ClientToken string `position:"Query" name:"ClientToken"` - Ipv6Prefix *[]string `position:"Query" name:"Ipv6Prefix" type:"Repeated"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - Ipv6PrefixCount requests.Integer `position:"Query" name:"Ipv6PrefixCount"` - SourceDestCheck requests.Boolean `position:"Query" name:"SourceDestCheck"` - InstanceType string `position:"Query" name:"InstanceType"` - TxQueueSize requests.Integer `position:"Query" name:"TxQueueSize"` - DeleteOnRelease requests.Boolean `position:"Query" name:"DeleteOnRelease"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - QueuePairNumber requests.Integer `position:"Query" name:"QueuePairNumber"` - SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` - NetworkInterfaceTrafficMode string `position:"Query" name:"NetworkInterfaceTrafficMode"` - Ipv4PrefixCount requests.Integer `position:"Query" name:"Ipv4PrefixCount"` - ConnectionTrackingConfiguration CreateNetworkInterfaceConnectionTrackingConfiguration `position:"Query" name:"ConnectionTrackingConfiguration" type:"Struct"` - PrimaryIpAddress string `position:"Query" name:"PrimaryIpAddress"` -} - -// CreateNetworkInterfaceNetworkInterfaceTrafficConfig is a repeated param struct in CreateNetworkInterfaceRequest -type CreateNetworkInterfaceNetworkInterfaceTrafficConfig struct { - QueueNumber string `name:"QueueNumber"` - NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` - QueuePairNumber string `name:"QueuePairNumber"` - TxQueueSize string `name:"TxQueueSize"` - RxQueueSize string `name:"RxQueueSize"` -} - -// CreateNetworkInterfaceEnhancedNetwork is a repeated param struct in CreateNetworkInterfaceRequest -type CreateNetworkInterfaceEnhancedNetwork struct { - EnableSriov string `name:"EnableSriov"` - EnableRss string `name:"EnableRss"` -} - -// CreateNetworkInterfaceTag is a repeated param struct in CreateNetworkInterfaceRequest -type CreateNetworkInterfaceTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateNetworkInterfaceConnectionTrackingConfiguration is a repeated param struct in CreateNetworkInterfaceRequest -type CreateNetworkInterfaceConnectionTrackingConfiguration struct { - TcpEstablishedTimeout string `name:"TcpEstablishedTimeout"` - TcpClosedAndTimeWaitTimeout string `name:"TcpClosedAndTimeWaitTimeout"` - UdpTimeout string `name:"UdpTimeout"` -} - -// CreateNetworkInterfaceResponse is the response struct for api CreateNetworkInterface -type CreateNetworkInterfaceResponse struct { - *responses.BaseResponse - Status string `json:"Status" xml:"Status"` - Type string `json:"Type" xml:"Type"` - VpcId string `json:"VpcId" xml:"VpcId"` - NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` - MacAddress string `json:"MacAddress" xml:"MacAddress"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - ServiceID int64 `json:"ServiceID" xml:"ServiceID"` - OwnerId string `json:"OwnerId" xml:"OwnerId"` - ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - RequestId string `json:"RequestId" xml:"RequestId"` - Description string `json:"Description" xml:"Description"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` - SourceDestCheck bool `json:"SourceDestCheck" xml:"SourceDestCheck"` - SecurityGroupIds SecurityGroupIdsInCreateNetworkInterface `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - PrivateIpSets PrivateIpSetsInCreateNetworkInterface `json:"PrivateIpSets" xml:"PrivateIpSets"` - Tags TagsInCreateNetworkInterface `json:"Tags" xml:"Tags"` - Ipv6Sets Ipv6SetsInCreateNetworkInterface `json:"Ipv6Sets" xml:"Ipv6Sets"` - Ipv4PrefixSets Ipv4PrefixSetsInCreateNetworkInterface `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` - Ipv6PrefixSets Ipv6PrefixSetsInCreateNetworkInterface `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` -} - -// CreateCreateNetworkInterfaceRequest creates a request to invoke CreateNetworkInterface API -func CreateCreateNetworkInterfaceRequest() (request *CreateNetworkInterfaceRequest) { - request = &CreateNetworkInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNetworkInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateNetworkInterfaceResponse creates a response to parse from CreateNetworkInterface response -func CreateCreateNetworkInterfaceResponse() (response *CreateNetworkInterfaceResponse) { - response = &CreateNetworkInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go deleted file mode 100644 index 7f875a0942..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateNetworkInterfacePermission invokes the ecs.CreateNetworkInterfacePermission API synchronously -func (client *Client) CreateNetworkInterfacePermission(request *CreateNetworkInterfacePermissionRequest) (response *CreateNetworkInterfacePermissionResponse, err error) { - response = CreateCreateNetworkInterfacePermissionResponse() - err = client.DoAction(request, response) - return -} - -// CreateNetworkInterfacePermissionWithChan invokes the ecs.CreateNetworkInterfacePermission API asynchronously -func (client *Client) CreateNetworkInterfacePermissionWithChan(request *CreateNetworkInterfacePermissionRequest) (<-chan *CreateNetworkInterfacePermissionResponse, <-chan error) { - responseChan := make(chan *CreateNetworkInterfacePermissionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateNetworkInterfacePermission(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateNetworkInterfacePermissionWithCallback invokes the ecs.CreateNetworkInterfacePermission API asynchronously -func (client *Client) CreateNetworkInterfacePermissionWithCallback(request *CreateNetworkInterfacePermissionRequest, callback func(response *CreateNetworkInterfacePermissionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateNetworkInterfacePermissionResponse - var err error - defer close(result) - response, err = client.CreateNetworkInterfacePermission(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateNetworkInterfacePermissionRequest is the request struct for api CreateNetworkInterfacePermission -type CreateNetworkInterfacePermissionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AccountId requests.Integer `position:"Query" name:"AccountId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Permission string `position:"Query" name:"Permission"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// CreateNetworkInterfacePermissionResponse is the response struct for api CreateNetworkInterfacePermission -type CreateNetworkInterfacePermissionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NetworkInterfacePermission NetworkInterfacePermission `json:"NetworkInterfacePermission" xml:"NetworkInterfacePermission"` -} - -// CreateCreateNetworkInterfacePermissionRequest creates a request to invoke CreateNetworkInterfacePermission API -func CreateCreateNetworkInterfacePermissionRequest() (request *CreateNetworkInterfacePermissionRequest) { - request = &CreateNetworkInterfacePermissionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNetworkInterfacePermission", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateNetworkInterfacePermissionResponse creates a response to parse from CreateNetworkInterfacePermission response -func CreateCreateNetworkInterfacePermissionResponse() (response *CreateNetworkInterfacePermissionResponse) { - response = &CreateNetworkInterfacePermissionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go deleted file mode 100644 index c3894d5684..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreatePhysicalConnection invokes the ecs.CreatePhysicalConnection API synchronously -func (client *Client) CreatePhysicalConnection(request *CreatePhysicalConnectionRequest) (response *CreatePhysicalConnectionResponse, err error) { - response = CreateCreatePhysicalConnectionResponse() - err = client.DoAction(request, response) - return -} - -// CreatePhysicalConnectionWithChan invokes the ecs.CreatePhysicalConnection API asynchronously -func (client *Client) CreatePhysicalConnectionWithChan(request *CreatePhysicalConnectionRequest) (<-chan *CreatePhysicalConnectionResponse, <-chan error) { - responseChan := make(chan *CreatePhysicalConnectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreatePhysicalConnection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreatePhysicalConnectionWithCallback invokes the ecs.CreatePhysicalConnection API asynchronously -func (client *Client) CreatePhysicalConnectionWithCallback(request *CreatePhysicalConnectionRequest, callback func(response *CreatePhysicalConnectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreatePhysicalConnectionResponse - var err error - defer close(result) - response, err = client.CreatePhysicalConnection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreatePhysicalConnectionRequest is the request struct for api CreatePhysicalConnection -type CreatePhysicalConnectionRequest struct { - *requests.RpcRequest - AccessPointId string `position:"Query" name:"AccessPointId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PortType string `position:"Query" name:"PortType"` - CircuitCode string `position:"Query" name:"CircuitCode"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - Type string `position:"Query" name:"Type"` - UserCidr string `position:"Query" name:"UserCidr"` - RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` - PeerLocation string `position:"Query" name:"PeerLocation"` - Bandwidth requests.Integer `position:"Query" name:"bandwidth"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LineOperator string `position:"Query" name:"LineOperator"` - Name string `position:"Query" name:"Name"` -} - -// CreatePhysicalConnectionResponse is the response struct for api CreatePhysicalConnection -type CreatePhysicalConnectionResponse struct { - *responses.BaseResponse - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreatePhysicalConnectionRequest creates a request to invoke CreatePhysicalConnection API -func CreateCreatePhysicalConnectionRequest() (request *CreatePhysicalConnectionRequest) { - request = &CreatePhysicalConnectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreatePhysicalConnection", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreatePhysicalConnectionResponse creates a response to parse from CreatePhysicalConnection response -func CreateCreatePhysicalConnectionResponse() (response *CreatePhysicalConnectionResponse) { - response = &CreatePhysicalConnectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_prefix_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_prefix_list.go deleted file mode 100644 index 562a2b6803..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_prefix_list.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreatePrefixList invokes the ecs.CreatePrefixList API synchronously -func (client *Client) CreatePrefixList(request *CreatePrefixListRequest) (response *CreatePrefixListResponse, err error) { - response = CreateCreatePrefixListResponse() - err = client.DoAction(request, response) - return -} - -// CreatePrefixListWithChan invokes the ecs.CreatePrefixList API asynchronously -func (client *Client) CreatePrefixListWithChan(request *CreatePrefixListRequest) (<-chan *CreatePrefixListResponse, <-chan error) { - responseChan := make(chan *CreatePrefixListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreatePrefixList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreatePrefixListWithCallback invokes the ecs.CreatePrefixList API asynchronously -func (client *Client) CreatePrefixListWithCallback(request *CreatePrefixListRequest, callback func(response *CreatePrefixListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreatePrefixListResponse - var err error - defer close(result) - response, err = client.CreatePrefixList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreatePrefixListRequest is the request struct for api CreatePrefixList -type CreatePrefixListRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - MaxEntries requests.Integer `position:"Query" name:"MaxEntries"` - AddressFamily string `position:"Query" name:"AddressFamily"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PrefixListName string `position:"Query" name:"PrefixListName"` - Entry *[]CreatePrefixListEntry `position:"Query" name:"Entry" type:"Repeated"` -} - -// CreatePrefixListEntry is a repeated param struct in CreatePrefixListRequest -type CreatePrefixListEntry struct { - Description string `name:"Description"` - Cidr string `name:"Cidr"` -} - -// CreatePrefixListResponse is the response struct for api CreatePrefixList -type CreatePrefixListResponse struct { - *responses.BaseResponse - PrefixListId string `json:"PrefixListId" xml:"PrefixListId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreatePrefixListRequest creates a request to invoke CreatePrefixList API -func CreateCreatePrefixListRequest() (request *CreatePrefixListRequest) { - request = &CreatePrefixListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreatePrefixList", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreatePrefixListResponse creates a response to parse from CreatePrefixList response -func CreateCreatePrefixListResponse() (response *CreatePrefixListResponse) { - response = &CreatePrefixListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go deleted file mode 100644 index 13855a762b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateRouteEntry invokes the ecs.CreateRouteEntry API synchronously -func (client *Client) CreateRouteEntry(request *CreateRouteEntryRequest) (response *CreateRouteEntryResponse, err error) { - response = CreateCreateRouteEntryResponse() - err = client.DoAction(request, response) - return -} - -// CreateRouteEntryWithChan invokes the ecs.CreateRouteEntry API asynchronously -func (client *Client) CreateRouteEntryWithChan(request *CreateRouteEntryRequest) (<-chan *CreateRouteEntryResponse, <-chan error) { - responseChan := make(chan *CreateRouteEntryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateRouteEntry(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateRouteEntryWithCallback invokes the ecs.CreateRouteEntry API asynchronously -func (client *Client) CreateRouteEntryWithCallback(request *CreateRouteEntryRequest, callback func(response *CreateRouteEntryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateRouteEntryResponse - var err error - defer close(result) - response, err = client.CreateRouteEntry(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateRouteEntryRequest is the request struct for api CreateRouteEntry -type CreateRouteEntryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - NextHopId string `position:"Query" name:"NextHopId"` - NextHopType string `position:"Query" name:"NextHopType"` - RouteTableId string `position:"Query" name:"RouteTableId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NextHopList *[]CreateRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` -} - -// CreateRouteEntryNextHopList is a repeated param struct in CreateRouteEntryRequest -type CreateRouteEntryNextHopList struct { - NextHopId string `name:"NextHopId"` - NextHopType string `name:"NextHopType"` -} - -// CreateRouteEntryResponse is the response struct for api CreateRouteEntry -type CreateRouteEntryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateRouteEntryRequest creates a request to invoke CreateRouteEntry API -func CreateCreateRouteEntryRequest() (request *CreateRouteEntryRequest) { - request = &CreateRouteEntryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateRouteEntry", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateRouteEntryResponse creates a response to parse from CreateRouteEntry response -func CreateCreateRouteEntryResponse() (response *CreateRouteEntryResponse) { - response = &CreateRouteEntryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go deleted file mode 100644 index 41cf12d106..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go +++ /dev/null @@ -1,125 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateRouterInterface invokes the ecs.CreateRouterInterface API synchronously -func (client *Client) CreateRouterInterface(request *CreateRouterInterfaceRequest) (response *CreateRouterInterfaceResponse, err error) { - response = CreateCreateRouterInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// CreateRouterInterfaceWithChan invokes the ecs.CreateRouterInterface API asynchronously -func (client *Client) CreateRouterInterfaceWithChan(request *CreateRouterInterfaceRequest) (<-chan *CreateRouterInterfaceResponse, <-chan error) { - responseChan := make(chan *CreateRouterInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateRouterInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateRouterInterfaceWithCallback invokes the ecs.CreateRouterInterface API asynchronously -func (client *Client) CreateRouterInterfaceWithCallback(request *CreateRouterInterfaceRequest, callback func(response *CreateRouterInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateRouterInterfaceResponse - var err error - defer close(result) - response, err = client.CreateRouterInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateRouterInterfaceRequest is the request struct for api CreateRouterInterface -type CreateRouterInterfaceRequest struct { - *requests.RpcRequest - AccessPointId string `position:"Query" name:"AccessPointId"` - OppositeRouterId string `position:"Query" name:"OppositeRouterId"` - OppositeAccessPointId string `position:"Query" name:"OppositeAccessPointId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Role string `position:"Query" name:"Role"` - ClientToken string `position:"Query" name:"ClientToken"` - HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` - Description string `position:"Query" name:"Description"` - Spec string `position:"Query" name:"Spec"` - UserCidr string `position:"Query" name:"UserCidr"` - OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - Period requests.Integer `position:"Query" name:"Period"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OppositeRegionId string `position:"Query" name:"OppositeRegionId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - OppositeInterfaceOwnerId string `position:"Query" name:"OppositeInterfaceOwnerId"` - RouterType string `position:"Query" name:"RouterType"` - HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` - RouterId string `position:"Query" name:"RouterId"` - OppositeRouterType string `position:"Query" name:"OppositeRouterType"` - Name string `position:"Query" name:"Name"` - PricingCycle string `position:"Query" name:"PricingCycle"` -} - -// CreateRouterInterfaceResponse is the response struct for api CreateRouterInterface -type CreateRouterInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId int64 `json:"OrderId" xml:"OrderId"` - RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` -} - -// CreateCreateRouterInterfaceRequest creates a request to invoke CreateRouterInterface API -func CreateCreateRouterInterfaceRequest() (request *CreateRouterInterfaceRequest) { - request = &CreateRouterInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateRouterInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateRouterInterfaceResponse creates a response to parse from CreateRouterInterface response -func CreateCreateRouterInterfaceResponse() (response *CreateRouterInterfaceResponse) { - response = &CreateRouterInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_savings_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_savings_plan.go deleted file mode 100644 index bd49ed7d63..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_savings_plan.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateSavingsPlan invokes the ecs.CreateSavingsPlan API synchronously -func (client *Client) CreateSavingsPlan(request *CreateSavingsPlanRequest) (response *CreateSavingsPlanResponse, err error) { - response = CreateCreateSavingsPlanResponse() - err = client.DoAction(request, response) - return -} - -// CreateSavingsPlanWithChan invokes the ecs.CreateSavingsPlan API asynchronously -func (client *Client) CreateSavingsPlanWithChan(request *CreateSavingsPlanRequest) (<-chan *CreateSavingsPlanResponse, <-chan error) { - responseChan := make(chan *CreateSavingsPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateSavingsPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateSavingsPlanWithCallback invokes the ecs.CreateSavingsPlan API asynchronously -func (client *Client) CreateSavingsPlanWithCallback(request *CreateSavingsPlanRequest, callback func(response *CreateSavingsPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateSavingsPlanResponse - var err error - defer close(result) - response, err = client.CreateSavingsPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateSavingsPlanRequest is the request struct for api CreateSavingsPlan -type CreateSavingsPlanRequest struct { - *requests.RpcRequest - InstanceTypeFamilyGroup string `position:"Query" name:"InstanceTypeFamilyGroup"` - PlanType string `position:"Query" name:"PlanType"` - CommittedAmount string `position:"Query" name:"CommittedAmount"` - Period string `position:"Query" name:"Period"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` - ChargeType string `position:"Query" name:"ChargeType"` -} - -// CreateSavingsPlanResponse is the response struct for api CreateSavingsPlan -type CreateSavingsPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SavingsPlanId string `json:"SavingsPlanId" xml:"SavingsPlanId"` - OrderId string `json:"OrderId" xml:"OrderId"` -} - -// CreateCreateSavingsPlanRequest creates a request to invoke CreateSavingsPlan API -func CreateCreateSavingsPlanRequest() (request *CreateSavingsPlanRequest) { - request = &CreateSavingsPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSavingsPlan", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateSavingsPlanResponse creates a response to parse from CreateSavingsPlan response -func CreateCreateSavingsPlanResponse() (response *CreateSavingsPlanResponse) { - response = &CreateSavingsPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go deleted file mode 100644 index 96ef0a5278..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go +++ /dev/null @@ -1,117 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateSecurityGroup invokes the ecs.CreateSecurityGroup API synchronously -func (client *Client) CreateSecurityGroup(request *CreateSecurityGroupRequest) (response *CreateSecurityGroupResponse, err error) { - response = CreateCreateSecurityGroupResponse() - err = client.DoAction(request, response) - return -} - -// CreateSecurityGroupWithChan invokes the ecs.CreateSecurityGroup API asynchronously -func (client *Client) CreateSecurityGroupWithChan(request *CreateSecurityGroupRequest) (<-chan *CreateSecurityGroupResponse, <-chan error) { - responseChan := make(chan *CreateSecurityGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateSecurityGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateSecurityGroupWithCallback invokes the ecs.CreateSecurityGroup API asynchronously -func (client *Client) CreateSecurityGroupWithCallback(request *CreateSecurityGroupRequest, callback func(response *CreateSecurityGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateSecurityGroupResponse - var err error - defer close(result) - response, err = client.CreateSecurityGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateSecurityGroupRequest is the request struct for api CreateSecurityGroup -type CreateSecurityGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - ServiceManaged requests.Boolean `position:"Query" name:"ServiceManaged"` - Description string `position:"Query" name:"Description"` - SecurityGroupName string `position:"Query" name:"SecurityGroupName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CreateSecurityGroupTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityGroupType string `position:"Query" name:"SecurityGroupType"` - VpcId string `position:"Query" name:"VpcId"` -} - -// CreateSecurityGroupTag is a repeated param struct in CreateSecurityGroupRequest -type CreateSecurityGroupTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateSecurityGroupResponse is the response struct for api CreateSecurityGroup -type CreateSecurityGroupResponse struct { - *responses.BaseResponse - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateSecurityGroupRequest creates a request to invoke CreateSecurityGroup API -func CreateCreateSecurityGroupRequest() (request *CreateSecurityGroupRequest) { - request = &CreateSecurityGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSecurityGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateSecurityGroupResponse creates a response to parse from CreateSecurityGroup response -func CreateCreateSecurityGroupResponse() (response *CreateSecurityGroupResponse) { - response = &CreateSecurityGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go deleted file mode 100644 index 723fd69493..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateSimulatedSystemEvents invokes the ecs.CreateSimulatedSystemEvents API synchronously -func (client *Client) CreateSimulatedSystemEvents(request *CreateSimulatedSystemEventsRequest) (response *CreateSimulatedSystemEventsResponse, err error) { - response = CreateCreateSimulatedSystemEventsResponse() - err = client.DoAction(request, response) - return -} - -// CreateSimulatedSystemEventsWithChan invokes the ecs.CreateSimulatedSystemEvents API asynchronously -func (client *Client) CreateSimulatedSystemEventsWithChan(request *CreateSimulatedSystemEventsRequest) (<-chan *CreateSimulatedSystemEventsResponse, <-chan error) { - responseChan := make(chan *CreateSimulatedSystemEventsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateSimulatedSystemEvents(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateSimulatedSystemEventsWithCallback invokes the ecs.CreateSimulatedSystemEvents API asynchronously -func (client *Client) CreateSimulatedSystemEventsWithCallback(request *CreateSimulatedSystemEventsRequest, callback func(response *CreateSimulatedSystemEventsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateSimulatedSystemEventsResponse - var err error - defer close(result) - response, err = client.CreateSimulatedSystemEvents(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateSimulatedSystemEventsRequest is the request struct for api CreateSimulatedSystemEvents -type CreateSimulatedSystemEventsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NotBefore string `position:"Query" name:"NotBefore"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - EventType string `position:"Query" name:"EventType"` -} - -// CreateSimulatedSystemEventsResponse is the response struct for api CreateSimulatedSystemEvents -type CreateSimulatedSystemEventsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - EventIdSet EventIdSet `json:"EventIdSet" xml:"EventIdSet"` -} - -// CreateCreateSimulatedSystemEventsRequest creates a request to invoke CreateSimulatedSystemEvents API -func CreateCreateSimulatedSystemEventsRequest() (request *CreateSimulatedSystemEventsRequest) { - request = &CreateSimulatedSystemEventsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSimulatedSystemEvents", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateSimulatedSystemEventsResponse creates a response to parse from CreateSimulatedSystemEvents response -func CreateCreateSimulatedSystemEventsResponse() (response *CreateSimulatedSystemEventsResponse) { - response = &CreateSimulatedSystemEventsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go deleted file mode 100644 index fa192a6206..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go +++ /dev/null @@ -1,128 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateSnapshot invokes the ecs.CreateSnapshot API synchronously -func (client *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error) { - response = CreateCreateSnapshotResponse() - err = client.DoAction(request, response) - return -} - -// CreateSnapshotWithChan invokes the ecs.CreateSnapshot API asynchronously -func (client *Client) CreateSnapshotWithChan(request *CreateSnapshotRequest) (<-chan *CreateSnapshotResponse, <-chan error) { - responseChan := make(chan *CreateSnapshotResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateSnapshot(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateSnapshotWithCallback invokes the ecs.CreateSnapshot API asynchronously -func (client *Client) CreateSnapshotWithCallback(request *CreateSnapshotRequest, callback func(response *CreateSnapshotResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateSnapshotResponse - var err error - defer close(result) - response, err = client.CreateSnapshot(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateSnapshotRequest is the request struct for api CreateSnapshot -type CreateSnapshotRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - InstantAccess requests.Boolean `position:"Query" name:"InstantAccess"` - SystemTag *[]CreateSnapshotSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` - Description string `position:"Query" name:"Description"` - SnapshotName string `position:"Query" name:"SnapshotName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - InstantAccessRetentionDays requests.Integer `position:"Query" name:"InstantAccessRetentionDays"` - StorageLocationArn string `position:"Query" name:"StorageLocationArn"` - DiskId string `position:"Query" name:"DiskId"` - Tag *[]CreateSnapshotTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` - Category string `position:"Query" name:"Category"` -} - -// CreateSnapshotSystemTag is a repeated param struct in CreateSnapshotRequest -type CreateSnapshotSystemTag struct { - Scope string `name:"Scope"` - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateSnapshotTag is a repeated param struct in CreateSnapshotRequest -type CreateSnapshotTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// CreateSnapshotResponse is the response struct for api CreateSnapshot -type CreateSnapshotResponse struct { - *responses.BaseResponse - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateSnapshotRequest creates a request to invoke CreateSnapshot API -func CreateCreateSnapshotRequest() (request *CreateSnapshotRequest) { - request = &CreateSnapshotRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSnapshot", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateSnapshotResponse creates a response to parse from CreateSnapshot response -func CreateCreateSnapshotResponse() (response *CreateSnapshotResponse) { - response = &CreateSnapshotResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot_group.go deleted file mode 100644 index 7814bfe00e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot_group.go +++ /dev/null @@ -1,120 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateSnapshotGroup invokes the ecs.CreateSnapshotGroup API synchronously -func (client *Client) CreateSnapshotGroup(request *CreateSnapshotGroupRequest) (response *CreateSnapshotGroupResponse, err error) { - response = CreateCreateSnapshotGroupResponse() - err = client.DoAction(request, response) - return -} - -// CreateSnapshotGroupWithChan invokes the ecs.CreateSnapshotGroup API asynchronously -func (client *Client) CreateSnapshotGroupWithChan(request *CreateSnapshotGroupRequest) (<-chan *CreateSnapshotGroupResponse, <-chan error) { - responseChan := make(chan *CreateSnapshotGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateSnapshotGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateSnapshotGroupWithCallback invokes the ecs.CreateSnapshotGroup API asynchronously -func (client *Client) CreateSnapshotGroupWithCallback(request *CreateSnapshotGroupRequest, callback func(response *CreateSnapshotGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateSnapshotGroupResponse - var err error - defer close(result) - response, err = client.CreateSnapshotGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateSnapshotGroupRequest is the request struct for api CreateSnapshotGroup -type CreateSnapshotGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - InstantAccess requests.Boolean `position:"Query" name:"InstantAccess"` - ExcludeDiskId *[]string `position:"Query" name:"ExcludeDiskId" type:"Repeated"` - Description string `position:"Query" name:"Description"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - InstantAccessRetentionDays requests.Integer `position:"Query" name:"InstantAccessRetentionDays"` - StorageLocationArn string `position:"Query" name:"StorageLocationArn"` - DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` - Tag *[]CreateSnapshotGroupTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - Name string `position:"Query" name:"Name"` -} - -// CreateSnapshotGroupTag is a repeated param struct in CreateSnapshotGroupRequest -type CreateSnapshotGroupTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// CreateSnapshotGroupResponse is the response struct for api CreateSnapshotGroup -type CreateSnapshotGroupResponse struct { - *responses.BaseResponse - SnapshotGroupId string `json:"SnapshotGroupId" xml:"SnapshotGroupId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateSnapshotGroupRequest creates a request to invoke CreateSnapshotGroup API -func CreateCreateSnapshotGroupRequest() (request *CreateSnapshotGroupRequest) { - request = &CreateSnapshotGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSnapshotGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateSnapshotGroupResponse creates a response to parse from CreateSnapshotGroup response -func CreateCreateSnapshotGroupResponse() (response *CreateSnapshotGroupResponse) { - response = &CreateSnapshotGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go deleted file mode 100644 index 7a3960eb4c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateStorageSet invokes the ecs.CreateStorageSet API synchronously -func (client *Client) CreateStorageSet(request *CreateStorageSetRequest) (response *CreateStorageSetResponse, err error) { - response = CreateCreateStorageSetResponse() - err = client.DoAction(request, response) - return -} - -// CreateStorageSetWithChan invokes the ecs.CreateStorageSet API asynchronously -func (client *Client) CreateStorageSetWithChan(request *CreateStorageSetRequest) (<-chan *CreateStorageSetResponse, <-chan error) { - responseChan := make(chan *CreateStorageSetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateStorageSet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateStorageSetWithCallback invokes the ecs.CreateStorageSet API asynchronously -func (client *Client) CreateStorageSetWithCallback(request *CreateStorageSetRequest, callback func(response *CreateStorageSetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateStorageSetResponse - var err error - defer close(result) - response, err = client.CreateStorageSet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateStorageSetRequest is the request struct for api CreateStorageSet -type CreateStorageSetRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - MaxPartitionNumber requests.Integer `position:"Query" name:"MaxPartitionNumber"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ZoneId string `position:"Query" name:"ZoneId"` - StorageSetName string `position:"Query" name:"StorageSetName"` -} - -// CreateStorageSetResponse is the response struct for api CreateStorageSet -type CreateStorageSetResponse struct { - *responses.BaseResponse - StorageSetId string `json:"StorageSetId" xml:"StorageSetId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateStorageSetRequest creates a request to invoke CreateStorageSet API -func CreateCreateStorageSetRequest() (request *CreateStorageSetRequest) { - request = &CreateStorageSetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateStorageSet", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateStorageSetResponse creates a response to parse from CreateStorageSet response -func CreateCreateStorageSetResponse() (response *CreateStorageSetResponse) { - response = &CreateStorageSetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go deleted file mode 100644 index 283f2af906..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateVSwitch invokes the ecs.CreateVSwitch API synchronously -func (client *Client) CreateVSwitch(request *CreateVSwitchRequest) (response *CreateVSwitchResponse, err error) { - response = CreateCreateVSwitchResponse() - err = client.DoAction(request, response) - return -} - -// CreateVSwitchWithChan invokes the ecs.CreateVSwitch API asynchronously -func (client *Client) CreateVSwitchWithChan(request *CreateVSwitchRequest) (<-chan *CreateVSwitchResponse, <-chan error) { - responseChan := make(chan *CreateVSwitchResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateVSwitch(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateVSwitchWithCallback invokes the ecs.CreateVSwitch API asynchronously -func (client *Client) CreateVSwitchWithCallback(request *CreateVSwitchRequest, callback func(response *CreateVSwitchResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateVSwitchResponse - var err error - defer close(result) - response, err = client.CreateVSwitch(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateVSwitchRequest is the request struct for api CreateVSwitch -type CreateVSwitchRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VpcId string `position:"Query" name:"VpcId"` - VSwitchName string `position:"Query" name:"VSwitchName"` - CidrBlock string `position:"Query" name:"CidrBlock"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// CreateVSwitchResponse is the response struct for api CreateVSwitch -type CreateVSwitchResponse struct { - *responses.BaseResponse - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateVSwitchRequest creates a request to invoke CreateVSwitch API -func CreateCreateVSwitchRequest() (request *CreateVSwitchRequest) { - request = &CreateVSwitchRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVSwitch", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateVSwitchResponse creates a response to parse from CreateVSwitch response -func CreateCreateVSwitchResponse() (response *CreateVSwitchResponse) { - response = &CreateVSwitchResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go deleted file mode 100644 index 90b82fdab8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateVirtualBorderRouter invokes the ecs.CreateVirtualBorderRouter API synchronously -func (client *Client) CreateVirtualBorderRouter(request *CreateVirtualBorderRouterRequest) (response *CreateVirtualBorderRouterResponse, err error) { - response = CreateCreateVirtualBorderRouterResponse() - err = client.DoAction(request, response) - return -} - -// CreateVirtualBorderRouterWithChan invokes the ecs.CreateVirtualBorderRouter API asynchronously -func (client *Client) CreateVirtualBorderRouterWithChan(request *CreateVirtualBorderRouterRequest) (<-chan *CreateVirtualBorderRouterResponse, <-chan error) { - responseChan := make(chan *CreateVirtualBorderRouterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateVirtualBorderRouter(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateVirtualBorderRouterWithCallback invokes the ecs.CreateVirtualBorderRouter API asynchronously -func (client *Client) CreateVirtualBorderRouterWithCallback(request *CreateVirtualBorderRouterRequest, callback func(response *CreateVirtualBorderRouterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateVirtualBorderRouterResponse - var err error - defer close(result) - response, err = client.CreateVirtualBorderRouter(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateVirtualBorderRouterRequest is the request struct for api CreateVirtualBorderRouter -type CreateVirtualBorderRouterRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CircuitCode string `position:"Query" name:"CircuitCode"` - VlanId requests.Integer `position:"Query" name:"VlanId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` - PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` - LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` - Name string `position:"Query" name:"Name"` - VbrOwnerId requests.Integer `position:"Query" name:"VbrOwnerId"` -} - -// CreateVirtualBorderRouterResponse is the response struct for api CreateVirtualBorderRouter -type CreateVirtualBorderRouterResponse struct { - *responses.BaseResponse - VbrId string `json:"VbrId" xml:"VbrId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateVirtualBorderRouterRequest creates a request to invoke CreateVirtualBorderRouter API -func CreateCreateVirtualBorderRouterRequest() (request *CreateVirtualBorderRouterRequest) { - request = &CreateVirtualBorderRouterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVirtualBorderRouter", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateVirtualBorderRouterResponse creates a response to parse from CreateVirtualBorderRouter response -func CreateCreateVirtualBorderRouterResponse() (response *CreateVirtualBorderRouterResponse) { - response = &CreateVirtualBorderRouterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go deleted file mode 100644 index 8a0be80ada..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateVpc invokes the ecs.CreateVpc API synchronously -func (client *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcResponse, err error) { - response = CreateCreateVpcResponse() - err = client.DoAction(request, response) - return -} - -// CreateVpcWithChan invokes the ecs.CreateVpc API asynchronously -func (client *Client) CreateVpcWithChan(request *CreateVpcRequest) (<-chan *CreateVpcResponse, <-chan error) { - responseChan := make(chan *CreateVpcResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateVpc(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateVpcWithCallback invokes the ecs.CreateVpc API asynchronously -func (client *Client) CreateVpcWithCallback(request *CreateVpcRequest, callback func(response *CreateVpcResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateVpcResponse - var err error - defer close(result) - response, err = client.CreateVpc(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateVpcRequest is the request struct for api CreateVpc -type CreateVpcRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - VpcName string `position:"Query" name:"VpcName"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CidrBlock string `position:"Query" name:"CidrBlock"` -} - -// CreateVpcResponse is the response struct for api CreateVpc -type CreateVpcResponse struct { - *responses.BaseResponse - VpcId string `json:"VpcId" xml:"VpcId"` - VRouterId string `json:"VRouterId" xml:"VRouterId"` - RequestId string `json:"RequestId" xml:"RequestId"` - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` -} - -// CreateCreateVpcRequest creates a request to invoke CreateVpc API -func CreateCreateVpcRequest() (request *CreateVpcRequest) { - request = &CreateVpcRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVpc", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateVpcResponse creates a response to parse from CreateVpc response -func CreateCreateVpcResponse() (response *CreateVpcResponse) { - response = &CreateVpcResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go deleted file mode 100644 index 67a7b70424..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeactivateRouterInterface invokes the ecs.DeactivateRouterInterface API synchronously -func (client *Client) DeactivateRouterInterface(request *DeactivateRouterInterfaceRequest) (response *DeactivateRouterInterfaceResponse, err error) { - response = CreateDeactivateRouterInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// DeactivateRouterInterfaceWithChan invokes the ecs.DeactivateRouterInterface API asynchronously -func (client *Client) DeactivateRouterInterfaceWithChan(request *DeactivateRouterInterfaceRequest) (<-chan *DeactivateRouterInterfaceResponse, <-chan error) { - responseChan := make(chan *DeactivateRouterInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeactivateRouterInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeactivateRouterInterfaceWithCallback invokes the ecs.DeactivateRouterInterface API asynchronously -func (client *Client) DeactivateRouterInterfaceWithCallback(request *DeactivateRouterInterfaceRequest, callback func(response *DeactivateRouterInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeactivateRouterInterfaceResponse - var err error - defer close(result) - response, err = client.DeactivateRouterInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeactivateRouterInterfaceRequest is the request struct for api DeactivateRouterInterface -type DeactivateRouterInterfaceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` -} - -// DeactivateRouterInterfaceResponse is the response struct for api DeactivateRouterInterface -type DeactivateRouterInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeactivateRouterInterfaceRequest creates a request to invoke DeactivateRouterInterface API -func CreateDeactivateRouterInterfaceRequest() (request *DeactivateRouterInterfaceRequest) { - request = &DeactivateRouterInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeactivateRouterInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeactivateRouterInterfaceResponse creates a response to parse from DeactivateRouterInterface response -func CreateDeactivateRouterInterfaceResponse() (response *DeactivateRouterInterfaceResponse) { - response = &DeactivateRouterInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_activation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_activation.go deleted file mode 100644 index 9501379668..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_activation.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteActivation invokes the ecs.DeleteActivation API synchronously -func (client *Client) DeleteActivation(request *DeleteActivationRequest) (response *DeleteActivationResponse, err error) { - response = CreateDeleteActivationResponse() - err = client.DoAction(request, response) - return -} - -// DeleteActivationWithChan invokes the ecs.DeleteActivation API asynchronously -func (client *Client) DeleteActivationWithChan(request *DeleteActivationRequest) (<-chan *DeleteActivationResponse, <-chan error) { - responseChan := make(chan *DeleteActivationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteActivation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteActivationWithCallback invokes the ecs.DeleteActivation API asynchronously -func (client *Client) DeleteActivationWithCallback(request *DeleteActivationRequest, callback func(response *DeleteActivationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteActivationResponse - var err error - defer close(result) - response, err = client.DeleteActivation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteActivationRequest is the request struct for api DeleteActivation -type DeleteActivationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ActivationId string `position:"Query" name:"ActivationId"` -} - -// DeleteActivationResponse is the response struct for api DeleteActivation -type DeleteActivationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Activation Activation `json:"Activation" xml:"Activation"` -} - -// CreateDeleteActivationRequest creates a request to invoke DeleteActivation API -func CreateDeleteActivationRequest() (request *DeleteActivationRequest) { - request = &DeleteActivationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteActivation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteActivationResponse creates a response to parse from DeleteActivation response -func CreateDeleteActivationResponse() (response *DeleteActivationResponse) { - response = &DeleteActivationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go deleted file mode 100644 index 802a39fcc5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteAutoProvisioningGroup invokes the ecs.DeleteAutoProvisioningGroup API synchronously -func (client *Client) DeleteAutoProvisioningGroup(request *DeleteAutoProvisioningGroupRequest) (response *DeleteAutoProvisioningGroupResponse, err error) { - response = CreateDeleteAutoProvisioningGroupResponse() - err = client.DoAction(request, response) - return -} - -// DeleteAutoProvisioningGroupWithChan invokes the ecs.DeleteAutoProvisioningGroup API asynchronously -func (client *Client) DeleteAutoProvisioningGroupWithChan(request *DeleteAutoProvisioningGroupRequest) (<-chan *DeleteAutoProvisioningGroupResponse, <-chan error) { - responseChan := make(chan *DeleteAutoProvisioningGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteAutoProvisioningGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteAutoProvisioningGroupWithCallback invokes the ecs.DeleteAutoProvisioningGroup API asynchronously -func (client *Client) DeleteAutoProvisioningGroupWithCallback(request *DeleteAutoProvisioningGroupRequest, callback func(response *DeleteAutoProvisioningGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteAutoProvisioningGroupResponse - var err error - defer close(result) - response, err = client.DeleteAutoProvisioningGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteAutoProvisioningGroupRequest is the request struct for api DeleteAutoProvisioningGroup -type DeleteAutoProvisioningGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TerminateInstances requests.Boolean `position:"Query" name:"TerminateInstances"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoProvisioningGroupId string `position:"Query" name:"AutoProvisioningGroupId"` -} - -// DeleteAutoProvisioningGroupResponse is the response struct for api DeleteAutoProvisioningGroup -type DeleteAutoProvisioningGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteAutoProvisioningGroupRequest creates a request to invoke DeleteAutoProvisioningGroup API -func CreateDeleteAutoProvisioningGroupRequest() (request *DeleteAutoProvisioningGroupRequest) { - request = &DeleteAutoProvisioningGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteAutoProvisioningGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteAutoProvisioningGroupResponse creates a response to parse from DeleteAutoProvisioningGroup response -func CreateDeleteAutoProvisioningGroupResponse() (response *DeleteAutoProvisioningGroupResponse) { - response = &DeleteAutoProvisioningGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go deleted file mode 100644 index ae0ce916b5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteAutoSnapshotPolicy invokes the ecs.DeleteAutoSnapshotPolicy API synchronously -func (client *Client) DeleteAutoSnapshotPolicy(request *DeleteAutoSnapshotPolicyRequest) (response *DeleteAutoSnapshotPolicyResponse, err error) { - response = CreateDeleteAutoSnapshotPolicyResponse() - err = client.DoAction(request, response) - return -} - -// DeleteAutoSnapshotPolicyWithChan invokes the ecs.DeleteAutoSnapshotPolicy API asynchronously -func (client *Client) DeleteAutoSnapshotPolicyWithChan(request *DeleteAutoSnapshotPolicyRequest) (<-chan *DeleteAutoSnapshotPolicyResponse, <-chan error) { - responseChan := make(chan *DeleteAutoSnapshotPolicyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteAutoSnapshotPolicy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteAutoSnapshotPolicyWithCallback invokes the ecs.DeleteAutoSnapshotPolicy API asynchronously -func (client *Client) DeleteAutoSnapshotPolicyWithCallback(request *DeleteAutoSnapshotPolicyRequest, callback func(response *DeleteAutoSnapshotPolicyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteAutoSnapshotPolicyResponse - var err error - defer close(result) - response, err = client.DeleteAutoSnapshotPolicy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteAutoSnapshotPolicyRequest is the request struct for api DeleteAutoSnapshotPolicy -type DeleteAutoSnapshotPolicyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteAutoSnapshotPolicyResponse is the response struct for api DeleteAutoSnapshotPolicy -type DeleteAutoSnapshotPolicyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteAutoSnapshotPolicyRequest creates a request to invoke DeleteAutoSnapshotPolicy API -func CreateDeleteAutoSnapshotPolicyRequest() (request *DeleteAutoSnapshotPolicyRequest) { - request = &DeleteAutoSnapshotPolicyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteAutoSnapshotPolicy", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteAutoSnapshotPolicyResponse creates a response to parse from DeleteAutoSnapshotPolicy response -func CreateDeleteAutoSnapshotPolicyResponse() (response *DeleteAutoSnapshotPolicyResponse) { - response = &DeleteAutoSnapshotPolicyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go deleted file mode 100644 index e8fe71e71d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteBandwidthPackage invokes the ecs.DeleteBandwidthPackage API synchronously -func (client *Client) DeleteBandwidthPackage(request *DeleteBandwidthPackageRequest) (response *DeleteBandwidthPackageResponse, err error) { - response = CreateDeleteBandwidthPackageResponse() - err = client.DoAction(request, response) - return -} - -// DeleteBandwidthPackageWithChan invokes the ecs.DeleteBandwidthPackage API asynchronously -func (client *Client) DeleteBandwidthPackageWithChan(request *DeleteBandwidthPackageRequest) (<-chan *DeleteBandwidthPackageResponse, <-chan error) { - responseChan := make(chan *DeleteBandwidthPackageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteBandwidthPackage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteBandwidthPackageWithCallback invokes the ecs.DeleteBandwidthPackage API asynchronously -func (client *Client) DeleteBandwidthPackageWithCallback(request *DeleteBandwidthPackageRequest, callback func(response *DeleteBandwidthPackageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteBandwidthPackageResponse - var err error - defer close(result) - response, err = client.DeleteBandwidthPackage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteBandwidthPackageRequest is the request struct for api DeleteBandwidthPackage -type DeleteBandwidthPackageRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteBandwidthPackageResponse is the response struct for api DeleteBandwidthPackage -type DeleteBandwidthPackageResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteBandwidthPackageRequest creates a request to invoke DeleteBandwidthPackage API -func CreateDeleteBandwidthPackageRequest() (request *DeleteBandwidthPackageRequest) { - request = &DeleteBandwidthPackageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteBandwidthPackage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteBandwidthPackageResponse creates a response to parse from DeleteBandwidthPackage response -func CreateDeleteBandwidthPackageResponse() (response *DeleteBandwidthPackageResponse) { - response = &DeleteBandwidthPackageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go deleted file mode 100644 index 5c21c67d2c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteCommand invokes the ecs.DeleteCommand API synchronously -func (client *Client) DeleteCommand(request *DeleteCommandRequest) (response *DeleteCommandResponse, err error) { - response = CreateDeleteCommandResponse() - err = client.DoAction(request, response) - return -} - -// DeleteCommandWithChan invokes the ecs.DeleteCommand API asynchronously -func (client *Client) DeleteCommandWithChan(request *DeleteCommandRequest) (<-chan *DeleteCommandResponse, <-chan error) { - responseChan := make(chan *DeleteCommandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteCommand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteCommandWithCallback invokes the ecs.DeleteCommand API asynchronously -func (client *Client) DeleteCommandWithCallback(request *DeleteCommandRequest, callback func(response *DeleteCommandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteCommandResponse - var err error - defer close(result) - response, err = client.DeleteCommand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteCommandRequest is the request struct for api DeleteCommand -type DeleteCommandRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CommandId string `position:"Query" name:"CommandId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteCommandResponse is the response struct for api DeleteCommand -type DeleteCommandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteCommandRequest creates a request to invoke DeleteCommand API -func CreateDeleteCommandRequest() (request *DeleteCommandRequest) { - request = &DeleteCommandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteCommand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteCommandResponse creates a response to parse from DeleteCommand response -func CreateDeleteCommandResponse() (response *DeleteCommandResponse) { - response = &DeleteCommandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_dedicated_host_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_dedicated_host_cluster.go deleted file mode 100644 index bbe22e02f7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_dedicated_host_cluster.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteDedicatedHostCluster invokes the ecs.DeleteDedicatedHostCluster API synchronously -func (client *Client) DeleteDedicatedHostCluster(request *DeleteDedicatedHostClusterRequest) (response *DeleteDedicatedHostClusterResponse, err error) { - response = CreateDeleteDedicatedHostClusterResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDedicatedHostClusterWithChan invokes the ecs.DeleteDedicatedHostCluster API asynchronously -func (client *Client) DeleteDedicatedHostClusterWithChan(request *DeleteDedicatedHostClusterRequest) (<-chan *DeleteDedicatedHostClusterResponse, <-chan error) { - responseChan := make(chan *DeleteDedicatedHostClusterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDedicatedHostCluster(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDedicatedHostClusterWithCallback invokes the ecs.DeleteDedicatedHostCluster API asynchronously -func (client *Client) DeleteDedicatedHostClusterWithCallback(request *DeleteDedicatedHostClusterRequest, callback func(response *DeleteDedicatedHostClusterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDedicatedHostClusterResponse - var err error - defer close(result) - response, err = client.DeleteDedicatedHostCluster(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDedicatedHostClusterRequest is the request struct for api DeleteDedicatedHostCluster -type DeleteDedicatedHostClusterRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteDedicatedHostClusterResponse is the response struct for api DeleteDedicatedHostCluster -type DeleteDedicatedHostClusterResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDedicatedHostClusterRequest creates a request to invoke DeleteDedicatedHostCluster API -func CreateDeleteDedicatedHostClusterRequest() (request *DeleteDedicatedHostClusterRequest) { - request = &DeleteDedicatedHostClusterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDedicatedHostCluster", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDedicatedHostClusterResponse creates a response to parse from DeleteDedicatedHostCluster response -func CreateDeleteDedicatedHostClusterResponse() (response *DeleteDedicatedHostClusterResponse) { - response = &DeleteDedicatedHostClusterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_demand.go deleted file mode 100644 index 83f21b08d4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_demand.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteDemand invokes the ecs.DeleteDemand API synchronously -func (client *Client) DeleteDemand(request *DeleteDemandRequest) (response *DeleteDemandResponse, err error) { - response = CreateDeleteDemandResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDemandWithChan invokes the ecs.DeleteDemand API asynchronously -func (client *Client) DeleteDemandWithChan(request *DeleteDemandRequest) (<-chan *DeleteDemandResponse, <-chan error) { - responseChan := make(chan *DeleteDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDemandWithCallback invokes the ecs.DeleteDemand API asynchronously -func (client *Client) DeleteDemandWithCallback(request *DeleteDemandRequest, callback func(response *DeleteDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDemandResponse - var err error - defer close(result) - response, err = client.DeleteDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDemandRequest is the request struct for api DeleteDemand -type DeleteDemandRequest struct { - *requests.RpcRequest - Reason string `position:"Query" name:"Reason"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DemandId string `position:"Query" name:"DemandId"` -} - -// DeleteDemandResponse is the response struct for api DeleteDemand -type DeleteDemandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDemandRequest creates a request to invoke DeleteDemand API -func CreateDeleteDemandRequest() (request *DeleteDemandRequest) { - request = &DeleteDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDemand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDemandResponse creates a response to parse from DeleteDemand response -func CreateDeleteDemandResponse() (response *DeleteDemandResponse) { - response = &DeleteDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go deleted file mode 100644 index 97ab915f4c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteDeploymentSet invokes the ecs.DeleteDeploymentSet API synchronously -func (client *Client) DeleteDeploymentSet(request *DeleteDeploymentSetRequest) (response *DeleteDeploymentSetResponse, err error) { - response = CreateDeleteDeploymentSetResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDeploymentSetWithChan invokes the ecs.DeleteDeploymentSet API asynchronously -func (client *Client) DeleteDeploymentSetWithChan(request *DeleteDeploymentSetRequest) (<-chan *DeleteDeploymentSetResponse, <-chan error) { - responseChan := make(chan *DeleteDeploymentSetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDeploymentSet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDeploymentSetWithCallback invokes the ecs.DeleteDeploymentSet API asynchronously -func (client *Client) DeleteDeploymentSetWithCallback(request *DeleteDeploymentSetRequest, callback func(response *DeleteDeploymentSetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDeploymentSetResponse - var err error - defer close(result) - response, err = client.DeleteDeploymentSet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDeploymentSetRequest is the request struct for api DeleteDeploymentSet -type DeleteDeploymentSetRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteDeploymentSetResponse is the response struct for api DeleteDeploymentSet -type DeleteDeploymentSetResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDeploymentSetRequest creates a request to invoke DeleteDeploymentSet API -func CreateDeleteDeploymentSetRequest() (request *DeleteDeploymentSetRequest) { - request = &DeleteDeploymentSetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDeploymentSet", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDeploymentSetResponse creates a response to parse from DeleteDeploymentSet response -func CreateDeleteDeploymentSetResponse() (response *DeleteDeploymentSetResponse) { - response = &DeleteDeploymentSetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_metric_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_metric_sets.go deleted file mode 100644 index 933e4344c9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_metric_sets.go +++ /dev/null @@ -1,99 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteDiagnosticMetricSets invokes the ecs.DeleteDiagnosticMetricSets API synchronously -func (client *Client) DeleteDiagnosticMetricSets(request *DeleteDiagnosticMetricSetsRequest) (response *DeleteDiagnosticMetricSetsResponse, err error) { - response = CreateDeleteDiagnosticMetricSetsResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDiagnosticMetricSetsWithChan invokes the ecs.DeleteDiagnosticMetricSets API asynchronously -func (client *Client) DeleteDiagnosticMetricSetsWithChan(request *DeleteDiagnosticMetricSetsRequest) (<-chan *DeleteDiagnosticMetricSetsResponse, <-chan error) { - responseChan := make(chan *DeleteDiagnosticMetricSetsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDiagnosticMetricSets(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDiagnosticMetricSetsWithCallback invokes the ecs.DeleteDiagnosticMetricSets API asynchronously -func (client *Client) DeleteDiagnosticMetricSetsWithCallback(request *DeleteDiagnosticMetricSetsRequest, callback func(response *DeleteDiagnosticMetricSetsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDiagnosticMetricSetsResponse - var err error - defer close(result) - response, err = client.DeleteDiagnosticMetricSets(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDiagnosticMetricSetsRequest is the request struct for api DeleteDiagnosticMetricSets -type DeleteDiagnosticMetricSetsRequest struct { - *requests.RpcRequest - MetricSetIds *[]string `position:"Query" name:"MetricSetIds" type:"Repeated"` -} - -// DeleteDiagnosticMetricSetsResponse is the response struct for api DeleteDiagnosticMetricSets -type DeleteDiagnosticMetricSetsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDiagnosticMetricSetsRequest creates a request to invoke DeleteDiagnosticMetricSets API -func CreateDeleteDiagnosticMetricSetsRequest() (request *DeleteDiagnosticMetricSetsRequest) { - request = &DeleteDiagnosticMetricSetsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDiagnosticMetricSets", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDiagnosticMetricSetsResponse creates a response to parse from DeleteDiagnosticMetricSets response -func CreateDeleteDiagnosticMetricSetsResponse() (response *DeleteDiagnosticMetricSetsResponse) { - response = &DeleteDiagnosticMetricSetsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_reports.go deleted file mode 100644 index a82dede5c8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_reports.go +++ /dev/null @@ -1,99 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteDiagnosticReports invokes the ecs.DeleteDiagnosticReports API synchronously -func (client *Client) DeleteDiagnosticReports(request *DeleteDiagnosticReportsRequest) (response *DeleteDiagnosticReportsResponse, err error) { - response = CreateDeleteDiagnosticReportsResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDiagnosticReportsWithChan invokes the ecs.DeleteDiagnosticReports API asynchronously -func (client *Client) DeleteDiagnosticReportsWithChan(request *DeleteDiagnosticReportsRequest) (<-chan *DeleteDiagnosticReportsResponse, <-chan error) { - responseChan := make(chan *DeleteDiagnosticReportsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDiagnosticReports(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDiagnosticReportsWithCallback invokes the ecs.DeleteDiagnosticReports API asynchronously -func (client *Client) DeleteDiagnosticReportsWithCallback(request *DeleteDiagnosticReportsRequest, callback func(response *DeleteDiagnosticReportsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDiagnosticReportsResponse - var err error - defer close(result) - response, err = client.DeleteDiagnosticReports(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDiagnosticReportsRequest is the request struct for api DeleteDiagnosticReports -type DeleteDiagnosticReportsRequest struct { - *requests.RpcRequest - ReportIds *[]string `position:"Query" name:"ReportIds" type:"Repeated"` -} - -// DeleteDiagnosticReportsResponse is the response struct for api DeleteDiagnosticReports -type DeleteDiagnosticReportsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDiagnosticReportsRequest creates a request to invoke DeleteDiagnosticReports API -func CreateDeleteDiagnosticReportsRequest() (request *DeleteDiagnosticReportsRequest) { - request = &DeleteDiagnosticReportsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDiagnosticReports", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDiagnosticReportsResponse creates a response to parse from DeleteDiagnosticReports response -func CreateDeleteDiagnosticReportsResponse() (response *DeleteDiagnosticReportsResponse) { - response = &DeleteDiagnosticReportsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go deleted file mode 100644 index c82b594516..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteDisk invokes the ecs.DeleteDisk API synchronously -func (client *Client) DeleteDisk(request *DeleteDiskRequest) (response *DeleteDiskResponse, err error) { - response = CreateDeleteDiskResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDiskWithChan invokes the ecs.DeleteDisk API asynchronously -func (client *Client) DeleteDiskWithChan(request *DeleteDiskRequest) (<-chan *DeleteDiskResponse, <-chan error) { - responseChan := make(chan *DeleteDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDiskWithCallback invokes the ecs.DeleteDisk API asynchronously -func (client *Client) DeleteDiskWithCallback(request *DeleteDiskRequest, callback func(response *DeleteDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDiskResponse - var err error - defer close(result) - response, err = client.DeleteDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDiskRequest is the request struct for api DeleteDisk -type DeleteDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DiskId string `position:"Query" name:"DiskId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteDiskResponse is the response struct for api DeleteDisk -type DeleteDiskResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDiskRequest creates a request to invoke DeleteDisk API -func CreateDeleteDiskRequest() (request *DeleteDiskRequest) { - request = &DeleteDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDiskResponse creates a response to parse from DeleteDisk response -func CreateDeleteDiskResponse() (response *DeleteDiskResponse) { - response = &DeleteDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go deleted file mode 100644 index 9c884c83b7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteForwardEntry invokes the ecs.DeleteForwardEntry API synchronously -func (client *Client) DeleteForwardEntry(request *DeleteForwardEntryRequest) (response *DeleteForwardEntryResponse, err error) { - response = CreateDeleteForwardEntryResponse() - err = client.DoAction(request, response) - return -} - -// DeleteForwardEntryWithChan invokes the ecs.DeleteForwardEntry API asynchronously -func (client *Client) DeleteForwardEntryWithChan(request *DeleteForwardEntryRequest) (<-chan *DeleteForwardEntryResponse, <-chan error) { - responseChan := make(chan *DeleteForwardEntryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteForwardEntry(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteForwardEntryWithCallback invokes the ecs.DeleteForwardEntry API asynchronously -func (client *Client) DeleteForwardEntryWithCallback(request *DeleteForwardEntryRequest, callback func(response *DeleteForwardEntryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteForwardEntryResponse - var err error - defer close(result) - response, err = client.DeleteForwardEntry(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteForwardEntryRequest is the request struct for api DeleteForwardEntry -type DeleteForwardEntryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ForwardTableId string `position:"Query" name:"ForwardTableId"` - ForwardEntryId string `position:"Query" name:"ForwardEntryId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteForwardEntryResponse is the response struct for api DeleteForwardEntry -type DeleteForwardEntryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteForwardEntryRequest creates a request to invoke DeleteForwardEntry API -func CreateDeleteForwardEntryRequest() (request *DeleteForwardEntryRequest) { - request = &DeleteForwardEntryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteForwardEntry", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteForwardEntryResponse creates a response to parse from DeleteForwardEntry response -func CreateDeleteForwardEntryResponse() (response *DeleteForwardEntryResponse) { - response = &DeleteForwardEntryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go deleted file mode 100644 index 1c3c77b856..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteHaVip invokes the ecs.DeleteHaVip API synchronously -func (client *Client) DeleteHaVip(request *DeleteHaVipRequest) (response *DeleteHaVipResponse, err error) { - response = CreateDeleteHaVipResponse() - err = client.DoAction(request, response) - return -} - -// DeleteHaVipWithChan invokes the ecs.DeleteHaVip API asynchronously -func (client *Client) DeleteHaVipWithChan(request *DeleteHaVipRequest) (<-chan *DeleteHaVipResponse, <-chan error) { - responseChan := make(chan *DeleteHaVipResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteHaVip(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteHaVipWithCallback invokes the ecs.DeleteHaVip API asynchronously -func (client *Client) DeleteHaVipWithCallback(request *DeleteHaVipRequest, callback func(response *DeleteHaVipResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteHaVipResponse - var err error - defer close(result) - response, err = client.DeleteHaVip(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteHaVipRequest is the request struct for api DeleteHaVip -type DeleteHaVipRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - HaVipId string `position:"Query" name:"HaVipId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteHaVipResponse is the response struct for api DeleteHaVip -type DeleteHaVipResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteHaVipRequest creates a request to invoke DeleteHaVip API -func CreateDeleteHaVipRequest() (request *DeleteHaVipRequest) { - request = &DeleteHaVipRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteHaVip", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteHaVipResponse creates a response to parse from DeleteHaVip response -func CreateDeleteHaVipResponse() (response *DeleteHaVipResponse) { - response = &DeleteHaVipResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go deleted file mode 100644 index 1557121e76..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteHpcCluster invokes the ecs.DeleteHpcCluster API synchronously -func (client *Client) DeleteHpcCluster(request *DeleteHpcClusterRequest) (response *DeleteHpcClusterResponse, err error) { - response = CreateDeleteHpcClusterResponse() - err = client.DoAction(request, response) - return -} - -// DeleteHpcClusterWithChan invokes the ecs.DeleteHpcCluster API asynchronously -func (client *Client) DeleteHpcClusterWithChan(request *DeleteHpcClusterRequest) (<-chan *DeleteHpcClusterResponse, <-chan error) { - responseChan := make(chan *DeleteHpcClusterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteHpcCluster(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteHpcClusterWithCallback invokes the ecs.DeleteHpcCluster API asynchronously -func (client *Client) DeleteHpcClusterWithCallback(request *DeleteHpcClusterRequest, callback func(response *DeleteHpcClusterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteHpcClusterResponse - var err error - defer close(result) - response, err = client.DeleteHpcCluster(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteHpcClusterRequest is the request struct for api DeleteHpcCluster -type DeleteHpcClusterRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - ClientToken string `position:"Query" name:"ClientToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteHpcClusterResponse is the response struct for api DeleteHpcCluster -type DeleteHpcClusterResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteHpcClusterRequest creates a request to invoke DeleteHpcCluster API -func CreateDeleteHpcClusterRequest() (request *DeleteHpcClusterRequest) { - request = &DeleteHpcClusterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteHpcCluster", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteHpcClusterResponse creates a response to parse from DeleteHpcCluster response -func CreateDeleteHpcClusterResponse() (response *DeleteHpcClusterResponse) { - response = &DeleteHpcClusterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go deleted file mode 100644 index 31bfebd111..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteImage invokes the ecs.DeleteImage API synchronously -func (client *Client) DeleteImage(request *DeleteImageRequest) (response *DeleteImageResponse, err error) { - response = CreateDeleteImageResponse() - err = client.DoAction(request, response) - return -} - -// DeleteImageWithChan invokes the ecs.DeleteImage API asynchronously -func (client *Client) DeleteImageWithChan(request *DeleteImageRequest) (<-chan *DeleteImageResponse, <-chan error) { - responseChan := make(chan *DeleteImageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteImage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteImageWithCallback invokes the ecs.DeleteImage API asynchronously -func (client *Client) DeleteImageWithCallback(request *DeleteImageRequest, callback func(response *DeleteImageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteImageResponse - var err error - defer close(result) - response, err = client.DeleteImage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteImageRequest is the request struct for api DeleteImage -type DeleteImageRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Force requests.Boolean `position:"Query" name:"Force"` -} - -// DeleteImageResponse is the response struct for api DeleteImage -type DeleteImageResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteImageRequest creates a request to invoke DeleteImage API -func CreateDeleteImageRequest() (request *DeleteImageRequest) { - request = &DeleteImageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteImage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteImageResponse creates a response to parse from DeleteImage response -func CreateDeleteImageResponse() (response *DeleteImageResponse) { - response = &DeleteImageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_component.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_component.go deleted file mode 100644 index a8bceafd15..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_component.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteImageComponent invokes the ecs.DeleteImageComponent API synchronously -func (client *Client) DeleteImageComponent(request *DeleteImageComponentRequest) (response *DeleteImageComponentResponse, err error) { - response = CreateDeleteImageComponentResponse() - err = client.DoAction(request, response) - return -} - -// DeleteImageComponentWithChan invokes the ecs.DeleteImageComponent API asynchronously -func (client *Client) DeleteImageComponentWithChan(request *DeleteImageComponentRequest) (<-chan *DeleteImageComponentResponse, <-chan error) { - responseChan := make(chan *DeleteImageComponentResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteImageComponent(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteImageComponentWithCallback invokes the ecs.DeleteImageComponent API asynchronously -func (client *Client) DeleteImageComponentWithCallback(request *DeleteImageComponentRequest, callback func(response *DeleteImageComponentResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteImageComponentResponse - var err error - defer close(result) - response, err = client.DeleteImageComponent(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteImageComponentRequest is the request struct for api DeleteImageComponent -type DeleteImageComponentRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageComponentId string `position:"Query" name:"ImageComponentId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteImageComponentResponse is the response struct for api DeleteImageComponent -type DeleteImageComponentResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteImageComponentRequest creates a request to invoke DeleteImageComponent API -func CreateDeleteImageComponentRequest() (request *DeleteImageComponentRequest) { - request = &DeleteImageComponentRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteImageComponent", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteImageComponentResponse creates a response to parse from DeleteImageComponent response -func CreateDeleteImageComponentResponse() (response *DeleteImageComponentResponse) { - response = &DeleteImageComponentResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_pipeline.go deleted file mode 100644 index f41f02f90b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_pipeline.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteImagePipeline invokes the ecs.DeleteImagePipeline API synchronously -func (client *Client) DeleteImagePipeline(request *DeleteImagePipelineRequest) (response *DeleteImagePipelineResponse, err error) { - response = CreateDeleteImagePipelineResponse() - err = client.DoAction(request, response) - return -} - -// DeleteImagePipelineWithChan invokes the ecs.DeleteImagePipeline API asynchronously -func (client *Client) DeleteImagePipelineWithChan(request *DeleteImagePipelineRequest) (<-chan *DeleteImagePipelineResponse, <-chan error) { - responseChan := make(chan *DeleteImagePipelineResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteImagePipeline(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteImagePipelineWithCallback invokes the ecs.DeleteImagePipeline API asynchronously -func (client *Client) DeleteImagePipelineWithCallback(request *DeleteImagePipelineRequest, callback func(response *DeleteImagePipelineResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteImagePipelineResponse - var err error - defer close(result) - response, err = client.DeleteImagePipeline(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteImagePipelineRequest is the request struct for api DeleteImagePipeline -type DeleteImagePipelineRequest struct { - *requests.RpcRequest - ImagePipelineId string `position:"Query" name:"ImagePipelineId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteImagePipelineResponse is the response struct for api DeleteImagePipeline -type DeleteImagePipelineResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteImagePipelineRequest creates a request to invoke DeleteImagePipeline API -func CreateDeleteImagePipelineRequest() (request *DeleteImagePipelineRequest) { - request = &DeleteImagePipelineRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteImagePipeline", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteImagePipelineResponse creates a response to parse from DeleteImagePipeline response -func CreateDeleteImagePipelineResponse() (response *DeleteImagePipelineResponse) { - response = &DeleteImagePipelineResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go deleted file mode 100644 index fa277ecdcf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteInstance invokes the ecs.DeleteInstance API synchronously -func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { - response = CreateDeleteInstanceResponse() - err = client.DoAction(request, response) - return -} - -// DeleteInstanceWithChan invokes the ecs.DeleteInstance API asynchronously -func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<-chan *DeleteInstanceResponse, <-chan error) { - responseChan := make(chan *DeleteInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteInstanceWithCallback invokes the ecs.DeleteInstance API asynchronously -func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, callback func(response *DeleteInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteInstanceResponse - var err error - defer close(result) - response, err = client.DeleteInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteInstanceRequest is the request struct for api DeleteInstance -type DeleteInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TerminateSubscription requests.Boolean `position:"Query" name:"TerminateSubscription"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - Force requests.Boolean `position:"Query" name:"Force"` -} - -// DeleteInstanceResponse is the response struct for api DeleteInstance -type DeleteInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteInstanceRequest creates a request to invoke DeleteInstance API -func CreateDeleteInstanceRequest() (request *DeleteInstanceRequest) { - request = &DeleteInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteInstanceResponse creates a response to parse from DeleteInstance response -func CreateDeleteInstanceResponse() (response *DeleteInstanceResponse) { - response = &DeleteInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go deleted file mode 100644 index 70a44ee3cf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteInstances invokes the ecs.DeleteInstances API synchronously -func (client *Client) DeleteInstances(request *DeleteInstancesRequest) (response *DeleteInstancesResponse, err error) { - response = CreateDeleteInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DeleteInstancesWithChan invokes the ecs.DeleteInstances API asynchronously -func (client *Client) DeleteInstancesWithChan(request *DeleteInstancesRequest) (<-chan *DeleteInstancesResponse, <-chan error) { - responseChan := make(chan *DeleteInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteInstancesWithCallback invokes the ecs.DeleteInstances API asynchronously -func (client *Client) DeleteInstancesWithCallback(request *DeleteInstancesRequest, callback func(response *DeleteInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteInstancesResponse - var err error - defer close(result) - response, err = client.DeleteInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteInstancesRequest is the request struct for api DeleteInstances -type DeleteInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - TerminateSubscription requests.Boolean `position:"Query" name:"TerminateSubscription"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - Force requests.Boolean `position:"Query" name:"Force"` -} - -// DeleteInstancesResponse is the response struct for api DeleteInstances -type DeleteInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskGroupId string `json:"TaskGroupId" xml:"TaskGroupId"` -} - -// CreateDeleteInstancesRequest creates a request to invoke DeleteInstances API -func CreateDeleteInstancesRequest() (request *DeleteInstancesRequest) { - request = &DeleteInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteInstancesResponse creates a response to parse from DeleteInstances response -func CreateDeleteInstancesResponse() (response *DeleteInstancesResponse) { - response = &DeleteInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go deleted file mode 100644 index 4a9471271e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteKeyPairs invokes the ecs.DeleteKeyPairs API synchronously -func (client *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error) { - response = CreateDeleteKeyPairsResponse() - err = client.DoAction(request, response) - return -} - -// DeleteKeyPairsWithChan invokes the ecs.DeleteKeyPairs API asynchronously -func (client *Client) DeleteKeyPairsWithChan(request *DeleteKeyPairsRequest) (<-chan *DeleteKeyPairsResponse, <-chan error) { - responseChan := make(chan *DeleteKeyPairsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteKeyPairs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteKeyPairsWithCallback invokes the ecs.DeleteKeyPairs API asynchronously -func (client *Client) DeleteKeyPairsWithCallback(request *DeleteKeyPairsRequest, callback func(response *DeleteKeyPairsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteKeyPairsResponse - var err error - defer close(result) - response, err = client.DeleteKeyPairs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteKeyPairsRequest is the request struct for api DeleteKeyPairs -type DeleteKeyPairsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KeyPairNames string `position:"Query" name:"KeyPairNames"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteKeyPairsResponse is the response struct for api DeleteKeyPairs -type DeleteKeyPairsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteKeyPairsRequest creates a request to invoke DeleteKeyPairs API -func CreateDeleteKeyPairsRequest() (request *DeleteKeyPairsRequest) { - request = &DeleteKeyPairsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteKeyPairs", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteKeyPairsResponse creates a response to parse from DeleteKeyPairs response -func CreateDeleteKeyPairsResponse() (response *DeleteKeyPairsResponse) { - response = &DeleteKeyPairsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go deleted file mode 100644 index 069fd5fd47..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteLaunchTemplate invokes the ecs.DeleteLaunchTemplate API synchronously -func (client *Client) DeleteLaunchTemplate(request *DeleteLaunchTemplateRequest) (response *DeleteLaunchTemplateResponse, err error) { - response = CreateDeleteLaunchTemplateResponse() - err = client.DoAction(request, response) - return -} - -// DeleteLaunchTemplateWithChan invokes the ecs.DeleteLaunchTemplate API asynchronously -func (client *Client) DeleteLaunchTemplateWithChan(request *DeleteLaunchTemplateRequest) (<-chan *DeleteLaunchTemplateResponse, <-chan error) { - responseChan := make(chan *DeleteLaunchTemplateResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteLaunchTemplate(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteLaunchTemplateWithCallback invokes the ecs.DeleteLaunchTemplate API asynchronously -func (client *Client) DeleteLaunchTemplateWithCallback(request *DeleteLaunchTemplateRequest, callback func(response *DeleteLaunchTemplateResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteLaunchTemplateResponse - var err error - defer close(result) - response, err = client.DeleteLaunchTemplate(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteLaunchTemplateRequest is the request struct for api DeleteLaunchTemplate -type DeleteLaunchTemplateRequest struct { - *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteLaunchTemplateResponse is the response struct for api DeleteLaunchTemplate -type DeleteLaunchTemplateResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - LaunchTemplateVersionNumbers LaunchTemplateVersionNumbers `json:"LaunchTemplateVersionNumbers" xml:"LaunchTemplateVersionNumbers"` -} - -// CreateDeleteLaunchTemplateRequest creates a request to invoke DeleteLaunchTemplate API -func CreateDeleteLaunchTemplateRequest() (request *DeleteLaunchTemplateRequest) { - request = &DeleteLaunchTemplateRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteLaunchTemplate", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteLaunchTemplateResponse creates a response to parse from DeleteLaunchTemplate response -func CreateDeleteLaunchTemplateResponse() (response *DeleteLaunchTemplateResponse) { - response = &DeleteLaunchTemplateResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go deleted file mode 100644 index 9f34b52eb0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteLaunchTemplateVersion invokes the ecs.DeleteLaunchTemplateVersion API synchronously -func (client *Client) DeleteLaunchTemplateVersion(request *DeleteLaunchTemplateVersionRequest) (response *DeleteLaunchTemplateVersionResponse, err error) { - response = CreateDeleteLaunchTemplateVersionResponse() - err = client.DoAction(request, response) - return -} - -// DeleteLaunchTemplateVersionWithChan invokes the ecs.DeleteLaunchTemplateVersion API asynchronously -func (client *Client) DeleteLaunchTemplateVersionWithChan(request *DeleteLaunchTemplateVersionRequest) (<-chan *DeleteLaunchTemplateVersionResponse, <-chan error) { - responseChan := make(chan *DeleteLaunchTemplateVersionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteLaunchTemplateVersion(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteLaunchTemplateVersionWithCallback invokes the ecs.DeleteLaunchTemplateVersion API asynchronously -func (client *Client) DeleteLaunchTemplateVersionWithCallback(request *DeleteLaunchTemplateVersionRequest, callback func(response *DeleteLaunchTemplateVersionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteLaunchTemplateVersionResponse - var err error - defer close(result) - response, err = client.DeleteLaunchTemplateVersion(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteLaunchTemplateVersionRequest is the request struct for api DeleteLaunchTemplateVersion -type DeleteLaunchTemplateVersionRequest struct { - *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DeleteVersion *[]string `position:"Query" name:"DeleteVersion" type:"Repeated"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteLaunchTemplateVersionResponse is the response struct for api DeleteLaunchTemplateVersion -type DeleteLaunchTemplateVersionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - LaunchTemplateVersions LaunchTemplateVersions `json:"LaunchTemplateVersions" xml:"LaunchTemplateVersions"` -} - -// CreateDeleteLaunchTemplateVersionRequest creates a request to invoke DeleteLaunchTemplateVersion API -func CreateDeleteLaunchTemplateVersionRequest() (request *DeleteLaunchTemplateVersionRequest) { - request = &DeleteLaunchTemplateVersionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteLaunchTemplateVersion", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteLaunchTemplateVersionResponse creates a response to parse from DeleteLaunchTemplateVersion response -func CreateDeleteLaunchTemplateVersionResponse() (response *DeleteLaunchTemplateVersionResponse) { - response = &DeleteLaunchTemplateVersionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go deleted file mode 100644 index ece106ff6e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteNatGateway invokes the ecs.DeleteNatGateway API synchronously -func (client *Client) DeleteNatGateway(request *DeleteNatGatewayRequest) (response *DeleteNatGatewayResponse, err error) { - response = CreateDeleteNatGatewayResponse() - err = client.DoAction(request, response) - return -} - -// DeleteNatGatewayWithChan invokes the ecs.DeleteNatGateway API asynchronously -func (client *Client) DeleteNatGatewayWithChan(request *DeleteNatGatewayRequest) (<-chan *DeleteNatGatewayResponse, <-chan error) { - responseChan := make(chan *DeleteNatGatewayResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteNatGateway(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteNatGatewayWithCallback invokes the ecs.DeleteNatGateway API asynchronously -func (client *Client) DeleteNatGatewayWithCallback(request *DeleteNatGatewayRequest, callback func(response *DeleteNatGatewayResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteNatGatewayResponse - var err error - defer close(result) - response, err = client.DeleteNatGateway(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteNatGatewayRequest is the request struct for api DeleteNatGateway -type DeleteNatGatewayRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NatGatewayId string `position:"Query" name:"NatGatewayId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteNatGatewayResponse is the response struct for api DeleteNatGateway -type DeleteNatGatewayResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteNatGatewayRequest creates a request to invoke DeleteNatGateway API -func CreateDeleteNatGatewayRequest() (request *DeleteNatGatewayRequest) { - request = &DeleteNatGatewayRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNatGateway", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteNatGatewayResponse creates a response to parse from DeleteNatGateway response -func CreateDeleteNatGatewayResponse() (response *DeleteNatGatewayResponse) { - response = &DeleteNatGatewayResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go deleted file mode 100644 index c8e0c77899..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteNetworkInterface invokes the ecs.DeleteNetworkInterface API synchronously -func (client *Client) DeleteNetworkInterface(request *DeleteNetworkInterfaceRequest) (response *DeleteNetworkInterfaceResponse, err error) { - response = CreateDeleteNetworkInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// DeleteNetworkInterfaceWithChan invokes the ecs.DeleteNetworkInterface API asynchronously -func (client *Client) DeleteNetworkInterfaceWithChan(request *DeleteNetworkInterfaceRequest) (<-chan *DeleteNetworkInterfaceResponse, <-chan error) { - responseChan := make(chan *DeleteNetworkInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteNetworkInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteNetworkInterfaceWithCallback invokes the ecs.DeleteNetworkInterface API asynchronously -func (client *Client) DeleteNetworkInterfaceWithCallback(request *DeleteNetworkInterfaceRequest, callback func(response *DeleteNetworkInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteNetworkInterfaceResponse - var err error - defer close(result) - response, err = client.DeleteNetworkInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteNetworkInterfaceRequest is the request struct for api DeleteNetworkInterface -type DeleteNetworkInterfaceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// DeleteNetworkInterfaceResponse is the response struct for api DeleteNetworkInterface -type DeleteNetworkInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteNetworkInterfaceRequest creates a request to invoke DeleteNetworkInterface API -func CreateDeleteNetworkInterfaceRequest() (request *DeleteNetworkInterfaceRequest) { - request = &DeleteNetworkInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNetworkInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteNetworkInterfaceResponse creates a response to parse from DeleteNetworkInterface response -func CreateDeleteNetworkInterfaceResponse() (response *DeleteNetworkInterfaceResponse) { - response = &DeleteNetworkInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go deleted file mode 100644 index 1871ba64ea..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteNetworkInterfacePermission invokes the ecs.DeleteNetworkInterfacePermission API synchronously -func (client *Client) DeleteNetworkInterfacePermission(request *DeleteNetworkInterfacePermissionRequest) (response *DeleteNetworkInterfacePermissionResponse, err error) { - response = CreateDeleteNetworkInterfacePermissionResponse() - err = client.DoAction(request, response) - return -} - -// DeleteNetworkInterfacePermissionWithChan invokes the ecs.DeleteNetworkInterfacePermission API asynchronously -func (client *Client) DeleteNetworkInterfacePermissionWithChan(request *DeleteNetworkInterfacePermissionRequest) (<-chan *DeleteNetworkInterfacePermissionResponse, <-chan error) { - responseChan := make(chan *DeleteNetworkInterfacePermissionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteNetworkInterfacePermission(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteNetworkInterfacePermissionWithCallback invokes the ecs.DeleteNetworkInterfacePermission API asynchronously -func (client *Client) DeleteNetworkInterfacePermissionWithCallback(request *DeleteNetworkInterfacePermissionRequest, callback func(response *DeleteNetworkInterfacePermissionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteNetworkInterfacePermissionResponse - var err error - defer close(result) - response, err = client.DeleteNetworkInterfacePermission(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteNetworkInterfacePermissionRequest is the request struct for api DeleteNetworkInterfacePermission -type DeleteNetworkInterfacePermissionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NetworkInterfacePermissionId string `position:"Query" name:"NetworkInterfacePermissionId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Force requests.Boolean `position:"Query" name:"Force"` -} - -// DeleteNetworkInterfacePermissionResponse is the response struct for api DeleteNetworkInterfacePermission -type DeleteNetworkInterfacePermissionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteNetworkInterfacePermissionRequest creates a request to invoke DeleteNetworkInterfacePermission API -func CreateDeleteNetworkInterfacePermissionRequest() (request *DeleteNetworkInterfacePermissionRequest) { - request = &DeleteNetworkInterfacePermissionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNetworkInterfacePermission", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteNetworkInterfacePermissionResponse creates a response to parse from DeleteNetworkInterfacePermission response -func CreateDeleteNetworkInterfacePermissionResponse() (response *DeleteNetworkInterfacePermissionResponse) { - response = &DeleteNetworkInterfacePermissionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go deleted file mode 100644 index 08fa285b9d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeletePhysicalConnection invokes the ecs.DeletePhysicalConnection API synchronously -func (client *Client) DeletePhysicalConnection(request *DeletePhysicalConnectionRequest) (response *DeletePhysicalConnectionResponse, err error) { - response = CreateDeletePhysicalConnectionResponse() - err = client.DoAction(request, response) - return -} - -// DeletePhysicalConnectionWithChan invokes the ecs.DeletePhysicalConnection API asynchronously -func (client *Client) DeletePhysicalConnectionWithChan(request *DeletePhysicalConnectionRequest) (<-chan *DeletePhysicalConnectionResponse, <-chan error) { - responseChan := make(chan *DeletePhysicalConnectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeletePhysicalConnection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeletePhysicalConnectionWithCallback invokes the ecs.DeletePhysicalConnection API asynchronously -func (client *Client) DeletePhysicalConnectionWithCallback(request *DeletePhysicalConnectionRequest, callback func(response *DeletePhysicalConnectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeletePhysicalConnectionResponse - var err error - defer close(result) - response, err = client.DeletePhysicalConnection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeletePhysicalConnectionRequest is the request struct for api DeletePhysicalConnection -type DeletePhysicalConnectionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` -} - -// DeletePhysicalConnectionResponse is the response struct for api DeletePhysicalConnection -type DeletePhysicalConnectionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeletePhysicalConnectionRequest creates a request to invoke DeletePhysicalConnection API -func CreateDeletePhysicalConnectionRequest() (request *DeletePhysicalConnectionRequest) { - request = &DeletePhysicalConnectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeletePhysicalConnection", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeletePhysicalConnectionResponse creates a response to parse from DeletePhysicalConnection response -func CreateDeletePhysicalConnectionResponse() (response *DeletePhysicalConnectionResponse) { - response = &DeletePhysicalConnectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_prefix_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_prefix_list.go deleted file mode 100644 index 58183e00f7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_prefix_list.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeletePrefixList invokes the ecs.DeletePrefixList API synchronously -func (client *Client) DeletePrefixList(request *DeletePrefixListRequest) (response *DeletePrefixListResponse, err error) { - response = CreateDeletePrefixListResponse() - err = client.DoAction(request, response) - return -} - -// DeletePrefixListWithChan invokes the ecs.DeletePrefixList API asynchronously -func (client *Client) DeletePrefixListWithChan(request *DeletePrefixListRequest) (<-chan *DeletePrefixListResponse, <-chan error) { - responseChan := make(chan *DeletePrefixListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeletePrefixList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeletePrefixListWithCallback invokes the ecs.DeletePrefixList API asynchronously -func (client *Client) DeletePrefixListWithCallback(request *DeletePrefixListRequest, callback func(response *DeletePrefixListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeletePrefixListResponse - var err error - defer close(result) - response, err = client.DeletePrefixList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeletePrefixListRequest is the request struct for api DeletePrefixList -type DeletePrefixListRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PrefixListId string `position:"Query" name:"PrefixListId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeletePrefixListResponse is the response struct for api DeletePrefixList -type DeletePrefixListResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeletePrefixListRequest creates a request to invoke DeletePrefixList API -func CreateDeletePrefixListRequest() (request *DeletePrefixListRequest) { - request = &DeletePrefixListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeletePrefixList", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeletePrefixListResponse creates a response to parse from DeletePrefixList response -func CreateDeletePrefixListResponse() (response *DeletePrefixListResponse) { - response = &DeletePrefixListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go deleted file mode 100644 index 22da43f07f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteRouteEntry invokes the ecs.DeleteRouteEntry API synchronously -func (client *Client) DeleteRouteEntry(request *DeleteRouteEntryRequest) (response *DeleteRouteEntryResponse, err error) { - response = CreateDeleteRouteEntryResponse() - err = client.DoAction(request, response) - return -} - -// DeleteRouteEntryWithChan invokes the ecs.DeleteRouteEntry API asynchronously -func (client *Client) DeleteRouteEntryWithChan(request *DeleteRouteEntryRequest) (<-chan *DeleteRouteEntryResponse, <-chan error) { - responseChan := make(chan *DeleteRouteEntryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteRouteEntry(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteRouteEntryWithCallback invokes the ecs.DeleteRouteEntry API asynchronously -func (client *Client) DeleteRouteEntryWithCallback(request *DeleteRouteEntryRequest, callback func(response *DeleteRouteEntryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteRouteEntryResponse - var err error - defer close(result) - response, err = client.DeleteRouteEntry(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteRouteEntryRequest is the request struct for api DeleteRouteEntry -type DeleteRouteEntryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextHopId string `position:"Query" name:"NextHopId"` - RouteTableId string `position:"Query" name:"RouteTableId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NextHopList *[]DeleteRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` -} - -// DeleteRouteEntryNextHopList is a repeated param struct in DeleteRouteEntryRequest -type DeleteRouteEntryNextHopList struct { - NextHopId string `name:"NextHopId"` - NextHopType string `name:"NextHopType"` -} - -// DeleteRouteEntryResponse is the response struct for api DeleteRouteEntry -type DeleteRouteEntryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteRouteEntryRequest creates a request to invoke DeleteRouteEntry API -func CreateDeleteRouteEntryRequest() (request *DeleteRouteEntryRequest) { - request = &DeleteRouteEntryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRouteEntry", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteRouteEntryResponse creates a response to parse from DeleteRouteEntry response -func CreateDeleteRouteEntryResponse() (response *DeleteRouteEntryResponse) { - response = &DeleteRouteEntryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go deleted file mode 100644 index c4c2e37dd2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteRouterInterface invokes the ecs.DeleteRouterInterface API synchronously -func (client *Client) DeleteRouterInterface(request *DeleteRouterInterfaceRequest) (response *DeleteRouterInterfaceResponse, err error) { - response = CreateDeleteRouterInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// DeleteRouterInterfaceWithChan invokes the ecs.DeleteRouterInterface API asynchronously -func (client *Client) DeleteRouterInterfaceWithChan(request *DeleteRouterInterfaceRequest) (<-chan *DeleteRouterInterfaceResponse, <-chan error) { - responseChan := make(chan *DeleteRouterInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteRouterInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteRouterInterfaceWithCallback invokes the ecs.DeleteRouterInterface API asynchronously -func (client *Client) DeleteRouterInterfaceWithCallback(request *DeleteRouterInterfaceRequest, callback func(response *DeleteRouterInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteRouterInterfaceResponse - var err error - defer close(result) - response, err = client.DeleteRouterInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteRouterInterfaceRequest is the request struct for api DeleteRouterInterface -type DeleteRouterInterfaceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteRouterInterfaceResponse is the response struct for api DeleteRouterInterface -type DeleteRouterInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteRouterInterfaceRequest creates a request to invoke DeleteRouterInterface API -func CreateDeleteRouterInterfaceRequest() (request *DeleteRouterInterfaceRequest) { - request = &DeleteRouterInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRouterInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteRouterInterfaceResponse creates a response to parse from DeleteRouterInterface response -func CreateDeleteRouterInterfaceResponse() (response *DeleteRouterInterfaceResponse) { - response = &DeleteRouterInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go deleted file mode 100644 index d221188b72..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteSecurityGroup invokes the ecs.DeleteSecurityGroup API synchronously -func (client *Client) DeleteSecurityGroup(request *DeleteSecurityGroupRequest) (response *DeleteSecurityGroupResponse, err error) { - response = CreateDeleteSecurityGroupResponse() - err = client.DoAction(request, response) - return -} - -// DeleteSecurityGroupWithChan invokes the ecs.DeleteSecurityGroup API asynchronously -func (client *Client) DeleteSecurityGroupWithChan(request *DeleteSecurityGroupRequest) (<-chan *DeleteSecurityGroupResponse, <-chan error) { - responseChan := make(chan *DeleteSecurityGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteSecurityGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteSecurityGroupWithCallback invokes the ecs.DeleteSecurityGroup API asynchronously -func (client *Client) DeleteSecurityGroupWithCallback(request *DeleteSecurityGroupRequest, callback func(response *DeleteSecurityGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteSecurityGroupResponse - var err error - defer close(result) - response, err = client.DeleteSecurityGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteSecurityGroupRequest is the request struct for api DeleteSecurityGroup -type DeleteSecurityGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteSecurityGroupResponse is the response struct for api DeleteSecurityGroup -type DeleteSecurityGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteSecurityGroupRequest creates a request to invoke DeleteSecurityGroup API -func CreateDeleteSecurityGroupRequest() (request *DeleteSecurityGroupRequest) { - request = &DeleteSecurityGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSecurityGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteSecurityGroupResponse creates a response to parse from DeleteSecurityGroup response -func CreateDeleteSecurityGroupResponse() (response *DeleteSecurityGroupResponse) { - response = &DeleteSecurityGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go deleted file mode 100644 index 22e73b2dd8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteSnapshot invokes the ecs.DeleteSnapshot API synchronously -func (client *Client) DeleteSnapshot(request *DeleteSnapshotRequest) (response *DeleteSnapshotResponse, err error) { - response = CreateDeleteSnapshotResponse() - err = client.DoAction(request, response) - return -} - -// DeleteSnapshotWithChan invokes the ecs.DeleteSnapshot API asynchronously -func (client *Client) DeleteSnapshotWithChan(request *DeleteSnapshotRequest) (<-chan *DeleteSnapshotResponse, <-chan error) { - responseChan := make(chan *DeleteSnapshotResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteSnapshot(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteSnapshotWithCallback invokes the ecs.DeleteSnapshot API asynchronously -func (client *Client) DeleteSnapshotWithCallback(request *DeleteSnapshotRequest, callback func(response *DeleteSnapshotResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteSnapshotResponse - var err error - defer close(result) - response, err = client.DeleteSnapshot(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteSnapshotRequest is the request struct for api DeleteSnapshot -type DeleteSnapshotRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Force requests.Boolean `position:"Query" name:"Force"` -} - -// DeleteSnapshotResponse is the response struct for api DeleteSnapshot -type DeleteSnapshotResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteSnapshotRequest creates a request to invoke DeleteSnapshot API -func CreateDeleteSnapshotRequest() (request *DeleteSnapshotRequest) { - request = &DeleteSnapshotRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSnapshot", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteSnapshotResponse creates a response to parse from DeleteSnapshot response -func CreateDeleteSnapshotResponse() (response *DeleteSnapshotResponse) { - response = &DeleteSnapshotResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot_group.go deleted file mode 100644 index 6edbec5f61..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot_group.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteSnapshotGroup invokes the ecs.DeleteSnapshotGroup API synchronously -func (client *Client) DeleteSnapshotGroup(request *DeleteSnapshotGroupRequest) (response *DeleteSnapshotGroupResponse, err error) { - response = CreateDeleteSnapshotGroupResponse() - err = client.DoAction(request, response) - return -} - -// DeleteSnapshotGroupWithChan invokes the ecs.DeleteSnapshotGroup API asynchronously -func (client *Client) DeleteSnapshotGroupWithChan(request *DeleteSnapshotGroupRequest) (<-chan *DeleteSnapshotGroupResponse, <-chan error) { - responseChan := make(chan *DeleteSnapshotGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteSnapshotGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteSnapshotGroupWithCallback invokes the ecs.DeleteSnapshotGroup API asynchronously -func (client *Client) DeleteSnapshotGroupWithCallback(request *DeleteSnapshotGroupRequest, callback func(response *DeleteSnapshotGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteSnapshotGroupResponse - var err error - defer close(result) - response, err = client.DeleteSnapshotGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteSnapshotGroupRequest is the request struct for api DeleteSnapshotGroup -type DeleteSnapshotGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SnapshotGroupId string `position:"Query" name:"SnapshotGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteSnapshotGroupResponse is the response struct for api DeleteSnapshotGroup -type DeleteSnapshotGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OperationProgressSet OperationProgressSetInDeleteSnapshotGroup `json:"OperationProgressSet" xml:"OperationProgressSet"` -} - -// CreateDeleteSnapshotGroupRequest creates a request to invoke DeleteSnapshotGroup API -func CreateDeleteSnapshotGroupRequest() (request *DeleteSnapshotGroupRequest) { - request = &DeleteSnapshotGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSnapshotGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteSnapshotGroupResponse creates a response to parse from DeleteSnapshotGroup response -func CreateDeleteSnapshotGroupResponse() (response *DeleteSnapshotGroupResponse) { - response = &DeleteSnapshotGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go deleted file mode 100644 index 6aade58eeb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteStorageSet invokes the ecs.DeleteStorageSet API synchronously -func (client *Client) DeleteStorageSet(request *DeleteStorageSetRequest) (response *DeleteStorageSetResponse, err error) { - response = CreateDeleteStorageSetResponse() - err = client.DoAction(request, response) - return -} - -// DeleteStorageSetWithChan invokes the ecs.DeleteStorageSet API asynchronously -func (client *Client) DeleteStorageSetWithChan(request *DeleteStorageSetRequest) (<-chan *DeleteStorageSetResponse, <-chan error) { - responseChan := make(chan *DeleteStorageSetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteStorageSet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteStorageSetWithCallback invokes the ecs.DeleteStorageSet API asynchronously -func (client *Client) DeleteStorageSetWithCallback(request *DeleteStorageSetRequest, callback func(response *DeleteStorageSetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteStorageSetResponse - var err error - defer close(result) - response, err = client.DeleteStorageSet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteStorageSetRequest is the request struct for api DeleteStorageSet -type DeleteStorageSetRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - StorageSetId string `position:"Query" name:"StorageSetId"` -} - -// DeleteStorageSetResponse is the response struct for api DeleteStorageSet -type DeleteStorageSetResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteStorageSetRequest creates a request to invoke DeleteStorageSet API -func CreateDeleteStorageSetRequest() (request *DeleteStorageSetRequest) { - request = &DeleteStorageSetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteStorageSet", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteStorageSetResponse creates a response to parse from DeleteStorageSet response -func CreateDeleteStorageSetResponse() (response *DeleteStorageSetResponse) { - response = &DeleteStorageSetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go deleted file mode 100644 index b42449f439..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteVSwitch invokes the ecs.DeleteVSwitch API synchronously -func (client *Client) DeleteVSwitch(request *DeleteVSwitchRequest) (response *DeleteVSwitchResponse, err error) { - response = CreateDeleteVSwitchResponse() - err = client.DoAction(request, response) - return -} - -// DeleteVSwitchWithChan invokes the ecs.DeleteVSwitch API asynchronously -func (client *Client) DeleteVSwitchWithChan(request *DeleteVSwitchRequest) (<-chan *DeleteVSwitchResponse, <-chan error) { - responseChan := make(chan *DeleteVSwitchResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteVSwitch(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteVSwitchWithCallback invokes the ecs.DeleteVSwitch API asynchronously -func (client *Client) DeleteVSwitchWithCallback(request *DeleteVSwitchRequest, callback func(response *DeleteVSwitchResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteVSwitchResponse - var err error - defer close(result) - response, err = client.DeleteVSwitch(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteVSwitchRequest is the request struct for api DeleteVSwitch -type DeleteVSwitchRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` -} - -// DeleteVSwitchResponse is the response struct for api DeleteVSwitch -type DeleteVSwitchResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteVSwitchRequest creates a request to invoke DeleteVSwitch API -func CreateDeleteVSwitchRequest() (request *DeleteVSwitchRequest) { - request = &DeleteVSwitchRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVSwitch", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteVSwitchResponse creates a response to parse from DeleteVSwitch response -func CreateDeleteVSwitchResponse() (response *DeleteVSwitchResponse) { - response = &DeleteVSwitchResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go deleted file mode 100644 index 1aad8600a6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteVirtualBorderRouter invokes the ecs.DeleteVirtualBorderRouter API synchronously -func (client *Client) DeleteVirtualBorderRouter(request *DeleteVirtualBorderRouterRequest) (response *DeleteVirtualBorderRouterResponse, err error) { - response = CreateDeleteVirtualBorderRouterResponse() - err = client.DoAction(request, response) - return -} - -// DeleteVirtualBorderRouterWithChan invokes the ecs.DeleteVirtualBorderRouter API asynchronously -func (client *Client) DeleteVirtualBorderRouterWithChan(request *DeleteVirtualBorderRouterRequest) (<-chan *DeleteVirtualBorderRouterResponse, <-chan error) { - responseChan := make(chan *DeleteVirtualBorderRouterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteVirtualBorderRouter(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteVirtualBorderRouterWithCallback invokes the ecs.DeleteVirtualBorderRouter API asynchronously -func (client *Client) DeleteVirtualBorderRouterWithCallback(request *DeleteVirtualBorderRouterRequest, callback func(response *DeleteVirtualBorderRouterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteVirtualBorderRouterResponse - var err error - defer close(result) - response, err = client.DeleteVirtualBorderRouter(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteVirtualBorderRouterRequest is the request struct for api DeleteVirtualBorderRouter -type DeleteVirtualBorderRouterRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - VbrId string `position:"Query" name:"VbrId"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DeleteVirtualBorderRouterResponse is the response struct for api DeleteVirtualBorderRouter -type DeleteVirtualBorderRouterResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteVirtualBorderRouterRequest creates a request to invoke DeleteVirtualBorderRouter API -func CreateDeleteVirtualBorderRouterRequest() (request *DeleteVirtualBorderRouterRequest) { - request = &DeleteVirtualBorderRouterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVirtualBorderRouter", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteVirtualBorderRouterResponse creates a response to parse from DeleteVirtualBorderRouter response -func CreateDeleteVirtualBorderRouterResponse() (response *DeleteVirtualBorderRouterResponse) { - response = &DeleteVirtualBorderRouterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go deleted file mode 100644 index 78b39ec7d0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteVpc invokes the ecs.DeleteVpc API synchronously -func (client *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcResponse, err error) { - response = CreateDeleteVpcResponse() - err = client.DoAction(request, response) - return -} - -// DeleteVpcWithChan invokes the ecs.DeleteVpc API asynchronously -func (client *Client) DeleteVpcWithChan(request *DeleteVpcRequest) (<-chan *DeleteVpcResponse, <-chan error) { - responseChan := make(chan *DeleteVpcResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteVpc(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteVpcWithCallback invokes the ecs.DeleteVpc API asynchronously -func (client *Client) DeleteVpcWithCallback(request *DeleteVpcRequest, callback func(response *DeleteVpcResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteVpcResponse - var err error - defer close(result) - response, err = client.DeleteVpc(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteVpcRequest is the request struct for api DeleteVpc -type DeleteVpcRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VpcId string `position:"Query" name:"VpcId"` -} - -// DeleteVpcResponse is the response struct for api DeleteVpc -type DeleteVpcResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteVpcRequest creates a request to invoke DeleteVpc API -func CreateDeleteVpcRequest() (request *DeleteVpcRequest) { - request = &DeleteVpcRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVpc", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteVpcResponse creates a response to parse from DeleteVpc response -func CreateDeleteVpcResponse() (response *DeleteVpcResponse) { - response = &DeleteVpcResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deregister_managed_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deregister_managed_instance.go deleted file mode 100644 index 6f384e1d9a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deregister_managed_instance.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeregisterManagedInstance invokes the ecs.DeregisterManagedInstance API synchronously -func (client *Client) DeregisterManagedInstance(request *DeregisterManagedInstanceRequest) (response *DeregisterManagedInstanceResponse, err error) { - response = CreateDeregisterManagedInstanceResponse() - err = client.DoAction(request, response) - return -} - -// DeregisterManagedInstanceWithChan invokes the ecs.DeregisterManagedInstance API asynchronously -func (client *Client) DeregisterManagedInstanceWithChan(request *DeregisterManagedInstanceRequest) (<-chan *DeregisterManagedInstanceResponse, <-chan error) { - responseChan := make(chan *DeregisterManagedInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeregisterManagedInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeregisterManagedInstanceWithCallback invokes the ecs.DeregisterManagedInstance API asynchronously -func (client *Client) DeregisterManagedInstanceWithCallback(request *DeregisterManagedInstanceRequest, callback func(response *DeregisterManagedInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeregisterManagedInstanceResponse - var err error - defer close(result) - response, err = client.DeregisterManagedInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeregisterManagedInstanceRequest is the request struct for api DeregisterManagedInstance -type DeregisterManagedInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DeregisterManagedInstanceResponse is the response struct for api DeregisterManagedInstance -type DeregisterManagedInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Instance Instance `json:"Instance" xml:"Instance"` -} - -// CreateDeregisterManagedInstanceRequest creates a request to invoke DeregisterManagedInstance API -func CreateDeregisterManagedInstanceRequest() (request *DeregisterManagedInstanceRequest) { - request = &DeregisterManagedInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeregisterManagedInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeregisterManagedInstanceResponse creates a response to parse from DeregisterManagedInstance response -func CreateDeregisterManagedInstanceResponse() (response *DeregisterManagedInstanceResponse) { - response = &DeregisterManagedInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go deleted file mode 100644 index fe8105d905..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeAccessPoints invokes the ecs.DescribeAccessPoints API synchronously -func (client *Client) DescribeAccessPoints(request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error) { - response = CreateDescribeAccessPointsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAccessPointsWithChan invokes the ecs.DescribeAccessPoints API asynchronously -func (client *Client) DescribeAccessPointsWithChan(request *DescribeAccessPointsRequest) (<-chan *DescribeAccessPointsResponse, <-chan error) { - responseChan := make(chan *DescribeAccessPointsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAccessPoints(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAccessPointsWithCallback invokes the ecs.DescribeAccessPoints API asynchronously -func (client *Client) DescribeAccessPointsWithCallback(request *DescribeAccessPointsRequest, callback func(response *DescribeAccessPointsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAccessPointsResponse - var err error - defer close(result) - response, err = client.DescribeAccessPoints(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAccessPointsRequest is the request struct for api DescribeAccessPoints -type DescribeAccessPointsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Type string `position:"Query" name:"Type"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribeAccessPointsFilter `position:"Query" name:"Filter" type:"Repeated"` -} - -// DescribeAccessPointsFilter is a repeated param struct in DescribeAccessPointsRequest -type DescribeAccessPointsFilter struct { - Value *[]string `name:"Value" type:"Repeated"` - Key string `name:"Key"` -} - -// DescribeAccessPointsResponse is the response struct for api DescribeAccessPoints -type DescribeAccessPointsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - AccessPointSet AccessPointSet `json:"AccessPointSet" xml:"AccessPointSet"` -} - -// CreateDescribeAccessPointsRequest creates a request to invoke DescribeAccessPoints API -func CreateDescribeAccessPointsRequest() (request *DescribeAccessPointsRequest) { - request = &DescribeAccessPointsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAccessPoints", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAccessPointsResponse creates a response to parse from DescribeAccessPoints response -func CreateDescribeAccessPointsResponse() (response *DescribeAccessPointsResponse) { - response = &DescribeAccessPointsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go deleted file mode 100644 index 82df2ea559..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeAccountAttributes invokes the ecs.DescribeAccountAttributes API synchronously -func (client *Client) DescribeAccountAttributes(request *DescribeAccountAttributesRequest) (response *DescribeAccountAttributesResponse, err error) { - response = CreateDescribeAccountAttributesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAccountAttributesWithChan invokes the ecs.DescribeAccountAttributes API asynchronously -func (client *Client) DescribeAccountAttributesWithChan(request *DescribeAccountAttributesRequest) (<-chan *DescribeAccountAttributesResponse, <-chan error) { - responseChan := make(chan *DescribeAccountAttributesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAccountAttributes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAccountAttributesWithCallback invokes the ecs.DescribeAccountAttributes API asynchronously -func (client *Client) DescribeAccountAttributesWithCallback(request *DescribeAccountAttributesRequest, callback func(response *DescribeAccountAttributesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAccountAttributesResponse - var err error - defer close(result) - response, err = client.DescribeAccountAttributes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAccountAttributesRequest is the request struct for api DescribeAccountAttributes -type DescribeAccountAttributesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AttributeName *[]string `position:"Query" name:"AttributeName" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// DescribeAccountAttributesResponse is the response struct for api DescribeAccountAttributes -type DescribeAccountAttributesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AccountAttributeItems AccountAttributeItems `json:"AccountAttributeItems" xml:"AccountAttributeItems"` -} - -// CreateDescribeAccountAttributesRequest creates a request to invoke DescribeAccountAttributes API -func CreateDescribeAccountAttributesRequest() (request *DescribeAccountAttributesRequest) { - request = &DescribeAccountAttributesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAccountAttributes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAccountAttributesResponse creates a response to parse from DescribeAccountAttributes response -func CreateDescribeAccountAttributesResponse() (response *DescribeAccountAttributesResponse) { - response = &DescribeAccountAttributesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_activations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_activations.go deleted file mode 100644 index b9ce694a90..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_activations.go +++ /dev/null @@ -1,121 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeActivations invokes the ecs.DescribeActivations API synchronously -func (client *Client) DescribeActivations(request *DescribeActivationsRequest) (response *DescribeActivationsResponse, err error) { - response = CreateDescribeActivationsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeActivationsWithChan invokes the ecs.DescribeActivations API asynchronously -func (client *Client) DescribeActivationsWithChan(request *DescribeActivationsRequest) (<-chan *DescribeActivationsResponse, <-chan error) { - responseChan := make(chan *DescribeActivationsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeActivations(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeActivationsWithCallback invokes the ecs.DescribeActivations API asynchronously -func (client *Client) DescribeActivationsWithCallback(request *DescribeActivationsRequest, callback func(response *DescribeActivationsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeActivationsResponse - var err error - defer close(result) - response, err = client.DescribeActivations(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeActivationsRequest is the request struct for api DescribeActivations -type DescribeActivationsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeActivationsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceName string `position:"Query" name:"InstanceName"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - ActivationId string `position:"Query" name:"ActivationId"` -} - -// DescribeActivationsTag is a repeated param struct in DescribeActivationsRequest -type DescribeActivationsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeActivationsResponse is the response struct for api DescribeActivations -type DescribeActivationsResponse struct { - *responses.BaseResponse - PageSize int64 `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - ActivationList []Activation `json:"ActivationList" xml:"ActivationList"` -} - -// CreateDescribeActivationsRequest creates a request to invoke DescribeActivations API -func CreateDescribeActivationsRequest() (request *DescribeActivationsRequest) { - request = &DescribeActivationsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeActivations", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeActivationsResponse creates a response to parse from DescribeActivations response -func CreateDescribeActivationsResponse() (response *DescribeActivationsResponse) { - response = &DescribeActivationsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go deleted file mode 100644 index 1105ee54a8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeAutoProvisioningGroupHistory invokes the ecs.DescribeAutoProvisioningGroupHistory API synchronously -func (client *Client) DescribeAutoProvisioningGroupHistory(request *DescribeAutoProvisioningGroupHistoryRequest) (response *DescribeAutoProvisioningGroupHistoryResponse, err error) { - response = CreateDescribeAutoProvisioningGroupHistoryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAutoProvisioningGroupHistoryWithChan invokes the ecs.DescribeAutoProvisioningGroupHistory API asynchronously -func (client *Client) DescribeAutoProvisioningGroupHistoryWithChan(request *DescribeAutoProvisioningGroupHistoryRequest) (<-chan *DescribeAutoProvisioningGroupHistoryResponse, <-chan error) { - responseChan := make(chan *DescribeAutoProvisioningGroupHistoryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAutoProvisioningGroupHistory(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAutoProvisioningGroupHistoryWithCallback invokes the ecs.DescribeAutoProvisioningGroupHistory API asynchronously -func (client *Client) DescribeAutoProvisioningGroupHistoryWithCallback(request *DescribeAutoProvisioningGroupHistoryRequest, callback func(response *DescribeAutoProvisioningGroupHistoryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAutoProvisioningGroupHistoryResponse - var err error - defer close(result) - response, err = client.DescribeAutoProvisioningGroupHistory(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAutoProvisioningGroupHistoryRequest is the request struct for api DescribeAutoProvisioningGroupHistory -type DescribeAutoProvisioningGroupHistoryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StartTime string `position:"Query" name:"StartTime"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoProvisioningGroupId string `position:"Query" name:"AutoProvisioningGroupId"` -} - -// DescribeAutoProvisioningGroupHistoryResponse is the response struct for api DescribeAutoProvisioningGroupHistory -type DescribeAutoProvisioningGroupHistoryResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - AutoProvisioningGroupHistories AutoProvisioningGroupHistories `json:"AutoProvisioningGroupHistories" xml:"AutoProvisioningGroupHistories"` -} - -// CreateDescribeAutoProvisioningGroupHistoryRequest creates a request to invoke DescribeAutoProvisioningGroupHistory API -func CreateDescribeAutoProvisioningGroupHistoryRequest() (request *DescribeAutoProvisioningGroupHistoryRequest) { - request = &DescribeAutoProvisioningGroupHistoryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoProvisioningGroupHistory", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAutoProvisioningGroupHistoryResponse creates a response to parse from DescribeAutoProvisioningGroupHistory response -func CreateDescribeAutoProvisioningGroupHistoryResponse() (response *DescribeAutoProvisioningGroupHistoryResponse) { - response = &DescribeAutoProvisioningGroupHistoryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go deleted file mode 100644 index c18076a689..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeAutoProvisioningGroupInstances invokes the ecs.DescribeAutoProvisioningGroupInstances API synchronously -func (client *Client) DescribeAutoProvisioningGroupInstances(request *DescribeAutoProvisioningGroupInstancesRequest) (response *DescribeAutoProvisioningGroupInstancesResponse, err error) { - response = CreateDescribeAutoProvisioningGroupInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAutoProvisioningGroupInstancesWithChan invokes the ecs.DescribeAutoProvisioningGroupInstances API asynchronously -func (client *Client) DescribeAutoProvisioningGroupInstancesWithChan(request *DescribeAutoProvisioningGroupInstancesRequest) (<-chan *DescribeAutoProvisioningGroupInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeAutoProvisioningGroupInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAutoProvisioningGroupInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAutoProvisioningGroupInstancesWithCallback invokes the ecs.DescribeAutoProvisioningGroupInstances API asynchronously -func (client *Client) DescribeAutoProvisioningGroupInstancesWithCallback(request *DescribeAutoProvisioningGroupInstancesRequest, callback func(response *DescribeAutoProvisioningGroupInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAutoProvisioningGroupInstancesResponse - var err error - defer close(result) - response, err = client.DescribeAutoProvisioningGroupInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAutoProvisioningGroupInstancesRequest is the request struct for api DescribeAutoProvisioningGroupInstances -type DescribeAutoProvisioningGroupInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoProvisioningGroupId string `position:"Query" name:"AutoProvisioningGroupId"` -} - -// DescribeAutoProvisioningGroupInstancesResponse is the response struct for api DescribeAutoProvisioningGroupInstances -type DescribeAutoProvisioningGroupInstancesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Instances InstancesInDescribeAutoProvisioningGroupInstances `json:"Instances" xml:"Instances"` -} - -// CreateDescribeAutoProvisioningGroupInstancesRequest creates a request to invoke DescribeAutoProvisioningGroupInstances API -func CreateDescribeAutoProvisioningGroupInstancesRequest() (request *DescribeAutoProvisioningGroupInstancesRequest) { - request = &DescribeAutoProvisioningGroupInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoProvisioningGroupInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAutoProvisioningGroupInstancesResponse creates a response to parse from DescribeAutoProvisioningGroupInstances response -func CreateDescribeAutoProvisioningGroupInstancesResponse() (response *DescribeAutoProvisioningGroupInstancesResponse) { - response = &DescribeAutoProvisioningGroupInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go deleted file mode 100644 index 1740b51c7c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go +++ /dev/null @@ -1,119 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeAutoProvisioningGroups invokes the ecs.DescribeAutoProvisioningGroups API synchronously -func (client *Client) DescribeAutoProvisioningGroups(request *DescribeAutoProvisioningGroupsRequest) (response *DescribeAutoProvisioningGroupsResponse, err error) { - response = CreateDescribeAutoProvisioningGroupsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAutoProvisioningGroupsWithChan invokes the ecs.DescribeAutoProvisioningGroups API asynchronously -func (client *Client) DescribeAutoProvisioningGroupsWithChan(request *DescribeAutoProvisioningGroupsRequest) (<-chan *DescribeAutoProvisioningGroupsResponse, <-chan error) { - responseChan := make(chan *DescribeAutoProvisioningGroupsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAutoProvisioningGroups(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAutoProvisioningGroupsWithCallback invokes the ecs.DescribeAutoProvisioningGroups API asynchronously -func (client *Client) DescribeAutoProvisioningGroupsWithCallback(request *DescribeAutoProvisioningGroupsRequest, callback func(response *DescribeAutoProvisioningGroupsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAutoProvisioningGroupsResponse - var err error - defer close(result) - response, err = client.DescribeAutoProvisioningGroups(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAutoProvisioningGroupsRequest is the request struct for api DescribeAutoProvisioningGroups -type DescribeAutoProvisioningGroupsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeAutoProvisioningGroupsTag `position:"Query" name:"Tag" type:"Repeated"` - AutoProvisioningGroupStatus *[]string `position:"Query" name:"AutoProvisioningGroupStatus" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoProvisioningGroupId *[]string `position:"Query" name:"AutoProvisioningGroupId" type:"Repeated"` - AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"` -} - -// DescribeAutoProvisioningGroupsTag is a repeated param struct in DescribeAutoProvisioningGroupsRequest -type DescribeAutoProvisioningGroupsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeAutoProvisioningGroupsResponse is the response struct for api DescribeAutoProvisioningGroups -type DescribeAutoProvisioningGroupsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - AutoProvisioningGroups AutoProvisioningGroups `json:"AutoProvisioningGroups" xml:"AutoProvisioningGroups"` -} - -// CreateDescribeAutoProvisioningGroupsRequest creates a request to invoke DescribeAutoProvisioningGroups API -func CreateDescribeAutoProvisioningGroupsRequest() (request *DescribeAutoProvisioningGroupsRequest) { - request = &DescribeAutoProvisioningGroupsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoProvisioningGroups", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAutoProvisioningGroupsResponse creates a response to parse from DescribeAutoProvisioningGroups response -func CreateDescribeAutoProvisioningGroupsResponse() (response *DescribeAutoProvisioningGroupsResponse) { - response = &DescribeAutoProvisioningGroupsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go deleted file mode 100644 index 993561ecc9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeAutoSnapshotPolicyEx invokes the ecs.DescribeAutoSnapshotPolicyEx API synchronously -func (client *Client) DescribeAutoSnapshotPolicyEx(request *DescribeAutoSnapshotPolicyExRequest) (response *DescribeAutoSnapshotPolicyExResponse, err error) { - response = CreateDescribeAutoSnapshotPolicyExResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAutoSnapshotPolicyExWithChan invokes the ecs.DescribeAutoSnapshotPolicyEx API asynchronously -func (client *Client) DescribeAutoSnapshotPolicyExWithChan(request *DescribeAutoSnapshotPolicyExRequest) (<-chan *DescribeAutoSnapshotPolicyExResponse, <-chan error) { - responseChan := make(chan *DescribeAutoSnapshotPolicyExResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAutoSnapshotPolicyEx(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAutoSnapshotPolicyExWithCallback invokes the ecs.DescribeAutoSnapshotPolicyEx API asynchronously -func (client *Client) DescribeAutoSnapshotPolicyExWithCallback(request *DescribeAutoSnapshotPolicyExRequest, callback func(response *DescribeAutoSnapshotPolicyExResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAutoSnapshotPolicyExResponse - var err error - defer close(result) - response, err = client.DescribeAutoSnapshotPolicyEx(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAutoSnapshotPolicyExRequest is the request struct for api DescribeAutoSnapshotPolicyEx -type DescribeAutoSnapshotPolicyExRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoSnapshotPolicyId string `position:"Query" name:"AutoSnapshotPolicyId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeAutoSnapshotPolicyExTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoSnapshotPolicyName string `position:"Query" name:"AutoSnapshotPolicyName"` -} - -// DescribeAutoSnapshotPolicyExTag is a repeated param struct in DescribeAutoSnapshotPolicyExRequest -type DescribeAutoSnapshotPolicyExTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeAutoSnapshotPolicyExResponse is the response struct for api DescribeAutoSnapshotPolicyEx -type DescribeAutoSnapshotPolicyExResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - AutoSnapshotPolicies AutoSnapshotPolicies `json:"AutoSnapshotPolicies" xml:"AutoSnapshotPolicies"` -} - -// CreateDescribeAutoSnapshotPolicyExRequest creates a request to invoke DescribeAutoSnapshotPolicyEx API -func CreateDescribeAutoSnapshotPolicyExRequest() (request *DescribeAutoSnapshotPolicyExRequest) { - request = &DescribeAutoSnapshotPolicyExRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAutoSnapshotPolicyExResponse creates a response to parse from DescribeAutoSnapshotPolicyEx response -func CreateDescribeAutoSnapshotPolicyExResponse() (response *DescribeAutoSnapshotPolicyExResponse) { - response = &DescribeAutoSnapshotPolicyExResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go deleted file mode 100644 index 93129c3781..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeAvailableResource invokes the ecs.DescribeAvailableResource API synchronously -func (client *Client) DescribeAvailableResource(request *DescribeAvailableResourceRequest) (response *DescribeAvailableResourceResponse, err error) { - response = CreateDescribeAvailableResourceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeAvailableResourceWithChan invokes the ecs.DescribeAvailableResource API asynchronously -func (client *Client) DescribeAvailableResourceWithChan(request *DescribeAvailableResourceRequest) (<-chan *DescribeAvailableResourceResponse, <-chan error) { - responseChan := make(chan *DescribeAvailableResourceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeAvailableResource(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeAvailableResourceWithCallback invokes the ecs.DescribeAvailableResource API asynchronously -func (client *Client) DescribeAvailableResourceWithCallback(request *DescribeAvailableResourceRequest, callback func(response *DescribeAvailableResourceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeAvailableResourceResponse - var err error - defer close(result) - response, err = client.DescribeAvailableResource(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeAvailableResourceRequest is the request struct for api DescribeAvailableResource -type DescribeAvailableResourceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Memory requests.Float `position:"Query" name:"Memory"` - IoOptimized string `position:"Query" name:"IoOptimized"` - DataDiskCategory string `position:"Query" name:"DataDiskCategory"` - Cores requests.Integer `position:"Query" name:"Cores"` - SystemDiskCategory string `position:"Query" name:"SystemDiskCategory"` - Scope string `position:"Query" name:"Scope"` - InstanceType string `position:"Query" name:"InstanceType"` - NetworkCategory string `position:"Query" name:"NetworkCategory"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - ResourceType string `position:"Query" name:"ResourceType"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - DestinationResource string `position:"Query" name:"DestinationResource"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// DescribeAvailableResourceResponse is the response struct for api DescribeAvailableResource -type DescribeAvailableResourceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AvailableZones AvailableZonesInDescribeAvailableResource `json:"AvailableZones" xml:"AvailableZones"` -} - -// CreateDescribeAvailableResourceRequest creates a request to invoke DescribeAvailableResource API -func CreateDescribeAvailableResourceRequest() (request *DescribeAvailableResourceRequest) { - request = &DescribeAvailableResourceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAvailableResource", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeAvailableResourceResponse creates a response to parse from DescribeAvailableResource response -func CreateDescribeAvailableResourceResponse() (response *DescribeAvailableResourceResponse) { - response = &DescribeAvailableResourceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go deleted file mode 100644 index db1b031429..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeBandwidthLimitation invokes the ecs.DescribeBandwidthLimitation API synchronously -func (client *Client) DescribeBandwidthLimitation(request *DescribeBandwidthLimitationRequest) (response *DescribeBandwidthLimitationResponse, err error) { - response = CreateDescribeBandwidthLimitationResponse() - err = client.DoAction(request, response) - return -} - -// DescribeBandwidthLimitationWithChan invokes the ecs.DescribeBandwidthLimitation API asynchronously -func (client *Client) DescribeBandwidthLimitationWithChan(request *DescribeBandwidthLimitationRequest) (<-chan *DescribeBandwidthLimitationResponse, <-chan error) { - responseChan := make(chan *DescribeBandwidthLimitationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeBandwidthLimitation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeBandwidthLimitationWithCallback invokes the ecs.DescribeBandwidthLimitation API asynchronously -func (client *Client) DescribeBandwidthLimitationWithCallback(request *DescribeBandwidthLimitationRequest, callback func(response *DescribeBandwidthLimitationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeBandwidthLimitationResponse - var err error - defer close(result) - response, err = client.DescribeBandwidthLimitation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeBandwidthLimitationRequest is the request struct for api DescribeBandwidthLimitation -type DescribeBandwidthLimitationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - ResourceId string `position:"Query" name:"ResourceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OperationType string `position:"Query" name:"OperationType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` -} - -// DescribeBandwidthLimitationResponse is the response struct for api DescribeBandwidthLimitation -type DescribeBandwidthLimitationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Bandwidths Bandwidths `json:"Bandwidths" xml:"Bandwidths"` -} - -// CreateDescribeBandwidthLimitationRequest creates a request to invoke DescribeBandwidthLimitation API -func CreateDescribeBandwidthLimitationRequest() (request *DescribeBandwidthLimitationRequest) { - request = &DescribeBandwidthLimitationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeBandwidthLimitation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeBandwidthLimitationResponse creates a response to parse from DescribeBandwidthLimitation response -func CreateDescribeBandwidthLimitationResponse() (response *DescribeBandwidthLimitationResponse) { - response = &DescribeBandwidthLimitationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go deleted file mode 100644 index eed9328f1f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeBandwidthPackages invokes the ecs.DescribeBandwidthPackages API synchronously -func (client *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackagesRequest) (response *DescribeBandwidthPackagesResponse, err error) { - response = CreateDescribeBandwidthPackagesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeBandwidthPackagesWithChan invokes the ecs.DescribeBandwidthPackages API asynchronously -func (client *Client) DescribeBandwidthPackagesWithChan(request *DescribeBandwidthPackagesRequest) (<-chan *DescribeBandwidthPackagesResponse, <-chan error) { - responseChan := make(chan *DescribeBandwidthPackagesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeBandwidthPackages(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeBandwidthPackagesWithCallback invokes the ecs.DescribeBandwidthPackages API asynchronously -func (client *Client) DescribeBandwidthPackagesWithCallback(request *DescribeBandwidthPackagesRequest, callback func(response *DescribeBandwidthPackagesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeBandwidthPackagesResponse - var err error - defer close(result) - response, err = client.DescribeBandwidthPackages(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeBandwidthPackagesRequest is the request struct for api DescribeBandwidthPackages -type DescribeBandwidthPackagesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - NatGatewayId string `position:"Query" name:"NatGatewayId"` - BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeBandwidthPackagesResponse is the response struct for api DescribeBandwidthPackages -type DescribeBandwidthPackagesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - BandwidthPackages BandwidthPackages `json:"BandwidthPackages" xml:"BandwidthPackages"` -} - -// CreateDescribeBandwidthPackagesRequest creates a request to invoke DescribeBandwidthPackages API -func CreateDescribeBandwidthPackagesRequest() (request *DescribeBandwidthPackagesRequest) { - request = &DescribeBandwidthPackagesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeBandwidthPackages", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeBandwidthPackagesResponse creates a response to parse from DescribeBandwidthPackages response -func CreateDescribeBandwidthPackagesResponse() (response *DescribeBandwidthPackagesResponse) { - response = &DescribeBandwidthPackagesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservation_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservation_instances.go deleted file mode 100644 index bd9f814bab..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservation_instances.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeCapacityReservationInstances invokes the ecs.DescribeCapacityReservationInstances API synchronously -func (client *Client) DescribeCapacityReservationInstances(request *DescribeCapacityReservationInstancesRequest) (response *DescribeCapacityReservationInstancesResponse, err error) { - response = CreateDescribeCapacityReservationInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCapacityReservationInstancesWithChan invokes the ecs.DescribeCapacityReservationInstances API asynchronously -func (client *Client) DescribeCapacityReservationInstancesWithChan(request *DescribeCapacityReservationInstancesRequest) (<-chan *DescribeCapacityReservationInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeCapacityReservationInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCapacityReservationInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCapacityReservationInstancesWithCallback invokes the ecs.DescribeCapacityReservationInstances API asynchronously -func (client *Client) DescribeCapacityReservationInstancesWithCallback(request *DescribeCapacityReservationInstancesRequest, callback func(response *DescribeCapacityReservationInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCapacityReservationInstancesResponse - var err error - defer close(result) - response, err = client.DescribeCapacityReservationInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCapacityReservationInstancesRequest is the request struct for api DescribeCapacityReservationInstances -type DescribeCapacityReservationInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextToken string `position:"Query" name:"NextToken"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - PackageType string `position:"Query" name:"PackageType"` -} - -// DescribeCapacityReservationInstancesResponse is the response struct for api DescribeCapacityReservationInstances -type DescribeCapacityReservationInstancesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - CapacityReservationItem CapacityReservationItemInDescribeCapacityReservationInstances `json:"CapacityReservationItem" xml:"CapacityReservationItem"` -} - -// CreateDescribeCapacityReservationInstancesRequest creates a request to invoke DescribeCapacityReservationInstances API -func CreateDescribeCapacityReservationInstancesRequest() (request *DescribeCapacityReservationInstancesRequest) { - request = &DescribeCapacityReservationInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCapacityReservationInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCapacityReservationInstancesResponse creates a response to parse from DescribeCapacityReservationInstances response -func CreateDescribeCapacityReservationInstancesResponse() (response *DescribeCapacityReservationInstancesResponse) { - response = &DescribeCapacityReservationInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservations.go deleted file mode 100644 index 2808581228..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservations.go +++ /dev/null @@ -1,123 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeCapacityReservations invokes the ecs.DescribeCapacityReservations API synchronously -func (client *Client) DescribeCapacityReservations(request *DescribeCapacityReservationsRequest) (response *DescribeCapacityReservationsResponse, err error) { - response = CreateDescribeCapacityReservationsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCapacityReservationsWithChan invokes the ecs.DescribeCapacityReservations API asynchronously -func (client *Client) DescribeCapacityReservationsWithChan(request *DescribeCapacityReservationsRequest) (<-chan *DescribeCapacityReservationsResponse, <-chan error) { - responseChan := make(chan *DescribeCapacityReservationsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCapacityReservations(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCapacityReservationsWithCallback invokes the ecs.DescribeCapacityReservations API asynchronously -func (client *Client) DescribeCapacityReservationsWithCallback(request *DescribeCapacityReservationsRequest, callback func(response *DescribeCapacityReservationsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCapacityReservationsResponse - var err error - defer close(result) - response, err = client.DescribeCapacityReservations(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCapacityReservationsRequest is the request struct for api DescribeCapacityReservations -type DescribeCapacityReservationsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Platform string `position:"Query" name:"Platform"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]DescribeCapacityReservationsTag `position:"Query" name:"Tag" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PrivatePoolOptionsIds string `position:"Query" name:"PrivatePoolOptions.Ids"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - ZoneId string `position:"Query" name:"ZoneId"` - PackageType string `position:"Query" name:"PackageType"` - Status string `position:"Query" name:"Status"` -} - -// DescribeCapacityReservationsTag is a repeated param struct in DescribeCapacityReservationsRequest -type DescribeCapacityReservationsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeCapacityReservationsResponse is the response struct for api DescribeCapacityReservations -type DescribeCapacityReservationsResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - CapacityReservationSet CapacityReservationSet `json:"CapacityReservationSet" xml:"CapacityReservationSet"` -} - -// CreateDescribeCapacityReservationsRequest creates a request to invoke DescribeCapacityReservations API -func CreateDescribeCapacityReservationsRequest() (request *DescribeCapacityReservationsRequest) { - request = &DescribeCapacityReservationsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCapacityReservations", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCapacityReservationsResponse creates a response to parse from DescribeCapacityReservations response -func CreateDescribeCapacityReservationsResponse() (response *DescribeCapacityReservationsResponse) { - response = &DescribeCapacityReservationsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go deleted file mode 100644 index cfb45721a1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeClassicLinkInstances invokes the ecs.DescribeClassicLinkInstances API synchronously -func (client *Client) DescribeClassicLinkInstances(request *DescribeClassicLinkInstancesRequest) (response *DescribeClassicLinkInstancesResponse, err error) { - response = CreateDescribeClassicLinkInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeClassicLinkInstancesWithChan invokes the ecs.DescribeClassicLinkInstances API asynchronously -func (client *Client) DescribeClassicLinkInstancesWithChan(request *DescribeClassicLinkInstancesRequest) (<-chan *DescribeClassicLinkInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeClassicLinkInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeClassicLinkInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeClassicLinkInstancesWithCallback invokes the ecs.DescribeClassicLinkInstances API asynchronously -func (client *Client) DescribeClassicLinkInstancesWithCallback(request *DescribeClassicLinkInstancesRequest, callback func(response *DescribeClassicLinkInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeClassicLinkInstancesResponse - var err error - defer close(result) - response, err = client.DescribeClassicLinkInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeClassicLinkInstancesRequest is the request struct for api DescribeClassicLinkInstances -type DescribeClassicLinkInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber string `position:"Query" name:"PageNumber"` - PageSize string `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - VpcId string `position:"Query" name:"VpcId"` -} - -// DescribeClassicLinkInstancesResponse is the response struct for api DescribeClassicLinkInstances -type DescribeClassicLinkInstancesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Links Links `json:"Links" xml:"Links"` -} - -// CreateDescribeClassicLinkInstancesRequest creates a request to invoke DescribeClassicLinkInstances API -func CreateDescribeClassicLinkInstancesRequest() (request *DescribeClassicLinkInstancesRequest) { - request = &DescribeClassicLinkInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeClassicLinkInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeClassicLinkInstancesResponse creates a response to parse from DescribeClassicLinkInstances response -func CreateDescribeClassicLinkInstancesResponse() (response *DescribeClassicLinkInstancesResponse) { - response = &DescribeClassicLinkInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_settings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_settings.go deleted file mode 100644 index ebd708ab91..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_settings.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeCloudAssistantSettings invokes the ecs.DescribeCloudAssistantSettings API synchronously -func (client *Client) DescribeCloudAssistantSettings(request *DescribeCloudAssistantSettingsRequest) (response *DescribeCloudAssistantSettingsResponse, err error) { - response = CreateDescribeCloudAssistantSettingsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCloudAssistantSettingsWithChan invokes the ecs.DescribeCloudAssistantSettings API asynchronously -func (client *Client) DescribeCloudAssistantSettingsWithChan(request *DescribeCloudAssistantSettingsRequest) (<-chan *DescribeCloudAssistantSettingsResponse, <-chan error) { - responseChan := make(chan *DescribeCloudAssistantSettingsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCloudAssistantSettings(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCloudAssistantSettingsWithCallback invokes the ecs.DescribeCloudAssistantSettings API asynchronously -func (client *Client) DescribeCloudAssistantSettingsWithCallback(request *DescribeCloudAssistantSettingsRequest, callback func(response *DescribeCloudAssistantSettingsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCloudAssistantSettingsResponse - var err error - defer close(result) - response, err = client.DescribeCloudAssistantSettings(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCloudAssistantSettingsRequest is the request struct for api DescribeCloudAssistantSettings -type DescribeCloudAssistantSettingsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SettingType *[]string `position:"Query" name:"SettingType" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeCloudAssistantSettingsResponse is the response struct for api DescribeCloudAssistantSettings -type DescribeCloudAssistantSettingsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AgentUpgradeConfig AgentUpgradeConfig `json:"AgentUpgradeConfig" xml:"AgentUpgradeConfig"` - OssDeliveryConfigs OssDeliveryConfigs `json:"OssDeliveryConfigs" xml:"OssDeliveryConfigs"` - SlsDeliveryConfigs SlsDeliveryConfigs `json:"SlsDeliveryConfigs" xml:"SlsDeliveryConfigs"` -} - -// CreateDescribeCloudAssistantSettingsRequest creates a request to invoke DescribeCloudAssistantSettings API -func CreateDescribeCloudAssistantSettingsRequest() (request *DescribeCloudAssistantSettingsRequest) { - request = &DescribeCloudAssistantSettingsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCloudAssistantSettings", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCloudAssistantSettingsResponse creates a response to parse from DescribeCloudAssistantSettings response -func CreateDescribeCloudAssistantSettingsResponse() (response *DescribeCloudAssistantSettingsResponse) { - response = &DescribeCloudAssistantSettingsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go deleted file mode 100644 index 3445731f55..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeCloudAssistantStatus invokes the ecs.DescribeCloudAssistantStatus API synchronously -func (client *Client) DescribeCloudAssistantStatus(request *DescribeCloudAssistantStatusRequest) (response *DescribeCloudAssistantStatusResponse, err error) { - response = CreateDescribeCloudAssistantStatusResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCloudAssistantStatusWithChan invokes the ecs.DescribeCloudAssistantStatus API asynchronously -func (client *Client) DescribeCloudAssistantStatusWithChan(request *DescribeCloudAssistantStatusRequest) (<-chan *DescribeCloudAssistantStatusResponse, <-chan error) { - responseChan := make(chan *DescribeCloudAssistantStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCloudAssistantStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCloudAssistantStatusWithCallback invokes the ecs.DescribeCloudAssistantStatus API asynchronously -func (client *Client) DescribeCloudAssistantStatusWithCallback(request *DescribeCloudAssistantStatusRequest, callback func(response *DescribeCloudAssistantStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCloudAssistantStatusResponse - var err error - defer close(result) - response, err = client.DescribeCloudAssistantStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCloudAssistantStatusRequest is the request struct for api DescribeCloudAssistantStatus -type DescribeCloudAssistantStatusRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OSType string `position:"Query" name:"OSType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeCloudAssistantStatusResponse is the response struct for api DescribeCloudAssistantStatus -type DescribeCloudAssistantStatusResponse struct { - *responses.BaseResponse - PageSize int64 `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - InstanceCloudAssistantStatusSet InstanceCloudAssistantStatusSet `json:"InstanceCloudAssistantStatusSet" xml:"InstanceCloudAssistantStatusSet"` -} - -// CreateDescribeCloudAssistantStatusRequest creates a request to invoke DescribeCloudAssistantStatus API -func CreateDescribeCloudAssistantStatusRequest() (request *DescribeCloudAssistantStatusRequest) { - request = &DescribeCloudAssistantStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCloudAssistantStatus", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCloudAssistantStatusResponse creates a response to parse from DescribeCloudAssistantStatus response -func CreateDescribeCloudAssistantStatusResponse() (response *DescribeCloudAssistantStatusResponse) { - response = &DescribeCloudAssistantStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go deleted file mode 100644 index 2caac9d645..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeClusters invokes the ecs.DescribeClusters API synchronously -func (client *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error) { - response = CreateDescribeClustersResponse() - err = client.DoAction(request, response) - return -} - -// DescribeClustersWithChan invokes the ecs.DescribeClusters API asynchronously -func (client *Client) DescribeClustersWithChan(request *DescribeClustersRequest) (<-chan *DescribeClustersResponse, <-chan error) { - responseChan := make(chan *DescribeClustersResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeClusters(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeClustersWithCallback invokes the ecs.DescribeClusters API asynchronously -func (client *Client) DescribeClustersWithCallback(request *DescribeClustersRequest, callback func(response *DescribeClustersResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeClustersResponse - var err error - defer close(result) - response, err = client.DescribeClusters(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeClustersRequest is the request struct for api DescribeClusters -type DescribeClustersRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeClustersResponse is the response struct for api DescribeClusters -type DescribeClustersResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Clusters Clusters `json:"Clusters" xml:"Clusters"` -} - -// CreateDescribeClustersRequest creates a request to invoke DescribeClusters API -func CreateDescribeClustersRequest() (request *DescribeClustersRequest) { - request = &DescribeClustersRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeClusters", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeClustersResponse creates a response to parse from DescribeClusters response -func CreateDescribeClustersResponse() (response *DescribeClustersResponse) { - response = &DescribeClustersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go deleted file mode 100644 index 5824459894..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go +++ /dev/null @@ -1,126 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeCommands invokes the ecs.DescribeCommands API synchronously -func (client *Client) DescribeCommands(request *DescribeCommandsRequest) (response *DescribeCommandsResponse, err error) { - response = CreateDescribeCommandsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCommandsWithChan invokes the ecs.DescribeCommands API asynchronously -func (client *Client) DescribeCommandsWithChan(request *DescribeCommandsRequest) (<-chan *DescribeCommandsResponse, <-chan error) { - responseChan := make(chan *DescribeCommandsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCommands(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCommandsWithCallback invokes the ecs.DescribeCommands API asynchronously -func (client *Client) DescribeCommandsWithCallback(request *DescribeCommandsRequest, callback func(response *DescribeCommandsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCommandsResponse - var err error - defer close(result) - response, err = client.DescribeCommands(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCommandsRequest is the request struct for api DescribeCommands -type DescribeCommandsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - Type string `position:"Query" name:"Type"` - CommandId string `position:"Query" name:"CommandId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Provider string `position:"Query" name:"Provider"` - NextToken string `position:"Query" name:"NextToken"` - ContentEncoding string `position:"Query" name:"ContentEncoding"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeCommandsTag `position:"Query" name:"Tag" type:"Repeated"` - Latest requests.Boolean `position:"Query" name:"Latest"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeCommandsTag is a repeated param struct in DescribeCommandsRequest -type DescribeCommandsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeCommandsResponse is the response struct for api DescribeCommands -type DescribeCommandsResponse struct { - *responses.BaseResponse - PageSize int64 `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - Commands Commands `json:"Commands" xml:"Commands"` -} - -// CreateDescribeCommandsRequest creates a request to invoke DescribeCommands API -func CreateDescribeCommandsRequest() (request *DescribeCommandsRequest) { - request = &DescribeCommandsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCommands", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCommandsResponse creates a response to parse from DescribeCommands response -func CreateDescribeCommandsResponse() (response *DescribeCommandsResponse) { - response = &DescribeCommandsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go deleted file mode 100644 index 5bcbad1210..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDedicatedHostAutoRenew invokes the ecs.DescribeDedicatedHostAutoRenew API synchronously -func (client *Client) DescribeDedicatedHostAutoRenew(request *DescribeDedicatedHostAutoRenewRequest) (response *DescribeDedicatedHostAutoRenewResponse, err error) { - response = CreateDescribeDedicatedHostAutoRenewResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDedicatedHostAutoRenewWithChan invokes the ecs.DescribeDedicatedHostAutoRenew API asynchronously -func (client *Client) DescribeDedicatedHostAutoRenewWithChan(request *DescribeDedicatedHostAutoRenewRequest) (<-chan *DescribeDedicatedHostAutoRenewResponse, <-chan error) { - responseChan := make(chan *DescribeDedicatedHostAutoRenewResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDedicatedHostAutoRenew(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDedicatedHostAutoRenewWithCallback invokes the ecs.DescribeDedicatedHostAutoRenew API asynchronously -func (client *Client) DescribeDedicatedHostAutoRenewWithCallback(request *DescribeDedicatedHostAutoRenewRequest, callback func(response *DescribeDedicatedHostAutoRenewResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDedicatedHostAutoRenewResponse - var err error - defer close(result) - response, err = client.DescribeDedicatedHostAutoRenew(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDedicatedHostAutoRenewRequest is the request struct for api DescribeDedicatedHostAutoRenew -type DescribeDedicatedHostAutoRenewRequest struct { - *requests.RpcRequest - DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeDedicatedHostAutoRenewResponse is the response struct for api DescribeDedicatedHostAutoRenew -type DescribeDedicatedHostAutoRenewResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DedicatedHostRenewAttributes DedicatedHostRenewAttributes `json:"DedicatedHostRenewAttributes" xml:"DedicatedHostRenewAttributes"` -} - -// CreateDescribeDedicatedHostAutoRenewRequest creates a request to invoke DescribeDedicatedHostAutoRenew API -func CreateDescribeDedicatedHostAutoRenewRequest() (request *DescribeDedicatedHostAutoRenewRequest) { - request = &DescribeDedicatedHostAutoRenewRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDedicatedHostAutoRenewResponse creates a response to parse from DescribeDedicatedHostAutoRenew response -func CreateDescribeDedicatedHostAutoRenewResponse() (response *DescribeDedicatedHostAutoRenewResponse) { - response = &DescribeDedicatedHostAutoRenewResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_clusters.go deleted file mode 100644 index 04c8a15e77..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_clusters.go +++ /dev/null @@ -1,121 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDedicatedHostClusters invokes the ecs.DescribeDedicatedHostClusters API synchronously -func (client *Client) DescribeDedicatedHostClusters(request *DescribeDedicatedHostClustersRequest) (response *DescribeDedicatedHostClustersResponse, err error) { - response = CreateDescribeDedicatedHostClustersResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDedicatedHostClustersWithChan invokes the ecs.DescribeDedicatedHostClusters API asynchronously -func (client *Client) DescribeDedicatedHostClustersWithChan(request *DescribeDedicatedHostClustersRequest) (<-chan *DescribeDedicatedHostClustersResponse, <-chan error) { - responseChan := make(chan *DescribeDedicatedHostClustersResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDedicatedHostClusters(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDedicatedHostClustersWithCallback invokes the ecs.DescribeDedicatedHostClusters API asynchronously -func (client *Client) DescribeDedicatedHostClustersWithCallback(request *DescribeDedicatedHostClustersRequest, callback func(response *DescribeDedicatedHostClustersResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDedicatedHostClustersResponse - var err error - defer close(result) - response, err = client.DescribeDedicatedHostClusters(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDedicatedHostClustersRequest is the request struct for api DescribeDedicatedHostClusters -type DescribeDedicatedHostClustersRequest struct { - *requests.RpcRequest - DedicatedHostClusterName string `position:"Query" name:"DedicatedHostClusterName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DedicatedHostClusterIds string `position:"Query" name:"DedicatedHostClusterIds"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LockReason string `position:"Query" name:"LockReason"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeDedicatedHostClustersTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ZoneId string `position:"Query" name:"ZoneId"` - Status string `position:"Query" name:"Status"` -} - -// DescribeDedicatedHostClustersTag is a repeated param struct in DescribeDedicatedHostClustersRequest -type DescribeDedicatedHostClustersTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeDedicatedHostClustersResponse is the response struct for api DescribeDedicatedHostClusters -type DescribeDedicatedHostClustersResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - DedicatedHostClusters DedicatedHostClusters `json:"DedicatedHostClusters" xml:"DedicatedHostClusters"` -} - -// CreateDescribeDedicatedHostClustersRequest creates a request to invoke DescribeDedicatedHostClusters API -func CreateDescribeDedicatedHostClustersRequest() (request *DescribeDedicatedHostClustersRequest) { - request = &DescribeDedicatedHostClustersRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostClusters", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDedicatedHostClustersResponse creates a response to parse from DescribeDedicatedHostClusters response -func CreateDescribeDedicatedHostClustersResponse() (response *DescribeDedicatedHostClustersResponse) { - response = &DescribeDedicatedHostClustersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go deleted file mode 100644 index af8f9accf6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDedicatedHostTypes invokes the ecs.DescribeDedicatedHostTypes API synchronously -func (client *Client) DescribeDedicatedHostTypes(request *DescribeDedicatedHostTypesRequest) (response *DescribeDedicatedHostTypesResponse, err error) { - response = CreateDescribeDedicatedHostTypesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDedicatedHostTypesWithChan invokes the ecs.DescribeDedicatedHostTypes API asynchronously -func (client *Client) DescribeDedicatedHostTypesWithChan(request *DescribeDedicatedHostTypesRequest) (<-chan *DescribeDedicatedHostTypesResponse, <-chan error) { - responseChan := make(chan *DescribeDedicatedHostTypesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDedicatedHostTypes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDedicatedHostTypesWithCallback invokes the ecs.DescribeDedicatedHostTypes API asynchronously -func (client *Client) DescribeDedicatedHostTypesWithCallback(request *DescribeDedicatedHostTypesRequest, callback func(response *DescribeDedicatedHostTypesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDedicatedHostTypesResponse - var err error - defer close(result) - response, err = client.DescribeDedicatedHostTypes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDedicatedHostTypesRequest is the request struct for api DescribeDedicatedHostTypes -type DescribeDedicatedHostTypesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SupportedInstanceTypeFamily string `position:"Query" name:"SupportedInstanceTypeFamily"` - DedicatedHostType string `position:"Query" name:"DedicatedHostType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeDedicatedHostTypesResponse is the response struct for api DescribeDedicatedHostTypes -type DescribeDedicatedHostTypesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DedicatedHostTypes DedicatedHostTypes `json:"DedicatedHostTypes" xml:"DedicatedHostTypes"` -} - -// CreateDescribeDedicatedHostTypesRequest creates a request to invoke DescribeDedicatedHostTypes API -func CreateDescribeDedicatedHostTypesRequest() (request *DescribeDedicatedHostTypesRequest) { - request = &DescribeDedicatedHostTypesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostTypes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDedicatedHostTypesResponse creates a response to parse from DescribeDedicatedHostTypes response -func CreateDescribeDedicatedHostTypesResponse() (response *DescribeDedicatedHostTypesResponse) { - response = &DescribeDedicatedHostTypesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go deleted file mode 100644 index 1709943007..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go +++ /dev/null @@ -1,128 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDedicatedHosts invokes the ecs.DescribeDedicatedHosts API synchronously -func (client *Client) DescribeDedicatedHosts(request *DescribeDedicatedHostsRequest) (response *DescribeDedicatedHostsResponse, err error) { - response = CreateDescribeDedicatedHostsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDedicatedHostsWithChan invokes the ecs.DescribeDedicatedHosts API asynchronously -func (client *Client) DescribeDedicatedHostsWithChan(request *DescribeDedicatedHostsRequest) (<-chan *DescribeDedicatedHostsResponse, <-chan error) { - responseChan := make(chan *DescribeDedicatedHostsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDedicatedHosts(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDedicatedHostsWithCallback invokes the ecs.DescribeDedicatedHosts API asynchronously -func (client *Client) DescribeDedicatedHostsWithCallback(request *DescribeDedicatedHostsRequest, callback func(response *DescribeDedicatedHostsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDedicatedHostsResponse - var err error - defer close(result) - response, err = client.DescribeDedicatedHosts(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDedicatedHostsRequest is the request struct for api DescribeDedicatedHosts -type DescribeDedicatedHostsRequest struct { - *requests.RpcRequest - DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SocketDetails string `position:"Query" name:"SocketDetails"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LockReason string `position:"Query" name:"LockReason"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` - DedicatedHostType string `position:"Query" name:"DedicatedHostType"` - Tag *[]DescribeDedicatedHostsTag `position:"Query" name:"Tag" type:"Repeated"` - NeedHostDetail string `position:"Query" name:"NeedHostDetail"` - DedicatedHostName string `position:"Query" name:"DedicatedHostName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ZoneId string `position:"Query" name:"ZoneId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Status string `position:"Query" name:"Status"` -} - -// DescribeDedicatedHostsTag is a repeated param struct in DescribeDedicatedHostsRequest -type DescribeDedicatedHostsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeDedicatedHostsResponse is the response struct for api DescribeDedicatedHosts -type DescribeDedicatedHostsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - DedicatedHosts DedicatedHosts `json:"DedicatedHosts" xml:"DedicatedHosts"` -} - -// CreateDescribeDedicatedHostsRequest creates a request to invoke DescribeDedicatedHosts API -func CreateDescribeDedicatedHostsRequest() (request *DescribeDedicatedHostsRequest) { - request = &DescribeDedicatedHostsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHosts", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDedicatedHostsResponse creates a response to parse from DescribeDedicatedHosts response -func CreateDescribeDedicatedHostsResponse() (response *DescribeDedicatedHostsResponse) { - response = &DescribeDedicatedHostsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go deleted file mode 100644 index 66f0eaa8a8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go +++ /dev/null @@ -1,124 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDemands invokes the ecs.DescribeDemands API synchronously -func (client *Client) DescribeDemands(request *DescribeDemandsRequest) (response *DescribeDemandsResponse, err error) { - response = CreateDescribeDemandsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDemandsWithChan invokes the ecs.DescribeDemands API asynchronously -func (client *Client) DescribeDemandsWithChan(request *DescribeDemandsRequest) (<-chan *DescribeDemandsResponse, <-chan error) { - responseChan := make(chan *DescribeDemandsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDemands(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDemandsWithCallback invokes the ecs.DescribeDemands API asynchronously -func (client *Client) DescribeDemandsWithCallback(request *DescribeDemandsRequest, callback func(response *DescribeDemandsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDemandsResponse - var err error - defer close(result) - response, err = client.DescribeDemands(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDemandsRequest is the request struct for api DescribeDemands -type DescribeDemandsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]DescribeDemandsTag `position:"Query" name:"Tag" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DemandStatus *[]string `position:"Query" name:"DemandStatus" type:"Repeated"` - DemandId string `position:"Query" name:"DemandId"` - ZoneId string `position:"Query" name:"ZoneId"` - DemandType string `position:"Query" name:"DemandType"` -} - -// DescribeDemandsTag is a repeated param struct in DescribeDemandsRequest -type DescribeDemandsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeDemandsResponse is the response struct for api DescribeDemands -type DescribeDemandsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - Demands Demands `json:"Demands" xml:"Demands"` -} - -// CreateDescribeDemandsRequest creates a request to invoke DescribeDemands API -func CreateDescribeDemandsRequest() (request *DescribeDemandsRequest) { - request = &DescribeDemandsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDemands", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDemandsResponse creates a response to parse from DescribeDemands response -func CreateDescribeDemandsResponse() (response *DescribeDemandsResponse) { - response = &DescribeDemandsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_supported_instance_type_family.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_supported_instance_type_family.go deleted file mode 100644 index f6b239c58f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_supported_instance_type_family.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDeploymentSetSupportedInstanceTypeFamily invokes the ecs.DescribeDeploymentSetSupportedInstanceTypeFamily API synchronously -func (client *Client) DescribeDeploymentSetSupportedInstanceTypeFamily(request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) (response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, err error) { - response = CreateDescribeDeploymentSetSupportedInstanceTypeFamilyResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDeploymentSetSupportedInstanceTypeFamilyWithChan invokes the ecs.DescribeDeploymentSetSupportedInstanceTypeFamily API asynchronously -func (client *Client) DescribeDeploymentSetSupportedInstanceTypeFamilyWithChan(request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) (<-chan *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, <-chan error) { - responseChan := make(chan *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDeploymentSetSupportedInstanceTypeFamily(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDeploymentSetSupportedInstanceTypeFamilyWithCallback invokes the ecs.DescribeDeploymentSetSupportedInstanceTypeFamily API asynchronously -func (client *Client) DescribeDeploymentSetSupportedInstanceTypeFamilyWithCallback(request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest, callback func(response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse - var err error - defer close(result) - response, err = client.DescribeDeploymentSetSupportedInstanceTypeFamily(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDeploymentSetSupportedInstanceTypeFamilyRequest is the request struct for api DescribeDeploymentSetSupportedInstanceTypeFamily -type DescribeDeploymentSetSupportedInstanceTypeFamilyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Strategy string `position:"Query" name:"Strategy"` -} - -// DescribeDeploymentSetSupportedInstanceTypeFamilyResponse is the response struct for api DescribeDeploymentSetSupportedInstanceTypeFamily -type DescribeDeploymentSetSupportedInstanceTypeFamilyResponse struct { - *responses.BaseResponse - InstanceTypeFamilies string `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDescribeDeploymentSetSupportedInstanceTypeFamilyRequest creates a request to invoke DescribeDeploymentSetSupportedInstanceTypeFamily API -func CreateDescribeDeploymentSetSupportedInstanceTypeFamilyRequest() (request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) { - request = &DescribeDeploymentSetSupportedInstanceTypeFamilyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDeploymentSetSupportedInstanceTypeFamily", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDeploymentSetSupportedInstanceTypeFamilyResponse creates a response to parse from DescribeDeploymentSetSupportedInstanceTypeFamily response -func CreateDescribeDeploymentSetSupportedInstanceTypeFamilyResponse() (response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse) { - response = &DescribeDeploymentSetSupportedInstanceTypeFamilyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go deleted file mode 100644 index 93aa3259dd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDeploymentSets invokes the ecs.DescribeDeploymentSets API synchronously -func (client *Client) DescribeDeploymentSets(request *DescribeDeploymentSetsRequest) (response *DescribeDeploymentSetsResponse, err error) { - response = CreateDescribeDeploymentSetsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDeploymentSetsWithChan invokes the ecs.DescribeDeploymentSets API asynchronously -func (client *Client) DescribeDeploymentSetsWithChan(request *DescribeDeploymentSetsRequest) (<-chan *DescribeDeploymentSetsResponse, <-chan error) { - responseChan := make(chan *DescribeDeploymentSetsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDeploymentSets(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDeploymentSetsWithCallback invokes the ecs.DescribeDeploymentSets API asynchronously -func (client *Client) DescribeDeploymentSetsWithCallback(request *DescribeDeploymentSetsRequest, callback func(response *DescribeDeploymentSetsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDeploymentSetsResponse - var err error - defer close(result) - response, err = client.DescribeDeploymentSets(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDeploymentSetsRequest is the request struct for api DescribeDeploymentSets -type DescribeDeploymentSetsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NetworkType string `position:"Query" name:"NetworkType"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - DeploymentSetIds string `position:"Query" name:"DeploymentSetIds"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DeploymentSetName string `position:"Query" name:"DeploymentSetName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Granularity string `position:"Query" name:"Granularity"` - Domain string `position:"Query" name:"Domain"` - Strategy string `position:"Query" name:"Strategy"` -} - -// DescribeDeploymentSetsResponse is the response struct for api DescribeDeploymentSets -type DescribeDeploymentSetsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - DeploymentSets DeploymentSets `json:"DeploymentSets" xml:"DeploymentSets"` -} - -// CreateDescribeDeploymentSetsRequest creates a request to invoke DescribeDeploymentSets API -func CreateDescribeDeploymentSetsRequest() (request *DescribeDeploymentSetsRequest) { - request = &DescribeDeploymentSetsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDeploymentSets", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDeploymentSetsResponse creates a response to parse from DescribeDeploymentSets response -func CreateDescribeDeploymentSetsResponse() (response *DescribeDeploymentSetsResponse) { - response = &DescribeDeploymentSetsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metric_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metric_sets.go deleted file mode 100644 index a3287ea178..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metric_sets.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDiagnosticMetricSets invokes the ecs.DescribeDiagnosticMetricSets API synchronously -func (client *Client) DescribeDiagnosticMetricSets(request *DescribeDiagnosticMetricSetsRequest) (response *DescribeDiagnosticMetricSetsResponse, err error) { - response = CreateDescribeDiagnosticMetricSetsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDiagnosticMetricSetsWithChan invokes the ecs.DescribeDiagnosticMetricSets API asynchronously -func (client *Client) DescribeDiagnosticMetricSetsWithChan(request *DescribeDiagnosticMetricSetsRequest) (<-chan *DescribeDiagnosticMetricSetsResponse, <-chan error) { - responseChan := make(chan *DescribeDiagnosticMetricSetsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDiagnosticMetricSets(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDiagnosticMetricSetsWithCallback invokes the ecs.DescribeDiagnosticMetricSets API asynchronously -func (client *Client) DescribeDiagnosticMetricSetsWithCallback(request *DescribeDiagnosticMetricSetsRequest, callback func(response *DescribeDiagnosticMetricSetsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDiagnosticMetricSetsResponse - var err error - defer close(result) - response, err = client.DescribeDiagnosticMetricSets(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDiagnosticMetricSetsRequest is the request struct for api DescribeDiagnosticMetricSets -type DescribeDiagnosticMetricSetsRequest struct { - *requests.RpcRequest - MetricSetIds *[]string `position:"Query" name:"MetricSetIds" type:"Repeated"` - Type string `position:"Query" name:"Type"` - NextToken string `position:"Query" name:"NextToken"` - ResourceType string `position:"Query" name:"ResourceType"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeDiagnosticMetricSetsResponse is the response struct for api DescribeDiagnosticMetricSets -type DescribeDiagnosticMetricSetsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NextToken string `json:"NextToken" xml:"NextToken"` - MetricSets []MetricSet `json:"MetricSets" xml:"MetricSets"` -} - -// CreateDescribeDiagnosticMetricSetsRequest creates a request to invoke DescribeDiagnosticMetricSets API -func CreateDescribeDiagnosticMetricSetsRequest() (request *DescribeDiagnosticMetricSetsRequest) { - request = &DescribeDiagnosticMetricSetsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticMetricSets", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDiagnosticMetricSetsResponse creates a response to parse from DescribeDiagnosticMetricSets response -func CreateDescribeDiagnosticMetricSetsResponse() (response *DescribeDiagnosticMetricSetsResponse) { - response = &DescribeDiagnosticMetricSetsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metrics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metrics.go deleted file mode 100644 index 2824ad8125..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metrics.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDiagnosticMetrics invokes the ecs.DescribeDiagnosticMetrics API synchronously -func (client *Client) DescribeDiagnosticMetrics(request *DescribeDiagnosticMetricsRequest) (response *DescribeDiagnosticMetricsResponse, err error) { - response = CreateDescribeDiagnosticMetricsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDiagnosticMetricsWithChan invokes the ecs.DescribeDiagnosticMetrics API asynchronously -func (client *Client) DescribeDiagnosticMetricsWithChan(request *DescribeDiagnosticMetricsRequest) (<-chan *DescribeDiagnosticMetricsResponse, <-chan error) { - responseChan := make(chan *DescribeDiagnosticMetricsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDiagnosticMetrics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDiagnosticMetricsWithCallback invokes the ecs.DescribeDiagnosticMetrics API asynchronously -func (client *Client) DescribeDiagnosticMetricsWithCallback(request *DescribeDiagnosticMetricsRequest, callback func(response *DescribeDiagnosticMetricsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDiagnosticMetricsResponse - var err error - defer close(result) - response, err = client.DescribeDiagnosticMetrics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDiagnosticMetricsRequest is the request struct for api DescribeDiagnosticMetrics -type DescribeDiagnosticMetricsRequest struct { - *requests.RpcRequest - MetricIds *[]string `position:"Query" name:"MetricIds" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` - NextToken string `position:"Query" name:"NextToken"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeDiagnosticMetricsResponse is the response struct for api DescribeDiagnosticMetrics -type DescribeDiagnosticMetricsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NextToken string `json:"NextToken" xml:"NextToken"` - Metrics []Metric `json:"Metrics" xml:"Metrics"` -} - -// CreateDescribeDiagnosticMetricsRequest creates a request to invoke DescribeDiagnosticMetrics API -func CreateDescribeDiagnosticMetricsRequest() (request *DescribeDiagnosticMetricsRequest) { - request = &DescribeDiagnosticMetricsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticMetrics", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDiagnosticMetricsResponse creates a response to parse from DescribeDiagnosticMetrics response -func CreateDescribeDiagnosticMetricsResponse() (response *DescribeDiagnosticMetricsResponse) { - response = &DescribeDiagnosticMetricsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_report_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_report_attributes.go deleted file mode 100644 index 2cb0c30a4f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_report_attributes.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDiagnosticReportAttributes invokes the ecs.DescribeDiagnosticReportAttributes API synchronously -func (client *Client) DescribeDiagnosticReportAttributes(request *DescribeDiagnosticReportAttributesRequest) (response *DescribeDiagnosticReportAttributesResponse, err error) { - response = CreateDescribeDiagnosticReportAttributesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDiagnosticReportAttributesWithChan invokes the ecs.DescribeDiagnosticReportAttributes API asynchronously -func (client *Client) DescribeDiagnosticReportAttributesWithChan(request *DescribeDiagnosticReportAttributesRequest) (<-chan *DescribeDiagnosticReportAttributesResponse, <-chan error) { - responseChan := make(chan *DescribeDiagnosticReportAttributesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDiagnosticReportAttributes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDiagnosticReportAttributesWithCallback invokes the ecs.DescribeDiagnosticReportAttributes API asynchronously -func (client *Client) DescribeDiagnosticReportAttributesWithCallback(request *DescribeDiagnosticReportAttributesRequest, callback func(response *DescribeDiagnosticReportAttributesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDiagnosticReportAttributesResponse - var err error - defer close(result) - response, err = client.DescribeDiagnosticReportAttributes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDiagnosticReportAttributesRequest is the request struct for api DescribeDiagnosticReportAttributes -type DescribeDiagnosticReportAttributesRequest struct { - *requests.RpcRequest - ReportId string `position:"Query" name:"ReportId"` -} - -// DescribeDiagnosticReportAttributesResponse is the response struct for api DescribeDiagnosticReportAttributes -type DescribeDiagnosticReportAttributesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` - ReportId string `json:"ReportId" xml:"ReportId"` - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - StartTime string `json:"StartTime" xml:"StartTime"` - EndTime string `json:"EndTime" xml:"EndTime"` - Severity string `json:"Severity" xml:"Severity"` - MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` - Attributes string `json:"Attributes" xml:"Attributes"` - MetricResults MetricResults `json:"MetricResults" xml:"MetricResults"` -} - -// CreateDescribeDiagnosticReportAttributesRequest creates a request to invoke DescribeDiagnosticReportAttributes API -func CreateDescribeDiagnosticReportAttributesRequest() (request *DescribeDiagnosticReportAttributesRequest) { - request = &DescribeDiagnosticReportAttributesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticReportAttributes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDiagnosticReportAttributesResponse creates a response to parse from DescribeDiagnosticReportAttributes response -func CreateDescribeDiagnosticReportAttributesResponse() (response *DescribeDiagnosticReportAttributesResponse) { - response = &DescribeDiagnosticReportAttributesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_reports.go deleted file mode 100644 index 1cb7ac4cec..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_reports.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDiagnosticReports invokes the ecs.DescribeDiagnosticReports API synchronously -func (client *Client) DescribeDiagnosticReports(request *DescribeDiagnosticReportsRequest) (response *DescribeDiagnosticReportsResponse, err error) { - response = CreateDescribeDiagnosticReportsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDiagnosticReportsWithChan invokes the ecs.DescribeDiagnosticReports API asynchronously -func (client *Client) DescribeDiagnosticReportsWithChan(request *DescribeDiagnosticReportsRequest) (<-chan *DescribeDiagnosticReportsResponse, <-chan error) { - responseChan := make(chan *DescribeDiagnosticReportsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDiagnosticReports(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDiagnosticReportsWithCallback invokes the ecs.DescribeDiagnosticReports API asynchronously -func (client *Client) DescribeDiagnosticReportsWithCallback(request *DescribeDiagnosticReportsRequest, callback func(response *DescribeDiagnosticReportsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDiagnosticReportsResponse - var err error - defer close(result) - response, err = client.DescribeDiagnosticReports(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDiagnosticReportsRequest is the request struct for api DescribeDiagnosticReports -type DescribeDiagnosticReportsRequest struct { - *requests.RpcRequest - NextToken string `position:"Query" name:"NextToken"` - Severity string `position:"Query" name:"Severity"` - ReportIds *[]string `position:"Query" name:"ReportIds" type:"Repeated"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Status string `position:"Query" name:"Status"` - ResourceIds *[]string `position:"Query" name:"ResourceIds" type:"Repeated"` -} - -// DescribeDiagnosticReportsResponse is the response struct for api DescribeDiagnosticReports -type DescribeDiagnosticReportsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NextToken string `json:"NextToken" xml:"NextToken"` - Reports Reports `json:"Reports" xml:"Reports"` -} - -// CreateDescribeDiagnosticReportsRequest creates a request to invoke DescribeDiagnosticReports API -func CreateDescribeDiagnosticReportsRequest() (request *DescribeDiagnosticReportsRequest) { - request = &DescribeDiagnosticReportsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticReports", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDiagnosticReportsResponse creates a response to parse from DescribeDiagnosticReports response -func CreateDescribeDiagnosticReportsResponse() (response *DescribeDiagnosticReportsResponse) { - response = &DescribeDiagnosticReportsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_default_kms_key_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_default_kms_key_id.go deleted file mode 100644 index e95f818a2a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_default_kms_key_id.go +++ /dev/null @@ -1,100 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDiskDefaultKMSKeyId invokes the ecs.DescribeDiskDefaultKMSKeyId API synchronously -func (client *Client) DescribeDiskDefaultKMSKeyId(request *DescribeDiskDefaultKMSKeyIdRequest) (response *DescribeDiskDefaultKMSKeyIdResponse, err error) { - response = CreateDescribeDiskDefaultKMSKeyIdResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDiskDefaultKMSKeyIdWithChan invokes the ecs.DescribeDiskDefaultKMSKeyId API asynchronously -func (client *Client) DescribeDiskDefaultKMSKeyIdWithChan(request *DescribeDiskDefaultKMSKeyIdRequest) (<-chan *DescribeDiskDefaultKMSKeyIdResponse, <-chan error) { - responseChan := make(chan *DescribeDiskDefaultKMSKeyIdResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDiskDefaultKMSKeyId(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDiskDefaultKMSKeyIdWithCallback invokes the ecs.DescribeDiskDefaultKMSKeyId API asynchronously -func (client *Client) DescribeDiskDefaultKMSKeyIdWithCallback(request *DescribeDiskDefaultKMSKeyIdRequest, callback func(response *DescribeDiskDefaultKMSKeyIdResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDiskDefaultKMSKeyIdResponse - var err error - defer close(result) - response, err = client.DescribeDiskDefaultKMSKeyId(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDiskDefaultKMSKeyIdRequest is the request struct for api DescribeDiskDefaultKMSKeyId -type DescribeDiskDefaultKMSKeyIdRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` -} - -// DescribeDiskDefaultKMSKeyIdResponse is the response struct for api DescribeDiskDefaultKMSKeyId -type DescribeDiskDefaultKMSKeyIdResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` -} - -// CreateDescribeDiskDefaultKMSKeyIdRequest creates a request to invoke DescribeDiskDefaultKMSKeyId API -func CreateDescribeDiskDefaultKMSKeyIdRequest() (request *DescribeDiskDefaultKMSKeyIdRequest) { - request = &DescribeDiskDefaultKMSKeyIdRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiskDefaultKMSKeyId", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDiskDefaultKMSKeyIdResponse creates a response to parse from DescribeDiskDefaultKMSKeyId response -func CreateDescribeDiskDefaultKMSKeyIdResponse() (response *DescribeDiskDefaultKMSKeyIdResponse) { - response = &DescribeDiskDefaultKMSKeyIdResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_encryption_by_default_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_encryption_by_default_status.go deleted file mode 100644 index 1b371892c2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_encryption_by_default_status.go +++ /dev/null @@ -1,100 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDiskEncryptionByDefaultStatus invokes the ecs.DescribeDiskEncryptionByDefaultStatus API synchronously -func (client *Client) DescribeDiskEncryptionByDefaultStatus(request *DescribeDiskEncryptionByDefaultStatusRequest) (response *DescribeDiskEncryptionByDefaultStatusResponse, err error) { - response = CreateDescribeDiskEncryptionByDefaultStatusResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDiskEncryptionByDefaultStatusWithChan invokes the ecs.DescribeDiskEncryptionByDefaultStatus API asynchronously -func (client *Client) DescribeDiskEncryptionByDefaultStatusWithChan(request *DescribeDiskEncryptionByDefaultStatusRequest) (<-chan *DescribeDiskEncryptionByDefaultStatusResponse, <-chan error) { - responseChan := make(chan *DescribeDiskEncryptionByDefaultStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDiskEncryptionByDefaultStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDiskEncryptionByDefaultStatusWithCallback invokes the ecs.DescribeDiskEncryptionByDefaultStatus API asynchronously -func (client *Client) DescribeDiskEncryptionByDefaultStatusWithCallback(request *DescribeDiskEncryptionByDefaultStatusRequest, callback func(response *DescribeDiskEncryptionByDefaultStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDiskEncryptionByDefaultStatusResponse - var err error - defer close(result) - response, err = client.DescribeDiskEncryptionByDefaultStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDiskEncryptionByDefaultStatusRequest is the request struct for api DescribeDiskEncryptionByDefaultStatus -type DescribeDiskEncryptionByDefaultStatusRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` -} - -// DescribeDiskEncryptionByDefaultStatusResponse is the response struct for api DescribeDiskEncryptionByDefaultStatus -type DescribeDiskEncryptionByDefaultStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Encrypted bool `json:"Encrypted" xml:"Encrypted"` -} - -// CreateDescribeDiskEncryptionByDefaultStatusRequest creates a request to invoke DescribeDiskEncryptionByDefaultStatus API -func CreateDescribeDiskEncryptionByDefaultStatusRequest() (request *DescribeDiskEncryptionByDefaultStatusRequest) { - request = &DescribeDiskEncryptionByDefaultStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiskEncryptionByDefaultStatus", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDiskEncryptionByDefaultStatusResponse creates a response to parse from DescribeDiskEncryptionByDefaultStatus response -func CreateDescribeDiskEncryptionByDefaultStatusResponse() (response *DescribeDiskEncryptionByDefaultStatusResponse) { - response = &DescribeDiskEncryptionByDefaultStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go deleted file mode 100644 index c71ff90050..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDiskMonitorData invokes the ecs.DescribeDiskMonitorData API synchronously -func (client *Client) DescribeDiskMonitorData(request *DescribeDiskMonitorDataRequest) (response *DescribeDiskMonitorDataResponse, err error) { - response = CreateDescribeDiskMonitorDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDiskMonitorDataWithChan invokes the ecs.DescribeDiskMonitorData API asynchronously -func (client *Client) DescribeDiskMonitorDataWithChan(request *DescribeDiskMonitorDataRequest) (<-chan *DescribeDiskMonitorDataResponse, <-chan error) { - responseChan := make(chan *DescribeDiskMonitorDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDiskMonitorData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDiskMonitorDataWithCallback invokes the ecs.DescribeDiskMonitorData API asynchronously -func (client *Client) DescribeDiskMonitorDataWithCallback(request *DescribeDiskMonitorDataRequest, callback func(response *DescribeDiskMonitorDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDiskMonitorDataResponse - var err error - defer close(result) - response, err = client.DescribeDiskMonitorData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDiskMonitorDataRequest is the request struct for api DescribeDiskMonitorData -type DescribeDiskMonitorDataRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StartTime string `position:"Query" name:"StartTime"` - DiskId string `position:"Query" name:"DiskId"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeDiskMonitorDataResponse is the response struct for api DescribeDiskMonitorData -type DescribeDiskMonitorDataResponse struct { - *responses.BaseResponse - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorData MonitorDataInDescribeDiskMonitorData `json:"MonitorData" xml:"MonitorData"` -} - -// CreateDescribeDiskMonitorDataRequest creates a request to invoke DescribeDiskMonitorData API -func CreateDescribeDiskMonitorDataRequest() (request *DescribeDiskMonitorDataRequest) { - request = &DescribeDiskMonitorDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiskMonitorData", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDiskMonitorDataResponse creates a response to parse from DescribeDiskMonitorData response -func CreateDescribeDiskMonitorDataResponse() (response *DescribeDiskMonitorDataResponse) { - response = &DescribeDiskMonitorDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go deleted file mode 100644 index 589cf02ac6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go +++ /dev/null @@ -1,145 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDisks invokes the ecs.DescribeDisks API synchronously -func (client *Client) DescribeDisks(request *DescribeDisksRequest) (response *DescribeDisksResponse, err error) { - response = CreateDescribeDisksResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDisksWithChan invokes the ecs.DescribeDisks API asynchronously -func (client *Client) DescribeDisksWithChan(request *DescribeDisksRequest) (<-chan *DescribeDisksResponse, <-chan error) { - responseChan := make(chan *DescribeDisksResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDisks(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDisksWithCallback invokes the ecs.DescribeDisks API asynchronously -func (client *Client) DescribeDisksWithCallback(request *DescribeDisksRequest, callback func(response *DescribeDisksResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDisksResponse - var err error - defer close(result) - response, err = client.DescribeDisks(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDisksRequest is the request struct for api DescribeDisks -type DescribeDisksRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Filter2Value string `position:"Query" name:"Filter.2.Value"` - AutoSnapshotPolicyId string `position:"Query" name:"AutoSnapshotPolicyId"` - DiskName string `position:"Query" name:"DiskName"` - DeleteAutoSnapshot requests.Boolean `position:"Query" name:"DeleteAutoSnapshot"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - DiskChargeType string `position:"Query" name:"DiskChargeType"` - LockReason string `position:"Query" name:"LockReason"` - Filter1Key string `position:"Query" name:"Filter.1.Key"` - Tag *[]DescribeDisksTag `position:"Query" name:"Tag" type:"Repeated"` - EnableAutoSnapshot requests.Boolean `position:"Query" name:"EnableAutoSnapshot"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` - Portable requests.Boolean `position:"Query" name:"Portable"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` - InstanceId string `position:"Query" name:"InstanceId"` - ZoneId string `position:"Query" name:"ZoneId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Status string `position:"Query" name:"Status"` - SnapshotId string `position:"Query" name:"SnapshotId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DiskIds string `position:"Query" name:"DiskIds"` - MultiAttach string `position:"Query" name:"MultiAttach"` - DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EnableAutomatedSnapshotPolicy requests.Boolean `position:"Query" name:"EnableAutomatedSnapshotPolicy"` - Filter2Key string `position:"Query" name:"Filter.2.Key"` - DiskType string `position:"Query" name:"DiskType"` - EnableShared requests.Boolean `position:"Query" name:"EnableShared"` - Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - Category string `position:"Query" name:"Category"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` -} - -// DescribeDisksTag is a repeated param struct in DescribeDisksRequest -type DescribeDisksTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeDisksResponse is the response struct for api DescribeDisks -type DescribeDisksResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Disks DisksInDescribeDisks `json:"Disks" xml:"Disks"` -} - -// CreateDescribeDisksRequest creates a request to invoke DescribeDisks API -func CreateDescribeDisksRequest() (request *DescribeDisksRequest) { - request = &DescribeDisksRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDisks", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDisksResponse creates a response to parse from DescribeDisks response -func CreateDescribeDisksResponse() (response *DescribeDisksResponse) { - response = &DescribeDisksResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go deleted file mode 100644 index c339e2a969..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go +++ /dev/null @@ -1,123 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeDisksFullStatus invokes the ecs.DescribeDisksFullStatus API synchronously -func (client *Client) DescribeDisksFullStatus(request *DescribeDisksFullStatusRequest) (response *DescribeDisksFullStatusResponse, err error) { - response = CreateDescribeDisksFullStatusResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDisksFullStatusWithChan invokes the ecs.DescribeDisksFullStatus API asynchronously -func (client *Client) DescribeDisksFullStatusWithChan(request *DescribeDisksFullStatusRequest) (<-chan *DescribeDisksFullStatusResponse, <-chan error) { - responseChan := make(chan *DescribeDisksFullStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDisksFullStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDisksFullStatusWithCallback invokes the ecs.DescribeDisksFullStatus API asynchronously -func (client *Client) DescribeDisksFullStatusWithCallback(request *DescribeDisksFullStatusRequest, callback func(response *DescribeDisksFullStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDisksFullStatusResponse - var err error - defer close(result) - response, err = client.DescribeDisksFullStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDisksFullStatusRequest is the request struct for api DescribeDisksFullStatus -type DescribeDisksFullStatusRequest struct { - *requests.RpcRequest - EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EventTimeStart string `position:"Query" name:"EventTime.Start"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` - Tag *[]DescribeDisksFullStatusTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - EventTimeEnd string `position:"Query" name:"EventTime.End"` - HealthStatus string `position:"Query" name:"HealthStatus"` - EventType string `position:"Query" name:"EventType"` - Status string `position:"Query" name:"Status"` -} - -// DescribeDisksFullStatusTag is a repeated param struct in DescribeDisksFullStatusRequest -type DescribeDisksFullStatusTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeDisksFullStatusResponse is the response struct for api DescribeDisksFullStatus -type DescribeDisksFullStatusResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - DiskFullStatusSet DiskFullStatusSet `json:"DiskFullStatusSet" xml:"DiskFullStatusSet"` -} - -// CreateDescribeDisksFullStatusRequest creates a request to invoke DescribeDisksFullStatus API -func CreateDescribeDisksFullStatusRequest() (request *DescribeDisksFullStatusRequest) { - request = &DescribeDisksFullStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDisksFullStatus", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDisksFullStatusResponse creates a response to parse from DescribeDisksFullStatus response -func CreateDescribeDisksFullStatusResponse() (response *DescribeDisksFullStatusResponse) { - response = &DescribeDisksFullStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go deleted file mode 100644 index cdfcb8707c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go +++ /dev/null @@ -1,120 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeEipAddresses invokes the ecs.DescribeEipAddresses API synchronously -func (client *Client) DescribeEipAddresses(request *DescribeEipAddressesRequest) (response *DescribeEipAddressesResponse, err error) { - response = CreateDescribeEipAddressesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeEipAddressesWithChan invokes the ecs.DescribeEipAddresses API asynchronously -func (client *Client) DescribeEipAddressesWithChan(request *DescribeEipAddressesRequest) (<-chan *DescribeEipAddressesResponse, <-chan error) { - responseChan := make(chan *DescribeEipAddressesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeEipAddresses(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeEipAddressesWithCallback invokes the ecs.DescribeEipAddresses API asynchronously -func (client *Client) DescribeEipAddressesWithCallback(request *DescribeEipAddressesRequest, callback func(response *DescribeEipAddressesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeEipAddressesResponse - var err error - defer close(result) - response, err = client.DescribeEipAddresses(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeEipAddressesRequest is the request struct for api DescribeEipAddresses -type DescribeEipAddressesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Filter2Value string `position:"Query" name:"Filter.2.Value"` - ISP string `position:"Query" name:"ISP"` - AllocationId string `position:"Query" name:"AllocationId"` - EipAddress string `position:"Query" name:"EipAddress"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - LockReason string `position:"Query" name:"LockReason"` - Filter1Key string `position:"Query" name:"Filter.1.Key"` - AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` - Filter2Key string `position:"Query" name:"Filter.2.Key"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ChargeType string `position:"Query" name:"ChargeType"` - AssociatedInstanceId string `position:"Query" name:"AssociatedInstanceId"` - Status string `position:"Query" name:"Status"` -} - -// DescribeEipAddressesResponse is the response struct for api DescribeEipAddresses -type DescribeEipAddressesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - EipAddresses EipAddresses `json:"EipAddresses" xml:"EipAddresses"` -} - -// CreateDescribeEipAddressesRequest creates a request to invoke DescribeEipAddresses API -func CreateDescribeEipAddressesRequest() (request *DescribeEipAddressesRequest) { - request = &DescribeEipAddressesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEipAddresses", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeEipAddressesResponse creates a response to parse from DescribeEipAddresses response -func CreateDescribeEipAddressesResponse() (response *DescribeEipAddressesResponse) { - response = &DescribeEipAddressesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go deleted file mode 100644 index cb37c4e573..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeEipMonitorData invokes the ecs.DescribeEipMonitorData API synchronously -func (client *Client) DescribeEipMonitorData(request *DescribeEipMonitorDataRequest) (response *DescribeEipMonitorDataResponse, err error) { - response = CreateDescribeEipMonitorDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeEipMonitorDataWithChan invokes the ecs.DescribeEipMonitorData API asynchronously -func (client *Client) DescribeEipMonitorDataWithChan(request *DescribeEipMonitorDataRequest) (<-chan *DescribeEipMonitorDataResponse, <-chan error) { - responseChan := make(chan *DescribeEipMonitorDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeEipMonitorData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeEipMonitorDataWithCallback invokes the ecs.DescribeEipMonitorData API asynchronously -func (client *Client) DescribeEipMonitorDataWithCallback(request *DescribeEipMonitorDataRequest, callback func(response *DescribeEipMonitorDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeEipMonitorDataResponse - var err error - defer close(result) - response, err = client.DescribeEipMonitorData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeEipMonitorDataRequest is the request struct for api DescribeEipMonitorData -type DescribeEipMonitorDataRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AllocationId string `position:"Query" name:"AllocationId"` - StartTime string `position:"Query" name:"StartTime"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeEipMonitorDataResponse is the response struct for api DescribeEipMonitorData -type DescribeEipMonitorDataResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - EipMonitorDatas EipMonitorDatasInDescribeEipMonitorData `json:"EipMonitorDatas" xml:"EipMonitorDatas"` -} - -// CreateDescribeEipMonitorDataRequest creates a request to invoke DescribeEipMonitorData API -func CreateDescribeEipMonitorDataRequest() (request *DescribeEipMonitorDataRequest) { - request = &DescribeEipMonitorDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEipMonitorData", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeEipMonitorDataResponse creates a response to parse from DescribeEipMonitorData response -func CreateDescribeEipMonitorDataResponse() (response *DescribeEipMonitorDataResponse) { - response = &DescribeEipMonitorDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_auto_renew_attribute.go deleted file mode 100644 index e18672ff2c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_auto_renew_attribute.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeElasticityAssuranceAutoRenewAttribute invokes the ecs.DescribeElasticityAssuranceAutoRenewAttribute API synchronously -func (client *Client) DescribeElasticityAssuranceAutoRenewAttribute(request *DescribeElasticityAssuranceAutoRenewAttributeRequest) (response *DescribeElasticityAssuranceAutoRenewAttributeResponse, err error) { - response = CreateDescribeElasticityAssuranceAutoRenewAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeElasticityAssuranceAutoRenewAttributeWithChan invokes the ecs.DescribeElasticityAssuranceAutoRenewAttribute API asynchronously -func (client *Client) DescribeElasticityAssuranceAutoRenewAttributeWithChan(request *DescribeElasticityAssuranceAutoRenewAttributeRequest) (<-chan *DescribeElasticityAssuranceAutoRenewAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeElasticityAssuranceAutoRenewAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeElasticityAssuranceAutoRenewAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeElasticityAssuranceAutoRenewAttributeWithCallback invokes the ecs.DescribeElasticityAssuranceAutoRenewAttribute API asynchronously -func (client *Client) DescribeElasticityAssuranceAutoRenewAttributeWithCallback(request *DescribeElasticityAssuranceAutoRenewAttributeRequest, callback func(response *DescribeElasticityAssuranceAutoRenewAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeElasticityAssuranceAutoRenewAttributeResponse - var err error - defer close(result) - response, err = client.DescribeElasticityAssuranceAutoRenewAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeElasticityAssuranceAutoRenewAttributeRequest is the request struct for api DescribeElasticityAssuranceAutoRenewAttribute -type DescribeElasticityAssuranceAutoRenewAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PrivatePoolOptionsId *[]string `position:"Query" name:"PrivatePoolOptions.Id" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeElasticityAssuranceAutoRenewAttributeResponse is the response struct for api DescribeElasticityAssuranceAutoRenewAttribute -type DescribeElasticityAssuranceAutoRenewAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ElasticityAssuranceRenewAttributes ElasticityAssuranceRenewAttributes `json:"ElasticityAssuranceRenewAttributes" xml:"ElasticityAssuranceRenewAttributes"` -} - -// CreateDescribeElasticityAssuranceAutoRenewAttributeRequest creates a request to invoke DescribeElasticityAssuranceAutoRenewAttribute API -func CreateDescribeElasticityAssuranceAutoRenewAttributeRequest() (request *DescribeElasticityAssuranceAutoRenewAttributeRequest) { - request = &DescribeElasticityAssuranceAutoRenewAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeElasticityAssuranceAutoRenewAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeElasticityAssuranceAutoRenewAttributeResponse creates a response to parse from DescribeElasticityAssuranceAutoRenewAttribute response -func CreateDescribeElasticityAssuranceAutoRenewAttributeResponse() (response *DescribeElasticityAssuranceAutoRenewAttributeResponse) { - response = &DescribeElasticityAssuranceAutoRenewAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_instances.go deleted file mode 100644 index 0c3ef64f4a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_instances.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeElasticityAssuranceInstances invokes the ecs.DescribeElasticityAssuranceInstances API synchronously -func (client *Client) DescribeElasticityAssuranceInstances(request *DescribeElasticityAssuranceInstancesRequest) (response *DescribeElasticityAssuranceInstancesResponse, err error) { - response = CreateDescribeElasticityAssuranceInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeElasticityAssuranceInstancesWithChan invokes the ecs.DescribeElasticityAssuranceInstances API asynchronously -func (client *Client) DescribeElasticityAssuranceInstancesWithChan(request *DescribeElasticityAssuranceInstancesRequest) (<-chan *DescribeElasticityAssuranceInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeElasticityAssuranceInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeElasticityAssuranceInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeElasticityAssuranceInstancesWithCallback invokes the ecs.DescribeElasticityAssuranceInstances API asynchronously -func (client *Client) DescribeElasticityAssuranceInstancesWithCallback(request *DescribeElasticityAssuranceInstancesRequest, callback func(response *DescribeElasticityAssuranceInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeElasticityAssuranceInstancesResponse - var err error - defer close(result) - response, err = client.DescribeElasticityAssuranceInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeElasticityAssuranceInstancesRequest is the request struct for api DescribeElasticityAssuranceInstances -type DescribeElasticityAssuranceInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextToken string `position:"Query" name:"NextToken"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - PackageType string `position:"Query" name:"PackageType"` -} - -// DescribeElasticityAssuranceInstancesResponse is the response struct for api DescribeElasticityAssuranceInstances -type DescribeElasticityAssuranceInstancesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - ElasticityAssuranceItem ElasticityAssuranceItemInDescribeElasticityAssuranceInstances `json:"ElasticityAssuranceItem" xml:"ElasticityAssuranceItem"` -} - -// CreateDescribeElasticityAssuranceInstancesRequest creates a request to invoke DescribeElasticityAssuranceInstances API -func CreateDescribeElasticityAssuranceInstancesRequest() (request *DescribeElasticityAssuranceInstancesRequest) { - request = &DescribeElasticityAssuranceInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeElasticityAssuranceInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeElasticityAssuranceInstancesResponse creates a response to parse from DescribeElasticityAssuranceInstances response -func CreateDescribeElasticityAssuranceInstancesResponse() (response *DescribeElasticityAssuranceInstancesResponse) { - response = &DescribeElasticityAssuranceInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurances.go deleted file mode 100644 index 3674fed828..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurances.go +++ /dev/null @@ -1,123 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeElasticityAssurances invokes the ecs.DescribeElasticityAssurances API synchronously -func (client *Client) DescribeElasticityAssurances(request *DescribeElasticityAssurancesRequest) (response *DescribeElasticityAssurancesResponse, err error) { - response = CreateDescribeElasticityAssurancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeElasticityAssurancesWithChan invokes the ecs.DescribeElasticityAssurances API asynchronously -func (client *Client) DescribeElasticityAssurancesWithChan(request *DescribeElasticityAssurancesRequest) (<-chan *DescribeElasticityAssurancesResponse, <-chan error) { - responseChan := make(chan *DescribeElasticityAssurancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeElasticityAssurances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeElasticityAssurancesWithCallback invokes the ecs.DescribeElasticityAssurances API asynchronously -func (client *Client) DescribeElasticityAssurancesWithCallback(request *DescribeElasticityAssurancesRequest, callback func(response *DescribeElasticityAssurancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeElasticityAssurancesResponse - var err error - defer close(result) - response, err = client.DescribeElasticityAssurances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeElasticityAssurancesRequest is the request struct for api DescribeElasticityAssurances -type DescribeElasticityAssurancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Platform string `position:"Query" name:"Platform"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]DescribeElasticityAssurancesTag `position:"Query" name:"Tag" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PrivatePoolOptionsIds string `position:"Query" name:"PrivatePoolOptions.Ids"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - ZoneId string `position:"Query" name:"ZoneId"` - PackageType string `position:"Query" name:"PackageType"` - Status string `position:"Query" name:"Status"` -} - -// DescribeElasticityAssurancesTag is a repeated param struct in DescribeElasticityAssurancesRequest -type DescribeElasticityAssurancesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeElasticityAssurancesResponse is the response struct for api DescribeElasticityAssurances -type DescribeElasticityAssurancesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - ElasticityAssuranceSet ElasticityAssuranceSet `json:"ElasticityAssuranceSet" xml:"ElasticityAssuranceSet"` -} - -// CreateDescribeElasticityAssurancesRequest creates a request to invoke DescribeElasticityAssurances API -func CreateDescribeElasticityAssurancesRequest() (request *DescribeElasticityAssurancesRequest) { - request = &DescribeElasticityAssurancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeElasticityAssurances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeElasticityAssurancesResponse creates a response to parse from DescribeElasticityAssurances response -func CreateDescribeElasticityAssurancesResponse() (response *DescribeElasticityAssurancesResponse) { - response = &DescribeElasticityAssurancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go deleted file mode 100644 index d909b803da..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeEniMonitorData invokes the ecs.DescribeEniMonitorData API synchronously -func (client *Client) DescribeEniMonitorData(request *DescribeEniMonitorDataRequest) (response *DescribeEniMonitorDataResponse, err error) { - response = CreateDescribeEniMonitorDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeEniMonitorDataWithChan invokes the ecs.DescribeEniMonitorData API asynchronously -func (client *Client) DescribeEniMonitorDataWithChan(request *DescribeEniMonitorDataRequest) (<-chan *DescribeEniMonitorDataResponse, <-chan error) { - responseChan := make(chan *DescribeEniMonitorDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeEniMonitorData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeEniMonitorDataWithCallback invokes the ecs.DescribeEniMonitorData API asynchronously -func (client *Client) DescribeEniMonitorDataWithCallback(request *DescribeEniMonitorDataRequest, callback func(response *DescribeEniMonitorDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeEniMonitorDataResponse - var err error - defer close(result) - response, err = client.DescribeEniMonitorData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeEniMonitorDataRequest is the request struct for api DescribeEniMonitorData -type DescribeEniMonitorDataRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StartTime string `position:"Query" name:"StartTime"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - EniId string `position:"Query" name:"EniId"` -} - -// DescribeEniMonitorDataResponse is the response struct for api DescribeEniMonitorData -type DescribeEniMonitorDataResponse struct { - *responses.BaseResponse - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorData MonitorDataInDescribeEniMonitorData `json:"MonitorData" xml:"MonitorData"` -} - -// CreateDescribeEniMonitorDataRequest creates a request to invoke DescribeEniMonitorData API -func CreateDescribeEniMonitorDataRequest() (request *DescribeEniMonitorDataRequest) { - request = &DescribeEniMonitorDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEniMonitorData", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeEniMonitorDataResponse creates a response to parse from DescribeEniMonitorData response -func CreateDescribeEniMonitorDataResponse() (response *DescribeEniMonitorDataResponse) { - response = &DescribeEniMonitorDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go deleted file mode 100644 index a1f41e4bdb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeForwardTableEntries invokes the ecs.DescribeForwardTableEntries API synchronously -func (client *Client) DescribeForwardTableEntries(request *DescribeForwardTableEntriesRequest) (response *DescribeForwardTableEntriesResponse, err error) { - response = CreateDescribeForwardTableEntriesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeForwardTableEntriesWithChan invokes the ecs.DescribeForwardTableEntries API asynchronously -func (client *Client) DescribeForwardTableEntriesWithChan(request *DescribeForwardTableEntriesRequest) (<-chan *DescribeForwardTableEntriesResponse, <-chan error) { - responseChan := make(chan *DescribeForwardTableEntriesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeForwardTableEntries(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeForwardTableEntriesWithCallback invokes the ecs.DescribeForwardTableEntries API asynchronously -func (client *Client) DescribeForwardTableEntriesWithCallback(request *DescribeForwardTableEntriesRequest, callback func(response *DescribeForwardTableEntriesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeForwardTableEntriesResponse - var err error - defer close(result) - response, err = client.DescribeForwardTableEntries(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeForwardTableEntriesRequest is the request struct for api DescribeForwardTableEntries -type DescribeForwardTableEntriesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ForwardTableId string `position:"Query" name:"ForwardTableId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ForwardEntryId string `position:"Query" name:"ForwardEntryId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeForwardTableEntriesResponse is the response struct for api DescribeForwardTableEntries -type DescribeForwardTableEntriesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - ForwardTableEntries ForwardTableEntries `json:"ForwardTableEntries" xml:"ForwardTableEntries"` -} - -// CreateDescribeForwardTableEntriesRequest creates a request to invoke DescribeForwardTableEntries API -func CreateDescribeForwardTableEntriesRequest() (request *DescribeForwardTableEntriesRequest) { - request = &DescribeForwardTableEntriesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeForwardTableEntries", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeForwardTableEntriesResponse creates a response to parse from DescribeForwardTableEntries response -func CreateDescribeForwardTableEntriesResponse() (response *DescribeForwardTableEntriesResponse) { - response = &DescribeForwardTableEntriesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go deleted file mode 100644 index 960e0a02a0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeHaVips invokes the ecs.DescribeHaVips API synchronously -func (client *Client) DescribeHaVips(request *DescribeHaVipsRequest) (response *DescribeHaVipsResponse, err error) { - response = CreateDescribeHaVipsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeHaVipsWithChan invokes the ecs.DescribeHaVips API asynchronously -func (client *Client) DescribeHaVipsWithChan(request *DescribeHaVipsRequest) (<-chan *DescribeHaVipsResponse, <-chan error) { - responseChan := make(chan *DescribeHaVipsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeHaVips(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeHaVipsWithCallback invokes the ecs.DescribeHaVips API asynchronously -func (client *Client) DescribeHaVipsWithCallback(request *DescribeHaVipsRequest, callback func(response *DescribeHaVipsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeHaVipsResponse - var err error - defer close(result) - response, err = client.DescribeHaVips(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeHaVipsRequest is the request struct for api DescribeHaVips -type DescribeHaVipsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribeHaVipsFilter `position:"Query" name:"Filter" type:"Repeated"` -} - -// DescribeHaVipsFilter is a repeated param struct in DescribeHaVipsRequest -type DescribeHaVipsFilter struct { - Value *[]string `name:"Value" type:"Repeated"` - Key string `name:"Key"` -} - -// DescribeHaVipsResponse is the response struct for api DescribeHaVips -type DescribeHaVipsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - HaVips HaVips `json:"HaVips" xml:"HaVips"` -} - -// CreateDescribeHaVipsRequest creates a request to invoke DescribeHaVips API -func CreateDescribeHaVipsRequest() (request *DescribeHaVipsRequest) { - request = &DescribeHaVipsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeHaVips", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeHaVipsResponse creates a response to parse from DescribeHaVips response -func CreateDescribeHaVipsResponse() (response *DescribeHaVipsResponse) { - response = &DescribeHaVipsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go deleted file mode 100644 index 7f4de19163..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeHpcClusters invokes the ecs.DescribeHpcClusters API synchronously -func (client *Client) DescribeHpcClusters(request *DescribeHpcClustersRequest) (response *DescribeHpcClustersResponse, err error) { - response = CreateDescribeHpcClustersResponse() - err = client.DoAction(request, response) - return -} - -// DescribeHpcClustersWithChan invokes the ecs.DescribeHpcClusters API asynchronously -func (client *Client) DescribeHpcClustersWithChan(request *DescribeHpcClustersRequest) (<-chan *DescribeHpcClustersResponse, <-chan error) { - responseChan := make(chan *DescribeHpcClustersResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeHpcClusters(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeHpcClustersWithCallback invokes the ecs.DescribeHpcClusters API asynchronously -func (client *Client) DescribeHpcClustersWithCallback(request *DescribeHpcClustersRequest, callback func(response *DescribeHpcClustersResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeHpcClustersResponse - var err error - defer close(result) - response, err = client.DescribeHpcClusters(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeHpcClustersRequest is the request struct for api DescribeHpcClusters -type DescribeHpcClustersRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - HpcClusterIds string `position:"Query" name:"HpcClusterIds"` -} - -// DescribeHpcClustersResponse is the response struct for api DescribeHpcClusters -type DescribeHpcClustersResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - HpcClusters HpcClusters `json:"HpcClusters" xml:"HpcClusters"` -} - -// CreateDescribeHpcClustersRequest creates a request to invoke DescribeHpcClusters API -func CreateDescribeHpcClustersRequest() (request *DescribeHpcClustersRequest) { - request = &DescribeHpcClustersRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeHpcClusters", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeHpcClustersResponse creates a response to parse from DescribeHpcClusters response -func CreateDescribeHpcClustersResponse() (response *DescribeHpcClustersResponse) { - response = &DescribeHpcClustersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_components.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_components.go deleted file mode 100644 index 0cd624ef0a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_components.go +++ /dev/null @@ -1,122 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeImageComponents invokes the ecs.DescribeImageComponents API synchronously -func (client *Client) DescribeImageComponents(request *DescribeImageComponentsRequest) (response *DescribeImageComponentsResponse, err error) { - response = CreateDescribeImageComponentsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeImageComponentsWithChan invokes the ecs.DescribeImageComponents API asynchronously -func (client *Client) DescribeImageComponentsWithChan(request *DescribeImageComponentsRequest) (<-chan *DescribeImageComponentsResponse, <-chan error) { - responseChan := make(chan *DescribeImageComponentsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeImageComponents(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeImageComponentsWithCallback invokes the ecs.DescribeImageComponents API asynchronously -func (client *Client) DescribeImageComponentsWithCallback(request *DescribeImageComponentsRequest, callback func(response *DescribeImageComponentsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeImageComponentsResponse - var err error - defer close(result) - response, err = client.DescribeImageComponents(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeImageComponentsRequest is the request struct for api DescribeImageComponents -type DescribeImageComponentsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SystemType string `position:"Query" name:"SystemType"` - ComponentVersion string `position:"Query" name:"ComponentVersion"` - ImageComponentId *[]string `position:"Query" name:"ImageComponentId" type:"Repeated"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]DescribeImageComponentsTag `position:"Query" name:"Tag" type:"Repeated"` - Owner string `position:"Query" name:"Owner"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ComponentType string `position:"Query" name:"ComponentType"` - Name string `position:"Query" name:"Name"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeImageComponentsTag is a repeated param struct in DescribeImageComponentsRequest -type DescribeImageComponentsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeImageComponentsResponse is the response struct for api DescribeImageComponents -type DescribeImageComponentsResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - ImageComponent ImageComponent `json:"ImageComponent" xml:"ImageComponent"` -} - -// CreateDescribeImageComponentsRequest creates a request to invoke DescribeImageComponents API -func CreateDescribeImageComponentsRequest() (request *DescribeImageComponentsRequest) { - request = &DescribeImageComponentsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageComponents", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeImageComponentsResponse creates a response to parse from DescribeImageComponents response -func CreateDescribeImageComponentsResponse() (response *DescribeImageComponentsResponse) { - response = &DescribeImageComponentsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_from_family.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_from_family.go deleted file mode 100644 index 85cfe891fc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_from_family.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeImageFromFamily invokes the ecs.DescribeImageFromFamily API synchronously -func (client *Client) DescribeImageFromFamily(request *DescribeImageFromFamilyRequest) (response *DescribeImageFromFamilyResponse, err error) { - response = CreateDescribeImageFromFamilyResponse() - err = client.DoAction(request, response) - return -} - -// DescribeImageFromFamilyWithChan invokes the ecs.DescribeImageFromFamily API asynchronously -func (client *Client) DescribeImageFromFamilyWithChan(request *DescribeImageFromFamilyRequest) (<-chan *DescribeImageFromFamilyResponse, <-chan error) { - responseChan := make(chan *DescribeImageFromFamilyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeImageFromFamily(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeImageFromFamilyWithCallback invokes the ecs.DescribeImageFromFamily API asynchronously -func (client *Client) DescribeImageFromFamilyWithCallback(request *DescribeImageFromFamilyRequest, callback func(response *DescribeImageFromFamilyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeImageFromFamilyResponse - var err error - defer close(result) - response, err = client.DescribeImageFromFamily(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeImageFromFamilyRequest is the request struct for api DescribeImageFromFamily -type DescribeImageFromFamilyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ImageFamily string `position:"Query" name:"ImageFamily"` -} - -// DescribeImageFromFamilyResponse is the response struct for api DescribeImageFromFamily -type DescribeImageFromFamilyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Image Image `json:"Image" xml:"Image"` -} - -// CreateDescribeImageFromFamilyRequest creates a request to invoke DescribeImageFromFamily API -func CreateDescribeImageFromFamilyRequest() (request *DescribeImageFromFamilyRequest) { - request = &DescribeImageFromFamilyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageFromFamily", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeImageFromFamilyResponse creates a response to parse from DescribeImageFromFamily response -func CreateDescribeImageFromFamilyResponse() (response *DescribeImageFromFamilyResponse) { - response = &DescribeImageFromFamilyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipeline_executions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipeline_executions.go deleted file mode 100644 index f29b7ba635..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipeline_executions.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeImagePipelineExecutions invokes the ecs.DescribeImagePipelineExecutions API synchronously -func (client *Client) DescribeImagePipelineExecutions(request *DescribeImagePipelineExecutionsRequest) (response *DescribeImagePipelineExecutionsResponse, err error) { - response = CreateDescribeImagePipelineExecutionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeImagePipelineExecutionsWithChan invokes the ecs.DescribeImagePipelineExecutions API asynchronously -func (client *Client) DescribeImagePipelineExecutionsWithChan(request *DescribeImagePipelineExecutionsRequest) (<-chan *DescribeImagePipelineExecutionsResponse, <-chan error) { - responseChan := make(chan *DescribeImagePipelineExecutionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeImagePipelineExecutions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeImagePipelineExecutionsWithCallback invokes the ecs.DescribeImagePipelineExecutions API asynchronously -func (client *Client) DescribeImagePipelineExecutionsWithCallback(request *DescribeImagePipelineExecutionsRequest, callback func(response *DescribeImagePipelineExecutionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeImagePipelineExecutionsResponse - var err error - defer close(result) - response, err = client.DescribeImagePipelineExecutions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeImagePipelineExecutionsRequest is the request struct for api DescribeImagePipelineExecutions -type DescribeImagePipelineExecutionsRequest struct { - *requests.RpcRequest - ImagePipelineId string `position:"Query" name:"ImagePipelineId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ExecutionId string `position:"Query" name:"ExecutionId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]DescribeImagePipelineExecutionsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Status string `position:"Query" name:"Status"` -} - -// DescribeImagePipelineExecutionsTag is a repeated param struct in DescribeImagePipelineExecutionsRequest -type DescribeImagePipelineExecutionsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeImagePipelineExecutionsResponse is the response struct for api DescribeImagePipelineExecutions -type DescribeImagePipelineExecutionsResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - ImagePipelineExecution ImagePipelineExecution `json:"ImagePipelineExecution" xml:"ImagePipelineExecution"` -} - -// CreateDescribeImagePipelineExecutionsRequest creates a request to invoke DescribeImagePipelineExecutions API -func CreateDescribeImagePipelineExecutionsRequest() (request *DescribeImagePipelineExecutionsRequest) { - request = &DescribeImagePipelineExecutionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImagePipelineExecutions", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeImagePipelineExecutionsResponse creates a response to parse from DescribeImagePipelineExecutions response -func CreateDescribeImagePipelineExecutionsResponse() (response *DescribeImagePipelineExecutionsResponse) { - response = &DescribeImagePipelineExecutionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipelines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipelines.go deleted file mode 100644 index a3f6371886..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipelines.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeImagePipelines invokes the ecs.DescribeImagePipelines API synchronously -func (client *Client) DescribeImagePipelines(request *DescribeImagePipelinesRequest) (response *DescribeImagePipelinesResponse, err error) { - response = CreateDescribeImagePipelinesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeImagePipelinesWithChan invokes the ecs.DescribeImagePipelines API asynchronously -func (client *Client) DescribeImagePipelinesWithChan(request *DescribeImagePipelinesRequest) (<-chan *DescribeImagePipelinesResponse, <-chan error) { - responseChan := make(chan *DescribeImagePipelinesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeImagePipelines(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeImagePipelinesWithCallback invokes the ecs.DescribeImagePipelines API asynchronously -func (client *Client) DescribeImagePipelinesWithCallback(request *DescribeImagePipelinesRequest, callback func(response *DescribeImagePipelinesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeImagePipelinesResponse - var err error - defer close(result) - response, err = client.DescribeImagePipelines(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeImagePipelinesRequest is the request struct for api DescribeImagePipelines -type DescribeImagePipelinesRequest struct { - *requests.RpcRequest - ImagePipelineId *[]string `position:"Query" name:"ImagePipelineId" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]DescribeImagePipelinesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeImagePipelinesTag is a repeated param struct in DescribeImagePipelinesRequest -type DescribeImagePipelinesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeImagePipelinesResponse is the response struct for api DescribeImagePipelines -type DescribeImagePipelinesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` - ImagePipeline ImagePipeline `json:"ImagePipeline" xml:"ImagePipeline"` -} - -// CreateDescribeImagePipelinesRequest creates a request to invoke DescribeImagePipelines API -func CreateDescribeImagePipelinesRequest() (request *DescribeImagePipelinesRequest) { - request = &DescribeImagePipelinesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImagePipelines", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeImagePipelinesResponse creates a response to parse from DescribeImagePipelines response -func CreateDescribeImagePipelinesResponse() (response *DescribeImagePipelinesResponse) { - response = &DescribeImagePipelinesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go deleted file mode 100644 index fd26de113b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeImageSharePermission invokes the ecs.DescribeImageSharePermission API synchronously -func (client *Client) DescribeImageSharePermission(request *DescribeImageSharePermissionRequest) (response *DescribeImageSharePermissionResponse, err error) { - response = CreateDescribeImageSharePermissionResponse() - err = client.DoAction(request, response) - return -} - -// DescribeImageSharePermissionWithChan invokes the ecs.DescribeImageSharePermission API asynchronously -func (client *Client) DescribeImageSharePermissionWithChan(request *DescribeImageSharePermissionRequest) (<-chan *DescribeImageSharePermissionResponse, <-chan error) { - responseChan := make(chan *DescribeImageSharePermissionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeImageSharePermission(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeImageSharePermissionWithCallback invokes the ecs.DescribeImageSharePermission API asynchronously -func (client *Client) DescribeImageSharePermissionWithCallback(request *DescribeImageSharePermissionRequest, callback func(response *DescribeImageSharePermissionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeImageSharePermissionResponse - var err error - defer close(result) - response, err = client.DescribeImageSharePermission(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeImageSharePermissionRequest is the request struct for api DescribeImageSharePermission -type DescribeImageSharePermissionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeImageSharePermissionResponse is the response struct for api DescribeImageSharePermission -type DescribeImageSharePermissionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - ImageId string `json:"ImageId" xml:"ImageId"` - RegionId string `json:"RegionId" xml:"RegionId"` - ShareGroups ShareGroups `json:"ShareGroups" xml:"ShareGroups"` - Accounts Accounts `json:"Accounts" xml:"Accounts"` -} - -// CreateDescribeImageSharePermissionRequest creates a request to invoke DescribeImageSharePermission API -func CreateDescribeImageSharePermissionRequest() (request *DescribeImageSharePermissionRequest) { - request = &DescribeImageSharePermissionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageSharePermission", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeImageSharePermissionResponse creates a response to parse from DescribeImageSharePermission response -func CreateDescribeImageSharePermissionResponse() (response *DescribeImageSharePermissionResponse) { - response = &DescribeImageSharePermissionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go deleted file mode 100644 index 1bb4cf1b64..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeImageSupportInstanceTypes invokes the ecs.DescribeImageSupportInstanceTypes API synchronously -func (client *Client) DescribeImageSupportInstanceTypes(request *DescribeImageSupportInstanceTypesRequest) (response *DescribeImageSupportInstanceTypesResponse, err error) { - response = CreateDescribeImageSupportInstanceTypesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeImageSupportInstanceTypesWithChan invokes the ecs.DescribeImageSupportInstanceTypes API asynchronously -func (client *Client) DescribeImageSupportInstanceTypesWithChan(request *DescribeImageSupportInstanceTypesRequest) (<-chan *DescribeImageSupportInstanceTypesResponse, <-chan error) { - responseChan := make(chan *DescribeImageSupportInstanceTypesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeImageSupportInstanceTypes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeImageSupportInstanceTypesWithCallback invokes the ecs.DescribeImageSupportInstanceTypes API asynchronously -func (client *Client) DescribeImageSupportInstanceTypesWithCallback(request *DescribeImageSupportInstanceTypesRequest, callback func(response *DescribeImageSupportInstanceTypesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeImageSupportInstanceTypesResponse - var err error - defer close(result) - response, err = client.DescribeImageSupportInstanceTypes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeImageSupportInstanceTypesRequest is the request struct for api DescribeImageSupportInstanceTypes -type DescribeImageSupportInstanceTypesRequest struct { - *requests.RpcRequest - ActionType string `position:"Query" name:"ActionType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribeImageSupportInstanceTypesFilter `position:"Query" name:"Filter" type:"Repeated"` -} - -// DescribeImageSupportInstanceTypesFilter is a repeated param struct in DescribeImageSupportInstanceTypesRequest -type DescribeImageSupportInstanceTypesFilter struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeImageSupportInstanceTypesResponse is the response struct for api DescribeImageSupportInstanceTypes -type DescribeImageSupportInstanceTypesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ImageId string `json:"ImageId" xml:"ImageId"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceTypes InstanceTypesInDescribeImageSupportInstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` -} - -// CreateDescribeImageSupportInstanceTypesRequest creates a request to invoke DescribeImageSupportInstanceTypes API -func CreateDescribeImageSupportInstanceTypesRequest() (request *DescribeImageSupportInstanceTypesRequest) { - request = &DescribeImageSupportInstanceTypesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageSupportInstanceTypes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeImageSupportInstanceTypesResponse creates a response to parse from DescribeImageSupportInstanceTypes response -func CreateDescribeImageSupportInstanceTypesResponse() (response *DescribeImageSupportInstanceTypesResponse) { - response = &DescribeImageSupportInstanceTypesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go deleted file mode 100644 index 51c966d4c3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go +++ /dev/null @@ -1,141 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeImages invokes the ecs.DescribeImages API synchronously -func (client *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { - response = CreateDescribeImagesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeImagesWithChan invokes the ecs.DescribeImages API asynchronously -func (client *Client) DescribeImagesWithChan(request *DescribeImagesRequest) (<-chan *DescribeImagesResponse, <-chan error) { - responseChan := make(chan *DescribeImagesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeImages(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeImagesWithCallback invokes the ecs.DescribeImages API asynchronously -func (client *Client) DescribeImagesWithCallback(request *DescribeImagesRequest, callback func(response *DescribeImagesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeImagesResponse - var err error - defer close(result) - response, err = client.DescribeImages(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeImagesRequest is the request struct for api DescribeImages -type DescribeImagesRequest struct { - *requests.RpcRequest - ActionType string `position:"Query" name:"ActionType"` - ImageOwnerId requests.Integer `position:"Query" name:"ImageOwnerId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - Usage string `position:"Query" name:"Usage"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - IsSupportIoOptimized requests.Boolean `position:"Query" name:"IsSupportIoOptimized"` - ImageName string `position:"Query" name:"ImageName"` - IsSupportCloudinit requests.Boolean `position:"Query" name:"IsSupportCloudinit"` - IsPublic requests.Boolean `position:"Query" name:"IsPublic"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]DescribeImagesTag `position:"Query" name:"Tag" type:"Repeated"` - Architecture string `position:"Query" name:"Architecture"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ShowExpired requests.Boolean `position:"Query" name:"ShowExpired"` - OSType string `position:"Query" name:"OSType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribeImagesFilter `position:"Query" name:"Filter" type:"Repeated"` - ImageFamily string `position:"Query" name:"ImageFamily"` - Status string `position:"Query" name:"Status"` -} - -// DescribeImagesTag is a repeated param struct in DescribeImagesRequest -type DescribeImagesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeImagesFilter is a repeated param struct in DescribeImagesRequest -type DescribeImagesFilter struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeImagesResponse is the response struct for api DescribeImages -type DescribeImagesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - Images Images `json:"Images" xml:"Images"` -} - -// CreateDescribeImagesRequest creates a request to invoke DescribeImages API -func CreateDescribeImagesRequest() (request *DescribeImagesRequest) { - request = &DescribeImagesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImages", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeImagesResponse creates a response to parse from DescribeImages response -func CreateDescribeImagesResponse() (response *DescribeImagesResponse) { - response = &DescribeImagesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attachment_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attachment_attributes.go deleted file mode 100644 index c85df9bb81..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attachment_attributes.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceAttachmentAttributes invokes the ecs.DescribeInstanceAttachmentAttributes API synchronously -func (client *Client) DescribeInstanceAttachmentAttributes(request *DescribeInstanceAttachmentAttributesRequest) (response *DescribeInstanceAttachmentAttributesResponse, err error) { - response = CreateDescribeInstanceAttachmentAttributesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceAttachmentAttributesWithChan invokes the ecs.DescribeInstanceAttachmentAttributes API asynchronously -func (client *Client) DescribeInstanceAttachmentAttributesWithChan(request *DescribeInstanceAttachmentAttributesRequest) (<-chan *DescribeInstanceAttachmentAttributesResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceAttachmentAttributesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceAttachmentAttributes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceAttachmentAttributesWithCallback invokes the ecs.DescribeInstanceAttachmentAttributes API asynchronously -func (client *Client) DescribeInstanceAttachmentAttributesWithCallback(request *DescribeInstanceAttachmentAttributesRequest, callback func(response *DescribeInstanceAttachmentAttributesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceAttachmentAttributesResponse - var err error - defer close(result) - response, err = client.DescribeInstanceAttachmentAttributes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceAttachmentAttributesRequest is the request struct for api DescribeInstanceAttachmentAttributes -type DescribeInstanceAttachmentAttributesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// DescribeInstanceAttachmentAttributesResponse is the response struct for api DescribeInstanceAttachmentAttributes -type DescribeInstanceAttachmentAttributesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Instances InstancesInDescribeInstanceAttachmentAttributes `json:"Instances" xml:"Instances"` -} - -// CreateDescribeInstanceAttachmentAttributesRequest creates a request to invoke DescribeInstanceAttachmentAttributes API -func CreateDescribeInstanceAttachmentAttributesRequest() (request *DescribeInstanceAttachmentAttributesRequest) { - request = &DescribeInstanceAttachmentAttributesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAttachmentAttributes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceAttachmentAttributesResponse creates a response to parse from DescribeInstanceAttachmentAttributes response -func CreateDescribeInstanceAttachmentAttributesResponse() (response *DescribeInstanceAttachmentAttributesResponse) { - response = &DescribeInstanceAttachmentAttributesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go deleted file mode 100644 index 578d94f39c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go +++ /dev/null @@ -1,135 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceAttribute invokes the ecs.DescribeInstanceAttribute API synchronously -func (client *Client) DescribeInstanceAttribute(request *DescribeInstanceAttributeRequest) (response *DescribeInstanceAttributeResponse, err error) { - response = CreateDescribeInstanceAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceAttributeWithChan invokes the ecs.DescribeInstanceAttribute API asynchronously -func (client *Client) DescribeInstanceAttributeWithChan(request *DescribeInstanceAttributeRequest) (<-chan *DescribeInstanceAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceAttributeWithCallback invokes the ecs.DescribeInstanceAttribute API asynchronously -func (client *Client) DescribeInstanceAttributeWithCallback(request *DescribeInstanceAttributeRequest, callback func(response *DescribeInstanceAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceAttributeResponse - var err error - defer close(result) - response, err = client.DescribeInstanceAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceAttributeRequest is the request struct for api DescribeInstanceAttribute -type DescribeInstanceAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DescribeInstanceAttributeResponse is the response struct for api DescribeInstanceAttribute -type DescribeInstanceAttributeResponse struct { - *responses.BaseResponse - Status string `json:"Status" xml:"Status"` - SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - RequestId string `json:"RequestId" xml:"RequestId"` - Description string `json:"Description" xml:"Description"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` - Memory int `json:"Memory" xml:"Memory"` - ImageId string `json:"ImageId" xml:"ImageId"` - ClusterId string `json:"ClusterId" xml:"ClusterId"` - VlanId string `json:"VlanId" xml:"VlanId"` - StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` - HostName string `json:"HostName" xml:"HostName"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` - InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` - Cpu int `json:"Cpu" xml:"Cpu"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - CreditSpecification string `json:"CreditSpecification" xml:"CreditSpecification"` - EnableJumboFrame bool `json:"EnableJumboFrame" xml:"EnableJumboFrame"` - SecurityGroupIds SecurityGroupIdsInDescribeInstanceAttribute `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - PublicIpAddress PublicIpAddressInDescribeInstanceAttribute `json:"PublicIpAddress" xml:"PublicIpAddress"` - InnerIpAddress InnerIpAddressInDescribeInstanceAttribute `json:"InnerIpAddress" xml:"InnerIpAddress"` - VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"` - EipAddress EipAddressInDescribeInstanceAttribute `json:"EipAddress" xml:"EipAddress"` - DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` - OperationLocks OperationLocksInDescribeInstanceAttribute `json:"OperationLocks" xml:"OperationLocks"` -} - -// CreateDescribeInstanceAttributeRequest creates a request to invoke DescribeInstanceAttribute API -func CreateDescribeInstanceAttributeRequest() (request *DescribeInstanceAttributeRequest) { - request = &DescribeInstanceAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceAttributeResponse creates a response to parse from DescribeInstanceAttribute response -func CreateDescribeInstanceAttributeResponse() (response *DescribeInstanceAttributeResponse) { - response = &DescribeInstanceAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go deleted file mode 100644 index 33c639c7e7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceAutoRenewAttribute invokes the ecs.DescribeInstanceAutoRenewAttribute API synchronously -func (client *Client) DescribeInstanceAutoRenewAttribute(request *DescribeInstanceAutoRenewAttributeRequest) (response *DescribeInstanceAutoRenewAttributeResponse, err error) { - response = CreateDescribeInstanceAutoRenewAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceAutoRenewAttributeWithChan invokes the ecs.DescribeInstanceAutoRenewAttribute API asynchronously -func (client *Client) DescribeInstanceAutoRenewAttributeWithChan(request *DescribeInstanceAutoRenewAttributeRequest) (<-chan *DescribeInstanceAutoRenewAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceAutoRenewAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceAutoRenewAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceAutoRenewAttributeWithCallback invokes the ecs.DescribeInstanceAutoRenewAttribute API asynchronously -func (client *Client) DescribeInstanceAutoRenewAttributeWithCallback(request *DescribeInstanceAutoRenewAttributeRequest, callback func(response *DescribeInstanceAutoRenewAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceAutoRenewAttributeResponse - var err error - defer close(result) - response, err = client.DescribeInstanceAutoRenewAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceAutoRenewAttributeRequest is the request struct for api DescribeInstanceAutoRenewAttribute -type DescribeInstanceAutoRenewAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber string `position:"Query" name:"PageNumber"` - RenewalStatus string `position:"Query" name:"RenewalStatus"` - PageSize string `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DescribeInstanceAutoRenewAttributeResponse is the response struct for api DescribeInstanceAutoRenewAttribute -type DescribeInstanceAutoRenewAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - InstanceRenewAttributes InstanceRenewAttributes `json:"InstanceRenewAttributes" xml:"InstanceRenewAttributes"` -} - -// CreateDescribeInstanceAutoRenewAttributeRequest creates a request to invoke DescribeInstanceAutoRenewAttribute API -func CreateDescribeInstanceAutoRenewAttributeRequest() (request *DescribeInstanceAutoRenewAttributeRequest) { - request = &DescribeInstanceAutoRenewAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceAutoRenewAttributeResponse creates a response to parse from DescribeInstanceAutoRenewAttribute response -func CreateDescribeInstanceAutoRenewAttributeResponse() (response *DescribeInstanceAutoRenewAttributeResponse) { - response = &DescribeInstanceAutoRenewAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go deleted file mode 100644 index 8e89a5fe2a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go +++ /dev/null @@ -1,132 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceHistoryEvents invokes the ecs.DescribeInstanceHistoryEvents API synchronously -func (client *Client) DescribeInstanceHistoryEvents(request *DescribeInstanceHistoryEventsRequest) (response *DescribeInstanceHistoryEventsResponse, err error) { - response = CreateDescribeInstanceHistoryEventsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceHistoryEventsWithChan invokes the ecs.DescribeInstanceHistoryEvents API asynchronously -func (client *Client) DescribeInstanceHistoryEventsWithChan(request *DescribeInstanceHistoryEventsRequest) (<-chan *DescribeInstanceHistoryEventsResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceHistoryEventsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceHistoryEvents(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceHistoryEventsWithCallback invokes the ecs.DescribeInstanceHistoryEvents API asynchronously -func (client *Client) DescribeInstanceHistoryEventsWithCallback(request *DescribeInstanceHistoryEventsRequest, callback func(response *DescribeInstanceHistoryEventsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceHistoryEventsResponse - var err error - defer close(result) - response, err = client.DescribeInstanceHistoryEvents(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceHistoryEventsRequest is the request struct for api DescribeInstanceHistoryEvents -type DescribeInstanceHistoryEventsRequest struct { - *requests.RpcRequest - EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - EventCycleStatus string `position:"Query" name:"EventCycleStatus"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ImpactLevel string `position:"Query" name:"ImpactLevel"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InstanceEventCycleStatus *[]string `position:"Query" name:"InstanceEventCycleStatus" type:"Repeated"` - Tag *[]DescribeInstanceHistoryEventsTag `position:"Query" name:"Tag" type:"Repeated"` - EventPublishTimeEnd string `position:"Query" name:"EventPublishTime.End"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - InstanceEventType *[]string `position:"Query" name:"InstanceEventType" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - NotBeforeStart string `position:"Query" name:"NotBefore.Start"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - EventPublishTimeStart string `position:"Query" name:"EventPublishTime.Start"` - InstanceId string `position:"Query" name:"InstanceId"` - NotBeforeEnd string `position:"Query" name:"NotBefore.End"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - EventType string `position:"Query" name:"EventType"` -} - -// DescribeInstanceHistoryEventsTag is a repeated param struct in DescribeInstanceHistoryEventsRequest -type DescribeInstanceHistoryEventsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeInstanceHistoryEventsResponse is the response struct for api DescribeInstanceHistoryEvents -type DescribeInstanceHistoryEventsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - InstanceSystemEventSet InstanceSystemEventSet `json:"InstanceSystemEventSet" xml:"InstanceSystemEventSet"` -} - -// CreateDescribeInstanceHistoryEventsRequest creates a request to invoke DescribeInstanceHistoryEvents API -func CreateDescribeInstanceHistoryEventsRequest() (request *DescribeInstanceHistoryEventsRequest) { - request = &DescribeInstanceHistoryEventsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceHistoryEvents", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceHistoryEventsResponse creates a response to parse from DescribeInstanceHistoryEvents response -func CreateDescribeInstanceHistoryEventsResponse() (response *DescribeInstanceHistoryEventsResponse) { - response = &DescribeInstanceHistoryEventsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_maintenance_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_maintenance_attributes.go deleted file mode 100644 index 956f7e6507..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_maintenance_attributes.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceMaintenanceAttributes invokes the ecs.DescribeInstanceMaintenanceAttributes API synchronously -func (client *Client) DescribeInstanceMaintenanceAttributes(request *DescribeInstanceMaintenanceAttributesRequest) (response *DescribeInstanceMaintenanceAttributesResponse, err error) { - response = CreateDescribeInstanceMaintenanceAttributesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceMaintenanceAttributesWithChan invokes the ecs.DescribeInstanceMaintenanceAttributes API asynchronously -func (client *Client) DescribeInstanceMaintenanceAttributesWithChan(request *DescribeInstanceMaintenanceAttributesRequest) (<-chan *DescribeInstanceMaintenanceAttributesResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceMaintenanceAttributesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceMaintenanceAttributes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceMaintenanceAttributesWithCallback invokes the ecs.DescribeInstanceMaintenanceAttributes API asynchronously -func (client *Client) DescribeInstanceMaintenanceAttributesWithCallback(request *DescribeInstanceMaintenanceAttributesRequest, callback func(response *DescribeInstanceMaintenanceAttributesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceMaintenanceAttributesResponse - var err error - defer close(result) - response, err = client.DescribeInstanceMaintenanceAttributes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceMaintenanceAttributesRequest is the request struct for api DescribeInstanceMaintenanceAttributes -type DescribeInstanceMaintenanceAttributesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` -} - -// DescribeInstanceMaintenanceAttributesResponse is the response struct for api DescribeInstanceMaintenanceAttributes -type DescribeInstanceMaintenanceAttributesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - MaintenanceAttributes MaintenanceAttributes `json:"MaintenanceAttributes" xml:"MaintenanceAttributes"` -} - -// CreateDescribeInstanceMaintenanceAttributesRequest creates a request to invoke DescribeInstanceMaintenanceAttributes API -func CreateDescribeInstanceMaintenanceAttributesRequest() (request *DescribeInstanceMaintenanceAttributesRequest) { - request = &DescribeInstanceMaintenanceAttributesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceMaintenanceAttributes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceMaintenanceAttributesResponse creates a response to parse from DescribeInstanceMaintenanceAttributes response -func CreateDescribeInstanceMaintenanceAttributesResponse() (response *DescribeInstanceMaintenanceAttributesResponse) { - response = &DescribeInstanceMaintenanceAttributesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_modification_price.go deleted file mode 100644 index 8c0702508e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_modification_price.go +++ /dev/null @@ -1,120 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceModificationPrice invokes the ecs.DescribeInstanceModificationPrice API synchronously -func (client *Client) DescribeInstanceModificationPrice(request *DescribeInstanceModificationPriceRequest) (response *DescribeInstanceModificationPriceResponse, err error) { - response = CreateDescribeInstanceModificationPriceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceModificationPriceWithChan invokes the ecs.DescribeInstanceModificationPrice API asynchronously -func (client *Client) DescribeInstanceModificationPriceWithChan(request *DescribeInstanceModificationPriceRequest) (<-chan *DescribeInstanceModificationPriceResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceModificationPriceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceModificationPrice(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceModificationPriceWithCallback invokes the ecs.DescribeInstanceModificationPrice API asynchronously -func (client *Client) DescribeInstanceModificationPriceWithCallback(request *DescribeInstanceModificationPriceRequest, callback func(response *DescribeInstanceModificationPriceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceModificationPriceResponse - var err error - defer close(result) - response, err = client.DescribeInstanceModificationPrice(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceModificationPriceRequest is the request struct for api DescribeInstanceModificationPrice -type DescribeInstanceModificationPriceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - InstanceType string `position:"Query" name:"InstanceType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DataDisk *[]DescribeInstanceModificationPriceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - PromotionOptions DescribeInstanceModificationPricePromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DescribeInstanceModificationPriceDataDisk is a repeated param struct in DescribeInstanceModificationPriceRequest -type DescribeInstanceModificationPriceDataDisk struct { - PerformanceLevel string `name:"PerformanceLevel"` - Size string `name:"Size"` - Category string `name:"Category"` -} - -// DescribeInstanceModificationPricePromotionOptions is a repeated param struct in DescribeInstanceModificationPriceRequest -type DescribeInstanceModificationPricePromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// DescribeInstanceModificationPriceResponse is the response struct for api DescribeInstanceModificationPrice -type DescribeInstanceModificationPriceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` -} - -// CreateDescribeInstanceModificationPriceRequest creates a request to invoke DescribeInstanceModificationPrice API -func CreateDescribeInstanceModificationPriceRequest() (request *DescribeInstanceModificationPriceRequest) { - request = &DescribeInstanceModificationPriceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceModificationPrice", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceModificationPriceResponse creates a response to parse from DescribeInstanceModificationPrice response -func CreateDescribeInstanceModificationPriceResponse() (response *DescribeInstanceModificationPriceResponse) { - response = &DescribeInstanceModificationPriceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go deleted file mode 100644 index cc6c01942e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceMonitorData invokes the ecs.DescribeInstanceMonitorData API synchronously -func (client *Client) DescribeInstanceMonitorData(request *DescribeInstanceMonitorDataRequest) (response *DescribeInstanceMonitorDataResponse, err error) { - response = CreateDescribeInstanceMonitorDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceMonitorDataWithChan invokes the ecs.DescribeInstanceMonitorData API asynchronously -func (client *Client) DescribeInstanceMonitorDataWithChan(request *DescribeInstanceMonitorDataRequest) (<-chan *DescribeInstanceMonitorDataResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceMonitorDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceMonitorData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceMonitorDataWithCallback invokes the ecs.DescribeInstanceMonitorData API asynchronously -func (client *Client) DescribeInstanceMonitorDataWithCallback(request *DescribeInstanceMonitorDataRequest, callback func(response *DescribeInstanceMonitorDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceMonitorDataResponse - var err error - defer close(result) - response, err = client.DescribeInstanceMonitorData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceMonitorDataRequest is the request struct for api DescribeInstanceMonitorData -type DescribeInstanceMonitorDataRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StartTime string `position:"Query" name:"StartTime"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DescribeInstanceMonitorDataResponse is the response struct for api DescribeInstanceMonitorData -type DescribeInstanceMonitorDataResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorData MonitorDataInDescribeInstanceMonitorData `json:"MonitorData" xml:"MonitorData"` -} - -// CreateDescribeInstanceMonitorDataRequest creates a request to invoke DescribeInstanceMonitorData API -func CreateDescribeInstanceMonitorDataRequest() (request *DescribeInstanceMonitorDataRequest) { - request = &DescribeInstanceMonitorDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceMonitorData", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceMonitorDataResponse creates a response to parse from DescribeInstanceMonitorData response -func CreateDescribeInstanceMonitorDataResponse() (response *DescribeInstanceMonitorDataResponse) { - response = &DescribeInstanceMonitorDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go deleted file mode 100644 index 218b0e9f92..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceRamRole invokes the ecs.DescribeInstanceRamRole API synchronously -func (client *Client) DescribeInstanceRamRole(request *DescribeInstanceRamRoleRequest) (response *DescribeInstanceRamRoleResponse, err error) { - response = CreateDescribeInstanceRamRoleResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceRamRoleWithChan invokes the ecs.DescribeInstanceRamRole API asynchronously -func (client *Client) DescribeInstanceRamRoleWithChan(request *DescribeInstanceRamRoleRequest) (<-chan *DescribeInstanceRamRoleResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceRamRoleResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceRamRole(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceRamRoleWithCallback invokes the ecs.DescribeInstanceRamRole API asynchronously -func (client *Client) DescribeInstanceRamRoleWithCallback(request *DescribeInstanceRamRoleRequest, callback func(response *DescribeInstanceRamRoleResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceRamRoleResponse - var err error - defer close(result) - response, err = client.DescribeInstanceRamRole(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceRamRoleRequest is the request struct for api DescribeInstanceRamRole -type DescribeInstanceRamRoleRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RamRoleName string `position:"Query" name:"RamRoleName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// DescribeInstanceRamRoleResponse is the response struct for api DescribeInstanceRamRole -type DescribeInstanceRamRoleResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceRamRoleSets InstanceRamRoleSetsInDescribeInstanceRamRole `json:"InstanceRamRoleSets" xml:"InstanceRamRoleSets"` -} - -// CreateDescribeInstanceRamRoleRequest creates a request to invoke DescribeInstanceRamRole API -func CreateDescribeInstanceRamRoleRequest() (request *DescribeInstanceRamRoleRequest) { - request = &DescribeInstanceRamRoleRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceRamRole", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceRamRoleResponse creates a response to parse from DescribeInstanceRamRole response -func CreateDescribeInstanceRamRoleResponse() (response *DescribeInstanceRamRoleResponse) { - response = &DescribeInstanceRamRoleResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go deleted file mode 100644 index 51a5cda32d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceStatus invokes the ecs.DescribeInstanceStatus API synchronously -func (client *Client) DescribeInstanceStatus(request *DescribeInstanceStatusRequest) (response *DescribeInstanceStatusResponse, err error) { - response = CreateDescribeInstanceStatusResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceStatusWithChan invokes the ecs.DescribeInstanceStatus API asynchronously -func (client *Client) DescribeInstanceStatusWithChan(request *DescribeInstanceStatusRequest) (<-chan *DescribeInstanceStatusResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceStatusWithCallback invokes the ecs.DescribeInstanceStatus API asynchronously -func (client *Client) DescribeInstanceStatusWithCallback(request *DescribeInstanceStatusRequest, callback func(response *DescribeInstanceStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceStatusResponse - var err error - defer close(result) - response, err = client.DescribeInstanceStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceStatusRequest is the request struct for api DescribeInstanceStatus -type DescribeInstanceStatusRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ClusterId string `position:"Query" name:"ClusterId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// DescribeInstanceStatusResponse is the response struct for api DescribeInstanceStatus -type DescribeInstanceStatusResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - InstanceStatuses InstanceStatuses `json:"InstanceStatuses" xml:"InstanceStatuses"` -} - -// CreateDescribeInstanceStatusRequest creates a request to invoke DescribeInstanceStatus API -func CreateDescribeInstanceStatusRequest() (request *DescribeInstanceStatusRequest) { - request = &DescribeInstanceStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceStatus", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceStatusResponse creates a response to parse from DescribeInstanceStatus response -func CreateDescribeInstanceStatusResponse() (response *DescribeInstanceStatusResponse) { - response = &DescribeInstanceStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go deleted file mode 100644 index aa71760ce8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceTopology invokes the ecs.DescribeInstanceTopology API synchronously -func (client *Client) DescribeInstanceTopology(request *DescribeInstanceTopologyRequest) (response *DescribeInstanceTopologyResponse, err error) { - response = CreateDescribeInstanceTopologyResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceTopologyWithChan invokes the ecs.DescribeInstanceTopology API asynchronously -func (client *Client) DescribeInstanceTopologyWithChan(request *DescribeInstanceTopologyRequest) (<-chan *DescribeInstanceTopologyResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceTopologyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceTopology(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceTopologyWithCallback invokes the ecs.DescribeInstanceTopology API asynchronously -func (client *Client) DescribeInstanceTopologyWithCallback(request *DescribeInstanceTopologyRequest, callback func(response *DescribeInstanceTopologyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceTopologyResponse - var err error - defer close(result) - response, err = client.DescribeInstanceTopology(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceTopologyRequest is the request struct for api DescribeInstanceTopology -type DescribeInstanceTopologyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// DescribeInstanceTopologyResponse is the response struct for api DescribeInstanceTopology -type DescribeInstanceTopologyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Topologys Topologys `json:"Topologys" xml:"Topologys"` -} - -// CreateDescribeInstanceTopologyRequest creates a request to invoke DescribeInstanceTopology API -func CreateDescribeInstanceTopologyRequest() (request *DescribeInstanceTopologyRequest) { - request = &DescribeInstanceTopologyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTopology", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceTopologyResponse creates a response to parse from DescribeInstanceTopology response -func CreateDescribeInstanceTopologyResponse() (response *DescribeInstanceTopologyResponse) { - response = &DescribeInstanceTopologyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go deleted file mode 100644 index 65df497516..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceTypeFamilies invokes the ecs.DescribeInstanceTypeFamilies API synchronously -func (client *Client) DescribeInstanceTypeFamilies(request *DescribeInstanceTypeFamiliesRequest) (response *DescribeInstanceTypeFamiliesResponse, err error) { - response = CreateDescribeInstanceTypeFamiliesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceTypeFamiliesWithChan invokes the ecs.DescribeInstanceTypeFamilies API asynchronously -func (client *Client) DescribeInstanceTypeFamiliesWithChan(request *DescribeInstanceTypeFamiliesRequest) (<-chan *DescribeInstanceTypeFamiliesResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceTypeFamiliesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceTypeFamilies(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceTypeFamiliesWithCallback invokes the ecs.DescribeInstanceTypeFamilies API asynchronously -func (client *Client) DescribeInstanceTypeFamiliesWithCallback(request *DescribeInstanceTypeFamiliesRequest, callback func(response *DescribeInstanceTypeFamiliesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceTypeFamiliesResponse - var err error - defer close(result) - response, err = client.DescribeInstanceTypeFamilies(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceTypeFamiliesRequest is the request struct for api DescribeInstanceTypeFamilies -type DescribeInstanceTypeFamiliesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Generation string `position:"Query" name:"Generation"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeInstanceTypeFamiliesResponse is the response struct for api DescribeInstanceTypeFamilies -type DescribeInstanceTypeFamiliesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceTypeFamilies InstanceTypeFamiliesInDescribeInstanceTypeFamilies `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"` -} - -// CreateDescribeInstanceTypeFamiliesRequest creates a request to invoke DescribeInstanceTypeFamilies API -func CreateDescribeInstanceTypeFamiliesRequest() (request *DescribeInstanceTypeFamiliesRequest) { - request = &DescribeInstanceTypeFamiliesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTypeFamilies", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceTypeFamiliesResponse creates a response to parse from DescribeInstanceTypeFamilies response -func CreateDescribeInstanceTypeFamiliesResponse() (response *DescribeInstanceTypeFamiliesResponse) { - response = &DescribeInstanceTypeFamiliesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go deleted file mode 100644 index 088f1d6e04..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go +++ /dev/null @@ -1,148 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceTypes invokes the ecs.DescribeInstanceTypes API synchronously -func (client *Client) DescribeInstanceTypes(request *DescribeInstanceTypesRequest) (response *DescribeInstanceTypesResponse, err error) { - response = CreateDescribeInstanceTypesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceTypesWithChan invokes the ecs.DescribeInstanceTypes API asynchronously -func (client *Client) DescribeInstanceTypesWithChan(request *DescribeInstanceTypesRequest) (<-chan *DescribeInstanceTypesResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceTypesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceTypes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceTypesWithCallback invokes the ecs.DescribeInstanceTypes API asynchronously -func (client *Client) DescribeInstanceTypesWithCallback(request *DescribeInstanceTypesRequest, callback func(response *DescribeInstanceTypesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceTypesResponse - var err error - defer close(result) - response, err = client.DescribeInstanceTypes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceTypesRequest is the request struct for api DescribeInstanceTypes -type DescribeInstanceTypesRequest struct { - *requests.RpcRequest - GPUSpec string `position:"Query" name:"GPUSpec"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MaximumCpuCoreCount requests.Integer `position:"Query" name:"MaximumCpuCoreCount"` - MaximumGPUAmount requests.Integer `position:"Query" name:"MaximumGPUAmount"` - LocalStorageCategory string `position:"Query" name:"LocalStorageCategory"` - SupportHotModify requests.Boolean `position:"Query" name:"SupportHotModify"` - MaximumMemorySize requests.Float `position:"Query" name:"MaximumMemorySize"` - InstanceCategory string `position:"Query" name:"InstanceCategory"` - MinimumInstancePpsTx requests.Integer `position:"Query" name:"MinimumInstancePpsTx"` - MinimumCpuCoreCount requests.Integer `position:"Query" name:"MinimumCpuCoreCount"` - LocalStorageCategories *[]string `position:"Query" name:"LocalStorageCategories" type:"Repeated"` - MinimumPrimaryEniQueueNumber requests.Integer `position:"Query" name:"MinimumPrimaryEniQueueNumber"` - InstanceTypeFamilies *[]string `position:"Query" name:"InstanceTypeFamilies" type:"Repeated"` - MinimumBaselineCredit requests.Integer `position:"Query" name:"MinimumBaselineCredit"` - MinimumSecondaryEniQueueNumber requests.Integer `position:"Query" name:"MinimumSecondaryEniQueueNumber"` - CpuArchitectures *[]string `position:"Query" name:"CpuArchitectures" type:"Repeated"` - MinimumInstanceBandwidthTx requests.Integer `position:"Query" name:"MinimumInstanceBandwidthTx"` - InstanceCategories *[]string `position:"Query" name:"InstanceCategories" type:"Repeated"` - MinimumGPUAmount requests.Integer `position:"Query" name:"MinimumGPUAmount"` - MaximumCpuSpeedFrequency requests.Float `position:"Query" name:"MaximumCpuSpeedFrequency"` - CpuArchitecture string `position:"Query" name:"CpuArchitecture"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PhysicalProcessorModels *[]string `position:"Query" name:"PhysicalProcessorModels" type:"Repeated"` - MinimumMemorySize requests.Float `position:"Query" name:"MinimumMemorySize"` - MinimumEniQuantity requests.Integer `position:"Query" name:"MinimumEniQuantity"` - InstanceFamilyLevel string `position:"Query" name:"InstanceFamilyLevel"` - MinimumQueuePairNumber requests.Integer `position:"Query" name:"MinimumQueuePairNumber"` - MinimumLocalStorageAmount requests.Integer `position:"Query" name:"MinimumLocalStorageAmount"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - PhysicalProcessorModel string `position:"Query" name:"PhysicalProcessorModel"` - MaximumCpuTurboFrequency requests.Float `position:"Query" name:"MaximumCpuTurboFrequency"` - InstanceTypes *[]string `position:"Query" name:"InstanceTypes" type:"Repeated"` - MinimumInstancePpsRx requests.Integer `position:"Query" name:"MinimumInstancePpsRx"` - MinimumEniIpv6AddressQuantity requests.Integer `position:"Query" name:"MinimumEniIpv6AddressQuantity"` - MinimumEriQuantity requests.Integer `position:"Query" name:"MinimumEriQuantity"` - MinimumDiskQuantity requests.Integer `position:"Query" name:"MinimumDiskQuantity"` - MinimumCpuTurboFrequency requests.Float `position:"Query" name:"MinimumCpuTurboFrequency"` - NextToken string `position:"Query" name:"NextToken"` - MinimumInstanceBandwidthRx requests.Integer `position:"Query" name:"MinimumInstanceBandwidthRx"` - MinimumCpuSpeedFrequency requests.Float `position:"Query" name:"MinimumCpuSpeedFrequency"` - NvmeSupport string `position:"Query" name:"NvmeSupport"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - MinimumInitialCredit requests.Integer `position:"Query" name:"MinimumInitialCredit"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - MinimumEniPrivateIpAddressQuantity requests.Integer `position:"Query" name:"MinimumEniPrivateIpAddressQuantity"` - GpuSpecs *[]string `position:"Query" name:"GpuSpecs" type:"Repeated"` - MinimumLocalStorageCapacity requests.Integer `position:"Query" name:"MinimumLocalStorageCapacity"` -} - -// DescribeInstanceTypesResponse is the response struct for api DescribeInstanceTypes -type DescribeInstanceTypesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NextToken string `json:"NextToken" xml:"NextToken"` - InstanceTypes InstanceTypesInDescribeInstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` -} - -// CreateDescribeInstanceTypesRequest creates a request to invoke DescribeInstanceTypes API -func CreateDescribeInstanceTypesRequest() (request *DescribeInstanceTypesRequest) { - request = &DescribeInstanceTypesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTypes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceTypesResponse creates a response to parse from DescribeInstanceTypes response -func CreateDescribeInstanceTypesResponse() (response *DescribeInstanceTypesResponse) { - response = &DescribeInstanceTypesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go deleted file mode 100644 index d495c3f136..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceVncUrl invokes the ecs.DescribeInstanceVncUrl API synchronously -func (client *Client) DescribeInstanceVncUrl(request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error) { - response = CreateDescribeInstanceVncUrlResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceVncUrlWithChan invokes the ecs.DescribeInstanceVncUrl API asynchronously -func (client *Client) DescribeInstanceVncUrlWithChan(request *DescribeInstanceVncUrlRequest) (<-chan *DescribeInstanceVncUrlResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceVncUrlResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceVncUrl(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceVncUrlWithCallback invokes the ecs.DescribeInstanceVncUrl API asynchronously -func (client *Client) DescribeInstanceVncUrlWithCallback(request *DescribeInstanceVncUrlRequest, callback func(response *DescribeInstanceVncUrlResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceVncUrlResponse - var err error - defer close(result) - response, err = client.DescribeInstanceVncUrl(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceVncUrlRequest is the request struct for api DescribeInstanceVncUrl -type DescribeInstanceVncUrlRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DescribeInstanceVncUrlResponse is the response struct for api DescribeInstanceVncUrl -type DescribeInstanceVncUrlResponse struct { - *responses.BaseResponse - VncUrl string `json:"VncUrl" xml:"VncUrl"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDescribeInstanceVncUrlRequest creates a request to invoke DescribeInstanceVncUrl API -func CreateDescribeInstanceVncUrlRequest() (request *DescribeInstanceVncUrlRequest) { - request = &DescribeInstanceVncUrlRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceVncUrl", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceVncUrlResponse creates a response to parse from DescribeInstanceVncUrl response -func CreateDescribeInstanceVncUrlResponse() (response *DescribeInstanceVncUrlResponse) { - response = &DescribeInstanceVncUrlResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go deleted file mode 100644 index f30faf9334..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go +++ /dev/null @@ -1,157 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstances invokes the ecs.DescribeInstances API synchronously -func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { - response = CreateDescribeInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstancesWithChan invokes the ecs.DescribeInstances API asynchronously -func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstancesWithCallback invokes the ecs.DescribeInstances API asynchronously -func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstancesResponse - var err error - defer close(result) - response, err = client.DescribeInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstancesRequest is the request struct for api DescribeInstances -type DescribeInstancesRequest struct { - *requests.RpcRequest - InnerIpAddresses string `position:"Query" name:"InnerIpAddresses"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PrivateIpAddresses string `position:"Query" name:"PrivateIpAddresses"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` - Filter2Value string `position:"Query" name:"Filter.2.Value"` - KeyPairName string `position:"Query" name:"KeyPairName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LockReason string `position:"Query" name:"LockReason"` - Filter1Key string `position:"Query" name:"Filter.1.Key"` - DeviceAvailable requests.Boolean `position:"Query" name:"DeviceAvailable"` - Tag *[]DescribeInstancesTag `position:"Query" name:"Tag" type:"Repeated"` - Filter3Value string `position:"Query" name:"Filter.3.Value"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` - NeedSaleCycle requests.Boolean `position:"Query" name:"NeedSaleCycle"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` - InstanceName string `position:"Query" name:"InstanceName"` - InstanceIds string `position:"Query" name:"InstanceIds"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` - InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` - Status string `position:"Query" name:"Status"` - ImageId string `position:"Query" name:"ImageId"` - Filter4Value string `position:"Query" name:"Filter.4.Value"` - IoOptimized requests.Boolean `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Filter4Key string `position:"Query" name:"Filter.4.Key"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - NextToken string `position:"Query" name:"NextToken"` - RdmaIpAddresses string `position:"Query" name:"RdmaIpAddresses"` - HttpEndpoint string `position:"Query" name:"HttpEndpoint"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - PublicIpAddresses string `position:"Query" name:"PublicIpAddresses"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - Filter2Key string `position:"Query" name:"Filter.2.Key"` - EipAddresses string `position:"Query" name:"EipAddresses"` - VpcId string `position:"Query" name:"VpcId"` - HttpTokens string `position:"Query" name:"HttpTokens"` - Filter3Key string `position:"Query" name:"Filter.3.Key"` -} - -// DescribeInstancesTag is a repeated param struct in DescribeInstancesRequest -type DescribeInstancesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeInstancesResponse is the response struct for api DescribeInstances -type DescribeInstancesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Instances InstancesInDescribeInstances `json:"Instances" xml:"Instances"` -} - -// CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API -func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest) { - request = &DescribeInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstancesResponse creates a response to parse from DescribeInstances response -func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse) { - response = &DescribeInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go deleted file mode 100644 index 7416048d07..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstancesFullStatus invokes the ecs.DescribeInstancesFullStatus API synchronously -func (client *Client) DescribeInstancesFullStatus(request *DescribeInstancesFullStatusRequest) (response *DescribeInstancesFullStatusResponse, err error) { - response = CreateDescribeInstancesFullStatusResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstancesFullStatusWithChan invokes the ecs.DescribeInstancesFullStatus API asynchronously -func (client *Client) DescribeInstancesFullStatusWithChan(request *DescribeInstancesFullStatusRequest) (<-chan *DescribeInstancesFullStatusResponse, <-chan error) { - responseChan := make(chan *DescribeInstancesFullStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstancesFullStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstancesFullStatusWithCallback invokes the ecs.DescribeInstancesFullStatus API asynchronously -func (client *Client) DescribeInstancesFullStatusWithCallback(request *DescribeInstancesFullStatusRequest, callback func(response *DescribeInstancesFullStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstancesFullStatusResponse - var err error - defer close(result) - response, err = client.DescribeInstancesFullStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstancesFullStatusRequest is the request struct for api DescribeInstancesFullStatus -type DescribeInstancesFullStatusRequest struct { - *requests.RpcRequest - EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - EventPublishTimeEnd string `position:"Query" name:"EventPublishTime.End"` - InstanceEventType *[]string `position:"Query" name:"InstanceEventType" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - NotBeforeStart string `position:"Query" name:"NotBefore.Start"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - EventPublishTimeStart string `position:"Query" name:"EventPublishTime.Start"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - NotBeforeEnd string `position:"Query" name:"NotBefore.End"` - HealthStatus string `position:"Query" name:"HealthStatus"` - EventType string `position:"Query" name:"EventType"` - Status string `position:"Query" name:"Status"` -} - -// DescribeInstancesFullStatusResponse is the response struct for api DescribeInstancesFullStatus -type DescribeInstancesFullStatusResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - InstanceFullStatusSet InstanceFullStatusSet `json:"InstanceFullStatusSet" xml:"InstanceFullStatusSet"` -} - -// CreateDescribeInstancesFullStatusRequest creates a request to invoke DescribeInstancesFullStatus API -func CreateDescribeInstancesFullStatusRequest() (request *DescribeInstancesFullStatusRequest) { - request = &DescribeInstancesFullStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstancesFullStatus", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstancesFullStatusResponse creates a response to parse from DescribeInstancesFullStatus response -func CreateDescribeInstancesFullStatusResponse() (response *DescribeInstancesFullStatusResponse) { - response = &DescribeInstancesFullStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go deleted file mode 100644 index ad0f5cc70a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go +++ /dev/null @@ -1,121 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInvocationResults invokes the ecs.DescribeInvocationResults API synchronously -func (client *Client) DescribeInvocationResults(request *DescribeInvocationResultsRequest) (response *DescribeInvocationResultsResponse, err error) { - response = CreateDescribeInvocationResultsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInvocationResultsWithChan invokes the ecs.DescribeInvocationResults API asynchronously -func (client *Client) DescribeInvocationResultsWithChan(request *DescribeInvocationResultsRequest) (<-chan *DescribeInvocationResultsResponse, <-chan error) { - responseChan := make(chan *DescribeInvocationResultsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInvocationResults(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInvocationResultsWithCallback invokes the ecs.DescribeInvocationResults API asynchronously -func (client *Client) DescribeInvocationResultsWithCallback(request *DescribeInvocationResultsRequest, callback func(response *DescribeInvocationResultsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInvocationResultsResponse - var err error - defer close(result) - response, err = client.DescribeInvocationResults(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInvocationResultsRequest is the request struct for api DescribeInvocationResults -type DescribeInvocationResultsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CommandId string `position:"Query" name:"CommandId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - ContentEncoding string `position:"Query" name:"ContentEncoding"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeInvocationResultsTag `position:"Query" name:"Tag" type:"Repeated"` - InvokeId string `position:"Query" name:"InvokeId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - InvokeRecordStatus string `position:"Query" name:"InvokeRecordStatus"` - IncludeHistory requests.Boolean `position:"Query" name:"IncludeHistory"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeInvocationResultsTag is a repeated param struct in DescribeInvocationResultsRequest -type DescribeInvocationResultsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeInvocationResultsResponse is the response struct for api DescribeInvocationResults -type DescribeInvocationResultsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Invocation Invocation `json:"Invocation" xml:"Invocation"` -} - -// CreateDescribeInvocationResultsRequest creates a request to invoke DescribeInvocationResults API -func CreateDescribeInvocationResultsRequest() (request *DescribeInvocationResultsRequest) { - request = &DescribeInvocationResultsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInvocationResults", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInvocationResultsResponse creates a response to parse from DescribeInvocationResults response -func CreateDescribeInvocationResultsResponse() (response *DescribeInvocationResultsResponse) { - response = &DescribeInvocationResultsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go deleted file mode 100644 index 61d1ac295d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go +++ /dev/null @@ -1,129 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInvocations invokes the ecs.DescribeInvocations API synchronously -func (client *Client) DescribeInvocations(request *DescribeInvocationsRequest) (response *DescribeInvocationsResponse, err error) { - response = CreateDescribeInvocationsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInvocationsWithChan invokes the ecs.DescribeInvocations API asynchronously -func (client *Client) DescribeInvocationsWithChan(request *DescribeInvocationsRequest) (<-chan *DescribeInvocationsResponse, <-chan error) { - responseChan := make(chan *DescribeInvocationsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInvocations(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInvocationsWithCallback invokes the ecs.DescribeInvocations API asynchronously -func (client *Client) DescribeInvocationsWithCallback(request *DescribeInvocationsRequest, callback func(response *DescribeInvocationsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInvocationsResponse - var err error - defer close(result) - response, err = client.DescribeInvocations(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInvocationsRequest is the request struct for api DescribeInvocations -type DescribeInvocationsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InvokeStatus string `position:"Query" name:"InvokeStatus"` - IncludeOutput requests.Boolean `position:"Query" name:"IncludeOutput"` - CommandId string `position:"Query" name:"CommandId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - ContentEncoding string `position:"Query" name:"ContentEncoding"` - RepeatMode string `position:"Query" name:"RepeatMode"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeInvocationsTag `position:"Query" name:"Tag" type:"Repeated"` - InvokeId string `position:"Query" name:"InvokeId"` - Timed requests.Boolean `position:"Query" name:"Timed"` - CommandName string `position:"Query" name:"CommandName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CommandType string `position:"Query" name:"CommandType"` - InstanceId string `position:"Query" name:"InstanceId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeInvocationsTag is a repeated param struct in DescribeInvocationsRequest -type DescribeInvocationsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeInvocationsResponse is the response struct for api DescribeInvocations -type DescribeInvocationsResponse struct { - *responses.BaseResponse - PageSize int64 `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - Invocations InvocationsInDescribeInvocations `json:"Invocations" xml:"Invocations"` -} - -// CreateDescribeInvocationsRequest creates a request to invoke DescribeInvocations API -func CreateDescribeInvocationsRequest() (request *DescribeInvocationsRequest) { - request = &DescribeInvocationsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInvocations", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInvocationsResponse creates a response to parse from DescribeInvocations response -func CreateDescribeInvocationsResponse() (response *DescribeInvocationsResponse) { - response = &DescribeInvocationsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go deleted file mode 100644 index ba92a162bf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeKeyPairs invokes the ecs.DescribeKeyPairs API synchronously -func (client *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error) { - response = CreateDescribeKeyPairsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeKeyPairsWithChan invokes the ecs.DescribeKeyPairs API asynchronously -func (client *Client) DescribeKeyPairsWithChan(request *DescribeKeyPairsRequest) (<-chan *DescribeKeyPairsResponse, <-chan error) { - responseChan := make(chan *DescribeKeyPairsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeKeyPairs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeKeyPairsWithCallback invokes the ecs.DescribeKeyPairs API asynchronously -func (client *Client) DescribeKeyPairsWithCallback(request *DescribeKeyPairsRequest, callback func(response *DescribeKeyPairsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeKeyPairsResponse - var err error - defer close(result) - response, err = client.DescribeKeyPairs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeKeyPairsRequest is the request struct for api DescribeKeyPairs -type DescribeKeyPairsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KeyPairFingerPrint string `position:"Query" name:"KeyPairFingerPrint"` - KeyPairName string `position:"Query" name:"KeyPairName"` - IncludePublicKey requests.Boolean `position:"Query" name:"IncludePublicKey"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeKeyPairsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeKeyPairsTag is a repeated param struct in DescribeKeyPairsRequest -type DescribeKeyPairsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeKeyPairsResponse is the response struct for api DescribeKeyPairs -type DescribeKeyPairsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - KeyPairs KeyPairs `json:"KeyPairs" xml:"KeyPairs"` -} - -// CreateDescribeKeyPairsRequest creates a request to invoke DescribeKeyPairs API -func CreateDescribeKeyPairsRequest() (request *DescribeKeyPairsRequest) { - request = &DescribeKeyPairsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeKeyPairs", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeKeyPairsResponse creates a response to parse from DescribeKeyPairs response -func CreateDescribeKeyPairsResponse() (response *DescribeKeyPairsResponse) { - response = &DescribeKeyPairsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go deleted file mode 100644 index 7d7906c003..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeLaunchTemplateVersions invokes the ecs.DescribeLaunchTemplateVersions API synchronously -func (client *Client) DescribeLaunchTemplateVersions(request *DescribeLaunchTemplateVersionsRequest) (response *DescribeLaunchTemplateVersionsResponse, err error) { - response = CreateDescribeLaunchTemplateVersionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeLaunchTemplateVersionsWithChan invokes the ecs.DescribeLaunchTemplateVersions API asynchronously -func (client *Client) DescribeLaunchTemplateVersionsWithChan(request *DescribeLaunchTemplateVersionsRequest) (<-chan *DescribeLaunchTemplateVersionsResponse, <-chan error) { - responseChan := make(chan *DescribeLaunchTemplateVersionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeLaunchTemplateVersions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeLaunchTemplateVersionsWithCallback invokes the ecs.DescribeLaunchTemplateVersions API asynchronously -func (client *Client) DescribeLaunchTemplateVersionsWithCallback(request *DescribeLaunchTemplateVersionsRequest, callback func(response *DescribeLaunchTemplateVersionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeLaunchTemplateVersionsResponse - var err error - defer close(result) - response, err = client.DescribeLaunchTemplateVersions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeLaunchTemplateVersionsRequest is the request struct for api DescribeLaunchTemplateVersions -type DescribeLaunchTemplateVersionsRequest struct { - *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - MaxVersion requests.Integer `position:"Query" name:"MaxVersion"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DefaultVersion requests.Boolean `position:"Query" name:"DefaultVersion"` - MinVersion requests.Integer `position:"Query" name:"MinVersion"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LaunchTemplateVersion *[]string `position:"Query" name:"LaunchTemplateVersion" type:"Repeated"` - DetailFlag requests.Boolean `position:"Query" name:"DetailFlag"` -} - -// DescribeLaunchTemplateVersionsResponse is the response struct for api DescribeLaunchTemplateVersions -type DescribeLaunchTemplateVersionsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - LaunchTemplateVersionSets LaunchTemplateVersionSets `json:"LaunchTemplateVersionSets" xml:"LaunchTemplateVersionSets"` -} - -// CreateDescribeLaunchTemplateVersionsRequest creates a request to invoke DescribeLaunchTemplateVersions API -func CreateDescribeLaunchTemplateVersionsRequest() (request *DescribeLaunchTemplateVersionsRequest) { - request = &DescribeLaunchTemplateVersionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLaunchTemplateVersions", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeLaunchTemplateVersionsResponse creates a response to parse from DescribeLaunchTemplateVersions response -func CreateDescribeLaunchTemplateVersionsResponse() (response *DescribeLaunchTemplateVersionsResponse) { - response = &DescribeLaunchTemplateVersionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go deleted file mode 100644 index 067bdedad0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeLaunchTemplates invokes the ecs.DescribeLaunchTemplates API synchronously -func (client *Client) DescribeLaunchTemplates(request *DescribeLaunchTemplatesRequest) (response *DescribeLaunchTemplatesResponse, err error) { - response = CreateDescribeLaunchTemplatesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeLaunchTemplatesWithChan invokes the ecs.DescribeLaunchTemplates API asynchronously -func (client *Client) DescribeLaunchTemplatesWithChan(request *DescribeLaunchTemplatesRequest) (<-chan *DescribeLaunchTemplatesResponse, <-chan error) { - responseChan := make(chan *DescribeLaunchTemplatesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeLaunchTemplates(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeLaunchTemplatesWithCallback invokes the ecs.DescribeLaunchTemplates API asynchronously -func (client *Client) DescribeLaunchTemplatesWithCallback(request *DescribeLaunchTemplatesRequest, callback func(response *DescribeLaunchTemplatesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeLaunchTemplatesResponse - var err error - defer close(result) - response, err = client.DescribeLaunchTemplates(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeLaunchTemplatesRequest is the request struct for api DescribeLaunchTemplates -type DescribeLaunchTemplatesRequest struct { - *requests.RpcRequest - LaunchTemplateName *[]string `position:"Query" name:"LaunchTemplateName" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - TemplateTag *[]DescribeLaunchTemplatesTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` - LaunchTemplateId *[]string `position:"Query" name:"LaunchTemplateId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - TemplateResourceGroupId string `position:"Query" name:"TemplateResourceGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeLaunchTemplatesTemplateTag is a repeated param struct in DescribeLaunchTemplatesRequest -type DescribeLaunchTemplatesTemplateTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeLaunchTemplatesResponse is the response struct for api DescribeLaunchTemplates -type DescribeLaunchTemplatesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - LaunchTemplateSets LaunchTemplateSets `json:"LaunchTemplateSets" xml:"LaunchTemplateSets"` -} - -// CreateDescribeLaunchTemplatesRequest creates a request to invoke DescribeLaunchTemplates API -func CreateDescribeLaunchTemplatesRequest() (request *DescribeLaunchTemplatesRequest) { - request = &DescribeLaunchTemplatesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLaunchTemplates", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeLaunchTemplatesResponse creates a response to parse from DescribeLaunchTemplates response -func CreateDescribeLaunchTemplatesResponse() (response *DescribeLaunchTemplatesResponse) { - response = &DescribeLaunchTemplatesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go deleted file mode 100644 index 9180e2b03a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeLimitation invokes the ecs.DescribeLimitation API synchronously -func (client *Client) DescribeLimitation(request *DescribeLimitationRequest) (response *DescribeLimitationResponse, err error) { - response = CreateDescribeLimitationResponse() - err = client.DoAction(request, response) - return -} - -// DescribeLimitationWithChan invokes the ecs.DescribeLimitation API asynchronously -func (client *Client) DescribeLimitationWithChan(request *DescribeLimitationRequest) (<-chan *DescribeLimitationResponse, <-chan error) { - responseChan := make(chan *DescribeLimitationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeLimitation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeLimitationWithCallback invokes the ecs.DescribeLimitation API asynchronously -func (client *Client) DescribeLimitationWithCallback(request *DescribeLimitationRequest, callback func(response *DescribeLimitationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeLimitationResponse - var err error - defer close(result) - response, err = client.DescribeLimitation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeLimitationRequest is the request struct for api DescribeLimitation -type DescribeLimitationRequest struct { - *requests.RpcRequest - Limitation string `position:"Query" name:"Limitation"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeLimitationResponse is the response struct for api DescribeLimitation -type DescribeLimitationResponse struct { - *responses.BaseResponse - Limitation string `json:"Limitation" xml:"Limitation"` - Value string `json:"Value" xml:"Value"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDescribeLimitationRequest creates a request to invoke DescribeLimitation API -func CreateDescribeLimitationRequest() (request *DescribeLimitationRequest) { - request = &DescribeLimitationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLimitation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeLimitationResponse creates a response to parse from DescribeLimitation response -func CreateDescribeLimitationResponse() (response *DescribeLimitationResponse) { - response = &DescribeLimitationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_managed_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_managed_instances.go deleted file mode 100644 index 948bb78e81..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_managed_instances.go +++ /dev/null @@ -1,124 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeManagedInstances invokes the ecs.DescribeManagedInstances API synchronously -func (client *Client) DescribeManagedInstances(request *DescribeManagedInstancesRequest) (response *DescribeManagedInstancesResponse, err error) { - response = CreateDescribeManagedInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeManagedInstancesWithChan invokes the ecs.DescribeManagedInstances API asynchronously -func (client *Client) DescribeManagedInstancesWithChan(request *DescribeManagedInstancesRequest) (<-chan *DescribeManagedInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeManagedInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeManagedInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeManagedInstancesWithCallback invokes the ecs.DescribeManagedInstances API asynchronously -func (client *Client) DescribeManagedInstancesWithCallback(request *DescribeManagedInstancesRequest, callback func(response *DescribeManagedInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeManagedInstancesResponse - var err error - defer close(result) - response, err = client.DescribeManagedInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeManagedInstancesRequest is the request struct for api DescribeManagedInstances -type DescribeManagedInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeManagedInstancesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OsType string `position:"Query" name:"OsType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceName string `position:"Query" name:"InstanceName"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - InstanceIp string `position:"Query" name:"InstanceIp"` - ActivationId string `position:"Query" name:"ActivationId"` -} - -// DescribeManagedInstancesTag is a repeated param struct in DescribeManagedInstancesRequest -type DescribeManagedInstancesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeManagedInstancesResponse is the response struct for api DescribeManagedInstances -type DescribeManagedInstancesResponse struct { - *responses.BaseResponse - PageSize int64 `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - Instances []InstanceInDescribeManagedInstances `json:"Instances" xml:"Instances"` -} - -// CreateDescribeManagedInstancesRequest creates a request to invoke DescribeManagedInstances API -func CreateDescribeManagedInstancesRequest() (request *DescribeManagedInstancesRequest) { - request = &DescribeManagedInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeManagedInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeManagedInstancesResponse creates a response to parse from DescribeManagedInstances response -func CreateDescribeManagedInstancesResponse() (response *DescribeManagedInstancesResponse) { - response = &DescribeManagedInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go deleted file mode 100644 index 0d7f567fe6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeNatGateways invokes the ecs.DescribeNatGateways API synchronously -func (client *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { - response = CreateDescribeNatGatewaysResponse() - err = client.DoAction(request, response) - return -} - -// DescribeNatGatewaysWithChan invokes the ecs.DescribeNatGateways API asynchronously -func (client *Client) DescribeNatGatewaysWithChan(request *DescribeNatGatewaysRequest) (<-chan *DescribeNatGatewaysResponse, <-chan error) { - responseChan := make(chan *DescribeNatGatewaysResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeNatGateways(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeNatGatewaysWithCallback invokes the ecs.DescribeNatGateways API asynchronously -func (client *Client) DescribeNatGatewaysWithCallback(request *DescribeNatGatewaysRequest, callback func(response *DescribeNatGatewaysResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeNatGatewaysResponse - var err error - defer close(result) - response, err = client.DescribeNatGateways(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeNatGatewaysRequest is the request struct for api DescribeNatGateways -type DescribeNatGatewaysRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - NatGatewayId string `position:"Query" name:"NatGatewayId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VpcId string `position:"Query" name:"VpcId"` -} - -// DescribeNatGatewaysResponse is the response struct for api DescribeNatGateways -type DescribeNatGatewaysResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - NatGateways NatGateways `json:"NatGateways" xml:"NatGateways"` -} - -// CreateDescribeNatGatewaysRequest creates a request to invoke DescribeNatGateways API -func CreateDescribeNatGatewaysRequest() (request *DescribeNatGatewaysRequest) { - request = &DescribeNatGatewaysRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNatGateways", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeNatGatewaysResponse creates a response to parse from DescribeNatGateways response -func CreateDescribeNatGatewaysResponse() (response *DescribeNatGatewaysResponse) { - response = &DescribeNatGatewaysResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_attribute.go deleted file mode 100644 index e92df4490d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_attribute.go +++ /dev/null @@ -1,146 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeNetworkInterfaceAttribute invokes the ecs.DescribeNetworkInterfaceAttribute API synchronously -func (client *Client) DescribeNetworkInterfaceAttribute(request *DescribeNetworkInterfaceAttributeRequest) (response *DescribeNetworkInterfaceAttributeResponse, err error) { - response = CreateDescribeNetworkInterfaceAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeNetworkInterfaceAttributeWithChan invokes the ecs.DescribeNetworkInterfaceAttribute API asynchronously -func (client *Client) DescribeNetworkInterfaceAttributeWithChan(request *DescribeNetworkInterfaceAttributeRequest) (<-chan *DescribeNetworkInterfaceAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeNetworkInterfaceAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeNetworkInterfaceAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeNetworkInterfaceAttributeWithCallback invokes the ecs.DescribeNetworkInterfaceAttribute API asynchronously -func (client *Client) DescribeNetworkInterfaceAttributeWithCallback(request *DescribeNetworkInterfaceAttributeRequest, callback func(response *DescribeNetworkInterfaceAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeNetworkInterfaceAttributeResponse - var err error - defer close(result) - response, err = client.DescribeNetworkInterfaceAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeNetworkInterfaceAttributeRequest is the request struct for api DescribeNetworkInterfaceAttribute -type DescribeNetworkInterfaceAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Tag *[]DescribeNetworkInterfaceAttributeTag `position:"Query" name:"Tag" type:"Repeated"` - Attribute string `position:"Query" name:"Attribute"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// DescribeNetworkInterfaceAttributeTag is a repeated param struct in DescribeNetworkInterfaceAttributeRequest -type DescribeNetworkInterfaceAttributeTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeNetworkInterfaceAttributeResponse is the response struct for api DescribeNetworkInterfaceAttribute -type DescribeNetworkInterfaceAttributeResponse struct { - *responses.BaseResponse - CreationTime string `json:"CreationTime" xml:"CreationTime"` - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Status string `json:"Status" xml:"Status"` - NetworkInterfaceTrafficMode string `json:"NetworkInterfaceTrafficMode" xml:"NetworkInterfaceTrafficMode"` - NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` - MacAddress string `json:"MacAddress" xml:"MacAddress"` - QueuePairNumber int `json:"QueuePairNumber" xml:"QueuePairNumber"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - ServiceID int64 `json:"ServiceID" xml:"ServiceID"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - OwnerId string `json:"OwnerId" xml:"OwnerId"` - ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - RequestId string `json:"RequestId" xml:"RequestId"` - Description string `json:"Description" xml:"Description"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` - QueueNumber int `json:"QueueNumber" xml:"QueueNumber"` - DeleteOnRelease bool `json:"DeleteOnRelease" xml:"DeleteOnRelease"` - TcpOptionAddressEnabled string `json:"TcpOptionAddressEnabled" xml:"TcpOptionAddressEnabled"` - SourceDestCheck bool `json:"SourceDestCheck" xml:"SourceDestCheck"` - SecurityGroupIds SecurityGroupIdsInDescribeNetworkInterfaceAttribute `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` - Attachment Attachment `json:"Attachment" xml:"Attachment"` - BondInterfaceSpecification BondInterfaceSpecification `json:"BondInterfaceSpecification" xml:"BondInterfaceSpecification"` - SlaveInterfaceSpecification SlaveInterfaceSpecification `json:"SlaveInterfaceSpecification" xml:"SlaveInterfaceSpecification"` - NetworkInterfaceTrafficConfig NetworkInterfaceTrafficConfig `json:"NetworkInterfaceTrafficConfig" xml:"NetworkInterfaceTrafficConfig"` - ConnectionTrackingConfiguration ConnectionTrackingConfiguration `json:"ConnectionTrackingConfiguration" xml:"ConnectionTrackingConfiguration"` - EnhancedNetwork EnhancedNetwork `json:"EnhancedNetwork" xml:"EnhancedNetwork"` - PrivateIpSets PrivateIpSetsInDescribeNetworkInterfaceAttribute `json:"PrivateIpSets" xml:"PrivateIpSets"` - Ipv6Sets Ipv6SetsInDescribeNetworkInterfaceAttribute `json:"Ipv6Sets" xml:"Ipv6Sets"` - Ipv4PrefixSets Ipv4PrefixSetsInDescribeNetworkInterfaceAttribute `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` - Ipv6PrefixSets Ipv6PrefixSetsInDescribeNetworkInterfaceAttribute `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` - Tags TagsInDescribeNetworkInterfaceAttribute `json:"Tags" xml:"Tags"` -} - -// CreateDescribeNetworkInterfaceAttributeRequest creates a request to invoke DescribeNetworkInterfaceAttribute API -func CreateDescribeNetworkInterfaceAttributeRequest() (request *DescribeNetworkInterfaceAttributeRequest) { - request = &DescribeNetworkInterfaceAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfaceAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeNetworkInterfaceAttributeResponse creates a response to parse from DescribeNetworkInterfaceAttribute response -func CreateDescribeNetworkInterfaceAttributeResponse() (response *DescribeNetworkInterfaceAttributeResponse) { - response = &DescribeNetworkInterfaceAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go deleted file mode 100644 index 13efefef9e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeNetworkInterfacePermissions invokes the ecs.DescribeNetworkInterfacePermissions API synchronously -func (client *Client) DescribeNetworkInterfacePermissions(request *DescribeNetworkInterfacePermissionsRequest) (response *DescribeNetworkInterfacePermissionsResponse, err error) { - response = CreateDescribeNetworkInterfacePermissionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeNetworkInterfacePermissionsWithChan invokes the ecs.DescribeNetworkInterfacePermissions API asynchronously -func (client *Client) DescribeNetworkInterfacePermissionsWithChan(request *DescribeNetworkInterfacePermissionsRequest) (<-chan *DescribeNetworkInterfacePermissionsResponse, <-chan error) { - responseChan := make(chan *DescribeNetworkInterfacePermissionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeNetworkInterfacePermissions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeNetworkInterfacePermissionsWithCallback invokes the ecs.DescribeNetworkInterfacePermissions API asynchronously -func (client *Client) DescribeNetworkInterfacePermissionsWithCallback(request *DescribeNetworkInterfacePermissionsRequest, callback func(response *DescribeNetworkInterfacePermissionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeNetworkInterfacePermissionsResponse - var err error - defer close(result) - response, err = client.DescribeNetworkInterfacePermissions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeNetworkInterfacePermissionsRequest is the request struct for api DescribeNetworkInterfacePermissions -type DescribeNetworkInterfacePermissionsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - NetworkInterfacePermissionId *[]string `position:"Query" name:"NetworkInterfacePermissionId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// DescribeNetworkInterfacePermissionsResponse is the response struct for api DescribeNetworkInterfacePermissions -type DescribeNetworkInterfacePermissionsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - NetworkInterfacePermissions NetworkInterfacePermissions `json:"NetworkInterfacePermissions" xml:"NetworkInterfacePermissions"` -} - -// CreateDescribeNetworkInterfacePermissionsRequest creates a request to invoke DescribeNetworkInterfacePermissions API -func CreateDescribeNetworkInterfacePermissionsRequest() (request *DescribeNetworkInterfacePermissionsRequest) { - request = &DescribeNetworkInterfacePermissionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfacePermissions", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeNetworkInterfacePermissionsResponse creates a response to parse from DescribeNetworkInterfacePermissions response -func CreateDescribeNetworkInterfacePermissionsResponse() (response *DescribeNetworkInterfacePermissionsResponse) { - response = &DescribeNetworkInterfacePermissionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go deleted file mode 100644 index a41266d27e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go +++ /dev/null @@ -1,131 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeNetworkInterfaces invokes the ecs.DescribeNetworkInterfaces API synchronously -func (client *Client) DescribeNetworkInterfaces(request *DescribeNetworkInterfacesRequest) (response *DescribeNetworkInterfacesResponse, err error) { - response = CreateDescribeNetworkInterfacesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeNetworkInterfacesWithChan invokes the ecs.DescribeNetworkInterfaces API asynchronously -func (client *Client) DescribeNetworkInterfacesWithChan(request *DescribeNetworkInterfacesRequest) (<-chan *DescribeNetworkInterfacesResponse, <-chan error) { - responseChan := make(chan *DescribeNetworkInterfacesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeNetworkInterfaces(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeNetworkInterfacesWithCallback invokes the ecs.DescribeNetworkInterfaces API asynchronously -func (client *Client) DescribeNetworkInterfacesWithCallback(request *DescribeNetworkInterfacesRequest, callback func(response *DescribeNetworkInterfacesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeNetworkInterfacesResponse - var err error - defer close(result) - response, err = client.DescribeNetworkInterfaces(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeNetworkInterfacesRequest is the request struct for api DescribeNetworkInterfaces -type DescribeNetworkInterfacesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ServiceManaged requests.Boolean `position:"Query" name:"ServiceManaged"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Type string `position:"Query" name:"Type"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeNetworkInterfacesTag `position:"Query" name:"Tag" type:"Repeated"` - NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` - InstanceId string `position:"Query" name:"InstanceId"` - VpcId string `position:"Query" name:"VpcId"` - PrimaryIpAddress string `position:"Query" name:"PrimaryIpAddress"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - NetworkInterfaceId *[]string `position:"Query" name:"NetworkInterfaceId" type:"Repeated"` - Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` - Status string `position:"Query" name:"Status"` -} - -// DescribeNetworkInterfacesTag is a repeated param struct in DescribeNetworkInterfacesRequest -type DescribeNetworkInterfacesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeNetworkInterfacesResponse is the response struct for api DescribeNetworkInterfaces -type DescribeNetworkInterfacesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - NetworkInterfaceSets NetworkInterfaceSets `json:"NetworkInterfaceSets" xml:"NetworkInterfaceSets"` -} - -// CreateDescribeNetworkInterfacesRequest creates a request to invoke DescribeNetworkInterfaces API -func CreateDescribeNetworkInterfacesRequest() (request *DescribeNetworkInterfacesRequest) { - request = &DescribeNetworkInterfacesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfaces", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeNetworkInterfacesResponse creates a response to parse from DescribeNetworkInterfaces response -func CreateDescribeNetworkInterfacesResponse() (response *DescribeNetworkInterfacesResponse) { - response = &DescribeNetworkInterfacesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go deleted file mode 100644 index d56dc44920..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeNewProjectEipMonitorData invokes the ecs.DescribeNewProjectEipMonitorData API synchronously -func (client *Client) DescribeNewProjectEipMonitorData(request *DescribeNewProjectEipMonitorDataRequest) (response *DescribeNewProjectEipMonitorDataResponse, err error) { - response = CreateDescribeNewProjectEipMonitorDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeNewProjectEipMonitorDataWithChan invokes the ecs.DescribeNewProjectEipMonitorData API asynchronously -func (client *Client) DescribeNewProjectEipMonitorDataWithChan(request *DescribeNewProjectEipMonitorDataRequest) (<-chan *DescribeNewProjectEipMonitorDataResponse, <-chan error) { - responseChan := make(chan *DescribeNewProjectEipMonitorDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeNewProjectEipMonitorData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeNewProjectEipMonitorDataWithCallback invokes the ecs.DescribeNewProjectEipMonitorData API asynchronously -func (client *Client) DescribeNewProjectEipMonitorDataWithCallback(request *DescribeNewProjectEipMonitorDataRequest, callback func(response *DescribeNewProjectEipMonitorDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeNewProjectEipMonitorDataResponse - var err error - defer close(result) - response, err = client.DescribeNewProjectEipMonitorData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeNewProjectEipMonitorDataRequest is the request struct for api DescribeNewProjectEipMonitorData -type DescribeNewProjectEipMonitorDataRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AllocationId string `position:"Query" name:"AllocationId"` - StartTime string `position:"Query" name:"StartTime"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeNewProjectEipMonitorDataResponse is the response struct for api DescribeNewProjectEipMonitorData -type DescribeNewProjectEipMonitorDataResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - EipMonitorDatas EipMonitorDatasInDescribeNewProjectEipMonitorData `json:"EipMonitorDatas" xml:"EipMonitorDatas"` -} - -// CreateDescribeNewProjectEipMonitorDataRequest creates a request to invoke DescribeNewProjectEipMonitorData API -func CreateDescribeNewProjectEipMonitorDataRequest() (request *DescribeNewProjectEipMonitorDataRequest) { - request = &DescribeNewProjectEipMonitorDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNewProjectEipMonitorData", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeNewProjectEipMonitorDataResponse creates a response to parse from DescribeNewProjectEipMonitorData response -func CreateDescribeNewProjectEipMonitorDataResponse() (response *DescribeNewProjectEipMonitorDataResponse) { - response = &DescribeNewProjectEipMonitorDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go deleted file mode 100644 index 9811eca328..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go +++ /dev/null @@ -1,117 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribePhysicalConnections invokes the ecs.DescribePhysicalConnections API synchronously -func (client *Client) DescribePhysicalConnections(request *DescribePhysicalConnectionsRequest) (response *DescribePhysicalConnectionsResponse, err error) { - response = CreateDescribePhysicalConnectionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePhysicalConnectionsWithChan invokes the ecs.DescribePhysicalConnections API asynchronously -func (client *Client) DescribePhysicalConnectionsWithChan(request *DescribePhysicalConnectionsRequest) (<-chan *DescribePhysicalConnectionsResponse, <-chan error) { - responseChan := make(chan *DescribePhysicalConnectionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePhysicalConnections(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePhysicalConnectionsWithCallback invokes the ecs.DescribePhysicalConnections API asynchronously -func (client *Client) DescribePhysicalConnectionsWithCallback(request *DescribePhysicalConnectionsRequest, callback func(response *DescribePhysicalConnectionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePhysicalConnectionsResponse - var err error - defer close(result) - response, err = client.DescribePhysicalConnections(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePhysicalConnectionsRequest is the request struct for api DescribePhysicalConnections -type DescribePhysicalConnectionsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribePhysicalConnectionsFilter `position:"Query" name:"Filter" type:"Repeated"` -} - -// DescribePhysicalConnectionsFilter is a repeated param struct in DescribePhysicalConnectionsRequest -type DescribePhysicalConnectionsFilter struct { - Value *[]string `name:"Value" type:"Repeated"` - Key string `name:"Key"` -} - -// DescribePhysicalConnectionsResponse is the response struct for api DescribePhysicalConnections -type DescribePhysicalConnectionsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - PhysicalConnectionSet PhysicalConnectionSet `json:"PhysicalConnectionSet" xml:"PhysicalConnectionSet"` -} - -// CreateDescribePhysicalConnectionsRequest creates a request to invoke DescribePhysicalConnections API -func CreateDescribePhysicalConnectionsRequest() (request *DescribePhysicalConnectionsRequest) { - request = &DescribePhysicalConnectionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePhysicalConnections", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePhysicalConnectionsResponse creates a response to parse from DescribePhysicalConnections response -func CreateDescribePhysicalConnectionsResponse() (response *DescribePhysicalConnectionsResponse) { - response = &DescribePhysicalConnectionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_associations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_associations.go deleted file mode 100644 index 7a92554fa0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_associations.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribePrefixListAssociations invokes the ecs.DescribePrefixListAssociations API synchronously -func (client *Client) DescribePrefixListAssociations(request *DescribePrefixListAssociationsRequest) (response *DescribePrefixListAssociationsResponse, err error) { - response = CreateDescribePrefixListAssociationsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePrefixListAssociationsWithChan invokes the ecs.DescribePrefixListAssociations API asynchronously -func (client *Client) DescribePrefixListAssociationsWithChan(request *DescribePrefixListAssociationsRequest) (<-chan *DescribePrefixListAssociationsResponse, <-chan error) { - responseChan := make(chan *DescribePrefixListAssociationsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePrefixListAssociations(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePrefixListAssociationsWithCallback invokes the ecs.DescribePrefixListAssociations API asynchronously -func (client *Client) DescribePrefixListAssociationsWithCallback(request *DescribePrefixListAssociationsRequest, callback func(response *DescribePrefixListAssociationsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePrefixListAssociationsResponse - var err error - defer close(result) - response, err = client.DescribePrefixListAssociations(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePrefixListAssociationsRequest is the request struct for api DescribePrefixListAssociations -type DescribePrefixListAssociationsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PrefixListId string `position:"Query" name:"PrefixListId"` - NextToken string `position:"Query" name:"NextToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribePrefixListAssociationsResponse is the response struct for api DescribePrefixListAssociations -type DescribePrefixListAssociationsResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - PrefixListAssociations PrefixListAssociations `json:"PrefixListAssociations" xml:"PrefixListAssociations"` -} - -// CreateDescribePrefixListAssociationsRequest creates a request to invoke DescribePrefixListAssociations API -func CreateDescribePrefixListAssociationsRequest() (request *DescribePrefixListAssociationsRequest) { - request = &DescribePrefixListAssociationsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrefixListAssociations", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePrefixListAssociationsResponse creates a response to parse from DescribePrefixListAssociations response -func CreateDescribePrefixListAssociationsResponse() (response *DescribePrefixListAssociationsResponse) { - response = &DescribePrefixListAssociationsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_attributes.go deleted file mode 100644 index 7819f2d796..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_attributes.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribePrefixListAttributes invokes the ecs.DescribePrefixListAttributes API synchronously -func (client *Client) DescribePrefixListAttributes(request *DescribePrefixListAttributesRequest) (response *DescribePrefixListAttributesResponse, err error) { - response = CreateDescribePrefixListAttributesResponse() - err = client.DoAction(request, response) - return -} - -// DescribePrefixListAttributesWithChan invokes the ecs.DescribePrefixListAttributes API asynchronously -func (client *Client) DescribePrefixListAttributesWithChan(request *DescribePrefixListAttributesRequest) (<-chan *DescribePrefixListAttributesResponse, <-chan error) { - responseChan := make(chan *DescribePrefixListAttributesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePrefixListAttributes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePrefixListAttributesWithCallback invokes the ecs.DescribePrefixListAttributes API asynchronously -func (client *Client) DescribePrefixListAttributesWithCallback(request *DescribePrefixListAttributesRequest, callback func(response *DescribePrefixListAttributesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePrefixListAttributesResponse - var err error - defer close(result) - response, err = client.DescribePrefixListAttributes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePrefixListAttributesRequest is the request struct for api DescribePrefixListAttributes -type DescribePrefixListAttributesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PrefixListId string `position:"Query" name:"PrefixListId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribePrefixListAttributesResponse is the response struct for api DescribePrefixListAttributes -type DescribePrefixListAttributesResponse struct { - *responses.BaseResponse - CreationTime string `json:"CreationTime" xml:"CreationTime"` - MaxEntries int `json:"MaxEntries" xml:"MaxEntries"` - RequestId string `json:"RequestId" xml:"RequestId"` - Description string `json:"Description" xml:"Description"` - AddressFamily string `json:"AddressFamily" xml:"AddressFamily"` - PrefixListName string `json:"PrefixListName" xml:"PrefixListName"` - PrefixListId string `json:"PrefixListId" xml:"PrefixListId"` - Entries Entries `json:"Entries" xml:"Entries"` -} - -// CreateDescribePrefixListAttributesRequest creates a request to invoke DescribePrefixListAttributes API -func CreateDescribePrefixListAttributesRequest() (request *DescribePrefixListAttributesRequest) { - request = &DescribePrefixListAttributesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrefixListAttributes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePrefixListAttributesResponse creates a response to parse from DescribePrefixListAttributes response -func CreateDescribePrefixListAttributesResponse() (response *DescribePrefixListAttributesResponse) { - response = &DescribePrefixListAttributesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_lists.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_lists.go deleted file mode 100644 index 694ef69a49..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_lists.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribePrefixLists invokes the ecs.DescribePrefixLists API synchronously -func (client *Client) DescribePrefixLists(request *DescribePrefixListsRequest) (response *DescribePrefixListsResponse, err error) { - response = CreateDescribePrefixListsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePrefixListsWithChan invokes the ecs.DescribePrefixLists API asynchronously -func (client *Client) DescribePrefixListsWithChan(request *DescribePrefixListsRequest) (<-chan *DescribePrefixListsResponse, <-chan error) { - responseChan := make(chan *DescribePrefixListsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePrefixLists(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePrefixListsWithCallback invokes the ecs.DescribePrefixLists API asynchronously -func (client *Client) DescribePrefixListsWithCallback(request *DescribePrefixListsRequest, callback func(response *DescribePrefixListsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePrefixListsResponse - var err error - defer close(result) - response, err = client.DescribePrefixLists(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePrefixListsRequest is the request struct for api DescribePrefixLists -type DescribePrefixListsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextToken string `position:"Query" name:"NextToken"` - PrefixListId *[]string `position:"Query" name:"PrefixListId" type:"Repeated"` - AddressFamily string `position:"Query" name:"AddressFamily"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PrefixListName string `position:"Query" name:"PrefixListName"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribePrefixListsResponse is the response struct for api DescribePrefixLists -type DescribePrefixListsResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - PrefixLists PrefixLists `json:"PrefixLists" xml:"PrefixLists"` -} - -// CreateDescribePrefixListsRequest creates a request to invoke DescribePrefixLists API -func CreateDescribePrefixListsRequest() (request *DescribePrefixListsRequest) { - request = &DescribePrefixListsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrefixLists", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePrefixListsResponse creates a response to parse from DescribePrefixLists response -func CreateDescribePrefixListsResponse() (response *DescribePrefixListsResponse) { - response = &DescribePrefixListsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go deleted file mode 100644 index fc6f53cd77..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go +++ /dev/null @@ -1,167 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribePrice invokes the ecs.DescribePrice API synchronously -func (client *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) { - response = CreateDescribePriceResponse() - err = client.DoAction(request, response) - return -} - -// DescribePriceWithChan invokes the ecs.DescribePrice API asynchronously -func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-chan *DescribePriceResponse, <-chan error) { - responseChan := make(chan *DescribePriceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePrice(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePriceWithCallback invokes the ecs.DescribePrice API asynchronously -func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, callback func(response *DescribePriceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePriceResponse - var err error - defer close(result) - response, err = client.DescribePrice(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePriceRequest is the request struct for api DescribePrice -type DescribePriceRequest struct { - *requests.RpcRequest - DataDisk3Size requests.Integer `position:"Query" name:"DataDisk.3.Size"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DataDisk3Category string `position:"Query" name:"DataDisk.3.Category"` - Isp string `position:"Query" name:"Isp"` - StartTime string `position:"Query" name:"StartTime"` - DataDisk4Size requests.Integer `position:"Query" name:"DataDisk.4.Size"` - PriceUnit string `position:"Query" name:"PriceUnit"` - Period requests.Integer `position:"Query" name:"Period"` - DataDisk1PerformanceLevel string `position:"Query" name:"DataDisk.1.PerformanceLevel"` - AssuranceTimes string `position:"Query" name:"AssuranceTimes"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions DescribePricePromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - InstanceCpuCoreCount requests.Integer `position:"Query" name:"InstanceCpuCoreCount"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` - InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` - InstanceTypeList *[]string `position:"Query" name:"InstanceTypeList" type:"Repeated"` - DataDisk3PerformanceLevel string `position:"Query" name:"DataDisk.3.PerformanceLevel"` - ImageId string `position:"Query" name:"ImageId"` - IoOptimized string `position:"Query" name:"IoOptimized"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - Platform string `position:"Query" name:"Platform"` - Capacity requests.Integer `position:"Query" name:"Capacity"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - DataDisk4Category string `position:"Query" name:"DataDisk.4.Category"` - DataDisk4PerformanceLevel string `position:"Query" name:"DataDisk.4.PerformanceLevel"` - Scope string `position:"Query" name:"Scope"` - SchedulerOptionsDedicatedHostId string `position:"Query" name:"SchedulerOptions.DedicatedHostId"` - InstanceType string `position:"Query" name:"InstanceType"` - DedicatedHostType string `position:"Query" name:"DedicatedHostType"` - DataDisk2Category string `position:"Query" name:"DataDisk.2.Category"` - DataDisk1Size requests.Integer `position:"Query" name:"DataDisk.1.Size"` - Amount requests.Integer `position:"Query" name:"Amount"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DataDisk2Size requests.Integer `position:"Query" name:"DataDisk.2.Size"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - ResourceType string `position:"Query" name:"ResourceType"` - DataDisk *[]DescribePriceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - DataDisk1Category string `position:"Query" name:"DataDisk.1.Category"` - DataDisk2PerformanceLevel string `position:"Query" name:"DataDisk.2.PerformanceLevel"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - OfferingType string `position:"Query" name:"OfferingType"` - RecurrenceRules *[]DescribePriceRecurrenceRules `position:"Query" name:"RecurrenceRules" type:"Repeated"` -} - -// DescribePricePromotionOptions is a repeated param struct in DescribePriceRequest -type DescribePricePromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// DescribePriceDataDisk is a repeated param struct in DescribePriceRequest -type DescribePriceDataDisk struct { - ProvisionedIops string `name:"ProvisionedIops"` - Size string `name:"Size"` - PerformanceLevel string `name:"PerformanceLevel"` - Category string `name:"Category"` -} - -// DescribePriceRecurrenceRules is a repeated param struct in DescribePriceRequest -type DescribePriceRecurrenceRules struct { - EndHour string `name:"EndHour"` - StartHour string `name:"StartHour"` - RecurrenceValue string `name:"RecurrenceValue"` - RecurrenceType string `name:"RecurrenceType"` -} - -// DescribePriceResponse is the response struct for api DescribePrice -type DescribePriceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` -} - -// CreateDescribePriceRequest creates a request to invoke DescribePrice API -func CreateDescribePriceRequest() (request *DescribePriceRequest) { - request = &DescribePriceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrice", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePriceResponse creates a response to parse from DescribePrice response -func CreateDescribePriceResponse() (response *DescribePriceResponse) { - response = &DescribePriceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go deleted file mode 100644 index 654828076c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeRecommendInstanceType invokes the ecs.DescribeRecommendInstanceType API synchronously -func (client *Client) DescribeRecommendInstanceType(request *DescribeRecommendInstanceTypeRequest) (response *DescribeRecommendInstanceTypeResponse, err error) { - response = CreateDescribeRecommendInstanceTypeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRecommendInstanceTypeWithChan invokes the ecs.DescribeRecommendInstanceType API asynchronously -func (client *Client) DescribeRecommendInstanceTypeWithChan(request *DescribeRecommendInstanceTypeRequest) (<-chan *DescribeRecommendInstanceTypeResponse, <-chan error) { - responseChan := make(chan *DescribeRecommendInstanceTypeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRecommendInstanceType(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRecommendInstanceTypeWithCallback invokes the ecs.DescribeRecommendInstanceType API asynchronously -func (client *Client) DescribeRecommendInstanceTypeWithCallback(request *DescribeRecommendInstanceTypeRequest, callback func(response *DescribeRecommendInstanceTypeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRecommendInstanceTypeResponse - var err error - defer close(result) - response, err = client.DescribeRecommendInstanceType(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRecommendInstanceTypeRequest is the request struct for api DescribeRecommendInstanceType -type DescribeRecommendInstanceTypeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Memory requests.Float `position:"Query" name:"Memory"` - IoOptimized string `position:"Query" name:"IoOptimized"` - NetworkType string `position:"Query" name:"NetworkType"` - Scene string `position:"Query" name:"Scene"` - Cores requests.Integer `position:"Query" name:"Cores"` - SystemDiskCategory string `position:"Query" name:"SystemDiskCategory"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - MaxPrice requests.Float `position:"Query" name:"MaxPrice"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ZoneMatchMode string `position:"Query" name:"ZoneMatchMode"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily *[]string `position:"Query" name:"InstanceTypeFamily" type:"Repeated"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - PriorityStrategy string `position:"Query" name:"PriorityStrategy"` - InstanceFamilyLevel string `position:"Query" name:"InstanceFamilyLevel"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// DescribeRecommendInstanceTypeResponse is the response struct for api DescribeRecommendInstanceType -type DescribeRecommendInstanceTypeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Data Data `json:"Data" xml:"Data"` -} - -// CreateDescribeRecommendInstanceTypeRequest creates a request to invoke DescribeRecommendInstanceType API -func CreateDescribeRecommendInstanceTypeRequest() (request *DescribeRecommendInstanceTypeRequest) { - request = &DescribeRecommendInstanceTypeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRecommendInstanceType", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRecommendInstanceTypeResponse creates a response to parse from DescribeRecommendInstanceType response -func CreateDescribeRecommendInstanceTypeResponse() (response *DescribeRecommendInstanceTypeResponse) { - response = &DescribeRecommendInstanceTypeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go deleted file mode 100644 index 8036b97c0d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeRegions invokes the ecs.DescribeRegions API synchronously -func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { - response = CreateDescribeRegionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRegionsWithChan invokes the ecs.DescribeRegions API asynchronously -func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) { - responseChan := make(chan *DescribeRegionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRegions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRegionsWithCallback invokes the ecs.DescribeRegions API asynchronously -func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRegionsResponse - var err error - defer close(result) - response, err = client.DescribeRegions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRegionsRequest is the request struct for api DescribeRegions -type DescribeRegionsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` -} - -// DescribeRegionsResponse is the response struct for api DescribeRegions -type DescribeRegionsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Regions Regions `json:"Regions" xml:"Regions"` -} - -// CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API -func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { - request = &DescribeRegionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRegions", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRegionsResponse creates a response to parse from DescribeRegions response -func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse) { - response = &DescribeRegionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go deleted file mode 100644 index a15cb7e129..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeRenewalPrice invokes the ecs.DescribeRenewalPrice API synchronously -func (client *Client) DescribeRenewalPrice(request *DescribeRenewalPriceRequest) (response *DescribeRenewalPriceResponse, err error) { - response = CreateDescribeRenewalPriceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRenewalPriceWithChan invokes the ecs.DescribeRenewalPrice API asynchronously -func (client *Client) DescribeRenewalPriceWithChan(request *DescribeRenewalPriceRequest) (<-chan *DescribeRenewalPriceResponse, <-chan error) { - responseChan := make(chan *DescribeRenewalPriceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRenewalPrice(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRenewalPriceWithCallback invokes the ecs.DescribeRenewalPrice API asynchronously -func (client *Client) DescribeRenewalPriceWithCallback(request *DescribeRenewalPriceRequest, callback func(response *DescribeRenewalPriceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRenewalPriceResponse - var err error - defer close(result) - response, err = client.DescribeRenewalPrice(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRenewalPriceRequest is the request struct for api DescribeRenewalPrice -type DescribeRenewalPriceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PriceUnit string `position:"Query" name:"PriceUnit"` - ResourceId string `position:"Query" name:"ResourceId"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ExpectedRenewDay requests.Integer `position:"Query" name:"ExpectedRenewDay"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - PromotionOptions DescribeRenewalPricePromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` -} - -// DescribeRenewalPricePromotionOptions is a repeated param struct in DescribeRenewalPriceRequest -type DescribeRenewalPricePromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// DescribeRenewalPriceResponse is the response struct for api DescribeRenewalPrice -type DescribeRenewalPriceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` -} - -// CreateDescribeRenewalPriceRequest creates a request to invoke DescribeRenewalPrice API -func CreateDescribeRenewalPriceRequest() (request *DescribeRenewalPriceRequest) { - request = &DescribeRenewalPriceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRenewalPrice", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRenewalPriceResponse creates a response to parse from DescribeRenewalPrice response -func CreateDescribeRenewalPriceResponse() (response *DescribeRenewalPriceResponse) { - response = &DescribeRenewalPriceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instance_auto_renew_attribute.go deleted file mode 100644 index c7ba840564..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instance_auto_renew_attribute.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeReservedInstanceAutoRenewAttribute invokes the ecs.DescribeReservedInstanceAutoRenewAttribute API synchronously -func (client *Client) DescribeReservedInstanceAutoRenewAttribute(request *DescribeReservedInstanceAutoRenewAttributeRequest) (response *DescribeReservedInstanceAutoRenewAttributeResponse, err error) { - response = CreateDescribeReservedInstanceAutoRenewAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeReservedInstanceAutoRenewAttributeWithChan invokes the ecs.DescribeReservedInstanceAutoRenewAttribute API asynchronously -func (client *Client) DescribeReservedInstanceAutoRenewAttributeWithChan(request *DescribeReservedInstanceAutoRenewAttributeRequest) (<-chan *DescribeReservedInstanceAutoRenewAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeReservedInstanceAutoRenewAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeReservedInstanceAutoRenewAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeReservedInstanceAutoRenewAttributeWithCallback invokes the ecs.DescribeReservedInstanceAutoRenewAttribute API asynchronously -func (client *Client) DescribeReservedInstanceAutoRenewAttributeWithCallback(request *DescribeReservedInstanceAutoRenewAttributeRequest, callback func(response *DescribeReservedInstanceAutoRenewAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeReservedInstanceAutoRenewAttributeResponse - var err error - defer close(result) - response, err = client.DescribeReservedInstanceAutoRenewAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeReservedInstanceAutoRenewAttributeRequest is the request struct for api DescribeReservedInstanceAutoRenewAttribute -type DescribeReservedInstanceAutoRenewAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` -} - -// DescribeReservedInstanceAutoRenewAttributeResponse is the response struct for api DescribeReservedInstanceAutoRenewAttribute -type DescribeReservedInstanceAutoRenewAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ReservedInstanceRenewAttributes ReservedInstanceRenewAttributes `json:"ReservedInstanceRenewAttributes" xml:"ReservedInstanceRenewAttributes"` -} - -// CreateDescribeReservedInstanceAutoRenewAttributeRequest creates a request to invoke DescribeReservedInstanceAutoRenewAttribute API -func CreateDescribeReservedInstanceAutoRenewAttributeRequest() (request *DescribeReservedInstanceAutoRenewAttributeRequest) { - request = &DescribeReservedInstanceAutoRenewAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeReservedInstanceAutoRenewAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeReservedInstanceAutoRenewAttributeResponse creates a response to parse from DescribeReservedInstanceAutoRenewAttribute response -func CreateDescribeReservedInstanceAutoRenewAttributeResponse() (response *DescribeReservedInstanceAutoRenewAttributeResponse) { - response = &DescribeReservedInstanceAutoRenewAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go deleted file mode 100644 index d76a777738..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go +++ /dev/null @@ -1,125 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeReservedInstances invokes the ecs.DescribeReservedInstances API synchronously -func (client *Client) DescribeReservedInstances(request *DescribeReservedInstancesRequest) (response *DescribeReservedInstancesResponse, err error) { - response = CreateDescribeReservedInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeReservedInstancesWithChan invokes the ecs.DescribeReservedInstances API asynchronously -func (client *Client) DescribeReservedInstancesWithChan(request *DescribeReservedInstancesRequest) (<-chan *DescribeReservedInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeReservedInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeReservedInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeReservedInstancesWithCallback invokes the ecs.DescribeReservedInstances API asynchronously -func (client *Client) DescribeReservedInstancesWithCallback(request *DescribeReservedInstancesRequest, callback func(response *DescribeReservedInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeReservedInstancesResponse - var err error - defer close(result) - response, err = client.DescribeReservedInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeReservedInstancesRequest is the request struct for api DescribeReservedInstances -type DescribeReservedInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - LockReason string `position:"Query" name:"LockReason"` - Scope string `position:"Query" name:"Scope"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]DescribeReservedInstancesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` - OfferingType string `position:"Query" name:"OfferingType"` - ZoneId string `position:"Query" name:"ZoneId"` - ReservedInstanceName string `position:"Query" name:"ReservedInstanceName"` - AllocationType string `position:"Query" name:"AllocationType"` - Status *[]string `position:"Query" name:"Status" type:"Repeated"` -} - -// DescribeReservedInstancesTag is a repeated param struct in DescribeReservedInstancesRequest -type DescribeReservedInstancesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeReservedInstancesResponse is the response struct for api DescribeReservedInstances -type DescribeReservedInstancesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - ReservedInstances ReservedInstances `json:"ReservedInstances" xml:"ReservedInstances"` -} - -// CreateDescribeReservedInstancesRequest creates a request to invoke DescribeReservedInstances API -func CreateDescribeReservedInstancesRequest() (request *DescribeReservedInstancesRequest) { - request = &DescribeReservedInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeReservedInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeReservedInstancesResponse creates a response to parse from DescribeReservedInstances response -func CreateDescribeReservedInstancesResponse() (response *DescribeReservedInstancesResponse) { - response = &DescribeReservedInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go deleted file mode 100644 index 3dccad16eb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeResourceByTags invokes the ecs.DescribeResourceByTags API synchronously -func (client *Client) DescribeResourceByTags(request *DescribeResourceByTagsRequest) (response *DescribeResourceByTagsResponse, err error) { - response = CreateDescribeResourceByTagsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeResourceByTagsWithChan invokes the ecs.DescribeResourceByTags API asynchronously -func (client *Client) DescribeResourceByTagsWithChan(request *DescribeResourceByTagsRequest) (<-chan *DescribeResourceByTagsResponse, <-chan error) { - responseChan := make(chan *DescribeResourceByTagsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeResourceByTags(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeResourceByTagsWithCallback invokes the ecs.DescribeResourceByTags API asynchronously -func (client *Client) DescribeResourceByTagsWithCallback(request *DescribeResourceByTagsRequest, callback func(response *DescribeResourceByTagsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeResourceByTagsResponse - var err error - defer close(result) - response, err = client.DescribeResourceByTags(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeResourceByTagsRequest is the request struct for api DescribeResourceByTags -type DescribeResourceByTagsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeResourceByTagsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// DescribeResourceByTagsTag is a repeated param struct in DescribeResourceByTagsRequest -type DescribeResourceByTagsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeResourceByTagsResponse is the response struct for api DescribeResourceByTags -type DescribeResourceByTagsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Resources Resources `json:"Resources" xml:"Resources"` -} - -// CreateDescribeResourceByTagsRequest creates a request to invoke DescribeResourceByTags API -func CreateDescribeResourceByTagsRequest() (request *DescribeResourceByTagsRequest) { - request = &DescribeResourceByTagsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeResourceByTags", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeResourceByTagsResponse creates a response to parse from DescribeResourceByTags response -func CreateDescribeResourceByTagsResponse() (response *DescribeResourceByTagsResponse) { - response = &DescribeResourceByTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go deleted file mode 100644 index d6922788f8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeResourcesModification invokes the ecs.DescribeResourcesModification API synchronously -func (client *Client) DescribeResourcesModification(request *DescribeResourcesModificationRequest) (response *DescribeResourcesModificationResponse, err error) { - response = CreateDescribeResourcesModificationResponse() - err = client.DoAction(request, response) - return -} - -// DescribeResourcesModificationWithChan invokes the ecs.DescribeResourcesModification API asynchronously -func (client *Client) DescribeResourcesModificationWithChan(request *DescribeResourcesModificationRequest) (<-chan *DescribeResourcesModificationResponse, <-chan error) { - responseChan := make(chan *DescribeResourcesModificationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeResourcesModification(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeResourcesModificationWithCallback invokes the ecs.DescribeResourcesModification API asynchronously -func (client *Client) DescribeResourcesModificationWithCallback(request *DescribeResourcesModificationRequest, callback func(response *DescribeResourcesModificationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeResourcesModificationResponse - var err error - defer close(result) - response, err = client.DescribeResourcesModification(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeResourcesModificationRequest is the request struct for api DescribeResourcesModification -type DescribeResourcesModificationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Memory requests.Float `position:"Query" name:"Memory"` - Cores requests.Integer `position:"Query" name:"Cores"` - MigrateAcrossZone requests.Boolean `position:"Query" name:"MigrateAcrossZone"` - InstanceType string `position:"Query" name:"InstanceType"` - ResourceId string `position:"Query" name:"ResourceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OperationType string `position:"Query" name:"OperationType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DestinationResource string `position:"Query" name:"DestinationResource"` - ZoneId string `position:"Query" name:"ZoneId"` - Conditions *[]string `position:"Query" name:"Conditions" type:"Repeated"` -} - -// DescribeResourcesModificationResponse is the response struct for api DescribeResourcesModification -type DescribeResourcesModificationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AvailableZones AvailableZonesInDescribeResourcesModification `json:"AvailableZones" xml:"AvailableZones"` -} - -// CreateDescribeResourcesModificationRequest creates a request to invoke DescribeResourcesModification API -func CreateDescribeResourcesModificationRequest() (request *DescribeResourcesModificationRequest) { - request = &DescribeResourcesModificationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeResourcesModification", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeResourcesModificationResponse creates a response to parse from DescribeResourcesModification response -func CreateDescribeResourcesModificationResponse() (response *DescribeResourcesModificationResponse) { - response = &DescribeResourcesModificationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go deleted file mode 100644 index 9753f3c3ad..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeRouteTables invokes the ecs.DescribeRouteTables API synchronously -func (client *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (response *DescribeRouteTablesResponse, err error) { - response = CreateDescribeRouteTablesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRouteTablesWithChan invokes the ecs.DescribeRouteTables API asynchronously -func (client *Client) DescribeRouteTablesWithChan(request *DescribeRouteTablesRequest) (<-chan *DescribeRouteTablesResponse, <-chan error) { - responseChan := make(chan *DescribeRouteTablesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRouteTables(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRouteTablesWithCallback invokes the ecs.DescribeRouteTables API asynchronously -func (client *Client) DescribeRouteTablesWithCallback(request *DescribeRouteTablesRequest, callback func(response *DescribeRouteTablesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRouteTablesResponse - var err error - defer close(result) - response, err = client.DescribeRouteTables(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRouteTablesRequest is the request struct for api DescribeRouteTables -type DescribeRouteTablesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - VRouterId string `position:"Query" name:"VRouterId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - RouteTableName string `position:"Query" name:"RouteTableName"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - RouteTableId string `position:"Query" name:"RouteTableId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RouterType string `position:"Query" name:"RouterType"` - RouterId string `position:"Query" name:"RouterId"` -} - -// DescribeRouteTablesResponse is the response struct for api DescribeRouteTables -type DescribeRouteTablesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RouteTables RouteTables `json:"RouteTables" xml:"RouteTables"` -} - -// CreateDescribeRouteTablesRequest creates a request to invoke DescribeRouteTables API -func CreateDescribeRouteTablesRequest() (request *DescribeRouteTablesRequest) { - request = &DescribeRouteTablesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRouteTables", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRouteTablesResponse creates a response to parse from DescribeRouteTables response -func CreateDescribeRouteTablesResponse() (response *DescribeRouteTablesResponse) { - response = &DescribeRouteTablesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go deleted file mode 100644 index 15080e3b97..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeRouterInterfaces invokes the ecs.DescribeRouterInterfaces API synchronously -func (client *Client) DescribeRouterInterfaces(request *DescribeRouterInterfacesRequest) (response *DescribeRouterInterfacesResponse, err error) { - response = CreateDescribeRouterInterfacesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRouterInterfacesWithChan invokes the ecs.DescribeRouterInterfaces API asynchronously -func (client *Client) DescribeRouterInterfacesWithChan(request *DescribeRouterInterfacesRequest) (<-chan *DescribeRouterInterfacesResponse, <-chan error) { - responseChan := make(chan *DescribeRouterInterfacesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRouterInterfaces(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRouterInterfacesWithCallback invokes the ecs.DescribeRouterInterfaces API asynchronously -func (client *Client) DescribeRouterInterfacesWithCallback(request *DescribeRouterInterfacesRequest, callback func(response *DescribeRouterInterfacesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRouterInterfacesResponse - var err error - defer close(result) - response, err = client.DescribeRouterInterfaces(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRouterInterfacesRequest is the request struct for api DescribeRouterInterfaces -type DescribeRouterInterfacesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribeRouterInterfacesFilter `position:"Query" name:"Filter" type:"Repeated"` -} - -// DescribeRouterInterfacesFilter is a repeated param struct in DescribeRouterInterfacesRequest -type DescribeRouterInterfacesFilter struct { - Value *[]string `name:"Value" type:"Repeated"` - Key string `name:"Key"` -} - -// DescribeRouterInterfacesResponse is the response struct for api DescribeRouterInterfaces -type DescribeRouterInterfacesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RouterInterfaceSet RouterInterfaceSet `json:"RouterInterfaceSet" xml:"RouterInterfaceSet"` -} - -// CreateDescribeRouterInterfacesRequest creates a request to invoke DescribeRouterInterfaces API -func CreateDescribeRouterInterfacesRequest() (request *DescribeRouterInterfacesRequest) { - request = &DescribeRouterInterfacesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRouterInterfaces", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRouterInterfacesResponse creates a response to parse from DescribeRouterInterfaces response -func CreateDescribeRouterInterfacesResponse() (response *DescribeRouterInterfacesResponse) { - response = &DescribeRouterInterfacesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_estimation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_estimation.go deleted file mode 100644 index 1d6bb38f71..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_estimation.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSavingsPlanEstimation invokes the ecs.DescribeSavingsPlanEstimation API synchronously -func (client *Client) DescribeSavingsPlanEstimation(request *DescribeSavingsPlanEstimationRequest) (response *DescribeSavingsPlanEstimationResponse, err error) { - response = CreateDescribeSavingsPlanEstimationResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSavingsPlanEstimationWithChan invokes the ecs.DescribeSavingsPlanEstimation API asynchronously -func (client *Client) DescribeSavingsPlanEstimationWithChan(request *DescribeSavingsPlanEstimationRequest) (<-chan *DescribeSavingsPlanEstimationResponse, <-chan error) { - responseChan := make(chan *DescribeSavingsPlanEstimationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSavingsPlanEstimation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSavingsPlanEstimationWithCallback invokes the ecs.DescribeSavingsPlanEstimation API asynchronously -func (client *Client) DescribeSavingsPlanEstimationWithCallback(request *DescribeSavingsPlanEstimationRequest, callback func(response *DescribeSavingsPlanEstimationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSavingsPlanEstimationResponse - var err error - defer close(result) - response, err = client.DescribeSavingsPlanEstimation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSavingsPlanEstimationRequest is the request struct for api DescribeSavingsPlanEstimation -type DescribeSavingsPlanEstimationRequest struct { - *requests.RpcRequest - ResourceId string `position:"Query" name:"ResourceId"` - Period string `position:"Query" name:"Period"` - PlanType string `position:"Query" name:"PlanType"` - InstanceTypeScope string `position:"Query" name:"InstanceTypeScope"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` - EstimationResource string `position:"Query" name:"EstimationResource"` -} - -// DescribeSavingsPlanEstimationResponse is the response struct for api DescribeSavingsPlanEstimation -type DescribeSavingsPlanEstimationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` - CommittedAmount string `json:"CommittedAmount" xml:"CommittedAmount"` - Currency string `json:"Currency" xml:"Currency"` - OfferingType string `json:"OfferingType" xml:"OfferingType"` - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - Period int `json:"Period" xml:"Period"` - PlanType string `json:"PlanType" xml:"PlanType"` - InstanceTypeFamilyGroup string `json:"InstanceTypeFamilyGroup" xml:"InstanceTypeFamilyGroup"` -} - -// CreateDescribeSavingsPlanEstimationRequest creates a request to invoke DescribeSavingsPlanEstimation API -func CreateDescribeSavingsPlanEstimationRequest() (request *DescribeSavingsPlanEstimationRequest) { - request = &DescribeSavingsPlanEstimationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSavingsPlanEstimation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSavingsPlanEstimationResponse creates a response to parse from DescribeSavingsPlanEstimation response -func CreateDescribeSavingsPlanEstimationResponse() (response *DescribeSavingsPlanEstimationResponse) { - response = &DescribeSavingsPlanEstimationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_price.go deleted file mode 100644 index bfb7506cac..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_price.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSavingsPlanPrice invokes the ecs.DescribeSavingsPlanPrice API synchronously -func (client *Client) DescribeSavingsPlanPrice(request *DescribeSavingsPlanPriceRequest) (response *DescribeSavingsPlanPriceResponse, err error) { - response = CreateDescribeSavingsPlanPriceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSavingsPlanPriceWithChan invokes the ecs.DescribeSavingsPlanPrice API asynchronously -func (client *Client) DescribeSavingsPlanPriceWithChan(request *DescribeSavingsPlanPriceRequest) (<-chan *DescribeSavingsPlanPriceResponse, <-chan error) { - responseChan := make(chan *DescribeSavingsPlanPriceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSavingsPlanPrice(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSavingsPlanPriceWithCallback invokes the ecs.DescribeSavingsPlanPrice API asynchronously -func (client *Client) DescribeSavingsPlanPriceWithCallback(request *DescribeSavingsPlanPriceRequest, callback func(response *DescribeSavingsPlanPriceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSavingsPlanPriceResponse - var err error - defer close(result) - response, err = client.DescribeSavingsPlanPrice(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSavingsPlanPriceRequest is the request struct for api DescribeSavingsPlanPrice -type DescribeSavingsPlanPriceRequest struct { - *requests.RpcRequest - InstanceTypeFamilyGroup string `position:"Query" name:"InstanceTypeFamilyGroup"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - PlanType string `position:"Query" name:"PlanType"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` - CommittedAmount string `position:"Query" name:"CommittedAmount"` -} - -// DescribeSavingsPlanPriceResponse is the response struct for api DescribeSavingsPlanPrice -type DescribeSavingsPlanPriceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PriceInfo PriceInfoInDescribeSavingsPlanPrice `json:"PriceInfo" xml:"PriceInfo"` -} - -// CreateDescribeSavingsPlanPriceRequest creates a request to invoke DescribeSavingsPlanPrice API -func CreateDescribeSavingsPlanPriceRequest() (request *DescribeSavingsPlanPriceRequest) { - request = &DescribeSavingsPlanPriceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSavingsPlanPrice", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSavingsPlanPriceResponse creates a response to parse from DescribeSavingsPlanPrice response -func CreateDescribeSavingsPlanPriceResponse() (response *DescribeSavingsPlanPriceResponse) { - response = &DescribeSavingsPlanPriceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go deleted file mode 100644 index fca2f4f80a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go +++ /dev/null @@ -1,116 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSecurityGroupAttribute invokes the ecs.DescribeSecurityGroupAttribute API synchronously -func (client *Client) DescribeSecurityGroupAttribute(request *DescribeSecurityGroupAttributeRequest) (response *DescribeSecurityGroupAttributeResponse, err error) { - response = CreateDescribeSecurityGroupAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSecurityGroupAttributeWithChan invokes the ecs.DescribeSecurityGroupAttribute API asynchronously -func (client *Client) DescribeSecurityGroupAttributeWithChan(request *DescribeSecurityGroupAttributeRequest) (<-chan *DescribeSecurityGroupAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeSecurityGroupAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSecurityGroupAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSecurityGroupAttributeWithCallback invokes the ecs.DescribeSecurityGroupAttribute API asynchronously -func (client *Client) DescribeSecurityGroupAttributeWithCallback(request *DescribeSecurityGroupAttributeRequest, callback func(response *DescribeSecurityGroupAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSecurityGroupAttributeResponse - var err error - defer close(result) - response, err = client.DescribeSecurityGroupAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSecurityGroupAttributeRequest is the request struct for api DescribeSecurityGroupAttribute -type DescribeSecurityGroupAttributeRequest struct { - *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - NextToken string `position:"Query" name:"NextToken"` - Direction string `position:"Query" name:"Direction"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeSecurityGroupAttributeResponse is the response struct for api DescribeSecurityGroupAttribute -type DescribeSecurityGroupAttributeResponse struct { - *responses.BaseResponse - VpcId string `json:"VpcId" xml:"VpcId"` - RequestId string `json:"RequestId" xml:"RequestId"` - InnerAccessPolicy string `json:"InnerAccessPolicy" xml:"InnerAccessPolicy"` - Description string `json:"Description" xml:"Description"` - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - SecurityGroupName string `json:"SecurityGroupName" xml:"SecurityGroupName"` - RegionId string `json:"RegionId" xml:"RegionId"` - NextToken string `json:"NextToken" xml:"NextToken"` - ReferencedInfo ReferencedInfo `json:"ReferencedInfo" xml:"ReferencedInfo"` - Permissions Permissions `json:"Permissions" xml:"Permissions"` -} - -// CreateDescribeSecurityGroupAttributeRequest creates a request to invoke DescribeSecurityGroupAttribute API -func CreateDescribeSecurityGroupAttributeRequest() (request *DescribeSecurityGroupAttributeRequest) { - request = &DescribeSecurityGroupAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroupAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSecurityGroupAttributeResponse creates a response to parse from DescribeSecurityGroupAttribute response -func CreateDescribeSecurityGroupAttributeResponse() (response *DescribeSecurityGroupAttributeResponse) { - response = &DescribeSecurityGroupAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go deleted file mode 100644 index 1db290c86c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSecurityGroupReferences invokes the ecs.DescribeSecurityGroupReferences API synchronously -func (client *Client) DescribeSecurityGroupReferences(request *DescribeSecurityGroupReferencesRequest) (response *DescribeSecurityGroupReferencesResponse, err error) { - response = CreateDescribeSecurityGroupReferencesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSecurityGroupReferencesWithChan invokes the ecs.DescribeSecurityGroupReferences API asynchronously -func (client *Client) DescribeSecurityGroupReferencesWithChan(request *DescribeSecurityGroupReferencesRequest) (<-chan *DescribeSecurityGroupReferencesResponse, <-chan error) { - responseChan := make(chan *DescribeSecurityGroupReferencesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSecurityGroupReferences(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSecurityGroupReferencesWithCallback invokes the ecs.DescribeSecurityGroupReferences API asynchronously -func (client *Client) DescribeSecurityGroupReferencesWithCallback(request *DescribeSecurityGroupReferencesRequest, callback func(response *DescribeSecurityGroupReferencesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSecurityGroupReferencesResponse - var err error - defer close(result) - response, err = client.DescribeSecurityGroupReferences(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSecurityGroupReferencesRequest is the request struct for api DescribeSecurityGroupReferences -type DescribeSecurityGroupReferencesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeSecurityGroupReferencesResponse is the response struct for api DescribeSecurityGroupReferences -type DescribeSecurityGroupReferencesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SecurityGroupReferences SecurityGroupReferences `json:"SecurityGroupReferences" xml:"SecurityGroupReferences"` -} - -// CreateDescribeSecurityGroupReferencesRequest creates a request to invoke DescribeSecurityGroupReferences API -func CreateDescribeSecurityGroupReferencesRequest() (request *DescribeSecurityGroupReferencesRequest) { - request = &DescribeSecurityGroupReferencesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroupReferences", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSecurityGroupReferencesResponse creates a response to parse from DescribeSecurityGroupReferences response -func CreateDescribeSecurityGroupReferencesResponse() (response *DescribeSecurityGroupReferencesResponse) { - response = &DescribeSecurityGroupReferencesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go deleted file mode 100644 index 159191714b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go +++ /dev/null @@ -1,130 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSecurityGroups invokes the ecs.DescribeSecurityGroups API synchronously -func (client *Client) DescribeSecurityGroups(request *DescribeSecurityGroupsRequest) (response *DescribeSecurityGroupsResponse, err error) { - response = CreateDescribeSecurityGroupsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSecurityGroupsWithChan invokes the ecs.DescribeSecurityGroups API asynchronously -func (client *Client) DescribeSecurityGroupsWithChan(request *DescribeSecurityGroupsRequest) (<-chan *DescribeSecurityGroupsResponse, <-chan error) { - responseChan := make(chan *DescribeSecurityGroupsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSecurityGroups(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSecurityGroupsWithCallback invokes the ecs.DescribeSecurityGroups API asynchronously -func (client *Client) DescribeSecurityGroupsWithCallback(request *DescribeSecurityGroupsRequest, callback func(response *DescribeSecurityGroupsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSecurityGroupsResponse - var err error - defer close(result) - response, err = client.DescribeSecurityGroups(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSecurityGroupsRequest is the request struct for api DescribeSecurityGroups -type DescribeSecurityGroupsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - FuzzyQuery requests.Boolean `position:"Query" name:"FuzzyQuery"` - ServiceManaged requests.Boolean `position:"Query" name:"ServiceManaged"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - IsQueryEcsCount requests.Boolean `position:"Query" name:"IsQueryEcsCount"` - NetworkType string `position:"Query" name:"NetworkType"` - SecurityGroupName string `position:"Query" name:"SecurityGroupName"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeSecurityGroupsTag `position:"Query" name:"Tag" type:"Repeated"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityGroupIds string `position:"Query" name:"SecurityGroupIds"` - SecurityGroupType string `position:"Query" name:"SecurityGroupType"` - VpcId string `position:"Query" name:"VpcId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeSecurityGroupsTag is a repeated param struct in DescribeSecurityGroupsRequest -type DescribeSecurityGroupsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeSecurityGroupsResponse is the response struct for api DescribeSecurityGroups -type DescribeSecurityGroupsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` - NextToken string `json:"NextToken" xml:"NextToken"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - SecurityGroups SecurityGroups `json:"SecurityGroups" xml:"SecurityGroups"` -} - -// CreateDescribeSecurityGroupsRequest creates a request to invoke DescribeSecurityGroups API -func CreateDescribeSecurityGroupsRequest() (request *DescribeSecurityGroupsRequest) { - request = &DescribeSecurityGroupsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroups", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSecurityGroupsResponse creates a response to parse from DescribeSecurityGroups response -func CreateDescribeSecurityGroupsResponse() (response *DescribeSecurityGroupsResponse) { - response = &DescribeSecurityGroupsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_send_file_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_send_file_results.go deleted file mode 100644 index 99519d5506..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_send_file_results.go +++ /dev/null @@ -1,123 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSendFileResults invokes the ecs.DescribeSendFileResults API synchronously -func (client *Client) DescribeSendFileResults(request *DescribeSendFileResultsRequest) (response *DescribeSendFileResultsResponse, err error) { - response = CreateDescribeSendFileResultsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSendFileResultsWithChan invokes the ecs.DescribeSendFileResults API asynchronously -func (client *Client) DescribeSendFileResultsWithChan(request *DescribeSendFileResultsRequest) (<-chan *DescribeSendFileResultsResponse, <-chan error) { - responseChan := make(chan *DescribeSendFileResultsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSendFileResults(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSendFileResultsWithCallback invokes the ecs.DescribeSendFileResults API asynchronously -func (client *Client) DescribeSendFileResultsWithCallback(request *DescribeSendFileResultsRequest, callback func(response *DescribeSendFileResultsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSendFileResultsResponse - var err error - defer close(result) - response, err = client.DescribeSendFileResults(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSendFileResultsRequest is the request struct for api DescribeSendFileResults -type DescribeSendFileResultsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeSendFileResultsTag `position:"Query" name:"Tag" type:"Repeated"` - InvokeId string `position:"Query" name:"InvokeId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - InvocationStatus string `position:"Query" name:"InvocationStatus"` - Name string `position:"Query" name:"Name"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeSendFileResultsTag is a repeated param struct in DescribeSendFileResultsRequest -type DescribeSendFileResultsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeSendFileResultsResponse is the response struct for api DescribeSendFileResults -type DescribeSendFileResultsResponse struct { - *responses.BaseResponse - PageSize int64 `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - Invocations InvocationsInDescribeSendFileResults `json:"Invocations" xml:"Invocations"` -} - -// CreateDescribeSendFileResultsRequest creates a request to invoke DescribeSendFileResults API -func CreateDescribeSendFileResultsRequest() (request *DescribeSendFileResultsRequest) { - request = &DescribeSendFileResultsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSendFileResults", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSendFileResultsResponse creates a response to parse from DescribeSendFileResults response -func CreateDescribeSendFileResultsResponse() (response *DescribeSendFileResultsResponse) { - response = &DescribeSendFileResultsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_groups.go deleted file mode 100644 index 0117b48926..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_groups.go +++ /dev/null @@ -1,119 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSnapshotGroups invokes the ecs.DescribeSnapshotGroups API synchronously -func (client *Client) DescribeSnapshotGroups(request *DescribeSnapshotGroupsRequest) (response *DescribeSnapshotGroupsResponse, err error) { - response = CreateDescribeSnapshotGroupsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSnapshotGroupsWithChan invokes the ecs.DescribeSnapshotGroups API asynchronously -func (client *Client) DescribeSnapshotGroupsWithChan(request *DescribeSnapshotGroupsRequest) (<-chan *DescribeSnapshotGroupsResponse, <-chan error) { - responseChan := make(chan *DescribeSnapshotGroupsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSnapshotGroups(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSnapshotGroupsWithCallback invokes the ecs.DescribeSnapshotGroups API asynchronously -func (client *Client) DescribeSnapshotGroupsWithCallback(request *DescribeSnapshotGroupsRequest, callback func(response *DescribeSnapshotGroupsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSnapshotGroupsResponse - var err error - defer close(result) - response, err = client.DescribeSnapshotGroups(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSnapshotGroupsRequest is the request struct for api DescribeSnapshotGroups -type DescribeSnapshotGroupsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]DescribeSnapshotGroupsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SnapshotGroupId *[]string `position:"Query" name:"SnapshotGroupId" type:"Repeated"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` - InstanceId string `position:"Query" name:"InstanceId"` - Name string `position:"Query" name:"Name"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Status *[]string `position:"Query" name:"Status" type:"Repeated"` -} - -// DescribeSnapshotGroupsTag is a repeated param struct in DescribeSnapshotGroupsRequest -type DescribeSnapshotGroupsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeSnapshotGroupsResponse is the response struct for api DescribeSnapshotGroups -type DescribeSnapshotGroupsResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - SnapshotGroups SnapshotGroups `json:"SnapshotGroups" xml:"SnapshotGroups"` -} - -// CreateDescribeSnapshotGroupsRequest creates a request to invoke DescribeSnapshotGroups API -func CreateDescribeSnapshotGroupsRequest() (request *DescribeSnapshotGroupsRequest) { - request = &DescribeSnapshotGroupsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotGroups", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSnapshotGroupsResponse creates a response to parse from DescribeSnapshotGroups response -func CreateDescribeSnapshotGroupsResponse() (response *DescribeSnapshotGroupsResponse) { - response = &DescribeSnapshotGroupsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go deleted file mode 100644 index 9bdb4d5e9f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSnapshotLinks invokes the ecs.DescribeSnapshotLinks API synchronously -func (client *Client) DescribeSnapshotLinks(request *DescribeSnapshotLinksRequest) (response *DescribeSnapshotLinksResponse, err error) { - response = CreateDescribeSnapshotLinksResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSnapshotLinksWithChan invokes the ecs.DescribeSnapshotLinks API asynchronously -func (client *Client) DescribeSnapshotLinksWithChan(request *DescribeSnapshotLinksRequest) (<-chan *DescribeSnapshotLinksResponse, <-chan error) { - responseChan := make(chan *DescribeSnapshotLinksResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSnapshotLinks(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSnapshotLinksWithCallback invokes the ecs.DescribeSnapshotLinks API asynchronously -func (client *Client) DescribeSnapshotLinksWithCallback(request *DescribeSnapshotLinksRequest, callback func(response *DescribeSnapshotLinksResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSnapshotLinksResponse - var err error - defer close(result) - response, err = client.DescribeSnapshotLinks(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSnapshotLinksRequest is the request struct for api DescribeSnapshotLinks -type DescribeSnapshotLinksRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DiskIds string `position:"Query" name:"DiskIds"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SnapshotLinkIds string `position:"Query" name:"SnapshotLinkIds"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DescribeSnapshotLinksResponse is the response struct for api DescribeSnapshotLinks -type DescribeSnapshotLinksResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - SnapshotLinks SnapshotLinks `json:"SnapshotLinks" xml:"SnapshotLinks"` -} - -// CreateDescribeSnapshotLinksRequest creates a request to invoke DescribeSnapshotLinks API -func CreateDescribeSnapshotLinksRequest() (request *DescribeSnapshotLinksRequest) { - request = &DescribeSnapshotLinksRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotLinks", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSnapshotLinksResponse creates a response to parse from DescribeSnapshotLinks response -func CreateDescribeSnapshotLinksResponse() (response *DescribeSnapshotLinksResponse) { - response = &DescribeSnapshotLinksResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go deleted file mode 100644 index 76f9c2e8f3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSnapshotMonitorData invokes the ecs.DescribeSnapshotMonitorData API synchronously -func (client *Client) DescribeSnapshotMonitorData(request *DescribeSnapshotMonitorDataRequest) (response *DescribeSnapshotMonitorDataResponse, err error) { - response = CreateDescribeSnapshotMonitorDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSnapshotMonitorDataWithChan invokes the ecs.DescribeSnapshotMonitorData API asynchronously -func (client *Client) DescribeSnapshotMonitorDataWithChan(request *DescribeSnapshotMonitorDataRequest) (<-chan *DescribeSnapshotMonitorDataResponse, <-chan error) { - responseChan := make(chan *DescribeSnapshotMonitorDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSnapshotMonitorData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSnapshotMonitorDataWithCallback invokes the ecs.DescribeSnapshotMonitorData API asynchronously -func (client *Client) DescribeSnapshotMonitorDataWithCallback(request *DescribeSnapshotMonitorDataRequest, callback func(response *DescribeSnapshotMonitorDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSnapshotMonitorDataResponse - var err error - defer close(result) - response, err = client.DescribeSnapshotMonitorData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSnapshotMonitorDataRequest is the request struct for api DescribeSnapshotMonitorData -type DescribeSnapshotMonitorDataRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StartTime string `position:"Query" name:"StartTime"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Category string `position:"Query" name:"Category"` -} - -// DescribeSnapshotMonitorDataResponse is the response struct for api DescribeSnapshotMonitorData -type DescribeSnapshotMonitorDataResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorData MonitorDataInDescribeSnapshotMonitorData `json:"MonitorData" xml:"MonitorData"` -} - -// CreateDescribeSnapshotMonitorDataRequest creates a request to invoke DescribeSnapshotMonitorData API -func CreateDescribeSnapshotMonitorDataRequest() (request *DescribeSnapshotMonitorDataRequest) { - request = &DescribeSnapshotMonitorDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotMonitorData", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSnapshotMonitorDataResponse creates a response to parse from DescribeSnapshotMonitorData response -func CreateDescribeSnapshotMonitorDataResponse() (response *DescribeSnapshotMonitorDataResponse) { - response = &DescribeSnapshotMonitorDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go deleted file mode 100644 index 297e73b502..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSnapshotPackage invokes the ecs.DescribeSnapshotPackage API synchronously -func (client *Client) DescribeSnapshotPackage(request *DescribeSnapshotPackageRequest) (response *DescribeSnapshotPackageResponse, err error) { - response = CreateDescribeSnapshotPackageResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSnapshotPackageWithChan invokes the ecs.DescribeSnapshotPackage API asynchronously -func (client *Client) DescribeSnapshotPackageWithChan(request *DescribeSnapshotPackageRequest) (<-chan *DescribeSnapshotPackageResponse, <-chan error) { - responseChan := make(chan *DescribeSnapshotPackageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSnapshotPackage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSnapshotPackageWithCallback invokes the ecs.DescribeSnapshotPackage API asynchronously -func (client *Client) DescribeSnapshotPackageWithCallback(request *DescribeSnapshotPackageRequest, callback func(response *DescribeSnapshotPackageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSnapshotPackageResponse - var err error - defer close(result) - response, err = client.DescribeSnapshotPackage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSnapshotPackageRequest is the request struct for api DescribeSnapshotPackage -type DescribeSnapshotPackageRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeSnapshotPackageResponse is the response struct for api DescribeSnapshotPackage -type DescribeSnapshotPackageResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - SnapshotPackages SnapshotPackages `json:"SnapshotPackages" xml:"SnapshotPackages"` -} - -// CreateDescribeSnapshotPackageRequest creates a request to invoke DescribeSnapshotPackage API -func CreateDescribeSnapshotPackageRequest() (request *DescribeSnapshotPackageRequest) { - request = &DescribeSnapshotPackageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotPackage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSnapshotPackageResponse creates a response to parse from DescribeSnapshotPackage response -func CreateDescribeSnapshotPackageResponse() (response *DescribeSnapshotPackageResponse) { - response = &DescribeSnapshotPackageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go deleted file mode 100644 index fbf5aecfbb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go +++ /dev/null @@ -1,136 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSnapshots invokes the ecs.DescribeSnapshots API synchronously -func (client *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error) { - response = CreateDescribeSnapshotsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSnapshotsWithChan invokes the ecs.DescribeSnapshots API asynchronously -func (client *Client) DescribeSnapshotsWithChan(request *DescribeSnapshotsRequest) (<-chan *DescribeSnapshotsResponse, <-chan error) { - responseChan := make(chan *DescribeSnapshotsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSnapshots(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSnapshotsWithCallback invokes the ecs.DescribeSnapshots API asynchronously -func (client *Client) DescribeSnapshotsWithCallback(request *DescribeSnapshotsRequest, callback func(response *DescribeSnapshotsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSnapshotsResponse - var err error - defer close(result) - response, err = client.DescribeSnapshots(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSnapshotsRequest is the request struct for api DescribeSnapshots -type DescribeSnapshotsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Filter2Value string `position:"Query" name:"Filter.2.Value"` - SnapshotIds string `position:"Query" name:"SnapshotIds"` - Usage string `position:"Query" name:"Usage"` - SnapshotLinkId string `position:"Query" name:"SnapshotLinkId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Filter1Key string `position:"Query" name:"Filter.1.Key"` - Tag *[]DescribeSnapshotsTag `position:"Query" name:"Tag" type:"Repeated"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Status string `position:"Query" name:"Status"` - SnapshotName string `position:"Query" name:"SnapshotName"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DiskId string `position:"Query" name:"DiskId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceDiskType string `position:"Query" name:"SourceDiskType"` - Filter2Key string `position:"Query" name:"Filter.2.Key"` - Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - SnapshotType string `position:"Query" name:"SnapshotType"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` - Category string `position:"Query" name:"Category"` -} - -// DescribeSnapshotsTag is a repeated param struct in DescribeSnapshotsRequest -type DescribeSnapshotsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeSnapshotsResponse is the response struct for api DescribeSnapshots -type DescribeSnapshotsResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Snapshots SnapshotsInDescribeSnapshots `json:"Snapshots" xml:"Snapshots"` -} - -// CreateDescribeSnapshotsRequest creates a request to invoke DescribeSnapshots API -func CreateDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest) { - request = &DescribeSnapshotsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshots", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSnapshotsResponse creates a response to parse from DescribeSnapshots response -func CreateDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse) { - response = &DescribeSnapshotsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go deleted file mode 100644 index b4fdd34e69..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSnapshotsUsage invokes the ecs.DescribeSnapshotsUsage API synchronously -func (client *Client) DescribeSnapshotsUsage(request *DescribeSnapshotsUsageRequest) (response *DescribeSnapshotsUsageResponse, err error) { - response = CreateDescribeSnapshotsUsageResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSnapshotsUsageWithChan invokes the ecs.DescribeSnapshotsUsage API asynchronously -func (client *Client) DescribeSnapshotsUsageWithChan(request *DescribeSnapshotsUsageRequest) (<-chan *DescribeSnapshotsUsageResponse, <-chan error) { - responseChan := make(chan *DescribeSnapshotsUsageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSnapshotsUsage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSnapshotsUsageWithCallback invokes the ecs.DescribeSnapshotsUsage API asynchronously -func (client *Client) DescribeSnapshotsUsageWithCallback(request *DescribeSnapshotsUsageRequest, callback func(response *DescribeSnapshotsUsageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSnapshotsUsageResponse - var err error - defer close(result) - response, err = client.DescribeSnapshotsUsage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSnapshotsUsageRequest is the request struct for api DescribeSnapshotsUsage -type DescribeSnapshotsUsageRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeSnapshotsUsageResponse is the response struct for api DescribeSnapshotsUsage -type DescribeSnapshotsUsageResponse struct { - *responses.BaseResponse - SnapshotSize int64 `json:"SnapshotSize" xml:"SnapshotSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - SnapshotCount int `json:"SnapshotCount" xml:"SnapshotCount"` -} - -// CreateDescribeSnapshotsUsageRequest creates a request to invoke DescribeSnapshotsUsage API -func CreateDescribeSnapshotsUsageRequest() (request *DescribeSnapshotsUsageRequest) { - request = &DescribeSnapshotsUsageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotsUsage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSnapshotsUsageResponse creates a response to parse from DescribeSnapshotsUsage response -func CreateDescribeSnapshotsUsageResponse() (response *DescribeSnapshotsUsageResponse) { - response = &DescribeSnapshotsUsageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_advice.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_advice.go deleted file mode 100644 index c444f7f397..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_advice.go +++ /dev/null @@ -1,116 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSpotAdvice invokes the ecs.DescribeSpotAdvice API synchronously -func (client *Client) DescribeSpotAdvice(request *DescribeSpotAdviceRequest) (response *DescribeSpotAdviceResponse, err error) { - response = CreateDescribeSpotAdviceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSpotAdviceWithChan invokes the ecs.DescribeSpotAdvice API asynchronously -func (client *Client) DescribeSpotAdviceWithChan(request *DescribeSpotAdviceRequest) (<-chan *DescribeSpotAdviceResponse, <-chan error) { - responseChan := make(chan *DescribeSpotAdviceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSpotAdvice(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSpotAdviceWithCallback invokes the ecs.DescribeSpotAdvice API asynchronously -func (client *Client) DescribeSpotAdviceWithCallback(request *DescribeSpotAdviceRequest, callback func(response *DescribeSpotAdviceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSpotAdviceResponse - var err error - defer close(result) - response, err = client.DescribeSpotAdvice(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSpotAdviceRequest is the request struct for api DescribeSpotAdvice -type DescribeSpotAdviceRequest struct { - *requests.RpcRequest - GpuSpec string `position:"Query" name:"GpuSpec"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Memory requests.Float `position:"Query" name:"Memory"` - IoOptimized string `position:"Query" name:"IoOptimized"` - InstanceTypes *[]string `position:"Query" name:"InstanceTypes" type:"Repeated"` - MinCores requests.Integer `position:"Query" name:"MinCores"` - NetworkType string `position:"Query" name:"NetworkType"` - Cores requests.Integer `position:"Query" name:"Cores"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceFamilyLevel string `position:"Query" name:"InstanceFamilyLevel"` - ZoneId string `position:"Query" name:"ZoneId"` - GpuAmount requests.Integer `position:"Query" name:"GpuAmount"` - MinMemory requests.Float `position:"Query" name:"MinMemory"` -} - -// DescribeSpotAdviceResponse is the response struct for api DescribeSpotAdvice -type DescribeSpotAdviceResponse struct { - *responses.BaseResponse - RegionId string `json:"RegionId" xml:"RegionId"` - RequestId string `json:"RequestId" xml:"RequestId"` - AvailableSpotZones AvailableSpotZones `json:"AvailableSpotZones" xml:"AvailableSpotZones"` -} - -// CreateDescribeSpotAdviceRequest creates a request to invoke DescribeSpotAdvice API -func CreateDescribeSpotAdviceRequest() (request *DescribeSpotAdviceRequest) { - request = &DescribeSpotAdviceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSpotAdvice", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSpotAdviceResponse creates a response to parse from DescribeSpotAdvice response -func CreateDescribeSpotAdviceResponse() (response *DescribeSpotAdviceResponse) { - response = &DescribeSpotAdviceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go deleted file mode 100644 index d4ca82a266..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeSpotPriceHistory invokes the ecs.DescribeSpotPriceHistory API synchronously -func (client *Client) DescribeSpotPriceHistory(request *DescribeSpotPriceHistoryRequest) (response *DescribeSpotPriceHistoryResponse, err error) { - response = CreateDescribeSpotPriceHistoryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSpotPriceHistoryWithChan invokes the ecs.DescribeSpotPriceHistory API asynchronously -func (client *Client) DescribeSpotPriceHistoryWithChan(request *DescribeSpotPriceHistoryRequest) (<-chan *DescribeSpotPriceHistoryResponse, <-chan error) { - responseChan := make(chan *DescribeSpotPriceHistoryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSpotPriceHistory(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSpotPriceHistoryWithCallback invokes the ecs.DescribeSpotPriceHistory API asynchronously -func (client *Client) DescribeSpotPriceHistoryWithCallback(request *DescribeSpotPriceHistoryRequest, callback func(response *DescribeSpotPriceHistoryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSpotPriceHistoryResponse - var err error - defer close(result) - response, err = client.DescribeSpotPriceHistory(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSpotPriceHistoryRequest is the request struct for api DescribeSpotPriceHistory -type DescribeSpotPriceHistoryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - IoOptimized string `position:"Query" name:"IoOptimized"` - NetworkType string `position:"Query" name:"NetworkType"` - StartTime string `position:"Query" name:"StartTime"` - InstanceType string `position:"Query" name:"InstanceType"` - Offset requests.Integer `position:"Query" name:"Offset"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OSType string `position:"Query" name:"OSType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// DescribeSpotPriceHistoryResponse is the response struct for api DescribeSpotPriceHistory -type DescribeSpotPriceHistoryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Currency string `json:"Currency" xml:"Currency"` - NextOffset int `json:"NextOffset" xml:"NextOffset"` - SpotPrices SpotPrices `json:"SpotPrices" xml:"SpotPrices"` -} - -// CreateDescribeSpotPriceHistoryRequest creates a request to invoke DescribeSpotPriceHistory API -func CreateDescribeSpotPriceHistoryRequest() (request *DescribeSpotPriceHistoryRequest) { - request = &DescribeSpotPriceHistoryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSpotPriceHistory", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSpotPriceHistoryResponse creates a response to parse from DescribeSpotPriceHistory response -func CreateDescribeSpotPriceHistoryResponse() (response *DescribeSpotPriceHistoryResponse) { - response = &DescribeSpotPriceHistoryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_capacity_units.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_capacity_units.go deleted file mode 100644 index 5adc532812..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_capacity_units.go +++ /dev/null @@ -1,120 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeStorageCapacityUnits invokes the ecs.DescribeStorageCapacityUnits API synchronously -func (client *Client) DescribeStorageCapacityUnits(request *DescribeStorageCapacityUnitsRequest) (response *DescribeStorageCapacityUnitsResponse, err error) { - response = CreateDescribeStorageCapacityUnitsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeStorageCapacityUnitsWithChan invokes the ecs.DescribeStorageCapacityUnits API asynchronously -func (client *Client) DescribeStorageCapacityUnitsWithChan(request *DescribeStorageCapacityUnitsRequest) (<-chan *DescribeStorageCapacityUnitsResponse, <-chan error) { - responseChan := make(chan *DescribeStorageCapacityUnitsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeStorageCapacityUnits(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeStorageCapacityUnitsWithCallback invokes the ecs.DescribeStorageCapacityUnits API asynchronously -func (client *Client) DescribeStorageCapacityUnitsWithCallback(request *DescribeStorageCapacityUnitsRequest, callback func(response *DescribeStorageCapacityUnitsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeStorageCapacityUnitsResponse - var err error - defer close(result) - response, err = client.DescribeStorageCapacityUnits(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeStorageCapacityUnitsRequest is the request struct for api DescribeStorageCapacityUnits -type DescribeStorageCapacityUnitsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - Capacity requests.Integer `position:"Query" name:"Capacity"` - StorageCapacityUnitId *[]string `position:"Query" name:"StorageCapacityUnitId" type:"Repeated"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeStorageCapacityUnitsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` - AllocationType string `position:"Query" name:"AllocationType"` - Status *[]string `position:"Query" name:"Status" type:"Repeated"` -} - -// DescribeStorageCapacityUnitsTag is a repeated param struct in DescribeStorageCapacityUnitsRequest -type DescribeStorageCapacityUnitsTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// DescribeStorageCapacityUnitsResponse is the response struct for api DescribeStorageCapacityUnits -type DescribeStorageCapacityUnitsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - StorageCapacityUnits StorageCapacityUnits `json:"StorageCapacityUnits" xml:"StorageCapacityUnits"` -} - -// CreateDescribeStorageCapacityUnitsRequest creates a request to invoke DescribeStorageCapacityUnits API -func CreateDescribeStorageCapacityUnitsRequest() (request *DescribeStorageCapacityUnitsRequest) { - request = &DescribeStorageCapacityUnitsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeStorageCapacityUnits", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeStorageCapacityUnitsResponse creates a response to parse from DescribeStorageCapacityUnits response -func CreateDescribeStorageCapacityUnitsResponse() (response *DescribeStorageCapacityUnitsResponse) { - response = &DescribeStorageCapacityUnitsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go deleted file mode 100644 index b349604714..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeStorageSetDetails invokes the ecs.DescribeStorageSetDetails API synchronously -func (client *Client) DescribeStorageSetDetails(request *DescribeStorageSetDetailsRequest) (response *DescribeStorageSetDetailsResponse, err error) { - response = CreateDescribeStorageSetDetailsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeStorageSetDetailsWithChan invokes the ecs.DescribeStorageSetDetails API asynchronously -func (client *Client) DescribeStorageSetDetailsWithChan(request *DescribeStorageSetDetailsRequest) (<-chan *DescribeStorageSetDetailsResponse, <-chan error) { - responseChan := make(chan *DescribeStorageSetDetailsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeStorageSetDetails(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeStorageSetDetailsWithCallback invokes the ecs.DescribeStorageSetDetails API asynchronously -func (client *Client) DescribeStorageSetDetailsWithCallback(request *DescribeStorageSetDetailsRequest, callback func(response *DescribeStorageSetDetailsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeStorageSetDetailsResponse - var err error - defer close(result) - response, err = client.DescribeStorageSetDetails(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeStorageSetDetailsRequest is the request struct for api DescribeStorageSetDetails -type DescribeStorageSetDetailsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` - DiskIds string `position:"Query" name:"DiskIds"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - StorageSetId string `position:"Query" name:"StorageSetId"` -} - -// DescribeStorageSetDetailsResponse is the response struct for api DescribeStorageSetDetails -type DescribeStorageSetDetailsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Disks DisksInDescribeStorageSetDetails `json:"Disks" xml:"Disks"` -} - -// CreateDescribeStorageSetDetailsRequest creates a request to invoke DescribeStorageSetDetails API -func CreateDescribeStorageSetDetailsRequest() (request *DescribeStorageSetDetailsRequest) { - request = &DescribeStorageSetDetailsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeStorageSetDetails", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeStorageSetDetailsResponse creates a response to parse from DescribeStorageSetDetails response -func CreateDescribeStorageSetDetailsResponse() (response *DescribeStorageSetDetailsResponse) { - response = &DescribeStorageSetDetailsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go deleted file mode 100644 index 782f0ada49..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeStorageSets invokes the ecs.DescribeStorageSets API synchronously -func (client *Client) DescribeStorageSets(request *DescribeStorageSetsRequest) (response *DescribeStorageSetsResponse, err error) { - response = CreateDescribeStorageSetsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeStorageSetsWithChan invokes the ecs.DescribeStorageSets API asynchronously -func (client *Client) DescribeStorageSetsWithChan(request *DescribeStorageSetsRequest) (<-chan *DescribeStorageSetsResponse, <-chan error) { - responseChan := make(chan *DescribeStorageSetsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeStorageSets(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeStorageSetsWithCallback invokes the ecs.DescribeStorageSets API asynchronously -func (client *Client) DescribeStorageSetsWithCallback(request *DescribeStorageSetsRequest, callback func(response *DescribeStorageSetsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeStorageSetsResponse - var err error - defer close(result) - response, err = client.DescribeStorageSets(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeStorageSetsRequest is the request struct for api DescribeStorageSets -type DescribeStorageSetsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - StorageSetIds string `position:"Query" name:"StorageSetIds"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ZoneId string `position:"Query" name:"ZoneId"` - StorageSetName string `position:"Query" name:"StorageSetName"` -} - -// DescribeStorageSetsResponse is the response struct for api DescribeStorageSets -type DescribeStorageSetsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - StorageSets StorageSets `json:"StorageSets" xml:"StorageSets"` -} - -// CreateDescribeStorageSetsRequest creates a request to invoke DescribeStorageSets API -func CreateDescribeStorageSetsRequest() (request *DescribeStorageSetsRequest) { - request = &DescribeStorageSetsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeStorageSets", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeStorageSetsResponse creates a response to parse from DescribeStorageSets response -func CreateDescribeStorageSetsResponse() (response *DescribeStorageSetsResponse) { - response = &DescribeStorageSetsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go deleted file mode 100644 index 5dbbd5f3d0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go +++ /dev/null @@ -1,117 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeTags invokes the ecs.DescribeTags API synchronously -func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { - response = CreateDescribeTagsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeTagsWithChan invokes the ecs.DescribeTags API asynchronously -func (client *Client) DescribeTagsWithChan(request *DescribeTagsRequest) (<-chan *DescribeTagsResponse, <-chan error) { - responseChan := make(chan *DescribeTagsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeTags(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeTagsWithCallback invokes the ecs.DescribeTags API asynchronously -func (client *Client) DescribeTagsWithCallback(request *DescribeTagsRequest, callback func(response *DescribeTagsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeTagsResponse - var err error - defer close(result) - response, err = client.DescribeTags(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeTagsRequest is the request struct for api DescribeTags -type DescribeTagsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeTagsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId string `position:"Query" name:"ResourceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - Category string `position:"Query" name:"Category"` -} - -// DescribeTagsTag is a repeated param struct in DescribeTagsRequest -type DescribeTagsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeTagsResponse is the response struct for api DescribeTags -type DescribeTagsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Tags TagsInDescribeTags `json:"Tags" xml:"Tags"` -} - -// CreateDescribeTagsRequest creates a request to invoke DescribeTags API -func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { - request = &DescribeTagsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTags", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeTagsResponse creates a response to parse from DescribeTags response -func CreateDescribeTagsResponse() (response *DescribeTagsResponse) { - response = &DescribeTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go deleted file mode 100644 index dfd8557e68..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeTaskAttribute invokes the ecs.DescribeTaskAttribute API synchronously -func (client *Client) DescribeTaskAttribute(request *DescribeTaskAttributeRequest) (response *DescribeTaskAttributeResponse, err error) { - response = CreateDescribeTaskAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeTaskAttributeWithChan invokes the ecs.DescribeTaskAttribute API asynchronously -func (client *Client) DescribeTaskAttributeWithChan(request *DescribeTaskAttributeRequest) (<-chan *DescribeTaskAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeTaskAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeTaskAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeTaskAttributeWithCallback invokes the ecs.DescribeTaskAttribute API asynchronously -func (client *Client) DescribeTaskAttributeWithCallback(request *DescribeTaskAttributeRequest, callback func(response *DescribeTaskAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeTaskAttributeResponse - var err error - defer close(result) - response, err = client.DescribeTaskAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeTaskAttributeRequest is the request struct for api DescribeTaskAttribute -type DescribeTaskAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TaskId string `position:"Query" name:"TaskId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeTaskAttributeResponse is the response struct for api DescribeTaskAttribute -type DescribeTaskAttributeResponse struct { - *responses.BaseResponse - CreationTime string `json:"CreationTime" xml:"CreationTime"` - SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - TaskAction string `json:"TaskAction" xml:"TaskAction"` - FailedCount int `json:"FailedCount" xml:"FailedCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` - TaskProcess string `json:"TaskProcess" xml:"TaskProcess"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - TaskId string `json:"TaskId" xml:"TaskId"` - OperationProgressSet OperationProgressSetInDescribeTaskAttribute `json:"OperationProgressSet" xml:"OperationProgressSet"` -} - -// CreateDescribeTaskAttributeRequest creates a request to invoke DescribeTaskAttribute API -func CreateDescribeTaskAttributeRequest() (request *DescribeTaskAttributeRequest) { - request = &DescribeTaskAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTaskAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeTaskAttributeResponse creates a response to parse from DescribeTaskAttribute response -func CreateDescribeTaskAttributeResponse() (response *DescribeTaskAttributeResponse) { - response = &DescribeTaskAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go deleted file mode 100644 index 5bf0b1b970..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go +++ /dev/null @@ -1,116 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeTasks invokes the ecs.DescribeTasks API synchronously -func (client *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) { - response = CreateDescribeTasksResponse() - err = client.DoAction(request, response) - return -} - -// DescribeTasksWithChan invokes the ecs.DescribeTasks API asynchronously -func (client *Client) DescribeTasksWithChan(request *DescribeTasksRequest) (<-chan *DescribeTasksResponse, <-chan error) { - responseChan := make(chan *DescribeTasksResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeTasks(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeTasksWithCallback invokes the ecs.DescribeTasks API asynchronously -func (client *Client) DescribeTasksWithCallback(request *DescribeTasksRequest, callback func(response *DescribeTasksResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeTasksResponse - var err error - defer close(result) - response, err = client.DescribeTasks(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeTasksRequest is the request struct for api DescribeTasks -type DescribeTasksRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StartTime string `position:"Query" name:"StartTime"` - TaskIds string `position:"Query" name:"TaskIds"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - TaskStatus string `position:"Query" name:"TaskStatus"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - TaskGroupId string `position:"Query" name:"TaskGroupId"` - TaskAction string `position:"Query" name:"TaskAction"` - ResourceIds *[]string `position:"Query" name:"ResourceIds" type:"Repeated"` -} - -// DescribeTasksResponse is the response struct for api DescribeTasks -type DescribeTasksResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - TaskSet TaskSet `json:"TaskSet" xml:"TaskSet"` -} - -// CreateDescribeTasksRequest creates a request to invoke DescribeTasks API -func CreateDescribeTasksRequest() (request *DescribeTasksRequest) { - request = &DescribeTasksRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTasks", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeTasksResponse creates a response to parse from DescribeTasks response -func CreateDescribeTasksResponse() (response *DescribeTasksResponse) { - response = &DescribeTasksResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_terminal_sessions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_terminal_sessions.go deleted file mode 100644 index fd51814a4b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_terminal_sessions.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeTerminalSessions invokes the ecs.DescribeTerminalSessions API synchronously -func (client *Client) DescribeTerminalSessions(request *DescribeTerminalSessionsRequest) (response *DescribeTerminalSessionsResponse, err error) { - response = CreateDescribeTerminalSessionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeTerminalSessionsWithChan invokes the ecs.DescribeTerminalSessions API asynchronously -func (client *Client) DescribeTerminalSessionsWithChan(request *DescribeTerminalSessionsRequest) (<-chan *DescribeTerminalSessionsResponse, <-chan error) { - responseChan := make(chan *DescribeTerminalSessionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeTerminalSessions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeTerminalSessionsWithCallback invokes the ecs.DescribeTerminalSessions API asynchronously -func (client *Client) DescribeTerminalSessionsWithCallback(request *DescribeTerminalSessionsRequest, callback func(response *DescribeTerminalSessionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeTerminalSessionsResponse - var err error - defer close(result) - response, err = client.DescribeTerminalSessions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeTerminalSessionsRequest is the request struct for api DescribeTerminalSessions -type DescribeTerminalSessionsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SessionId string `position:"Query" name:"SessionId"` - NextToken string `position:"Query" name:"NextToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// DescribeTerminalSessionsResponse is the response struct for api DescribeTerminalSessions -type DescribeTerminalSessionsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NextToken string `json:"NextToken" xml:"NextToken"` - Sessions Sessions `json:"Sessions" xml:"Sessions"` -} - -// CreateDescribeTerminalSessionsRequest creates a request to invoke DescribeTerminalSessions API -func CreateDescribeTerminalSessionsRequest() (request *DescribeTerminalSessionsRequest) { - request = &DescribeTerminalSessionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTerminalSessions", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeTerminalSessionsResponse creates a response to parse from DescribeTerminalSessions response -func CreateDescribeTerminalSessionsResponse() (response *DescribeTerminalSessionsResponse) { - response = &DescribeTerminalSessionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go deleted file mode 100644 index 07f94504ab..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeUserBusinessBehavior invokes the ecs.DescribeUserBusinessBehavior API synchronously -func (client *Client) DescribeUserBusinessBehavior(request *DescribeUserBusinessBehaviorRequest) (response *DescribeUserBusinessBehaviorResponse, err error) { - response = CreateDescribeUserBusinessBehaviorResponse() - err = client.DoAction(request, response) - return -} - -// DescribeUserBusinessBehaviorWithChan invokes the ecs.DescribeUserBusinessBehavior API asynchronously -func (client *Client) DescribeUserBusinessBehaviorWithChan(request *DescribeUserBusinessBehaviorRequest) (<-chan *DescribeUserBusinessBehaviorResponse, <-chan error) { - responseChan := make(chan *DescribeUserBusinessBehaviorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeUserBusinessBehavior(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeUserBusinessBehaviorWithCallback invokes the ecs.DescribeUserBusinessBehavior API asynchronously -func (client *Client) DescribeUserBusinessBehaviorWithCallback(request *DescribeUserBusinessBehaviorRequest, callback func(response *DescribeUserBusinessBehaviorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeUserBusinessBehaviorResponse - var err error - defer close(result) - response, err = client.DescribeUserBusinessBehavior(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeUserBusinessBehaviorRequest is the request struct for api DescribeUserBusinessBehavior -type DescribeUserBusinessBehaviorRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - StatusKey string `position:"Query" name:"statusKey"` -} - -// DescribeUserBusinessBehaviorResponse is the response struct for api DescribeUserBusinessBehavior -type DescribeUserBusinessBehaviorResponse struct { - *responses.BaseResponse - StatusValue string `json:"StatusValue" xml:"StatusValue"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDescribeUserBusinessBehaviorRequest creates a request to invoke DescribeUserBusinessBehavior API -func CreateDescribeUserBusinessBehaviorRequest() (request *DescribeUserBusinessBehaviorRequest) { - request = &DescribeUserBusinessBehaviorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeUserBusinessBehavior", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeUserBusinessBehaviorResponse creates a response to parse from DescribeUserBusinessBehavior response -func CreateDescribeUserBusinessBehaviorResponse() (response *DescribeUserBusinessBehaviorResponse) { - response = &DescribeUserBusinessBehaviorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go deleted file mode 100644 index ba642b55b9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeUserData invokes the ecs.DescribeUserData API synchronously -func (client *Client) DescribeUserData(request *DescribeUserDataRequest) (response *DescribeUserDataResponse, err error) { - response = CreateDescribeUserDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeUserDataWithChan invokes the ecs.DescribeUserData API asynchronously -func (client *Client) DescribeUserDataWithChan(request *DescribeUserDataRequest) (<-chan *DescribeUserDataResponse, <-chan error) { - responseChan := make(chan *DescribeUserDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeUserData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeUserDataWithCallback invokes the ecs.DescribeUserData API asynchronously -func (client *Client) DescribeUserDataWithCallback(request *DescribeUserDataRequest, callback func(response *DescribeUserDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeUserDataResponse - var err error - defer close(result) - response, err = client.DescribeUserData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeUserDataRequest is the request struct for api DescribeUserData -type DescribeUserDataRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DescribeUserDataResponse is the response struct for api DescribeUserData -type DescribeUserDataResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - UserData string `json:"UserData" xml:"UserData"` - RegionId string `json:"RegionId" xml:"RegionId"` -} - -// CreateDescribeUserDataRequest creates a request to invoke DescribeUserData API -func CreateDescribeUserDataRequest() (request *DescribeUserDataRequest) { - request = &DescribeUserDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeUserData", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeUserDataResponse creates a response to parse from DescribeUserData response -func CreateDescribeUserDataResponse() (response *DescribeUserDataResponse) { - response = &DescribeUserDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go deleted file mode 100644 index 18c5aa365d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeVRouters invokes the ecs.DescribeVRouters API synchronously -func (client *Client) DescribeVRouters(request *DescribeVRoutersRequest) (response *DescribeVRoutersResponse, err error) { - response = CreateDescribeVRoutersResponse() - err = client.DoAction(request, response) - return -} - -// DescribeVRoutersWithChan invokes the ecs.DescribeVRouters API asynchronously -func (client *Client) DescribeVRoutersWithChan(request *DescribeVRoutersRequest) (<-chan *DescribeVRoutersResponse, <-chan error) { - responseChan := make(chan *DescribeVRoutersResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeVRouters(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeVRoutersWithCallback invokes the ecs.DescribeVRouters API asynchronously -func (client *Client) DescribeVRoutersWithCallback(request *DescribeVRoutersRequest, callback func(response *DescribeVRoutersResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeVRoutersResponse - var err error - defer close(result) - response, err = client.DescribeVRouters(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeVRoutersRequest is the request struct for api DescribeVRouters -type DescribeVRoutersRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - VRouterId string `position:"Query" name:"VRouterId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeVRoutersResponse is the response struct for api DescribeVRouters -type DescribeVRoutersResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - VRouters VRouters `json:"VRouters" xml:"VRouters"` -} - -// CreateDescribeVRoutersRequest creates a request to invoke DescribeVRouters API -func CreateDescribeVRoutersRequest() (request *DescribeVRoutersRequest) { - request = &DescribeVRoutersRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVRouters", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeVRoutersResponse creates a response to parse from DescribeVRouters response -func CreateDescribeVRoutersResponse() (response *DescribeVRoutersResponse) { - response = &DescribeVRoutersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go deleted file mode 100644 index f6f2ee99c5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeVSwitches invokes the ecs.DescribeVSwitches API synchronously -func (client *Client) DescribeVSwitches(request *DescribeVSwitchesRequest) (response *DescribeVSwitchesResponse, err error) { - response = CreateDescribeVSwitchesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeVSwitchesWithChan invokes the ecs.DescribeVSwitches API asynchronously -func (client *Client) DescribeVSwitchesWithChan(request *DescribeVSwitchesRequest) (<-chan *DescribeVSwitchesResponse, <-chan error) { - responseChan := make(chan *DescribeVSwitchesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeVSwitches(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeVSwitchesWithCallback invokes the ecs.DescribeVSwitches API asynchronously -func (client *Client) DescribeVSwitchesWithCallback(request *DescribeVSwitchesRequest, callback func(response *DescribeVSwitchesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeVSwitchesResponse - var err error - defer close(result) - response, err = client.DescribeVSwitches(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeVSwitchesRequest is the request struct for api DescribeVSwitches -type DescribeVSwitchesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - IsDefault requests.Boolean `position:"Query" name:"IsDefault"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - VpcId string `position:"Query" name:"VpcId"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// DescribeVSwitchesResponse is the response struct for api DescribeVSwitches -type DescribeVSwitchesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - VSwitches VSwitches `json:"VSwitches" xml:"VSwitches"` -} - -// CreateDescribeVSwitchesRequest creates a request to invoke DescribeVSwitches API -func CreateDescribeVSwitchesRequest() (request *DescribeVSwitchesRequest) { - request = &DescribeVSwitchesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVSwitches", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeVSwitchesResponse creates a response to parse from DescribeVSwitches response -func CreateDescribeVSwitchesResponse() (response *DescribeVSwitchesResponse) { - response = &DescribeVSwitchesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go deleted file mode 100644 index 52945d70fd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeVirtualBorderRouters invokes the ecs.DescribeVirtualBorderRouters API synchronously -func (client *Client) DescribeVirtualBorderRouters(request *DescribeVirtualBorderRoutersRequest) (response *DescribeVirtualBorderRoutersResponse, err error) { - response = CreateDescribeVirtualBorderRoutersResponse() - err = client.DoAction(request, response) - return -} - -// DescribeVirtualBorderRoutersWithChan invokes the ecs.DescribeVirtualBorderRouters API asynchronously -func (client *Client) DescribeVirtualBorderRoutersWithChan(request *DescribeVirtualBorderRoutersRequest) (<-chan *DescribeVirtualBorderRoutersResponse, <-chan error) { - responseChan := make(chan *DescribeVirtualBorderRoutersResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeVirtualBorderRouters(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeVirtualBorderRoutersWithCallback invokes the ecs.DescribeVirtualBorderRouters API asynchronously -func (client *Client) DescribeVirtualBorderRoutersWithCallback(request *DescribeVirtualBorderRoutersRequest, callback func(response *DescribeVirtualBorderRoutersResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeVirtualBorderRoutersResponse - var err error - defer close(result) - response, err = client.DescribeVirtualBorderRouters(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeVirtualBorderRoutersRequest is the request struct for api DescribeVirtualBorderRouters -type DescribeVirtualBorderRoutersRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribeVirtualBorderRoutersFilter `position:"Query" name:"Filter" type:"Repeated"` -} - -// DescribeVirtualBorderRoutersFilter is a repeated param struct in DescribeVirtualBorderRoutersRequest -type DescribeVirtualBorderRoutersFilter struct { - Value *[]string `name:"Value" type:"Repeated"` - Key string `name:"Key"` -} - -// DescribeVirtualBorderRoutersResponse is the response struct for api DescribeVirtualBorderRouters -type DescribeVirtualBorderRoutersResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - VirtualBorderRouterSet VirtualBorderRouterSet `json:"VirtualBorderRouterSet" xml:"VirtualBorderRouterSet"` -} - -// CreateDescribeVirtualBorderRoutersRequest creates a request to invoke DescribeVirtualBorderRouters API -func CreateDescribeVirtualBorderRoutersRequest() (request *DescribeVirtualBorderRoutersRequest) { - request = &DescribeVirtualBorderRoutersRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVirtualBorderRouters", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeVirtualBorderRoutersResponse creates a response to parse from DescribeVirtualBorderRouters response -func CreateDescribeVirtualBorderRoutersResponse() (response *DescribeVirtualBorderRoutersResponse) { - response = &DescribeVirtualBorderRoutersResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go deleted file mode 100644 index 55ca849ee3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeVirtualBorderRoutersForPhysicalConnection invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API synchronously -func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnection(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error) { - response = CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse() - err = client.DoAction(request, response) - return -} - -// DescribeVirtualBorderRoutersForPhysicalConnectionWithChan invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously -func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithChan(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (<-chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, <-chan error) { - responseChan := make(chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeVirtualBorderRoutersForPhysicalConnection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously -func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest, callback func(response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse - var err error - defer close(result) - response, err = client.DescribeVirtualBorderRoutersForPhysicalConnection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeVirtualBorderRoutersForPhysicalConnectionRequest is the request struct for api DescribeVirtualBorderRoutersForPhysicalConnection -type DescribeVirtualBorderRoutersForPhysicalConnectionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Filter *[]DescribeVirtualBorderRoutersForPhysicalConnectionFilter `position:"Query" name:"Filter" type:"Repeated"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` -} - -// DescribeVirtualBorderRoutersForPhysicalConnectionFilter is a repeated param struct in DescribeVirtualBorderRoutersForPhysicalConnectionRequest -type DescribeVirtualBorderRoutersForPhysicalConnectionFilter struct { - Value *[]string `name:"Value" type:"Repeated"` - Key string `name:"Key"` -} - -// DescribeVirtualBorderRoutersForPhysicalConnectionResponse is the response struct for api DescribeVirtualBorderRoutersForPhysicalConnection -type DescribeVirtualBorderRoutersForPhysicalConnectionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - VirtualBorderRouterForPhysicalConnectionSet VirtualBorderRouterForPhysicalConnectionSet `json:"VirtualBorderRouterForPhysicalConnectionSet" xml:"VirtualBorderRouterForPhysicalConnectionSet"` -} - -// CreateDescribeVirtualBorderRoutersForPhysicalConnectionRequest creates a request to invoke DescribeVirtualBorderRoutersForPhysicalConnection API -func CreateDescribeVirtualBorderRoutersForPhysicalConnectionRequest() (request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) { - request = &DescribeVirtualBorderRoutersForPhysicalConnectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse creates a response to parse from DescribeVirtualBorderRoutersForPhysicalConnection response -func CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse() (response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse) { - response = &DescribeVirtualBorderRoutersForPhysicalConnectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go deleted file mode 100644 index 53b33518f2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeVpcs invokes the ecs.DescribeVpcs API synchronously -func (client *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *DescribeVpcsResponse, err error) { - response = CreateDescribeVpcsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeVpcsWithChan invokes the ecs.DescribeVpcs API asynchronously -func (client *Client) DescribeVpcsWithChan(request *DescribeVpcsRequest) (<-chan *DescribeVpcsResponse, <-chan error) { - responseChan := make(chan *DescribeVpcsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeVpcs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeVpcsWithCallback invokes the ecs.DescribeVpcs API asynchronously -func (client *Client) DescribeVpcsWithCallback(request *DescribeVpcsRequest, callback func(response *DescribeVpcsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeVpcsResponse - var err error - defer close(result) - response, err = client.DescribeVpcs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeVpcsRequest is the request struct for api DescribeVpcs -type DescribeVpcsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - IsDefault requests.Boolean `position:"Query" name:"IsDefault"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VpcId string `position:"Query" name:"VpcId"` -} - -// DescribeVpcsResponse is the response struct for api DescribeVpcs -type DescribeVpcsResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Vpcs Vpcs `json:"Vpcs" xml:"Vpcs"` -} - -// CreateDescribeVpcsRequest creates a request to invoke DescribeVpcs API -func CreateDescribeVpcsRequest() (request *DescribeVpcsRequest) { - request = &DescribeVpcsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVpcs", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeVpcsResponse creates a response to parse from DescribeVpcs response -func CreateDescribeVpcsResponse() (response *DescribeVpcsResponse) { - response = &DescribeVpcsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go deleted file mode 100644 index f073bc8f9e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeZones invokes the ecs.DescribeZones API synchronously -func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { - response = CreateDescribeZonesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeZonesWithChan invokes the ecs.DescribeZones API asynchronously -func (client *Client) DescribeZonesWithChan(request *DescribeZonesRequest) (<-chan *DescribeZonesResponse, <-chan error) { - responseChan := make(chan *DescribeZonesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeZones(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeZonesWithCallback invokes the ecs.DescribeZones API asynchronously -func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, callback func(response *DescribeZonesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeZonesResponse - var err error - defer close(result) - response, err = client.DescribeZones(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeZonesRequest is the request struct for api DescribeZones -type DescribeZonesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Verbose requests.Boolean `position:"Query" name:"Verbose"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` -} - -// DescribeZonesResponse is the response struct for api DescribeZones -type DescribeZonesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Zones ZonesInDescribeZones `json:"Zones" xml:"Zones"` -} - -// CreateDescribeZonesRequest creates a request to invoke DescribeZones API -func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { - request = &DescribeZonesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeZones", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeZonesResponse creates a response to parse from DescribeZones response -func CreateDescribeZonesResponse() (response *DescribeZonesResponse) { - response = &DescribeZonesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go deleted file mode 100644 index 2136571f8c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DetachClassicLinkVpc invokes the ecs.DetachClassicLinkVpc API synchronously -func (client *Client) DetachClassicLinkVpc(request *DetachClassicLinkVpcRequest) (response *DetachClassicLinkVpcResponse, err error) { - response = CreateDetachClassicLinkVpcResponse() - err = client.DoAction(request, response) - return -} - -// DetachClassicLinkVpcWithChan invokes the ecs.DetachClassicLinkVpc API asynchronously -func (client *Client) DetachClassicLinkVpcWithChan(request *DetachClassicLinkVpcRequest) (<-chan *DetachClassicLinkVpcResponse, <-chan error) { - responseChan := make(chan *DetachClassicLinkVpcResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DetachClassicLinkVpc(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DetachClassicLinkVpcWithCallback invokes the ecs.DetachClassicLinkVpc API asynchronously -func (client *Client) DetachClassicLinkVpcWithCallback(request *DetachClassicLinkVpcRequest, callback func(response *DetachClassicLinkVpcResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DetachClassicLinkVpcResponse - var err error - defer close(result) - response, err = client.DetachClassicLinkVpc(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DetachClassicLinkVpcRequest is the request struct for api DetachClassicLinkVpc -type DetachClassicLinkVpcRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - VpcId string `position:"Query" name:"VpcId"` -} - -// DetachClassicLinkVpcResponse is the response struct for api DetachClassicLinkVpc -type DetachClassicLinkVpcResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDetachClassicLinkVpcRequest creates a request to invoke DetachClassicLinkVpc API -func CreateDetachClassicLinkVpcRequest() (request *DetachClassicLinkVpcRequest) { - request = &DetachClassicLinkVpcRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DetachClassicLinkVpc", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDetachClassicLinkVpcResponse creates a response to parse from DetachClassicLinkVpc response -func CreateDetachClassicLinkVpcResponse() (response *DetachClassicLinkVpcResponse) { - response = &DetachClassicLinkVpcResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go deleted file mode 100644 index 641b92c276..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DetachDisk invokes the ecs.DetachDisk API synchronously -func (client *Client) DetachDisk(request *DetachDiskRequest) (response *DetachDiskResponse, err error) { - response = CreateDetachDiskResponse() - err = client.DoAction(request, response) - return -} - -// DetachDiskWithChan invokes the ecs.DetachDisk API asynchronously -func (client *Client) DetachDiskWithChan(request *DetachDiskRequest) (<-chan *DetachDiskResponse, <-chan error) { - responseChan := make(chan *DetachDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DetachDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DetachDiskWithCallback invokes the ecs.DetachDisk API asynchronously -func (client *Client) DetachDiskWithCallback(request *DetachDiskRequest, callback func(response *DetachDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DetachDiskResponse - var err error - defer close(result) - response, err = client.DetachDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DetachDiskRequest is the request struct for api DetachDisk -type DetachDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DiskId string `position:"Query" name:"DiskId"` - DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// DetachDiskResponse is the response struct for api DetachDisk -type DetachDiskResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDetachDiskRequest creates a request to invoke DetachDisk API -func CreateDetachDiskRequest() (request *DetachDiskRequest) { - request = &DetachDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DetachDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDetachDiskResponse creates a response to parse from DetachDisk response -func CreateDetachDiskResponse() (response *DetachDiskResponse) { - response = &DetachDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go deleted file mode 100644 index fae72ea944..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DetachInstanceRamRole invokes the ecs.DetachInstanceRamRole API synchronously -func (client *Client) DetachInstanceRamRole(request *DetachInstanceRamRoleRequest) (response *DetachInstanceRamRoleResponse, err error) { - response = CreateDetachInstanceRamRoleResponse() - err = client.DoAction(request, response) - return -} - -// DetachInstanceRamRoleWithChan invokes the ecs.DetachInstanceRamRole API asynchronously -func (client *Client) DetachInstanceRamRoleWithChan(request *DetachInstanceRamRoleRequest) (<-chan *DetachInstanceRamRoleResponse, <-chan error) { - responseChan := make(chan *DetachInstanceRamRoleResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DetachInstanceRamRole(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DetachInstanceRamRoleWithCallback invokes the ecs.DetachInstanceRamRole API asynchronously -func (client *Client) DetachInstanceRamRoleWithCallback(request *DetachInstanceRamRoleRequest, callback func(response *DetachInstanceRamRoleResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DetachInstanceRamRoleResponse - var err error - defer close(result) - response, err = client.DetachInstanceRamRole(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DetachInstanceRamRoleRequest is the request struct for api DetachInstanceRamRole -type DetachInstanceRamRoleRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RamRoleName string `position:"Query" name:"RamRoleName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// DetachInstanceRamRoleResponse is the response struct for api DetachInstanceRamRole -type DetachInstanceRamRoleResponse struct { - *responses.BaseResponse - RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - FailCount int `json:"FailCount" xml:"FailCount"` - DetachInstanceRamRoleResults DetachInstanceRamRoleResults `json:"DetachInstanceRamRoleResults" xml:"DetachInstanceRamRoleResults"` -} - -// CreateDetachInstanceRamRoleRequest creates a request to invoke DetachInstanceRamRole API -func CreateDetachInstanceRamRoleRequest() (request *DetachInstanceRamRoleRequest) { - request = &DetachInstanceRamRoleRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DetachInstanceRamRole", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDetachInstanceRamRoleResponse creates a response to parse from DetachInstanceRamRole response -func CreateDetachInstanceRamRoleResponse() (response *DetachInstanceRamRoleResponse) { - response = &DetachInstanceRamRoleResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go deleted file mode 100644 index 1db15292bc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DetachKeyPair invokes the ecs.DetachKeyPair API synchronously -func (client *Client) DetachKeyPair(request *DetachKeyPairRequest) (response *DetachKeyPairResponse, err error) { - response = CreateDetachKeyPairResponse() - err = client.DoAction(request, response) - return -} - -// DetachKeyPairWithChan invokes the ecs.DetachKeyPair API asynchronously -func (client *Client) DetachKeyPairWithChan(request *DetachKeyPairRequest) (<-chan *DetachKeyPairResponse, <-chan error) { - responseChan := make(chan *DetachKeyPairResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DetachKeyPair(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DetachKeyPairWithCallback invokes the ecs.DetachKeyPair API asynchronously -func (client *Client) DetachKeyPairWithCallback(request *DetachKeyPairRequest, callback func(response *DetachKeyPairResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DetachKeyPairResponse - var err error - defer close(result) - response, err = client.DetachKeyPair(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DetachKeyPairRequest is the request struct for api DetachKeyPair -type DetachKeyPairRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KeyPairName string `position:"Query" name:"KeyPairName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// DetachKeyPairResponse is the response struct for api DetachKeyPair -type DetachKeyPairResponse struct { - *responses.BaseResponse - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount string `json:"TotalCount" xml:"TotalCount"` - FailCount string `json:"FailCount" xml:"FailCount"` - Results ResultsInDetachKeyPair `json:"Results" xml:"Results"` -} - -// CreateDetachKeyPairRequest creates a request to invoke DetachKeyPair API -func CreateDetachKeyPairRequest() (request *DetachKeyPairRequest) { - request = &DetachKeyPairRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DetachKeyPair", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDetachKeyPairResponse creates a response to parse from DetachKeyPair response -func CreateDetachKeyPairResponse() (response *DetachKeyPairResponse) { - response = &DetachKeyPairResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go deleted file mode 100644 index 7033f5f232..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DetachNetworkInterface invokes the ecs.DetachNetworkInterface API synchronously -func (client *Client) DetachNetworkInterface(request *DetachNetworkInterfaceRequest) (response *DetachNetworkInterfaceResponse, err error) { - response = CreateDetachNetworkInterfaceResponse() - err = client.DoAction(request, response) - return -} - -// DetachNetworkInterfaceWithChan invokes the ecs.DetachNetworkInterface API asynchronously -func (client *Client) DetachNetworkInterfaceWithChan(request *DetachNetworkInterfaceRequest) (<-chan *DetachNetworkInterfaceResponse, <-chan error) { - responseChan := make(chan *DetachNetworkInterfaceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DetachNetworkInterface(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DetachNetworkInterfaceWithCallback invokes the ecs.DetachNetworkInterface API asynchronously -func (client *Client) DetachNetworkInterfaceWithCallback(request *DetachNetworkInterfaceRequest, callback func(response *DetachNetworkInterfaceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DetachNetworkInterfaceResponse - var err error - defer close(result) - response, err = client.DetachNetworkInterface(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DetachNetworkInterfaceRequest is the request struct for api DetachNetworkInterface -type DetachNetworkInterfaceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TrunkNetworkInstanceId string `position:"Query" name:"TrunkNetworkInstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// DetachNetworkInterfaceResponse is the response struct for api DetachNetworkInterface -type DetachNetworkInterfaceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDetachNetworkInterfaceRequest creates a request to invoke DetachNetworkInterface API -func CreateDetachNetworkInterfaceRequest() (request *DetachNetworkInterfaceRequest) { - request = &DetachNetworkInterfaceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DetachNetworkInterface", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDetachNetworkInterfaceResponse creates a response to parse from DetachNetworkInterface response -func CreateDetachNetworkInterfaceResponse() (response *DetachNetworkInterfaceResponse) { - response = &DetachNetworkInterfaceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_activation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_activation.go deleted file mode 100644 index 79148208dc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_activation.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DisableActivation invokes the ecs.DisableActivation API synchronously -func (client *Client) DisableActivation(request *DisableActivationRequest) (response *DisableActivationResponse, err error) { - response = CreateDisableActivationResponse() - err = client.DoAction(request, response) - return -} - -// DisableActivationWithChan invokes the ecs.DisableActivation API asynchronously -func (client *Client) DisableActivationWithChan(request *DisableActivationRequest) (<-chan *DisableActivationResponse, <-chan error) { - responseChan := make(chan *DisableActivationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DisableActivation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DisableActivationWithCallback invokes the ecs.DisableActivation API asynchronously -func (client *Client) DisableActivationWithCallback(request *DisableActivationRequest, callback func(response *DisableActivationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DisableActivationResponse - var err error - defer close(result) - response, err = client.DisableActivation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DisableActivationRequest is the request struct for api DisableActivation -type DisableActivationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ActivationId string `position:"Query" name:"ActivationId"` -} - -// DisableActivationResponse is the response struct for api DisableActivation -type DisableActivationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Activation Activation `json:"Activation" xml:"Activation"` -} - -// CreateDisableActivationRequest creates a request to invoke DisableActivation API -func CreateDisableActivationRequest() (request *DisableActivationRequest) { - request = &DisableActivationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DisableActivation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDisableActivationResponse creates a response to parse from DisableActivation response -func CreateDisableActivationResponse() (response *DisableActivationResponse) { - response = &DisableActivationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_disk_encryption_by_default.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_disk_encryption_by_default.go deleted file mode 100644 index e24e407114..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_disk_encryption_by_default.go +++ /dev/null @@ -1,99 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DisableDiskEncryptionByDefault invokes the ecs.DisableDiskEncryptionByDefault API synchronously -func (client *Client) DisableDiskEncryptionByDefault(request *DisableDiskEncryptionByDefaultRequest) (response *DisableDiskEncryptionByDefaultResponse, err error) { - response = CreateDisableDiskEncryptionByDefaultResponse() - err = client.DoAction(request, response) - return -} - -// DisableDiskEncryptionByDefaultWithChan invokes the ecs.DisableDiskEncryptionByDefault API asynchronously -func (client *Client) DisableDiskEncryptionByDefaultWithChan(request *DisableDiskEncryptionByDefaultRequest) (<-chan *DisableDiskEncryptionByDefaultResponse, <-chan error) { - responseChan := make(chan *DisableDiskEncryptionByDefaultResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DisableDiskEncryptionByDefault(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DisableDiskEncryptionByDefaultWithCallback invokes the ecs.DisableDiskEncryptionByDefault API asynchronously -func (client *Client) DisableDiskEncryptionByDefaultWithCallback(request *DisableDiskEncryptionByDefaultRequest, callback func(response *DisableDiskEncryptionByDefaultResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DisableDiskEncryptionByDefaultResponse - var err error - defer close(result) - response, err = client.DisableDiskEncryptionByDefault(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DisableDiskEncryptionByDefaultRequest is the request struct for api DisableDiskEncryptionByDefault -type DisableDiskEncryptionByDefaultRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` -} - -// DisableDiskEncryptionByDefaultResponse is the response struct for api DisableDiskEncryptionByDefault -type DisableDiskEncryptionByDefaultResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDisableDiskEncryptionByDefaultRequest creates a request to invoke DisableDiskEncryptionByDefault API -func CreateDisableDiskEncryptionByDefaultRequest() (request *DisableDiskEncryptionByDefaultRequest) { - request = &DisableDiskEncryptionByDefaultRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DisableDiskEncryptionByDefault", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateDisableDiskEncryptionByDefaultResponse creates a response to parse from DisableDiskEncryptionByDefault response -func CreateDisableDiskEncryptionByDefaultResponse() (response *DisableDiskEncryptionByDefaultResponse) { - response = &DisableDiskEncryptionByDefaultResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_disk_encryption_by_default.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_disk_encryption_by_default.go deleted file mode 100644 index acbfd82024..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_disk_encryption_by_default.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// EnableDiskEncryptionByDefault invokes the ecs.EnableDiskEncryptionByDefault API synchronously -func (client *Client) EnableDiskEncryptionByDefault(request *EnableDiskEncryptionByDefaultRequest) (response *EnableDiskEncryptionByDefaultResponse, err error) { - response = CreateEnableDiskEncryptionByDefaultResponse() - err = client.DoAction(request, response) - return -} - -// EnableDiskEncryptionByDefaultWithChan invokes the ecs.EnableDiskEncryptionByDefault API asynchronously -func (client *Client) EnableDiskEncryptionByDefaultWithChan(request *EnableDiskEncryptionByDefaultRequest) (<-chan *EnableDiskEncryptionByDefaultResponse, <-chan error) { - responseChan := make(chan *EnableDiskEncryptionByDefaultResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.EnableDiskEncryptionByDefault(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// EnableDiskEncryptionByDefaultWithCallback invokes the ecs.EnableDiskEncryptionByDefault API asynchronously -func (client *Client) EnableDiskEncryptionByDefaultWithCallback(request *EnableDiskEncryptionByDefaultRequest, callback func(response *EnableDiskEncryptionByDefaultResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *EnableDiskEncryptionByDefaultResponse - var err error - defer close(result) - response, err = client.EnableDiskEncryptionByDefault(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// EnableDiskEncryptionByDefaultRequest is the request struct for api EnableDiskEncryptionByDefault -type EnableDiskEncryptionByDefaultRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// EnableDiskEncryptionByDefaultResponse is the response struct for api EnableDiskEncryptionByDefault -type EnableDiskEncryptionByDefaultResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateEnableDiskEncryptionByDefaultRequest creates a request to invoke EnableDiskEncryptionByDefault API -func CreateEnableDiskEncryptionByDefaultRequest() (request *EnableDiskEncryptionByDefaultRequest) { - request = &EnableDiskEncryptionByDefaultRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "EnableDiskEncryptionByDefault", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateEnableDiskEncryptionByDefaultResponse creates a response to parse from EnableDiskEncryptionByDefault response -func CreateEnableDiskEncryptionByDefaultResponse() (response *EnableDiskEncryptionByDefaultResponse) { - response = &EnableDiskEncryptionByDefaultResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go deleted file mode 100644 index 3ae7ee5caf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// EnablePhysicalConnection invokes the ecs.EnablePhysicalConnection API synchronously -func (client *Client) EnablePhysicalConnection(request *EnablePhysicalConnectionRequest) (response *EnablePhysicalConnectionResponse, err error) { - response = CreateEnablePhysicalConnectionResponse() - err = client.DoAction(request, response) - return -} - -// EnablePhysicalConnectionWithChan invokes the ecs.EnablePhysicalConnection API asynchronously -func (client *Client) EnablePhysicalConnectionWithChan(request *EnablePhysicalConnectionRequest) (<-chan *EnablePhysicalConnectionResponse, <-chan error) { - responseChan := make(chan *EnablePhysicalConnectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.EnablePhysicalConnection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// EnablePhysicalConnectionWithCallback invokes the ecs.EnablePhysicalConnection API asynchronously -func (client *Client) EnablePhysicalConnectionWithCallback(request *EnablePhysicalConnectionRequest, callback func(response *EnablePhysicalConnectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *EnablePhysicalConnectionResponse - var err error - defer close(result) - response, err = client.EnablePhysicalConnection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// EnablePhysicalConnectionRequest is the request struct for api EnablePhysicalConnection -type EnablePhysicalConnectionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` -} - -// EnablePhysicalConnectionResponse is the response struct for api EnablePhysicalConnection -type EnablePhysicalConnectionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateEnablePhysicalConnectionRequest creates a request to invoke EnablePhysicalConnection API -func CreateEnablePhysicalConnectionRequest() (request *EnablePhysicalConnectionRequest) { - request = &EnablePhysicalConnectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "EnablePhysicalConnection", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateEnablePhysicalConnectionResponse creates a response to parse from EnablePhysicalConnection response -func CreateEnablePhysicalConnectionResponse() (response *EnablePhysicalConnectionResponse) { - response = &EnablePhysicalConnectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/end_terminal_session.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/end_terminal_session.go deleted file mode 100644 index 9a5595ff99..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/end_terminal_session.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// EndTerminalSession invokes the ecs.EndTerminalSession API synchronously -func (client *Client) EndTerminalSession(request *EndTerminalSessionRequest) (response *EndTerminalSessionResponse, err error) { - response = CreateEndTerminalSessionResponse() - err = client.DoAction(request, response) - return -} - -// EndTerminalSessionWithChan invokes the ecs.EndTerminalSession API asynchronously -func (client *Client) EndTerminalSessionWithChan(request *EndTerminalSessionRequest) (<-chan *EndTerminalSessionResponse, <-chan error) { - responseChan := make(chan *EndTerminalSessionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.EndTerminalSession(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// EndTerminalSessionWithCallback invokes the ecs.EndTerminalSession API asynchronously -func (client *Client) EndTerminalSessionWithCallback(request *EndTerminalSessionRequest, callback func(response *EndTerminalSessionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *EndTerminalSessionResponse - var err error - defer close(result) - response, err = client.EndTerminalSession(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// EndTerminalSessionRequest is the request struct for api EndTerminalSession -type EndTerminalSessionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SessionId string `position:"Query" name:"SessionId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// EndTerminalSessionResponse is the response struct for api EndTerminalSession -type EndTerminalSessionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateEndTerminalSessionRequest creates a request to invoke EndTerminalSession API -func CreateEndTerminalSessionRequest() (request *EndTerminalSessionRequest) { - request = &EndTerminalSessionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "EndTerminalSession", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateEndTerminalSessionResponse creates a response to parse from EndTerminalSession response -func CreateEndTerminalSessionResponse() (response *EndTerminalSessionResponse) { - response = &EndTerminalSessionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go deleted file mode 100644 index 7499a25333..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go +++ /dev/null @@ -1,56 +0,0 @@ -package ecs - -// EndpointMap Endpoint Data -var EndpointMap map[string]string - -// EndpointType regional or central -var EndpointType = "regional" - -// GetEndpointMap Get Endpoint Data Map -func GetEndpointMap() map[string]string { - if EndpointMap == nil { - EndpointMap = map[string]string{ - "cn-shanghai-internal-test-1": "ecs-cn-hangzhou.aliyuncs.com", - "cn-beijing-gov-1": "ecs.aliyuncs.com", - "cn-shenzhen-su18-b01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-shanghai-inner": "ecs.aliyuncs.com", - "cn-shenzhen-st4-d01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-haidian-cm12-c01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou-internal-prod-1": "ecs-cn-hangzhou.aliyuncs.com", - "cn-north-2-gov-1": "ecs.aliyuncs.com", - "cn-yushanfang": "ecs.aliyuncs.com", - "cn-hongkong-finance-pop": "ecs.aliyuncs.com", - "cn-shanghai-finance-1": "ecs-cn-hangzhou.aliyuncs.com", - "cn-beijing-finance-pop": "ecs.aliyuncs.com", - "cn-wuhan": "ecs.aliyuncs.com", - "cn-zhangbei": "ecs.aliyuncs.com", - "cn-zhengzhou-nebula-1": "ecs.cn-qingdao-nebula.aliyuncs.com", - "rus-west-1-pop": "ecs.aliyuncs.com", - "cn-shanghai-et15-b01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou-bj-b01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou-internal-test-1": "ecs-cn-hangzhou.aliyuncs.com", - "eu-west-1-oxs": "ecs.cn-shenzhen-cloudstone.aliyuncs.com", - "cn-zhangbei-na61-b01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou-internal-test-3": "ecs-cn-hangzhou.aliyuncs.com", - "cn-shenzhen-finance-1": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou-internal-test-2": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou-test-306": "ecs-cn-hangzhou.aliyuncs.com", - "cn-huhehaote-nebula-1": "ecs.cn-qingdao-nebula.aliyuncs.com", - "cn-shanghai-et2-b01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou-finance": "ecs.aliyuncs.com", - "cn-beijing-nu16-b01": "ecs-cn-hangzhou.aliyuncs.com", - "cn-edge-1": "ecs.cn-qingdao-nebula.aliyuncs.com", - "cn-fujian": "ecs-cn-hangzhou.aliyuncs.com", - "ap-northeast-2-pop": "ecs.aliyuncs.com", - "cn-shenzhen-inner": "ecs.aliyuncs.com", - "cn-zhangjiakou-na62-a01": "ecs.cn-zhangjiakou.aliyuncs.com", - "cn-hangzhou": "ecs-cn-hangzhou.aliyuncs.com", - } - } - return EndpointMap -} - -// GetEndpointType Get Endpoint Type Value -func GetEndpointType() string { - return EndpointType -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go deleted file mode 100644 index 6ccc6f8768..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ExportImage invokes the ecs.ExportImage API synchronously -func (client *Client) ExportImage(request *ExportImageRequest) (response *ExportImageResponse, err error) { - response = CreateExportImageResponse() - err = client.DoAction(request, response) - return -} - -// ExportImageWithChan invokes the ecs.ExportImage API asynchronously -func (client *Client) ExportImageWithChan(request *ExportImageRequest) (<-chan *ExportImageResponse, <-chan error) { - responseChan := make(chan *ExportImageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ExportImage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ExportImageWithCallback invokes the ecs.ExportImage API asynchronously -func (client *Client) ExportImageWithCallback(request *ExportImageRequest, callback func(response *ExportImageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ExportImageResponse - var err error - defer close(result) - response, err = client.ExportImage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ExportImageRequest is the request struct for api ExportImage -type ExportImageRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - ImageFormat string `position:"Query" name:"ImageFormat"` - OSSBucket string `position:"Query" name:"OSSBucket"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RoleName string `position:"Query" name:"RoleName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - OSSPrefix string `position:"Query" name:"OSSPrefix"` -} - -// ExportImageResponse is the response struct for api ExportImage -type ExportImageResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId string `json:"TaskId" xml:"TaskId"` - RegionId string `json:"RegionId" xml:"RegionId"` -} - -// CreateExportImageRequest creates a request to invoke ExportImage API -func CreateExportImageRequest() (request *ExportImageRequest) { - request = &ExportImageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ExportImage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateExportImageResponse creates a response to parse from ExportImage response -func CreateExportImageResponse() (response *ExportImageResponse) { - response = &ExportImageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go deleted file mode 100644 index d3a3a5d914..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ExportSnapshot invokes the ecs.ExportSnapshot API synchronously -func (client *Client) ExportSnapshot(request *ExportSnapshotRequest) (response *ExportSnapshotResponse, err error) { - response = CreateExportSnapshotResponse() - err = client.DoAction(request, response) - return -} - -// ExportSnapshotWithChan invokes the ecs.ExportSnapshot API asynchronously -func (client *Client) ExportSnapshotWithChan(request *ExportSnapshotRequest) (<-chan *ExportSnapshotResponse, <-chan error) { - responseChan := make(chan *ExportSnapshotResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ExportSnapshot(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ExportSnapshotWithCallback invokes the ecs.ExportSnapshot API asynchronously -func (client *Client) ExportSnapshotWithCallback(request *ExportSnapshotRequest, callback func(response *ExportSnapshotResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ExportSnapshotResponse - var err error - defer close(result) - response, err = client.ExportSnapshot(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ExportSnapshotRequest is the request struct for api ExportSnapshot -type ExportSnapshotRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - OssBucket string `position:"Query" name:"OssBucket"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RoleName string `position:"Query" name:"RoleName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ExportSnapshotResponse is the response struct for api ExportSnapshot -type ExportSnapshotResponse struct { - *responses.BaseResponse - TaskId string `json:"TaskId" xml:"TaskId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateExportSnapshotRequest creates a request to invoke ExportSnapshot API -func CreateExportSnapshotRequest() (request *ExportSnapshotRequest) { - request = &ExportSnapshotRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ExportSnapshot", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateExportSnapshotResponse creates a response to parse from ExportSnapshot response -func CreateExportSnapshotResponse() (response *ExportSnapshotResponse) { - response = &ExportSnapshotResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go deleted file mode 100644 index 353cdc7b34..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// GetInstanceConsoleOutput invokes the ecs.GetInstanceConsoleOutput API synchronously -func (client *Client) GetInstanceConsoleOutput(request *GetInstanceConsoleOutputRequest) (response *GetInstanceConsoleOutputResponse, err error) { - response = CreateGetInstanceConsoleOutputResponse() - err = client.DoAction(request, response) - return -} - -// GetInstanceConsoleOutputWithChan invokes the ecs.GetInstanceConsoleOutput API asynchronously -func (client *Client) GetInstanceConsoleOutputWithChan(request *GetInstanceConsoleOutputRequest) (<-chan *GetInstanceConsoleOutputResponse, <-chan error) { - responseChan := make(chan *GetInstanceConsoleOutputResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetInstanceConsoleOutput(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetInstanceConsoleOutputWithCallback invokes the ecs.GetInstanceConsoleOutput API asynchronously -func (client *Client) GetInstanceConsoleOutputWithCallback(request *GetInstanceConsoleOutputRequest, callback func(response *GetInstanceConsoleOutputResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetInstanceConsoleOutputResponse - var err error - defer close(result) - response, err = client.GetInstanceConsoleOutput(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetInstanceConsoleOutputRequest is the request struct for api GetInstanceConsoleOutput -type GetInstanceConsoleOutputRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - RemoveSymbols requests.Boolean `position:"Query" name:"RemoveSymbols"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// GetInstanceConsoleOutputResponse is the response struct for api GetInstanceConsoleOutput -type GetInstanceConsoleOutputResponse struct { - *responses.BaseResponse - LastUpdateTime string `json:"LastUpdateTime" xml:"LastUpdateTime"` - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - ConsoleOutput string `json:"ConsoleOutput" xml:"ConsoleOutput"` -} - -// CreateGetInstanceConsoleOutputRequest creates a request to invoke GetInstanceConsoleOutput API -func CreateGetInstanceConsoleOutputRequest() (request *GetInstanceConsoleOutputRequest) { - request = &GetInstanceConsoleOutputRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "GetInstanceConsoleOutput", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetInstanceConsoleOutputResponse creates a response to parse from GetInstanceConsoleOutput response -func CreateGetInstanceConsoleOutputResponse() (response *GetInstanceConsoleOutputResponse) { - response = &GetInstanceConsoleOutputResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go deleted file mode 100644 index 57a01e5cac..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// GetInstanceScreenshot invokes the ecs.GetInstanceScreenshot API synchronously -func (client *Client) GetInstanceScreenshot(request *GetInstanceScreenshotRequest) (response *GetInstanceScreenshotResponse, err error) { - response = CreateGetInstanceScreenshotResponse() - err = client.DoAction(request, response) - return -} - -// GetInstanceScreenshotWithChan invokes the ecs.GetInstanceScreenshot API asynchronously -func (client *Client) GetInstanceScreenshotWithChan(request *GetInstanceScreenshotRequest) (<-chan *GetInstanceScreenshotResponse, <-chan error) { - responseChan := make(chan *GetInstanceScreenshotResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetInstanceScreenshot(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetInstanceScreenshotWithCallback invokes the ecs.GetInstanceScreenshot API asynchronously -func (client *Client) GetInstanceScreenshotWithCallback(request *GetInstanceScreenshotRequest, callback func(response *GetInstanceScreenshotResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetInstanceScreenshotResponse - var err error - defer close(result) - response, err = client.GetInstanceScreenshot(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetInstanceScreenshotRequest is the request struct for api GetInstanceScreenshot -type GetInstanceScreenshotRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - WakeUp requests.Boolean `position:"Query" name:"WakeUp"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// GetInstanceScreenshotResponse is the response struct for api GetInstanceScreenshot -type GetInstanceScreenshotResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Screenshot string `json:"Screenshot" xml:"Screenshot"` -} - -// CreateGetInstanceScreenshotRequest creates a request to invoke GetInstanceScreenshot API -func CreateGetInstanceScreenshotRequest() (request *GetInstanceScreenshotRequest) { - request = &GetInstanceScreenshotRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "GetInstanceScreenshot", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetInstanceScreenshotResponse creates a response to parse from GetInstanceScreenshot response -func CreateGetInstanceScreenshotResponse() (response *GetInstanceScreenshotResponse) { - response = &GetInstanceScreenshotResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go deleted file mode 100644 index 871531e3cd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go +++ /dev/null @@ -1,142 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ImportImage invokes the ecs.ImportImage API synchronously -func (client *Client) ImportImage(request *ImportImageRequest) (response *ImportImageResponse, err error) { - response = CreateImportImageResponse() - err = client.DoAction(request, response) - return -} - -// ImportImageWithChan invokes the ecs.ImportImage API asynchronously -func (client *Client) ImportImageWithChan(request *ImportImageRequest) (<-chan *ImportImageResponse, <-chan error) { - responseChan := make(chan *ImportImageResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ImportImage(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ImportImageWithCallback invokes the ecs.ImportImage API asynchronously -func (client *Client) ImportImageWithCallback(request *ImportImageRequest, callback func(response *ImportImageResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ImportImageResponse - var err error - defer close(result) - response, err = client.ImportImage(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ImportImageRequest is the request struct for api ImportImage -type ImportImageRequest struct { - *requests.RpcRequest - DiskDeviceMapping *[]ImportImageDiskDeviceMapping `position:"Query" name:"DiskDeviceMapping" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - Platform string `position:"Query" name:"Platform"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Features ImportImageFeatures `position:"Query" name:"Features" type:"Struct"` - BootMode string `position:"Query" name:"BootMode"` - ImageName string `position:"Query" name:"ImageName"` - StorageLocationArn string `position:"Query" name:"StorageLocationArn"` - Tag *[]ImportImageTag `position:"Query" name:"Tag" type:"Repeated"` - Architecture string `position:"Query" name:"Architecture"` - LicenseType string `position:"Query" name:"LicenseType"` - DetectionStrategy string `position:"Query" name:"DetectionStrategy"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RoleName string `position:"Query" name:"RoleName"` - OSType string `position:"Query" name:"OSType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ImportImageDiskDeviceMapping is a repeated param struct in ImportImageRequest -type ImportImageDiskDeviceMapping struct { - OSSBucket string `name:"OSSBucket"` - DiskImSize string `name:"DiskImSize"` - Format string `name:"Format"` - Device string `name:"Device"` - OSSObject string `name:"OSSObject"` - DiskImageSize string `name:"DiskImageSize"` -} - -// ImportImageFeatures is a repeated param struct in ImportImageRequest -type ImportImageFeatures struct { - NvmeSupport string `name:"NvmeSupport"` - ImdsSupport string `name:"ImdsSupport"` -} - -// ImportImageTag is a repeated param struct in ImportImageRequest -type ImportImageTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// ImportImageResponse is the response struct for api ImportImage -type ImportImageResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ImageId string `json:"ImageId" xml:"ImageId"` - TaskId string `json:"TaskId" xml:"TaskId"` - RegionId string `json:"RegionId" xml:"RegionId"` -} - -// CreateImportImageRequest creates a request to invoke ImportImage API -func CreateImportImageRequest() (request *ImportImageRequest) { - request = &ImportImageRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ImportImage", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateImportImageResponse creates a response to parse from ImportImage response -func CreateImportImageResponse() (response *ImportImageResponse) { - response = &ImportImageResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go deleted file mode 100644 index a3d33ba120..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ImportKeyPair invokes the ecs.ImportKeyPair API synchronously -func (client *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error) { - response = CreateImportKeyPairResponse() - err = client.DoAction(request, response) - return -} - -// ImportKeyPairWithChan invokes the ecs.ImportKeyPair API asynchronously -func (client *Client) ImportKeyPairWithChan(request *ImportKeyPairRequest) (<-chan *ImportKeyPairResponse, <-chan error) { - responseChan := make(chan *ImportKeyPairResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ImportKeyPair(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ImportKeyPairWithCallback invokes the ecs.ImportKeyPair API asynchronously -func (client *Client) ImportKeyPairWithCallback(request *ImportKeyPairRequest, callback func(response *ImportKeyPairResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ImportKeyPairResponse - var err error - defer close(result) - response, err = client.ImportKeyPair(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ImportKeyPairRequest is the request struct for api ImportKeyPair -type ImportKeyPairRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KeyPairName string `position:"Query" name:"KeyPairName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]ImportKeyPairTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PublicKeyBody string `position:"Query" name:"PublicKeyBody"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ImportKeyPairTag is a repeated param struct in ImportKeyPairRequest -type ImportKeyPairTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// ImportKeyPairResponse is the response struct for api ImportKeyPair -type ImportKeyPairResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` -} - -// CreateImportKeyPairRequest creates a request to invoke ImportKeyPair API -func CreateImportKeyPairRequest() (request *ImportKeyPairRequest) { - request = &ImportKeyPairRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ImportKeyPair", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateImportKeyPairResponse creates a response to parse from ImportKeyPair response -func CreateImportKeyPairResponse() (response *ImportKeyPairResponse) { - response = &ImportKeyPairResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go deleted file mode 100644 index a76301d8bb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// InstallCloudAssistant invokes the ecs.InstallCloudAssistant API synchronously -func (client *Client) InstallCloudAssistant(request *InstallCloudAssistantRequest) (response *InstallCloudAssistantResponse, err error) { - response = CreateInstallCloudAssistantResponse() - err = client.DoAction(request, response) - return -} - -// InstallCloudAssistantWithChan invokes the ecs.InstallCloudAssistant API asynchronously -func (client *Client) InstallCloudAssistantWithChan(request *InstallCloudAssistantRequest) (<-chan *InstallCloudAssistantResponse, <-chan error) { - responseChan := make(chan *InstallCloudAssistantResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.InstallCloudAssistant(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// InstallCloudAssistantWithCallback invokes the ecs.InstallCloudAssistant API asynchronously -func (client *Client) InstallCloudAssistantWithCallback(request *InstallCloudAssistantRequest, callback func(response *InstallCloudAssistantResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *InstallCloudAssistantResponse - var err error - defer close(result) - response, err = client.InstallCloudAssistant(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// InstallCloudAssistantRequest is the request struct for api InstallCloudAssistant -type InstallCloudAssistantRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` -} - -// InstallCloudAssistantResponse is the response struct for api InstallCloudAssistant -type InstallCloudAssistantResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateInstallCloudAssistantRequest creates a request to invoke InstallCloudAssistant API -func CreateInstallCloudAssistantRequest() (request *InstallCloudAssistantRequest) { - request = &InstallCloudAssistantRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "InstallCloudAssistant", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateInstallCloudAssistantResponse creates a response to parse from InstallCloudAssistant response -func CreateInstallCloudAssistantResponse() (response *InstallCloudAssistantResponse) { - response = &InstallCloudAssistantResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go deleted file mode 100644 index 2ec64a97ed..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go +++ /dev/null @@ -1,140 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// InvokeCommand invokes the ecs.InvokeCommand API synchronously -func (client *Client) InvokeCommand(request *InvokeCommandRequest) (response *InvokeCommandResponse, err error) { - response = CreateInvokeCommandResponse() - err = client.DoAction(request, response) - return -} - -// InvokeCommandWithChan invokes the ecs.InvokeCommand API asynchronously -func (client *Client) InvokeCommandWithChan(request *InvokeCommandRequest) (<-chan *InvokeCommandResponse, <-chan error) { - responseChan := make(chan *InvokeCommandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.InvokeCommand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// InvokeCommandWithCallback invokes the ecs.InvokeCommand API asynchronously -func (client *Client) InvokeCommandWithCallback(request *InvokeCommandRequest, callback func(response *InvokeCommandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *InvokeCommandResponse - var err error - defer close(result) - response, err = client.InvokeCommand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// InvokeCommandRequest is the request struct for api InvokeCommand -type InvokeCommandRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ContainerName string `position:"Query" name:"ContainerName"` - ClientToken string `position:"Query" name:"ClientToken"` - SystemTag *[]InvokeCommandSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` - CommandId string `position:"Query" name:"CommandId"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - Frequency string `position:"Query" name:"Frequency"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - RepeatMode string `position:"Query" name:"RepeatMode"` - WindowsPasswordName string `position:"Query" name:"WindowsPasswordName"` - ResourceTag *[]InvokeCommandResourceTag `position:"Query" name:"ResourceTag" type:"Repeated"` - Tag *[]InvokeCommandTag `position:"Query" name:"Tag" type:"Repeated"` - Timed requests.Boolean `position:"Query" name:"Timed"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - TerminationMode string `position:"Query" name:"TerminationMode"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - ContainerId string `position:"Query" name:"ContainerId"` - Parameters map[string]interface{} `position:"Query" name:"Parameters"` - Username string `position:"Query" name:"Username"` - Launcher string `position:"Query" name:"Launcher"` -} - -// InvokeCommandSystemTag is a repeated param struct in InvokeCommandRequest -type InvokeCommandSystemTag struct { - Key string `name:"Key"` - Value string `name:"Value"` - Scope string `name:"Scope"` -} - -// InvokeCommandResourceTag is a repeated param struct in InvokeCommandRequest -type InvokeCommandResourceTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// InvokeCommandTag is a repeated param struct in InvokeCommandRequest -type InvokeCommandTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// InvokeCommandResponse is the response struct for api InvokeCommand -type InvokeCommandResponse struct { - *responses.BaseResponse - InvokeId string `json:"InvokeId" xml:"InvokeId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateInvokeCommandRequest creates a request to invoke InvokeCommand API -func CreateInvokeCommandRequest() (request *InvokeCommandRequest) { - request = &InvokeCommandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "InvokeCommand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateInvokeCommandResponse creates a response to parse from InvokeCommand response -func CreateInvokeCommandResponse() (response *InvokeCommandResponse) { - response = &InvokeCommandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go deleted file mode 100644 index 3bbefc654b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// JoinResourceGroup invokes the ecs.JoinResourceGroup API synchronously -func (client *Client) JoinResourceGroup(request *JoinResourceGroupRequest) (response *JoinResourceGroupResponse, err error) { - response = CreateJoinResourceGroupResponse() - err = client.DoAction(request, response) - return -} - -// JoinResourceGroupWithChan invokes the ecs.JoinResourceGroup API asynchronously -func (client *Client) JoinResourceGroupWithChan(request *JoinResourceGroupRequest) (<-chan *JoinResourceGroupResponse, <-chan error) { - responseChan := make(chan *JoinResourceGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.JoinResourceGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// JoinResourceGroupWithCallback invokes the ecs.JoinResourceGroup API asynchronously -func (client *Client) JoinResourceGroupWithCallback(request *JoinResourceGroupRequest, callback func(response *JoinResourceGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *JoinResourceGroupResponse - var err error - defer close(result) - response, err = client.JoinResourceGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// JoinResourceGroupRequest is the request struct for api JoinResourceGroup -type JoinResourceGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - ResourceId string `position:"Query" name:"ResourceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// JoinResourceGroupResponse is the response struct for api JoinResourceGroup -type JoinResourceGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateJoinResourceGroupRequest creates a request to invoke JoinResourceGroup API -func CreateJoinResourceGroupRequest() (request *JoinResourceGroupRequest) { - request = &JoinResourceGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "JoinResourceGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateJoinResourceGroupResponse creates a response to parse from JoinResourceGroup response -func CreateJoinResourceGroupResponse() (response *JoinResourceGroupResponse) { - response = &JoinResourceGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go deleted file mode 100644 index a2e9ba42e9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// JoinSecurityGroup invokes the ecs.JoinSecurityGroup API synchronously -func (client *Client) JoinSecurityGroup(request *JoinSecurityGroupRequest) (response *JoinSecurityGroupResponse, err error) { - response = CreateJoinSecurityGroupResponse() - err = client.DoAction(request, response) - return -} - -// JoinSecurityGroupWithChan invokes the ecs.JoinSecurityGroup API asynchronously -func (client *Client) JoinSecurityGroupWithChan(request *JoinSecurityGroupRequest) (<-chan *JoinSecurityGroupResponse, <-chan error) { - responseChan := make(chan *JoinSecurityGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.JoinSecurityGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// JoinSecurityGroupWithCallback invokes the ecs.JoinSecurityGroup API asynchronously -func (client *Client) JoinSecurityGroupWithCallback(request *JoinSecurityGroupRequest, callback func(response *JoinSecurityGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *JoinSecurityGroupResponse - var err error - defer close(result) - response, err = client.JoinSecurityGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// JoinSecurityGroupRequest is the request struct for api JoinSecurityGroup -type JoinSecurityGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// JoinSecurityGroupResponse is the response struct for api JoinSecurityGroup -type JoinSecurityGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateJoinSecurityGroupRequest creates a request to invoke JoinSecurityGroup API -func CreateJoinSecurityGroupRequest() (request *JoinSecurityGroupRequest) { - request = &JoinSecurityGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "JoinSecurityGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateJoinSecurityGroupResponse creates a response to parse from JoinSecurityGroup response -func CreateJoinSecurityGroupResponse() (response *JoinSecurityGroupResponse) { - response = &JoinSecurityGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go deleted file mode 100644 index 9b6b448a97..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// LeaveSecurityGroup invokes the ecs.LeaveSecurityGroup API synchronously -func (client *Client) LeaveSecurityGroup(request *LeaveSecurityGroupRequest) (response *LeaveSecurityGroupResponse, err error) { - response = CreateLeaveSecurityGroupResponse() - err = client.DoAction(request, response) - return -} - -// LeaveSecurityGroupWithChan invokes the ecs.LeaveSecurityGroup API asynchronously -func (client *Client) LeaveSecurityGroupWithChan(request *LeaveSecurityGroupRequest) (<-chan *LeaveSecurityGroupResponse, <-chan error) { - responseChan := make(chan *LeaveSecurityGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.LeaveSecurityGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// LeaveSecurityGroupWithCallback invokes the ecs.LeaveSecurityGroup API asynchronously -func (client *Client) LeaveSecurityGroupWithCallback(request *LeaveSecurityGroupRequest, callback func(response *LeaveSecurityGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *LeaveSecurityGroupResponse - var err error - defer close(result) - response, err = client.LeaveSecurityGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// LeaveSecurityGroupRequest is the request struct for api LeaveSecurityGroup -type LeaveSecurityGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// LeaveSecurityGroupResponse is the response struct for api LeaveSecurityGroup -type LeaveSecurityGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateLeaveSecurityGroupRequest creates a request to invoke LeaveSecurityGroup API -func CreateLeaveSecurityGroupRequest() (request *LeaveSecurityGroupRequest) { - request = &LeaveSecurityGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "LeaveSecurityGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateLeaveSecurityGroupResponse creates a response to parse from LeaveSecurityGroup response -func CreateLeaveSecurityGroupResponse() (response *LeaveSecurityGroupResponse) { - response = &LeaveSecurityGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_plugin_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_plugin_status.go deleted file mode 100644 index a71e097a8b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_plugin_status.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ListPluginStatus invokes the ecs.ListPluginStatus API synchronously -func (client *Client) ListPluginStatus(request *ListPluginStatusRequest) (response *ListPluginStatusResponse, err error) { - response = CreateListPluginStatusResponse() - err = client.DoAction(request, response) - return -} - -// ListPluginStatusWithChan invokes the ecs.ListPluginStatus API asynchronously -func (client *Client) ListPluginStatusWithChan(request *ListPluginStatusRequest) (<-chan *ListPluginStatusResponse, <-chan error) { - responseChan := make(chan *ListPluginStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ListPluginStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ListPluginStatusWithCallback invokes the ecs.ListPluginStatus API asynchronously -func (client *Client) ListPluginStatusWithCallback(request *ListPluginStatusRequest, callback func(response *ListPluginStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ListPluginStatusResponse - var err error - defer close(result) - response, err = client.ListPluginStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ListPluginStatusRequest is the request struct for api ListPluginStatus -type ListPluginStatusRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - NextToken string `position:"Query" name:"NextToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - Name string `position:"Query" name:"Name"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` -} - -// ListPluginStatusResponse is the response struct for api ListPluginStatus -type ListPluginStatusResponse struct { - *responses.BaseResponse - PageSize int64 `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - InstancePluginStatusSet InstancePluginStatusSet `json:"InstancePluginStatusSet" xml:"InstancePluginStatusSet"` -} - -// CreateListPluginStatusRequest creates a request to invoke ListPluginStatus API -func CreateListPluginStatusRequest() (request *ListPluginStatusRequest) { - request = &ListPluginStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ListPluginStatus", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateListPluginStatusResponse creates a response to parse from ListPluginStatus response -func CreateListPluginStatusResponse() (response *ListPluginStatusResponse) { - response = &ListPluginStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go deleted file mode 100644 index 11e7a93e0e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go +++ /dev/null @@ -1,121 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ListTagResources invokes the ecs.ListTagResources API synchronously -func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) { - response = CreateListTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// ListTagResourcesWithChan invokes the ecs.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) { - responseChan := make(chan *ListTagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ListTagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ListTagResourcesWithCallback invokes the ecs.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ListTagResourcesResponse - var err error - defer close(result) - response, err = client.ListTagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ListTagResourcesRequest is the request struct for api ListTagResources -type ListTagResourcesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - TagFilter *[]ListTagResourcesTagFilter `position:"Query" name:"TagFilter" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest -type ListTagResourcesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// ListTagResourcesTagFilter is a repeated param struct in ListTagResourcesRequest -type ListTagResourcesTagFilter struct { - TagValues *[]string `name:"TagValues" type:"Repeated"` - TagKey string `name:"TagKey"` -} - -// ListTagResourcesResponse is the response struct for api ListTagResources -type ListTagResourcesResponse struct { - *responses.BaseResponse - NextToken string `json:"NextToken" xml:"NextToken"` - RequestId string `json:"RequestId" xml:"RequestId"` - TagResources TagResources `json:"TagResources" xml:"TagResources"` -} - -// CreateListTagResourcesRequest creates a request to invoke ListTagResources API -func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { - request = &ListTagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ListTagResources", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateListTagResourcesResponse creates a response to parse from ListTagResources response -func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) { - response = &ListTagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go deleted file mode 100644 index a480feb33c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go +++ /dev/null @@ -1,121 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyAutoProvisioningGroup invokes the ecs.ModifyAutoProvisioningGroup API synchronously -func (client *Client) ModifyAutoProvisioningGroup(request *ModifyAutoProvisioningGroupRequest) (response *ModifyAutoProvisioningGroupResponse, err error) { - response = CreateModifyAutoProvisioningGroupResponse() - err = client.DoAction(request, response) - return -} - -// ModifyAutoProvisioningGroupWithChan invokes the ecs.ModifyAutoProvisioningGroup API asynchronously -func (client *Client) ModifyAutoProvisioningGroupWithChan(request *ModifyAutoProvisioningGroupRequest) (<-chan *ModifyAutoProvisioningGroupResponse, <-chan error) { - responseChan := make(chan *ModifyAutoProvisioningGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyAutoProvisioningGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyAutoProvisioningGroupWithCallback invokes the ecs.ModifyAutoProvisioningGroup API asynchronously -func (client *Client) ModifyAutoProvisioningGroupWithCallback(request *ModifyAutoProvisioningGroupRequest, callback func(response *ModifyAutoProvisioningGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyAutoProvisioningGroupResponse - var err error - defer close(result) - response, err = client.ModifyAutoProvisioningGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyAutoProvisioningGroupRequest is the request struct for api ModifyAutoProvisioningGroup -type ModifyAutoProvisioningGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` - DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` - ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` - LaunchTemplateConfig *[]ModifyAutoProvisioningGroupLaunchTemplateConfig `position:"Query" name:"LaunchTemplateConfig" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoProvisioningGroupId string `position:"Query" name:"AutoProvisioningGroupId"` - PayAsYouGoTargetCapacity string `position:"Query" name:"PayAsYouGoTargetCapacity"` - TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` - SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` - MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` - AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"` -} - -// ModifyAutoProvisioningGroupLaunchTemplateConfig is a repeated param struct in ModifyAutoProvisioningGroupRequest -type ModifyAutoProvisioningGroupLaunchTemplateConfig struct { - VSwitchId string `name:"VSwitchId"` - MaxPrice string `name:"MaxPrice"` - Priority string `name:"Priority"` - InstanceType string `name:"InstanceType"` - WeightedCapacity string `name:"WeightedCapacity"` -} - -// ModifyAutoProvisioningGroupResponse is the response struct for api ModifyAutoProvisioningGroup -type ModifyAutoProvisioningGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyAutoProvisioningGroupRequest creates a request to invoke ModifyAutoProvisioningGroup API -func CreateModifyAutoProvisioningGroupRequest() (request *ModifyAutoProvisioningGroupRequest) { - request = &ModifyAutoProvisioningGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoProvisioningGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyAutoProvisioningGroupResponse creates a response to parse from ModifyAutoProvisioningGroup response -func CreateModifyAutoProvisioningGroupResponse() (response *ModifyAutoProvisioningGroupResponse) { - response = &ModifyAutoProvisioningGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go deleted file mode 100644 index 0085bb7766..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go +++ /dev/null @@ -1,124 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyAutoSnapshotPolicyEx invokes the ecs.ModifyAutoSnapshotPolicyEx API synchronously -func (client *Client) ModifyAutoSnapshotPolicyEx(request *ModifyAutoSnapshotPolicyExRequest) (response *ModifyAutoSnapshotPolicyExResponse, err error) { - response = CreateModifyAutoSnapshotPolicyExResponse() - err = client.DoAction(request, response) - return -} - -// ModifyAutoSnapshotPolicyExWithChan invokes the ecs.ModifyAutoSnapshotPolicyEx API asynchronously -func (client *Client) ModifyAutoSnapshotPolicyExWithChan(request *ModifyAutoSnapshotPolicyExRequest) (<-chan *ModifyAutoSnapshotPolicyExResponse, <-chan error) { - responseChan := make(chan *ModifyAutoSnapshotPolicyExResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyAutoSnapshotPolicyEx(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyAutoSnapshotPolicyExWithCallback invokes the ecs.ModifyAutoSnapshotPolicyEx API asynchronously -func (client *Client) ModifyAutoSnapshotPolicyExWithCallback(request *ModifyAutoSnapshotPolicyExRequest, callback func(response *ModifyAutoSnapshotPolicyExResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyAutoSnapshotPolicyExResponse - var err error - defer close(result) - response, err = client.ModifyAutoSnapshotPolicyEx(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyAutoSnapshotPolicyExRequest is the request struct for api ModifyAutoSnapshotPolicyEx -type ModifyAutoSnapshotPolicyExRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CopyEncryptionConfiguration ModifyAutoSnapshotPolicyExCopyEncryptionConfiguration `position:"Query" name:"CopyEncryptionConfiguration" type:"Struct"` - AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` - CopiedSnapshotsRetentionDays requests.Integer `position:"Query" name:"CopiedSnapshotsRetentionDays"` - TimePoints string `position:"Query" name:"timePoints"` - RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` - EnableCrossRegionCopy requests.Boolean `position:"Query" name:"EnableCrossRegionCopy"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` - RetentionDays requests.Integer `position:"Query" name:"retentionDays"` - TargetCopyRegions string `position:"Query" name:"TargetCopyRegions"` -} - -// ModifyAutoSnapshotPolicyExCopyEncryptionConfiguration is a repeated param struct in ModifyAutoSnapshotPolicyExRequest -type ModifyAutoSnapshotPolicyExCopyEncryptionConfiguration struct { - Encrypted string `name:"Encrypted"` - KMSKeyId string `name:"KMSKeyId"` - Arn *[]ModifyAutoSnapshotPolicyExCopyEncryptionConfigurationArnItem `name:"Arn" type:"Repeated"` -} - -// ModifyAutoSnapshotPolicyExCopyEncryptionConfigurationArnItem is a repeated param struct in ModifyAutoSnapshotPolicyExRequest -type ModifyAutoSnapshotPolicyExCopyEncryptionConfigurationArnItem struct { - Rolearn string `name:"Rolearn"` - RoleType string `name:"RoleType"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// ModifyAutoSnapshotPolicyExResponse is the response struct for api ModifyAutoSnapshotPolicyEx -type ModifyAutoSnapshotPolicyExResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyAutoSnapshotPolicyExRequest creates a request to invoke ModifyAutoSnapshotPolicyEx API -func CreateModifyAutoSnapshotPolicyExRequest() (request *ModifyAutoSnapshotPolicyExRequest) { - request = &ModifyAutoSnapshotPolicyExRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyAutoSnapshotPolicyExResponse creates a response to parse from ModifyAutoSnapshotPolicyEx response -func CreateModifyAutoSnapshotPolicyExResponse() (response *ModifyAutoSnapshotPolicyExResponse) { - response = &ModifyAutoSnapshotPolicyExResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go deleted file mode 100644 index e4ed44fc3c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyBandwidthPackageSpec invokes the ecs.ModifyBandwidthPackageSpec API synchronously -func (client *Client) ModifyBandwidthPackageSpec(request *ModifyBandwidthPackageSpecRequest) (response *ModifyBandwidthPackageSpecResponse, err error) { - response = CreateModifyBandwidthPackageSpecResponse() - err = client.DoAction(request, response) - return -} - -// ModifyBandwidthPackageSpecWithChan invokes the ecs.ModifyBandwidthPackageSpec API asynchronously -func (client *Client) ModifyBandwidthPackageSpecWithChan(request *ModifyBandwidthPackageSpecRequest) (<-chan *ModifyBandwidthPackageSpecResponse, <-chan error) { - responseChan := make(chan *ModifyBandwidthPackageSpecResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyBandwidthPackageSpec(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyBandwidthPackageSpecWithCallback invokes the ecs.ModifyBandwidthPackageSpec API asynchronously -func (client *Client) ModifyBandwidthPackageSpecWithCallback(request *ModifyBandwidthPackageSpecRequest, callback func(response *ModifyBandwidthPackageSpecResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyBandwidthPackageSpecResponse - var err error - defer close(result) - response, err = client.ModifyBandwidthPackageSpec(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyBandwidthPackageSpecRequest is the request struct for api ModifyBandwidthPackageSpec -type ModifyBandwidthPackageSpecRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth string `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyBandwidthPackageSpecResponse is the response struct for api ModifyBandwidthPackageSpec -type ModifyBandwidthPackageSpecResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyBandwidthPackageSpecRequest creates a request to invoke ModifyBandwidthPackageSpec API -func CreateModifyBandwidthPackageSpecRequest() (request *ModifyBandwidthPackageSpecRequest) { - request = &ModifyBandwidthPackageSpecRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyBandwidthPackageSpec", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyBandwidthPackageSpecResponse creates a response to parse from ModifyBandwidthPackageSpec response -func CreateModifyBandwidthPackageSpecResponse() (response *ModifyBandwidthPackageSpecResponse) { - response = &ModifyBandwidthPackageSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_capacity_reservation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_capacity_reservation.go deleted file mode 100644 index 3901be7457..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_capacity_reservation.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyCapacityReservation invokes the ecs.ModifyCapacityReservation API synchronously -func (client *Client) ModifyCapacityReservation(request *ModifyCapacityReservationRequest) (response *ModifyCapacityReservationResponse, err error) { - response = CreateModifyCapacityReservationResponse() - err = client.DoAction(request, response) - return -} - -// ModifyCapacityReservationWithChan invokes the ecs.ModifyCapacityReservation API asynchronously -func (client *Client) ModifyCapacityReservationWithChan(request *ModifyCapacityReservationRequest) (<-chan *ModifyCapacityReservationResponse, <-chan error) { - responseChan := make(chan *ModifyCapacityReservationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyCapacityReservation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyCapacityReservationWithCallback invokes the ecs.ModifyCapacityReservation API asynchronously -func (client *Client) ModifyCapacityReservationWithCallback(request *ModifyCapacityReservationRequest, callback func(response *ModifyCapacityReservationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyCapacityReservationResponse - var err error - defer close(result) - response, err = client.ModifyCapacityReservation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyCapacityReservationRequest is the request struct for api ModifyCapacityReservation -type ModifyCapacityReservationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - StartTime string `position:"Query" name:"StartTime"` - Platform string `position:"Query" name:"Platform"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - EndTimeType string `position:"Query" name:"EndTimeType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PackageType string `position:"Query" name:"PackageType"` - InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` -} - -// ModifyCapacityReservationResponse is the response struct for api ModifyCapacityReservation -type ModifyCapacityReservationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyCapacityReservationRequest creates a request to invoke ModifyCapacityReservation API -func CreateModifyCapacityReservationRequest() (request *ModifyCapacityReservationRequest) { - request = &ModifyCapacityReservationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyCapacityReservation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyCapacityReservationResponse creates a response to parse from ModifyCapacityReservation response -func CreateModifyCapacityReservationResponse() (response *ModifyCapacityReservationResponse) { - response = &ModifyCapacityReservationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_cloud_assistant_settings.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_cloud_assistant_settings.go deleted file mode 100644 index a5c4fad58e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_cloud_assistant_settings.go +++ /dev/null @@ -1,130 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyCloudAssistantSettings invokes the ecs.ModifyCloudAssistantSettings API synchronously -func (client *Client) ModifyCloudAssistantSettings(request *ModifyCloudAssistantSettingsRequest) (response *ModifyCloudAssistantSettingsResponse, err error) { - response = CreateModifyCloudAssistantSettingsResponse() - err = client.DoAction(request, response) - return -} - -// ModifyCloudAssistantSettingsWithChan invokes the ecs.ModifyCloudAssistantSettings API asynchronously -func (client *Client) ModifyCloudAssistantSettingsWithChan(request *ModifyCloudAssistantSettingsRequest) (<-chan *ModifyCloudAssistantSettingsResponse, <-chan error) { - responseChan := make(chan *ModifyCloudAssistantSettingsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyCloudAssistantSettings(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyCloudAssistantSettingsWithCallback invokes the ecs.ModifyCloudAssistantSettings API asynchronously -func (client *Client) ModifyCloudAssistantSettingsWithCallback(request *ModifyCloudAssistantSettingsRequest, callback func(response *ModifyCloudAssistantSettingsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyCloudAssistantSettingsResponse - var err error - defer close(result) - response, err = client.ModifyCloudAssistantSettings(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyCloudAssistantSettingsRequest is the request struct for api ModifyCloudAssistantSettings -type ModifyCloudAssistantSettingsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AgentUpgradeConfig ModifyCloudAssistantSettingsAgentUpgradeConfig `position:"Query" name:"AgentUpgradeConfig" type:"Struct"` - OssDeliveryConfig ModifyCloudAssistantSettingsOssDeliveryConfig `position:"Query" name:"OssDeliveryConfig" type:"Struct"` - SettingType string `position:"Query" name:"SettingType"` - SlsDeliveryConfig ModifyCloudAssistantSettingsSlsDeliveryConfig `position:"Query" name:"SlsDeliveryConfig" type:"Struct"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyCloudAssistantSettingsAgentUpgradeConfig is a repeated param struct in ModifyCloudAssistantSettingsRequest -type ModifyCloudAssistantSettingsAgentUpgradeConfig struct { - Enabled string `name:"Enabled"` - AllowedUpgradeWindow *[]string `name:"AllowedUpgradeWindow" type:"Repeated"` - TimeZone string `name:"TimeZone"` -} - -// ModifyCloudAssistantSettingsOssDeliveryConfig is a repeated param struct in ModifyCloudAssistantSettingsRequest -type ModifyCloudAssistantSettingsOssDeliveryConfig struct { - Enabled string `name:"Enabled"` - BucketName string `name:"BucketName"` - Prefix string `name:"Prefix"` - EncryptionType string `name:"EncryptionType"` - EncryptionAlgorithm string `name:"EncryptionAlgorithm"` - EncryptionKeyId string `name:"EncryptionKeyId"` -} - -// ModifyCloudAssistantSettingsSlsDeliveryConfig is a repeated param struct in ModifyCloudAssistantSettingsRequest -type ModifyCloudAssistantSettingsSlsDeliveryConfig struct { - Enabled string `name:"Enabled"` - ProjectName string `name:"ProjectName"` - LogstoreName string `name:"LogstoreName"` -} - -// ModifyCloudAssistantSettingsResponse is the response struct for api ModifyCloudAssistantSettings -type ModifyCloudAssistantSettingsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyCloudAssistantSettingsRequest creates a request to invoke ModifyCloudAssistantSettings API -func CreateModifyCloudAssistantSettingsRequest() (request *ModifyCloudAssistantSettingsRequest) { - request = &ModifyCloudAssistantSettingsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyCloudAssistantSettings", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyCloudAssistantSettingsResponse creates a response to parse from ModifyCloudAssistantSettings response -func CreateModifyCloudAssistantSettingsResponse() (response *ModifyCloudAssistantSettingsResponse) { - response = &ModifyCloudAssistantSettingsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go deleted file mode 100644 index 1fbd2e81e5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyCommand invokes the ecs.ModifyCommand API synchronously -func (client *Client) ModifyCommand(request *ModifyCommandRequest) (response *ModifyCommandResponse, err error) { - response = CreateModifyCommandResponse() - err = client.DoAction(request, response) - return -} - -// ModifyCommandWithChan invokes the ecs.ModifyCommand API asynchronously -func (client *Client) ModifyCommandWithChan(request *ModifyCommandRequest) (<-chan *ModifyCommandResponse, <-chan error) { - responseChan := make(chan *ModifyCommandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyCommand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyCommandWithCallback invokes the ecs.ModifyCommand API asynchronously -func (client *Client) ModifyCommandWithCallback(request *ModifyCommandRequest, callback func(response *ModifyCommandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyCommandResponse - var err error - defer close(result) - response, err = client.ModifyCommand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyCommandRequest is the request struct for api ModifyCommand -type ModifyCommandRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - WorkingDir string `position:"Query" name:"WorkingDir"` - Description string `position:"Query" name:"Description"` - CommandId string `position:"Query" name:"CommandId"` - CommandContent string `position:"Query" name:"CommandContent"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` - Launcher string `position:"Query" name:"Launcher"` -} - -// ModifyCommandResponse is the response struct for api ModifyCommand -type ModifyCommandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyCommandRequest creates a request to invoke ModifyCommand API -func CreateModifyCommandRequest() (request *ModifyCommandRequest) { - request = &ModifyCommandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyCommand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyCommandResponse creates a response to parse from ModifyCommand response -func CreateModifyCommandResponse() (response *ModifyCommandResponse) { - response = &ModifyCommandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go deleted file mode 100644 index d48c5c6562..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDedicatedHostAttribute invokes the ecs.ModifyDedicatedHostAttribute API synchronously -func (client *Client) ModifyDedicatedHostAttribute(request *ModifyDedicatedHostAttributeRequest) (response *ModifyDedicatedHostAttributeResponse, err error) { - response = CreateModifyDedicatedHostAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDedicatedHostAttributeWithChan invokes the ecs.ModifyDedicatedHostAttribute API asynchronously -func (client *Client) ModifyDedicatedHostAttributeWithChan(request *ModifyDedicatedHostAttributeRequest) (<-chan *ModifyDedicatedHostAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyDedicatedHostAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDedicatedHostAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDedicatedHostAttributeWithCallback invokes the ecs.ModifyDedicatedHostAttribute API asynchronously -func (client *Client) ModifyDedicatedHostAttributeWithCallback(request *ModifyDedicatedHostAttributeRequest, callback func(response *ModifyDedicatedHostAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDedicatedHostAttributeResponse - var err error - defer close(result) - response, err = client.ModifyDedicatedHostAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDedicatedHostAttributeRequest is the request struct for api ModifyDedicatedHostAttribute -type ModifyDedicatedHostAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - CpuOverCommitRatio requests.Float `position:"Query" name:"CpuOverCommitRatio"` - ActionOnMaintenance string `position:"Query" name:"ActionOnMaintenance"` - DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` - DedicatedHostName string `position:"Query" name:"DedicatedHostName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkAttributesSlbUdpTimeout requests.Integer `position:"Query" name:"NetworkAttributes.SlbUdpTimeout"` - AutoPlacement string `position:"Query" name:"AutoPlacement"` - NetworkAttributesUdpTimeout requests.Integer `position:"Query" name:"NetworkAttributes.UdpTimeout"` -} - -// ModifyDedicatedHostAttributeResponse is the response struct for api ModifyDedicatedHostAttribute -type ModifyDedicatedHostAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDedicatedHostAttributeRequest creates a request to invoke ModifyDedicatedHostAttribute API -func CreateModifyDedicatedHostAttributeRequest() (request *ModifyDedicatedHostAttributeRequest) { - request = &ModifyDedicatedHostAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDedicatedHostAttributeResponse creates a response to parse from ModifyDedicatedHostAttribute response -func CreateModifyDedicatedHostAttributeResponse() (response *ModifyDedicatedHostAttributeResponse) { - response = &ModifyDedicatedHostAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go deleted file mode 100644 index 9ed0fee500..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDedicatedHostAutoReleaseTime invokes the ecs.ModifyDedicatedHostAutoReleaseTime API synchronously -func (client *Client) ModifyDedicatedHostAutoReleaseTime(request *ModifyDedicatedHostAutoReleaseTimeRequest) (response *ModifyDedicatedHostAutoReleaseTimeResponse, err error) { - response = CreateModifyDedicatedHostAutoReleaseTimeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDedicatedHostAutoReleaseTimeWithChan invokes the ecs.ModifyDedicatedHostAutoReleaseTime API asynchronously -func (client *Client) ModifyDedicatedHostAutoReleaseTimeWithChan(request *ModifyDedicatedHostAutoReleaseTimeRequest) (<-chan *ModifyDedicatedHostAutoReleaseTimeResponse, <-chan error) { - responseChan := make(chan *ModifyDedicatedHostAutoReleaseTimeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDedicatedHostAutoReleaseTime(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDedicatedHostAutoReleaseTimeWithCallback invokes the ecs.ModifyDedicatedHostAutoReleaseTime API asynchronously -func (client *Client) ModifyDedicatedHostAutoReleaseTimeWithCallback(request *ModifyDedicatedHostAutoReleaseTimeRequest, callback func(response *ModifyDedicatedHostAutoReleaseTimeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDedicatedHostAutoReleaseTimeResponse - var err error - defer close(result) - response, err = client.ModifyDedicatedHostAutoReleaseTime(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDedicatedHostAutoReleaseTimeRequest is the request struct for api ModifyDedicatedHostAutoReleaseTime -type ModifyDedicatedHostAutoReleaseTimeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyDedicatedHostAutoReleaseTimeResponse is the response struct for api ModifyDedicatedHostAutoReleaseTime -type ModifyDedicatedHostAutoReleaseTimeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDedicatedHostAutoReleaseTimeRequest creates a request to invoke ModifyDedicatedHostAutoReleaseTime API -func CreateModifyDedicatedHostAutoReleaseTimeRequest() (request *ModifyDedicatedHostAutoReleaseTimeRequest) { - request = &ModifyDedicatedHostAutoReleaseTimeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAutoReleaseTime", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDedicatedHostAutoReleaseTimeResponse creates a response to parse from ModifyDedicatedHostAutoReleaseTime response -func CreateModifyDedicatedHostAutoReleaseTimeResponse() (response *ModifyDedicatedHostAutoReleaseTimeResponse) { - response = &ModifyDedicatedHostAutoReleaseTimeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go deleted file mode 100644 index 3ba9bcbb89..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDedicatedHostAutoRenewAttribute invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API synchronously -func (client *Client) ModifyDedicatedHostAutoRenewAttribute(request *ModifyDedicatedHostAutoRenewAttributeRequest) (response *ModifyDedicatedHostAutoRenewAttributeResponse, err error) { - response = CreateModifyDedicatedHostAutoRenewAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDedicatedHostAutoRenewAttributeWithChan invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API asynchronously -func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithChan(request *ModifyDedicatedHostAutoRenewAttributeRequest) (<-chan *ModifyDedicatedHostAutoRenewAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyDedicatedHostAutoRenewAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDedicatedHostAutoRenewAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDedicatedHostAutoRenewAttributeWithCallback invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API asynchronously -func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithCallback(request *ModifyDedicatedHostAutoRenewAttributeRequest, callback func(response *ModifyDedicatedHostAutoRenewAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDedicatedHostAutoRenewAttributeResponse - var err error - defer close(result) - response, err = client.ModifyDedicatedHostAutoRenewAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDedicatedHostAutoRenewAttributeRequest is the request struct for api ModifyDedicatedHostAutoRenewAttribute -type ModifyDedicatedHostAutoRenewAttributeRequest struct { - *requests.RpcRequest - DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Duration requests.Integer `position:"Query" name:"Duration"` - RenewalStatus string `position:"Query" name:"RenewalStatus"` - AutoRenewWithEcs string `position:"Query" name:"AutoRenewWithEcs"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` -} - -// ModifyDedicatedHostAutoRenewAttributeResponse is the response struct for api ModifyDedicatedHostAutoRenewAttribute -type ModifyDedicatedHostAutoRenewAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDedicatedHostAutoRenewAttributeRequest creates a request to invoke ModifyDedicatedHostAutoRenewAttribute API -func CreateModifyDedicatedHostAutoRenewAttributeRequest() (request *ModifyDedicatedHostAutoRenewAttributeRequest) { - request = &ModifyDedicatedHostAutoRenewAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDedicatedHostAutoRenewAttributeResponse creates a response to parse from ModifyDedicatedHostAutoRenewAttribute response -func CreateModifyDedicatedHostAutoRenewAttributeResponse() (response *ModifyDedicatedHostAutoRenewAttributeResponse) { - response = &ModifyDedicatedHostAutoRenewAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_cluster_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_cluster_attribute.go deleted file mode 100644 index 075370c2ad..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_cluster_attribute.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDedicatedHostClusterAttribute invokes the ecs.ModifyDedicatedHostClusterAttribute API synchronously -func (client *Client) ModifyDedicatedHostClusterAttribute(request *ModifyDedicatedHostClusterAttributeRequest) (response *ModifyDedicatedHostClusterAttributeResponse, err error) { - response = CreateModifyDedicatedHostClusterAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDedicatedHostClusterAttributeWithChan invokes the ecs.ModifyDedicatedHostClusterAttribute API asynchronously -func (client *Client) ModifyDedicatedHostClusterAttributeWithChan(request *ModifyDedicatedHostClusterAttributeRequest) (<-chan *ModifyDedicatedHostClusterAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyDedicatedHostClusterAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDedicatedHostClusterAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDedicatedHostClusterAttributeWithCallback invokes the ecs.ModifyDedicatedHostClusterAttribute API asynchronously -func (client *Client) ModifyDedicatedHostClusterAttributeWithCallback(request *ModifyDedicatedHostClusterAttributeRequest, callback func(response *ModifyDedicatedHostClusterAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDedicatedHostClusterAttributeResponse - var err error - defer close(result) - response, err = client.ModifyDedicatedHostClusterAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDedicatedHostClusterAttributeRequest is the request struct for api ModifyDedicatedHostClusterAttribute -type ModifyDedicatedHostClusterAttributeRequest struct { - *requests.RpcRequest - DedicatedHostClusterName string `position:"Query" name:"DedicatedHostClusterName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyDedicatedHostClusterAttributeResponse is the response struct for api ModifyDedicatedHostClusterAttribute -type ModifyDedicatedHostClusterAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDedicatedHostClusterAttributeRequest creates a request to invoke ModifyDedicatedHostClusterAttribute API -func CreateModifyDedicatedHostClusterAttributeRequest() (request *ModifyDedicatedHostClusterAttributeRequest) { - request = &ModifyDedicatedHostClusterAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostClusterAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDedicatedHostClusterAttributeResponse creates a response to parse from ModifyDedicatedHostClusterAttribute response -func CreateModifyDedicatedHostClusterAttributeResponse() (response *ModifyDedicatedHostClusterAttributeResponse) { - response = &ModifyDedicatedHostClusterAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_hosts_charge_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_hosts_charge_type.go deleted file mode 100644 index f9099af5ab..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_hosts_charge_type.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDedicatedHostsChargeType invokes the ecs.ModifyDedicatedHostsChargeType API synchronously -func (client *Client) ModifyDedicatedHostsChargeType(request *ModifyDedicatedHostsChargeTypeRequest) (response *ModifyDedicatedHostsChargeTypeResponse, err error) { - response = CreateModifyDedicatedHostsChargeTypeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDedicatedHostsChargeTypeWithChan invokes the ecs.ModifyDedicatedHostsChargeType API asynchronously -func (client *Client) ModifyDedicatedHostsChargeTypeWithChan(request *ModifyDedicatedHostsChargeTypeRequest) (<-chan *ModifyDedicatedHostsChargeTypeResponse, <-chan error) { - responseChan := make(chan *ModifyDedicatedHostsChargeTypeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDedicatedHostsChargeType(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDedicatedHostsChargeTypeWithCallback invokes the ecs.ModifyDedicatedHostsChargeType API asynchronously -func (client *Client) ModifyDedicatedHostsChargeTypeWithCallback(request *ModifyDedicatedHostsChargeTypeRequest, callback func(response *ModifyDedicatedHostsChargeTypeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDedicatedHostsChargeTypeResponse - var err error - defer close(result) - response, err = client.ModifyDedicatedHostsChargeType(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDedicatedHostsChargeTypeRequest is the request struct for api ModifyDedicatedHostsChargeType -type ModifyDedicatedHostsChargeTypeRequest struct { - *requests.RpcRequest - DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - DedicatedHostChargeType string `position:"Query" name:"DedicatedHostChargeType"` - Period requests.Integer `position:"Query" name:"Period"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions ModifyDedicatedHostsChargeTypePromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - DetailFee requests.Boolean `position:"Query" name:"DetailFee"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` -} - -// ModifyDedicatedHostsChargeTypePromotionOptions is a repeated param struct in ModifyDedicatedHostsChargeTypeRequest -type ModifyDedicatedHostsChargeTypePromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// ModifyDedicatedHostsChargeTypeResponse is the response struct for api ModifyDedicatedHostsChargeType -type ModifyDedicatedHostsChargeTypeResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` - FeeOfInstances FeeOfInstancesInModifyDedicatedHostsChargeType `json:"FeeOfInstances" xml:"FeeOfInstances"` -} - -// CreateModifyDedicatedHostsChargeTypeRequest creates a request to invoke ModifyDedicatedHostsChargeType API -func CreateModifyDedicatedHostsChargeTypeRequest() (request *ModifyDedicatedHostsChargeTypeRequest) { - request = &ModifyDedicatedHostsChargeTypeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostsChargeType", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDedicatedHostsChargeTypeResponse creates a response to parse from ModifyDedicatedHostsChargeType response -func CreateModifyDedicatedHostsChargeTypeResponse() (response *ModifyDedicatedHostsChargeTypeResponse) { - response = &ModifyDedicatedHostsChargeTypeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_demand.go deleted file mode 100644 index 60a2dfe029..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_demand.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDemand invokes the ecs.ModifyDemand API synchronously -func (client *Client) ModifyDemand(request *ModifyDemandRequest) (response *ModifyDemandResponse, err error) { - response = CreateModifyDemandResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDemandWithChan invokes the ecs.ModifyDemand API asynchronously -func (client *Client) ModifyDemandWithChan(request *ModifyDemandRequest) (<-chan *ModifyDemandResponse, <-chan error) { - responseChan := make(chan *ModifyDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDemandWithCallback invokes the ecs.ModifyDemand API asynchronously -func (client *Client) ModifyDemandWithCallback(request *ModifyDemandRequest, callback func(response *ModifyDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDemandResponse - var err error - defer close(result) - response, err = client.ModifyDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDemandRequest is the request struct for api ModifyDemand -type ModifyDemandRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - StartTime string `position:"Query" name:"StartTime"` - DemandDescription string `position:"Query" name:"DemandDescription"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - DemandName string `position:"Query" name:"DemandName"` - Amount requests.Integer `position:"Query" name:"Amount"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - DemandId string `position:"Query" name:"DemandId"` - ZoneId string `position:"Query" name:"ZoneId"` -} - -// ModifyDemandResponse is the response struct for api ModifyDemand -type ModifyDemandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDemandRequest creates a request to invoke ModifyDemand API -func CreateModifyDemandRequest() (request *ModifyDemandRequest) { - request = &ModifyDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDemand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDemandResponse creates a response to parse from ModifyDemand response -func CreateModifyDemandResponse() (response *ModifyDemandResponse) { - response = &ModifyDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go deleted file mode 100644 index 9aea00a1fe..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDeploymentSetAttribute invokes the ecs.ModifyDeploymentSetAttribute API synchronously -func (client *Client) ModifyDeploymentSetAttribute(request *ModifyDeploymentSetAttributeRequest) (response *ModifyDeploymentSetAttributeResponse, err error) { - response = CreateModifyDeploymentSetAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDeploymentSetAttributeWithChan invokes the ecs.ModifyDeploymentSetAttribute API asynchronously -func (client *Client) ModifyDeploymentSetAttributeWithChan(request *ModifyDeploymentSetAttributeRequest) (<-chan *ModifyDeploymentSetAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyDeploymentSetAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDeploymentSetAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDeploymentSetAttributeWithCallback invokes the ecs.ModifyDeploymentSetAttribute API asynchronously -func (client *Client) ModifyDeploymentSetAttributeWithCallback(request *ModifyDeploymentSetAttributeRequest, callback func(response *ModifyDeploymentSetAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDeploymentSetAttributeResponse - var err error - defer close(result) - response, err = client.ModifyDeploymentSetAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDeploymentSetAttributeRequest is the request struct for api ModifyDeploymentSetAttribute -type ModifyDeploymentSetAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DeploymentSetName string `position:"Query" name:"DeploymentSetName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyDeploymentSetAttributeResponse is the response struct for api ModifyDeploymentSetAttribute -type ModifyDeploymentSetAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDeploymentSetAttributeRequest creates a request to invoke ModifyDeploymentSetAttribute API -func CreateModifyDeploymentSetAttributeRequest() (request *ModifyDeploymentSetAttributeRequest) { - request = &ModifyDeploymentSetAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDeploymentSetAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDeploymentSetAttributeResponse creates a response to parse from ModifyDeploymentSetAttribute response -func CreateModifyDeploymentSetAttributeResponse() (response *ModifyDeploymentSetAttributeResponse) { - response = &ModifyDeploymentSetAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_diagnostic_metric_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_diagnostic_metric_set.go deleted file mode 100644 index b347d56031..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_diagnostic_metric_set.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDiagnosticMetricSet invokes the ecs.ModifyDiagnosticMetricSet API synchronously -func (client *Client) ModifyDiagnosticMetricSet(request *ModifyDiagnosticMetricSetRequest) (response *ModifyDiagnosticMetricSetResponse, err error) { - response = CreateModifyDiagnosticMetricSetResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDiagnosticMetricSetWithChan invokes the ecs.ModifyDiagnosticMetricSet API asynchronously -func (client *Client) ModifyDiagnosticMetricSetWithChan(request *ModifyDiagnosticMetricSetRequest) (<-chan *ModifyDiagnosticMetricSetResponse, <-chan error) { - responseChan := make(chan *ModifyDiagnosticMetricSetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDiagnosticMetricSet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDiagnosticMetricSetWithCallback invokes the ecs.ModifyDiagnosticMetricSet API asynchronously -func (client *Client) ModifyDiagnosticMetricSetWithCallback(request *ModifyDiagnosticMetricSetRequest, callback func(response *ModifyDiagnosticMetricSetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDiagnosticMetricSetResponse - var err error - defer close(result) - response, err = client.ModifyDiagnosticMetricSet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDiagnosticMetricSetRequest is the request struct for api ModifyDiagnosticMetricSet -type ModifyDiagnosticMetricSetRequest struct { - *requests.RpcRequest - MetricIds *[]string `position:"Query" name:"MetricIds" type:"Repeated"` - MetricSetId string `position:"Query" name:"MetricSetId"` - Description string `position:"Query" name:"Description"` - MetricSetName string `position:"Query" name:"MetricSetName"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// ModifyDiagnosticMetricSetResponse is the response struct for api ModifyDiagnosticMetricSet -type ModifyDiagnosticMetricSetResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDiagnosticMetricSetRequest creates a request to invoke ModifyDiagnosticMetricSet API -func CreateModifyDiagnosticMetricSetRequest() (request *ModifyDiagnosticMetricSetRequest) { - request = &ModifyDiagnosticMetricSetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiagnosticMetricSet", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDiagnosticMetricSetResponse creates a response to parse from ModifyDiagnosticMetricSet response -func CreateModifyDiagnosticMetricSetResponse() (response *ModifyDiagnosticMetricSetResponse) { - response = &ModifyDiagnosticMetricSetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go deleted file mode 100644 index 6e316ff27f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDiskAttribute invokes the ecs.ModifyDiskAttribute API synchronously -func (client *Client) ModifyDiskAttribute(request *ModifyDiskAttributeRequest) (response *ModifyDiskAttributeResponse, err error) { - response = CreateModifyDiskAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDiskAttributeWithChan invokes the ecs.ModifyDiskAttribute API asynchronously -func (client *Client) ModifyDiskAttributeWithChan(request *ModifyDiskAttributeRequest) (<-chan *ModifyDiskAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyDiskAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDiskAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDiskAttributeWithCallback invokes the ecs.ModifyDiskAttribute API asynchronously -func (client *Client) ModifyDiskAttributeWithCallback(request *ModifyDiskAttributeRequest, callback func(response *ModifyDiskAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDiskAttributeResponse - var err error - defer close(result) - response, err = client.ModifyDiskAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDiskAttributeRequest is the request struct for api ModifyDiskAttribute -type ModifyDiskAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - DiskName string `position:"Query" name:"DiskName"` - DeleteAutoSnapshot requests.Boolean `position:"Query" name:"DeleteAutoSnapshot"` - DiskIds *[]string `position:"Query" name:"DiskIds" type:"Repeated"` - DiskId string `position:"Query" name:"DiskId"` - DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` - EnableAutoSnapshot requests.Boolean `position:"Query" name:"EnableAutoSnapshot"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BurstingEnabled requests.Boolean `position:"Query" name:"BurstingEnabled"` -} - -// ModifyDiskAttributeResponse is the response struct for api ModifyDiskAttribute -type ModifyDiskAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDiskAttributeRequest creates a request to invoke ModifyDiskAttribute API -func CreateModifyDiskAttributeRequest() (request *ModifyDiskAttributeRequest) { - request = &ModifyDiskAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDiskAttributeResponse creates a response to parse from ModifyDiskAttribute response -func CreateModifyDiskAttributeResponse() (response *ModifyDiskAttributeResponse) { - response = &ModifyDiskAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go deleted file mode 100644 index b7c8a70f5f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDiskChargeType invokes the ecs.ModifyDiskChargeType API synchronously -func (client *Client) ModifyDiskChargeType(request *ModifyDiskChargeTypeRequest) (response *ModifyDiskChargeTypeResponse, err error) { - response = CreateModifyDiskChargeTypeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDiskChargeTypeWithChan invokes the ecs.ModifyDiskChargeType API asynchronously -func (client *Client) ModifyDiskChargeTypeWithChan(request *ModifyDiskChargeTypeRequest) (<-chan *ModifyDiskChargeTypeResponse, <-chan error) { - responseChan := make(chan *ModifyDiskChargeTypeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDiskChargeType(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDiskChargeTypeWithCallback invokes the ecs.ModifyDiskChargeType API asynchronously -func (client *Client) ModifyDiskChargeTypeWithCallback(request *ModifyDiskChargeTypeRequest, callback func(response *ModifyDiskChargeTypeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDiskChargeTypeResponse - var err error - defer close(result) - response, err = client.ModifyDiskChargeType(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDiskChargeTypeRequest is the request struct for api ModifyDiskChargeType -type ModifyDiskChargeTypeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - DiskChargeType string `position:"Query" name:"DiskChargeType"` - DiskIds string `position:"Query" name:"DiskIds"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// ModifyDiskChargeTypeResponse is the response struct for api ModifyDiskChargeType -type ModifyDiskChargeTypeResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDiskChargeTypeRequest creates a request to invoke ModifyDiskChargeType API -func CreateModifyDiskChargeTypeRequest() (request *ModifyDiskChargeTypeRequest) { - request = &ModifyDiskChargeTypeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskChargeType", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDiskChargeTypeResponse creates a response to parse from ModifyDiskChargeType response -func CreateModifyDiskChargeTypeResponse() (response *ModifyDiskChargeTypeResponse) { - response = &ModifyDiskChargeTypeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_default_kms_key_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_default_kms_key_id.go deleted file mode 100644 index d8221c48f9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_default_kms_key_id.go +++ /dev/null @@ -1,100 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDiskDefaultKMSKeyId invokes the ecs.ModifyDiskDefaultKMSKeyId API synchronously -func (client *Client) ModifyDiskDefaultKMSKeyId(request *ModifyDiskDefaultKMSKeyIdRequest) (response *ModifyDiskDefaultKMSKeyIdResponse, err error) { - response = CreateModifyDiskDefaultKMSKeyIdResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDiskDefaultKMSKeyIdWithChan invokes the ecs.ModifyDiskDefaultKMSKeyId API asynchronously -func (client *Client) ModifyDiskDefaultKMSKeyIdWithChan(request *ModifyDiskDefaultKMSKeyIdRequest) (<-chan *ModifyDiskDefaultKMSKeyIdResponse, <-chan error) { - responseChan := make(chan *ModifyDiskDefaultKMSKeyIdResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDiskDefaultKMSKeyId(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDiskDefaultKMSKeyIdWithCallback invokes the ecs.ModifyDiskDefaultKMSKeyId API asynchronously -func (client *Client) ModifyDiskDefaultKMSKeyIdWithCallback(request *ModifyDiskDefaultKMSKeyIdRequest, callback func(response *ModifyDiskDefaultKMSKeyIdResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDiskDefaultKMSKeyIdResponse - var err error - defer close(result) - response, err = client.ModifyDiskDefaultKMSKeyId(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDiskDefaultKMSKeyIdRequest is the request struct for api ModifyDiskDefaultKMSKeyId -type ModifyDiskDefaultKMSKeyIdRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` -} - -// ModifyDiskDefaultKMSKeyIdResponse is the response struct for api ModifyDiskDefaultKMSKeyId -type ModifyDiskDefaultKMSKeyIdResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyDiskDefaultKMSKeyIdRequest creates a request to invoke ModifyDiskDefaultKMSKeyId API -func CreateModifyDiskDefaultKMSKeyIdRequest() (request *ModifyDiskDefaultKMSKeyIdRequest) { - request = &ModifyDiskDefaultKMSKeyIdRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskDefaultKMSKeyId", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDiskDefaultKMSKeyIdResponse creates a response to parse from ModifyDiskDefaultKMSKeyId response -func CreateModifyDiskDefaultKMSKeyIdResponse() (response *ModifyDiskDefaultKMSKeyIdResponse) { - response = &ModifyDiskDefaultKMSKeyIdResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_deployment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_deployment.go deleted file mode 100644 index 9d81c36377..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_deployment.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDiskDeployment invokes the ecs.ModifyDiskDeployment API synchronously -func (client *Client) ModifyDiskDeployment(request *ModifyDiskDeploymentRequest) (response *ModifyDiskDeploymentResponse, err error) { - response = CreateModifyDiskDeploymentResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDiskDeploymentWithChan invokes the ecs.ModifyDiskDeployment API asynchronously -func (client *Client) ModifyDiskDeploymentWithChan(request *ModifyDiskDeploymentRequest) (<-chan *ModifyDiskDeploymentResponse, <-chan error) { - responseChan := make(chan *ModifyDiskDeploymentResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDiskDeployment(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDiskDeploymentWithCallback invokes the ecs.ModifyDiskDeployment API asynchronously -func (client *Client) ModifyDiskDeploymentWithCallback(request *ModifyDiskDeploymentRequest, callback func(response *ModifyDiskDeploymentResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDiskDeploymentResponse - var err error - defer close(result) - response, err = client.ModifyDiskDeployment(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDiskDeploymentRequest is the request struct for api ModifyDiskDeployment -type ModifyDiskDeploymentRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DiskCategory string `position:"Query" name:"DiskCategory"` - DiskId string `position:"Query" name:"DiskId"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PerformanceLevel string `position:"Query" name:"PerformanceLevel"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - StorageClusterId string `position:"Query" name:"StorageClusterId"` -} - -// ModifyDiskDeploymentResponse is the response struct for api ModifyDiskDeployment -type ModifyDiskDeploymentResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId string `json:"TaskId" xml:"TaskId"` -} - -// CreateModifyDiskDeploymentRequest creates a request to invoke ModifyDiskDeployment API -func CreateModifyDiskDeploymentRequest() (request *ModifyDiskDeploymentRequest) { - request = &ModifyDiskDeploymentRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskDeployment", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDiskDeploymentResponse creates a response to parse from ModifyDiskDeployment response -func CreateModifyDiskDeploymentResponse() (response *ModifyDiskDeploymentResponse) { - response = &ModifyDiskDeploymentResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go deleted file mode 100644 index 58d4780862..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyDiskSpec invokes the ecs.ModifyDiskSpec API synchronously -func (client *Client) ModifyDiskSpec(request *ModifyDiskSpecRequest) (response *ModifyDiskSpecResponse, err error) { - response = CreateModifyDiskSpecResponse() - err = client.DoAction(request, response) - return -} - -// ModifyDiskSpecWithChan invokes the ecs.ModifyDiskSpec API asynchronously -func (client *Client) ModifyDiskSpecWithChan(request *ModifyDiskSpecRequest) (<-chan *ModifyDiskSpecResponse, <-chan error) { - responseChan := make(chan *ModifyDiskSpecResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyDiskSpec(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyDiskSpecWithCallback invokes the ecs.ModifyDiskSpec API asynchronously -func (client *Client) ModifyDiskSpecWithCallback(request *ModifyDiskSpecRequest, callback func(response *ModifyDiskSpecResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyDiskSpecResponse - var err error - defer close(result) - response, err = client.ModifyDiskSpec(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyDiskSpecRequest is the request struct for api ModifyDiskSpec -type ModifyDiskSpecRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DestinationZoneId string `position:"Query" name:"DestinationZoneId"` - DiskCategory string `position:"Query" name:"DiskCategory"` - DiskId string `position:"Query" name:"DiskId"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PerformanceLevel string `position:"Query" name:"PerformanceLevel"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - PerformanceControlOptions ModifyDiskSpecPerformanceControlOptions `position:"Query" name:"PerformanceControlOptions" type:"Struct"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ProvisionedIops requests.Integer `position:"Query" name:"ProvisionedIops"` -} - -// ModifyDiskSpecPerformanceControlOptions is a repeated param struct in ModifyDiskSpecRequest -type ModifyDiskSpecPerformanceControlOptions struct { - IOPS string `name:"IOPS"` - Throughput string `name:"Throughput"` - Recover string `name:"Recover"` -} - -// ModifyDiskSpecResponse is the response struct for api ModifyDiskSpec -type ModifyDiskSpecResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId string `json:"TaskId" xml:"TaskId"` - OrderId string `json:"OrderId" xml:"OrderId"` -} - -// CreateModifyDiskSpecRequest creates a request to invoke ModifyDiskSpec API -func CreateModifyDiskSpecRequest() (request *ModifyDiskSpecRequest) { - request = &ModifyDiskSpecRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskSpec", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyDiskSpecResponse creates a response to parse from ModifyDiskSpec response -func CreateModifyDiskSpecResponse() (response *ModifyDiskSpecResponse) { - response = &ModifyDiskSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go deleted file mode 100644 index bff518d3f2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyEipAddressAttribute invokes the ecs.ModifyEipAddressAttribute API synchronously -func (client *Client) ModifyEipAddressAttribute(request *ModifyEipAddressAttributeRequest) (response *ModifyEipAddressAttributeResponse, err error) { - response = CreateModifyEipAddressAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyEipAddressAttributeWithChan invokes the ecs.ModifyEipAddressAttribute API asynchronously -func (client *Client) ModifyEipAddressAttributeWithChan(request *ModifyEipAddressAttributeRequest) (<-chan *ModifyEipAddressAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyEipAddressAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyEipAddressAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyEipAddressAttributeWithCallback invokes the ecs.ModifyEipAddressAttribute API asynchronously -func (client *Client) ModifyEipAddressAttributeWithCallback(request *ModifyEipAddressAttributeRequest, callback func(response *ModifyEipAddressAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyEipAddressAttributeResponse - var err error - defer close(result) - response, err = client.ModifyEipAddressAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyEipAddressAttributeRequest is the request struct for api ModifyEipAddressAttribute -type ModifyEipAddressAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AllocationId string `position:"Query" name:"AllocationId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth string `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyEipAddressAttributeResponse is the response struct for api ModifyEipAddressAttribute -type ModifyEipAddressAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyEipAddressAttributeRequest creates a request to invoke ModifyEipAddressAttribute API -func CreateModifyEipAddressAttributeRequest() (request *ModifyEipAddressAttributeRequest) { - request = &ModifyEipAddressAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyEipAddressAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyEipAddressAttributeResponse creates a response to parse from ModifyEipAddressAttribute response -func CreateModifyEipAddressAttributeResponse() (response *ModifyEipAddressAttributeResponse) { - response = &ModifyEipAddressAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance.go deleted file mode 100644 index 8259156080..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance.go +++ /dev/null @@ -1,117 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyElasticityAssurance invokes the ecs.ModifyElasticityAssurance API synchronously -func (client *Client) ModifyElasticityAssurance(request *ModifyElasticityAssuranceRequest) (response *ModifyElasticityAssuranceResponse, err error) { - response = CreateModifyElasticityAssuranceResponse() - err = client.DoAction(request, response) - return -} - -// ModifyElasticityAssuranceWithChan invokes the ecs.ModifyElasticityAssurance API asynchronously -func (client *Client) ModifyElasticityAssuranceWithChan(request *ModifyElasticityAssuranceRequest) (<-chan *ModifyElasticityAssuranceResponse, <-chan error) { - responseChan := make(chan *ModifyElasticityAssuranceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyElasticityAssurance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyElasticityAssuranceWithCallback invokes the ecs.ModifyElasticityAssurance API asynchronously -func (client *Client) ModifyElasticityAssuranceWithCallback(request *ModifyElasticityAssuranceRequest, callback func(response *ModifyElasticityAssuranceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyElasticityAssuranceResponse - var err error - defer close(result) - response, err = client.ModifyElasticityAssurance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyElasticityAssuranceRequest is the request struct for api ModifyElasticityAssurance -type ModifyElasticityAssuranceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RecurrenceRules *[]ModifyElasticityAssuranceRecurrenceRules `position:"Query" name:"RecurrenceRules" type:"Repeated"` - PackageType string `position:"Query" name:"PackageType"` - InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` -} - -// ModifyElasticityAssuranceRecurrenceRules is a repeated param struct in ModifyElasticityAssuranceRequest -type ModifyElasticityAssuranceRecurrenceRules struct { - RecurrenceType string `name:"RecurrenceType"` - RecurrenceValue string `name:"RecurrenceValue"` - StartHour string `name:"StartHour"` - EndHour string `name:"EndHour"` -} - -// ModifyElasticityAssuranceResponse is the response struct for api ModifyElasticityAssurance -type ModifyElasticityAssuranceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyElasticityAssuranceRequest creates a request to invoke ModifyElasticityAssurance API -func CreateModifyElasticityAssuranceRequest() (request *ModifyElasticityAssuranceRequest) { - request = &ModifyElasticityAssuranceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyElasticityAssurance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyElasticityAssuranceResponse creates a response to parse from ModifyElasticityAssurance response -func CreateModifyElasticityAssuranceResponse() (response *ModifyElasticityAssuranceResponse) { - response = &ModifyElasticityAssuranceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance_auto_renew_attribute.go deleted file mode 100644 index 40a33c9b36..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance_auto_renew_attribute.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyElasticityAssuranceAutoRenewAttribute invokes the ecs.ModifyElasticityAssuranceAutoRenewAttribute API synchronously -func (client *Client) ModifyElasticityAssuranceAutoRenewAttribute(request *ModifyElasticityAssuranceAutoRenewAttributeRequest) (response *ModifyElasticityAssuranceAutoRenewAttributeResponse, err error) { - response = CreateModifyElasticityAssuranceAutoRenewAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyElasticityAssuranceAutoRenewAttributeWithChan invokes the ecs.ModifyElasticityAssuranceAutoRenewAttribute API asynchronously -func (client *Client) ModifyElasticityAssuranceAutoRenewAttributeWithChan(request *ModifyElasticityAssuranceAutoRenewAttributeRequest) (<-chan *ModifyElasticityAssuranceAutoRenewAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyElasticityAssuranceAutoRenewAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyElasticityAssuranceAutoRenewAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyElasticityAssuranceAutoRenewAttributeWithCallback invokes the ecs.ModifyElasticityAssuranceAutoRenewAttribute API asynchronously -func (client *Client) ModifyElasticityAssuranceAutoRenewAttributeWithCallback(request *ModifyElasticityAssuranceAutoRenewAttributeRequest, callback func(response *ModifyElasticityAssuranceAutoRenewAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyElasticityAssuranceAutoRenewAttributeResponse - var err error - defer close(result) - response, err = client.ModifyElasticityAssuranceAutoRenewAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyElasticityAssuranceAutoRenewAttributeRequest is the request struct for api ModifyElasticityAssuranceAutoRenewAttribute -type ModifyElasticityAssuranceAutoRenewAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - RenewalStatus string `position:"Query" name:"RenewalStatus"` - PrivatePoolOptionsId *[]string `position:"Query" name:"PrivatePoolOptions.Id" type:"Repeated"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` -} - -// ModifyElasticityAssuranceAutoRenewAttributeResponse is the response struct for api ModifyElasticityAssuranceAutoRenewAttribute -type ModifyElasticityAssuranceAutoRenewAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyElasticityAssuranceAutoRenewAttributeRequest creates a request to invoke ModifyElasticityAssuranceAutoRenewAttribute API -func CreateModifyElasticityAssuranceAutoRenewAttributeRequest() (request *ModifyElasticityAssuranceAutoRenewAttributeRequest) { - request = &ModifyElasticityAssuranceAutoRenewAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyElasticityAssuranceAutoRenewAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyElasticityAssuranceAutoRenewAttributeResponse creates a response to parse from ModifyElasticityAssuranceAutoRenewAttribute response -func CreateModifyElasticityAssuranceAutoRenewAttributeResponse() (response *ModifyElasticityAssuranceAutoRenewAttributeResponse) { - response = &ModifyElasticityAssuranceAutoRenewAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go deleted file mode 100644 index 0d87eed6d3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go +++ /dev/null @@ -1,109 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyForwardEntry invokes the ecs.ModifyForwardEntry API synchronously -func (client *Client) ModifyForwardEntry(request *ModifyForwardEntryRequest) (response *ModifyForwardEntryResponse, err error) { - response = CreateModifyForwardEntryResponse() - err = client.DoAction(request, response) - return -} - -// ModifyForwardEntryWithChan invokes the ecs.ModifyForwardEntry API asynchronously -func (client *Client) ModifyForwardEntryWithChan(request *ModifyForwardEntryRequest) (<-chan *ModifyForwardEntryResponse, <-chan error) { - responseChan := make(chan *ModifyForwardEntryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyForwardEntry(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyForwardEntryWithCallback invokes the ecs.ModifyForwardEntry API asynchronously -func (client *Client) ModifyForwardEntryWithCallback(request *ModifyForwardEntryRequest, callback func(response *ModifyForwardEntryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyForwardEntryResponse - var err error - defer close(result) - response, err = client.ModifyForwardEntry(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyForwardEntryRequest is the request struct for api ModifyForwardEntry -type ModifyForwardEntryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ForwardTableId string `position:"Query" name:"ForwardTableId"` - InternalIp string `position:"Query" name:"InternalIp"` - ForwardEntryId string `position:"Query" name:"ForwardEntryId"` - ExternalIp string `position:"Query" name:"ExternalIp"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InternalPort string `position:"Query" name:"InternalPort"` - ExternalPort string `position:"Query" name:"ExternalPort"` -} - -// ModifyForwardEntryResponse is the response struct for api ModifyForwardEntry -type ModifyForwardEntryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyForwardEntryRequest creates a request to invoke ModifyForwardEntry API -func CreateModifyForwardEntryRequest() (request *ModifyForwardEntryRequest) { - request = &ModifyForwardEntryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyForwardEntry", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyForwardEntryResponse creates a response to parse from ModifyForwardEntry response -func CreateModifyForwardEntryResponse() (response *ModifyForwardEntryResponse) { - response = &ModifyForwardEntryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go deleted file mode 100644 index e99dd87182..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyHaVipAttribute invokes the ecs.ModifyHaVipAttribute API synchronously -func (client *Client) ModifyHaVipAttribute(request *ModifyHaVipAttributeRequest) (response *ModifyHaVipAttributeResponse, err error) { - response = CreateModifyHaVipAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyHaVipAttributeWithChan invokes the ecs.ModifyHaVipAttribute API asynchronously -func (client *Client) ModifyHaVipAttributeWithChan(request *ModifyHaVipAttributeRequest) (<-chan *ModifyHaVipAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyHaVipAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyHaVipAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyHaVipAttributeWithCallback invokes the ecs.ModifyHaVipAttribute API asynchronously -func (client *Client) ModifyHaVipAttributeWithCallback(request *ModifyHaVipAttributeRequest, callback func(response *ModifyHaVipAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyHaVipAttributeResponse - var err error - defer close(result) - response, err = client.ModifyHaVipAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyHaVipAttributeRequest is the request struct for api ModifyHaVipAttribute -type ModifyHaVipAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - HaVipId string `position:"Query" name:"HaVipId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyHaVipAttributeResponse is the response struct for api ModifyHaVipAttribute -type ModifyHaVipAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyHaVipAttributeRequest creates a request to invoke ModifyHaVipAttribute API -func CreateModifyHaVipAttributeRequest() (request *ModifyHaVipAttributeRequest) { - request = &ModifyHaVipAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyHaVipAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyHaVipAttributeResponse creates a response to parse from ModifyHaVipAttribute response -func CreateModifyHaVipAttributeResponse() (response *ModifyHaVipAttributeResponse) { - response = &ModifyHaVipAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go deleted file mode 100644 index aaab44b20c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyHpcClusterAttribute invokes the ecs.ModifyHpcClusterAttribute API synchronously -func (client *Client) ModifyHpcClusterAttribute(request *ModifyHpcClusterAttributeRequest) (response *ModifyHpcClusterAttributeResponse, err error) { - response = CreateModifyHpcClusterAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyHpcClusterAttributeWithChan invokes the ecs.ModifyHpcClusterAttribute API asynchronously -func (client *Client) ModifyHpcClusterAttributeWithChan(request *ModifyHpcClusterAttributeRequest) (<-chan *ModifyHpcClusterAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyHpcClusterAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyHpcClusterAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyHpcClusterAttributeWithCallback invokes the ecs.ModifyHpcClusterAttribute API asynchronously -func (client *Client) ModifyHpcClusterAttributeWithCallback(request *ModifyHpcClusterAttributeRequest, callback func(response *ModifyHpcClusterAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyHpcClusterAttributeResponse - var err error - defer close(result) - response, err = client.ModifyHpcClusterAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyHpcClusterAttributeRequest is the request struct for api ModifyHpcClusterAttribute -type ModifyHpcClusterAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` -} - -// ModifyHpcClusterAttributeResponse is the response struct for api ModifyHpcClusterAttribute -type ModifyHpcClusterAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyHpcClusterAttributeRequest creates a request to invoke ModifyHpcClusterAttribute API -func CreateModifyHpcClusterAttributeRequest() (request *ModifyHpcClusterAttributeRequest) { - request = &ModifyHpcClusterAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyHpcClusterAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyHpcClusterAttributeResponse creates a response to parse from ModifyHpcClusterAttribute response -func CreateModifyHpcClusterAttributeResponse() (response *ModifyHpcClusterAttributeResponse) { - response = &ModifyHpcClusterAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go deleted file mode 100644 index 69836b77d7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go +++ /dev/null @@ -1,116 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyImageAttribute invokes the ecs.ModifyImageAttribute API synchronously -func (client *Client) ModifyImageAttribute(request *ModifyImageAttributeRequest) (response *ModifyImageAttributeResponse, err error) { - response = CreateModifyImageAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyImageAttributeWithChan invokes the ecs.ModifyImageAttribute API asynchronously -func (client *Client) ModifyImageAttributeWithChan(request *ModifyImageAttributeRequest) (<-chan *ModifyImageAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyImageAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyImageAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyImageAttributeWithCallback invokes the ecs.ModifyImageAttribute API asynchronously -func (client *Client) ModifyImageAttributeWithCallback(request *ModifyImageAttributeRequest, callback func(response *ModifyImageAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyImageAttributeResponse - var err error - defer close(result) - response, err = client.ModifyImageAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyImageAttributeRequest is the request struct for api ModifyImageAttribute -type ModifyImageAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - Description string `position:"Query" name:"Description"` - Features ModifyImageAttributeFeatures `position:"Query" name:"Features" type:"Struct"` - BootMode string `position:"Query" name:"BootMode"` - ImageName string `position:"Query" name:"ImageName"` - LicenseType string `position:"Query" name:"LicenseType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ImageFamily string `position:"Query" name:"ImageFamily"` - Status string `position:"Query" name:"Status"` -} - -// ModifyImageAttributeFeatures is a repeated param struct in ModifyImageAttributeRequest -type ModifyImageAttributeFeatures struct { - NvmeSupport string `name:"NvmeSupport"` - ImdsSupport string `name:"ImdsSupport"` -} - -// ModifyImageAttributeResponse is the response struct for api ModifyImageAttribute -type ModifyImageAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyImageAttributeRequest creates a request to invoke ModifyImageAttribute API -func CreateModifyImageAttributeRequest() (request *ModifyImageAttributeRequest) { - request = &ModifyImageAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyImageAttributeResponse creates a response to parse from ModifyImageAttribute response -func CreateModifyImageAttributeResponse() (response *ModifyImageAttributeResponse) { - response = &ModifyImageAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go deleted file mode 100644 index 6750ffb477..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyImageShareGroupPermission invokes the ecs.ModifyImageShareGroupPermission API synchronously -func (client *Client) ModifyImageShareGroupPermission(request *ModifyImageShareGroupPermissionRequest) (response *ModifyImageShareGroupPermissionResponse, err error) { - response = CreateModifyImageShareGroupPermissionResponse() - err = client.DoAction(request, response) - return -} - -// ModifyImageShareGroupPermissionWithChan invokes the ecs.ModifyImageShareGroupPermission API asynchronously -func (client *Client) ModifyImageShareGroupPermissionWithChan(request *ModifyImageShareGroupPermissionRequest) (<-chan *ModifyImageShareGroupPermissionResponse, <-chan error) { - responseChan := make(chan *ModifyImageShareGroupPermissionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyImageShareGroupPermission(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyImageShareGroupPermissionWithCallback invokes the ecs.ModifyImageShareGroupPermission API asynchronously -func (client *Client) ModifyImageShareGroupPermissionWithCallback(request *ModifyImageShareGroupPermissionRequest, callback func(response *ModifyImageShareGroupPermissionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyImageShareGroupPermissionResponse - var err error - defer close(result) - response, err = client.ModifyImageShareGroupPermission(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyImageShareGroupPermissionRequest is the request struct for api ModifyImageShareGroupPermission -type ModifyImageShareGroupPermissionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - AddGroup1 string `position:"Query" name:"AddGroup.1"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RemoveGroup1 string `position:"Query" name:"RemoveGroup.1"` -} - -// ModifyImageShareGroupPermissionResponse is the response struct for api ModifyImageShareGroupPermission -type ModifyImageShareGroupPermissionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyImageShareGroupPermissionRequest creates a request to invoke ModifyImageShareGroupPermission API -func CreateModifyImageShareGroupPermissionRequest() (request *ModifyImageShareGroupPermissionRequest) { - request = &ModifyImageShareGroupPermissionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageShareGroupPermission", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyImageShareGroupPermissionResponse creates a response to parse from ModifyImageShareGroupPermission response -func CreateModifyImageShareGroupPermissionResponse() (response *ModifyImageShareGroupPermissionResponse) { - response = &ModifyImageShareGroupPermissionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go deleted file mode 100644 index 99656f9aa9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyImageSharePermission invokes the ecs.ModifyImageSharePermission API synchronously -func (client *Client) ModifyImageSharePermission(request *ModifyImageSharePermissionRequest) (response *ModifyImageSharePermissionResponse, err error) { - response = CreateModifyImageSharePermissionResponse() - err = client.DoAction(request, response) - return -} - -// ModifyImageSharePermissionWithChan invokes the ecs.ModifyImageSharePermission API asynchronously -func (client *Client) ModifyImageSharePermissionWithChan(request *ModifyImageSharePermissionRequest) (<-chan *ModifyImageSharePermissionResponse, <-chan error) { - responseChan := make(chan *ModifyImageSharePermissionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyImageSharePermission(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyImageSharePermissionWithCallback invokes the ecs.ModifyImageSharePermission API asynchronously -func (client *Client) ModifyImageSharePermissionWithCallback(request *ModifyImageSharePermissionRequest, callback func(response *ModifyImageSharePermissionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyImageSharePermissionResponse - var err error - defer close(result) - response, err = client.ModifyImageSharePermission(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyImageSharePermissionRequest is the request struct for api ModifyImageSharePermission -type ModifyImageSharePermissionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - IsPublic requests.Boolean `position:"Query" name:"IsPublic"` - LaunchPermission string `position:"Query" name:"LaunchPermission"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AddAccount *[]string `position:"Query" name:"AddAccount" type:"Repeated"` - RemoveAccount *[]string `position:"Query" name:"RemoveAccount" type:"Repeated"` -} - -// ModifyImageSharePermissionResponse is the response struct for api ModifyImageSharePermission -type ModifyImageSharePermissionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyImageSharePermissionRequest creates a request to invoke ModifyImageSharePermission API -func CreateModifyImageSharePermissionRequest() (request *ModifyImageSharePermissionRequest) { - request = &ModifyImageSharePermissionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageSharePermission", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyImageSharePermissionResponse creates a response to parse from ModifyImageSharePermission response -func CreateModifyImageSharePermissionResponse() (response *ModifyImageSharePermissionResponse) { - response = &ModifyImageSharePermissionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attachment_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attachment_attributes.go deleted file mode 100644 index aeeb1290fe..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attachment_attributes.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceAttachmentAttributes invokes the ecs.ModifyInstanceAttachmentAttributes API synchronously -func (client *Client) ModifyInstanceAttachmentAttributes(request *ModifyInstanceAttachmentAttributesRequest) (response *ModifyInstanceAttachmentAttributesResponse, err error) { - response = CreateModifyInstanceAttachmentAttributesResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceAttachmentAttributesWithChan invokes the ecs.ModifyInstanceAttachmentAttributes API asynchronously -func (client *Client) ModifyInstanceAttachmentAttributesWithChan(request *ModifyInstanceAttachmentAttributesRequest) (<-chan *ModifyInstanceAttachmentAttributesResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceAttachmentAttributesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceAttachmentAttributes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceAttachmentAttributesWithCallback invokes the ecs.ModifyInstanceAttachmentAttributes API asynchronously -func (client *Client) ModifyInstanceAttachmentAttributesWithCallback(request *ModifyInstanceAttachmentAttributesRequest, callback func(response *ModifyInstanceAttachmentAttributesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceAttachmentAttributesResponse - var err error - defer close(result) - response, err = client.ModifyInstanceAttachmentAttributes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceAttachmentAttributesRequest is the request struct for api ModifyInstanceAttachmentAttributes -type ModifyInstanceAttachmentAttributesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// ModifyInstanceAttachmentAttributesResponse is the response struct for api ModifyInstanceAttachmentAttributes -type ModifyInstanceAttachmentAttributesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceAttachmentAttributesRequest creates a request to invoke ModifyInstanceAttachmentAttributes API -func CreateModifyInstanceAttachmentAttributesRequest() (request *ModifyInstanceAttachmentAttributesRequest) { - request = &ModifyInstanceAttachmentAttributesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAttachmentAttributes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceAttachmentAttributesResponse creates a response to parse from ModifyInstanceAttachmentAttributes response -func CreateModifyInstanceAttachmentAttributesResponse() (response *ModifyInstanceAttachmentAttributesResponse) { - response = &ModifyInstanceAttachmentAttributesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go deleted file mode 100644 index 8b84cdbc3e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go +++ /dev/null @@ -1,148 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceAttribute invokes the ecs.ModifyInstanceAttribute API synchronously -func (client *Client) ModifyInstanceAttribute(request *ModifyInstanceAttributeRequest) (response *ModifyInstanceAttributeResponse, err error) { - response = CreateModifyInstanceAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceAttributeWithChan invokes the ecs.ModifyInstanceAttribute API asynchronously -func (client *Client) ModifyInstanceAttributeWithChan(request *ModifyInstanceAttributeRequest) (<-chan *ModifyInstanceAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceAttributeWithCallback invokes the ecs.ModifyInstanceAttribute API asynchronously -func (client *Client) ModifyInstanceAttributeWithCallback(request *ModifyInstanceAttributeRequest, callback func(response *ModifyInstanceAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceAttributeResponse - var err error - defer close(result) - response, err = client.ModifyInstanceAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceAttributeRequest is the request struct for api ModifyInstanceAttribute -type ModifyInstanceAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Recyclable requests.Boolean `position:"Query" name:"Recyclable"` - NetworkInterfaceQueueNumber requests.Integer `position:"Query" name:"NetworkInterfaceQueueNumber"` - Description string `position:"Query" name:"Description"` - CpuOptionsThreadsPerCore requests.Integer `position:"Query" name:"CpuOptions.ThreadsPerCore"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - UserData string `position:"Query" name:"UserData"` - Password string `position:"Query" name:"Password"` - HostName string `position:"Query" name:"HostName"` - PrivateDnsNameOptions ModifyInstanceAttributePrivateDnsNameOptions `position:"Query" name:"PrivateDnsNameOptions" type:"Struct"` - CpuOptionsTopologyType string `position:"Query" name:"CpuOptions.TopologyType"` - ImageOptions ModifyInstanceAttributeImageOptions `position:"Query" name:"ImageOptions" type:"Struct"` - OSNameEn string `position:"Query" name:"OSNameEn"` - EnableJumboFrame requests.Boolean `position:"Query" name:"EnableJumboFrame"` - CpuOptionsCore requests.Integer `position:"Query" name:"CpuOptions.Core"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` - AdditionalInfo ModifyInstanceAttributeAdditionalInfo `position:"Query" name:"AdditionalInfo" type:"Struct"` - InstanceId string `position:"Query" name:"InstanceId"` - InstanceName string `position:"Query" name:"InstanceName"` - RemoteConnectionOptions ModifyInstanceAttributeRemoteConnectionOptions `position:"Query" name:"RemoteConnectionOptions" type:"Struct"` -} - -// ModifyInstanceAttributePrivateDnsNameOptions is a repeated param struct in ModifyInstanceAttributeRequest -type ModifyInstanceAttributePrivateDnsNameOptions struct { - HostnameType string `name:"HostnameType"` - EnableInstanceIdDnsARecord string `name:"EnableInstanceIdDnsARecord"` - EnableInstanceIdDnsAAAARecord string `name:"EnableInstanceIdDnsAAAARecord"` - EnableIpDnsARecord string `name:"EnableIpDnsARecord"` - EnableIpDnsPtrRecord string `name:"EnableIpDnsPtrRecord"` -} - -// ModifyInstanceAttributeImageOptions is a repeated param struct in ModifyInstanceAttributeRequest -type ModifyInstanceAttributeImageOptions struct { - CurrentOSNVMeSupported string `name:"CurrentOSNVMeSupported"` -} - -// ModifyInstanceAttributeAdditionalInfo is a repeated param struct in ModifyInstanceAttributeRequest -type ModifyInstanceAttributeAdditionalInfo struct { - PvdConfig string `name:"PvdConfig"` - EnableHighDensityMode string `name:"EnableHighDensityMode"` -} - -// ModifyInstanceAttributeRemoteConnectionOptions is a repeated param struct in ModifyInstanceAttributeRequest -type ModifyInstanceAttributeRemoteConnectionOptions struct { - Password string `name:"Password"` - Type string `name:"Type"` -} - -// ModifyInstanceAttributeResponse is the response struct for api ModifyInstanceAttribute -type ModifyInstanceAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceAttributeRequest creates a request to invoke ModifyInstanceAttribute API -func CreateModifyInstanceAttributeRequest() (request *ModifyInstanceAttributeRequest) { - request = &ModifyInstanceAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceAttributeResponse creates a response to parse from ModifyInstanceAttribute response -func CreateModifyInstanceAttributeResponse() (response *ModifyInstanceAttributeResponse) { - response = &ModifyInstanceAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go deleted file mode 100644 index 47e55bb766..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceAutoReleaseTime invokes the ecs.ModifyInstanceAutoReleaseTime API synchronously -func (client *Client) ModifyInstanceAutoReleaseTime(request *ModifyInstanceAutoReleaseTimeRequest) (response *ModifyInstanceAutoReleaseTimeResponse, err error) { - response = CreateModifyInstanceAutoReleaseTimeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceAutoReleaseTimeWithChan invokes the ecs.ModifyInstanceAutoReleaseTime API asynchronously -func (client *Client) ModifyInstanceAutoReleaseTimeWithChan(request *ModifyInstanceAutoReleaseTimeRequest) (<-chan *ModifyInstanceAutoReleaseTimeResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceAutoReleaseTimeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceAutoReleaseTime(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceAutoReleaseTimeWithCallback invokes the ecs.ModifyInstanceAutoReleaseTime API asynchronously -func (client *Client) ModifyInstanceAutoReleaseTimeWithCallback(request *ModifyInstanceAutoReleaseTimeRequest, callback func(response *ModifyInstanceAutoReleaseTimeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceAutoReleaseTimeResponse - var err error - defer close(result) - response, err = client.ModifyInstanceAutoReleaseTime(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceAutoReleaseTimeRequest is the request struct for api ModifyInstanceAutoReleaseTime -type ModifyInstanceAutoReleaseTimeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// ModifyInstanceAutoReleaseTimeResponse is the response struct for api ModifyInstanceAutoReleaseTime -type ModifyInstanceAutoReleaseTimeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceAutoReleaseTimeRequest creates a request to invoke ModifyInstanceAutoReleaseTime API -func CreateModifyInstanceAutoReleaseTimeRequest() (request *ModifyInstanceAutoReleaseTimeRequest) { - request = &ModifyInstanceAutoReleaseTimeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceAutoReleaseTimeResponse creates a response to parse from ModifyInstanceAutoReleaseTime response -func CreateModifyInstanceAutoReleaseTimeResponse() (response *ModifyInstanceAutoReleaseTimeResponse) { - response = &ModifyInstanceAutoReleaseTimeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go deleted file mode 100644 index dfadf33b56..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceAutoRenewAttribute invokes the ecs.ModifyInstanceAutoRenewAttribute API synchronously -func (client *Client) ModifyInstanceAutoRenewAttribute(request *ModifyInstanceAutoRenewAttributeRequest) (response *ModifyInstanceAutoRenewAttributeResponse, err error) { - response = CreateModifyInstanceAutoRenewAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceAutoRenewAttributeWithChan invokes the ecs.ModifyInstanceAutoRenewAttribute API asynchronously -func (client *Client) ModifyInstanceAutoRenewAttributeWithChan(request *ModifyInstanceAutoRenewAttributeRequest) (<-chan *ModifyInstanceAutoRenewAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceAutoRenewAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceAutoRenewAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceAutoRenewAttributeWithCallback invokes the ecs.ModifyInstanceAutoRenewAttribute API asynchronously -func (client *Client) ModifyInstanceAutoRenewAttributeWithCallback(request *ModifyInstanceAutoRenewAttributeRequest, callback func(response *ModifyInstanceAutoRenewAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceAutoRenewAttributeResponse - var err error - defer close(result) - response, err = client.ModifyInstanceAutoRenewAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceAutoRenewAttributeRequest is the request struct for api ModifyInstanceAutoRenewAttribute -type ModifyInstanceAutoRenewAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Duration requests.Integer `position:"Query" name:"Duration"` - RenewalStatus string `position:"Query" name:"RenewalStatus"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceId string `position:"Query" name:"InstanceId"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` -} - -// ModifyInstanceAutoRenewAttributeResponse is the response struct for api ModifyInstanceAutoRenewAttribute -type ModifyInstanceAutoRenewAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceAutoRenewAttributeRequest creates a request to invoke ModifyInstanceAutoRenewAttribute API -func CreateModifyInstanceAutoRenewAttributeRequest() (request *ModifyInstanceAutoRenewAttributeRequest) { - request = &ModifyInstanceAutoRenewAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceAutoRenewAttributeResponse creates a response to parse from ModifyInstanceAutoRenewAttribute response -func CreateModifyInstanceAutoRenewAttributeResponse() (response *ModifyInstanceAutoRenewAttributeResponse) { - response = &ModifyInstanceAutoRenewAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go deleted file mode 100644 index 422d40a83e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go +++ /dev/null @@ -1,119 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceChargeType invokes the ecs.ModifyInstanceChargeType API synchronously -func (client *Client) ModifyInstanceChargeType(request *ModifyInstanceChargeTypeRequest) (response *ModifyInstanceChargeTypeResponse, err error) { - response = CreateModifyInstanceChargeTypeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceChargeTypeWithChan invokes the ecs.ModifyInstanceChargeType API asynchronously -func (client *Client) ModifyInstanceChargeTypeWithChan(request *ModifyInstanceChargeTypeRequest) (<-chan *ModifyInstanceChargeTypeResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceChargeTypeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceChargeType(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceChargeTypeWithCallback invokes the ecs.ModifyInstanceChargeType API asynchronously -func (client *Client) ModifyInstanceChargeTypeWithCallback(request *ModifyInstanceChargeTypeRequest, callback func(response *ModifyInstanceChargeTypeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceChargeTypeResponse - var err error - defer close(result) - response, err = client.ModifyInstanceChargeType(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceChargeTypeRequest is the request struct for api ModifyInstanceChargeType -type ModifyInstanceChargeTypeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - IsDetailFee requests.Boolean `position:"Query" name:"IsDetailFee"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - Period requests.Integer `position:"Query" name:"Period"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - IncludeDataDisks requests.Boolean `position:"Query" name:"IncludeDataDisks"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions ModifyInstanceChargeTypePromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceIds string `position:"Query" name:"InstanceIds"` -} - -// ModifyInstanceChargeTypePromotionOptions is a repeated param struct in ModifyInstanceChargeTypeRequest -type ModifyInstanceChargeTypePromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// ModifyInstanceChargeTypeResponse is the response struct for api ModifyInstanceChargeType -type ModifyInstanceChargeTypeResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` - FeeOfInstances FeeOfInstancesInModifyInstanceChargeType `json:"FeeOfInstances" xml:"FeeOfInstances"` -} - -// CreateModifyInstanceChargeTypeRequest creates a request to invoke ModifyInstanceChargeType API -func CreateModifyInstanceChargeTypeRequest() (request *ModifyInstanceChargeTypeRequest) { - request = &ModifyInstanceChargeTypeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceChargeType", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceChargeTypeResponse creates a response to parse from ModifyInstanceChargeType response -func CreateModifyInstanceChargeTypeResponse() (response *ModifyInstanceChargeTypeResponse) { - response = &ModifyInstanceChargeTypeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go deleted file mode 100644 index 92bf3bf4a8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceDeployment invokes the ecs.ModifyInstanceDeployment API synchronously -func (client *Client) ModifyInstanceDeployment(request *ModifyInstanceDeploymentRequest) (response *ModifyInstanceDeploymentResponse, err error) { - response = CreateModifyInstanceDeploymentResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceDeploymentWithChan invokes the ecs.ModifyInstanceDeployment API asynchronously -func (client *Client) ModifyInstanceDeploymentWithChan(request *ModifyInstanceDeploymentRequest) (<-chan *ModifyInstanceDeploymentResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceDeploymentResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceDeployment(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceDeploymentWithCallback invokes the ecs.ModifyInstanceDeployment API asynchronously -func (client *Client) ModifyInstanceDeploymentWithCallback(request *ModifyInstanceDeploymentRequest, callback func(response *ModifyInstanceDeploymentResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceDeploymentResponse - var err error - defer close(result) - response, err = client.ModifyInstanceDeployment(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceDeploymentRequest is the request struct for api ModifyInstanceDeployment -type ModifyInstanceDeploymentRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - RemoveFromDeploymentSet requests.Boolean `position:"Query" name:"RemoveFromDeploymentSet"` - DeploymentSetGroupNo requests.Integer `position:"Query" name:"DeploymentSetGroupNo"` - DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` - InstanceType string `position:"Query" name:"InstanceType"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tenancy string `position:"Query" name:"Tenancy"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - Force requests.Boolean `position:"Query" name:"Force"` - MigrationType string `position:"Query" name:"MigrationType"` - Affinity string `position:"Query" name:"Affinity"` -} - -// ModifyInstanceDeploymentResponse is the response struct for api ModifyInstanceDeployment -type ModifyInstanceDeploymentResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceDeploymentRequest creates a request to invoke ModifyInstanceDeployment API -func CreateModifyInstanceDeploymentRequest() (request *ModifyInstanceDeploymentRequest) { - request = &ModifyInstanceDeploymentRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceDeployment", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceDeploymentResponse creates a response to parse from ModifyInstanceDeployment response -func CreateModifyInstanceDeploymentResponse() (response *ModifyInstanceDeploymentResponse) { - response = &ModifyInstanceDeploymentResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_maintenance_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_maintenance_attributes.go deleted file mode 100644 index 93d6a58093..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_maintenance_attributes.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceMaintenanceAttributes invokes the ecs.ModifyInstanceMaintenanceAttributes API synchronously -func (client *Client) ModifyInstanceMaintenanceAttributes(request *ModifyInstanceMaintenanceAttributesRequest) (response *ModifyInstanceMaintenanceAttributesResponse, err error) { - response = CreateModifyInstanceMaintenanceAttributesResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceMaintenanceAttributesWithChan invokes the ecs.ModifyInstanceMaintenanceAttributes API asynchronously -func (client *Client) ModifyInstanceMaintenanceAttributesWithChan(request *ModifyInstanceMaintenanceAttributesRequest) (<-chan *ModifyInstanceMaintenanceAttributesResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceMaintenanceAttributesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceMaintenanceAttributes(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceMaintenanceAttributesWithCallback invokes the ecs.ModifyInstanceMaintenanceAttributes API asynchronously -func (client *Client) ModifyInstanceMaintenanceAttributesWithCallback(request *ModifyInstanceMaintenanceAttributesRequest, callback func(response *ModifyInstanceMaintenanceAttributesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceMaintenanceAttributesResponse - var err error - defer close(result) - response, err = client.ModifyInstanceMaintenanceAttributes(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceMaintenanceAttributesRequest is the request struct for api ModifyInstanceMaintenanceAttributes -type ModifyInstanceMaintenanceAttributesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MaintenanceWindow *[]ModifyInstanceMaintenanceAttributesMaintenanceWindow `position:"Query" name:"MaintenanceWindow" type:"Repeated"` - ActionOnMaintenance string `position:"Query" name:"ActionOnMaintenance"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NotifyOnMaintenance requests.Boolean `position:"Query" name:"NotifyOnMaintenance"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` -} - -// ModifyInstanceMaintenanceAttributesMaintenanceWindow is a repeated param struct in ModifyInstanceMaintenanceAttributesRequest -type ModifyInstanceMaintenanceAttributesMaintenanceWindow struct { - EndTime string `name:"EndTime"` - StartTime string `name:"StartTime"` -} - -// ModifyInstanceMaintenanceAttributesResponse is the response struct for api ModifyInstanceMaintenanceAttributes -type ModifyInstanceMaintenanceAttributesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceMaintenanceAttributesRequest creates a request to invoke ModifyInstanceMaintenanceAttributes API -func CreateModifyInstanceMaintenanceAttributesRequest() (request *ModifyInstanceMaintenanceAttributesRequest) { - request = &ModifyInstanceMaintenanceAttributesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceMaintenanceAttributes", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceMaintenanceAttributesResponse creates a response to parse from ModifyInstanceMaintenanceAttributes response -func CreateModifyInstanceMaintenanceAttributesResponse() (response *ModifyInstanceMaintenanceAttributesResponse) { - response = &ModifyInstanceMaintenanceAttributesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_metadata_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_metadata_options.go deleted file mode 100644 index bff632ef1b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_metadata_options.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceMetadataOptions invokes the ecs.ModifyInstanceMetadataOptions API synchronously -func (client *Client) ModifyInstanceMetadataOptions(request *ModifyInstanceMetadataOptionsRequest) (response *ModifyInstanceMetadataOptionsResponse, err error) { - response = CreateModifyInstanceMetadataOptionsResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceMetadataOptionsWithChan invokes the ecs.ModifyInstanceMetadataOptions API asynchronously -func (client *Client) ModifyInstanceMetadataOptionsWithChan(request *ModifyInstanceMetadataOptionsRequest) (<-chan *ModifyInstanceMetadataOptionsResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceMetadataOptionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceMetadataOptions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceMetadataOptionsWithCallback invokes the ecs.ModifyInstanceMetadataOptions API asynchronously -func (client *Client) ModifyInstanceMetadataOptionsWithCallback(request *ModifyInstanceMetadataOptionsRequest, callback func(response *ModifyInstanceMetadataOptionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceMetadataOptionsResponse - var err error - defer close(result) - response, err = client.ModifyInstanceMetadataOptions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceMetadataOptionsRequest is the request struct for api ModifyInstanceMetadataOptions -type ModifyInstanceMetadataOptionsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceMetadataTags string `position:"Query" name:"InstanceMetadataTags"` - HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` - HttpEndpoint string `position:"Query" name:"HttpEndpoint"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - HttpTokens string `position:"Query" name:"HttpTokens"` -} - -// ModifyInstanceMetadataOptionsResponse is the response struct for api ModifyInstanceMetadataOptions -type ModifyInstanceMetadataOptionsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceMetadataOptionsRequest creates a request to invoke ModifyInstanceMetadataOptions API -func CreateModifyInstanceMetadataOptionsRequest() (request *ModifyInstanceMetadataOptionsRequest) { - request = &ModifyInstanceMetadataOptionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceMetadataOptions", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceMetadataOptionsResponse creates a response to parse from ModifyInstanceMetadataOptions response -func CreateModifyInstanceMetadataOptionsResponse() (response *ModifyInstanceMetadataOptionsResponse) { - response = &ModifyInstanceMetadataOptionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go deleted file mode 100644 index 314e4a9b09..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go +++ /dev/null @@ -1,119 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceNetworkSpec invokes the ecs.ModifyInstanceNetworkSpec API synchronously -func (client *Client) ModifyInstanceNetworkSpec(request *ModifyInstanceNetworkSpecRequest) (response *ModifyInstanceNetworkSpecResponse, err error) { - response = CreateModifyInstanceNetworkSpecResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceNetworkSpecWithChan invokes the ecs.ModifyInstanceNetworkSpec API asynchronously -func (client *Client) ModifyInstanceNetworkSpecWithChan(request *ModifyInstanceNetworkSpecRequest) (<-chan *ModifyInstanceNetworkSpecResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceNetworkSpecResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceNetworkSpec(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceNetworkSpecWithCallback invokes the ecs.ModifyInstanceNetworkSpec API asynchronously -func (client *Client) ModifyInstanceNetworkSpecWithCallback(request *ModifyInstanceNetworkSpecRequest, callback func(response *ModifyInstanceNetworkSpecResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceNetworkSpecResponse - var err error - defer close(result) - response, err = client.ModifyInstanceNetworkSpec(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceNetworkSpecRequest is the request struct for api ModifyInstanceNetworkSpec -type ModifyInstanceNetworkSpecRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - ISP string `position:"Query" name:"ISP"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - StartTime string `position:"Query" name:"StartTime"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions ModifyInstanceNetworkSpecPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkChargeType string `position:"Query" name:"NetworkChargeType"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - AllocatePublicIp requests.Boolean `position:"Query" name:"AllocatePublicIp"` -} - -// ModifyInstanceNetworkSpecPromotionOptions is a repeated param struct in ModifyInstanceNetworkSpecRequest -type ModifyInstanceNetworkSpecPromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// ModifyInstanceNetworkSpecResponse is the response struct for api ModifyInstanceNetworkSpec -type ModifyInstanceNetworkSpecResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceNetworkSpecRequest creates a request to invoke ModifyInstanceNetworkSpec API -func CreateModifyInstanceNetworkSpecRequest() (request *ModifyInstanceNetworkSpecRequest) { - request = &ModifyInstanceNetworkSpecRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceNetworkSpec", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceNetworkSpecResponse creates a response to parse from ModifyInstanceNetworkSpec response -func CreateModifyInstanceNetworkSpecResponse() (response *ModifyInstanceNetworkSpecResponse) { - response = &ModifyInstanceNetworkSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go deleted file mode 100644 index 4cce07e846..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go +++ /dev/null @@ -1,124 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceSpec invokes the ecs.ModifyInstanceSpec API synchronously -func (client *Client) ModifyInstanceSpec(request *ModifyInstanceSpecRequest) (response *ModifyInstanceSpecResponse, err error) { - response = CreateModifyInstanceSpecResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceSpecWithChan invokes the ecs.ModifyInstanceSpec API asynchronously -func (client *Client) ModifyInstanceSpecWithChan(request *ModifyInstanceSpecRequest) (<-chan *ModifyInstanceSpecResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceSpecResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceSpec(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceSpecWithCallback invokes the ecs.ModifyInstanceSpec API asynchronously -func (client *Client) ModifyInstanceSpecWithCallback(request *ModifyInstanceSpecRequest, callback func(response *ModifyInstanceSpecResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceSpecResponse - var err error - defer close(result) - response, err = client.ModifyInstanceSpec(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceSpecRequest is the request struct for api ModifyInstanceSpec -type ModifyInstanceSpecRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - AllowMigrateAcrossZone requests.Boolean `position:"Query" name:"AllowMigrateAcrossZone"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - InstanceType string `position:"Query" name:"InstanceType"` - TemporaryEndTime string `position:"Query" name:"Temporary.EndTime"` - ModifyMode string `position:"Query" name:"ModifyMode"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - TemporaryInternetMaxBandwidthOut requests.Integer `position:"Query" name:"Temporary.InternetMaxBandwidthOut"` - TemporaryStartTime string `position:"Query" name:"Temporary.StartTime"` - Async requests.Boolean `position:"Query" name:"Async"` - Disk *[]ModifyInstanceSpecDisk `position:"Query" name:"Disk" type:"Repeated"` - InstanceId string `position:"Query" name:"InstanceId"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` -} - -// ModifyInstanceSpecDisk is a repeated param struct in ModifyInstanceSpecRequest -type ModifyInstanceSpecDisk struct { - PerformanceLevel string `name:"PerformanceLevel"` - DiskId string `name:"DiskId"` - Category string `name:"Category"` -} - -// ModifyInstanceSpecResponse is the response struct for api ModifyInstanceSpec -type ModifyInstanceSpecResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId string `json:"TaskId" xml:"TaskId"` -} - -// CreateModifyInstanceSpecRequest creates a request to invoke ModifyInstanceSpec API -func CreateModifyInstanceSpecRequest() (request *ModifyInstanceSpecRequest) { - request = &ModifyInstanceSpecRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceSpec", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceSpecResponse creates a response to parse from ModifyInstanceSpec response -func CreateModifyInstanceSpecResponse() (response *ModifyInstanceSpecResponse) { - response = &ModifyInstanceSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go deleted file mode 100644 index 0a77cc7be6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceVncPasswd invokes the ecs.ModifyInstanceVncPasswd API synchronously -func (client *Client) ModifyInstanceVncPasswd(request *ModifyInstanceVncPasswdRequest) (response *ModifyInstanceVncPasswdResponse, err error) { - response = CreateModifyInstanceVncPasswdResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceVncPasswdWithChan invokes the ecs.ModifyInstanceVncPasswd API asynchronously -func (client *Client) ModifyInstanceVncPasswdWithChan(request *ModifyInstanceVncPasswdRequest) (<-chan *ModifyInstanceVncPasswdResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceVncPasswdResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceVncPasswd(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceVncPasswdWithCallback invokes the ecs.ModifyInstanceVncPasswd API asynchronously -func (client *Client) ModifyInstanceVncPasswdWithCallback(request *ModifyInstanceVncPasswdRequest, callback func(response *ModifyInstanceVncPasswdResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceVncPasswdResponse - var err error - defer close(result) - response, err = client.ModifyInstanceVncPasswd(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceVncPasswdRequest is the request struct for api ModifyInstanceVncPasswd -type ModifyInstanceVncPasswdRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - VncPassword string `position:"Query" name:"VncPassword"` -} - -// ModifyInstanceVncPasswdResponse is the response struct for api ModifyInstanceVncPasswd -type ModifyInstanceVncPasswdResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceVncPasswdRequest creates a request to invoke ModifyInstanceVncPasswd API -func CreateModifyInstanceVncPasswdRequest() (request *ModifyInstanceVncPasswdRequest) { - request = &ModifyInstanceVncPasswdRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceVncPasswd", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceVncPasswdResponse creates a response to parse from ModifyInstanceVncPasswd response -func CreateModifyInstanceVncPasswdResponse() (response *ModifyInstanceVncPasswdResponse) { - response = &ModifyInstanceVncPasswdResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go deleted file mode 100644 index 55c4d6a1b8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInstanceVpcAttribute invokes the ecs.ModifyInstanceVpcAttribute API synchronously -func (client *Client) ModifyInstanceVpcAttribute(request *ModifyInstanceVpcAttributeRequest) (response *ModifyInstanceVpcAttributeResponse, err error) { - response = CreateModifyInstanceVpcAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInstanceVpcAttributeWithChan invokes the ecs.ModifyInstanceVpcAttribute API asynchronously -func (client *Client) ModifyInstanceVpcAttributeWithChan(request *ModifyInstanceVpcAttributeRequest) (<-chan *ModifyInstanceVpcAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyInstanceVpcAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInstanceVpcAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInstanceVpcAttributeWithCallback invokes the ecs.ModifyInstanceVpcAttribute API asynchronously -func (client *Client) ModifyInstanceVpcAttributeWithCallback(request *ModifyInstanceVpcAttributeRequest, callback func(response *ModifyInstanceVpcAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInstanceVpcAttributeResponse - var err error - defer close(result) - response, err = client.ModifyInstanceVpcAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInstanceVpcAttributeRequest is the request struct for api ModifyInstanceVpcAttribute -type ModifyInstanceVpcAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` - InstanceId string `position:"Query" name:"InstanceId"` - VpcId string `position:"Query" name:"VpcId"` -} - -// ModifyInstanceVpcAttributeResponse is the response struct for api ModifyInstanceVpcAttribute -type ModifyInstanceVpcAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyInstanceVpcAttributeRequest creates a request to invoke ModifyInstanceVpcAttribute API -func CreateModifyInstanceVpcAttributeRequest() (request *ModifyInstanceVpcAttributeRequest) { - request = &ModifyInstanceVpcAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceVpcAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInstanceVpcAttributeResponse creates a response to parse from ModifyInstanceVpcAttribute response -func CreateModifyInstanceVpcAttributeResponse() (response *ModifyInstanceVpcAttributeResponse) { - response = &ModifyInstanceVpcAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_invocation_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_invocation_attribute.go deleted file mode 100644 index 2f33c96740..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_invocation_attribute.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyInvocationAttribute invokes the ecs.ModifyInvocationAttribute API synchronously -func (client *Client) ModifyInvocationAttribute(request *ModifyInvocationAttributeRequest) (response *ModifyInvocationAttributeResponse, err error) { - response = CreateModifyInvocationAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyInvocationAttributeWithChan invokes the ecs.ModifyInvocationAttribute API asynchronously -func (client *Client) ModifyInvocationAttributeWithChan(request *ModifyInvocationAttributeRequest) (<-chan *ModifyInvocationAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyInvocationAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyInvocationAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyInvocationAttributeWithCallback invokes the ecs.ModifyInvocationAttribute API asynchronously -func (client *Client) ModifyInvocationAttributeWithCallback(request *ModifyInvocationAttributeRequest, callback func(response *ModifyInvocationAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyInvocationAttributeResponse - var err error - defer close(result) - response, err = client.ModifyInvocationAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyInvocationAttributeRequest is the request struct for api ModifyInvocationAttribute -type ModifyInvocationAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CommandContent string `position:"Query" name:"CommandContent"` - Frequency string `position:"Query" name:"Frequency"` - ContentEncoding string `position:"Query" name:"ContentEncoding"` - InvokeId string `position:"Query" name:"InvokeId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - Parameters map[string]interface{} `position:"Query" name:"Parameters"` - EnableParameter requests.Boolean `position:"Query" name:"EnableParameter"` -} - -// ModifyInvocationAttributeResponse is the response struct for api ModifyInvocationAttribute -type ModifyInvocationAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - CommandId string `json:"CommandId" xml:"CommandId"` -} - -// CreateModifyInvocationAttributeRequest creates a request to invoke ModifyInvocationAttribute API -func CreateModifyInvocationAttributeRequest() (request *ModifyInvocationAttributeRequest) { - request = &ModifyInvocationAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInvocationAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyInvocationAttributeResponse creates a response to parse from ModifyInvocationAttribute response -func CreateModifyInvocationAttributeResponse() (response *ModifyInvocationAttributeResponse) { - response = &ModifyInvocationAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go deleted file mode 100644 index f961f3132c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyLaunchTemplateDefaultVersion invokes the ecs.ModifyLaunchTemplateDefaultVersion API synchronously -func (client *Client) ModifyLaunchTemplateDefaultVersion(request *ModifyLaunchTemplateDefaultVersionRequest) (response *ModifyLaunchTemplateDefaultVersionResponse, err error) { - response = CreateModifyLaunchTemplateDefaultVersionResponse() - err = client.DoAction(request, response) - return -} - -// ModifyLaunchTemplateDefaultVersionWithChan invokes the ecs.ModifyLaunchTemplateDefaultVersion API asynchronously -func (client *Client) ModifyLaunchTemplateDefaultVersionWithChan(request *ModifyLaunchTemplateDefaultVersionRequest) (<-chan *ModifyLaunchTemplateDefaultVersionResponse, <-chan error) { - responseChan := make(chan *ModifyLaunchTemplateDefaultVersionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyLaunchTemplateDefaultVersion(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyLaunchTemplateDefaultVersionWithCallback invokes the ecs.ModifyLaunchTemplateDefaultVersion API asynchronously -func (client *Client) ModifyLaunchTemplateDefaultVersionWithCallback(request *ModifyLaunchTemplateDefaultVersionRequest, callback func(response *ModifyLaunchTemplateDefaultVersionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyLaunchTemplateDefaultVersionResponse - var err error - defer close(result) - response, err = client.ModifyLaunchTemplateDefaultVersion(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyLaunchTemplateDefaultVersionRequest is the request struct for api ModifyLaunchTemplateDefaultVersion -type ModifyLaunchTemplateDefaultVersionRequest struct { - *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DefaultVersionNumber requests.Integer `position:"Query" name:"DefaultVersionNumber"` -} - -// ModifyLaunchTemplateDefaultVersionResponse is the response struct for api ModifyLaunchTemplateDefaultVersion -type ModifyLaunchTemplateDefaultVersionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` -} - -// CreateModifyLaunchTemplateDefaultVersionRequest creates a request to invoke ModifyLaunchTemplateDefaultVersion API -func CreateModifyLaunchTemplateDefaultVersionRequest() (request *ModifyLaunchTemplateDefaultVersionRequest) { - request = &ModifyLaunchTemplateDefaultVersionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyLaunchTemplateDefaultVersionResponse creates a response to parse from ModifyLaunchTemplateDefaultVersion response -func CreateModifyLaunchTemplateDefaultVersionResponse() (response *ModifyLaunchTemplateDefaultVersionResponse) { - response = &ModifyLaunchTemplateDefaultVersionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_managed_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_managed_instance.go deleted file mode 100644 index da4cd7cf8d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_managed_instance.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyManagedInstance invokes the ecs.ModifyManagedInstance API synchronously -func (client *Client) ModifyManagedInstance(request *ModifyManagedInstanceRequest) (response *ModifyManagedInstanceResponse, err error) { - response = CreateModifyManagedInstanceResponse() - err = client.DoAction(request, response) - return -} - -// ModifyManagedInstanceWithChan invokes the ecs.ModifyManagedInstance API asynchronously -func (client *Client) ModifyManagedInstanceWithChan(request *ModifyManagedInstanceRequest) (<-chan *ModifyManagedInstanceResponse, <-chan error) { - responseChan := make(chan *ModifyManagedInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyManagedInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyManagedInstanceWithCallback invokes the ecs.ModifyManagedInstance API asynchronously -func (client *Client) ModifyManagedInstanceWithCallback(request *ModifyManagedInstanceRequest, callback func(response *ModifyManagedInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyManagedInstanceResponse - var err error - defer close(result) - response, err = client.ModifyManagedInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyManagedInstanceRequest is the request struct for api ModifyManagedInstance -type ModifyManagedInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - InstanceName string `position:"Query" name:"InstanceName"` -} - -// ModifyManagedInstanceResponse is the response struct for api ModifyManagedInstance -type ModifyManagedInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Instance Instance `json:"Instance" xml:"Instance"` -} - -// CreateModifyManagedInstanceRequest creates a request to invoke ModifyManagedInstance API -func CreateModifyManagedInstanceRequest() (request *ModifyManagedInstanceRequest) { - request = &ModifyManagedInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyManagedInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyManagedInstanceResponse creates a response to parse from ModifyManagedInstance response -func CreateModifyManagedInstanceResponse() (response *ModifyManagedInstanceResponse) { - response = &ModifyManagedInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go deleted file mode 100644 index f502f01580..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go +++ /dev/null @@ -1,136 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyNetworkInterfaceAttribute invokes the ecs.ModifyNetworkInterfaceAttribute API synchronously -func (client *Client) ModifyNetworkInterfaceAttribute(request *ModifyNetworkInterfaceAttributeRequest) (response *ModifyNetworkInterfaceAttributeResponse, err error) { - response = CreateModifyNetworkInterfaceAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyNetworkInterfaceAttributeWithChan invokes the ecs.ModifyNetworkInterfaceAttribute API asynchronously -func (client *Client) ModifyNetworkInterfaceAttributeWithChan(request *ModifyNetworkInterfaceAttributeRequest) (<-chan *ModifyNetworkInterfaceAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyNetworkInterfaceAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyNetworkInterfaceAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyNetworkInterfaceAttributeWithCallback invokes the ecs.ModifyNetworkInterfaceAttribute API asynchronously -func (client *Client) ModifyNetworkInterfaceAttributeWithCallback(request *ModifyNetworkInterfaceAttributeRequest, callback func(response *ModifyNetworkInterfaceAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyNetworkInterfaceAttributeResponse - var err error - defer close(result) - response, err = client.ModifyNetworkInterfaceAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyNetworkInterfaceAttributeRequest is the request struct for api ModifyNetworkInterfaceAttribute -type ModifyNetworkInterfaceAttributeRequest struct { - *requests.RpcRequest - QueueNumber requests.Integer `position:"Query" name:"QueueNumber"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` - Description string `position:"Query" name:"Description"` - NetworkInterfaceTrafficConfig ModifyNetworkInterfaceAttributeNetworkInterfaceTrafficConfig `position:"Query" name:"NetworkInterfaceTrafficConfig" type:"Struct"` - EnhancedNetwork ModifyNetworkInterfaceAttributeEnhancedNetwork `position:"Query" name:"EnhancedNetwork" type:"Struct"` - SourceDestCheck requests.Boolean `position:"Query" name:"SourceDestCheck"` - NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` - TxQueueSize requests.Integer `position:"Query" name:"TxQueueSize"` - DeleteOnRelease requests.Boolean `position:"Query" name:"DeleteOnRelease"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - RxQueueSize requests.Integer `position:"Query" name:"RxQueueSize"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ConnectionTrackingConfiguration ModifyNetworkInterfaceAttributeConnectionTrackingConfiguration `position:"Query" name:"ConnectionTrackingConfiguration" type:"Struct"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// ModifyNetworkInterfaceAttributeNetworkInterfaceTrafficConfig is a repeated param struct in ModifyNetworkInterfaceAttributeRequest -type ModifyNetworkInterfaceAttributeNetworkInterfaceTrafficConfig struct { - NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` - QueueNumber string `name:"QueueNumber"` - QueuePairNumber string `name:"QueuePairNumber"` - RxQueueSize string `name:"RxQueueSize"` - TxQueueSize string `name:"TxQueueSize"` -} - -// ModifyNetworkInterfaceAttributeEnhancedNetwork is a repeated param struct in ModifyNetworkInterfaceAttributeRequest -type ModifyNetworkInterfaceAttributeEnhancedNetwork struct { - EnableSriov string `name:"EnableSriov"` - EnableRss string `name:"EnableRss"` -} - -// ModifyNetworkInterfaceAttributeConnectionTrackingConfiguration is a repeated param struct in ModifyNetworkInterfaceAttributeRequest -type ModifyNetworkInterfaceAttributeConnectionTrackingConfiguration struct { - TcpEstablishedTimeout string `name:"TcpEstablishedTimeout"` - TcpClosedAndTimeWaitTimeout string `name:"TcpClosedAndTimeWaitTimeout"` - UdpTimeout string `name:"UdpTimeout"` -} - -// ModifyNetworkInterfaceAttributeResponse is the response struct for api ModifyNetworkInterfaceAttribute -type ModifyNetworkInterfaceAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyNetworkInterfaceAttributeRequest creates a request to invoke ModifyNetworkInterfaceAttribute API -func CreateModifyNetworkInterfaceAttributeRequest() (request *ModifyNetworkInterfaceAttributeRequest) { - request = &ModifyNetworkInterfaceAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyNetworkInterfaceAttributeResponse creates a response to parse from ModifyNetworkInterfaceAttribute response -func CreateModifyNetworkInterfaceAttributeResponse() (response *ModifyNetworkInterfaceAttributeResponse) { - response = &ModifyNetworkInterfaceAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go deleted file mode 100644 index 667ba56a73..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyPhysicalConnectionAttribute invokes the ecs.ModifyPhysicalConnectionAttribute API synchronously -func (client *Client) ModifyPhysicalConnectionAttribute(request *ModifyPhysicalConnectionAttributeRequest) (response *ModifyPhysicalConnectionAttributeResponse, err error) { - response = CreateModifyPhysicalConnectionAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyPhysicalConnectionAttributeWithChan invokes the ecs.ModifyPhysicalConnectionAttribute API asynchronously -func (client *Client) ModifyPhysicalConnectionAttributeWithChan(request *ModifyPhysicalConnectionAttributeRequest) (<-chan *ModifyPhysicalConnectionAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyPhysicalConnectionAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyPhysicalConnectionAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyPhysicalConnectionAttributeWithCallback invokes the ecs.ModifyPhysicalConnectionAttribute API asynchronously -func (client *Client) ModifyPhysicalConnectionAttributeWithCallback(request *ModifyPhysicalConnectionAttributeRequest, callback func(response *ModifyPhysicalConnectionAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyPhysicalConnectionAttributeResponse - var err error - defer close(result) - response, err = client.ModifyPhysicalConnectionAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyPhysicalConnectionAttributeRequest is the request struct for api ModifyPhysicalConnectionAttribute -type ModifyPhysicalConnectionAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PortType string `position:"Query" name:"PortType"` - CircuitCode string `position:"Query" name:"CircuitCode"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - UserCidr string `position:"Query" name:"UserCidr"` - RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` - PeerLocation string `position:"Query" name:"PeerLocation"` - Bandwidth requests.Integer `position:"Query" name:"bandwidth"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LineOperator string `position:"Query" name:"LineOperator"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` - Name string `position:"Query" name:"Name"` -} - -// ModifyPhysicalConnectionAttributeResponse is the response struct for api ModifyPhysicalConnectionAttribute -type ModifyPhysicalConnectionAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyPhysicalConnectionAttributeRequest creates a request to invoke ModifyPhysicalConnectionAttribute API -func CreateModifyPhysicalConnectionAttributeRequest() (request *ModifyPhysicalConnectionAttributeRequest) { - request = &ModifyPhysicalConnectionAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyPhysicalConnectionAttributeResponse creates a response to parse from ModifyPhysicalConnectionAttribute response -func CreateModifyPhysicalConnectionAttributeResponse() (response *ModifyPhysicalConnectionAttributeResponse) { - response = &ModifyPhysicalConnectionAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prefix_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prefix_list.go deleted file mode 100644 index 9fa6315c81..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prefix_list.go +++ /dev/null @@ -1,118 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyPrefixList invokes the ecs.ModifyPrefixList API synchronously -func (client *Client) ModifyPrefixList(request *ModifyPrefixListRequest) (response *ModifyPrefixListResponse, err error) { - response = CreateModifyPrefixListResponse() - err = client.DoAction(request, response) - return -} - -// ModifyPrefixListWithChan invokes the ecs.ModifyPrefixList API asynchronously -func (client *Client) ModifyPrefixListWithChan(request *ModifyPrefixListRequest) (<-chan *ModifyPrefixListResponse, <-chan error) { - responseChan := make(chan *ModifyPrefixListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyPrefixList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyPrefixListWithCallback invokes the ecs.ModifyPrefixList API asynchronously -func (client *Client) ModifyPrefixListWithCallback(request *ModifyPrefixListRequest, callback func(response *ModifyPrefixListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyPrefixListResponse - var err error - defer close(result) - response, err = client.ModifyPrefixList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyPrefixListRequest is the request struct for api ModifyPrefixList -type ModifyPrefixListRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - PrefixListId string `position:"Query" name:"PrefixListId"` - AddEntry *[]ModifyPrefixListAddEntry `position:"Query" name:"AddEntry" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PrefixListName string `position:"Query" name:"PrefixListName"` - RemoveEntry *[]ModifyPrefixListRemoveEntry `position:"Query" name:"RemoveEntry" type:"Repeated"` -} - -// ModifyPrefixListAddEntry is a repeated param struct in ModifyPrefixListRequest -type ModifyPrefixListAddEntry struct { - Description string `name:"Description"` - Cidr string `name:"Cidr"` -} - -// ModifyPrefixListRemoveEntry is a repeated param struct in ModifyPrefixListRequest -type ModifyPrefixListRemoveEntry struct { - Cidr string `name:"Cidr"` -} - -// ModifyPrefixListResponse is the response struct for api ModifyPrefixList -type ModifyPrefixListResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyPrefixListRequest creates a request to invoke ModifyPrefixList API -func CreateModifyPrefixListRequest() (request *ModifyPrefixListRequest) { - request = &ModifyPrefixListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPrefixList", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyPrefixListResponse creates a response to parse from ModifyPrefixList response -func CreateModifyPrefixListResponse() (response *ModifyPrefixListResponse) { - response = &ModifyPrefixListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go deleted file mode 100644 index 8be39295d7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go +++ /dev/null @@ -1,129 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyPrepayInstanceSpec invokes the ecs.ModifyPrepayInstanceSpec API synchronously -func (client *Client) ModifyPrepayInstanceSpec(request *ModifyPrepayInstanceSpecRequest) (response *ModifyPrepayInstanceSpecResponse, err error) { - response = CreateModifyPrepayInstanceSpecResponse() - err = client.DoAction(request, response) - return -} - -// ModifyPrepayInstanceSpecWithChan invokes the ecs.ModifyPrepayInstanceSpec API asynchronously -func (client *Client) ModifyPrepayInstanceSpecWithChan(request *ModifyPrepayInstanceSpecRequest) (<-chan *ModifyPrepayInstanceSpecResponse, <-chan error) { - responseChan := make(chan *ModifyPrepayInstanceSpecResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyPrepayInstanceSpec(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyPrepayInstanceSpecWithCallback invokes the ecs.ModifyPrepayInstanceSpec API asynchronously -func (client *Client) ModifyPrepayInstanceSpecWithCallback(request *ModifyPrepayInstanceSpecRequest, callback func(response *ModifyPrepayInstanceSpecResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyPrepayInstanceSpecResponse - var err error - defer close(result) - response, err = client.ModifyPrepayInstanceSpec(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyPrepayInstanceSpecRequest is the request struct for api ModifyPrepayInstanceSpec -type ModifyPrepayInstanceSpecRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - CouponNo string `position:"Query" name:"CouponNo"` - OperatorType string `position:"Query" name:"OperatorType"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - RebootTime string `position:"Query" name:"RebootTime"` - MigrateAcrossZone requests.Boolean `position:"Query" name:"MigrateAcrossZone"` - InstanceType string `position:"Query" name:"InstanceType"` - ModifyMode string `position:"Query" name:"ModifyMode"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - RebootWhenFinished requests.Boolean `position:"Query" name:"RebootWhenFinished"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions ModifyPrepayInstanceSpecPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - Disk *[]ModifyPrepayInstanceSpecDisk `position:"Query" name:"Disk" type:"Repeated"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// ModifyPrepayInstanceSpecPromotionOptions is a repeated param struct in ModifyPrepayInstanceSpecRequest -type ModifyPrepayInstanceSpecPromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// ModifyPrepayInstanceSpecDisk is a repeated param struct in ModifyPrepayInstanceSpecRequest -type ModifyPrepayInstanceSpecDisk struct { - PerformanceLevel string `name:"PerformanceLevel"` - DiskId string `name:"DiskId"` - Category string `name:"Category"` -} - -// ModifyPrepayInstanceSpecResponse is the response struct for api ModifyPrepayInstanceSpec -type ModifyPrepayInstanceSpecResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyPrepayInstanceSpecRequest creates a request to invoke ModifyPrepayInstanceSpec API -func CreateModifyPrepayInstanceSpecRequest() (request *ModifyPrepayInstanceSpecRequest) { - request = &ModifyPrepayInstanceSpecRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPrepayInstanceSpec", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyPrepayInstanceSpecResponse creates a response to parse from ModifyPrepayInstanceSpec response -func CreateModifyPrepayInstanceSpecResponse() (response *ModifyPrepayInstanceSpecResponse) { - response = &ModifyPrepayInstanceSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go deleted file mode 100644 index cd1b1c752f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyReservedInstanceAttribute invokes the ecs.ModifyReservedInstanceAttribute API synchronously -func (client *Client) ModifyReservedInstanceAttribute(request *ModifyReservedInstanceAttributeRequest) (response *ModifyReservedInstanceAttributeResponse, err error) { - response = CreateModifyReservedInstanceAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyReservedInstanceAttributeWithChan invokes the ecs.ModifyReservedInstanceAttribute API asynchronously -func (client *Client) ModifyReservedInstanceAttributeWithChan(request *ModifyReservedInstanceAttributeRequest) (<-chan *ModifyReservedInstanceAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyReservedInstanceAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyReservedInstanceAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyReservedInstanceAttributeWithCallback invokes the ecs.ModifyReservedInstanceAttribute API asynchronously -func (client *Client) ModifyReservedInstanceAttributeWithCallback(request *ModifyReservedInstanceAttributeRequest, callback func(response *ModifyReservedInstanceAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyReservedInstanceAttributeResponse - var err error - defer close(result) - response, err = client.ModifyReservedInstanceAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyReservedInstanceAttributeRequest is the request struct for api ModifyReservedInstanceAttribute -type ModifyReservedInstanceAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ReservedInstanceId string `position:"Query" name:"ReservedInstanceId"` - ReservedInstanceName string `position:"Query" name:"ReservedInstanceName"` -} - -// ModifyReservedInstanceAttributeResponse is the response struct for api ModifyReservedInstanceAttribute -type ModifyReservedInstanceAttributeResponse struct { - *responses.BaseResponse - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Code string `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyReservedInstanceAttributeRequest creates a request to invoke ModifyReservedInstanceAttribute API -func CreateModifyReservedInstanceAttributeRequest() (request *ModifyReservedInstanceAttributeRequest) { - request = &ModifyReservedInstanceAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyReservedInstanceAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyReservedInstanceAttributeResponse creates a response to parse from ModifyReservedInstanceAttribute response -func CreateModifyReservedInstanceAttributeResponse() (response *ModifyReservedInstanceAttributeResponse) { - response = &ModifyReservedInstanceAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_auto_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_auto_renew_attribute.go deleted file mode 100644 index b03d7c270b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_auto_renew_attribute.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyReservedInstanceAutoRenewAttribute invokes the ecs.ModifyReservedInstanceAutoRenewAttribute API synchronously -func (client *Client) ModifyReservedInstanceAutoRenewAttribute(request *ModifyReservedInstanceAutoRenewAttributeRequest) (response *ModifyReservedInstanceAutoRenewAttributeResponse, err error) { - response = CreateModifyReservedInstanceAutoRenewAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyReservedInstanceAutoRenewAttributeWithChan invokes the ecs.ModifyReservedInstanceAutoRenewAttribute API asynchronously -func (client *Client) ModifyReservedInstanceAutoRenewAttributeWithChan(request *ModifyReservedInstanceAutoRenewAttributeRequest) (<-chan *ModifyReservedInstanceAutoRenewAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyReservedInstanceAutoRenewAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyReservedInstanceAutoRenewAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyReservedInstanceAutoRenewAttributeWithCallback invokes the ecs.ModifyReservedInstanceAutoRenewAttribute API asynchronously -func (client *Client) ModifyReservedInstanceAutoRenewAttributeWithCallback(request *ModifyReservedInstanceAutoRenewAttributeRequest, callback func(response *ModifyReservedInstanceAutoRenewAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyReservedInstanceAutoRenewAttributeResponse - var err error - defer close(result) - response, err = client.ModifyReservedInstanceAutoRenewAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyReservedInstanceAutoRenewAttributeRequest is the request struct for api ModifyReservedInstanceAutoRenewAttribute -type ModifyReservedInstanceAutoRenewAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - RenewalStatus string `position:"Query" name:"RenewalStatus"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` -} - -// ModifyReservedInstanceAutoRenewAttributeResponse is the response struct for api ModifyReservedInstanceAutoRenewAttribute -type ModifyReservedInstanceAutoRenewAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyReservedInstanceAutoRenewAttributeRequest creates a request to invoke ModifyReservedInstanceAutoRenewAttribute API -func CreateModifyReservedInstanceAutoRenewAttributeRequest() (request *ModifyReservedInstanceAutoRenewAttributeRequest) { - request = &ModifyReservedInstanceAutoRenewAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyReservedInstanceAutoRenewAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyReservedInstanceAutoRenewAttributeResponse creates a response to parse from ModifyReservedInstanceAutoRenewAttribute response -func CreateModifyReservedInstanceAutoRenewAttributeResponse() (response *ModifyReservedInstanceAutoRenewAttributeResponse) { - response = &ModifyReservedInstanceAutoRenewAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go deleted file mode 100644 index 513fecce13..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyReservedInstances invokes the ecs.ModifyReservedInstances API synchronously -func (client *Client) ModifyReservedInstances(request *ModifyReservedInstancesRequest) (response *ModifyReservedInstancesResponse, err error) { - response = CreateModifyReservedInstancesResponse() - err = client.DoAction(request, response) - return -} - -// ModifyReservedInstancesWithChan invokes the ecs.ModifyReservedInstances API asynchronously -func (client *Client) ModifyReservedInstancesWithChan(request *ModifyReservedInstancesRequest) (<-chan *ModifyReservedInstancesResponse, <-chan error) { - responseChan := make(chan *ModifyReservedInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyReservedInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyReservedInstancesWithCallback invokes the ecs.ModifyReservedInstances API asynchronously -func (client *Client) ModifyReservedInstancesWithCallback(request *ModifyReservedInstancesRequest, callback func(response *ModifyReservedInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyReservedInstancesResponse - var err error - defer close(result) - response, err = client.ModifyReservedInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyReservedInstancesRequest is the request struct for api ModifyReservedInstances -type ModifyReservedInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Configuration *[]ModifyReservedInstancesConfiguration `position:"Query" name:"Configuration" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` -} - -// ModifyReservedInstancesConfiguration is a repeated param struct in ModifyReservedInstancesRequest -type ModifyReservedInstancesConfiguration struct { - ReservedInstanceName string `name:"ReservedInstanceName"` - ZoneId string `name:"ZoneId"` - Scope string `name:"Scope"` - InstanceType string `name:"InstanceType"` - InstanceAmount string `name:"InstanceAmount"` -} - -// ModifyReservedInstancesResponse is the response struct for api ModifyReservedInstances -type ModifyReservedInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ReservedInstanceIdSets ReservedInstanceIdSetsInModifyReservedInstances `json:"ReservedInstanceIdSets" xml:"ReservedInstanceIdSets"` -} - -// CreateModifyReservedInstancesRequest creates a request to invoke ModifyReservedInstances API -func CreateModifyReservedInstancesRequest() (request *ModifyReservedInstancesRequest) { - request = &ModifyReservedInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyReservedInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyReservedInstancesResponse creates a response to parse from ModifyReservedInstances response -func CreateModifyReservedInstancesResponse() (response *ModifyReservedInstancesResponse) { - response = &ModifyReservedInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go deleted file mode 100644 index 5ae2eaf20d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyRouterInterfaceAttribute invokes the ecs.ModifyRouterInterfaceAttribute API synchronously -func (client *Client) ModifyRouterInterfaceAttribute(request *ModifyRouterInterfaceAttributeRequest) (response *ModifyRouterInterfaceAttributeResponse, err error) { - response = CreateModifyRouterInterfaceAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyRouterInterfaceAttributeWithChan invokes the ecs.ModifyRouterInterfaceAttribute API asynchronously -func (client *Client) ModifyRouterInterfaceAttributeWithChan(request *ModifyRouterInterfaceAttributeRequest) (<-chan *ModifyRouterInterfaceAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyRouterInterfaceAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyRouterInterfaceAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyRouterInterfaceAttributeWithCallback invokes the ecs.ModifyRouterInterfaceAttribute API asynchronously -func (client *Client) ModifyRouterInterfaceAttributeWithCallback(request *ModifyRouterInterfaceAttributeRequest, callback func(response *ModifyRouterInterfaceAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyRouterInterfaceAttributeResponse - var err error - defer close(result) - response, err = client.ModifyRouterInterfaceAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyRouterInterfaceAttributeRequest is the request struct for api ModifyRouterInterfaceAttribute -type ModifyRouterInterfaceAttributeRequest struct { - *requests.RpcRequest - OppositeRouterId string `position:"Query" name:"OppositeRouterId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` - OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` - OppositeInterfaceOwnerId requests.Integer `position:"Query" name:"OppositeInterfaceOwnerId"` - HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` - Name string `position:"Query" name:"Name"` - OppositeRouterType string `position:"Query" name:"OppositeRouterType"` -} - -// ModifyRouterInterfaceAttributeResponse is the response struct for api ModifyRouterInterfaceAttribute -type ModifyRouterInterfaceAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyRouterInterfaceAttributeRequest creates a request to invoke ModifyRouterInterfaceAttribute API -func CreateModifyRouterInterfaceAttributeRequest() (request *ModifyRouterInterfaceAttributeRequest) { - request = &ModifyRouterInterfaceAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyRouterInterfaceAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyRouterInterfaceAttributeResponse creates a response to parse from ModifyRouterInterfaceAttribute response -func CreateModifyRouterInterfaceAttributeResponse() (response *ModifyRouterInterfaceAttributeResponse) { - response = &ModifyRouterInterfaceAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go deleted file mode 100644 index 8b363de2b3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyRouterInterfaceSpec invokes the ecs.ModifyRouterInterfaceSpec API synchronously -func (client *Client) ModifyRouterInterfaceSpec(request *ModifyRouterInterfaceSpecRequest) (response *ModifyRouterInterfaceSpecResponse, err error) { - response = CreateModifyRouterInterfaceSpecResponse() - err = client.DoAction(request, response) - return -} - -// ModifyRouterInterfaceSpecWithChan invokes the ecs.ModifyRouterInterfaceSpec API asynchronously -func (client *Client) ModifyRouterInterfaceSpecWithChan(request *ModifyRouterInterfaceSpecRequest) (<-chan *ModifyRouterInterfaceSpecResponse, <-chan error) { - responseChan := make(chan *ModifyRouterInterfaceSpecResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyRouterInterfaceSpec(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyRouterInterfaceSpecWithCallback invokes the ecs.ModifyRouterInterfaceSpec API asynchronously -func (client *Client) ModifyRouterInterfaceSpecWithCallback(request *ModifyRouterInterfaceSpecRequest, callback func(response *ModifyRouterInterfaceSpecResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyRouterInterfaceSpecResponse - var err error - defer close(result) - response, err = client.ModifyRouterInterfaceSpec(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyRouterInterfaceSpecRequest is the request struct for api ModifyRouterInterfaceSpec -type ModifyRouterInterfaceSpecRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Spec string `position:"Query" name:"Spec"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyRouterInterfaceSpecResponse is the response struct for api ModifyRouterInterfaceSpec -type ModifyRouterInterfaceSpecResponse struct { - *responses.BaseResponse - Spec string `json:"Spec" xml:"Spec"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyRouterInterfaceSpecRequest creates a request to invoke ModifyRouterInterfaceSpec API -func CreateModifyRouterInterfaceSpecRequest() (request *ModifyRouterInterfaceSpecRequest) { - request = &ModifyRouterInterfaceSpecRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyRouterInterfaceSpec", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyRouterInterfaceSpecResponse creates a response to parse from ModifyRouterInterfaceSpec response -func CreateModifyRouterInterfaceSpecResponse() (response *ModifyRouterInterfaceSpecResponse) { - response = &ModifyRouterInterfaceSpecResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go deleted file mode 100644 index 179586517d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifySecurityGroupAttribute invokes the ecs.ModifySecurityGroupAttribute API synchronously -func (client *Client) ModifySecurityGroupAttribute(request *ModifySecurityGroupAttributeRequest) (response *ModifySecurityGroupAttributeResponse, err error) { - response = CreateModifySecurityGroupAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifySecurityGroupAttributeWithChan invokes the ecs.ModifySecurityGroupAttribute API asynchronously -func (client *Client) ModifySecurityGroupAttributeWithChan(request *ModifySecurityGroupAttributeRequest) (<-chan *ModifySecurityGroupAttributeResponse, <-chan error) { - responseChan := make(chan *ModifySecurityGroupAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifySecurityGroupAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifySecurityGroupAttributeWithCallback invokes the ecs.ModifySecurityGroupAttribute API asynchronously -func (client *Client) ModifySecurityGroupAttributeWithCallback(request *ModifySecurityGroupAttributeRequest, callback func(response *ModifySecurityGroupAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifySecurityGroupAttributeResponse - var err error - defer close(result) - response, err = client.ModifySecurityGroupAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifySecurityGroupAttributeRequest is the request struct for api ModifySecurityGroupAttribute -type ModifySecurityGroupAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - SecurityGroupName string `position:"Query" name:"SecurityGroupName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifySecurityGroupAttributeResponse is the response struct for api ModifySecurityGroupAttribute -type ModifySecurityGroupAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifySecurityGroupAttributeRequest creates a request to invoke ModifySecurityGroupAttribute API -func CreateModifySecurityGroupAttributeRequest() (request *ModifySecurityGroupAttributeRequest) { - request = &ModifySecurityGroupAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifySecurityGroupAttributeResponse creates a response to parse from ModifySecurityGroupAttribute response -func CreateModifySecurityGroupAttributeResponse() (response *ModifySecurityGroupAttributeResponse) { - response = &ModifySecurityGroupAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go deleted file mode 100644 index 46ed053930..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go +++ /dev/null @@ -1,120 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifySecurityGroupEgressRule invokes the ecs.ModifySecurityGroupEgressRule API synchronously -func (client *Client) ModifySecurityGroupEgressRule(request *ModifySecurityGroupEgressRuleRequest) (response *ModifySecurityGroupEgressRuleResponse, err error) { - response = CreateModifySecurityGroupEgressRuleResponse() - err = client.DoAction(request, response) - return -} - -// ModifySecurityGroupEgressRuleWithChan invokes the ecs.ModifySecurityGroupEgressRule API asynchronously -func (client *Client) ModifySecurityGroupEgressRuleWithChan(request *ModifySecurityGroupEgressRuleRequest) (<-chan *ModifySecurityGroupEgressRuleResponse, <-chan error) { - responseChan := make(chan *ModifySecurityGroupEgressRuleResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifySecurityGroupEgressRule(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifySecurityGroupEgressRuleWithCallback invokes the ecs.ModifySecurityGroupEgressRule API asynchronously -func (client *Client) ModifySecurityGroupEgressRuleWithCallback(request *ModifySecurityGroupEgressRuleRequest, callback func(response *ModifySecurityGroupEgressRuleResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifySecurityGroupEgressRuleResponse - var err error - defer close(result) - response, err = client.ModifySecurityGroupEgressRule(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifySecurityGroupEgressRuleRequest is the request struct for api ModifySecurityGroupEgressRule -type ModifySecurityGroupEgressRuleRequest struct { - *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - DestPrefixListId string `position:"Query" name:"DestPrefixListId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - Policy string `position:"Query" name:"Policy"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - DestGroupId string `position:"Query" name:"DestGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` - SecurityGroupRuleId string `position:"Query" name:"SecurityGroupRuleId"` -} - -// ModifySecurityGroupEgressRuleResponse is the response struct for api ModifySecurityGroupEgressRule -type ModifySecurityGroupEgressRuleResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifySecurityGroupEgressRuleRequest creates a request to invoke ModifySecurityGroupEgressRule API -func CreateModifySecurityGroupEgressRuleRequest() (request *ModifySecurityGroupEgressRuleRequest) { - request = &ModifySecurityGroupEgressRuleRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupEgressRule", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifySecurityGroupEgressRuleResponse creates a response to parse from ModifySecurityGroupEgressRule response -func CreateModifySecurityGroupEgressRuleResponse() (response *ModifySecurityGroupEgressRuleResponse) { - response = &ModifySecurityGroupEgressRuleResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go deleted file mode 100644 index 9f045fe699..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifySecurityGroupPolicy invokes the ecs.ModifySecurityGroupPolicy API synchronously -func (client *Client) ModifySecurityGroupPolicy(request *ModifySecurityGroupPolicyRequest) (response *ModifySecurityGroupPolicyResponse, err error) { - response = CreateModifySecurityGroupPolicyResponse() - err = client.DoAction(request, response) - return -} - -// ModifySecurityGroupPolicyWithChan invokes the ecs.ModifySecurityGroupPolicy API asynchronously -func (client *Client) ModifySecurityGroupPolicyWithChan(request *ModifySecurityGroupPolicyRequest) (<-chan *ModifySecurityGroupPolicyResponse, <-chan error) { - responseChan := make(chan *ModifySecurityGroupPolicyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifySecurityGroupPolicy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifySecurityGroupPolicyWithCallback invokes the ecs.ModifySecurityGroupPolicy API asynchronously -func (client *Client) ModifySecurityGroupPolicyWithCallback(request *ModifySecurityGroupPolicyRequest, callback func(response *ModifySecurityGroupPolicyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifySecurityGroupPolicyResponse - var err error - defer close(result) - response, err = client.ModifySecurityGroupPolicy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifySecurityGroupPolicyRequest is the request struct for api ModifySecurityGroupPolicy -type ModifySecurityGroupPolicyRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InnerAccessPolicy string `position:"Query" name:"InnerAccessPolicy"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifySecurityGroupPolicyResponse is the response struct for api ModifySecurityGroupPolicy -type ModifySecurityGroupPolicyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifySecurityGroupPolicyRequest creates a request to invoke ModifySecurityGroupPolicy API -func CreateModifySecurityGroupPolicyRequest() (request *ModifySecurityGroupPolicyRequest) { - request = &ModifySecurityGroupPolicyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupPolicy", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifySecurityGroupPolicyResponse creates a response to parse from ModifySecurityGroupPolicy response -func CreateModifySecurityGroupPolicyResponse() (response *ModifySecurityGroupPolicyResponse) { - response = &ModifySecurityGroupPolicyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go deleted file mode 100644 index b1b2ede6a7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go +++ /dev/null @@ -1,120 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifySecurityGroupRule invokes the ecs.ModifySecurityGroupRule API synchronously -func (client *Client) ModifySecurityGroupRule(request *ModifySecurityGroupRuleRequest) (response *ModifySecurityGroupRuleResponse, err error) { - response = CreateModifySecurityGroupRuleResponse() - err = client.DoAction(request, response) - return -} - -// ModifySecurityGroupRuleWithChan invokes the ecs.ModifySecurityGroupRule API asynchronously -func (client *Client) ModifySecurityGroupRuleWithChan(request *ModifySecurityGroupRuleRequest) (<-chan *ModifySecurityGroupRuleResponse, <-chan error) { - responseChan := make(chan *ModifySecurityGroupRuleResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifySecurityGroupRule(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifySecurityGroupRuleWithCallback invokes the ecs.ModifySecurityGroupRule API asynchronously -func (client *Client) ModifySecurityGroupRuleWithCallback(request *ModifySecurityGroupRuleRequest, callback func(response *ModifySecurityGroupRuleResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifySecurityGroupRuleResponse - var err error - defer close(result) - response, err = client.ModifySecurityGroupRule(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifySecurityGroupRuleRequest is the request struct for api ModifySecurityGroupRule -type ModifySecurityGroupRuleRequest struct { - *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePrefixListId string `position:"Query" name:"SourcePrefixListId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` - SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` - Policy string `position:"Query" name:"Policy"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - SourceGroupId string `position:"Query" name:"SourceGroupId"` - SecurityGroupRuleId string `position:"Query" name:"SecurityGroupRuleId"` -} - -// ModifySecurityGroupRuleResponse is the response struct for api ModifySecurityGroupRule -type ModifySecurityGroupRuleResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifySecurityGroupRuleRequest creates a request to invoke ModifySecurityGroupRule API -func CreateModifySecurityGroupRuleRequest() (request *ModifySecurityGroupRuleRequest) { - request = &ModifySecurityGroupRuleRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupRule", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifySecurityGroupRuleResponse creates a response to parse from ModifySecurityGroupRule response -func CreateModifySecurityGroupRuleResponse() (response *ModifySecurityGroupRuleResponse) { - response = &ModifySecurityGroupRuleResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go deleted file mode 100644 index 6b2af4ca93..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifySnapshotAttribute invokes the ecs.ModifySnapshotAttribute API synchronously -func (client *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error) { - response = CreateModifySnapshotAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifySnapshotAttributeWithChan invokes the ecs.ModifySnapshotAttribute API asynchronously -func (client *Client) ModifySnapshotAttributeWithChan(request *ModifySnapshotAttributeRequest) (<-chan *ModifySnapshotAttributeResponse, <-chan error) { - responseChan := make(chan *ModifySnapshotAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifySnapshotAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifySnapshotAttributeWithCallback invokes the ecs.ModifySnapshotAttribute API asynchronously -func (client *Client) ModifySnapshotAttributeWithCallback(request *ModifySnapshotAttributeRequest, callback func(response *ModifySnapshotAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifySnapshotAttributeResponse - var err error - defer close(result) - response, err = client.ModifySnapshotAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifySnapshotAttributeRequest is the request struct for api ModifySnapshotAttribute -type ModifySnapshotAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - Description string `position:"Query" name:"Description"` - SnapshotName string `position:"Query" name:"SnapshotName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DisableInstantAccess requests.Boolean `position:"Query" name:"DisableInstantAccess"` - RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` -} - -// ModifySnapshotAttributeResponse is the response struct for api ModifySnapshotAttribute -type ModifySnapshotAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifySnapshotAttributeRequest creates a request to invoke ModifySnapshotAttribute API -func CreateModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeRequest) { - request = &ModifySnapshotAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySnapshotAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifySnapshotAttributeResponse creates a response to parse from ModifySnapshotAttribute response -func CreateModifySnapshotAttributeResponse() (response *ModifySnapshotAttributeResponse) { - response = &ModifySnapshotAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_category.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_category.go deleted file mode 100644 index 6601e94767..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_category.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifySnapshotCategory invokes the ecs.ModifySnapshotCategory API synchronously -func (client *Client) ModifySnapshotCategory(request *ModifySnapshotCategoryRequest) (response *ModifySnapshotCategoryResponse, err error) { - response = CreateModifySnapshotCategoryResponse() - err = client.DoAction(request, response) - return -} - -// ModifySnapshotCategoryWithChan invokes the ecs.ModifySnapshotCategory API asynchronously -func (client *Client) ModifySnapshotCategoryWithChan(request *ModifySnapshotCategoryRequest) (<-chan *ModifySnapshotCategoryResponse, <-chan error) { - responseChan := make(chan *ModifySnapshotCategoryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifySnapshotCategory(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifySnapshotCategoryWithCallback invokes the ecs.ModifySnapshotCategory API asynchronously -func (client *Client) ModifySnapshotCategoryWithCallback(request *ModifySnapshotCategoryRequest, callback func(response *ModifySnapshotCategoryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifySnapshotCategoryResponse - var err error - defer close(result) - response, err = client.ModifySnapshotCategory(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifySnapshotCategoryRequest is the request struct for api ModifySnapshotCategory -type ModifySnapshotCategoryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` - Category string `position:"Query" name:"Category"` -} - -// ModifySnapshotCategoryResponse is the response struct for api ModifySnapshotCategory -type ModifySnapshotCategoryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId string `json:"TaskId" xml:"TaskId"` -} - -// CreateModifySnapshotCategoryRequest creates a request to invoke ModifySnapshotCategory API -func CreateModifySnapshotCategoryRequest() (request *ModifySnapshotCategoryRequest) { - request = &ModifySnapshotCategoryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySnapshotCategory", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifySnapshotCategoryResponse creates a response to parse from ModifySnapshotCategory response -func CreateModifySnapshotCategoryResponse() (response *ModifySnapshotCategoryResponse) { - response = &ModifySnapshotCategoryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_group.go deleted file mode 100644 index 50398fdb75..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_group.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifySnapshotGroup invokes the ecs.ModifySnapshotGroup API synchronously -func (client *Client) ModifySnapshotGroup(request *ModifySnapshotGroupRequest) (response *ModifySnapshotGroupResponse, err error) { - response = CreateModifySnapshotGroupResponse() - err = client.DoAction(request, response) - return -} - -// ModifySnapshotGroupWithChan invokes the ecs.ModifySnapshotGroup API asynchronously -func (client *Client) ModifySnapshotGroupWithChan(request *ModifySnapshotGroupRequest) (<-chan *ModifySnapshotGroupResponse, <-chan error) { - responseChan := make(chan *ModifySnapshotGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifySnapshotGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifySnapshotGroupWithCallback invokes the ecs.ModifySnapshotGroup API asynchronously -func (client *Client) ModifySnapshotGroupWithCallback(request *ModifySnapshotGroupRequest, callback func(response *ModifySnapshotGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifySnapshotGroupResponse - var err error - defer close(result) - response, err = client.ModifySnapshotGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifySnapshotGroupRequest is the request struct for api ModifySnapshotGroup -type ModifySnapshotGroupRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SnapshotGroupId string `position:"Query" name:"SnapshotGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` -} - -// ModifySnapshotGroupResponse is the response struct for api ModifySnapshotGroup -type ModifySnapshotGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifySnapshotGroupRequest creates a request to invoke ModifySnapshotGroup API -func CreateModifySnapshotGroupRequest() (request *ModifySnapshotGroupRequest) { - request = &ModifySnapshotGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySnapshotGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifySnapshotGroupResponse creates a response to parse from ModifySnapshotGroup response -func CreateModifySnapshotGroupResponse() (response *ModifySnapshotGroupResponse) { - response = &ModifySnapshotGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_capacity_unit_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_capacity_unit_attribute.go deleted file mode 100644 index 594ef9b679..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_capacity_unit_attribute.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyStorageCapacityUnitAttribute invokes the ecs.ModifyStorageCapacityUnitAttribute API synchronously -func (client *Client) ModifyStorageCapacityUnitAttribute(request *ModifyStorageCapacityUnitAttributeRequest) (response *ModifyStorageCapacityUnitAttributeResponse, err error) { - response = CreateModifyStorageCapacityUnitAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyStorageCapacityUnitAttributeWithChan invokes the ecs.ModifyStorageCapacityUnitAttribute API asynchronously -func (client *Client) ModifyStorageCapacityUnitAttributeWithChan(request *ModifyStorageCapacityUnitAttributeRequest) (<-chan *ModifyStorageCapacityUnitAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyStorageCapacityUnitAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyStorageCapacityUnitAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyStorageCapacityUnitAttributeWithCallback invokes the ecs.ModifyStorageCapacityUnitAttribute API asynchronously -func (client *Client) ModifyStorageCapacityUnitAttributeWithCallback(request *ModifyStorageCapacityUnitAttributeRequest, callback func(response *ModifyStorageCapacityUnitAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyStorageCapacityUnitAttributeResponse - var err error - defer close(result) - response, err = client.ModifyStorageCapacityUnitAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyStorageCapacityUnitAttributeRequest is the request struct for api ModifyStorageCapacityUnitAttribute -type ModifyStorageCapacityUnitAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - StorageCapacityUnitId string `position:"Query" name:"StorageCapacityUnitId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` -} - -// ModifyStorageCapacityUnitAttributeResponse is the response struct for api ModifyStorageCapacityUnitAttribute -type ModifyStorageCapacityUnitAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyStorageCapacityUnitAttributeRequest creates a request to invoke ModifyStorageCapacityUnitAttribute API -func CreateModifyStorageCapacityUnitAttributeRequest() (request *ModifyStorageCapacityUnitAttributeRequest) { - request = &ModifyStorageCapacityUnitAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyStorageCapacityUnitAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyStorageCapacityUnitAttributeResponse creates a response to parse from ModifyStorageCapacityUnitAttribute response -func CreateModifyStorageCapacityUnitAttributeResponse() (response *ModifyStorageCapacityUnitAttributeResponse) { - response = &ModifyStorageCapacityUnitAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go deleted file mode 100644 index 4c57b60ecd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyStorageSetAttribute invokes the ecs.ModifyStorageSetAttribute API synchronously -func (client *Client) ModifyStorageSetAttribute(request *ModifyStorageSetAttributeRequest) (response *ModifyStorageSetAttributeResponse, err error) { - response = CreateModifyStorageSetAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyStorageSetAttributeWithChan invokes the ecs.ModifyStorageSetAttribute API asynchronously -func (client *Client) ModifyStorageSetAttributeWithChan(request *ModifyStorageSetAttributeRequest) (<-chan *ModifyStorageSetAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyStorageSetAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyStorageSetAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyStorageSetAttributeWithCallback invokes the ecs.ModifyStorageSetAttribute API asynchronously -func (client *Client) ModifyStorageSetAttributeWithCallback(request *ModifyStorageSetAttributeRequest, callback func(response *ModifyStorageSetAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyStorageSetAttributeResponse - var err error - defer close(result) - response, err = client.ModifyStorageSetAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyStorageSetAttributeRequest is the request struct for api ModifyStorageSetAttribute -type ModifyStorageSetAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - StorageSetId string `position:"Query" name:"StorageSetId"` - StorageSetName string `position:"Query" name:"StorageSetName"` -} - -// ModifyStorageSetAttributeResponse is the response struct for api ModifyStorageSetAttribute -type ModifyStorageSetAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyStorageSetAttributeRequest creates a request to invoke ModifyStorageSetAttribute API -func CreateModifyStorageSetAttributeRequest() (request *ModifyStorageSetAttributeRequest) { - request = &ModifyStorageSetAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyStorageSetAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyStorageSetAttributeResponse creates a response to parse from ModifyStorageSetAttribute response -func CreateModifyStorageSetAttributeResponse() (response *ModifyStorageSetAttributeResponse) { - response = &ModifyStorageSetAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go deleted file mode 100644 index 72c26e3688..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyUserBusinessBehavior invokes the ecs.ModifyUserBusinessBehavior API synchronously -func (client *Client) ModifyUserBusinessBehavior(request *ModifyUserBusinessBehaviorRequest) (response *ModifyUserBusinessBehaviorResponse, err error) { - response = CreateModifyUserBusinessBehaviorResponse() - err = client.DoAction(request, response) - return -} - -// ModifyUserBusinessBehaviorWithChan invokes the ecs.ModifyUserBusinessBehavior API asynchronously -func (client *Client) ModifyUserBusinessBehaviorWithChan(request *ModifyUserBusinessBehaviorRequest) (<-chan *ModifyUserBusinessBehaviorResponse, <-chan error) { - responseChan := make(chan *ModifyUserBusinessBehaviorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyUserBusinessBehavior(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyUserBusinessBehaviorWithCallback invokes the ecs.ModifyUserBusinessBehavior API asynchronously -func (client *Client) ModifyUserBusinessBehaviorWithCallback(request *ModifyUserBusinessBehaviorRequest, callback func(response *ModifyUserBusinessBehaviorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyUserBusinessBehaviorResponse - var err error - defer close(result) - response, err = client.ModifyUserBusinessBehavior(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyUserBusinessBehaviorRequest is the request struct for api ModifyUserBusinessBehavior -type ModifyUserBusinessBehaviorRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StatusValue string `position:"Query" name:"statusValue"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - StatusKey string `position:"Query" name:"statusKey"` -} - -// ModifyUserBusinessBehaviorResponse is the response struct for api ModifyUserBusinessBehavior -type ModifyUserBusinessBehaviorResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyUserBusinessBehaviorRequest creates a request to invoke ModifyUserBusinessBehavior API -func CreateModifyUserBusinessBehaviorRequest() (request *ModifyUserBusinessBehaviorRequest) { - request = &ModifyUserBusinessBehaviorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyUserBusinessBehavior", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyUserBusinessBehaviorResponse creates a response to parse from ModifyUserBusinessBehavior response -func CreateModifyUserBusinessBehaviorResponse() (response *ModifyUserBusinessBehaviorResponse) { - response = &ModifyUserBusinessBehaviorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go deleted file mode 100644 index 9794ea1e3a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyVRouterAttribute invokes the ecs.ModifyVRouterAttribute API synchronously -func (client *Client) ModifyVRouterAttribute(request *ModifyVRouterAttributeRequest) (response *ModifyVRouterAttributeResponse, err error) { - response = CreateModifyVRouterAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyVRouterAttributeWithChan invokes the ecs.ModifyVRouterAttribute API asynchronously -func (client *Client) ModifyVRouterAttributeWithChan(request *ModifyVRouterAttributeRequest) (<-chan *ModifyVRouterAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyVRouterAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyVRouterAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyVRouterAttributeWithCallback invokes the ecs.ModifyVRouterAttribute API asynchronously -func (client *Client) ModifyVRouterAttributeWithCallback(request *ModifyVRouterAttributeRequest, callback func(response *ModifyVRouterAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyVRouterAttributeResponse - var err error - defer close(result) - response, err = client.ModifyVRouterAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyVRouterAttributeRequest is the request struct for api ModifyVRouterAttribute -type ModifyVRouterAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - VRouterId string `position:"Query" name:"VRouterId"` - Description string `position:"Query" name:"Description"` - VRouterName string `position:"Query" name:"VRouterName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ModifyVRouterAttributeResponse is the response struct for api ModifyVRouterAttribute -type ModifyVRouterAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyVRouterAttributeRequest creates a request to invoke ModifyVRouterAttribute API -func CreateModifyVRouterAttributeRequest() (request *ModifyVRouterAttributeRequest) { - request = &ModifyVRouterAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVRouterAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyVRouterAttributeResponse creates a response to parse from ModifyVRouterAttribute response -func CreateModifyVRouterAttributeResponse() (response *ModifyVRouterAttributeResponse) { - response = &ModifyVRouterAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go deleted file mode 100644 index c26ae8a314..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyVSwitchAttribute invokes the ecs.ModifyVSwitchAttribute API synchronously -func (client *Client) ModifyVSwitchAttribute(request *ModifyVSwitchAttributeRequest) (response *ModifyVSwitchAttributeResponse, err error) { - response = CreateModifyVSwitchAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyVSwitchAttributeWithChan invokes the ecs.ModifyVSwitchAttribute API asynchronously -func (client *Client) ModifyVSwitchAttributeWithChan(request *ModifyVSwitchAttributeRequest) (<-chan *ModifyVSwitchAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyVSwitchAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyVSwitchAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyVSwitchAttributeWithCallback invokes the ecs.ModifyVSwitchAttribute API asynchronously -func (client *Client) ModifyVSwitchAttributeWithCallback(request *ModifyVSwitchAttributeRequest, callback func(response *ModifyVSwitchAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyVSwitchAttributeResponse - var err error - defer close(result) - response, err = client.ModifyVSwitchAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyVSwitchAttributeRequest is the request struct for api ModifyVSwitchAttribute -type ModifyVSwitchAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - VSwitchName string `position:"Query" name:"VSwitchName"` -} - -// ModifyVSwitchAttributeResponse is the response struct for api ModifyVSwitchAttribute -type ModifyVSwitchAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyVSwitchAttributeRequest creates a request to invoke ModifyVSwitchAttribute API -func CreateModifyVSwitchAttributeRequest() (request *ModifyVSwitchAttributeRequest) { - request = &ModifyVSwitchAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVSwitchAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyVSwitchAttributeResponse creates a response to parse from ModifyVSwitchAttribute response -func CreateModifyVSwitchAttributeResponse() (response *ModifyVSwitchAttributeResponse) { - response = &ModifyVSwitchAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go deleted file mode 100644 index 9353b62b8e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go +++ /dev/null @@ -1,112 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyVirtualBorderRouterAttribute invokes the ecs.ModifyVirtualBorderRouterAttribute API synchronously -func (client *Client) ModifyVirtualBorderRouterAttribute(request *ModifyVirtualBorderRouterAttributeRequest) (response *ModifyVirtualBorderRouterAttributeResponse, err error) { - response = CreateModifyVirtualBorderRouterAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyVirtualBorderRouterAttributeWithChan invokes the ecs.ModifyVirtualBorderRouterAttribute API asynchronously -func (client *Client) ModifyVirtualBorderRouterAttributeWithChan(request *ModifyVirtualBorderRouterAttributeRequest) (<-chan *ModifyVirtualBorderRouterAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyVirtualBorderRouterAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyVirtualBorderRouterAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyVirtualBorderRouterAttributeWithCallback invokes the ecs.ModifyVirtualBorderRouterAttribute API asynchronously -func (client *Client) ModifyVirtualBorderRouterAttributeWithCallback(request *ModifyVirtualBorderRouterAttributeRequest, callback func(response *ModifyVirtualBorderRouterAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyVirtualBorderRouterAttributeResponse - var err error - defer close(result) - response, err = client.ModifyVirtualBorderRouterAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyVirtualBorderRouterAttributeRequest is the request struct for api ModifyVirtualBorderRouterAttribute -type ModifyVirtualBorderRouterAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CircuitCode string `position:"Query" name:"CircuitCode"` - VlanId requests.Integer `position:"Query" name:"VlanId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - VbrId string `position:"Query" name:"VbrId"` - PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` - PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` - LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` -} - -// ModifyVirtualBorderRouterAttributeResponse is the response struct for api ModifyVirtualBorderRouterAttribute -type ModifyVirtualBorderRouterAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyVirtualBorderRouterAttributeRequest creates a request to invoke ModifyVirtualBorderRouterAttribute API -func CreateModifyVirtualBorderRouterAttributeRequest() (request *ModifyVirtualBorderRouterAttributeRequest) { - request = &ModifyVirtualBorderRouterAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyVirtualBorderRouterAttributeResponse creates a response to parse from ModifyVirtualBorderRouterAttribute response -func CreateModifyVirtualBorderRouterAttributeResponse() (response *ModifyVirtualBorderRouterAttributeResponse) { - response = &ModifyVirtualBorderRouterAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go deleted file mode 100644 index 728250cbca..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyVpcAttribute invokes the ecs.ModifyVpcAttribute API synchronously -func (client *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (response *ModifyVpcAttributeResponse, err error) { - response = CreateModifyVpcAttributeResponse() - err = client.DoAction(request, response) - return -} - -// ModifyVpcAttributeWithChan invokes the ecs.ModifyVpcAttribute API asynchronously -func (client *Client) ModifyVpcAttributeWithChan(request *ModifyVpcAttributeRequest) (<-chan *ModifyVpcAttributeResponse, <-chan error) { - responseChan := make(chan *ModifyVpcAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyVpcAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyVpcAttributeWithCallback invokes the ecs.ModifyVpcAttribute API asynchronously -func (client *Client) ModifyVpcAttributeWithCallback(request *ModifyVpcAttributeRequest, callback func(response *ModifyVpcAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyVpcAttributeResponse - var err error - defer close(result) - response, err = client.ModifyVpcAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyVpcAttributeRequest is the request struct for api ModifyVpcAttribute -type ModifyVpcAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - VpcName string `position:"Query" name:"VpcName"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VpcId string `position:"Query" name:"VpcId"` - CidrBlock string `position:"Query" name:"CidrBlock"` -} - -// ModifyVpcAttributeResponse is the response struct for api ModifyVpcAttribute -type ModifyVpcAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyVpcAttributeRequest creates a request to invoke ModifyVpcAttribute API -func CreateModifyVpcAttributeRequest() (request *ModifyVpcAttributeRequest) { - request = &ModifyVpcAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVpcAttribute", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyVpcAttributeResponse creates a response to parse from ModifyVpcAttribute response -func CreateModifyVpcAttributeResponse() (response *ModifyVpcAttributeResponse) { - response = &ModifyVpcAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_elasticity_assurance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_elasticity_assurance.go deleted file mode 100644 index 0e277cab29..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_elasticity_assurance.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// PurchaseElasticityAssurance invokes the ecs.PurchaseElasticityAssurance API synchronously -func (client *Client) PurchaseElasticityAssurance(request *PurchaseElasticityAssuranceRequest) (response *PurchaseElasticityAssuranceResponse, err error) { - response = CreatePurchaseElasticityAssuranceResponse() - err = client.DoAction(request, response) - return -} - -// PurchaseElasticityAssuranceWithChan invokes the ecs.PurchaseElasticityAssurance API asynchronously -func (client *Client) PurchaseElasticityAssuranceWithChan(request *PurchaseElasticityAssuranceRequest) (<-chan *PurchaseElasticityAssuranceResponse, <-chan error) { - responseChan := make(chan *PurchaseElasticityAssuranceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.PurchaseElasticityAssurance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// PurchaseElasticityAssuranceWithCallback invokes the ecs.PurchaseElasticityAssurance API asynchronously -func (client *Client) PurchaseElasticityAssuranceWithCallback(request *PurchaseElasticityAssuranceRequest, callback func(response *PurchaseElasticityAssuranceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *PurchaseElasticityAssuranceResponse - var err error - defer close(result) - response, err = client.PurchaseElasticityAssurance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// PurchaseElasticityAssuranceRequest is the request struct for api PurchaseElasticityAssurance -type PurchaseElasticityAssuranceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - StartTime string `position:"Query" name:"StartTime"` - PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - PackageType string `position:"Query" name:"PackageType"` -} - -// PurchaseElasticityAssuranceResponse is the response struct for api PurchaseElasticityAssurance -type PurchaseElasticityAssuranceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreatePurchaseElasticityAssuranceRequest creates a request to invoke PurchaseElasticityAssurance API -func CreatePurchaseElasticityAssuranceRequest() (request *PurchaseElasticityAssuranceRequest) { - request = &PurchaseElasticityAssuranceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "PurchaseElasticityAssurance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreatePurchaseElasticityAssuranceResponse creates a response to parse from PurchaseElasticityAssurance response -func CreatePurchaseElasticityAssuranceResponse() (response *PurchaseElasticityAssuranceResponse) { - response = &PurchaseElasticityAssuranceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go deleted file mode 100644 index 09b8833d8b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go +++ /dev/null @@ -1,133 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// PurchaseReservedInstancesOffering invokes the ecs.PurchaseReservedInstancesOffering API synchronously -func (client *Client) PurchaseReservedInstancesOffering(request *PurchaseReservedInstancesOfferingRequest) (response *PurchaseReservedInstancesOfferingResponse, err error) { - response = CreatePurchaseReservedInstancesOfferingResponse() - err = client.DoAction(request, response) - return -} - -// PurchaseReservedInstancesOfferingWithChan invokes the ecs.PurchaseReservedInstancesOffering API asynchronously -func (client *Client) PurchaseReservedInstancesOfferingWithChan(request *PurchaseReservedInstancesOfferingRequest) (<-chan *PurchaseReservedInstancesOfferingResponse, <-chan error) { - responseChan := make(chan *PurchaseReservedInstancesOfferingResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.PurchaseReservedInstancesOffering(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// PurchaseReservedInstancesOfferingWithCallback invokes the ecs.PurchaseReservedInstancesOffering API asynchronously -func (client *Client) PurchaseReservedInstancesOfferingWithCallback(request *PurchaseReservedInstancesOfferingRequest, callback func(response *PurchaseReservedInstancesOfferingResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *PurchaseReservedInstancesOfferingResponse - var err error - defer close(result) - response, err = client.PurchaseReservedInstancesOffering(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// PurchaseReservedInstancesOfferingRequest is the request struct for api PurchaseReservedInstancesOffering -type PurchaseReservedInstancesOfferingRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - StartTime string `position:"Query" name:"StartTime"` - Platform string `position:"Query" name:"Platform"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Scope string `position:"Query" name:"Scope"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]PurchaseReservedInstancesOfferingTag `position:"Query" name:"Tag" type:"Repeated"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - Period requests.Integer `position:"Query" name:"Period"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions PurchaseReservedInstancesOfferingPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - ZoneId string `position:"Query" name:"ZoneId"` - ReservedInstanceName string `position:"Query" name:"ReservedInstanceName"` - InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` -} - -// PurchaseReservedInstancesOfferingTag is a repeated param struct in PurchaseReservedInstancesOfferingRequest -type PurchaseReservedInstancesOfferingTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// PurchaseReservedInstancesOfferingPromotionOptions is a repeated param struct in PurchaseReservedInstancesOfferingRequest -type PurchaseReservedInstancesOfferingPromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// PurchaseReservedInstancesOfferingResponse is the response struct for api PurchaseReservedInstancesOffering -type PurchaseReservedInstancesOfferingResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` - ReservedInstanceIdSets ReservedInstanceIdSetsInPurchaseReservedInstancesOffering `json:"ReservedInstanceIdSets" xml:"ReservedInstanceIdSets"` -} - -// CreatePurchaseReservedInstancesOfferingRequest creates a request to invoke PurchaseReservedInstancesOffering API -func CreatePurchaseReservedInstancesOfferingRequest() (request *PurchaseReservedInstancesOfferingRequest) { - request = &PurchaseReservedInstancesOfferingRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "PurchaseReservedInstancesOffering", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreatePurchaseReservedInstancesOfferingResponse creates a response to parse from PurchaseReservedInstancesOffering response -func CreatePurchaseReservedInstancesOfferingResponse() (response *PurchaseReservedInstancesOfferingResponse) { - response = &PurchaseReservedInstancesOfferingResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_storage_capacity_unit.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_storage_capacity_unit.go deleted file mode 100644 index 544679492a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_storage_capacity_unit.go +++ /dev/null @@ -1,128 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// PurchaseStorageCapacityUnit invokes the ecs.PurchaseStorageCapacityUnit API synchronously -func (client *Client) PurchaseStorageCapacityUnit(request *PurchaseStorageCapacityUnitRequest) (response *PurchaseStorageCapacityUnitResponse, err error) { - response = CreatePurchaseStorageCapacityUnitResponse() - err = client.DoAction(request, response) - return -} - -// PurchaseStorageCapacityUnitWithChan invokes the ecs.PurchaseStorageCapacityUnit API asynchronously -func (client *Client) PurchaseStorageCapacityUnitWithChan(request *PurchaseStorageCapacityUnitRequest) (<-chan *PurchaseStorageCapacityUnitResponse, <-chan error) { - responseChan := make(chan *PurchaseStorageCapacityUnitResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.PurchaseStorageCapacityUnit(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// PurchaseStorageCapacityUnitWithCallback invokes the ecs.PurchaseStorageCapacityUnit API asynchronously -func (client *Client) PurchaseStorageCapacityUnitWithCallback(request *PurchaseStorageCapacityUnitRequest, callback func(response *PurchaseStorageCapacityUnitResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *PurchaseStorageCapacityUnitResponse - var err error - defer close(result) - response, err = client.PurchaseStorageCapacityUnit(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// PurchaseStorageCapacityUnitRequest is the request struct for api PurchaseStorageCapacityUnit -type PurchaseStorageCapacityUnitRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - StartTime string `position:"Query" name:"StartTime"` - Capacity requests.Integer `position:"Query" name:"Capacity"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]PurchaseStorageCapacityUnitTag `position:"Query" name:"Tag" type:"Repeated"` - Period requests.Integer `position:"Query" name:"Period"` - Amount requests.Integer `position:"Query" name:"Amount"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - FromApp string `position:"Query" name:"FromApp"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions PurchaseStorageCapacityUnitPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - Name string `position:"Query" name:"Name"` -} - -// PurchaseStorageCapacityUnitTag is a repeated param struct in PurchaseStorageCapacityUnitRequest -type PurchaseStorageCapacityUnitTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// PurchaseStorageCapacityUnitPromotionOptions is a repeated param struct in PurchaseStorageCapacityUnitRequest -type PurchaseStorageCapacityUnitPromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// PurchaseStorageCapacityUnitResponse is the response struct for api PurchaseStorageCapacityUnit -type PurchaseStorageCapacityUnitResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` - StorageCapacityUnitIds StorageCapacityUnitIds `json:"StorageCapacityUnitIds" xml:"StorageCapacityUnitIds"` -} - -// CreatePurchaseStorageCapacityUnitRequest creates a request to invoke PurchaseStorageCapacityUnit API -func CreatePurchaseStorageCapacityUnitRequest() (request *PurchaseStorageCapacityUnitRequest) { - request = &PurchaseStorageCapacityUnitRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "PurchaseStorageCapacityUnit", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreatePurchaseStorageCapacityUnitResponse creates a response to parse from PurchaseStorageCapacityUnit response -func CreatePurchaseStorageCapacityUnitResponse() (response *PurchaseStorageCapacityUnitResponse) { - response = &PurchaseStorageCapacityUnitResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go deleted file mode 100644 index dc8290ed7f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReActivateInstances invokes the ecs.ReActivateInstances API synchronously -func (client *Client) ReActivateInstances(request *ReActivateInstancesRequest) (response *ReActivateInstancesResponse, err error) { - response = CreateReActivateInstancesResponse() - err = client.DoAction(request, response) - return -} - -// ReActivateInstancesWithChan invokes the ecs.ReActivateInstances API asynchronously -func (client *Client) ReActivateInstancesWithChan(request *ReActivateInstancesRequest) (<-chan *ReActivateInstancesResponse, <-chan error) { - responseChan := make(chan *ReActivateInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReActivateInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReActivateInstancesWithCallback invokes the ecs.ReActivateInstances API asynchronously -func (client *Client) ReActivateInstancesWithCallback(request *ReActivateInstancesRequest, callback func(response *ReActivateInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReActivateInstancesResponse - var err error - defer close(result) - response, err = client.ReActivateInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReActivateInstancesRequest is the request struct for api ReActivateInstances -type ReActivateInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// ReActivateInstancesResponse is the response struct for api ReActivateInstances -type ReActivateInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateReActivateInstancesRequest creates a request to invoke ReActivateInstances API -func CreateReActivateInstancesRequest() (request *ReActivateInstancesRequest) { - request = &ReActivateInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReActivateInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReActivateInstancesResponse creates a response to parse from ReActivateInstances response -func CreateReActivateInstancesResponse() (response *ReActivateInstancesResponse) { - response = &ReActivateInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go deleted file mode 100644 index 9dfe5d26e8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReInitDisk invokes the ecs.ReInitDisk API synchronously -func (client *Client) ReInitDisk(request *ReInitDiskRequest) (response *ReInitDiskResponse, err error) { - response = CreateReInitDiskResponse() - err = client.DoAction(request, response) - return -} - -// ReInitDiskWithChan invokes the ecs.ReInitDisk API asynchronously -func (client *Client) ReInitDiskWithChan(request *ReInitDiskRequest) (<-chan *ReInitDiskResponse, <-chan error) { - responseChan := make(chan *ReInitDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReInitDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReInitDiskWithCallback invokes the ecs.ReInitDisk API asynchronously -func (client *Client) ReInitDiskWithCallback(request *ReInitDiskRequest, callback func(response *ReInitDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReInitDiskResponse - var err error - defer close(result) - response, err = client.ReInitDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReInitDiskRequest is the request struct for api ReInitDisk -type ReInitDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoStartInstance requests.Boolean `position:"Query" name:"AutoStartInstance"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - KeyPairName string `position:"Query" name:"KeyPairName"` - Password string `position:"Query" name:"Password"` - LoginAsNonRoot requests.Boolean `position:"Query" name:"LoginAsNonRoot"` - DiskId string `position:"Query" name:"DiskId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ReInitDiskResponse is the response struct for api ReInitDisk -type ReInitDiskResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateReInitDiskRequest creates a request to invoke ReInitDisk API -func CreateReInitDiskRequest() (request *ReInitDiskRequest) { - request = &ReInitDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReInitDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReInitDiskResponse creates a response to parse from ReInitDisk response -func CreateReInitDiskResponse() (response *ReInitDiskResponse) { - response = &ReInitDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go deleted file mode 100644 index ea6c5e1275..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RebootInstance invokes the ecs.RebootInstance API synchronously -func (client *Client) RebootInstance(request *RebootInstanceRequest) (response *RebootInstanceResponse, err error) { - response = CreateRebootInstanceResponse() - err = client.DoAction(request, response) - return -} - -// RebootInstanceWithChan invokes the ecs.RebootInstance API asynchronously -func (client *Client) RebootInstanceWithChan(request *RebootInstanceRequest) (<-chan *RebootInstanceResponse, <-chan error) { - responseChan := make(chan *RebootInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RebootInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RebootInstanceWithCallback invokes the ecs.RebootInstance API asynchronously -func (client *Client) RebootInstanceWithCallback(request *RebootInstanceRequest, callback func(response *RebootInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RebootInstanceResponse - var err error - defer close(result) - response, err = client.RebootInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RebootInstanceRequest is the request struct for api RebootInstance -type RebootInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ForceStop requests.Boolean `position:"Query" name:"ForceStop"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// RebootInstanceResponse is the response struct for api RebootInstance -type RebootInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRebootInstanceRequest creates a request to invoke RebootInstance API -func CreateRebootInstanceRequest() (request *RebootInstanceRequest) { - request = &RebootInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RebootInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRebootInstanceResponse creates a response to parse from RebootInstance response -func CreateRebootInstanceResponse() (response *RebootInstanceResponse) { - response = &RebootInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instances.go deleted file mode 100644 index 4981d55f95..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instances.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RebootInstances invokes the ecs.RebootInstances API synchronously -func (client *Client) RebootInstances(request *RebootInstancesRequest) (response *RebootInstancesResponse, err error) { - response = CreateRebootInstancesResponse() - err = client.DoAction(request, response) - return -} - -// RebootInstancesWithChan invokes the ecs.RebootInstances API asynchronously -func (client *Client) RebootInstancesWithChan(request *RebootInstancesRequest) (<-chan *RebootInstancesResponse, <-chan error) { - responseChan := make(chan *RebootInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RebootInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RebootInstancesWithCallback invokes the ecs.RebootInstances API asynchronously -func (client *Client) RebootInstancesWithCallback(request *RebootInstancesRequest, callback func(response *RebootInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RebootInstancesResponse - var err error - defer close(result) - response, err = client.RebootInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RebootInstancesRequest is the request struct for api RebootInstances -type RebootInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BatchOptimization string `position:"Query" name:"BatchOptimization"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ForceReboot requests.Boolean `position:"Query" name:"ForceReboot"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` -} - -// RebootInstancesResponse is the response struct for api RebootInstances -type RebootInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceResponses InstanceResponsesInRebootInstances `json:"InstanceResponses" xml:"InstanceResponses"` -} - -// CreateRebootInstancesRequest creates a request to invoke RebootInstances API -func CreateRebootInstancesRequest() (request *RebootInstancesRequest) { - request = &RebootInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RebootInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRebootInstancesResponse creates a response to parse from RebootInstances response -func CreateRebootInstancesResponse() (response *RebootInstancesResponse) { - response = &RebootInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go deleted file mode 100644 index 117ae77b9f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RecoverVirtualBorderRouter invokes the ecs.RecoverVirtualBorderRouter API synchronously -func (client *Client) RecoverVirtualBorderRouter(request *RecoverVirtualBorderRouterRequest) (response *RecoverVirtualBorderRouterResponse, err error) { - response = CreateRecoverVirtualBorderRouterResponse() - err = client.DoAction(request, response) - return -} - -// RecoverVirtualBorderRouterWithChan invokes the ecs.RecoverVirtualBorderRouter API asynchronously -func (client *Client) RecoverVirtualBorderRouterWithChan(request *RecoverVirtualBorderRouterRequest) (<-chan *RecoverVirtualBorderRouterResponse, <-chan error) { - responseChan := make(chan *RecoverVirtualBorderRouterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RecoverVirtualBorderRouter(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RecoverVirtualBorderRouterWithCallback invokes the ecs.RecoverVirtualBorderRouter API asynchronously -func (client *Client) RecoverVirtualBorderRouterWithCallback(request *RecoverVirtualBorderRouterRequest, callback func(response *RecoverVirtualBorderRouterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RecoverVirtualBorderRouterResponse - var err error - defer close(result) - response, err = client.RecoverVirtualBorderRouter(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RecoverVirtualBorderRouterRequest is the request struct for api RecoverVirtualBorderRouter -type RecoverVirtualBorderRouterRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - VbrId string `position:"Query" name:"VbrId"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// RecoverVirtualBorderRouterResponse is the response struct for api RecoverVirtualBorderRouter -type RecoverVirtualBorderRouterResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRecoverVirtualBorderRouterRequest creates a request to invoke RecoverVirtualBorderRouter API -func CreateRecoverVirtualBorderRouterRequest() (request *RecoverVirtualBorderRouterRequest) { - request = &RecoverVirtualBorderRouterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RecoverVirtualBorderRouter", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRecoverVirtualBorderRouterResponse creates a response to parse from RecoverVirtualBorderRouter response -func CreateRecoverVirtualBorderRouterResponse() (response *RecoverVirtualBorderRouterResponse) { - response = &RecoverVirtualBorderRouterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_dedicated_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_dedicated_host.go deleted file mode 100644 index d2b320b5fe..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_dedicated_host.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RedeployDedicatedHost invokes the ecs.RedeployDedicatedHost API synchronously -func (client *Client) RedeployDedicatedHost(request *RedeployDedicatedHostRequest) (response *RedeployDedicatedHostResponse, err error) { - response = CreateRedeployDedicatedHostResponse() - err = client.DoAction(request, response) - return -} - -// RedeployDedicatedHostWithChan invokes the ecs.RedeployDedicatedHost API asynchronously -func (client *Client) RedeployDedicatedHostWithChan(request *RedeployDedicatedHostRequest) (<-chan *RedeployDedicatedHostResponse, <-chan error) { - responseChan := make(chan *RedeployDedicatedHostResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RedeployDedicatedHost(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RedeployDedicatedHostWithCallback invokes the ecs.RedeployDedicatedHost API asynchronously -func (client *Client) RedeployDedicatedHostWithCallback(request *RedeployDedicatedHostRequest, callback func(response *RedeployDedicatedHostResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RedeployDedicatedHostResponse - var err error - defer close(result) - response, err = client.RedeployDedicatedHost(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RedeployDedicatedHostRequest is the request struct for api RedeployDedicatedHost -type RedeployDedicatedHostRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - MigrationType string `position:"Query" name:"MigrationType"` -} - -// RedeployDedicatedHostResponse is the response struct for api RedeployDedicatedHost -type RedeployDedicatedHostResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRedeployDedicatedHostRequest creates a request to invoke RedeployDedicatedHost API -func CreateRedeployDedicatedHostRequest() (request *RedeployDedicatedHostRequest) { - request = &RedeployDedicatedHostRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RedeployDedicatedHost", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRedeployDedicatedHostResponse creates a response to parse from RedeployDedicatedHost response -func CreateRedeployDedicatedHostResponse() (response *RedeployDedicatedHostResponse) { - response = &RedeployDedicatedHostResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go deleted file mode 100644 index f3715792f7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RedeployInstance invokes the ecs.RedeployInstance API synchronously -func (client *Client) RedeployInstance(request *RedeployInstanceRequest) (response *RedeployInstanceResponse, err error) { - response = CreateRedeployInstanceResponse() - err = client.DoAction(request, response) - return -} - -// RedeployInstanceWithChan invokes the ecs.RedeployInstance API asynchronously -func (client *Client) RedeployInstanceWithChan(request *RedeployInstanceRequest) (<-chan *RedeployInstanceResponse, <-chan error) { - responseChan := make(chan *RedeployInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RedeployInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RedeployInstanceWithCallback invokes the ecs.RedeployInstance API asynchronously -func (client *Client) RedeployInstanceWithCallback(request *RedeployInstanceRequest, callback func(response *RedeployInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RedeployInstanceResponse - var err error - defer close(result) - response, err = client.RedeployInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RedeployInstanceRequest is the request struct for api RedeployInstance -type RedeployInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ForceStop requests.Boolean `position:"Query" name:"ForceStop"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// RedeployInstanceResponse is the response struct for api RedeployInstance -type RedeployInstanceResponse struct { - *responses.BaseResponse - TaskId string `json:"TaskId" xml:"TaskId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRedeployInstanceRequest creates a request to invoke RedeployInstance API -func CreateRedeployInstanceRequest() (request *RedeployInstanceRequest) { - request = &RedeployInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RedeployInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRedeployInstanceResponse creates a response to parse from RedeployInstance response -func CreateRedeployInstanceResponse() (response *RedeployInstanceResponse) { - response = &RedeployInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_capacity_reservation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_capacity_reservation.go deleted file mode 100644 index ad0a448683..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_capacity_reservation.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReleaseCapacityReservation invokes the ecs.ReleaseCapacityReservation API synchronously -func (client *Client) ReleaseCapacityReservation(request *ReleaseCapacityReservationRequest) (response *ReleaseCapacityReservationResponse, err error) { - response = CreateReleaseCapacityReservationResponse() - err = client.DoAction(request, response) - return -} - -// ReleaseCapacityReservationWithChan invokes the ecs.ReleaseCapacityReservation API asynchronously -func (client *Client) ReleaseCapacityReservationWithChan(request *ReleaseCapacityReservationRequest) (<-chan *ReleaseCapacityReservationResponse, <-chan error) { - responseChan := make(chan *ReleaseCapacityReservationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReleaseCapacityReservation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReleaseCapacityReservationWithCallback invokes the ecs.ReleaseCapacityReservation API asynchronously -func (client *Client) ReleaseCapacityReservationWithCallback(request *ReleaseCapacityReservationRequest, callback func(response *ReleaseCapacityReservationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReleaseCapacityReservationResponse - var err error - defer close(result) - response, err = client.ReleaseCapacityReservation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReleaseCapacityReservationRequest is the request struct for api ReleaseCapacityReservation -type ReleaseCapacityReservationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ReleaseCapacityReservationResponse is the response struct for api ReleaseCapacityReservation -type ReleaseCapacityReservationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateReleaseCapacityReservationRequest creates a request to invoke ReleaseCapacityReservation API -func CreateReleaseCapacityReservationRequest() (request *ReleaseCapacityReservationRequest) { - request = &ReleaseCapacityReservationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseCapacityReservation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReleaseCapacityReservationResponse creates a response to parse from ReleaseCapacityReservation response -func CreateReleaseCapacityReservationResponse() (response *ReleaseCapacityReservationResponse) { - response = &ReleaseCapacityReservationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go deleted file mode 100644 index a6d44a3d7c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReleaseDedicatedHost invokes the ecs.ReleaseDedicatedHost API synchronously -func (client *Client) ReleaseDedicatedHost(request *ReleaseDedicatedHostRequest) (response *ReleaseDedicatedHostResponse, err error) { - response = CreateReleaseDedicatedHostResponse() - err = client.DoAction(request, response) - return -} - -// ReleaseDedicatedHostWithChan invokes the ecs.ReleaseDedicatedHost API asynchronously -func (client *Client) ReleaseDedicatedHostWithChan(request *ReleaseDedicatedHostRequest) (<-chan *ReleaseDedicatedHostResponse, <-chan error) { - responseChan := make(chan *ReleaseDedicatedHostResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReleaseDedicatedHost(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReleaseDedicatedHostWithCallback invokes the ecs.ReleaseDedicatedHost API asynchronously -func (client *Client) ReleaseDedicatedHostWithCallback(request *ReleaseDedicatedHostRequest, callback func(response *ReleaseDedicatedHostResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReleaseDedicatedHostResponse - var err error - defer close(result) - response, err = client.ReleaseDedicatedHost(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReleaseDedicatedHostRequest is the request struct for api ReleaseDedicatedHost -type ReleaseDedicatedHostRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ReleaseDedicatedHostResponse is the response struct for api ReleaseDedicatedHost -type ReleaseDedicatedHostResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateReleaseDedicatedHostRequest creates a request to invoke ReleaseDedicatedHost API -func CreateReleaseDedicatedHostRequest() (request *ReleaseDedicatedHostRequest) { - request = &ReleaseDedicatedHostRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseDedicatedHost", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReleaseDedicatedHostResponse creates a response to parse from ReleaseDedicatedHost response -func CreateReleaseDedicatedHostResponse() (response *ReleaseDedicatedHostResponse) { - response = &ReleaseDedicatedHostResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go deleted file mode 100644 index e1d2357c28..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go +++ /dev/null @@ -1,103 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReleaseEipAddress invokes the ecs.ReleaseEipAddress API synchronously -func (client *Client) ReleaseEipAddress(request *ReleaseEipAddressRequest) (response *ReleaseEipAddressResponse, err error) { - response = CreateReleaseEipAddressResponse() - err = client.DoAction(request, response) - return -} - -// ReleaseEipAddressWithChan invokes the ecs.ReleaseEipAddress API asynchronously -func (client *Client) ReleaseEipAddressWithChan(request *ReleaseEipAddressRequest) (<-chan *ReleaseEipAddressResponse, <-chan error) { - responseChan := make(chan *ReleaseEipAddressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReleaseEipAddress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReleaseEipAddressWithCallback invokes the ecs.ReleaseEipAddress API asynchronously -func (client *Client) ReleaseEipAddressWithCallback(request *ReleaseEipAddressRequest, callback func(response *ReleaseEipAddressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReleaseEipAddressResponse - var err error - defer close(result) - response, err = client.ReleaseEipAddress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReleaseEipAddressRequest is the request struct for api ReleaseEipAddress -type ReleaseEipAddressRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AllocationId string `position:"Query" name:"AllocationId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ReleaseEipAddressResponse is the response struct for api ReleaseEipAddress -type ReleaseEipAddressResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateReleaseEipAddressRequest creates a request to invoke ReleaseEipAddress API -func CreateReleaseEipAddressRequest() (request *ReleaseEipAddressRequest) { - request = &ReleaseEipAddressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseEipAddress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReleaseEipAddressResponse creates a response to parse from ReleaseEipAddress response -func CreateReleaseEipAddressResponse() (response *ReleaseEipAddressResponse) { - response = &ReleaseEipAddressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go deleted file mode 100644 index 590c471a46..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go +++ /dev/null @@ -1,102 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReleasePublicIpAddress invokes the ecs.ReleasePublicIpAddress API synchronously -func (client *Client) ReleasePublicIpAddress(request *ReleasePublicIpAddressRequest) (response *ReleasePublicIpAddressResponse, err error) { - response = CreateReleasePublicIpAddressResponse() - err = client.DoAction(request, response) - return -} - -// ReleasePublicIpAddressWithChan invokes the ecs.ReleasePublicIpAddress API asynchronously -func (client *Client) ReleasePublicIpAddressWithChan(request *ReleasePublicIpAddressRequest) (<-chan *ReleasePublicIpAddressResponse, <-chan error) { - responseChan := make(chan *ReleasePublicIpAddressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReleasePublicIpAddress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReleasePublicIpAddressWithCallback invokes the ecs.ReleasePublicIpAddress API asynchronously -func (client *Client) ReleasePublicIpAddressWithCallback(request *ReleasePublicIpAddressRequest, callback func(response *ReleasePublicIpAddressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReleasePublicIpAddressResponse - var err error - defer close(result) - response, err = client.ReleasePublicIpAddress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReleasePublicIpAddressRequest is the request struct for api ReleasePublicIpAddress -type ReleasePublicIpAddressRequest struct { - *requests.RpcRequest - DryRun requests.Boolean `position:"Query" name:"DryRun"` - PublicIpAddress string `position:"Query" name:"PublicIpAddress"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// ReleasePublicIpAddressResponse is the response struct for api ReleasePublicIpAddress -type ReleasePublicIpAddressResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RemainTimes string `json:"RemainTimes" xml:"RemainTimes"` -} - -// CreateReleasePublicIpAddressRequest creates a request to invoke ReleasePublicIpAddress API -func CreateReleasePublicIpAddressRequest() (request *ReleasePublicIpAddressRequest) { - request = &ReleasePublicIpAddressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReleasePublicIpAddress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReleasePublicIpAddressResponse creates a response to parse from ReleasePublicIpAddress response -func CreateReleasePublicIpAddressResponse() (response *ReleasePublicIpAddressResponse) { - response = &ReleasePublicIpAddressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go deleted file mode 100644 index c2ceefd3e0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RemoveBandwidthPackageIps invokes the ecs.RemoveBandwidthPackageIps API synchronously -func (client *Client) RemoveBandwidthPackageIps(request *RemoveBandwidthPackageIpsRequest) (response *RemoveBandwidthPackageIpsResponse, err error) { - response = CreateRemoveBandwidthPackageIpsResponse() - err = client.DoAction(request, response) - return -} - -// RemoveBandwidthPackageIpsWithChan invokes the ecs.RemoveBandwidthPackageIps API asynchronously -func (client *Client) RemoveBandwidthPackageIpsWithChan(request *RemoveBandwidthPackageIpsRequest) (<-chan *RemoveBandwidthPackageIpsResponse, <-chan error) { - responseChan := make(chan *RemoveBandwidthPackageIpsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RemoveBandwidthPackageIps(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RemoveBandwidthPackageIpsWithCallback invokes the ecs.RemoveBandwidthPackageIps API asynchronously -func (client *Client) RemoveBandwidthPackageIpsWithCallback(request *RemoveBandwidthPackageIpsRequest, callback func(response *RemoveBandwidthPackageIpsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RemoveBandwidthPackageIpsResponse - var err error - defer close(result) - response, err = client.RemoveBandwidthPackageIps(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RemoveBandwidthPackageIpsRequest is the request struct for api RemoveBandwidthPackageIps -type RemoveBandwidthPackageIpsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - RemovedIpAddresses *[]string `position:"Query" name:"RemovedIpAddresses" type:"Repeated"` - BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// RemoveBandwidthPackageIpsResponse is the response struct for api RemoveBandwidthPackageIps -type RemoveBandwidthPackageIpsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRemoveBandwidthPackageIpsRequest creates a request to invoke RemoveBandwidthPackageIps API -func CreateRemoveBandwidthPackageIpsRequest() (request *RemoveBandwidthPackageIpsRequest) { - request = &RemoveBandwidthPackageIpsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RemoveBandwidthPackageIps", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRemoveBandwidthPackageIpsResponse creates a response to parse from RemoveBandwidthPackageIps response -func CreateRemoveBandwidthPackageIpsResponse() (response *RemoveBandwidthPackageIpsResponse) { - response = &RemoveBandwidthPackageIpsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go deleted file mode 100644 index d36f3a707b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RemoveTags invokes the ecs.RemoveTags API synchronously -func (client *Client) RemoveTags(request *RemoveTagsRequest) (response *RemoveTagsResponse, err error) { - response = CreateRemoveTagsResponse() - err = client.DoAction(request, response) - return -} - -// RemoveTagsWithChan invokes the ecs.RemoveTags API asynchronously -func (client *Client) RemoveTagsWithChan(request *RemoveTagsRequest) (<-chan *RemoveTagsResponse, <-chan error) { - responseChan := make(chan *RemoveTagsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RemoveTags(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RemoveTagsWithCallback invokes the ecs.RemoveTags API asynchronously -func (client *Client) RemoveTagsWithCallback(request *RemoveTagsRequest, callback func(response *RemoveTagsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RemoveTagsResponse - var err error - defer close(result) - response, err = client.RemoveTags(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RemoveTagsRequest is the request struct for api RemoveTags -type RemoveTagsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Tag *[]RemoveTagsTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId string `position:"Query" name:"ResourceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// RemoveTagsTag is a repeated param struct in RemoveTagsRequest -type RemoveTagsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// RemoveTagsResponse is the response struct for api RemoveTags -type RemoveTagsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRemoveTagsRequest creates a request to invoke RemoveTags API -func CreateRemoveTagsRequest() (request *RemoveTagsRequest) { - request = &RemoveTagsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RemoveTags", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRemoveTagsResponse creates a response to parse from RemoveTags response -func CreateRemoveTagsResponse() (response *RemoveTagsResponse) { - response = &RemoveTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go deleted file mode 100644 index 63db4afe72..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RenewDedicatedHosts invokes the ecs.RenewDedicatedHosts API synchronously -func (client *Client) RenewDedicatedHosts(request *RenewDedicatedHostsRequest) (response *RenewDedicatedHostsResponse, err error) { - response = CreateRenewDedicatedHostsResponse() - err = client.DoAction(request, response) - return -} - -// RenewDedicatedHostsWithChan invokes the ecs.RenewDedicatedHosts API asynchronously -func (client *Client) RenewDedicatedHostsWithChan(request *RenewDedicatedHostsRequest) (<-chan *RenewDedicatedHostsResponse, <-chan error) { - responseChan := make(chan *RenewDedicatedHostsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RenewDedicatedHosts(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RenewDedicatedHostsWithCallback invokes the ecs.RenewDedicatedHosts API asynchronously -func (client *Client) RenewDedicatedHostsWithCallback(request *RenewDedicatedHostsRequest, callback func(response *RenewDedicatedHostsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RenewDedicatedHostsResponse - var err error - defer close(result) - response, err = client.RenewDedicatedHosts(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RenewDedicatedHostsRequest is the request struct for api RenewDedicatedHosts -type RenewDedicatedHostsRequest struct { - *requests.RpcRequest - DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Period requests.Integer `position:"Query" name:"Period"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions RenewDedicatedHostsPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` -} - -// RenewDedicatedHostsPromotionOptions is a repeated param struct in RenewDedicatedHostsRequest -type RenewDedicatedHostsPromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// RenewDedicatedHostsResponse is the response struct for api RenewDedicatedHosts -type RenewDedicatedHostsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` -} - -// CreateRenewDedicatedHostsRequest creates a request to invoke RenewDedicatedHosts API -func CreateRenewDedicatedHostsRequest() (request *RenewDedicatedHostsRequest) { - request = &RenewDedicatedHostsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RenewDedicatedHosts", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRenewDedicatedHostsResponse creates a response to parse from RenewDedicatedHosts response -func CreateRenewDedicatedHostsResponse() (response *RenewDedicatedHostsResponse) { - response = &RenewDedicatedHostsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_elasticity_assurances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_elasticity_assurances.go deleted file mode 100644 index 2983e92603..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_elasticity_assurances.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RenewElasticityAssurances invokes the ecs.RenewElasticityAssurances API synchronously -func (client *Client) RenewElasticityAssurances(request *RenewElasticityAssurancesRequest) (response *RenewElasticityAssurancesResponse, err error) { - response = CreateRenewElasticityAssurancesResponse() - err = client.DoAction(request, response) - return -} - -// RenewElasticityAssurancesWithChan invokes the ecs.RenewElasticityAssurances API asynchronously -func (client *Client) RenewElasticityAssurancesWithChan(request *RenewElasticityAssurancesRequest) (<-chan *RenewElasticityAssurancesResponse, <-chan error) { - responseChan := make(chan *RenewElasticityAssurancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RenewElasticityAssurances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RenewElasticityAssurancesWithCallback invokes the ecs.RenewElasticityAssurances API asynchronously -func (client *Client) RenewElasticityAssurancesWithCallback(request *RenewElasticityAssurancesRequest, callback func(response *RenewElasticityAssurancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RenewElasticityAssurancesResponse - var err error - defer close(result) - response, err = client.RenewElasticityAssurances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RenewElasticityAssurancesRequest is the request struct for api RenewElasticityAssurances -type RenewElasticityAssurancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - PrivatePoolOptionsId *[]string `position:"Query" name:"PrivatePoolOptions.Id" type:"Repeated"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - Period requests.Integer `position:"Query" name:"Period"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` -} - -// RenewElasticityAssurancesResponse is the response struct for api RenewElasticityAssurances -type RenewElasticityAssurancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` - PrivatePoolOptionsIdSet PrivatePoolOptionsIdSet `json:"PrivatePoolOptionsIdSet" xml:"PrivatePoolOptionsIdSet"` -} - -// CreateRenewElasticityAssurancesRequest creates a request to invoke RenewElasticityAssurances API -func CreateRenewElasticityAssurancesRequest() (request *RenewElasticityAssurancesRequest) { - request = &RenewElasticityAssurancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RenewElasticityAssurances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRenewElasticityAssurancesResponse creates a response to parse from RenewElasticityAssurances response -func CreateRenewElasticityAssurancesResponse() (response *RenewElasticityAssurancesResponse) { - response = &RenewElasticityAssurancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go deleted file mode 100644 index 095715c26d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RenewInstance invokes the ecs.RenewInstance API synchronously -func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { - response = CreateRenewInstanceResponse() - err = client.DoAction(request, response) - return -} - -// RenewInstanceWithChan invokes the ecs.RenewInstance API asynchronously -func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error) { - responseChan := make(chan *RenewInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RenewInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RenewInstanceWithCallback invokes the ecs.RenewInstance API asynchronously -func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RenewInstanceResponse - var err error - defer close(result) - response, err = client.RenewInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RenewInstanceRequest is the request struct for api RenewInstance -type RenewInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ExpectedRenewDay requests.Integer `position:"Query" name:"ExpectedRenewDay"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// RenewInstanceResponse is the response struct for api RenewInstance -type RenewInstanceResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRenewInstanceRequest creates a request to invoke RenewInstance API -func CreateRenewInstanceRequest() (request *RenewInstanceRequest) { - request = &RenewInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RenewInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRenewInstanceResponse creates a response to parse from RenewInstance response -func CreateRenewInstanceResponse() (response *RenewInstanceResponse) { - response = &RenewInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_reserved_instances.go deleted file mode 100644 index f4fd4f12a6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_reserved_instances.go +++ /dev/null @@ -1,117 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RenewReservedInstances invokes the ecs.RenewReservedInstances API synchronously -func (client *Client) RenewReservedInstances(request *RenewReservedInstancesRequest) (response *RenewReservedInstancesResponse, err error) { - response = CreateRenewReservedInstancesResponse() - err = client.DoAction(request, response) - return -} - -// RenewReservedInstancesWithChan invokes the ecs.RenewReservedInstances API asynchronously -func (client *Client) RenewReservedInstancesWithChan(request *RenewReservedInstancesRequest) (<-chan *RenewReservedInstancesResponse, <-chan error) { - responseChan := make(chan *RenewReservedInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RenewReservedInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RenewReservedInstancesWithCallback invokes the ecs.RenewReservedInstances API asynchronously -func (client *Client) RenewReservedInstancesWithCallback(request *RenewReservedInstancesRequest, callback func(response *RenewReservedInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RenewReservedInstancesResponse - var err error - defer close(result) - response, err = client.RenewReservedInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RenewReservedInstancesRequest is the request struct for api RenewReservedInstances -type RenewReservedInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - Period requests.Integer `position:"Query" name:"Period"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PromotionOptions RenewReservedInstancesPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` -} - -// RenewReservedInstancesPromotionOptions is a repeated param struct in RenewReservedInstancesRequest -type RenewReservedInstancesPromotionOptions struct { - CouponNo string `name:"CouponNo"` -} - -// RenewReservedInstancesResponse is the response struct for api RenewReservedInstances -type RenewReservedInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` - ReservedInstanceIdSets ReservedInstanceIdSetsInRenewReservedInstances `json:"ReservedInstanceIdSets" xml:"ReservedInstanceIdSets"` -} - -// CreateRenewReservedInstancesRequest creates a request to invoke RenewReservedInstances API -func CreateRenewReservedInstancesRequest() (request *RenewReservedInstancesRequest) { - request = &RenewReservedInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RenewReservedInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRenewReservedInstancesResponse creates a response to parse from RenewReservedInstances response -func CreateRenewReservedInstancesResponse() (response *RenewReservedInstancesResponse) { - response = &RenewReservedInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go deleted file mode 100644 index b154ba26d1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go +++ /dev/null @@ -1,127 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReplaceSystemDisk invokes the ecs.ReplaceSystemDisk API synchronously -func (client *Client) ReplaceSystemDisk(request *ReplaceSystemDiskRequest) (response *ReplaceSystemDiskResponse, err error) { - response = CreateReplaceSystemDiskResponse() - err = client.DoAction(request, response) - return -} - -// ReplaceSystemDiskWithChan invokes the ecs.ReplaceSystemDisk API asynchronously -func (client *Client) ReplaceSystemDiskWithChan(request *ReplaceSystemDiskRequest) (<-chan *ReplaceSystemDiskResponse, <-chan error) { - responseChan := make(chan *ReplaceSystemDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReplaceSystemDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReplaceSystemDiskWithCallback invokes the ecs.ReplaceSystemDisk API asynchronously -func (client *Client) ReplaceSystemDiskWithCallback(request *ReplaceSystemDiskRequest, callback func(response *ReplaceSystemDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReplaceSystemDiskResponse - var err error - defer close(result) - response, err = client.ReplaceSystemDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReplaceSystemDiskRequest is the request struct for api ReplaceSystemDisk -type ReplaceSystemDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - ClientToken string `position:"Query" name:"ClientToken"` - EncryptAlgorithm string `position:"Query" name:"EncryptAlgorithm"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - KeyPairName string `position:"Query" name:"KeyPairName"` - Platform string `position:"Query" name:"Platform"` - Password string `position:"Query" name:"Password"` - LoginAsNonRoot requests.Boolean `position:"Query" name:"LoginAsNonRoot"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - DiskId string `position:"Query" name:"DiskId"` - Arn *[]ReplaceSystemDiskArn `position:"Query" name:"Arn" type:"Repeated"` - Architecture string `position:"Query" name:"Architecture"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` - UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` -} - -// ReplaceSystemDiskArn is a repeated param struct in ReplaceSystemDiskRequest -type ReplaceSystemDiskArn struct { - Rolearn string `name:"Rolearn"` - RoleType string `name:"RoleType"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// ReplaceSystemDiskResponse is the response struct for api ReplaceSystemDisk -type ReplaceSystemDiskResponse struct { - *responses.BaseResponse - DiskId string `json:"DiskId" xml:"DiskId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateReplaceSystemDiskRequest creates a request to invoke ReplaceSystemDisk API -func CreateReplaceSystemDiskRequest() (request *ReplaceSystemDiskRequest) { - request = &ReplaceSystemDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReplaceSystemDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReplaceSystemDiskResponse creates a response to parse from ReplaceSystemDisk response -func CreateReplaceSystemDiskResponse() (response *ReplaceSystemDiskResponse) { - response = &ReplaceSystemDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go deleted file mode 100644 index e336b55ae5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReportInstancesStatus invokes the ecs.ReportInstancesStatus API synchronously -func (client *Client) ReportInstancesStatus(request *ReportInstancesStatusRequest) (response *ReportInstancesStatusResponse, err error) { - response = CreateReportInstancesStatusResponse() - err = client.DoAction(request, response) - return -} - -// ReportInstancesStatusWithChan invokes the ecs.ReportInstancesStatus API asynchronously -func (client *Client) ReportInstancesStatusWithChan(request *ReportInstancesStatusRequest) (<-chan *ReportInstancesStatusResponse, <-chan error) { - responseChan := make(chan *ReportInstancesStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReportInstancesStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReportInstancesStatusWithCallback invokes the ecs.ReportInstancesStatus API asynchronously -func (client *Client) ReportInstancesStatusWithCallback(request *ReportInstancesStatusRequest, callback func(response *ReportInstancesStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReportInstancesStatusResponse - var err error - defer close(result) - response, err = client.ReportInstancesStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReportInstancesStatusRequest is the request struct for api ReportInstancesStatus -type ReportInstancesStatusRequest struct { - *requests.RpcRequest - Reason string `position:"Query" name:"Reason"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - StartTime string `position:"Query" name:"StartTime"` - IssueCategory string `position:"Query" name:"IssueCategory"` - DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - Device *[]string `position:"Query" name:"Device" type:"Repeated"` -} - -// ReportInstancesStatusResponse is the response struct for api ReportInstancesStatus -type ReportInstancesStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateReportInstancesStatusRequest creates a request to invoke ReportInstancesStatus API -func CreateReportInstancesStatusRequest() (request *ReportInstancesStatusRequest) { - request = &ReportInstancesStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ReportInstancesStatus", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateReportInstancesStatusResponse creates a response to parse from ReportInstancesStatus response -func CreateReportInstancesStatusResponse() (response *ReportInstancesStatusResponse) { - response = &ReportInstancesStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go deleted file mode 100644 index 0d3ba4f298..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ResetDisk invokes the ecs.ResetDisk API synchronously -func (client *Client) ResetDisk(request *ResetDiskRequest) (response *ResetDiskResponse, err error) { - response = CreateResetDiskResponse() - err = client.DoAction(request, response) - return -} - -// ResetDiskWithChan invokes the ecs.ResetDisk API asynchronously -func (client *Client) ResetDiskWithChan(request *ResetDiskRequest) (<-chan *ResetDiskResponse, <-chan error) { - responseChan := make(chan *ResetDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ResetDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ResetDiskWithCallback invokes the ecs.ResetDisk API asynchronously -func (client *Client) ResetDiskWithCallback(request *ResetDiskRequest, callback func(response *ResetDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ResetDiskResponse - var err error - defer close(result) - response, err = client.ResetDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ResetDiskRequest is the request struct for api ResetDisk -type ResetDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - DiskId string `position:"Query" name:"DiskId"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ResetDiskResponse is the response struct for api ResetDisk -type ResetDiskResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateResetDiskRequest creates a request to invoke ResetDisk API -func CreateResetDiskRequest() (request *ResetDiskRequest) { - request = &ResetDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ResetDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateResetDiskResponse creates a response to parse from ResetDisk response -func CreateResetDiskResponse() (response *ResetDiskResponse) { - response = &ResetDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk_default_kms_key_id.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk_default_kms_key_id.go deleted file mode 100644 index 3fd84cad0b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk_default_kms_key_id.go +++ /dev/null @@ -1,99 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ResetDiskDefaultKMSKeyId invokes the ecs.ResetDiskDefaultKMSKeyId API synchronously -func (client *Client) ResetDiskDefaultKMSKeyId(request *ResetDiskDefaultKMSKeyIdRequest) (response *ResetDiskDefaultKMSKeyIdResponse, err error) { - response = CreateResetDiskDefaultKMSKeyIdResponse() - err = client.DoAction(request, response) - return -} - -// ResetDiskDefaultKMSKeyIdWithChan invokes the ecs.ResetDiskDefaultKMSKeyId API asynchronously -func (client *Client) ResetDiskDefaultKMSKeyIdWithChan(request *ResetDiskDefaultKMSKeyIdRequest) (<-chan *ResetDiskDefaultKMSKeyIdResponse, <-chan error) { - responseChan := make(chan *ResetDiskDefaultKMSKeyIdResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ResetDiskDefaultKMSKeyId(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ResetDiskDefaultKMSKeyIdWithCallback invokes the ecs.ResetDiskDefaultKMSKeyId API asynchronously -func (client *Client) ResetDiskDefaultKMSKeyIdWithCallback(request *ResetDiskDefaultKMSKeyIdRequest, callback func(response *ResetDiskDefaultKMSKeyIdResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ResetDiskDefaultKMSKeyIdResponse - var err error - defer close(result) - response, err = client.ResetDiskDefaultKMSKeyId(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ResetDiskDefaultKMSKeyIdRequest is the request struct for api ResetDiskDefaultKMSKeyId -type ResetDiskDefaultKMSKeyIdRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` -} - -// ResetDiskDefaultKMSKeyIdResponse is the response struct for api ResetDiskDefaultKMSKeyId -type ResetDiskDefaultKMSKeyIdResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateResetDiskDefaultKMSKeyIdRequest creates a request to invoke ResetDiskDefaultKMSKeyId API -func CreateResetDiskDefaultKMSKeyIdRequest() (request *ResetDiskDefaultKMSKeyIdRequest) { - request = &ResetDiskDefaultKMSKeyIdRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ResetDiskDefaultKMSKeyId", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateResetDiskDefaultKMSKeyIdResponse creates a response to parse from ResetDiskDefaultKMSKeyId response -func CreateResetDiskDefaultKMSKeyIdResponse() (response *ResetDiskDefaultKMSKeyIdResponse) { - response = &ResetDiskDefaultKMSKeyIdResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disks.go deleted file mode 100644 index 1fdac04297..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disks.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ResetDisks invokes the ecs.ResetDisks API synchronously -func (client *Client) ResetDisks(request *ResetDisksRequest) (response *ResetDisksResponse, err error) { - response = CreateResetDisksResponse() - err = client.DoAction(request, response) - return -} - -// ResetDisksWithChan invokes the ecs.ResetDisks API asynchronously -func (client *Client) ResetDisksWithChan(request *ResetDisksRequest) (<-chan *ResetDisksResponse, <-chan error) { - responseChan := make(chan *ResetDisksResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ResetDisks(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ResetDisksWithCallback invokes the ecs.ResetDisks API asynchronously -func (client *Client) ResetDisksWithCallback(request *ResetDisksRequest, callback func(response *ResetDisksResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ResetDisksResponse - var err error - defer close(result) - response, err = client.ResetDisks(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ResetDisksRequest is the request struct for api ResetDisks -type ResetDisksRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Disk *[]ResetDisksDisk `position:"Query" name:"Disk" type:"Repeated"` -} - -// ResetDisksDisk is a repeated param struct in ResetDisksRequest -type ResetDisksDisk struct { - SnapshotId string `name:"SnapshotId"` - DiskId string `name:"DiskId"` -} - -// ResetDisksResponse is the response struct for api ResetDisks -type ResetDisksResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OperationProgressSet OperationProgressSetInResetDisks `json:"OperationProgressSet" xml:"OperationProgressSet"` -} - -// CreateResetDisksRequest creates a request to invoke ResetDisks API -func CreateResetDisksRequest() (request *ResetDisksRequest) { - request = &ResetDisksRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ResetDisks", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateResetDisksResponse creates a response to parse from ResetDisks response -func CreateResetDisksResponse() (response *ResetDisksResponse) { - response = &ResetDisksResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go deleted file mode 100644 index bfe8995536..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go +++ /dev/null @@ -1,107 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ResizeDisk invokes the ecs.ResizeDisk API synchronously -func (client *Client) ResizeDisk(request *ResizeDiskRequest) (response *ResizeDiskResponse, err error) { - response = CreateResizeDiskResponse() - err = client.DoAction(request, response) - return -} - -// ResizeDiskWithChan invokes the ecs.ResizeDisk API asynchronously -func (client *Client) ResizeDiskWithChan(request *ResizeDiskRequest) (<-chan *ResizeDiskResponse, <-chan error) { - responseChan := make(chan *ResizeDiskResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ResizeDisk(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ResizeDiskWithCallback invokes the ecs.ResizeDisk API asynchronously -func (client *Client) ResizeDiskWithCallback(request *ResizeDiskRequest, callback func(response *ResizeDiskResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ResizeDiskResponse - var err error - defer close(result) - response, err = client.ResizeDisk(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ResizeDiskRequest is the request struct for api ResizeDisk -type ResizeDiskRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Type string `position:"Query" name:"Type"` - DiskId string `position:"Query" name:"DiskId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - NewSize requests.Integer `position:"Query" name:"NewSize"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ResizeDiskResponse is the response struct for api ResizeDisk -type ResizeDiskResponse struct { - *responses.BaseResponse - OrderId string `json:"OrderId" xml:"OrderId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateResizeDiskRequest creates a request to invoke ResizeDisk API -func CreateResizeDiskRequest() (request *ResizeDiskRequest) { - request = &ResizeDiskRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ResizeDisk", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateResizeDiskResponse creates a response to parse from ResizeDisk response -func CreateResizeDiskResponse() (response *ResizeDiskResponse) { - response = &ResizeDiskResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go deleted file mode 100644 index e30d05dbd9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go +++ /dev/null @@ -1,140 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RevokeSecurityGroup invokes the ecs.RevokeSecurityGroup API synchronously -func (client *Client) RevokeSecurityGroup(request *RevokeSecurityGroupRequest) (response *RevokeSecurityGroupResponse, err error) { - response = CreateRevokeSecurityGroupResponse() - err = client.DoAction(request, response) - return -} - -// RevokeSecurityGroupWithChan invokes the ecs.RevokeSecurityGroup API asynchronously -func (client *Client) RevokeSecurityGroupWithChan(request *RevokeSecurityGroupRequest) (<-chan *RevokeSecurityGroupResponse, <-chan error) { - responseChan := make(chan *RevokeSecurityGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RevokeSecurityGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RevokeSecurityGroupWithCallback invokes the ecs.RevokeSecurityGroup API asynchronously -func (client *Client) RevokeSecurityGroupWithCallback(request *RevokeSecurityGroupRequest, callback func(response *RevokeSecurityGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RevokeSecurityGroupResponse - var err error - defer close(result) - response, err = client.RevokeSecurityGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RevokeSecurityGroupRequest is the request struct for api RevokeSecurityGroup -type RevokeSecurityGroupRequest struct { - *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePrefixListId string `position:"Query" name:"SourcePrefixListId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` - SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` - Permissions *[]RevokeSecurityGroupPermissions `position:"Query" name:"Permissions" type:"Repeated"` - Policy string `position:"Query" name:"Policy"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - SourceGroupId string `position:"Query" name:"SourceGroupId"` - SecurityGroupRuleId *[]string `position:"Query" name:"SecurityGroupRuleId" type:"Repeated"` -} - -// RevokeSecurityGroupPermissions is a repeated param struct in RevokeSecurityGroupRequest -type RevokeSecurityGroupPermissions struct { - Policy string `name:"Policy"` - Priority string `name:"Priority"` - IpProtocol string `name:"IpProtocol"` - SourceCidrIp string `name:"SourceCidrIp"` - Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` - SourceGroupId string `name:"SourceGroupId"` - SourcePrefixListId string `name:"SourcePrefixListId"` - PortRange string `name:"PortRange"` - DestCidrIp string `name:"DestCidrIp"` - Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` - SourcePortRange string `name:"SourcePortRange"` - SourceGroupOwnerAccount string `name:"SourceGroupOwnerAccount"` - SourceGroupOwnerId string `name:"SourceGroupOwnerId"` - NicType string `name:"NicType"` - Description string `name:"Description"` -} - -// RevokeSecurityGroupResponse is the response struct for api RevokeSecurityGroup -type RevokeSecurityGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRevokeSecurityGroupRequest creates a request to invoke RevokeSecurityGroup API -func CreateRevokeSecurityGroupRequest() (request *RevokeSecurityGroupRequest) { - request = &RevokeSecurityGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RevokeSecurityGroup", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRevokeSecurityGroupResponse creates a response to parse from RevokeSecurityGroup response -func CreateRevokeSecurityGroupResponse() (response *RevokeSecurityGroupResponse) { - response = &RevokeSecurityGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go deleted file mode 100644 index 9ce00507c3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go +++ /dev/null @@ -1,140 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RevokeSecurityGroupEgress invokes the ecs.RevokeSecurityGroupEgress API synchronously -func (client *Client) RevokeSecurityGroupEgress(request *RevokeSecurityGroupEgressRequest) (response *RevokeSecurityGroupEgressResponse, err error) { - response = CreateRevokeSecurityGroupEgressResponse() - err = client.DoAction(request, response) - return -} - -// RevokeSecurityGroupEgressWithChan invokes the ecs.RevokeSecurityGroupEgress API asynchronously -func (client *Client) RevokeSecurityGroupEgressWithChan(request *RevokeSecurityGroupEgressRequest) (<-chan *RevokeSecurityGroupEgressResponse, <-chan error) { - responseChan := make(chan *RevokeSecurityGroupEgressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RevokeSecurityGroupEgress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RevokeSecurityGroupEgressWithCallback invokes the ecs.RevokeSecurityGroupEgress API asynchronously -func (client *Client) RevokeSecurityGroupEgressWithCallback(request *RevokeSecurityGroupEgressRequest, callback func(response *RevokeSecurityGroupEgressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RevokeSecurityGroupEgressResponse - var err error - defer close(result) - response, err = client.RevokeSecurityGroupEgress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RevokeSecurityGroupEgressRequest is the request struct for api RevokeSecurityGroupEgress -type RevokeSecurityGroupEgressRequest struct { - *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - DestPrefixListId string `position:"Query" name:"DestPrefixListId"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - Permissions *[]RevokeSecurityGroupEgressPermissions `position:"Query" name:"Permissions" type:"Repeated"` - Policy string `position:"Query" name:"Policy"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - DestGroupId string `position:"Query" name:"DestGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` - SecurityGroupRuleId *[]string `position:"Query" name:"SecurityGroupRuleId" type:"Repeated"` -} - -// RevokeSecurityGroupEgressPermissions is a repeated param struct in RevokeSecurityGroupEgressRequest -type RevokeSecurityGroupEgressPermissions struct { - Policy string `name:"Policy"` - Priority string `name:"Priority"` - IpProtocol string `name:"IpProtocol"` - DestCidrIp string `name:"DestCidrIp"` - Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` - DestGroupId string `name:"DestGroupId"` - DestPrefixListId string `name:"DestPrefixListId"` - PortRange string `name:"PortRange"` - SourceCidrIp string `name:"SourceCidrIp"` - Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` - SourcePortRange string `name:"SourcePortRange"` - DestGroupOwnerAccount string `name:"DestGroupOwnerAccount"` - DestGroupOwnerId string `name:"DestGroupOwnerId"` - NicType string `name:"NicType"` - Description string `name:"Description"` -} - -// RevokeSecurityGroupEgressResponse is the response struct for api RevokeSecurityGroupEgress -type RevokeSecurityGroupEgressResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRevokeSecurityGroupEgressRequest creates a request to invoke RevokeSecurityGroupEgress API -func CreateRevokeSecurityGroupEgressRequest() (request *RevokeSecurityGroupEgressRequest) { - request = &RevokeSecurityGroupEgressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RevokeSecurityGroupEgress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRevokeSecurityGroupEgressResponse creates a response to parse from RevokeSecurityGroupEgress response -func CreateRevokeSecurityGroupEgressResponse() (response *RevokeSecurityGroupEgressResponse) { - response = &RevokeSecurityGroupEgressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_command.go deleted file mode 100644 index 0659ee19b7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_command.go +++ /dev/null @@ -1,140 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RunCommand invokes the ecs.RunCommand API synchronously -func (client *Client) RunCommand(request *RunCommandRequest) (response *RunCommandResponse, err error) { - response = CreateRunCommandResponse() - err = client.DoAction(request, response) - return -} - -// RunCommandWithChan invokes the ecs.RunCommand API asynchronously -func (client *Client) RunCommandWithChan(request *RunCommandRequest) (<-chan *RunCommandResponse, <-chan error) { - responseChan := make(chan *RunCommandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RunCommand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RunCommandWithCallback invokes the ecs.RunCommand API asynchronously -func (client *Client) RunCommandWithCallback(request *RunCommandRequest, callback func(response *RunCommandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RunCommandResponse - var err error - defer close(result) - response, err = client.RunCommand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RunCommandRequest is the request struct for api RunCommand -type RunCommandRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - WorkingDir string `position:"Query" name:"WorkingDir"` - Type string `position:"Query" name:"Type"` - Frequency string `position:"Query" name:"Frequency"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - RepeatMode string `position:"Query" name:"RepeatMode"` - Tag *[]RunCommandTag `position:"Query" name:"Tag" type:"Repeated"` - KeepCommand requests.Boolean `position:"Query" name:"KeepCommand"` - Timed requests.Boolean `position:"Query" name:"Timed"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - Name string `position:"Query" name:"Name"` - ContainerId string `position:"Query" name:"ContainerId"` - Parameters map[string]interface{} `position:"Query" name:"Parameters"` - Launcher string `position:"Query" name:"Launcher"` - ContainerName string `position:"Query" name:"ContainerName"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - CommandContent string `position:"Query" name:"CommandContent"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - ContentEncoding string `position:"Query" name:"ContentEncoding"` - WindowsPasswordName string `position:"Query" name:"WindowsPasswordName"` - ResourceTag *[]RunCommandResourceTag `position:"Query" name:"ResourceTag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - TerminationMode string `position:"Query" name:"TerminationMode"` - EnableParameter requests.Boolean `position:"Query" name:"EnableParameter"` - Username string `position:"Query" name:"Username"` -} - -// RunCommandTag is a repeated param struct in RunCommandRequest -type RunCommandTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// RunCommandResourceTag is a repeated param struct in RunCommandRequest -type RunCommandResourceTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// RunCommandResponse is the response struct for api RunCommand -type RunCommandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - CommandId string `json:"CommandId" xml:"CommandId"` - InvokeId string `json:"InvokeId" xml:"InvokeId"` -} - -// CreateRunCommandRequest creates a request to invoke RunCommand API -func CreateRunCommandRequest() (request *RunCommandRequest) { - request = &RunCommandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RunCommand", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRunCommandResponse creates a response to parse from RunCommand response -func CreateRunCommandResponse() (response *RunCommandResponse) { - response = &RunCommandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go deleted file mode 100644 index f9a6516dbf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go +++ /dev/null @@ -1,290 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RunInstances invokes the ecs.RunInstances API synchronously -func (client *Client) RunInstances(request *RunInstancesRequest) (response *RunInstancesResponse, err error) { - response = CreateRunInstancesResponse() - err = client.DoAction(request, response) - return -} - -// RunInstancesWithChan invokes the ecs.RunInstances API asynchronously -func (client *Client) RunInstancesWithChan(request *RunInstancesRequest) (<-chan *RunInstancesResponse, <-chan error) { - responseChan := make(chan *RunInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RunInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RunInstancesWithCallback invokes the ecs.RunInstances API asynchronously -func (client *Client) RunInstancesWithCallback(request *RunInstancesRequest, callback func(response *RunInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RunInstancesResponse - var err error - defer close(result) - response, err = client.RunInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RunInstancesRequest is the request struct for api RunInstances -type RunInstancesRequest struct { - *requests.RpcRequest - UniqueSuffix requests.Boolean `position:"Query" name:"UniqueSuffix"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - MinAmount requests.Integer `position:"Query" name:"MinAmount"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` - HostName string `position:"Query" name:"HostName"` - Password string `position:"Query" name:"Password"` - SystemDisk RunInstancesSystemDisk `position:"Query" name:"SystemDisk" type:"Struct"` - ImageOptions RunInstancesImageOptions `position:"Query" name:"ImageOptions" type:"Struct"` - DeploymentSetGroupNo requests.Integer `position:"Query" name:"DeploymentSetGroupNo"` - SystemDiskAutoSnapshotPolicyId string `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"` - CpuOptionsCore requests.Integer `position:"Query" name:"CpuOptions.Core"` - Period requests.Integer `position:"Query" name:"Period"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - CpuOptionsNuma string `position:"Query" name:"CpuOptions.Numa"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - Affinity string `position:"Query" name:"Affinity"` - ImageId string `position:"Query" name:"ImageId"` - SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` - NetworkInterfaceQueueNumber requests.Integer `position:"Query" name:"NetworkInterfaceQueueNumber"` - SystemTag *[]RunInstancesSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - HibernationOptionsConfigured requests.Boolean `position:"Query" name:"HibernationOptions.Configured"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - PrivateDnsNameOptions RunInstancesPrivateDnsNameOptions `position:"Query" name:"PrivateDnsNameOptions" type:"Struct"` - InstanceType string `position:"Query" name:"InstanceType"` - Arn *[]RunInstancesArn `position:"Query" name:"Arn" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - SchedulerOptionsDedicatedHostClusterId string `position:"Query" name:"SchedulerOptions.DedicatedHostClusterId"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` - NetworkOptions RunInstancesNetworkOptions `position:"Query" name:"NetworkOptions" type:"Struct"` - SystemDiskSize string `position:"Query" name:"SystemDisk.Size"` - ImageFamily string `position:"Query" name:"ImageFamily"` - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` - Isp string `position:"Query" name:"Isp"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - CpuOptionsTopologyType string `position:"Query" name:"CpuOptions.TopologyType"` - StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` - Tag *[]RunInstancesTag `position:"Query" name:"Tag" type:"Repeated"` - PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` - HostNames *[]string `position:"Query" name:"HostNames" type:"Repeated"` - CapacityReservationPreference string `position:"Query" name:"CapacityReservationPreference"` - AdditionalInfo RunInstancesAdditionalInfo `position:"Query" name:"AdditionalInfo" type:"Struct"` - VSwitchId string `position:"Query" name:"VSwitchId"` - InstanceName string `position:"Query" name:"InstanceName"` - ZoneId string `position:"Query" name:"ZoneId"` - CpuOptionsAccelerators *[]string `position:"Query" name:"CpuOptions.Accelerators" type:"Repeated"` - Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` - SecurityOptionsConfidentialComputingMode string `position:"Query" name:"SecurityOptions.ConfidentialComputingMode"` - ClientToken string `position:"Query" name:"ClientToken"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - CpuOptionsThreadsPerCore requests.Integer `position:"Query" name:"CpuOptions.ThreadsPerCore"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - SecurityOptionsTrustedSystemMode string `position:"Query" name:"SecurityOptions.TrustedSystemMode"` - CapacityReservationId string `position:"Query" name:"CapacityReservationId"` - UserData string `position:"Query" name:"UserData"` - HttpEndpoint string `position:"Query" name:"HttpEndpoint"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - NetworkInterface *[]RunInstancesNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` - Amount requests.Integer `position:"Query" name:"Amount"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tenancy string `position:"Query" name:"Tenancy"` - RamRoleName string `position:"Query" name:"RamRoleName"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - LaunchTemplateVersion requests.Integer `position:"Query" name:"LaunchTemplateVersion"` - SchedulerOptionsManagedPrivateSpaceId string `position:"Query" name:"SchedulerOptions.ManagedPrivateSpaceId"` - DataDisk *[]RunInstancesDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - StorageSetId string `position:"Query" name:"StorageSetId"` - HttpTokens string `position:"Query" name:"HttpTokens"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` -} - -// RunInstancesSystemDisk is a repeated param struct in RunInstancesRequest -type RunInstancesSystemDisk struct { - StorageClusterId string `name:"StorageClusterId"` - ProvisionedIops string `name:"ProvisionedIops"` - BurstingEnabled string `name:"BurstingEnabled"` - Encrypted string `name:"Encrypted"` - KMSKeyId string `name:"KMSKeyId"` - EncryptAlgorithm string `name:"EncryptAlgorithm"` -} - -// RunInstancesImageOptions is a repeated param struct in RunInstancesRequest -type RunInstancesImageOptions struct { - LoginAsNonRoot string `name:"LoginAsNonRoot"` -} - -// RunInstancesSystemTag is a repeated param struct in RunInstancesRequest -type RunInstancesSystemTag struct { - Key string `name:"Key"` - Value string `name:"Value"` - Scope string `name:"Scope"` -} - -// RunInstancesPrivateDnsNameOptions is a repeated param struct in RunInstancesRequest -type RunInstancesPrivateDnsNameOptions struct { - EnableInstanceIdDnsARecord string `name:"EnableInstanceIdDnsARecord"` - EnableInstanceIdDnsAAAARecord string `name:"EnableInstanceIdDnsAAAARecord"` - EnableIpDnsARecord string `name:"EnableIpDnsARecord"` - EnableIpDnsPtrRecord string `name:"EnableIpDnsPtrRecord"` - HostnameType string `name:"HostnameType"` -} - -// RunInstancesArn is a repeated param struct in RunInstancesRequest -type RunInstancesArn struct { - RoleType string `name:"RoleType"` - Rolearn string `name:"Rolearn"` - AssumeRoleFor string `name:"AssumeRoleFor"` -} - -// RunInstancesNetworkOptions is a repeated param struct in RunInstancesRequest -type RunInstancesNetworkOptions struct { - EnableJumboFrame string `name:"EnableJumboFrame"` -} - -// RunInstancesTag is a repeated param struct in RunInstancesRequest -type RunInstancesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// RunInstancesAdditionalInfo is a repeated param struct in RunInstancesRequest -type RunInstancesAdditionalInfo struct { - PvdConfig string `name:"PvdConfig"` - EnableHighDensityMode string `name:"EnableHighDensityMode"` -} - -// RunInstancesNetworkInterface is a repeated param struct in RunInstancesRequest -type RunInstancesNetworkInterface struct { - VSwitchId string `name:"VSwitchId"` - NetworkInterfaceName string `name:"NetworkInterfaceName"` - Description string `name:"Description"` - SecurityGroupId string `name:"SecurityGroupId"` - PrimaryIpAddress string `name:"PrimaryIpAddress"` - QueueNumber string `name:"QueueNumber"` - SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` - NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` - QueuePairNumber string `name:"QueuePairNumber"` - InstanceType string `name:"InstanceType"` - Ipv6AddressCount string `name:"Ipv6AddressCount"` - Ipv6Address *[]string `name:"Ipv6Address" type:"Repeated"` - NetworkCardIndex string `name:"NetworkCardIndex"` - DeleteOnRelease string `name:"DeleteOnRelease"` - NetworkInterfaceId string `name:"NetworkInterfaceId"` - RxQueueSize string `name:"RxQueueSize"` - TxQueueSize string `name:"TxQueueSize"` - SourceDestCheck string `name:"SourceDestCheck"` -} - -// RunInstancesDataDisk is a repeated param struct in RunInstancesRequest -type RunInstancesDataDisk struct { - PerformanceLevel string `name:"PerformanceLevel"` - AutoSnapshotPolicyId string `name:"AutoSnapshotPolicyId"` - Encrypted string `name:"Encrypted"` - Description string `name:"Description"` - SnapshotId string `name:"SnapshotId"` - Device string `name:"Device"` - Size string `name:"Size"` - DiskName string `name:"DiskName"` - Category string `name:"Category"` - EncryptAlgorithm string `name:"EncryptAlgorithm"` - DeleteWithInstance string `name:"DeleteWithInstance"` - KMSKeyId string `name:"KMSKeyId"` - StorageClusterId string `name:"StorageClusterId"` - ProvisionedIops string `name:"ProvisionedIops"` - BurstingEnabled string `name:"BurstingEnabled"` -} - -// RunInstancesResponse is the response struct for api RunInstances -type RunInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` - InstanceIdSets InstanceIdSets `json:"InstanceIdSets" xml:"InstanceIdSets"` -} - -// CreateRunInstancesRequest creates a request to invoke RunInstances API -func CreateRunInstancesRequest() (request *RunInstancesRequest) { - request = &RunInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "RunInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateRunInstancesResponse creates a response to parse from RunInstances response -func CreateRunInstancesResponse() (response *RunInstancesResponse) { - response = &RunInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/send_file.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/send_file.go deleted file mode 100644 index b92ac9741a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/send_file.go +++ /dev/null @@ -1,122 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// SendFile invokes the ecs.SendFile API synchronously -func (client *Client) SendFile(request *SendFileRequest) (response *SendFileResponse, err error) { - response = CreateSendFileResponse() - err = client.DoAction(request, response) - return -} - -// SendFileWithChan invokes the ecs.SendFile API asynchronously -func (client *Client) SendFileWithChan(request *SendFileRequest) (<-chan *SendFileResponse, <-chan error) { - responseChan := make(chan *SendFileResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SendFile(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SendFileWithCallback invokes the ecs.SendFile API asynchronously -func (client *Client) SendFileWithCallback(request *SendFileRequest, callback func(response *SendFileResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SendFileResponse - var err error - defer close(result) - response, err = client.SendFile(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SendFileRequest is the request struct for api SendFile -type SendFileRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - Content string `position:"Query" name:"Content"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - FileOwner string `position:"Query" name:"FileOwner"` - Tag *[]SendFileTag `position:"Query" name:"Tag" type:"Repeated"` - Overwrite requests.Boolean `position:"Query" name:"Overwrite"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - FileMode string `position:"Query" name:"FileMode"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ContentType string `position:"Query" name:"ContentType"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - Name string `position:"Query" name:"Name"` - FileGroup string `position:"Query" name:"FileGroup"` - TargetDir string `position:"Query" name:"TargetDir"` -} - -// SendFileTag is a repeated param struct in SendFileRequest -type SendFileTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// SendFileResponse is the response struct for api SendFile -type SendFileResponse struct { - *responses.BaseResponse - InvokeId string `json:"InvokeId" xml:"InvokeId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSendFileRequest creates a request to invoke SendFile API -func CreateSendFileRequest() (request *SendFileRequest) { - request = &SendFileRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "SendFile", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateSendFileResponse creates a response to parse from SendFile response -func CreateSendFileResponse() (response *SendFileResponse) { - response = &SendFileResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_image_pipeline_execution.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_image_pipeline_execution.go deleted file mode 100644 index 30aab2f63c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_image_pipeline_execution.go +++ /dev/null @@ -1,119 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// StartImagePipelineExecution invokes the ecs.StartImagePipelineExecution API synchronously -func (client *Client) StartImagePipelineExecution(request *StartImagePipelineExecutionRequest) (response *StartImagePipelineExecutionResponse, err error) { - response = CreateStartImagePipelineExecutionResponse() - err = client.DoAction(request, response) - return -} - -// StartImagePipelineExecutionWithChan invokes the ecs.StartImagePipelineExecution API asynchronously -func (client *Client) StartImagePipelineExecutionWithChan(request *StartImagePipelineExecutionRequest) (<-chan *StartImagePipelineExecutionResponse, <-chan error) { - responseChan := make(chan *StartImagePipelineExecutionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.StartImagePipelineExecution(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// StartImagePipelineExecutionWithCallback invokes the ecs.StartImagePipelineExecution API asynchronously -func (client *Client) StartImagePipelineExecutionWithCallback(request *StartImagePipelineExecutionRequest, callback func(response *StartImagePipelineExecutionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *StartImagePipelineExecutionResponse - var err error - defer close(result) - response, err = client.StartImagePipelineExecution(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// StartImagePipelineExecutionRequest is the request struct for api StartImagePipelineExecution -type StartImagePipelineExecutionRequest struct { - *requests.RpcRequest - ImagePipelineId string `position:"Query" name:"ImagePipelineId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - TemplateTag *[]StartImagePipelineExecutionTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` - Tag *[]StartImagePipelineExecutionTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// StartImagePipelineExecutionTemplateTag is a repeated param struct in StartImagePipelineExecutionRequest -type StartImagePipelineExecutionTemplateTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// StartImagePipelineExecutionTag is a repeated param struct in StartImagePipelineExecutionRequest -type StartImagePipelineExecutionTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// StartImagePipelineExecutionResponse is the response struct for api StartImagePipelineExecution -type StartImagePipelineExecutionResponse struct { - *responses.BaseResponse - ExecutionId string `json:"ExecutionId" xml:"ExecutionId"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateStartImagePipelineExecutionRequest creates a request to invoke StartImagePipelineExecution API -func CreateStartImagePipelineExecutionRequest() (request *StartImagePipelineExecutionRequest) { - request = &StartImagePipelineExecutionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "StartImagePipelineExecution", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateStartImagePipelineExecutionResponse creates a response to parse from StartImagePipelineExecution response -func CreateStartImagePipelineExecutionResponse() (response *StartImagePipelineExecutionResponse) { - response = &StartImagePipelineExecutionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go deleted file mode 100644 index eb39f0b963..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// StartInstance invokes the ecs.StartInstance API synchronously -func (client *Client) StartInstance(request *StartInstanceRequest) (response *StartInstanceResponse, err error) { - response = CreateStartInstanceResponse() - err = client.DoAction(request, response) - return -} - -// StartInstanceWithChan invokes the ecs.StartInstance API asynchronously -func (client *Client) StartInstanceWithChan(request *StartInstanceRequest) (<-chan *StartInstanceResponse, <-chan error) { - responseChan := make(chan *StartInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.StartInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// StartInstanceWithCallback invokes the ecs.StartInstance API asynchronously -func (client *Client) StartInstanceWithCallback(request *StartInstanceRequest, callback func(response *StartInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *StartInstanceResponse - var err error - defer close(result) - response, err = client.StartInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// StartInstanceRequest is the request struct for api StartInstance -type StartInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InitLocalDisk requests.Boolean `position:"Query" name:"InitLocalDisk"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// StartInstanceResponse is the response struct for api StartInstance -type StartInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateStartInstanceRequest creates a request to invoke StartInstance API -func CreateStartInstanceRequest() (request *StartInstanceRequest) { - request = &StartInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "StartInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateStartInstanceResponse creates a response to parse from StartInstance response -func CreateStartInstanceResponse() (response *StartInstanceResponse) { - response = &StartInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instances.go deleted file mode 100644 index 68d8f8d8b5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instances.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// StartInstances invokes the ecs.StartInstances API synchronously -func (client *Client) StartInstances(request *StartInstancesRequest) (response *StartInstancesResponse, err error) { - response = CreateStartInstancesResponse() - err = client.DoAction(request, response) - return -} - -// StartInstancesWithChan invokes the ecs.StartInstances API asynchronously -func (client *Client) StartInstancesWithChan(request *StartInstancesRequest) (<-chan *StartInstancesResponse, <-chan error) { - responseChan := make(chan *StartInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.StartInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// StartInstancesWithCallback invokes the ecs.StartInstances API asynchronously -func (client *Client) StartInstancesWithCallback(request *StartInstancesRequest, callback func(response *StartInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *StartInstancesResponse - var err error - defer close(result) - response, err = client.StartInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// StartInstancesRequest is the request struct for api StartInstances -type StartInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - BatchOptimization string `position:"Query" name:"BatchOptimization"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` -} - -// StartInstancesResponse is the response struct for api StartInstances -type StartInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceResponses InstanceResponsesInStartInstances `json:"InstanceResponses" xml:"InstanceResponses"` -} - -// CreateStartInstancesRequest creates a request to invoke StartInstances API -func CreateStartInstancesRequest() (request *StartInstancesRequest) { - request = &StartInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "StartInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateStartInstancesResponse creates a response to parse from StartInstances response -func CreateStartInstancesResponse() (response *StartInstancesResponse) { - response = &StartInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_terminal_session.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_terminal_session.go deleted file mode 100644 index c5db0f2ee4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_terminal_session.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// StartTerminalSession invokes the ecs.StartTerminalSession API synchronously -func (client *Client) StartTerminalSession(request *StartTerminalSessionRequest) (response *StartTerminalSessionResponse, err error) { - response = CreateStartTerminalSessionResponse() - err = client.DoAction(request, response) - return -} - -// StartTerminalSessionWithChan invokes the ecs.StartTerminalSession API asynchronously -func (client *Client) StartTerminalSessionWithChan(request *StartTerminalSessionRequest) (<-chan *StartTerminalSessionResponse, <-chan error) { - responseChan := make(chan *StartTerminalSessionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.StartTerminalSession(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// StartTerminalSessionWithCallback invokes the ecs.StartTerminalSession API asynchronously -func (client *Client) StartTerminalSessionWithCallback(request *StartTerminalSessionRequest, callback func(response *StartTerminalSessionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *StartTerminalSessionResponse - var err error - defer close(result) - response, err = client.StartTerminalSession(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// StartTerminalSessionRequest is the request struct for api StartTerminalSession -type StartTerminalSessionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CommandLine string `position:"Query" name:"CommandLine"` - TargetServer string `position:"Query" name:"TargetServer"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - PortNumber requests.Integer `position:"Query" name:"PortNumber"` - Username string `position:"Query" name:"Username"` -} - -// StartTerminalSessionResponse is the response struct for api StartTerminalSession -type StartTerminalSessionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SessionId string `json:"SessionId" xml:"SessionId"` - SecurityToken string `json:"SecurityToken" xml:"SecurityToken"` - WebSocketUrl string `json:"WebSocketUrl" xml:"WebSocketUrl"` -} - -// CreateStartTerminalSessionRequest creates a request to invoke StartTerminalSession API -func CreateStartTerminalSessionRequest() (request *StartTerminalSessionRequest) { - request = &StartTerminalSessionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "StartTerminalSession", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateStartTerminalSessionResponse creates a response to parse from StartTerminalSession response -func CreateStartTerminalSessionResponse() (response *StartTerminalSessionResponse) { - response = &StartTerminalSessionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go deleted file mode 100644 index 6f22dec416..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// StopInstance invokes the ecs.StopInstance API synchronously -func (client *Client) StopInstance(request *StopInstanceRequest) (response *StopInstanceResponse, err error) { - response = CreateStopInstanceResponse() - err = client.DoAction(request, response) - return -} - -// StopInstanceWithChan invokes the ecs.StopInstance API asynchronously -func (client *Client) StopInstanceWithChan(request *StopInstanceRequest) (<-chan *StopInstanceResponse, <-chan error) { - responseChan := make(chan *StopInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.StopInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// StopInstanceWithCallback invokes the ecs.StopInstance API asynchronously -func (client *Client) StopInstanceWithCallback(request *StopInstanceRequest, callback func(response *StopInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *StopInstanceResponse - var err error - defer close(result) - response, err = client.StopInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// StopInstanceRequest is the request struct for api StopInstance -type StopInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StoppedMode string `position:"Query" name:"StoppedMode"` - Hibernate requests.Boolean `position:"Query" name:"Hibernate"` - ForceStop requests.Boolean `position:"Query" name:"ForceStop"` - ConfirmStop requests.Boolean `position:"Query" name:"ConfirmStop"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// StopInstanceResponse is the response struct for api StopInstance -type StopInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateStopInstanceRequest creates a request to invoke StopInstance API -func CreateStopInstanceRequest() (request *StopInstanceRequest) { - request = &StopInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "StopInstance", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateStopInstanceResponse creates a response to parse from StopInstance response -func CreateStopInstanceResponse() (response *StopInstanceResponse) { - response = &StopInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instances.go deleted file mode 100644 index 7195eaf1b8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instances.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// StopInstances invokes the ecs.StopInstances API synchronously -func (client *Client) StopInstances(request *StopInstancesRequest) (response *StopInstancesResponse, err error) { - response = CreateStopInstancesResponse() - err = client.DoAction(request, response) - return -} - -// StopInstancesWithChan invokes the ecs.StopInstances API asynchronously -func (client *Client) StopInstancesWithChan(request *StopInstancesRequest) (<-chan *StopInstancesResponse, <-chan error) { - responseChan := make(chan *StopInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.StopInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// StopInstancesWithCallback invokes the ecs.StopInstances API asynchronously -func (client *Client) StopInstancesWithCallback(request *StopInstancesRequest, callback func(response *StopInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *StopInstancesResponse - var err error - defer close(result) - response, err = client.StopInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// StopInstancesRequest is the request struct for api StopInstances -type StopInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - StoppedMode string `position:"Query" name:"StoppedMode"` - ForceStop requests.Boolean `position:"Query" name:"ForceStop"` - BatchOptimization string `position:"Query" name:"BatchOptimization"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` -} - -// StopInstancesResponse is the response struct for api StopInstances -type StopInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceResponses InstanceResponsesInStopInstances `json:"InstanceResponses" xml:"InstanceResponses"` -} - -// CreateStopInstancesRequest creates a request to invoke StopInstances API -func CreateStopInstancesRequest() (request *StopInstancesRequest) { - request = &StopInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "StopInstances", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateStopInstancesResponse creates a response to parse from StopInstances response -func CreateStopInstancesResponse() (response *StopInstancesResponse) { - response = &StopInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go deleted file mode 100644 index 87c98fcff0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go +++ /dev/null @@ -1,104 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// StopInvocation invokes the ecs.StopInvocation API synchronously -func (client *Client) StopInvocation(request *StopInvocationRequest) (response *StopInvocationResponse, err error) { - response = CreateStopInvocationResponse() - err = client.DoAction(request, response) - return -} - -// StopInvocationWithChan invokes the ecs.StopInvocation API asynchronously -func (client *Client) StopInvocationWithChan(request *StopInvocationRequest) (<-chan *StopInvocationResponse, <-chan error) { - responseChan := make(chan *StopInvocationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.StopInvocation(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// StopInvocationWithCallback invokes the ecs.StopInvocation API asynchronously -func (client *Client) StopInvocationWithCallback(request *StopInvocationRequest, callback func(response *StopInvocationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *StopInvocationResponse - var err error - defer close(result) - response, err = client.StopInvocation(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// StopInvocationRequest is the request struct for api StopInvocation -type StopInvocationRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InvokeId string `position:"Query" name:"InvokeId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` -} - -// StopInvocationResponse is the response struct for api StopInvocation -type StopInvocationResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateStopInvocationRequest creates a request to invoke StopInvocation API -func CreateStopInvocationRequest() (request *StopInvocationRequest) { - request = &StopInvocationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "StopInvocation", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateStopInvocationResponse creates a response to parse from StopInvocation response -func CreateStopInvocationResponse() (response *StopInvocationResponse) { - response = &StopInvocationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go deleted file mode 100644 index 40c538f8b0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AccessPointSet is a nested struct in ecs response -type AccessPointSet struct { - AccessPointType []AccessPointType `json:"AccessPointType" xml:"AccessPointType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go deleted file mode 100644 index f055e0de1b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go +++ /dev/null @@ -1,28 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AccessPointType is a nested struct in ecs response -type AccessPointType struct { - Status string `json:"Status" xml:"Status"` - Type string `json:"Type" xml:"Type"` - HostOperator string `json:"HostOperator" xml:"HostOperator"` - Description string `json:"Description" xml:"Description"` - AttachedRegionNo string `json:"AttachedRegionNo" xml:"AttachedRegionNo"` - Name string `json:"Name" xml:"Name"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - Location string `json:"Location" xml:"Location"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go deleted file mode 100644 index a107429a9e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Account is a nested struct in ecs response -type Account struct { - AliyunId string `json:"AliyunId" xml:"AliyunId"` - SharedTime string `json:"SharedTime" xml:"SharedTime"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_item.go deleted file mode 100644 index 43ded2036d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_item.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AccountAttributeItem is a nested struct in ecs response -type AccountAttributeItem struct { - AttributeName string `json:"AttributeName" xml:"AttributeName"` - AttributeValues AttributeValues `json:"AttributeValues" xml:"AttributeValues"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_items.go deleted file mode 100644 index 93a3b6afdd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account_attribute_items.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AccountAttributeItems is a nested struct in ecs response -type AccountAttributeItems struct { - AccountAttributeItem []AccountAttributeItem `json:"AccountAttributeItem" xml:"AccountAttributeItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go deleted file mode 100644 index f287e0e1f7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_accounts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Accounts is a nested struct in ecs response -type Accounts struct { - Account []Account `json:"Account" xml:"Account"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_action_on_maintenance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_action_on_maintenance.go deleted file mode 100644 index 75d826a9c8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_action_on_maintenance.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ActionOnMaintenance is a nested struct in ecs response -type ActionOnMaintenance struct { - DefaultValue string `json:"DefaultValue" xml:"DefaultValue"` - Value string `json:"Value" xml:"Value"` - SupportedValues SupportedValues `json:"SupportedValues" xml:"SupportedValues"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation.go deleted file mode 100644 index ac5b6c1d46..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Activation is a nested struct in ecs response -type Activation struct { - DeregisteredCount int `json:"DeregisteredCount" xml:"DeregisteredCount"` - InstanceCount int `json:"InstanceCount" xml:"InstanceCount"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - RegisteredCount int `json:"RegisteredCount" xml:"RegisteredCount"` - TimeToLiveInHours int64 `json:"TimeToLiveInHours" xml:"TimeToLiveInHours"` - ActivationId string `json:"ActivationId" xml:"ActivationId"` - Disabled bool `json:"Disabled" xml:"Disabled"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Description string `json:"Description" xml:"Description"` - IpAddressRange string `json:"IpAddressRange" xml:"IpAddressRange"` - Tags []Tag `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation_list.go deleted file mode 100644 index 393278eb6e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation_list.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ActivationList is a nested struct in ecs response -type ActivationList struct { - Activation []Activation `json:"Activation" xml:"Activation"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go deleted file mode 100644 index de7f341685..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ActivityDetail is a nested struct in ecs response -type ActivityDetail struct { - Status string `json:"Status" xml:"Status"` - Detail string `json:"Detail" xml:"Detail"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details.go deleted file mode 100644 index 78888ade18..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ActivityDetails is a nested struct in ecs response -type ActivityDetails struct { - ActivityDetail []ActivityDetail `json:"ActivityDetail" xml:"ActivityDetail"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_add_accounts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_add_accounts.go deleted file mode 100644 index 95e5bb6479..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_add_accounts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AddAccounts is a nested struct in ecs response -type AddAccounts struct { - AddAccount []string `json:"AddAccount" xml:"AddAccount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_additional_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_additional_info.go deleted file mode 100644 index 5fff1fab04..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_additional_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AdditionalInfo is a nested struct in ecs response -type AdditionalInfo struct { - EnableHighDensityMode bool `json:"EnableHighDensityMode" xml:"EnableHighDensityMode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_advanced_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_advanced_options.go deleted file mode 100644 index 29424da650..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_advanced_options.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AdvancedOptions is a nested struct in ecs response -type AdvancedOptions struct { - RetainCloudAssistant bool `json:"RetainCloudAssistant" xml:"RetainCloudAssistant"` - SkipBuildImage bool `json:"SkipBuildImage" xml:"SkipBuildImage"` - SkipCheckImage bool `json:"SkipCheckImage" xml:"SkipCheckImage"` - ImageNameSuffix string `json:"ImageNameSuffix" xml:"ImageNameSuffix"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_agent_upgrade_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_agent_upgrade_config.go deleted file mode 100644 index aa4c637ee1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_agent_upgrade_config.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AgentUpgradeConfig is a nested struct in ecs response -type AgentUpgradeConfig struct { - Enabled bool `json:"Enabled" xml:"Enabled"` - TimeZone string `json:"TimeZone" xml:"TimeZone"` - AllowedUpgradeWindows AllowedUpgradeWindows `json:"AllowedUpgradeWindows" xml:"AllowedUpgradeWindows"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resource.go deleted file mode 100644 index 7ab0478a17..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resource.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AllocatedResource is a nested struct in ecs response -type AllocatedResource struct { - AvailableAmount int `json:"AvailableAmount" xml:"AvailableAmount"` - TotalAmount int `json:"TotalAmount" xml:"TotalAmount"` - UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - ZoneId string `json:"zoneId" xml:"zoneId"` - CapacityReservationUsages CapacityReservationUsages `json:"CapacityReservationUsages" xml:"CapacityReservationUsages"` - ElasticityAssuranceUsages ElasticityAssuranceUsages `json:"ElasticityAssuranceUsages" xml:"ElasticityAssuranceUsages"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_capacity_reservations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_capacity_reservations.go deleted file mode 100644 index 98dd768abb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_capacity_reservations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AllocatedResourcesInDescribeCapacityReservations is a nested struct in ecs response -type AllocatedResourcesInDescribeCapacityReservations struct { - AllocatedResource []AllocatedResource `json:"AllocatedResource" xml:"AllocatedResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go deleted file mode 100644 index f6198ae42d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AllocatedResourcesInDescribeElasticityAssurances is a nested struct in ecs response -type AllocatedResourcesInDescribeElasticityAssurances struct { - AllocatedResource []AllocatedResource `json:"AllocatedResource" xml:"AllocatedResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allowed_upgrade_windows_.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allowed_upgrade_windows_.go deleted file mode 100644 index 6c4fdbb1dc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allowed_upgrade_windows_.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AllowedUpgradeWindows is a nested struct in ecs response -type AllowedUpgradeWindows struct { - AllowedUpgradeWindow []string `json:"AllowedUpgradeWindow" xml:"AllowedUpgradeWindow"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_assigned_private_ip_addresses_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_assigned_private_ip_addresses_set.go deleted file mode 100644 index 9ae1e26c06..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_assigned_private_ip_addresses_set.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AssignedPrivateIpAddressesSet is a nested struct in ecs response -type AssignedPrivateIpAddressesSet struct { - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - PrivateIpSet PrivateIpSetInAssignPrivateIpAddresses `json:"PrivateIpSet" xml:"PrivateIpSet"` - Ipv4PrefixSet Ipv4PrefixSetInAssignPrivateIpAddresses `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go deleted file mode 100644 index 1adc3d063e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_eip_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AssociatedEipAddresses is a nested struct in ecs response -type AssociatedEipAddresses struct { - AssociatedEipAddresse []string `json:"associatedEipAddresse" xml:"associatedEipAddresse"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go deleted file mode 100644 index 37331c3468..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AssociatedInstances is a nested struct in ecs response -type AssociatedInstances struct { - AssociatedInstance []string `json:"associatedInstance" xml:"associatedInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go deleted file mode 100644 index 4287bc31b2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_associated_public_ip.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AssociatedPublicIp is a nested struct in ecs response -type AssociatedPublicIp struct { - PublicIpAddress string `json:"PublicIpAddress" xml:"PublicIpAddress"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go deleted file mode 100644 index 14c5ed6a97..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AttachInstanceRamRoleResult is a nested struct in ecs response -type AttachInstanceRamRoleResult struct { - Code string `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Success bool `json:"Success" xml:"Success"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go deleted file mode 100644 index b5d998ca82..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AttachInstanceRamRoleResults is a nested struct in ecs response -type AttachInstanceRamRoleResults struct { - AttachInstanceRamRoleResult []AttachInstanceRamRoleResult `json:"AttachInstanceRamRoleResult" xml:"AttachInstanceRamRoleResult"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachment.go deleted file mode 100644 index 591b7ebedf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachment.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Attachment is a nested struct in ecs response -type Attachment struct { - Nguid string `json:"Nguid" xml:"Nguid"` - NsId int64 `json:"NsId" xml:"NsId"` - Device string `json:"Device" xml:"Device"` - TargetDevice string `json:"TargetDevice" xml:"TargetDevice"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Identifier string `json:"Identifier" xml:"Identifier"` - AccessToken string `json:"AccessToken" xml:"AccessToken"` - DeviceIndex int `json:"DeviceIndex" xml:"DeviceIndex"` - NetworkCardIndex int `json:"NetworkCardIndex" xml:"NetworkCardIndex"` - TrunkNetworkInterfaceId string `json:"TrunkNetworkInterfaceId" xml:"TrunkNetworkInterfaceId"` - AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` - MemberNetworkInterfaceIds MemberNetworkInterfaceIds `json:"MemberNetworkInterfaceIds" xml:"MemberNetworkInterfaceIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachments.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachments.go deleted file mode 100644 index 78df5e0994..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachments.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Attachments is a nested struct in ecs response -type Attachments struct { - Attachment []Attachment `json:"Attachment" xml:"Attachment"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute.go deleted file mode 100644 index 4c9d9009ca..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Attribute is a nested struct in ecs response -type Attribute struct { - Value string `json:"Value" xml:"Value"` - Code string `json:"Code" xml:"Code"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute_values.go deleted file mode 100644 index 76eb7dea1c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attribute_values.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AttributeValues is a nested struct in ecs response -type AttributeValues struct { - ValueItem []ValueItem `json:"ValueItem" xml:"ValueItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_instance_modification_price.go deleted file mode 100644 index 98d4cad580..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AttributesInDescribeInstanceModificationPrice is a nested struct in ecs response -type AttributesInDescribeInstanceModificationPrice struct { - Attribute []Attribute `json:"Attribute" xml:"Attribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_price.go deleted file mode 100644 index 98dbf4082e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AttributesInDescribePrice is a nested struct in ecs response -type AttributesInDescribePrice struct { - Attribute []Attribute `json:"Attribute" xml:"Attribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_renewal_price.go deleted file mode 100644 index e000eaa5bd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attributes_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AttributesInDescribeRenewalPrice is a nested struct in ecs response -type AttributesInDescribeRenewalPrice struct { - Attribute []Attribute `json:"Attribute" xml:"Attribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go deleted file mode 100644 index f29d806bfe..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go +++ /dev/null @@ -1,41 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AutoProvisioningGroup is a nested struct in ecs response -type AutoProvisioningGroup struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - AutoProvisioningGroupName string `json:"AutoProvisioningGroupName" xml:"AutoProvisioningGroupName"` - Status string `json:"Status" xml:"Status"` - TerminateInstances bool `json:"TerminateInstances" xml:"TerminateInstances"` - MaxSpotPrice float64 `json:"MaxSpotPrice" xml:"MaxSpotPrice"` - State string `json:"State" xml:"State"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - ValidFrom string `json:"ValidFrom" xml:"ValidFrom"` - LaunchTemplateVersion string `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"` - TerminateInstancesWithExpiration bool `json:"TerminateInstancesWithExpiration" xml:"TerminateInstancesWithExpiration"` - RegionId string `json:"RegionId" xml:"RegionId"` - ValidUntil string `json:"ValidUntil" xml:"ValidUntil"` - AutoProvisioningGroupType string `json:"AutoProvisioningGroupType" xml:"AutoProvisioningGroupType"` - AutoProvisioningGroupId string `json:"AutoProvisioningGroupId" xml:"AutoProvisioningGroupId"` - ExcessCapacityTerminationPolicy string `json:"ExcessCapacityTerminationPolicy" xml:"ExcessCapacityTerminationPolicy"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SpotOptions SpotOptions `json:"SpotOptions" xml:"SpotOptions"` - PayAsYouGoOptions PayAsYouGoOptions `json:"PayAsYouGoOptions" xml:"PayAsYouGoOptions"` - TargetCapacitySpecification TargetCapacitySpecification `json:"TargetCapacitySpecification" xml:"TargetCapacitySpecification"` - LaunchTemplateConfigs LaunchTemplateConfigs `json:"LaunchTemplateConfigs" xml:"LaunchTemplateConfigs"` - Tags TagsInDescribeAutoProvisioningGroups `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_histories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_histories.go deleted file mode 100644 index 8965b9aa7e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_histories.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AutoProvisioningGroupHistories is a nested struct in ecs response -type AutoProvisioningGroupHistories struct { - AutoProvisioningGroupHistory []AutoProvisioningGroupHistory `json:"AutoProvisioningGroupHistory" xml:"AutoProvisioningGroupHistory"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go deleted file mode 100644 index 385f9c637b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AutoProvisioningGroupHistory is a nested struct in ecs response -type AutoProvisioningGroupHistory struct { - Status string `json:"Status" xml:"Status"` - StartTime string `json:"StartTime" xml:"StartTime"` - TaskId string `json:"TaskId" xml:"TaskId"` - LastEventTime string `json:"LastEventTime" xml:"LastEventTime"` - ActivityDetails ActivityDetails `json:"ActivityDetails" xml:"ActivityDetails"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_groups.go deleted file mode 100644 index 9504128d03..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AutoProvisioningGroups is a nested struct in ecs response -type AutoProvisioningGroups struct { - AutoProvisioningGroup []AutoProvisioningGroup `json:"AutoProvisioningGroup" xml:"AutoProvisioningGroup"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go deleted file mode 100644 index 8c3e62ce60..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policies.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AutoSnapshotPolicies is a nested struct in ecs response -type AutoSnapshotPolicies struct { - AutoSnapshotPolicy []AutoSnapshotPolicy `json:"AutoSnapshotPolicy" xml:"AutoSnapshotPolicy"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go deleted file mode 100644 index 6a77afa754..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go +++ /dev/null @@ -1,37 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AutoSnapshotPolicy is a nested struct in ecs response -type AutoSnapshotPolicy struct { - TimePoints string `json:"TimePoints" xml:"TimePoints"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` - AutoSnapshotPolicyName string `json:"AutoSnapshotPolicyName" xml:"AutoSnapshotPolicyName"` - TargetCopyRegions string `json:"TargetCopyRegions" xml:"TargetCopyRegions"` - CopiedSnapshotsRetentionDays int `json:"CopiedSnapshotsRetentionDays" xml:"CopiedSnapshotsRetentionDays"` - AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` - RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` - RegionId string `json:"RegionId" xml:"RegionId"` - DiskNums int `json:"DiskNums" xml:"DiskNums"` - EnableCrossRegionCopy bool `json:"EnableCrossRegionCopy" xml:"EnableCrossRegionCopy"` - RepeatWeekdays string `json:"RepeatWeekdays" xml:"RepeatWeekdays"` - VolumeNums int `json:"VolumeNums" xml:"VolumeNums"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Type string `json:"Type" xml:"Type"` - CopyEncryptionConfiguration CopyEncryptionConfiguration `json:"CopyEncryptionConfiguration" xml:"CopyEncryptionConfiguration"` - Tags TagsInDescribeAutoSnapshotPolicyEx `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go deleted file mode 100644 index 86eaf0ee5b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_dedicated_host_types.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableDedicatedHostTypes is a nested struct in ecs response -type AvailableDedicatedHostTypes struct { - DedicatedHostType []string `json:"DedicatedHostType" xml:"DedicatedHostType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go deleted file mode 100644 index 4de10595de..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_disk_categories.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableDiskCategories is a nested struct in ecs response -type AvailableDiskCategories struct { - DiskCategories []string `json:"DiskCategories" xml:"DiskCategories"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_type.go deleted file mode 100644 index 2e0a995fb9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_type.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableInstanceType is a nested struct in ecs response -type AvailableInstanceType struct { - InstanceType string `json:"InstanceType" xml:"InstanceType"` - AvailableInstanceCapacity int `json:"AvailableInstanceCapacity" xml:"AvailableInstanceCapacity"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_dedicated_host_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_dedicated_host_clusters.go deleted file mode 100644 index c1cff92aff..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_dedicated_host_clusters.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableInstanceTypesInDescribeDedicatedHostClusters is a nested struct in ecs response -type AvailableInstanceTypesInDescribeDedicatedHostClusters struct { - AvailableInstanceType []AvailableInstanceType `json:"AvailableInstanceType" xml:"AvailableInstanceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_zones.go deleted file mode 100644 index 0dd5075d64..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableInstanceTypesInDescribeZones is a nested struct in ecs response -type AvailableInstanceTypesInDescribeZones struct { - InstanceTypes []string `json:"InstanceTypes" xml:"InstanceTypes"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go deleted file mode 100644 index df4ad6edb5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableResource is a nested struct in ecs response -type AvailableResource struct { - Type string `json:"Type" xml:"Type"` - ConditionSupportedResources ConditionSupportedResources `json:"ConditionSupportedResources" xml:"ConditionSupportedResources"` - SupportedResources SupportedResourcesInDescribeAvailableResource `json:"SupportedResources" xml:"SupportedResources"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go deleted file mode 100644 index 4a20f01be2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource_creation.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableResourceCreation is a nested struct in ecs response -type AvailableResourceCreation struct { - ResourceTypes []string `json:"ResourceTypes" xml:"ResourceTypes"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go deleted file mode 100644 index 8638d99a69..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_available_resource.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableResourcesInDescribeAvailableResource is a nested struct in ecs response -type AvailableResourcesInDescribeAvailableResource struct { - AvailableResource []AvailableResource `json:"AvailableResource" xml:"AvailableResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go deleted file mode 100644 index 73eb771b8f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_resources_modification.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableResourcesInDescribeResourcesModification is a nested struct in ecs response -type AvailableResourcesInDescribeResourcesModification struct { - AvailableResource []AvailableResource `json:"AvailableResource" xml:"AvailableResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go deleted file mode 100644 index 4c2db7ba5c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resources_in_describe_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableResourcesInDescribeZones is a nested struct in ecs response -type AvailableResourcesInDescribeZones struct { - ResourcesInfo []ResourcesInfo `json:"ResourcesInfo" xml:"ResourcesInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resource.go deleted file mode 100644 index 4deb791cd4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resource.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableSpotResource is a nested struct in ecs response -type AvailableSpotResource struct { - InterruptRateDesc string `json:"InterruptRateDesc" xml:"InterruptRateDesc"` - AverageSpotDiscount int `json:"AverageSpotDiscount" xml:"AverageSpotDiscount"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - InterruptionRate float64 `json:"InterruptionRate" xml:"InterruptionRate"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resources.go deleted file mode 100644 index 7ac39a367f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableSpotResources is a nested struct in ecs response -type AvailableSpotResources struct { - AvailableSpotResource []AvailableSpotResource `json:"AvailableSpotResource" xml:"AvailableSpotResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zone.go deleted file mode 100644 index 35eaab04f1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zone.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableSpotZone is a nested struct in ecs response -type AvailableSpotZone struct { - ZoneId string `json:"ZoneId" xml:"ZoneId"` - AvailableSpotResources AvailableSpotResources `json:"AvailableSpotResources" xml:"AvailableSpotResources"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zones.go deleted file mode 100644 index aff52de43f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableSpotZones is a nested struct in ecs response -type AvailableSpotZones struct { - AvailableSpotZone []AvailableSpotZone `json:"AvailableSpotZone" xml:"AvailableSpotZone"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go deleted file mode 100644 index 97fdf0daa2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_volume_categories.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableVolumeCategories is a nested struct in ecs response -type AvailableVolumeCategories struct { - VolumeCategories []string `json:"VolumeCategories" xml:"VolumeCategories"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go deleted file mode 100644 index 8c9df90789..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zone.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableZone is a nested struct in ecs response -type AvailableZone struct { - RegionId string `json:"RegionId" xml:"RegionId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - StatusCategory string `json:"StatusCategory" xml:"StatusCategory"` - Status string `json:"Status" xml:"Status"` - AvailableResources AvailableResourcesInDescribeResourcesModification `json:"AvailableResources" xml:"AvailableResources"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go deleted file mode 100644 index c0947c37df..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_available_resource.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableZonesInDescribeAvailableResource is a nested struct in ecs response -type AvailableZonesInDescribeAvailableResource struct { - AvailableZone []AvailableZone `json:"AvailableZone" xml:"AvailableZone"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go deleted file mode 100644 index 9368019c26..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_zones_in_describe_resources_modification.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AvailableZonesInDescribeResourcesModification is a nested struct in ecs response -type AvailableZonesInDescribeResourcesModification struct { - AvailableZone []AvailableZone `json:"AvailableZone" xml:"AvailableZone"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go deleted file mode 100644 index 2d70494045..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Bandwidth is a nested struct in ecs response -type Bandwidth struct { - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - Max int `json:"Max" xml:"Max"` - Min int `json:"Min" xml:"Min"` - Unit string `json:"Unit" xml:"Unit"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go deleted file mode 100644 index 6180a10b8a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go +++ /dev/null @@ -1,35 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// BandwidthPackage is a nested struct in ecs response -type BandwidthPackage struct { - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - IpCount string `json:"IpCount" xml:"IpCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` - Description string `json:"Description" xml:"Description"` - Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` - NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - Name string `json:"Name" xml:"Name"` - ISP string `json:"ISP" xml:"ISP"` - PublicIpAddresses PublicIpAddresses `json:"PublicIpAddresses" xml:"PublicIpAddresses"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go deleted file mode 100644 index 816324bef9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_create_nat_gateway.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// BandwidthPackageIdsInCreateNatGateway is a nested struct in ecs response -type BandwidthPackageIdsInCreateNatGateway struct { - BandwidthPackageId []string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go deleted file mode 100644 index f25820e452..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package_ids_in_describe_nat_gateways.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// BandwidthPackageIdsInDescribeNatGateways is a nested struct in ecs response -type BandwidthPackageIdsInDescribeNatGateways struct { - BandwidthPackageId []string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go deleted file mode 100644 index 5654030794..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_packages.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// BandwidthPackages is a nested struct in ecs response -type BandwidthPackages struct { - BandwidthPackage []BandwidthPackage `json:"BandwidthPackage" xml:"BandwidthPackage"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go deleted file mode 100644 index 84ecd4b03f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidths.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Bandwidths is a nested struct in ecs response -type Bandwidths struct { - Bandwidth []Bandwidth `json:"Bandwidth" xml:"Bandwidth"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bond_interface_specification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bond_interface_specification.go deleted file mode 100644 index bd9968204b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bond_interface_specification.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// BondInterfaceSpecification is a nested struct in ecs response -type BondInterfaceSpecification struct { - BondMode string `json:"BondMode" xml:"BondMode"` - SlaveInterfaceSpecification SlaveInterfaceSpecificationInDescribeNetworkInterfaceAttribute `json:"SlaveInterfaceSpecification" xml:"SlaveInterfaceSpecification"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacities.go deleted file mode 100644 index 760c83b604..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacities.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Capacities is a nested struct in ecs response -type Capacities struct { - Capacity []Capacity `json:"Capacity" xml:"Capacity"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go deleted file mode 100644 index 5d8e569436..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go +++ /dev/null @@ -1,33 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Capacity is a nested struct in ecs response -type Capacity struct { - TotalLocalStorage int `json:"TotalLocalStorage" xml:"TotalLocalStorage"` - AvailableAmount int `json:"AvailableAmount" xml:"AvailableAmount"` - AvailableVcpus int `json:"AvailableVcpus" xml:"AvailableVcpus"` - UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` - AvailableLocalStorage int `json:"AvailableLocalStorage" xml:"AvailableLocalStorage"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - TotalVgpus int `json:"TotalVgpus" xml:"TotalVgpus"` - AvailableMemory float64 `json:"AvailableMemory" xml:"AvailableMemory"` - TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` - AvailableVgpus int `json:"AvailableVgpus" xml:"AvailableVgpus"` - LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` - TotalMemory float64 `json:"TotalMemory" xml:"TotalMemory"` - SocketCapacities SocketCapacities `json:"SocketCapacities" xml:"SocketCapacities"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item.go deleted file mode 100644 index 8d619afc19..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item.go +++ /dev/null @@ -1,39 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CapacityReservationItem is a nested struct in ecs response -type CapacityReservationItem struct { - PrivatePoolOptionsName string `json:"PrivatePoolOptionsName" xml:"PrivatePoolOptionsName"` - EndTimeType string `json:"EndTimeType" xml:"EndTimeType"` - PrivatePoolOptionsMatchCriteria string `json:"PrivatePoolOptionsMatchCriteria" xml:"PrivatePoolOptionsMatchCriteria"` - TimeSlot string `json:"TimeSlot" xml:"TimeSlot"` - ReservedInstanceId string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` - Platform string `json:"Platform" xml:"Platform"` - CapacityReservationOwnerId string `json:"CapacityReservationOwnerId" xml:"CapacityReservationOwnerId"` - RegionId string `json:"RegionId" xml:"RegionId"` - StartTime string `json:"StartTime" xml:"StartTime"` - EndTime string `json:"EndTime" xml:"EndTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SavingPlanId string `json:"SavingPlanId" xml:"SavingPlanId"` - StartTimeType string `json:"StartTimeType" xml:"StartTimeType"` - Status string `json:"Status" xml:"Status"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - Description string `json:"Description" xml:"Description"` - PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` - Tags TagsInDescribeCapacityReservations `json:"Tags" xml:"Tags"` - AllocatedResources AllocatedResourcesInDescribeCapacityReservations `json:"AllocatedResources" xml:"AllocatedResources"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item_in_describe_capacity_reservation_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item_in_describe_capacity_reservation_instances.go deleted file mode 100644 index 2d0cafa608..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item_in_describe_capacity_reservation_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CapacityReservationItemInDescribeCapacityReservationInstances is a nested struct in ecs response -type CapacityReservationItemInDescribeCapacityReservationInstances struct { - InstanceIdSet []InstanceIdSet `json:"InstanceIdSet" xml:"InstanceIdSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_set.go deleted file mode 100644 index ce79326b01..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CapacityReservationSet is a nested struct in ecs response -type CapacityReservationSet struct { - CapacityReservationItem []CapacityReservationItem `json:"CapacityReservationItem" xml:"CapacityReservationItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usage.go deleted file mode 100644 index 72feaafca1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usage.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CapacityReservationUsage is a nested struct in ecs response -type CapacityReservationUsage struct { - AccountId string `json:"AccountId" xml:"AccountId"` - ServiceName string `json:"ServiceName" xml:"ServiceName"` - UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usages.go deleted file mode 100644 index 7cd34849ef..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usages.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CapacityReservationUsages is a nested struct in ecs response -type CapacityReservationUsages struct { - CapacityReservationUsage []CapacityReservationUsage `json:"CapacityReservationUsage" xml:"CapacityReservationUsage"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go deleted file mode 100644 index 7fe7b720f5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cluster.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Cluster is a nested struct in ecs response -type Cluster struct { - ClusterId string `json:"ClusterId" xml:"ClusterId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go deleted file mode 100644 index a8a0b654ff..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_clusters.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Clusters is a nested struct in ecs response -type Clusters struct { - Cluster []Cluster `json:"Cluster" xml:"Cluster"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go deleted file mode 100644 index a4d1e9e284..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go +++ /dev/null @@ -1,39 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Command is a nested struct in ecs response -type Command struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Type string `json:"Type" xml:"Type"` - Timeout int64 `json:"Timeout" xml:"Timeout"` - InvokeTimes int `json:"InvokeTimes" xml:"InvokeTimes"` - CommandId string `json:"CommandId" xml:"CommandId"` - WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` - Description string `json:"Description" xml:"Description"` - Version int `json:"Version" xml:"Version"` - Provider string `json:"Provider" xml:"Provider"` - CommandContent string `json:"CommandContent" xml:"CommandContent"` - Category string `json:"Category" xml:"Category"` - Latest bool `json:"Latest" xml:"Latest"` - Name string `json:"Name" xml:"Name"` - EnableParameter bool `json:"EnableParameter" xml:"EnableParameter"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Launcher string `json:"Launcher" xml:"Launcher"` - ParameterNames ParameterNames `json:"ParameterNames" xml:"ParameterNames"` - ParameterDefinitions ParameterDefinitions `json:"ParameterDefinitions" xml:"ParameterDefinitions"` - Tags TagsInDescribeCommands `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go deleted file mode 100644 index 1843b1ba6a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_commands.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Commands is a nested struct in ecs response -type Commands struct { - Command []Command `json:"Command" xml:"Command"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition.go deleted file mode 100644 index 901d218930..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Condition is a nested struct in ecs response -type Condition struct { - Key string `json:"Key" xml:"Key"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resource.go deleted file mode 100644 index 29cfe94010..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resource.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ConditionSupportedResource is a nested struct in ecs response -type ConditionSupportedResource struct { - Status string `json:"Status" xml:"Status"` - Value string `json:"Value" xml:"Value"` - Max int `json:"Max" xml:"Max"` - Unit string `json:"Unit" xml:"Unit"` - StatusCategory string `json:"StatusCategory" xml:"StatusCategory"` - Min int `json:"Min" xml:"Min"` - Conditions Conditions `json:"Conditions" xml:"Conditions"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resources.go deleted file mode 100644 index 1374a5a110..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ConditionSupportedResources is a nested struct in ecs response -type ConditionSupportedResources struct { - ConditionSupportedResource []ConditionSupportedResource `json:"ConditionSupportedResource" xml:"ConditionSupportedResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_conditions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_conditions.go deleted file mode 100644 index af413d9ba3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_conditions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Conditions is a nested struct in ecs response -type Conditions struct { - Condition []Condition `json:"Condition" xml:"Condition"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection.go deleted file mode 100644 index f4fd09894f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Connection is a nested struct in ecs response -type Connection struct { - ClosedReason string `json:"ClosedReason" xml:"ClosedReason"` - EndTime string `json:"EndTime" xml:"EndTime"` - Status string `json:"Status" xml:"Status"` - StartTime string `json:"StartTime" xml:"StartTime"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection_tracking_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection_tracking_configuration.go deleted file mode 100644 index b09c1653a9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connection_tracking_configuration.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ConnectionTrackingConfiguration is a nested struct in ecs response -type ConnectionTrackingConfiguration struct { - TcpEstablishedTimeout int `json:"TcpEstablishedTimeout" xml:"TcpEstablishedTimeout"` - TcpClosedAndTimeWaitTimeout int `json:"TcpClosedAndTimeWaitTimeout" xml:"TcpClosedAndTimeWaitTimeout"` - UdpTimeout int `json:"UdpTimeout" xml:"UdpTimeout"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connections.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connections.go deleted file mode 100644 index ecd7e41948..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_connections.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Connections is a nested struct in ecs response -type Connections struct { - Connection []Connection `json:"Connection" xml:"Connection"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_copy_encryption_configuration.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_copy_encryption_configuration.go deleted file mode 100644 index d640dd4e0f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_copy_encryption_configuration.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CopyEncryptionConfiguration is a nested struct in ecs response -type CopyEncryptionConfiguration struct { - Encrypted bool `json:"Encrypted" xml:"Encrypted"` - KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupon.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupon.go deleted file mode 100644 index 19c4455008..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupon.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Coupon is a nested struct in ecs response -type Coupon struct { - Name string `json:"Name" xml:"Name"` - CouponNo string `json:"CouponNo" xml:"CouponNo"` - OptionCode string `json:"OptionCode" xml:"OptionCode"` - IsSelected bool `json:"IsSelected" xml:"IsSelected"` - DiscountOff float64 `json:"DiscountOff" xml:"DiscountOff"` - Description string `json:"Description" xml:"Description"` - RuleIds RuleIdsInDescribeInstanceModificationPrice `json:"RuleIds" xml:"RuleIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_instance_modification_price.go deleted file mode 100644 index 46b42f9b2d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CouponsInDescribeInstanceModificationPrice is a nested struct in ecs response -type CouponsInDescribeInstanceModificationPrice struct { - Coupon []Coupon `json:"Coupon" xml:"Coupon"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_price.go deleted file mode 100644 index c2acddd308..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CouponsInDescribePrice is a nested struct in ecs response -type CouponsInDescribePrice struct { - Coupon []Coupon `json:"Coupon" xml:"Coupon"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_renewal_price.go deleted file mode 100644 index 34dd3f509c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_coupons_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CouponsInDescribeRenewalPrice is a nested struct in ecs response -type CouponsInDescribeRenewalPrice struct { - Coupon []Coupon `json:"Coupon" xml:"Coupon"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cpu_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cpu_options.go deleted file mode 100644 index 05baa6a9da..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cpu_options.go +++ /dev/null @@ -1,28 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// CpuOptions is a nested struct in ecs response -type CpuOptions struct { - Core int `json:"Core" xml:"Core"` - HyperThreadingAdjustable bool `json:"HyperThreadingAdjustable" xml:"HyperThreadingAdjustable"` - CoreCount int `json:"CoreCount" xml:"CoreCount"` - CoreFactor int `json:"CoreFactor" xml:"CoreFactor"` - Numa string `json:"Numa" xml:"Numa"` - TopologyType string `json:"TopologyType" xml:"TopologyType"` - ThreadsPerCore int `json:"ThreadsPerCore" xml:"ThreadsPerCore"` - SupportedTopologyTypes SupportedTopologyTypes `json:"SupportedTopologyTypes" xml:"SupportedTopologyTypes"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go deleted file mode 100644 index 4d6f9c8910..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Data is a nested struct in ecs response -type Data struct { - RecommendInstanceType []RecommendInstanceType `json:"RecommendInstanceType" xml:"RecommendInstanceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go deleted file mode 100644 index 42df0196ed..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DataDisk is a nested struct in ecs response -type DataDisk struct { - PerformanceLevel string `json:"PerformanceLevel" xml:"PerformanceLevel"` - Description string `json:"Description" xml:"Description"` - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - Device string `json:"Device" xml:"Device"` - Size int `json:"Size" xml:"Size"` - DiskName string `json:"DiskName" xml:"DiskName"` - Category string `json:"Category" xml:"Category"` - DeleteWithInstance bool `json:"DeleteWithInstance" xml:"DeleteWithInstance"` - Encrypted string `json:"Encrypted" xml:"Encrypted"` - ProvisionedIops int64 `json:"ProvisionedIops" xml:"ProvisionedIops"` - BurstingEnabled bool `json:"BurstingEnabled" xml:"BurstingEnabled"` - AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go deleted file mode 100644 index 16b26e106b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk_categories.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DataDiskCategories is a nested struct in ecs response -type DataDiskCategories struct { - SupportedDataDiskCategory []string `json:"supportedDataDiskCategory" xml:"supportedDataDiskCategory"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go deleted file mode 100644 index c91ee49c48..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disks.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DataDisks is a nested struct in ecs response -type DataDisks struct { - DataDisk []DataDisk `json:"DataDisk" xml:"DataDisk"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go deleted file mode 100644 index cbde90657d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DataPoint is a nested struct in ecs response -type DataPoint struct { - Size int64 `json:"Size" xml:"Size"` - TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go deleted file mode 100644 index 6ce648993f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go +++ /dev/null @@ -1,53 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHost is a nested struct in ecs response -type DedicatedHost struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - SchedulerOptionsManagedPrivateSpaceId string `json:"SchedulerOptions.ManagedPrivateSpaceId" xml:"SchedulerOptions.ManagedPrivateSpaceId"` - Status string `json:"Status" xml:"Status"` - Cores int `json:"Cores" xml:"Cores"` - AutoPlacement string `json:"AutoPlacement" xml:"AutoPlacement"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` - AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - CpuOverCommitRatio float64 `json:"CpuOverCommitRatio" xml:"CpuOverCommitRatio"` - ActionOnMaintenance string `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"` - SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` - PhysicalGpus int `json:"PhysicalGpus" xml:"PhysicalGpus"` - RegionId string `json:"RegionId" xml:"RegionId"` - DedicatedHostName string `json:"DedicatedHostName" xml:"DedicatedHostName"` - Description string `json:"Description" xml:"Description"` - DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - DedicatedHostType string `json:"DedicatedHostType" xml:"DedicatedHostType"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` - Sockets int `json:"Sockets" xml:"Sockets"` - MachineId string `json:"MachineId" xml:"MachineId"` - DedicatedHostOwnerId int64 `json:"DedicatedHostOwnerId" xml:"DedicatedHostOwnerId"` - SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHosts `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"` - SupportedCustomInstanceTypeFamilies SupportedCustomInstanceTypeFamilies `json:"SupportedCustomInstanceTypeFamilies" xml:"SupportedCustomInstanceTypeFamilies"` - SupportedInstanceTypesList SupportedInstanceTypesListInDescribeDedicatedHosts `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"` - Capacity Capacity `json:"Capacity" xml:"Capacity"` - NetworkAttributes NetworkAttributes `json:"NetworkAttributes" xml:"NetworkAttributes"` - HostDetailInfo HostDetailInfo `json:"HostDetailInfo" xml:"HostDetailInfo"` - Instances InstancesInDescribeDedicatedHosts `json:"Instances" xml:"Instances"` - OperationLocks OperationLocksInDescribeDedicatedHosts `json:"OperationLocks" xml:"OperationLocks"` - Tags TagsInDescribeDedicatedHosts `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go deleted file mode 100644 index dfeca4061e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostAttribute is a nested struct in ecs response -type DedicatedHostAttribute struct { - DedicatedHostName string `json:"DedicatedHostName" xml:"DedicatedHostName"` - DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` - DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster.go deleted file mode 100644 index a335697261..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster.go +++ /dev/null @@ -1,29 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostCluster is a nested struct in ecs response -type DedicatedHostCluster struct { - Description string `json:"Description" xml:"Description"` - DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - RegionId string `json:"RegionId" xml:"RegionId"` - DedicatedHostClusterName string `json:"DedicatedHostClusterName" xml:"DedicatedHostClusterName"` - DedicatedHostIds DedicatedHostIds `json:"DedicatedHostIds" xml:"DedicatedHostIds"` - DedicatedHostClusterCapacity DedicatedHostClusterCapacity `json:"DedicatedHostClusterCapacity" xml:"DedicatedHostClusterCapacity"` - Tags TagsInDescribeDedicatedHostClusters `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster_capacity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster_capacity.go deleted file mode 100644 index 0e8a3af5f6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster_capacity.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostClusterCapacity is a nested struct in ecs response -type DedicatedHostClusterCapacity struct { - AvailableVcpus int `json:"AvailableVcpus" xml:"AvailableVcpus"` - AvailableMemory int `json:"AvailableMemory" xml:"AvailableMemory"` - TotalMemory int `json:"TotalMemory" xml:"TotalMemory"` - TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` - LocalStorageCapacities LocalStorageCapacities `json:"LocalStorageCapacities" xml:"LocalStorageCapacities"` - AvailableInstanceTypes AvailableInstanceTypesInDescribeDedicatedHostClusters `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_clusters.go deleted file mode 100644 index f2076d9b80..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_clusters.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostClusters is a nested struct in ecs response -type DedicatedHostClusters struct { - DedicatedHostCluster []DedicatedHostCluster `json:"DedicatedHostCluster" xml:"DedicatedHostCluster"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go deleted file mode 100644 index 4637e136a8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_generations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostGenerations is a nested struct in ecs response -type DedicatedHostGenerations struct { - DedicatedHostGeneration []string `json:"DedicatedHostGeneration" xml:"DedicatedHostGeneration"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_id_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_id_sets.go deleted file mode 100644 index c8604d6ee3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_id_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostIdSets is a nested struct in ecs response -type DedicatedHostIdSets struct { - DedicatedHostId []string `json:"DedicatedHostId" xml:"DedicatedHostId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_ids.go deleted file mode 100644 index d14abb2f6a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostIds is a nested struct in ecs response -type DedicatedHostIds struct { - DedicatedHostId []string `json:"DedicatedHostId" xml:"DedicatedHostId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go deleted file mode 100644 index 7c1ce28b3b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostRenewAttribute is a nested struct in ecs response -type DedicatedHostRenewAttribute struct { - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - Duration int `json:"Duration" xml:"Duration"` - DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` - RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` - AutoRenewEnabled bool `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"` - AutoRenewWithEcs string `json:"AutoRenewWithEcs" xml:"AutoRenewWithEcs"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attributes.go deleted file mode 100644 index 755f8c5862..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostRenewAttributes is a nested struct in ecs response -type DedicatedHostRenewAttributes struct { - DedicatedHostRenewAttribute []DedicatedHostRenewAttribute `json:"DedicatedHostRenewAttribute" xml:"DedicatedHostRenewAttribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go deleted file mode 100644 index 3198db14b9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go +++ /dev/null @@ -1,35 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostType is a nested struct in ecs response -type DedicatedHostType struct { - Cores int `json:"Cores" xml:"Cores"` - LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` - TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` - CpuOverCommitRatioRange string `json:"CpuOverCommitRatioRange" xml:"CpuOverCommitRatioRange"` - PhysicalGpus int `json:"PhysicalGpus" xml:"PhysicalGpus"` - MemorySize float64 `json:"MemorySize" xml:"MemorySize"` - SupportCpuOverCommitRatio bool `json:"SupportCpuOverCommitRatio" xml:"SupportCpuOverCommitRatio"` - LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` - DedicatedHostType string `json:"DedicatedHostType" xml:"DedicatedHostType"` - LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` - TotalVgpus int `json:"TotalVgpus" xml:"TotalVgpus"` - Sockets int `json:"Sockets" xml:"Sockets"` - SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"` - SupportedInstanceTypesList SupportedInstanceTypesListInDescribeDedicatedHostTypes `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_types.go deleted file mode 100644 index 255f61b553..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_types.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHostTypes is a nested struct in ecs response -type DedicatedHostTypes struct { - DedicatedHostType []DedicatedHostType `json:"DedicatedHostType" xml:"DedicatedHostType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_hosts.go deleted file mode 100644 index aef425fda8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_hosts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedHosts is a nested struct in ecs response -type DedicatedHosts struct { - DedicatedHost []DedicatedHost `json:"DedicatedHost" xml:"DedicatedHost"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go deleted file mode 100644 index 7a25ac55d6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DedicatedInstanceAttribute is a nested struct in ecs response -type DedicatedInstanceAttribute struct { - Affinity string `json:"Affinity" xml:"Affinity"` - Tenancy string `json:"Tenancy" xml:"Tenancy"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go deleted file mode 100644 index 0b7a7ae961..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go +++ /dev/null @@ -1,39 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Demand is a nested struct in ecs response -type Demand struct { - Comment string `json:"Comment" xml:"Comment"` - DemandDescription string `json:"DemandDescription" xml:"DemandDescription"` - DemandId string `json:"DemandId" xml:"DemandId"` - DemandTime string `json:"DemandTime" xml:"DemandTime"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - DemandName string `json:"DemandName" xml:"DemandName"` - Period int `json:"Period" xml:"Period"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - AvailableAmount int `json:"AvailableAmount" xml:"AvailableAmount"` - EndTime string `json:"EndTime" xml:"EndTime"` - StartTime string `json:"StartTime" xml:"StartTime"` - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` - TotalAmount int `json:"TotalAmount" xml:"TotalAmount"` - DeliveringAmount int `json:"DeliveringAmount" xml:"DeliveringAmount"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` - DemandStatus string `json:"DemandStatus" xml:"DemandStatus"` - SupplyInfos SupplyInfos `json:"SupplyInfos" xml:"SupplyInfos"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demands.go deleted file mode 100644 index 2acd06186a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demands.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Demands is a nested struct in ecs response -type Demands struct { - Demand []Demand `json:"Demand" xml:"Demand"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go deleted file mode 100644 index 2d7289225a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DeploymentSet is a nested struct in ecs response -type DeploymentSet struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Strategy string `json:"Strategy" xml:"Strategy"` - DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` - DeploymentStrategy string `json:"DeploymentStrategy" xml:"DeploymentStrategy"` - DeploymentSetDescription string `json:"DeploymentSetDescription" xml:"DeploymentSetDescription"` - Domain string `json:"Domain" xml:"Domain"` - GroupCount int `json:"GroupCount" xml:"GroupCount"` - Granularity string `json:"Granularity" xml:"Granularity"` - DeploymentSetName string `json:"DeploymentSetName" xml:"DeploymentSetName"` - InstanceAmount int `json:"InstanceAmount" xml:"InstanceAmount"` - InstanceIds InstanceIdsInDescribeDeploymentSets `json:"InstanceIds" xml:"InstanceIds"` - Capacities Capacities `json:"Capacities" xml:"Capacities"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go deleted file mode 100644 index 151d7b0562..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DeploymentSets is a nested struct in ecs response -type DeploymentSets struct { - DeploymentSet []DeploymentSet `json:"DeploymentSet" xml:"DeploymentSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_depreciate_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_depreciate_info.go deleted file mode 100644 index 63fdf99c9f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_depreciate_info.go +++ /dev/null @@ -1,29 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DepreciateInfo is a nested struct in ecs response -type DepreciateInfo struct { - OriginalStandardPrice float64 `json:"OriginalStandardPrice" xml:"OriginalStandardPrice"` - StartTime string `json:"StartTime" xml:"StartTime"` - CheapRate float64 `json:"CheapRate" xml:"CheapRate"` - CheapStandardPrice float64 `json:"CheapStandardPrice" xml:"CheapStandardPrice"` - DifferentialName string `json:"DifferentialName" xml:"DifferentialName"` - IsShow bool `json:"IsShow" xml:"IsShow"` - MonthPrice float64 `json:"MonthPrice" xml:"MonthPrice"` - ListPrice float64 `json:"ListPrice" xml:"ListPrice"` - DifferentialPrice float64 `json:"DifferentialPrice" xml:"DifferentialPrice"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go deleted file mode 100644 index d2f635c15d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DetachInstanceRamRoleResult is a nested struct in ecs response -type DetachInstanceRamRoleResult struct { - Code string `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Success bool `json:"Success" xml:"Success"` - InstanceRamRoleSets InstanceRamRoleSetsInDetachInstanceRamRole `json:"InstanceRamRoleSets" xml:"InstanceRamRoleSets"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go deleted file mode 100644 index 06c3b82c84..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DetachInstanceRamRoleResults is a nested struct in ecs response -type DetachInstanceRamRoleResults struct { - DetachInstanceRamRoleResult []DetachInstanceRamRoleResult `json:"DetachInstanceRamRoleResult" xml:"DetachInstanceRamRoleResult"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_info.go deleted file mode 100644 index 50e1b607d5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_info.go +++ /dev/null @@ -1,30 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DetailInfo is a nested struct in ecs response -type DetailInfo struct { - DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` - OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` - StandardPrice float64 `json:"StandardPrice" xml:"StandardPrice"` - StandardDiscountPrice float64 `json:"StandardDiscountPrice" xml:"StandardDiscountPrice"` - IsContractPromotion bool `json:"IsContractPromotion" xml:"IsContractPromotion"` - Resource string `json:"Resource" xml:"Resource"` - DepreciateInfo DepreciateInfo `json:"DepreciateInfo" xml:"DepreciateInfo"` - Attributes AttributesInDescribeInstanceModificationPrice `json:"Attributes" xml:"Attributes"` - SubRules SubRulesInDescribeInstanceModificationPrice `json:"SubRules" xml:"SubRules"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_instance_modification_price.go deleted file mode 100644 index 2e392bd5f3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DetailInfosInDescribeInstanceModificationPrice is a nested struct in ecs response -type DetailInfosInDescribeInstanceModificationPrice struct { - DetailInfo []DetailInfo `json:"DetailInfo" xml:"DetailInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_price.go deleted file mode 100644 index ee3b993791..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DetailInfosInDescribePrice is a nested struct in ecs response -type DetailInfosInDescribePrice struct { - DetailInfo []DetailInfo `json:"DetailInfo" xml:"DetailInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_renewal_price.go deleted file mode 100644 index 60a9ea6595..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detail_infos_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DetailInfosInDescribeRenewalPrice is a nested struct in ecs response -type DetailInfosInDescribeRenewalPrice struct { - DetailInfo []DetailInfo `json:"DetailInfo" xml:"DetailInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detection_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detection_options.go deleted file mode 100644 index a81a6fde29..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detection_options.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DetectionOptions is a nested struct in ecs response -type DetectionOptions struct { - Status string `json:"Status" xml:"Status"` - Items Items `json:"Items" xml:"Items"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go deleted file mode 100644 index 99dfdd2cf5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go +++ /dev/null @@ -1,69 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Disk is a nested struct in ecs response -type Disk struct { - BdfId string `json:"BdfId" xml:"BdfId"` - ImageId string `json:"ImageId" xml:"ImageId"` - DeleteAutoSnapshot bool `json:"DeleteAutoSnapshot" xml:"DeleteAutoSnapshot"` - AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` - ProvisionedIops int64 `json:"ProvisionedIops" xml:"ProvisionedIops"` - DiskId string `json:"DiskId" xml:"DiskId"` - IOPS int `json:"IOPS" xml:"IOPS"` - MountInstanceNum int `json:"MountInstanceNum" xml:"MountInstanceNum"` - StorageSetId string `json:"StorageSetId" xml:"StorageSetId"` - Type string `json:"Type" xml:"Type"` - MultiAttach string `json:"MultiAttach" xml:"MultiAttach"` - BurstingEnabled bool `json:"BurstingEnabled" xml:"BurstingEnabled"` - ProductCode string `json:"ProductCode" xml:"ProductCode"` - Encrypted bool `json:"Encrypted" xml:"Encrypted"` - DetachedTime string `json:"DetachedTime" xml:"DetachedTime"` - DeleteWithInstance bool `json:"DeleteWithInstance" xml:"DeleteWithInstance"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - PerformanceLevel string `json:"PerformanceLevel" xml:"PerformanceLevel"` - ThroughputRead int `json:"ThroughputRead" xml:"ThroughputRead"` - Status string `json:"Status" xml:"Status"` - IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` - AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` - Category string `json:"Category" xml:"Category"` - StorageClusterId string `json:"StorageClusterId" xml:"StorageClusterId"` - EnableAutomatedSnapshotPolicy bool `json:"EnableAutomatedSnapshotPolicy" xml:"EnableAutomatedSnapshotPolicy"` - SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` - Throughput int `json:"Throughput" xml:"Throughput"` - Size int `json:"Size" xml:"Size"` - RegionId string `json:"RegionId" xml:"RegionId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Description string `json:"Description" xml:"Description"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - Device string `json:"Device" xml:"Device"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` - SourceSnapshotId string `json:"SourceSnapshotId" xml:"SourceSnapshotId"` - StorageSetPartitionNumber int `json:"StorageSetPartitionNumber" xml:"StorageSetPartitionNumber"` - Portable bool `json:"Portable" xml:"Portable"` - KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` - EnableAutoSnapshot bool `json:"EnableAutoSnapshot" xml:"EnableAutoSnapshot"` - DiskChargeType string `json:"DiskChargeType" xml:"DiskChargeType"` - ThroughputWrite int `json:"ThroughputWrite" xml:"ThroughputWrite"` - DiskName string `json:"DiskName" xml:"DiskName"` - Placement Placement `json:"Placement" xml:"Placement"` - Tags TagsInDescribeDisks `json:"Tags" xml:"Tags"` - OperationLocks OperationLocksInDescribeDisks `json:"OperationLocks" xml:"OperationLocks"` - MountInstances MountInstances `json:"MountInstances" xml:"MountInstances"` - Attachments Attachments `json:"Attachments" xml:"Attachments"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go deleted file mode 100644 index 1e951871af..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go +++ /dev/null @@ -1,33 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskDeviceMapping is a nested struct in ecs response -type DiskDeviceMapping struct { - OSSBucket string `json:"OSSBucket" xml:"OSSBucket"` - OSSObject string `json:"OSSObject" xml:"OSSObject"` - Format string `json:"Format" xml:"Format"` - Device string `json:"Device" xml:"Device"` - ImportOSSObject string `json:"ImportOSSObject" xml:"ImportOSSObject"` - Encrypted bool `json:"Encrypted" xml:"Encrypted"` - Progress string `json:"Progress" xml:"Progress"` - DiskImageSize int `json:"DiskImageSize" xml:"DiskImageSize"` - Size string `json:"Size" xml:"Size"` - RemainTime int `json:"RemainTime" xml:"RemainTime"` - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - ImportOSSBucket string `json:"ImportOSSBucket" xml:"ImportOSSBucket"` - Type string `json:"Type" xml:"Type"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_from_family.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_from_family.go deleted file mode 100644 index 2f30fbf5c6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_from_family.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskDeviceMappingsInDescribeImageFromFamily is a nested struct in ecs response -type DiskDeviceMappingsInDescribeImageFromFamily struct { - DiskDeviceMapping []DiskDeviceMapping `json:"DiskDeviceMapping" xml:"DiskDeviceMapping"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_pipelines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_pipelines.go deleted file mode 100644 index 1fa01b0afc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_pipelines.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskDeviceMappingsInDescribeImagePipelines is a nested struct in ecs response -type DiskDeviceMappingsInDescribeImagePipelines struct { - DiskDeviceMapping []DiskDeviceMapping `json:"DiskDeviceMapping" xml:"DiskDeviceMapping"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_images.go deleted file mode 100644 index 39d99d15a0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_images.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskDeviceMappingsInDescribeImages is a nested struct in ecs response -type DiskDeviceMappingsInDescribeImages struct { - DiskDeviceMapping []DiskDeviceMapping `json:"DiskDeviceMapping" xml:"DiskDeviceMapping"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go deleted file mode 100644 index 6b334e5b7f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskEventSet is a nested struct in ecs response -type DiskEventSet struct { - DiskEventType []DiskEventType `json:"DiskEventType" xml:"DiskEventType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go deleted file mode 100644 index a6b5063999..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskEventType is a nested struct in ecs response -type DiskEventType struct { - EventId string `json:"EventId" xml:"EventId"` - EventEndTime string `json:"EventEndTime" xml:"EventEndTime"` - EventTime string `json:"EventTime" xml:"EventTime"` - ImpactLevel string `json:"ImpactLevel" xml:"ImpactLevel"` - EventType EventType `json:"EventType" xml:"EventType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go deleted file mode 100644 index fe46bf15ec..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskFullStatusSet is a nested struct in ecs response -type DiskFullStatusSet struct { - DiskFullStatusType []DiskFullStatusType `json:"DiskFullStatusType" xml:"DiskFullStatusType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go deleted file mode 100644 index 67fa8dacf7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_full_status_type.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskFullStatusType is a nested struct in ecs response -type DiskFullStatusType struct { - DiskId string `json:"DiskId" xml:"DiskId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Device string `json:"Device" xml:"Device"` - Status Status `json:"Status" xml:"Status"` - HealthStatus HealthStatus `json:"HealthStatus" xml:"HealthStatus"` - DiskEventSet DiskEventSet `json:"DiskEventSet" xml:"DiskEventSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go deleted file mode 100644 index 219fab0399..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go +++ /dev/null @@ -1,30 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DiskMonitorData is a nested struct in ecs response -type DiskMonitorData struct { - BPSRead int `json:"BPSRead" xml:"BPSRead"` - IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` - LatencyRead int `json:"LatencyRead" xml:"LatencyRead"` - BPSTotal int `json:"BPSTotal" xml:"BPSTotal"` - IOPSTotal int `json:"IOPSTotal" xml:"IOPSTotal"` - TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` - LatencyWrite int `json:"LatencyWrite" xml:"LatencyWrite"` - IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` - DiskId string `json:"DiskId" xml:"DiskId"` - BPSWrite int `json:"BPSWrite" xml:"BPSWrite"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_disks.go deleted file mode 100644 index 7b4b95107b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_disks.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DisksInDescribeDisks is a nested struct in ecs response -type DisksInDescribeDisks struct { - Disk []Disk `json:"Disk" xml:"Disk"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_storage_set_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_storage_set_details.go deleted file mode 100644 index 2187bfb614..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks_in_describe_storage_set_details.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DisksInDescribeStorageSetDetails is a nested struct in ecs response -type DisksInDescribeStorageSetDetails struct { - Disk []Disk `json:"Disk" xml:"Disk"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go deleted file mode 100644 index 4d6d53e103..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EcsCapacityReservationAttr is a nested struct in ecs response -type EcsCapacityReservationAttr struct { - CapacityReservationPreference string `json:"CapacityReservationPreference" xml:"CapacityReservationPreference"` - CapacityReservationId string `json:"CapacityReservationId" xml:"CapacityReservationId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go deleted file mode 100644 index c9b68d52e6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go +++ /dev/null @@ -1,33 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipAddress is a nested struct in ecs response -type EipAddress struct { - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - IpAddress string `json:"IpAddress" xml:"IpAddress"` - EipBandwidth string `json:"EipBandwidth" xml:"EipBandwidth"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - AllocationTime string `json:"AllocationTime" xml:"AllocationTime"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - Status string `json:"Status" xml:"Status"` - OperationLocks OperationLocksInDescribeEipAddresses `json:"OperationLocks" xml:"OperationLocks"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instance_attribute.go deleted file mode 100644 index 9b69e7afbc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instance_attribute.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipAddressInDescribeInstanceAttribute is a nested struct in ecs response -type EipAddressInDescribeInstanceAttribute struct { - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - IpAddress string `json:"IpAddress" xml:"IpAddress"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instances.go deleted file mode 100644 index 6bba4288c3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instances.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipAddressInDescribeInstances is a nested struct in ecs response -type EipAddressInDescribeInstances struct { - IsSupportUnassociate bool `json:"IsSupportUnassociate" xml:"IsSupportUnassociate"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - IpAddress string `json:"IpAddress" xml:"IpAddress"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go deleted file mode 100644 index 55b351bfe8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipAddresses is a nested struct in ecs response -type EipAddresses struct { - EipAddress []EipAddress `json:"EipAddress" xml:"EipAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go deleted file mode 100644 index 6e820f5bea..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipMonitorData is a nested struct in ecs response -type EipMonitorData struct { - EipPackets int `json:"EipPackets" xml:"EipPackets"` - TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` - EipFlow int `json:"EipFlow" xml:"EipFlow"` - EipBandwidth int `json:"EipBandwidth" xml:"EipBandwidth"` - EipRX int `json:"EipRX" xml:"EipRX"` - EipTX int `json:"EipTX" xml:"EipTX"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go deleted file mode 100644 index 04b66a9554..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_eip_monitor_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipMonitorDatasInDescribeEipMonitorData is a nested struct in ecs response -type EipMonitorDatasInDescribeEipMonitorData struct { - EipMonitorData []EipMonitorData `json:"EipMonitorData" xml:"EipMonitorData"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go deleted file mode 100644 index 8beed79d64..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_datas_in_describe_new_project_eip_monitor_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipMonitorDatasInDescribeNewProjectEipMonitorData is a nested struct in ecs response -type EipMonitorDatasInDescribeNewProjectEipMonitorData struct { - EipMonitorData []EipMonitorData `json:"EipMonitorData" xml:"EipMonitorData"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item.go deleted file mode 100644 index 71b7f80781..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item.go +++ /dev/null @@ -1,39 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElasticityAssuranceItem is a nested struct in ecs response -type ElasticityAssuranceItem struct { - PackageType string `json:"PackageType" xml:"PackageType"` - PrivatePoolOptionsName string `json:"PrivatePoolOptionsName" xml:"PrivatePoolOptionsName"` - PrivatePoolOptionsMatchCriteria string `json:"PrivatePoolOptionsMatchCriteria" xml:"PrivatePoolOptionsMatchCriteria"` - LatestStartTime string `json:"LatestStartTime" xml:"LatestStartTime"` - ElasticityAssuranceOwnerId string `json:"ElasticityAssuranceOwnerId" xml:"ElasticityAssuranceOwnerId"` - UsedAssuranceTimes int `json:"UsedAssuranceTimes" xml:"UsedAssuranceTimes"` - RegionId string `json:"RegionId" xml:"RegionId"` - StartTime string `json:"StartTime" xml:"StartTime"` - EndTime string `json:"EndTime" xml:"EndTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - TotalAssuranceTimes string `json:"TotalAssuranceTimes" xml:"TotalAssuranceTimes"` - StartTimeType string `json:"StartTimeType" xml:"StartTimeType"` - Status string `json:"Status" xml:"Status"` - Description string `json:"Description" xml:"Description"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` - AllocatedResources AllocatedResourcesInDescribeElasticityAssurances `json:"AllocatedResources" xml:"AllocatedResources"` - Tags TagsInDescribeElasticityAssurances `json:"Tags" xml:"Tags"` - RecurrenceRules RecurrenceRules `json:"RecurrenceRules" xml:"RecurrenceRules"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item_in_describe_elasticity_assurance_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item_in_describe_elasticity_assurance_instances.go deleted file mode 100644 index c8ab8c03f6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item_in_describe_elasticity_assurance_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElasticityAssuranceItemInDescribeElasticityAssuranceInstances is a nested struct in ecs response -type ElasticityAssuranceItemInDescribeElasticityAssuranceInstances struct { - InstanceIdSet []InstanceIdSet `json:"InstanceIdSet" xml:"InstanceIdSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attribute.go deleted file mode 100644 index a3daab2821..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attribute.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElasticityAssuranceRenewAttribute is a nested struct in ecs response -type ElasticityAssuranceRenewAttribute struct { - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - Period int `json:"Period" xml:"Period"` - PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` - RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attributes.go deleted file mode 100644 index a698538ddf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_renew_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElasticityAssuranceRenewAttributes is a nested struct in ecs response -type ElasticityAssuranceRenewAttributes struct { - ElasticityAssuranceRenewAttribute []ElasticityAssuranceRenewAttribute `json:"ElasticityAssuranceRenewAttribute" xml:"ElasticityAssuranceRenewAttribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_set.go deleted file mode 100644 index 489e0ca64b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElasticityAssuranceSet is a nested struct in ecs response -type ElasticityAssuranceSet struct { - ElasticityAssuranceItem []ElasticityAssuranceItem `json:"ElasticityAssuranceItem" xml:"ElasticityAssuranceItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usage.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usage.go deleted file mode 100644 index fca616e952..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usage.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElasticityAssuranceUsage is a nested struct in ecs response -type ElasticityAssuranceUsage struct { - AccountId string `json:"AccountId" xml:"AccountId"` - ServiceName string `json:"ServiceName" xml:"ServiceName"` - UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usages.go deleted file mode 100644 index 60c02c0806..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_usages.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElasticityAssuranceUsages is a nested struct in ecs response -type ElasticityAssuranceUsages struct { - ElasticityAssuranceUsage []ElasticityAssuranceUsage `json:"ElasticityAssuranceUsage" xml:"ElasticityAssuranceUsage"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_enhanced_network.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_enhanced_network.go deleted file mode 100644 index eeda896fab..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_enhanced_network.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EnhancedNetwork is a nested struct in ecs response -type EnhancedNetwork struct { - EnableSriov bool `json:"EnableSriov" xml:"EnableSriov"` - SriovSupport bool `json:"SriovSupport" xml:"SriovSupport"` - RssSupport bool `json:"RssSupport" xml:"RssSupport"` - VfQueueNumberPerEni int `json:"VfQueueNumberPerEni" xml:"VfQueueNumberPerEni"` - EnableRss bool `json:"EnableRss" xml:"EnableRss"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go deleted file mode 100644 index 9b889fc749..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go +++ /dev/null @@ -1,28 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EniMonitorData is a nested struct in ecs response -type EniMonitorData struct { - PacketRx string `json:"PacketRx" xml:"PacketRx"` - TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` - DropPacketRx string `json:"DropPacketRx" xml:"DropPacketRx"` - EniId string `json:"EniId" xml:"EniId"` - DropPacketTx string `json:"DropPacketTx" xml:"DropPacketTx"` - PacketTx string `json:"PacketTx" xml:"PacketTx"` - IntranetTx string `json:"IntranetTx" xml:"IntranetTx"` - IntranetRx string `json:"IntranetRx" xml:"IntranetRx"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entries.go deleted file mode 100644 index 8b02118e46..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entries.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Entries is a nested struct in ecs response -type Entries struct { - Entry []Entry `json:"Entry" xml:"Entry"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entry.go deleted file mode 100644 index 3a42345425..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entry.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Entry is a nested struct in ecs response -type Entry struct { - Description string `json:"Description" xml:"Description"` - Cidr string `json:"Cidr" xml:"Cidr"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go deleted file mode 100644 index e365079144..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_cycle_status.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EventCycleStatus is a nested struct in ecs response -type EventCycleStatus struct { - Name string `json:"Name" xml:"Name"` - Code int `json:"Code" xml:"Code"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_id_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_id_set.go deleted file mode 100644 index c70120c80f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_id_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EventIdSet is a nested struct in ecs response -type EventIdSet struct { - EventId []string `json:"EventId" xml:"EventId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go deleted file mode 100644 index 9121810c0f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_event_type.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EventType is a nested struct in ecs response -type EventType struct { - Name string `json:"Name" xml:"Name"` - Code int `json:"Code" xml:"Code"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go deleted file mode 100644 index 0a460cb892..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go +++ /dev/null @@ -1,34 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ExtendedAttribute is a nested struct in ecs response -type ExtendedAttribute struct { - HostId string `json:"HostId" xml:"HostId"` - Device string `json:"Device" xml:"Device"` - Code string `json:"Code" xml:"Code"` - OnlineRepairPolicy string `json:"OnlineRepairPolicy" xml:"OnlineRepairPolicy"` - DiskId string `json:"DiskId" xml:"DiskId"` - HostType string `json:"HostType" xml:"HostType"` - PunishType string `json:"PunishType" xml:"PunishType"` - PunishUrl string `json:"PunishUrl" xml:"PunishUrl"` - PunishDomain string `json:"PunishDomain" xml:"PunishDomain"` - Rack string `json:"Rack" xml:"Rack"` - CanAccept string `json:"CanAccept" xml:"CanAccept"` - ResponseResult string `json:"ResponseResult" xml:"ResponseResult"` - MigrationOptions MigrationOptions `json:"MigrationOptions" xml:"MigrationOptions"` - InactiveDisks InactiveDisksInDescribeInstanceHistoryEvents `json:"InactiveDisks" xml:"InactiveDisks"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_features.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_features.go deleted file mode 100644 index d4b5b301b9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_features.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Features is a nested struct in ecs response -type Features struct { - MemoryOnlineUpgrade string `json:"MemoryOnlineUpgrade" xml:"MemoryOnlineUpgrade"` - NvmeSupport string `json:"NvmeSupport" xml:"NvmeSupport"` - CpuOnlineDowngrade string `json:"CpuOnlineDowngrade" xml:"CpuOnlineDowngrade"` - ImdsSupport string `json:"ImdsSupport" xml:"ImdsSupport"` - MemoryOnlineDowngrade string `json:"MemoryOnlineDowngrade" xml:"MemoryOnlineDowngrade"` - CpuOnlineUpgrade string `json:"CpuOnlineUpgrade" xml:"CpuOnlineUpgrade"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instance.go deleted file mode 100644 index 12f475b3c8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instance.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// FeeOfInstance is a nested struct in ecs response -type FeeOfInstance struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Fee string `json:"Fee" xml:"Fee"` - Currency string `json:"Currency" xml:"Currency"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_dedicated_hosts_charge_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_dedicated_hosts_charge_type.go deleted file mode 100644 index 5efa26f6ff..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_dedicated_hosts_charge_type.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// FeeOfInstancesInModifyDedicatedHostsChargeType is a nested struct in ecs response -type FeeOfInstancesInModifyDedicatedHostsChargeType struct { - FeeOfInstance []FeeOfInstance `json:"FeeOfInstance" xml:"FeeOfInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_instance_charge_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_instance_charge_type.go deleted file mode 100644 index fa641f4ecd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_instance_charge_type.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// FeeOfInstancesInModifyInstanceChargeType is a nested struct in ecs response -type FeeOfInstancesInModifyInstanceChargeType struct { - FeeOfInstance []FeeOfInstance `json:"FeeOfInstance" xml:"FeeOfInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go deleted file mode 100644 index 07ef77a46a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entries.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ForwardTableEntries is a nested struct in ecs response -type ForwardTableEntries struct { - ForwardTableEntry []ForwardTableEntry `json:"ForwardTableEntry" xml:"ForwardTableEntry"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go deleted file mode 100644 index d8b64e656d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go +++ /dev/null @@ -1,28 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ForwardTableEntry is a nested struct in ecs response -type ForwardTableEntry struct { - Status string `json:"Status" xml:"Status"` - ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` - InternalIp string `json:"InternalIp" xml:"InternalIp"` - InternalPort string `json:"InternalPort" xml:"InternalPort"` - ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` - ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` - IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` - ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go deleted file mode 100644 index fb9d9199cb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_create_nat_gateway.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ForwardTableIdsInCreateNatGateway is a nested struct in ecs response -type ForwardTableIdsInCreateNatGateway struct { - ForwardTableId []string `json:"ForwardTableId" xml:"ForwardTableId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go deleted file mode 100644 index a28d7d5c5b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_ids_in_describe_nat_gateways.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ForwardTableIdsInDescribeNatGateways is a nested struct in ecs response -type ForwardTableIdsInDescribeNatGateways struct { - ForwardTableId []string `json:"ForwardTableId" xml:"ForwardTableId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go deleted file mode 100644 index 05f17b745c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go +++ /dev/null @@ -1,31 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// HaVip is a nested struct in ecs response -type HaVip struct { - Status string `json:"Status" xml:"Status"` - VpcId string `json:"VpcId" xml:"VpcId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - IpAddress string `json:"IpAddress" xml:"IpAddress"` - Description string `json:"Description" xml:"Description"` - HaVipId string `json:"HaVipId" xml:"HaVipId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` - RegionId string `json:"RegionId" xml:"RegionId"` - AssociatedEipAddresses AssociatedEipAddresses `json:"AssociatedEipAddresses" xml:"AssociatedEipAddresses"` - AssociatedInstances AssociatedInstances `json:"AssociatedInstances" xml:"AssociatedInstances"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go deleted file mode 100644 index 2585d4f084..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vips.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// HaVips is a nested struct in ecs response -type HaVips struct { - HaVip []HaVip `json:"HaVip" xml:"HaVip"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go deleted file mode 100644 index 1528dc6151..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_health_status.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// HealthStatus is a nested struct in ecs response -type HealthStatus struct { - Name string `json:"Name" xml:"Name"` - Code int `json:"Code" xml:"Code"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hibernation_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hibernation_options.go deleted file mode 100644 index 52dde74b79..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hibernation_options.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// HibernationOptions is a nested struct in ecs response -type HibernationOptions struct { - Configured bool `json:"Configured" xml:"Configured"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host_detail_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host_detail_info.go deleted file mode 100644 index f83bb518cb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host_detail_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// HostDetailInfo is a nested struct in ecs response -type HostDetailInfo struct { - SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go deleted file mode 100644 index 16576fca7e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_cluster.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// HpcCluster is a nested struct in ecs response -type HpcCluster struct { - HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go deleted file mode 100644 index ca09c5ba21..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hpc_clusters.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// HpcClusters is a nested struct in ecs response -type HpcClusters struct { - HpcCluster []HpcCluster `json:"HpcCluster" xml:"HpcCluster"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go deleted file mode 100644 index a6ebb358e6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go +++ /dev/null @@ -1,52 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Image is a nested struct in ecs response -type Image struct { - BootMode string `json:"BootMode" xml:"BootMode"` - ImageId string `json:"ImageId" xml:"ImageId"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - OSName string `json:"OSName" xml:"OSName"` - OSNameEn string `json:"OSNameEn" xml:"OSNameEn"` - ImageFamily string `json:"ImageFamily" xml:"ImageFamily"` - Architecture string `json:"Architecture" xml:"Architecture"` - IsSupportIoOptimized bool `json:"IsSupportIoOptimized" xml:"IsSupportIoOptimized"` - Size int `json:"Size" xml:"Size"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SupplierName string `json:"SupplierName" xml:"SupplierName"` - Description string `json:"Description" xml:"Description"` - Usage string `json:"Usage" xml:"Usage"` - IsCopied bool `json:"IsCopied" xml:"IsCopied"` - LoginAsNonRootSupported bool `json:"LoginAsNonRootSupported" xml:"LoginAsNonRootSupported"` - ImageVersion string `json:"ImageVersion" xml:"ImageVersion"` - OSType string `json:"OSType" xml:"OSType"` - IsSubscribed bool `json:"IsSubscribed" xml:"IsSubscribed"` - IsSupportCloudinit bool `json:"IsSupportCloudinit" xml:"IsSupportCloudinit"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ProductCode string `json:"ProductCode" xml:"ProductCode"` - Progress string `json:"Progress" xml:"Progress"` - Platform string `json:"Platform" xml:"Platform"` - IsSelfShared string `json:"IsSelfShared" xml:"IsSelfShared"` - ImageName string `json:"ImageName" xml:"ImageName"` - Status string `json:"Status" xml:"Status"` - ImageOwnerId int64 `json:"ImageOwnerId" xml:"ImageOwnerId"` - IsPublic bool `json:"IsPublic" xml:"IsPublic"` - DetectionOptions DetectionOptions `json:"DetectionOptions" xml:"DetectionOptions"` - Features Features `json:"Features" xml:"Features"` - Tags TagsInDescribeImageFromFamily `json:"Tags" xml:"Tags"` - DiskDeviceMappings DiskDeviceMappingsInDescribeImageFromFamily `json:"DiskDeviceMappings" xml:"DiskDeviceMappings"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component.go deleted file mode 100644 index 4f17be7574..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImageComponent is a nested struct in ecs response -type ImageComponent struct { - ImageComponentSet []ImageComponentSet `json:"ImageComponentSet" xml:"ImageComponentSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component_set.go deleted file mode 100644 index 1fd5ec0e84..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component_set.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImageComponentSet is a nested struct in ecs response -type ImageComponentSet struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Description string `json:"Description" xml:"Description"` - SystemType string `json:"SystemType" xml:"SystemType"` - ImageComponentId string `json:"ImageComponentId" xml:"ImageComponentId"` - ComponentType string `json:"ComponentType" xml:"ComponentType"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Name string `json:"Name" xml:"Name"` - Content string `json:"Content" xml:"Content"` - Owner string `json:"Owner" xml:"Owner"` - ComponentVersion string `json:"ComponentVersion" xml:"ComponentVersion"` - Tags TagsInDescribeImageComponents `json:"Tags" xml:"Tags"` - Parameters Parameters `json:"Parameters" xml:"Parameters"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_features.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_features.go deleted file mode 100644 index 7747d6e1d9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_features.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImageFeatures is a nested struct in ecs response -type ImageFeatures struct { - NvmeSupport string `json:"NvmeSupport" xml:"NvmeSupport"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_options.go deleted file mode 100644 index d31b0e5fdc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_options.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImageOptions is a nested struct in ecs response -type ImageOptions struct { - ImageFamily string `json:"ImageFamily" xml:"ImageFamily"` - LoginAsNonRoot bool `json:"LoginAsNonRoot" xml:"LoginAsNonRoot"` - ImageName string `json:"ImageName" xml:"ImageName"` - Description string `json:"Description" xml:"Description"` - CurrentOSNVMeSupported bool `json:"CurrentOSNVMeSupported" xml:"CurrentOSNVMeSupported"` - ImageFeatures ImageFeatures `json:"ImageFeatures" xml:"ImageFeatures"` - ImageTags ImageTags `json:"ImageTags" xml:"ImageTags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline.go deleted file mode 100644 index 6b460b7ce3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImagePipeline is a nested struct in ecs response -type ImagePipeline struct { - ImagePipelineSet []ImagePipelineSet `json:"ImagePipelineSet" xml:"ImagePipelineSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution.go deleted file mode 100644 index 51c8bb0755..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImagePipelineExecution is a nested struct in ecs response -type ImagePipelineExecution struct { - ImagePipelineExecutionSet []ImagePipelineExecutionSet `json:"ImagePipelineExecutionSet" xml:"ImagePipelineExecutionSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution_set.go deleted file mode 100644 index 09d3921841..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution_set.go +++ /dev/null @@ -1,29 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImagePipelineExecutionSet is a nested struct in ecs response -type ImagePipelineExecutionSet struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ImagePipelineId string `json:"ImagePipelineId" xml:"ImagePipelineId"` - Status string `json:"Status" xml:"Status"` - ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Message string `json:"Message" xml:"Message"` - ImageId string `json:"ImageId" xml:"ImageId"` - ExecutionId string `json:"ExecutionId" xml:"ExecutionId"` - Tags TagsInDescribeImagePipelineExecutions `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_set.go deleted file mode 100644 index cf92c0c9bd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_set.go +++ /dev/null @@ -1,44 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImagePipelineSet is a nested struct in ecs response -type ImagePipelineSet struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - DeleteInstanceOnFailure bool `json:"DeleteInstanceOnFailure" xml:"DeleteInstanceOnFailure"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` - ImagePipelineId string `json:"ImagePipelineId" xml:"ImagePipelineId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - SystemDiskSize int `json:"SystemDiskSize" xml:"SystemDiskSize"` - Description string `json:"Description" xml:"Description"` - BaseImage string `json:"BaseImage" xml:"BaseImage"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ImageName string `json:"ImageName" xml:"ImageName"` - BaseImageType string `json:"BaseImageType" xml:"BaseImageType"` - Name string `json:"Name" xml:"Name"` - BuildContent string `json:"BuildContent" xml:"BuildContent"` - RepairMode string `json:"RepairMode" xml:"RepairMode"` - TestContent string `json:"TestContent" xml:"TestContent"` - ImageFamily string `json:"ImageFamily" xml:"ImageFamily"` - NvmeSupport string `json:"NvmeSupport" xml:"NvmeSupport"` - ToRegionIds ToRegionIds `json:"ToRegionIds" xml:"ToRegionIds"` - AddAccounts AddAccounts `json:"AddAccounts" xml:"AddAccounts"` - ImportImageOptions ImportImageOptions `json:"ImportImageOptions" xml:"ImportImageOptions"` - AdvancedOptions AdvancedOptions `json:"AdvancedOptions" xml:"AdvancedOptions"` - ImageOptions ImageOptions `json:"ImageOptions" xml:"ImageOptions"` - Tags TagsInDescribeImagePipelines `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tag.go deleted file mode 100644 index 8fad1fc028..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tag.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImageTag is a nested struct in ecs response -type ImageTag struct { - TagKey string `json:"TagKey" xml:"TagKey"` - TagValue string `json:"TagValue" xml:"TagValue"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tags.go deleted file mode 100644 index 1bf62ea358..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_tags.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImageTags is a nested struct in ecs response -type ImageTags struct { - ImageTag []ImageTag `json:"ImageTag" xml:"ImageTag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go deleted file mode 100644 index f6bed398c4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_images.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Images is a nested struct in ecs response -type Images struct { - Image []Image `json:"Image" xml:"Image"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_import_image_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_import_image_options.go deleted file mode 100644 index dec0252f06..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_import_image_options.go +++ /dev/null @@ -1,28 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ImportImageOptions is a nested struct in ecs response -type ImportImageOptions struct { - Architecture string `json:"Architecture" xml:"Architecture"` - OSType string `json:"OSType" xml:"OSType"` - Platform string `json:"Platform" xml:"Platform"` - BootMode string `json:"BootMode" xml:"BootMode"` - LicenseType string `json:"LicenseType" xml:"LicenseType"` - RetainImportedImage bool `json:"RetainImportedImage" xml:"RetainImportedImage"` - Features Features `json:"Features" xml:"Features"` - DiskDeviceMappings DiskDeviceMappingsInDescribeImagePipelines `json:"DiskDeviceMappings" xml:"DiskDeviceMappings"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disk.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disk.go deleted file mode 100644 index 727f5edc41..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disk.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InactiveDisk is a nested struct in ecs response -type InactiveDisk struct { - DeviceCategory string `json:"DeviceCategory" xml:"DeviceCategory"` - ReleaseTime string `json:"ReleaseTime" xml:"ReleaseTime"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - DeviceSize string `json:"DeviceSize" xml:"DeviceSize"` - DeviceType string `json:"DeviceType" xml:"DeviceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instance_history_events.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instance_history_events.go deleted file mode 100644 index 4d343ff4a5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instance_history_events.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InactiveDisksInDescribeInstanceHistoryEvents is a nested struct in ecs response -type InactiveDisksInDescribeInstanceHistoryEvents struct { - InactiveDisk []InactiveDisk `json:"InactiveDisk" xml:"InactiveDisk"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instances_full_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instances_full_status.go deleted file mode 100644 index a65e4e156b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instances_full_status.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InactiveDisksInDescribeInstancesFullStatus is a nested struct in ecs response -type InactiveDisksInDescribeInstancesFullStatus struct { - InactiveDisk []InactiveDisk `json:"InactiveDisk" xml:"InactiveDisk"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go deleted file mode 100644 index efc9e604e6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instance_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InnerIpAddressInDescribeInstanceAttribute is a nested struct in ecs response -type InnerIpAddressInDescribeInstanceAttribute struct { - IpAddress []string `json:"IpAddress" xml:"IpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go deleted file mode 100644 index 1f99dde355..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inner_ip_address_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InnerIpAddressInDescribeInstances is a nested struct in ecs response -type InnerIpAddressInDescribeInstances struct { - IpAddress []string `json:"IpAddress" xml:"IpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go deleted file mode 100644 index 3b00c70562..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Instance is a nested struct in ecs response -type Instance struct { - Hostname string `json:"Hostname" xml:"Hostname"` - ImageId string `json:"ImageId" xml:"ImageId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` - LastInvokedTime string `json:"LastInvokedTime" xml:"LastInvokedTime"` - OsType string `json:"OsType" xml:"OsType"` - DeviceAvailable bool `json:"DeviceAvailable" xml:"DeviceAvailable"` - InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` - RegistrationTime string `json:"RegistrationTime" xml:"RegistrationTime"` - LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` - IsSpot bool `json:"IsSpot" xml:"IsSpot"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - MachineId string `json:"MachineId" xml:"MachineId"` - PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` - ClusterId string `json:"ClusterId" xml:"ClusterId"` - SocketId string `json:"SocketId" xml:"SocketId"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - PrivatePoolOptionsMatchCriteria string `json:"PrivatePoolOptionsMatchCriteria" xml:"PrivatePoolOptionsMatchCriteria"` - DeploymentSetGroupNo int `json:"DeploymentSetGroupNo" xml:"DeploymentSetGroupNo"` - CreditSpecification string `json:"CreditSpecification" xml:"CreditSpecification"` - GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` - Connected bool `json:"Connected" xml:"Connected"` - InvocationCount int64 `json:"InvocationCount" xml:"InvocationCount"` - StartTime string `json:"StartTime" xml:"StartTime"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - HostName string `json:"HostName" xml:"HostName"` - Status string `json:"Status" xml:"Status"` - CPU int `json:"CPU" xml:"CPU"` - Cpu int `json:"Cpu" xml:"Cpu"` - ISP string `json:"ISP" xml:"ISP"` - OsVersion string `json:"OsVersion" xml:"OsVersion"` - SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` - OSName string `json:"OSName" xml:"OSName"` - InstanceOwnerId int64 `json:"InstanceOwnerId" xml:"InstanceOwnerId"` - OSNameEn string `json:"OSNameEn" xml:"OSNameEn"` - SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` - RegionId string `json:"RegionId" xml:"RegionId"` - IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` - InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ActivationId string `json:"ActivationId" xml:"ActivationId"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` - Description string `json:"Description" xml:"Description"` - Recyclable bool `json:"Recyclable" xml:"Recyclable"` - SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - OSType string `json:"OSType" xml:"OSType"` - InternetIp string `json:"InternetIp" xml:"InternetIp"` - Memory int `json:"Memory" xml:"Memory"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - AgentVersion string `json:"AgentVersion" xml:"AgentVersion"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` - LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` - VlanId string `json:"VlanId" xml:"VlanId"` - StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` - SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - SpotDuration int `json:"SpotDuration" xml:"SpotDuration"` - DeletionProtection bool `json:"DeletionProtection" xml:"DeletionProtection"` - SpotInterruptionBehavior string `json:"SpotInterruptionBehavior" xml:"SpotInterruptionBehavior"` - SecurityGroupIds SecurityGroupIdsInDescribeInstances `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - InnerIpAddress InnerIpAddressInDescribeInstances `json:"InnerIpAddress" xml:"InnerIpAddress"` - PublicIpAddress PublicIpAddressInDescribeInstances `json:"PublicIpAddress" xml:"PublicIpAddress"` - RdmaIpAddress RdmaIpAddress `json:"RdmaIpAddress" xml:"RdmaIpAddress"` - DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` - EcsCapacityReservationAttr EcsCapacityReservationAttr `json:"EcsCapacityReservationAttr" xml:"EcsCapacityReservationAttr"` - CpuOptions CpuOptions `json:"CpuOptions" xml:"CpuOptions"` - HibernationOptions HibernationOptions `json:"HibernationOptions" xml:"HibernationOptions"` - DedicatedInstanceAttribute DedicatedInstanceAttribute `json:"DedicatedInstanceAttribute" xml:"DedicatedInstanceAttribute"` - PrivateDnsNameOptions PrivateDnsNameOptions `json:"PrivateDnsNameOptions" xml:"PrivateDnsNameOptions"` - AdditionalInfo AdditionalInfo `json:"AdditionalInfo" xml:"AdditionalInfo"` - ImageOptions ImageOptions `json:"ImageOptions" xml:"ImageOptions"` - EipAddress EipAddressInDescribeInstances `json:"EipAddress" xml:"EipAddress"` - MetadataOptions MetadataOptions `json:"MetadataOptions" xml:"MetadataOptions"` - VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"` - Tags TagsInDescribeInstances `json:"Tags" xml:"Tags"` - NetworkInterfaces NetworkInterfacesInDescribeInstances `json:"NetworkInterfaces" xml:"NetworkInterfaces"` - OperationLocks OperationLocksInDescribeInstances `json:"OperationLocks" xml:"OperationLocks"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go deleted file mode 100644 index 10f232f937..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go +++ /dev/null @@ -1,29 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceCloudAssistantStatus is a nested struct in ecs response -type InstanceCloudAssistantStatus struct { - CloudAssistantStatus string `json:"CloudAssistantStatus" xml:"CloudAssistantStatus"` - LastInvokedTime string `json:"LastInvokedTime" xml:"LastInvokedTime"` - CloudAssistantVersion string `json:"CloudAssistantVersion" xml:"CloudAssistantVersion"` - ActiveTaskCount int64 `json:"ActiveTaskCount" xml:"ActiveTaskCount"` - InvocationCount int64 `json:"InvocationCount" xml:"InvocationCount"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - LastHeartbeatTime string `json:"LastHeartbeatTime" xml:"LastHeartbeatTime"` - OSType string `json:"OSType" xml:"OSType"` - SupportSessionManager bool `json:"SupportSessionManager" xml:"SupportSessionManager"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go deleted file mode 100644 index ce652ff266..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceCloudAssistantStatusSet is a nested struct in ecs response -type InstanceCloudAssistantStatusSet struct { - InstanceCloudAssistantStatus []InstanceCloudAssistantStatus `json:"InstanceCloudAssistantStatus" xml:"InstanceCloudAssistantStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go deleted file mode 100644 index 7e524090ef..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceFullStatusSet is a nested struct in ecs response -type InstanceFullStatusSet struct { - InstanceFullStatusType []InstanceFullStatusType `json:"InstanceFullStatusType" xml:"InstanceFullStatusType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go deleted file mode 100644 index 8955446902..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_full_status_type.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceFullStatusType is a nested struct in ecs response -type InstanceFullStatusType struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Status Status `json:"Status" xml:"Status"` - HealthStatus HealthStatus `json:"HealthStatus" xml:"HealthStatus"` - ScheduledSystemEventSet ScheduledSystemEventSet `json:"ScheduledSystemEventSet" xml:"ScheduledSystemEventSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go deleted file mode 100644 index f09bc068aa..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_generations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceGenerations is a nested struct in ecs response -type InstanceGenerations struct { - SupportedInstanceGeneration []string `json:"supportedInstanceGeneration" xml:"supportedInstanceGeneration"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_set.go deleted file mode 100644 index c34e6524b4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceIdSet is a nested struct in ecs response -type InstanceIdSet struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go deleted file mode 100644 index a825dc81a7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceIdSets is a nested struct in ecs response -type InstanceIdSets struct { - InstanceIdSet []string `json:"InstanceIdSet" xml:"InstanceIdSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_create_auto_provisioning_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_create_auto_provisioning_group.go deleted file mode 100644 index d6f05b5455..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_create_auto_provisioning_group.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceIdsInCreateAutoProvisioningGroup is a nested struct in ecs response -type InstanceIdsInCreateAutoProvisioningGroup struct { - InstanceId []string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_sets.go deleted file mode 100644 index e7896c18a0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceIdsInDescribeDeploymentSets is a nested struct in ecs response -type InstanceIdsInDescribeDeploymentSets struct { - InstanceId []string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_managed_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_managed_instances.go deleted file mode 100644 index a91c2d7519..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_managed_instances.go +++ /dev/null @@ -1,36 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceInDescribeManagedInstances is a nested struct in ecs response -type InstanceInDescribeManagedInstances struct { - LastInvokedTime string `json:"LastInvokedTime" xml:"LastInvokedTime"` - Connected bool `json:"Connected" xml:"Connected"` - InternetIp string `json:"InternetIp" xml:"InternetIp"` - Hostname string `json:"Hostname" xml:"Hostname"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - ActivationId string `json:"ActivationId" xml:"ActivationId"` - IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` - AgentVersion string `json:"AgentVersion" xml:"AgentVersion"` - RegistrationTime string `json:"RegistrationTime" xml:"RegistrationTime"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - OsType string `json:"OsType" xml:"OsType"` - OsVersion string `json:"OsVersion" xml:"OsVersion"` - InvocationCount int64 `json:"InvocationCount" xml:"InvocationCount"` - MachineId string `json:"MachineId" xml:"MachineId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Tags []Tag `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go deleted file mode 100644 index 07328e7f88..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go +++ /dev/null @@ -1,37 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceMonitorData is a nested struct in ecs response -type InstanceMonitorData struct { - CPUCreditBalance float64 `json:"CPUCreditBalance" xml:"CPUCreditBalance"` - BPSRead int `json:"BPSRead" xml:"BPSRead"` - InternetTX int `json:"InternetTX" xml:"InternetTX"` - CPU int `json:"CPU" xml:"CPU"` - CPUCreditUsage float64 `json:"CPUCreditUsage" xml:"CPUCreditUsage"` - IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` - IntranetTX int `json:"IntranetTX" xml:"IntranetTX"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - BPSWrite int `json:"BPSWrite" xml:"BPSWrite"` - CPUNotpaidSurplusCreditUsage float64 `json:"CPUNotpaidSurplusCreditUsage" xml:"CPUNotpaidSurplusCreditUsage"` - CPUAdvanceCreditBalance float64 `json:"CPUAdvanceCreditBalance" xml:"CPUAdvanceCreditBalance"` - IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` - InternetBandwidth int `json:"InternetBandwidth" xml:"InternetBandwidth"` - InternetRX int `json:"InternetRX" xml:"InternetRX"` - TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` - IntranetRX int `json:"IntranetRX" xml:"IntranetRX"` - IntranetBandwidth int `json:"IntranetBandwidth" xml:"IntranetBandwidth"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status.go deleted file mode 100644 index 91e6f5f9d4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstancePluginStatus is a nested struct in ecs response -type InstancePluginStatus struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - PluginStatusSet PluginStatusSet `json:"PluginStatusSet" xml:"PluginStatusSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status_set.go deleted file mode 100644 index e66d717bee..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstancePluginStatusSet is a nested struct in ecs response -type InstancePluginStatusSet struct { - InstancePluginStatus []InstancePluginStatus `json:"InstancePluginStatus" xml:"InstancePluginStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go deleted file mode 100644 index 430c7d4d6a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_set.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceRamRoleSet is a nested struct in ecs response -type InstanceRamRoleSet struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go deleted file mode 100644 index 6dba0a8ddf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_describe_instance_ram_role.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceRamRoleSetsInDescribeInstanceRamRole is a nested struct in ecs response -type InstanceRamRoleSetsInDescribeInstanceRamRole struct { - InstanceRamRoleSet []InstanceRamRoleSet `json:"InstanceRamRoleSet" xml:"InstanceRamRoleSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go deleted file mode 100644 index c115b7cb68..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ram_role_sets_in_detach_instance_ram_role.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceRamRoleSetsInDetachInstanceRamRole is a nested struct in ecs response -type InstanceRamRoleSetsInDetachInstanceRamRole struct { - InstanceRamRoleSet []InstanceRamRoleSet `json:"InstanceRamRoleSet" xml:"InstanceRamRoleSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go deleted file mode 100644 index b0a0c8e384..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceRenewAttribute is a nested struct in ecs response -type InstanceRenewAttribute struct { - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - Duration int `json:"Duration" xml:"Duration"` - RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - AutoRenewEnabled bool `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go deleted file mode 100644 index 98accec964..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceRenewAttributes is a nested struct in ecs response -type InstanceRenewAttributes struct { - InstanceRenewAttribute []InstanceRenewAttribute `json:"InstanceRenewAttribute" xml:"InstanceRenewAttribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_response.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_response.go deleted file mode 100644 index d2953a6960..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_response.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceResponse is a nested struct in ecs response -type InstanceResponse struct { - Message string `json:"Message" xml:"Message"` - Code string `json:"Code" xml:"Code"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - CurrentStatus string `json:"CurrentStatus" xml:"CurrentStatus"` - PreviousStatus string `json:"PreviousStatus" xml:"PreviousStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_reboot_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_reboot_instances.go deleted file mode 100644 index 1d76e0aa75..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_reboot_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceResponsesInRebootInstances is a nested struct in ecs response -type InstanceResponsesInRebootInstances struct { - InstanceResponse []InstanceResponse `json:"InstanceResponse" xml:"InstanceResponse"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_start_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_start_instances.go deleted file mode 100644 index 91e11da077..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_start_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceResponsesInStartInstances is a nested struct in ecs response -type InstanceResponsesInStartInstances struct { - InstanceResponse []InstanceResponse `json:"InstanceResponse" xml:"InstanceResponse"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_stop_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_stop_instances.go deleted file mode 100644 index 06aca717db..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_stop_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceResponsesInStopInstances is a nested struct in ecs response -type InstanceResponsesInStopInstances struct { - InstanceResponse []InstanceResponse `json:"InstanceResponse" xml:"InstanceResponse"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go deleted file mode 100644 index 900b56f376..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceStatus is a nested struct in ecs response -type InstanceStatus struct { - Status string `json:"Status" xml:"Status"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go deleted file mode 100644 index 15fd69b5af..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_statuses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceStatuses is a nested struct in ecs response -type InstanceStatuses struct { - InstanceStatus []InstanceStatus `json:"InstanceStatus" xml:"InstanceStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go deleted file mode 100644 index 33d8b9eee4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceSystemEventSet is a nested struct in ecs response -type InstanceSystemEventSet struct { - InstanceSystemEventType []InstanceSystemEventType `json:"InstanceSystemEventType" xml:"InstanceSystemEventType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go deleted file mode 100644 index aabbc9bdfe..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceSystemEventType is a nested struct in ecs response -type InstanceSystemEventType struct { - EventId string `json:"EventId" xml:"EventId"` - EventPublishTime string `json:"EventPublishTime" xml:"EventPublishTime"` - EventFinishTime string `json:"EventFinishTime" xml:"EventFinishTime"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` - ImpactLevel string `json:"ImpactLevel" xml:"ImpactLevel"` - NotBefore string `json:"NotBefore" xml:"NotBefore"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Reason string `json:"Reason" xml:"Reason"` - ReasonCode string `json:"ReasonCode" xml:"ReasonCode"` - EventType EventType `json:"EventType" xml:"EventType"` - EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"` - ExtendedAttribute ExtendedAttribute `json:"ExtendedAttribute" xml:"ExtendedAttribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go deleted file mode 100644 index 00804a6450..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_tag.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceTag is a nested struct in ecs response -type InstanceTag struct { - Key string `json:"Key" xml:"Key"` - Value string `json:"Value" xml:"Value"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go deleted file mode 100644 index e42fbcccb4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go +++ /dev/null @@ -1,67 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceType is a nested struct in ecs response -type InstanceType struct { - MemorySize float64 `json:"MemorySize" xml:"MemorySize"` - InstancePpsRx int64 `json:"InstancePpsRx" xml:"InstancePpsRx"` - EriQuantity int `json:"EriQuantity" xml:"EriQuantity"` - EniPrivateIpAddressQuantity int `json:"EniPrivateIpAddressQuantity" xml:"EniPrivateIpAddressQuantity"` - CpuCoreCount int `json:"CpuCoreCount" xml:"CpuCoreCount"` - EniTotalQuantity int `json:"EniTotalQuantity" xml:"EniTotalQuantity"` - NetworkEncryptionSupport bool `json:"NetworkEncryptionSupport" xml:"NetworkEncryptionSupport"` - Cores int `json:"Cores" xml:"Cores"` - NetworkCardQuantity int `json:"NetworkCardQuantity" xml:"NetworkCardQuantity"` - JumboFrameSupport bool `json:"JumboFrameSupport" xml:"JumboFrameSupport"` - InstanceTypeId string `json:"InstanceTypeId" xml:"InstanceTypeId"` - InstanceBandwidthRx int `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - QueuePairNumber int `json:"QueuePairNumber" xml:"QueuePairNumber"` - EniQuantity int `json:"EniQuantity" xml:"EniQuantity"` - Generation string `json:"Generation" xml:"Generation"` - SupportIoOptimized string `json:"SupportIoOptimized" xml:"SupportIoOptimized"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` - InitialCredit int `json:"InitialCredit" xml:"InitialCredit"` - InstancePpsTx int64 `json:"InstancePpsTx" xml:"InstancePpsTx"` - InstanceFamilyLevel string `json:"InstanceFamilyLevel" xml:"InstanceFamilyLevel"` - LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` - TotalEniQueueQuantity int `json:"TotalEniQueueQuantity" xml:"TotalEniQueueQuantity"` - CpuArchitecture string `json:"CpuArchitecture" xml:"CpuArchitecture"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` - SecondaryEniQueueNumber int `json:"SecondaryEniQueueNumber" xml:"SecondaryEniQueueNumber"` - InstanceBandwidthTx int `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"` - MaximumQueueNumberPerEni int `json:"MaximumQueueNumberPerEni" xml:"MaximumQueueNumberPerEni"` - DiskQuantity int `json:"DiskQuantity" xml:"DiskQuantity"` - PrimaryEniQueueNumber int `json:"PrimaryEniQueueNumber" xml:"PrimaryEniQueueNumber"` - Memory int `json:"Memory" xml:"Memory"` - CpuTurboFrequency float64 `json:"CpuTurboFrequency" xml:"CpuTurboFrequency"` - BaselineCredit int `json:"BaselineCredit" xml:"BaselineCredit"` - EniTrunkSupported bool `json:"EniTrunkSupported" xml:"EniTrunkSupported"` - GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` - GPUMemorySize float64 `json:"GPUMemorySize" xml:"GPUMemorySize"` - NvmeSupport string `json:"NvmeSupport" xml:"NvmeSupport"` - InstanceCategory string `json:"InstanceCategory" xml:"InstanceCategory"` - EniIpv6AddressQuantity int `json:"EniIpv6AddressQuantity" xml:"EniIpv6AddressQuantity"` - LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` - CpuSpeedFrequency float64 `json:"CpuSpeedFrequency" xml:"CpuSpeedFrequency"` - LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` - PhysicalProcessorModel string `json:"PhysicalProcessorModel" xml:"PhysicalProcessorModel"` - SupportedBootModes SupportedBootModes `json:"SupportedBootModes" xml:"SupportedBootModes"` - EnhancedNetwork EnhancedNetwork `json:"EnhancedNetwork" xml:"EnhancedNetwork"` - CpuOptions CpuOptions `json:"CpuOptions" xml:"CpuOptions"` - NetworkCards NetworkCards `json:"NetworkCards" xml:"NetworkCards"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go deleted file mode 100644 index ed00ed498f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_instance_type_families.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceTypeFamiliesInDescribeInstanceTypeFamilies is a nested struct in ecs response -type InstanceTypeFamiliesInDescribeInstanceTypeFamilies struct { - InstanceTypeFamily []InstanceTypeFamily `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go deleted file mode 100644 index ece8395311..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_families_in_describe_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceTypeFamiliesInDescribeZones is a nested struct in ecs response -type InstanceTypeFamiliesInDescribeZones struct { - SupportedInstanceTypeFamily []string `json:"supportedInstanceTypeFamily" xml:"supportedInstanceTypeFamily"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go deleted file mode 100644 index cb659556ec..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceTypeFamily is a nested struct in ecs response -type InstanceTypeFamily struct { - Generation string `json:"Generation" xml:"Generation"` - InstanceTypeFamilyId string `json:"InstanceTypeFamilyId" xml:"InstanceTypeFamilyId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go deleted file mode 100644 index 23dc52400b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_image_support_instance_types.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceTypesInDescribeImageSupportInstanceTypes is a nested struct in ecs response -type InstanceTypesInDescribeImageSupportInstanceTypes struct { - InstanceType []InstanceType `json:"InstanceType" xml:"InstanceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go deleted file mode 100644 index 69012eae87..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_instance_types.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceTypesInDescribeInstanceTypes is a nested struct in ecs response -type InstanceTypesInDescribeInstanceTypes struct { - InstanceType []InstanceType `json:"InstanceType" xml:"InstanceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go deleted file mode 100644 index 250f80d05c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_types_in_describe_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceTypesInDescribeZones is a nested struct in ecs response -type InstanceTypesInDescribeZones struct { - SupportedInstanceType []string `json:"supportedInstanceType" xml:"supportedInstanceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_auto_provisioning_group_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_auto_provisioning_group_instances.go deleted file mode 100644 index 312cbb68bf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_auto_provisioning_group_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstancesInDescribeAutoProvisioningGroupInstances is a nested struct in ecs response -type InstancesInDescribeAutoProvisioningGroupInstances struct { - Instance []Instance `json:"Instance" xml:"Instance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_dedicated_hosts.go deleted file mode 100644 index 0b88522e4f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_dedicated_hosts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstancesInDescribeDedicatedHosts is a nested struct in ecs response -type InstancesInDescribeDedicatedHosts struct { - Instance []Instance `json:"Instance" xml:"Instance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instance_attachment_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instance_attachment_attributes.go deleted file mode 100644 index 1ac4f27059..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instance_attachment_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstancesInDescribeInstanceAttachmentAttributes is a nested struct in ecs response -type InstancesInDescribeInstanceAttachmentAttributes struct { - Instance []Instance `json:"Instance" xml:"Instance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instances.go deleted file mode 100644 index 82b254eed4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstancesInDescribeInstances is a nested struct in ecs response -type InstancesInDescribeInstances struct { - Instance []Instance `json:"Instance" xml:"Instance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_managed_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_managed_instances.go deleted file mode 100644 index 9d1c76f017..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_managed_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstancesInDescribeManagedInstances is a nested struct in ecs response -type InstancesInDescribeManagedInstances struct { - Instance []InstanceInDescribeManagedInstances `json:"Instance" xml:"Instance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go deleted file mode 100644 index c83b46debf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go +++ /dev/null @@ -1,57 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Invocation is a nested struct in ecs response -type Invocation struct { - Name string `json:"Name" xml:"Name"` - Timeout int64 `json:"Timeout" xml:"Timeout"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - Timed bool `json:"Timed" xml:"Timed"` - Frequency string `json:"Frequency" xml:"Frequency"` - ContainerId string `json:"ContainerId" xml:"ContainerId"` - Launcher string `json:"Launcher" xml:"Launcher"` - Content string `json:"Content" xml:"Content"` - CommandContent string `json:"CommandContent" xml:"CommandContent"` - InvocationStatus string `json:"InvocationStatus" xml:"InvocationStatus"` - FileGroup string `json:"FileGroup" xml:"FileGroup"` - Description string `json:"Description" xml:"Description"` - Overwrite string `json:"Overwrite" xml:"Overwrite"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - CommandId string `json:"CommandId" xml:"CommandId"` - TargetDir string `json:"TargetDir" xml:"TargetDir"` - FileMode string `json:"FileMode" xml:"FileMode"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - Username string `json:"Username" xml:"Username"` - TerminationMode string `json:"TerminationMode" xml:"TerminationMode"` - WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` - ContentType string `json:"ContentType" xml:"ContentType"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Parameters string `json:"Parameters" xml:"Parameters"` - CommandName string `json:"CommandName" xml:"CommandName"` - VmCount int `json:"VmCount" xml:"VmCount"` - NextToken string `json:"NextToken" xml:"NextToken"` - InvokeId string `json:"InvokeId" xml:"InvokeId"` - RepeatMode string `json:"RepeatMode" xml:"RepeatMode"` - InvokeStatus string `json:"InvokeStatus" xml:"InvokeStatus"` - ContainerName string `json:"ContainerName" xml:"ContainerName"` - FileOwner string `json:"FileOwner" xml:"FileOwner"` - CommandDescription string `json:"CommandDescription" xml:"CommandDescription"` - CommandType string `json:"CommandType" xml:"CommandType"` - Tags TagsInDescribeInvocations `json:"Tags" xml:"Tags"` - InvokeInstances InvokeInstancesInDescribeSendFileResults `json:"InvokeInstances" xml:"InvokeInstances"` - InvocationResults InvocationResults `json:"InvocationResults" xml:"InvocationResults"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go deleted file mode 100644 index 99a850eced..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go +++ /dev/null @@ -1,40 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InvocationResult is a nested struct in ecs response -type InvocationResult struct { - InvocationStatus string `json:"InvocationStatus" xml:"InvocationStatus"` - Repeats int `json:"Repeats" xml:"Repeats"` - CommandId string `json:"CommandId" xml:"CommandId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Output string `json:"Output" xml:"Output"` - Dropped int `json:"Dropped" xml:"Dropped"` - StopTime string `json:"StopTime" xml:"StopTime"` - ExitCode int64 `json:"ExitCode" xml:"ExitCode"` - StartTime string `json:"StartTime" xml:"StartTime"` - ErrorInfo string `json:"ErrorInfo" xml:"ErrorInfo"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - InvokeId string `json:"InvokeId" xml:"InvokeId"` - InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"` - Username string `json:"Username" xml:"Username"` - ContainerId string `json:"ContainerId" xml:"ContainerId"` - ContainerName string `json:"ContainerName" xml:"ContainerName"` - TerminationMode string `json:"TerminationMode" xml:"TerminationMode"` - Launcher string `json:"Launcher" xml:"Launcher"` - Tags TagsInDescribeInvocationResults `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go deleted file mode 100644 index c2f0bb520c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InvocationResults is a nested struct in ecs response -type InvocationResults struct { - InvocationResult []InvocationResult `json:"InvocationResult" xml:"InvocationResult"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_invocations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_invocations.go deleted file mode 100644 index 51ec5e065d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_invocations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InvocationsInDescribeInvocations is a nested struct in ecs response -type InvocationsInDescribeInvocations struct { - Invocation []Invocation `json:"Invocation" xml:"Invocation"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_send_file_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_send_file_results.go deleted file mode 100644 index edaabcbe0c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_send_file_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InvocationsInDescribeSendFileResults is a nested struct in ecs response -type InvocationsInDescribeSendFileResults struct { - Invocation []Invocation `json:"Invocation" xml:"Invocation"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go deleted file mode 100644 index b9a23ccd77..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go +++ /dev/null @@ -1,35 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InvokeInstance is a nested struct in ecs response -type InvokeInstance struct { - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - InstanceInvokeStatus string `json:"InstanceInvokeStatus" xml:"InstanceInvokeStatus"` - Timed bool `json:"Timed" xml:"Timed"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ErrorInfo string `json:"ErrorInfo" xml:"ErrorInfo"` - FinishTime string `json:"FinishTime" xml:"FinishTime"` - ExitCode int64 `json:"ExitCode" xml:"ExitCode"` - Repeats int `json:"Repeats" xml:"Repeats"` - StartTime string `json:"StartTime" xml:"StartTime"` - Dropped int `json:"Dropped" xml:"Dropped"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Output string `json:"Output" xml:"Output"` - InvocationStatus string `json:"InvocationStatus" xml:"InvocationStatus"` - StopTime string `json:"StopTime" xml:"StopTime"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_invocations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_invocations.go deleted file mode 100644 index a6dfd1b7b3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_invocations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InvokeInstancesInDescribeInvocations is a nested struct in ecs response -type InvokeInstancesInDescribeInvocations struct { - InvokeInstance []InvokeInstance `json:"InvokeInstance" xml:"InvokeInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_send_file_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_send_file_results.go deleted file mode 100644 index 2e13a17621..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_send_file_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InvokeInstancesInDescribeSendFileResults is a nested struct in ecs response -type InvokeInstancesInDescribeSendFileResults struct { - InvokeInstance []InvokeInstance `json:"InvokeInstance" xml:"InvokeInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set.go deleted file mode 100644 index 2fd7ba406b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv4PrefixSet is a nested struct in ecs response -type Ipv4PrefixSet struct { - Ipv4Prefix string `json:"Ipv4Prefix" xml:"Ipv4Prefix"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set_in_assign_private_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set_in_assign_private_ip_addresses.go deleted file mode 100644 index 1b3ef1987e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set_in_assign_private_ip_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv4PrefixSetInAssignPrivateIpAddresses is a nested struct in ecs response -type Ipv4PrefixSetInAssignPrivateIpAddresses struct { - Ipv4Prefixes []string `json:"Ipv4Prefixes" xml:"Ipv4Prefixes"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_create_network_interface.go deleted file mode 100644 index 4910417553..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_create_network_interface.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv4PrefixSetsInCreateNetworkInterface is a nested struct in ecs response -type Ipv4PrefixSetsInCreateNetworkInterface struct { - Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_instances.go deleted file mode 100644 index 8c441021a0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv4PrefixSetsInDescribeInstances is a nested struct in ecs response -type Ipv4PrefixSetsInDescribeInstances struct { - Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interface_attribute.go deleted file mode 100644 index 04c6a67398..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interface_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv4PrefixSetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response -type Ipv4PrefixSetsInDescribeNetworkInterfaceAttribute struct { - Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interfaces.go deleted file mode 100644 index c7ba9eb904..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interfaces.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv4PrefixSetsInDescribeNetworkInterfaces is a nested struct in ecs response -type Ipv4PrefixSetsInDescribeNetworkInterfaces struct { - Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_set.go deleted file mode 100644 index 7b838cea0f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6PrefixSet is a nested struct in ecs response -type Ipv6PrefixSet struct { - Ipv6Prefix string `json:"Ipv6Prefix" xml:"Ipv6Prefix"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_assign_ipv6_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_assign_ipv6_addresses.go deleted file mode 100644 index c7478e5b28..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_assign_ipv6_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6PrefixSetsInAssignIpv6Addresses is a nested struct in ecs response -type Ipv6PrefixSetsInAssignIpv6Addresses struct { - Ipv6Prefix []string `json:"Ipv6Prefix" xml:"Ipv6Prefix"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_create_network_interface.go deleted file mode 100644 index 23fd6ea391..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_create_network_interface.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6PrefixSetsInCreateNetworkInterface is a nested struct in ecs response -type Ipv6PrefixSetsInCreateNetworkInterface struct { - Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_instances.go deleted file mode 100644 index 74edf846de..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6PrefixSetsInDescribeInstances is a nested struct in ecs response -type Ipv6PrefixSetsInDescribeInstances struct { - Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interface_attribute.go deleted file mode 100644 index 3d0b59632e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interface_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6PrefixSetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response -type Ipv6PrefixSetsInDescribeNetworkInterfaceAttribute struct { - Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interfaces.go deleted file mode 100644 index 1434874f40..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interfaces.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6PrefixSetsInDescribeNetworkInterfaces is a nested struct in ecs response -type Ipv6PrefixSetsInDescribeNetworkInterfaces struct { - Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_set.go deleted file mode 100644 index 6b6af81aab..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6Set is a nested struct in ecs response -type Ipv6Set struct { - Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_assign_ipv6_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_assign_ipv6_addresses.go deleted file mode 100644 index 53c0ca2142..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_assign_ipv6_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6SetsInAssignIpv6Addresses is a nested struct in ecs response -type Ipv6SetsInAssignIpv6Addresses struct { - Ipv6Address []string `json:"Ipv6Address" xml:"Ipv6Address"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_create_network_interface.go deleted file mode 100644 index f3c5362f5b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_create_network_interface.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6SetsInCreateNetworkInterface is a nested struct in ecs response -type Ipv6SetsInCreateNetworkInterface struct { - Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_instances.go deleted file mode 100644 index 9d6085d5b4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6SetsInDescribeInstances is a nested struct in ecs response -type Ipv6SetsInDescribeInstances struct { - Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interface_attribute.go deleted file mode 100644 index 93c1355560..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interface_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6SetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response -type Ipv6SetsInDescribeNetworkInterfaceAttribute struct { - Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interfaces.go deleted file mode 100644 index dc1c585f87..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interfaces.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Ipv6SetsInDescribeNetworkInterfaces is a nested struct in ecs response -type Ipv6SetsInDescribeNetworkInterfaces struct { - Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issue.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issue.go deleted file mode 100644 index e255e9475b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issue.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Issue is a nested struct in ecs response -type Issue struct { - MetricId string `json:"MetricId" xml:"MetricId"` - Severity string `json:"Severity" xml:"Severity"` - OccurrenceTime string `json:"OccurrenceTime" xml:"OccurrenceTime"` - MetricCategory string `json:"MetricCategory" xml:"MetricCategory"` - IssueId string `json:"IssueId" xml:"IssueId"` - Additional string `json:"Additional" xml:"Additional"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_report_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_report_attributes.go deleted file mode 100644 index 1b9ab44d0c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_report_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// IssuesInDescribeDiagnosticReportAttributes is a nested struct in ecs response -type IssuesInDescribeDiagnosticReportAttributes struct { - Issue []Issue `json:"Issue" xml:"Issue"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_reports.go deleted file mode 100644 index 5ddfc6a115..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_reports.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// IssuesInDescribeDiagnosticReports is a nested struct in ecs response -type IssuesInDescribeDiagnosticReports struct { - Issue []Issue `json:"Issue" xml:"Issue"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_item.go deleted file mode 100644 index 66755cd8a0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_item.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Item is a nested struct in ecs response -type Item struct { - Name string `json:"Name" xml:"Name"` - Value string `json:"Value" xml:"Value"` - RiskLevel string `json:"RiskLevel" xml:"RiskLevel"` - RiskCode string `json:"RiskCode" xml:"RiskCode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_items.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_items.go deleted file mode 100644 index bb24eacab4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_items.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Items is a nested struct in ecs response -type Items struct { - Item []Item `json:"Item" xml:"Item"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go deleted file mode 100644 index f3ffaeab56..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// KeyPair is a nested struct in ecs response -type KeyPair struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - PublicKey string `json:"PublicKey" xml:"PublicKey"` - Tags TagsInDescribeKeyPairs `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go deleted file mode 100644 index 0c93a50d20..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pairs.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// KeyPairs is a nested struct in ecs response -type KeyPairs struct { - KeyPair []KeyPair `json:"KeyPair" xml:"KeyPair"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_result.go deleted file mode 100644 index 2208d85610..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_result.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchResult is a nested struct in ecs response -type LaunchResult struct { - ZoneId string `json:"ZoneId" xml:"ZoneId"` - ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - Amount int `json:"Amount" xml:"Amount"` - InstanceIds InstanceIdsInCreateAutoProvisioningGroup `json:"InstanceIds" xml:"InstanceIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_results.go deleted file mode 100644 index f4caf72e46..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchResults is a nested struct in ecs response -type LaunchResults struct { - LaunchResult []LaunchResult `json:"LaunchResult" xml:"LaunchResult"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go deleted file mode 100644 index 9bd117e687..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateConfig is a nested struct in ecs response -type LaunchTemplateConfig struct { - MaxPrice float64 `json:"MaxPrice" xml:"MaxPrice"` - Priority float64 `json:"Priority" xml:"Priority"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - WeightedCapacity float64 `json:"WeightedCapacity" xml:"WeightedCapacity"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs.go deleted file mode 100644 index 68ac80e023..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateConfigs is a nested struct in ecs response -type LaunchTemplateConfigs struct { - LaunchTemplateConfig []LaunchTemplateConfig `json:"LaunchTemplateConfig" xml:"LaunchTemplateConfig"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go deleted file mode 100644 index 3bf15773bd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go +++ /dev/null @@ -1,74 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateData is a nested struct in ecs response -type LaunchTemplateData struct { - DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` - VpcId string `json:"VpcId" xml:"VpcId"` - SystemDiskPerformanceLevel string `json:"SystemDisk.PerformanceLevel" xml:"SystemDisk.PerformanceLevel"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - EnableVmOsConfig bool `json:"EnableVmOsConfig" xml:"EnableVmOsConfig"` - Description string `json:"Description" xml:"Description"` - SpotDuration int `json:"SpotDuration" xml:"SpotDuration"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - SecurityEnhancementStrategy string `json:"SecurityEnhancementStrategy" xml:"SecurityEnhancementStrategy"` - UserData string `json:"UserData" xml:"UserData"` - SystemDiskDiskName string `json:"SystemDisk.DiskName" xml:"SystemDisk.DiskName"` - SystemDiskSize int `json:"SystemDisk.Size" xml:"SystemDisk.Size"` - SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` - PasswordInherit bool `json:"PasswordInherit" xml:"PasswordInherit"` - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` - ImageId string `json:"ImageId" xml:"ImageId"` - SystemDiskDeleteWithInstance bool `json:"SystemDisk.DeleteWithInstance" xml:"SystemDisk.DeleteWithInstance"` - SystemDiskCategory string `json:"SystemDisk.Category" xml:"SystemDisk.Category"` - AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` - SystemDiskDescription string `json:"SystemDisk.Description" xml:"SystemDisk.Description"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - HostName string `json:"HostName" xml:"HostName"` - SystemDiskIops int `json:"SystemDisk.Iops" xml:"SystemDisk.Iops"` - SystemDiskAutoSnapshotPolicyId string `json:"SystemDisk.AutoSnapshotPolicyId" xml:"SystemDisk.AutoSnapshotPolicyId"` - InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` - InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - Period int `json:"Period" xml:"Period"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` - RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - Ipv6AddressCount int `json:"Ipv6AddressCount" xml:"Ipv6AddressCount"` - SystemDiskProvisionedIops int64 `json:"SystemDisk.ProvisionedIops" xml:"SystemDisk.ProvisionedIops"` - SystemDiskBurstingEnabled bool `json:"SystemDisk.BurstingEnabled" xml:"SystemDisk.BurstingEnabled"` - SystemDiskEncrypted string `json:"SystemDisk.Encrypted" xml:"SystemDisk.Encrypted"` - DeletionProtection bool `json:"DeletionProtection" xml:"DeletionProtection"` - CreditSpecification string `json:"CreditSpecification" xml:"CreditSpecification"` - AutoRenew bool `json:"AutoRenew" xml:"AutoRenew"` - AutoRenewPeriod int `json:"AutoRenewPeriod" xml:"AutoRenewPeriod"` - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - HttpEndpoint string `json:"HttpEndpoint" xml:"HttpEndpoint"` - HttpTokens string `json:"HttpTokens" xml:"HttpTokens"` - HttpPutResponseHopLimit int `json:"HttpPutResponseHopLimit" xml:"HttpPutResponseHopLimit"` - SecurityGroupIds SecurityGroupIdsInDescribeLaunchTemplateVersions `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - DataDisks DataDisks `json:"DataDisks" xml:"DataDisks"` - NetworkInterfaces NetworkInterfacesInDescribeLaunchTemplateVersions `json:"NetworkInterfaces" xml:"NetworkInterfaces"` - Tags TagsInDescribeLaunchTemplateVersions `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go deleted file mode 100644 index 8a48e5d2f2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go +++ /dev/null @@ -1,29 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateSet is a nested struct in ecs response -type LaunchTemplateSet struct { - LaunchTemplateName string `json:"LaunchTemplateName" xml:"LaunchTemplateName"` - DefaultVersionNumber int64 `json:"DefaultVersionNumber" xml:"DefaultVersionNumber"` - ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CreatedBy string `json:"CreatedBy" xml:"CreatedBy"` - LatestVersionNumber int64 `json:"LatestVersionNumber" xml:"LatestVersionNumber"` - Tags TagsInDescribeLaunchTemplates `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go deleted file mode 100644 index 1ac4953106..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateSets is a nested struct in ecs response -type LaunchTemplateSets struct { - LaunchTemplateSet []LaunchTemplateSet `json:"LaunchTemplateSet" xml:"LaunchTemplateSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version.go deleted file mode 100644 index 1add5b375b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateVersion is a nested struct in ecs response -type LaunchTemplateVersion struct { - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - LaunchTemplateVersionNumber int64 `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_numbers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_numbers.go deleted file mode 100644 index daa45312e9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_numbers.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateVersionNumbers is a nested struct in ecs response -type LaunchTemplateVersionNumbers struct { - VersionNumbers []int64 `json:"versionNumbers" xml:"versionNumbers"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go deleted file mode 100644 index 639e8aaf8a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go +++ /dev/null @@ -1,29 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateVersionSet is a nested struct in ecs response -type LaunchTemplateVersionSet struct { - LaunchTemplateName string `json:"LaunchTemplateName" xml:"LaunchTemplateName"` - DefaultVersion bool `json:"DefaultVersion" xml:"DefaultVersion"` - VersionNumber int64 `json:"VersionNumber" xml:"VersionNumber"` - ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreatedBy string `json:"CreatedBy" xml:"CreatedBy"` - VersionDescription string `json:"VersionDescription" xml:"VersionDescription"` - LaunchTemplateData LaunchTemplateData `json:"LaunchTemplateData" xml:"LaunchTemplateData"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go deleted file mode 100644 index 2f2d1b3bbd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateVersionSets is a nested struct in ecs response -type LaunchTemplateVersionSets struct { - LaunchTemplateVersionSet []LaunchTemplateVersionSet `json:"LaunchTemplateVersionSet" xml:"LaunchTemplateVersionSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_versions.go deleted file mode 100644 index 99d877c6cd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_versions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LaunchTemplateVersions is a nested struct in ecs response -type LaunchTemplateVersions struct { - LaunchTemplateVersion []LaunchTemplateVersion `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go deleted file mode 100644 index 8442c4d453..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Link is a nested struct in ecs response -type Link struct { - VpcId string `json:"VpcId" xml:"VpcId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go deleted file mode 100644 index bd6406862b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_links.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Links is a nested struct in ecs response -type Links struct { - Link []Link `json:"Link" xml:"Link"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacities.go deleted file mode 100644 index d38350ab96..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacities.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LocalStorageCapacities is a nested struct in ecs response -type LocalStorageCapacities struct { - LocalStorageCapacity []LocalStorageCapacity `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacity.go deleted file mode 100644 index 5f1b6f58b4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacity.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LocalStorageCapacity is a nested struct in ecs response -type LocalStorageCapacity struct { - DataDiskCategory string `json:"DataDiskCategory" xml:"DataDiskCategory"` - AvailableDisk int `json:"AvailableDisk" xml:"AvailableDisk"` - TotalDisk int `json:"TotalDisk" xml:"TotalDisk"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go deleted file mode 100644 index a4a3870f16..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_lock_reason.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LockReason is a nested struct in ecs response -type LockReason struct { - LockReason string `json:"LockReason" xml:"LockReason"` - LockMsg string `json:"LockMsg" xml:"LockMsg"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attribute.go deleted file mode 100644 index 0cfa7f50e0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attribute.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MaintenanceAttribute is a nested struct in ecs response -type MaintenanceAttribute struct { - NotifyOnMaintenance bool `json:"NotifyOnMaintenance" xml:"NotifyOnMaintenance"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - ActionOnMaintenance ActionOnMaintenance `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"` - MaintenanceWindows MaintenanceWindows `json:"MaintenanceWindows" xml:"MaintenanceWindows"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attributes.go deleted file mode 100644 index d50c2b8555..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MaintenanceAttributes is a nested struct in ecs response -type MaintenanceAttributes struct { - MaintenanceAttribute []MaintenanceAttribute `json:"MaintenanceAttribute" xml:"MaintenanceAttribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_window.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_window.go deleted file mode 100644 index 9936343253..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_window.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MaintenanceWindow is a nested struct in ecs response -type MaintenanceWindow struct { - EndTime string `json:"EndTime" xml:"EndTime"` - StartTime string `json:"StartTime" xml:"StartTime"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_windows_.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_windows_.go deleted file mode 100644 index c19cd9e510..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_windows_.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MaintenanceWindows is a nested struct in ecs response -type MaintenanceWindows struct { - MaintenanceWindow []MaintenanceWindow `json:"MaintenanceWindow" xml:"MaintenanceWindow"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_marketplace_image_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_marketplace_image_price.go deleted file mode 100644 index c0534850f2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_marketplace_image_price.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MarketplaceImagePrice is a nested struct in ecs response -type MarketplaceImagePrice struct { - Currency string `json:"Currency" xml:"Currency"` - OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` - DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_member_network_interface_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_member_network_interface_ids.go deleted file mode 100644 index 7ab200a23e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_member_network_interface_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MemberNetworkInterfaceIds is a nested struct in ecs response -type MemberNetworkInterfaceIds struct { - MemberNetworkInterfaceId []string `json:"MemberNetworkInterfaceId" xml:"MemberNetworkInterfaceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metadata_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metadata_options.go deleted file mode 100644 index c54c6b7153..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metadata_options.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MetadataOptions is a nested struct in ecs response -type MetadataOptions struct { - HttpEndpoint string `json:"HttpEndpoint" xml:"HttpEndpoint"` - HttpPutResponseHopLimit int `json:"HttpPutResponseHopLimit" xml:"HttpPutResponseHopLimit"` - HttpTokens string `json:"HttpTokens" xml:"HttpTokens"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric.go deleted file mode 100644 index af8aa464d4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Metric is a nested struct in ecs response -type Metric struct { - MetricId string `json:"MetricId" xml:"MetricId"` - MetricName string `json:"MetricName" xml:"MetricName"` - MetricCategory string `json:"MetricCategory" xml:"MetricCategory"` - Description string `json:"Description" xml:"Description"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` - GuestMetric bool `json:"GuestMetric" xml:"GuestMetric"` - SupportedOperatingSystem string `json:"SupportedOperatingSystem" xml:"SupportedOperatingSystem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_ids.go deleted file mode 100644 index 0fd9446660..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MetricIds is a nested struct in ecs response -type MetricIds struct { - MetricId []string `json:"MetricId" xml:"MetricId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_result.go deleted file mode 100644 index b1f57d5484..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_result.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MetricResult is a nested struct in ecs response -type MetricResult struct { - MetricId string `json:"MetricId" xml:"MetricId"` - MetricCategory string `json:"MetricCategory" xml:"MetricCategory"` - Severity string `json:"Severity" xml:"Severity"` - Status string `json:"Status" xml:"Status"` - Issues IssuesInDescribeDiagnosticReportAttributes `json:"Issues" xml:"Issues"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_results.go deleted file mode 100644 index d253ede1f3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MetricResults is a nested struct in ecs response -type MetricResults struct { - MetricResult []MetricResult `json:"MetricResult" xml:"MetricResult"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_set.go deleted file mode 100644 index e0d7e55911..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_set.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MetricSet is a nested struct in ecs response -type MetricSet struct { - MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` - MetricSetName string `json:"MetricSetName" xml:"MetricSetName"` - Description string `json:"Description" xml:"Description"` - Type string `json:"Type" xml:"Type"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` - MetricIds []string `json:"MetricIds" xml:"MetricIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_sets.go deleted file mode 100644 index 6a0bec5e73..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MetricSets is a nested struct in ecs response -type MetricSets struct { - MetricSet []MetricSet `json:"MetricSet" xml:"MetricSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metrics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metrics.go deleted file mode 100644 index 099820fb87..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metrics.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Metrics is a nested struct in ecs response -type Metrics struct { - Metric []Metric `json:"Metric" xml:"Metric"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_migration_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_migration_options.go deleted file mode 100644 index e01311d38f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_migration_options.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MigrationOptions is a nested struct in ecs response -type MigrationOptions struct { - MigrationOption []string `json:"MigrationOption" xml:"MigrationOption"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go deleted file mode 100644 index b4fb6b120d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_disk_monitor_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MonitorDataInDescribeDiskMonitorData is a nested struct in ecs response -type MonitorDataInDescribeDiskMonitorData struct { - DiskMonitorData []DiskMonitorData `json:"DiskMonitorData" xml:"DiskMonitorData"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_eni_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_eni_monitor_data.go deleted file mode 100644 index 917b33fa26..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_eni_monitor_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MonitorDataInDescribeEniMonitorData is a nested struct in ecs response -type MonitorDataInDescribeEniMonitorData struct { - EniMonitorData []EniMonitorData `json:"EniMonitorData" xml:"EniMonitorData"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go deleted file mode 100644 index 3d57afeca5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_instance_monitor_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MonitorDataInDescribeInstanceMonitorData is a nested struct in ecs response -type MonitorDataInDescribeInstanceMonitorData struct { - InstanceMonitorData []InstanceMonitorData `json:"InstanceMonitorData" xml:"InstanceMonitorData"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go deleted file mode 100644 index efec563382..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_monitor_data_in_describe_snapshot_monitor_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MonitorDataInDescribeSnapshotMonitorData is a nested struct in ecs response -type MonitorDataInDescribeSnapshotMonitorData struct { - DataPoint []DataPoint `json:"DataPoint" xml:"DataPoint"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go deleted file mode 100644 index 22d73e62dc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MountInstance is a nested struct in ecs response -type MountInstance struct { - AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Device string `json:"Device" xml:"Device"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go deleted file mode 100644 index bdbfe6c2a9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MountInstances is a nested struct in ecs response -type MountInstances struct { - MountInstance []MountInstance `json:"MountInstance" xml:"MountInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go deleted file mode 100644 index c6775257ac..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NatGateway is a nested struct in ecs response -type NatGateway struct { - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - VpcId string `json:"VpcId" xml:"VpcId"` - Spec string `json:"Spec" xml:"Spec"` - Description string `json:"Description" xml:"Description"` - NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - Name string `json:"Name" xml:"Name"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - RegionId string `json:"RegionId" xml:"RegionId"` - ForwardTableIds ForwardTableIdsInDescribeNatGateways `json:"ForwardTableIds" xml:"ForwardTableIds"` - BandwidthPackageIds BandwidthPackageIdsInDescribeNatGateways `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go deleted file mode 100644 index abaccb98cd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateways.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NatGateways is a nested struct in ecs response -type NatGateways struct { - NatGateway []NatGateway `json:"NatGateway" xml:"NatGateway"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go deleted file mode 100644 index 1643d8a154..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkAttributes is a nested struct in ecs response -type NetworkAttributes struct { - UdpTimeout int `json:"UdpTimeout" xml:"UdpTimeout"` - SlbUdpTimeout int `json:"SlbUdpTimeout" xml:"SlbUdpTimeout"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_card_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_card_info.go deleted file mode 100644 index f7f1512e5e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_card_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkCardInfo is a nested struct in ecs response -type NetworkCardInfo struct { - NetworkCardIndex int `json:"NetworkCardIndex" xml:"NetworkCardIndex"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_cards.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_cards.go deleted file mode 100644 index 8081e39d93..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_cards.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkCards is a nested struct in ecs response -type NetworkCards struct { - NetworkCardInfo []NetworkCardInfo `json:"NetworkCardInfo" xml:"NetworkCardInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go deleted file mode 100644 index 0892a27ce5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go +++ /dev/null @@ -1,36 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterface is a nested struct in ecs response -type NetworkInterface struct { - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - DeleteOnRelease bool `json:"DeleteOnRelease" xml:"DeleteOnRelease"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - MacAddress string `json:"MacAddress" xml:"MacAddress"` - NetworkInterfaceTrafficMode string `json:"NetworkInterfaceTrafficMode" xml:"NetworkInterfaceTrafficMode"` - NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - PrimaryIpAddress string `json:"PrimaryIpAddress" xml:"PrimaryIpAddress"` - Description string `json:"Description" xml:"Description"` - Type string `json:"Type" xml:"Type"` - SecurityGroupIds SecurityGroupIdsInDescribeLaunchTemplateVersions `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - Ipv6PrefixSets Ipv6PrefixSetsInDescribeInstances `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` - Ipv4PrefixSets Ipv4PrefixSetsInDescribeInstances `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` - Ipv6Sets Ipv6SetsInDescribeInstances `json:"Ipv6Sets" xml:"Ipv6Sets"` - PrivateIpSets PrivateIpSetsInDescribeInstances `json:"PrivateIpSets" xml:"PrivateIpSets"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go deleted file mode 100644 index 5045e81e35..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterfacePermission is a nested struct in ecs response -type NetworkInterfacePermission struct { - Permission string `json:"Permission" xml:"Permission"` - AccountId int64 `json:"AccountId" xml:"AccountId"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - NetworkInterfacePermissionId string `json:"NetworkInterfacePermissionId" xml:"NetworkInterfacePermissionId"` - ServiceName string `json:"ServiceName" xml:"ServiceName"` - PermissionState string `json:"PermissionState" xml:"PermissionState"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go deleted file mode 100644 index 31c2326345..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permissions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterfacePermissions is a nested struct in ecs response -type NetworkInterfacePermissions struct { - NetworkInterfacePermission []NetworkInterfacePermission `json:"NetworkInterfacePermission" xml:"NetworkInterfacePermission"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go deleted file mode 100644 index dd58981c55..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go +++ /dev/null @@ -1,49 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterfaceSet is a nested struct in ecs response -type NetworkInterfaceSet struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - VpcId string `json:"VpcId" xml:"VpcId"` - Type string `json:"Type" xml:"Type"` - Status string `json:"Status" xml:"Status"` - NetworkInterfaceTrafficMode string `json:"NetworkInterfaceTrafficMode" xml:"NetworkInterfaceTrafficMode"` - NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` - MacAddress string `json:"MacAddress" xml:"MacAddress"` - QueuePairNumber int `json:"QueuePairNumber" xml:"QueuePairNumber"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - ServiceID int64 `json:"ServiceID" xml:"ServiceID"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - OwnerId string `json:"OwnerId" xml:"OwnerId"` - ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - Description string `json:"Description" xml:"Description"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` - QueueNumber int `json:"QueueNumber" xml:"QueueNumber"` - DeleteOnRelease bool `json:"DeleteOnRelease" xml:"DeleteOnRelease"` - SourceDestCheck bool `json:"SourceDestCheck" xml:"SourceDestCheck"` - SecurityGroupIds SecurityGroupIdsInDescribeNetworkInterfaces `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` - Attachment Attachment `json:"Attachment" xml:"Attachment"` - PrivateIpSets PrivateIpSetsInDescribeNetworkInterfaces `json:"PrivateIpSets" xml:"PrivateIpSets"` - Ipv6Sets Ipv6SetsInDescribeNetworkInterfaces `json:"Ipv6Sets" xml:"Ipv6Sets"` - Ipv4PrefixSets Ipv4PrefixSetsInDescribeNetworkInterfaces `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` - Ipv6PrefixSets Ipv6PrefixSetsInDescribeNetworkInterfaces `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` - Tags TagsInDescribeNetworkInterfaces `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go deleted file mode 100644 index e62c104a93..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterfaceSets is a nested struct in ecs response -type NetworkInterfaceSets struct { - NetworkInterfaceSet []NetworkInterfaceSet `json:"NetworkInterfaceSet" xml:"NetworkInterfaceSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_traffic_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_traffic_config.go deleted file mode 100644 index 70108eeef3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_traffic_config.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterfaceTrafficConfig is a nested struct in ecs response -type NetworkInterfaceTrafficConfig struct { - NetworkInterfaceTrafficMode string `json:"NetworkInterfaceTrafficMode" xml:"NetworkInterfaceTrafficMode"` - QueueNumber int `json:"QueueNumber" xml:"QueueNumber"` - QueuePairNumber int `json:"QueuePairNumber" xml:"QueuePairNumber"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go deleted file mode 100644 index f506480d26..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterfacesInDescribeInstances is a nested struct in ecs response -type NetworkInterfacesInDescribeInstances struct { - NetworkInterface []NetworkInterface `json:"NetworkInterface" xml:"NetworkInterface"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go deleted file mode 100644 index 44e533aafd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interfaces_in_describe_launch_template_versions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkInterfacesInDescribeLaunchTemplateVersions is a nested struct in ecs response -type NetworkInterfacesInDescribeLaunchTemplateVersions struct { - NetworkInterface []NetworkInterface `json:"NetworkInterface" xml:"NetworkInterface"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go deleted file mode 100644 index 519a9b639e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_recommend_instance_type.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkTypesInDescribeRecommendInstanceType is a nested struct in ecs response -type NetworkTypesInDescribeRecommendInstanceType struct { - NetworkType []string `json:"NetworkType" xml:"NetworkType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go deleted file mode 100644 index 383cbf4666..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_types_in_describe_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NetworkTypesInDescribeZones is a nested struct in ecs response -type NetworkTypesInDescribeZones struct { - SupportedNetworkCategory []string `json:"supportedNetworkCategory" xml:"supportedNetworkCategory"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go deleted file mode 100644 index c42202f283..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NextHop is a nested struct in ecs response -type NextHop struct { - Weight int `json:"Weight" xml:"Weight"` - NextHopId string `json:"NextHopId" xml:"NextHopId"` - NextHopType string `json:"NextHopType" xml:"NextHopType"` - Enabled int `json:"Enabled" xml:"Enabled"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go deleted file mode 100644 index 8c89647ab1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hops.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// NextHops is a nested struct in ecs response -type NextHops struct { - NextHop []NextHop `json:"NextHop" xml:"NextHop"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go deleted file mode 100644 index 444bcf3fb0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_lock.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationLock is a nested struct in ecs response -type OperationLock struct { - LockReason string `json:"LockReason" xml:"LockReason"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_dedicated_hosts.go deleted file mode 100644 index ea35cd1a1b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_dedicated_hosts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationLocksInDescribeDedicatedHosts is a nested struct in ecs response -type OperationLocksInDescribeDedicatedHosts struct { - OperationLock []OperationLock `json:"OperationLock" xml:"OperationLock"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go deleted file mode 100644 index a16980368c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_disks.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationLocksInDescribeDisks is a nested struct in ecs response -type OperationLocksInDescribeDisks struct { - OperationLock []OperationLock `json:"OperationLock" xml:"OperationLock"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go deleted file mode 100644 index 79c313cb64..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_eip_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationLocksInDescribeEipAddresses is a nested struct in ecs response -type OperationLocksInDescribeEipAddresses struct { - LockReason []LockReason `json:"LockReason" xml:"LockReason"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go deleted file mode 100644 index 29fb7779d2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instance_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationLocksInDescribeInstanceAttribute is a nested struct in ecs response -type OperationLocksInDescribeInstanceAttribute struct { - LockReason []LockReason `json:"LockReason" xml:"LockReason"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go deleted file mode 100644 index b28abc2fc1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationLocksInDescribeInstances is a nested struct in ecs response -type OperationLocksInDescribeInstances struct { - LockReason []LockReason `json:"LockReason" xml:"LockReason"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_reserved_instances.go deleted file mode 100644 index 050efdba94..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_locks_in_describe_reserved_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationLocksInDescribeReservedInstances is a nested struct in ecs response -type OperationLocksInDescribeReservedInstances struct { - OperationLock []OperationLock `json:"OperationLock" xml:"OperationLock"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go deleted file mode 100644 index cdcacf49cd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationProgress is a nested struct in ecs response -type OperationProgress struct { - ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` - OperationStatus string `json:"OperationStatus" xml:"OperationStatus"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - RelatedItemSet RelatedItemSetInDeleteSnapshotGroup `json:"RelatedItemSet" xml:"RelatedItemSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_delete_snapshot_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_delete_snapshot_group.go deleted file mode 100644 index 2e932f94c9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_delete_snapshot_group.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationProgressSetInDeleteSnapshotGroup is a nested struct in ecs response -type OperationProgressSetInDeleteSnapshotGroup struct { - OperationProgress []OperationProgress `json:"OperationProgress" xml:"OperationProgress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_describe_task_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_describe_task_attribute.go deleted file mode 100644 index 9edcc6c3d2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_describe_task_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationProgressSetInDescribeTaskAttribute is a nested struct in ecs response -type OperationProgressSetInDescribeTaskAttribute struct { - OperationProgress []OperationProgress `json:"OperationProgress" xml:"OperationProgress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_reset_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_reset_disks.go deleted file mode 100644 index e2e34523fa..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_reset_disks.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OperationProgressSetInResetDisks is a nested struct in ecs response -type OperationProgressSetInResetDisks struct { - OperationProgress []OperationProgress `json:"OperationProgress" xml:"OperationProgress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_config.go deleted file mode 100644 index a6c6dca56e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_config.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OssDeliveryConfig is a nested struct in ecs response -type OssDeliveryConfig struct { - EncryptionType string `json:"EncryptionType" xml:"EncryptionType"` - EncryptionAlgorithm string `json:"EncryptionAlgorithm" xml:"EncryptionAlgorithm"` - DeliveryType string `json:"DeliveryType" xml:"DeliveryType"` - Enabled bool `json:"Enabled" xml:"Enabled"` - BucketName string `json:"BucketName" xml:"BucketName"` - Prefix string `json:"Prefix" xml:"Prefix"` - EncryptionKeyId string `json:"EncryptionKeyId" xml:"EncryptionKeyId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_configs.go deleted file mode 100644 index d03d036f70..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_oss_delivery_configs.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OssDeliveryConfigs is a nested struct in ecs response -type OssDeliveryConfigs struct { - OssDeliveryConfig []OssDeliveryConfig `json:"OssDeliveryConfig" xml:"OssDeliveryConfig"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter.go deleted file mode 100644 index a266b2d5ab..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Parameter is a nested struct in ecs response -type Parameter struct { - Name string `json:"Name" xml:"Name"` - Type string `json:"Type" xml:"Type"` - DefaultValue string `json:"DefaultValue" xml:"DefaultValue"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definition.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definition.go deleted file mode 100644 index e95565f224..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definition.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ParameterDefinition is a nested struct in ecs response -type ParameterDefinition struct { - Required bool `json:"Required" xml:"Required"` - Description string `json:"Description" xml:"Description"` - DefaultValue string `json:"DefaultValue" xml:"DefaultValue"` - ParameterName string `json:"ParameterName" xml:"ParameterName"` - PatternRegex string `json:"PatternRegex" xml:"PatternRegex"` - PossibleValues PossibleValues `json:"PossibleValues" xml:"PossibleValues"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definitions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definitions.go deleted file mode 100644 index 47398ecdca..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definitions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ParameterDefinitions is a nested struct in ecs response -type ParameterDefinitions struct { - ParameterDefinition []ParameterDefinition `json:"ParameterDefinition" xml:"ParameterDefinition"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_names.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_names.go deleted file mode 100644 index dd2e30aa8e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_names.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ParameterNames is a nested struct in ecs response -type ParameterNames struct { - ParameterName []string `json:"ParameterName" xml:"ParameterName"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameters.go deleted file mode 100644 index 6310fcd221..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameters.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Parameters is a nested struct in ecs response -type Parameters struct { - Parameter []Parameter `json:"Parameter" xml:"Parameter"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_pay_as_you_go_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_pay_as_you_go_options.go deleted file mode 100644 index 64bf589b22..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_pay_as_you_go_options.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PayAsYouGoOptions is a nested struct in ecs response -type PayAsYouGoOptions struct { - AllocationStrategy string `json:"AllocationStrategy" xml:"AllocationStrategy"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go deleted file mode 100644 index f4bcb3018d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go +++ /dev/null @@ -1,44 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Permission is a nested struct in ecs response -type Permission struct { - SecurityGroupRuleId string `json:"SecurityGroupRuleId" xml:"SecurityGroupRuleId"` - Direction string `json:"Direction" xml:"Direction"` - SourceGroupId string `json:"SourceGroupId" xml:"SourceGroupId"` - DestGroupOwnerAccount string `json:"DestGroupOwnerAccount" xml:"DestGroupOwnerAccount"` - DestPrefixListId string `json:"DestPrefixListId" xml:"DestPrefixListId"` - DestPrefixListName string `json:"DestPrefixListName" xml:"DestPrefixListName"` - SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"` - Ipv6DestCidrIp string `json:"Ipv6DestCidrIp" xml:"Ipv6DestCidrIp"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - Ipv6SourceCidrIp string `json:"Ipv6SourceCidrIp" xml:"Ipv6SourceCidrIp"` - DestGroupId string `json:"DestGroupId" xml:"DestGroupId"` - DestCidrIp string `json:"DestCidrIp" xml:"DestCidrIp"` - IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` - Priority string `json:"Priority" xml:"Priority"` - DestGroupName string `json:"DestGroupName" xml:"DestGroupName"` - NicType string `json:"NicType" xml:"NicType"` - Policy string `json:"Policy" xml:"Policy"` - Description string `json:"Description" xml:"Description"` - PortRange string `json:"PortRange" xml:"PortRange"` - SourcePrefixListName string `json:"SourcePrefixListName" xml:"SourcePrefixListName"` - SourcePrefixListId string `json:"SourcePrefixListId" xml:"SourcePrefixListId"` - SourceGroupOwnerAccount string `json:"SourceGroupOwnerAccount" xml:"SourceGroupOwnerAccount"` - SourceGroupName string `json:"SourceGroupName" xml:"SourceGroupName"` - SourcePortRange string `json:"SourcePortRange" xml:"SourcePortRange"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go deleted file mode 100644 index 856f7b1ae3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permissions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Permissions is a nested struct in ecs response -type Permissions struct { - Permission []Permission `json:"Permission" xml:"Permission"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go deleted file mode 100644 index 91ec256f0a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PhysicalConnectionSet is a nested struct in ecs response -type PhysicalConnectionSet struct { - PhysicalConnectionType []PhysicalConnectionType `json:"PhysicalConnectionType" xml:"PhysicalConnectionType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go deleted file mode 100644 index ae8ea83c17..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go +++ /dev/null @@ -1,38 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PhysicalConnectionType is a nested struct in ecs response -type PhysicalConnectionType struct { - AdLocation string `json:"AdLocation" xml:"AdLocation"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` - Type string `json:"Type" xml:"Type"` - PortNumber string `json:"PortNumber" xml:"PortNumber"` - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - Spec string `json:"Spec" xml:"Spec"` - Bandwidth int64 `json:"Bandwidth" xml:"Bandwidth"` - Description string `json:"Description" xml:"Description"` - PortType string `json:"PortType" xml:"PortType"` - EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - LineOperator string `json:"LineOperator" xml:"LineOperator"` - Name string `json:"Name" xml:"Name"` - RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` - PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_placement.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_placement.go deleted file mode 100644 index 9f6393f0c2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_placement.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Placement is a nested struct in ecs response -type Placement struct { - ZoneIds string `json:"ZoneIds" xml:"ZoneIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status.go deleted file mode 100644 index f00a4a7b84..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PluginStatus is a nested struct in ecs response -type PluginStatus struct { - PluginVersion string `json:"PluginVersion" xml:"PluginVersion"` - PluginName string `json:"PluginName" xml:"PluginName"` - FirstHeartbeatTime string `json:"FirstHeartbeatTime" xml:"FirstHeartbeatTime"` - LastHeartbeatTime string `json:"LastHeartbeatTime" xml:"LastHeartbeatTime"` - PluginStatus string `json:"PluginStatus" xml:"PluginStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status_set.go deleted file mode 100644 index 3c578fb826..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PluginStatusSet is a nested struct in ecs response -type PluginStatusSet struct { - PluginStatus []PluginStatus `json:"PluginStatus" xml:"PluginStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_possible_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_possible_values.go deleted file mode 100644 index 867a834dbf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_possible_values.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PossibleValues is a nested struct in ecs response -type PossibleValues struct { - PossibleValue []string `json:"PossibleValue" xml:"PossibleValue"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list.go deleted file mode 100644 index ab499174a5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrefixList is a nested struct in ecs response -type PrefixList struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - AssociationCount int `json:"AssociationCount" xml:"AssociationCount"` - MaxEntries int `json:"MaxEntries" xml:"MaxEntries"` - Description string `json:"Description" xml:"Description"` - AddressFamily string `json:"AddressFamily" xml:"AddressFamily"` - PrefixListName string `json:"PrefixListName" xml:"PrefixListName"` - PrefixListId string `json:"PrefixListId" xml:"PrefixListId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_association.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_association.go deleted file mode 100644 index 3376f1ce1a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_association.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrefixListAssociation is a nested struct in ecs response -type PrefixListAssociation struct { - ResourceId string `json:"ResourceId" xml:"ResourceId"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_associations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_associations.go deleted file mode 100644 index d586993b95..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_associations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrefixListAssociations is a nested struct in ecs response -type PrefixListAssociations struct { - PrefixListAssociation []PrefixListAssociation `json:"PrefixListAssociation" xml:"PrefixListAssociation"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_lists.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_lists.go deleted file mode 100644 index 4c8977c191..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_lists.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrefixLists is a nested struct in ecs response -type PrefixLists struct { - PrefixList []PrefixList `json:"PrefixList" xml:"PrefixList"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go deleted file mode 100644 index 26f2f128e9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go +++ /dev/null @@ -1,38 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Price is a nested struct in ecs response -type Price struct { - SpotInstanceTypeOriginalPrice float64 `json:"SpotInstanceTypeOriginalPrice" xml:"SpotInstanceTypeOriginalPrice"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` - ReservedInstanceHourTradePrice float64 `json:"ReservedInstanceHourTradePrice" xml:"ReservedInstanceHourTradePrice"` - OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` - Currency string `json:"Currency" xml:"Currency"` - IsContractPromotion bool `json:"IsContractPromotion" xml:"IsContractPromotion"` - SpotInstanceTypePrice float64 `json:"SpotInstanceTypePrice" xml:"SpotInstanceTypePrice"` - DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` - StandardPrice float64 `json:"StandardPrice" xml:"StandardPrice"` - StandardDiscountPrice float64 `json:"StandardDiscountPrice" xml:"StandardDiscountPrice"` - ReservedInstanceHourPrice float64 `json:"ReservedInstanceHourPrice" xml:"ReservedInstanceHourPrice"` - ReservedInstanceHourDiscountPrice float64 `json:"ReservedInstanceHourDiscountPrice" xml:"ReservedInstanceHourDiscountPrice"` - RuleIdSet RuleIdSetInDescribeInstanceModificationPrice `json:"RuleIdSet" xml:"RuleIdSet"` - DepreciateInfo DepreciateInfo `json:"DepreciateInfo" xml:"DepreciateInfo"` - SubPrices SubPrices `json:"SubPrices" xml:"SubPrices"` - Coupons CouponsInDescribeInstanceModificationPrice `json:"Coupons" xml:"Coupons"` - Promotions PromotionsInDescribeInstanceModificationPrice `json:"Promotions" xml:"Promotions"` - DetailInfos DetailInfosInDescribeInstanceModificationPrice `json:"DetailInfos" xml:"DetailInfos"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go deleted file mode 100644 index 54a1a6ce7f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PriceInfo is a nested struct in ecs response -type PriceInfo struct { - Price Price `json:"Price" xml:"Price"` - RelatedPrice RelatedPrice `json:"RelatedPrice" xml:"RelatedPrice"` - PriceWarning PriceWarning `json:"PriceWarning" xml:"PriceWarning"` - Rules RulesInDescribeInstanceModificationPrice `json:"Rules" xml:"Rules"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info_in_describe_savings_plan_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info_in_describe_savings_plan_price.go deleted file mode 100644 index 65fa9736e5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info_in_describe_savings_plan_price.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PriceInfoInDescribeSavingsPlanPrice is a nested struct in ecs response -type PriceInfoInDescribeSavingsPlanPrice struct { - Price Price `json:"Price" xml:"Price"` - Rules []RulesItem `json:"Rules" xml:"Rules"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_warning.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_warning.go deleted file mode 100644 index 4dee013178..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_warning.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PriceWarning is a nested struct in ecs response -type PriceWarning struct { - Code string `json:"Code" xml:"Code"` - Msg string `json:"Msg" xml:"Msg"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_dns_name_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_dns_name_options.go deleted file mode 100644 index e55d4d94ba..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_dns_name_options.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateDnsNameOptions is a nested struct in ecs response -type PrivateDnsNameOptions struct { - EnableInstanceIdDnsARecord bool `json:"EnableInstanceIdDnsARecord" xml:"EnableInstanceIdDnsARecord"` - EnableInstanceIdDnsAAAARecord bool `json:"EnableInstanceIdDnsAAAARecord" xml:"EnableInstanceIdDnsAAAARecord"` - EnableIpDnsARecord bool `json:"EnableIpDnsARecord" xml:"EnableIpDnsARecord"` - EnableIpDnsPtrRecord bool `json:"EnableIpDnsPtrRecord" xml:"EnableIpDnsPtrRecord"` - HostnameType string `json:"HostnameType" xml:"HostnameType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go deleted file mode 100644 index 35554714b4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instance_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpAddressInDescribeInstanceAttribute is a nested struct in ecs response -type PrivateIpAddressInDescribeInstanceAttribute struct { - IpAddress []string `json:"IpAddress" xml:"IpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go deleted file mode 100644 index 611be66a1a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_address_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpAddressInDescribeInstances is a nested struct in ecs response -type PrivateIpAddressInDescribeInstances struct { - IpAddress []string `json:"IpAddress" xml:"IpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go deleted file mode 100644 index 1469e24985..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpSet is a nested struct in ecs response -type PrivateIpSet struct { - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` - PrivateDnsName string `json:"PrivateDnsName" xml:"PrivateDnsName"` - Primary bool `json:"Primary" xml:"Primary"` - AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set_in_assign_private_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set_in_assign_private_ip_addresses.go deleted file mode 100644 index f012cd3f02..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set_in_assign_private_ip_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpSetInAssignPrivateIpAddresses is a nested struct in ecs response -type PrivateIpSetInAssignPrivateIpAddresses struct { - PrivateIpAddress []string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_create_network_interface.go deleted file mode 100644 index 65ae60d1e7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_create_network_interface.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpSetsInCreateNetworkInterface is a nested struct in ecs response -type PrivateIpSetsInCreateNetworkInterface struct { - PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_instances.go deleted file mode 100644 index 59403d0271..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpSetsInDescribeInstances is a nested struct in ecs response -type PrivateIpSetsInDescribeInstances struct { - PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interface_attribute.go deleted file mode 100644 index a557a7560c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interface_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpSetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response -type PrivateIpSetsInDescribeNetworkInterfaceAttribute struct { - PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interfaces.go deleted file mode 100644 index 82c5572cf3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interfaces.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivateIpSetsInDescribeNetworkInterfaces is a nested struct in ecs response -type PrivateIpSetsInDescribeNetworkInterfaces struct { - PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_pool_options_id_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_pool_options_id_set.go deleted file mode 100644 index 3f8772f63a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_pool_options_id_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PrivatePoolOptionsIdSet is a nested struct in ecs response -type PrivatePoolOptionsIdSet struct { - PrivatePoolOptionsId []string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotion.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotion.go deleted file mode 100644 index fb739dbfe0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotion.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Promotion is a nested struct in ecs response -type Promotion struct { - Name string `json:"Name" xml:"Name"` - RemainQuota float64 `json:"RemainQuota" xml:"RemainQuota"` - DiscountOff float64 `json:"DiscountOff" xml:"DiscountOff"` - Type string `json:"Type" xml:"Type"` - RuleIds RuleIdsInDescribeInstanceModificationPrice `json:"RuleIds" xml:"RuleIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_instance_modification_price.go deleted file mode 100644 index a14399c4b2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PromotionsInDescribeInstanceModificationPrice is a nested struct in ecs response -type PromotionsInDescribeInstanceModificationPrice struct { - Promotion []Promotion `json:"Promotion" xml:"Promotion"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_price.go deleted file mode 100644 index 2f31bf1214..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PromotionsInDescribePrice is a nested struct in ecs response -type PromotionsInDescribePrice struct { - Promotion []Promotion `json:"Promotion" xml:"Promotion"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_renewal_price.go deleted file mode 100644 index bb7e16bb13..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_promotions_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PromotionsInDescribeRenewalPrice is a nested struct in ecs response -type PromotionsInDescribeRenewalPrice struct { - Promotion []Promotion `json:"Promotion" xml:"Promotion"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go deleted file mode 100644 index 22d4a8f5dc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instance_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PublicIpAddressInDescribeInstanceAttribute is a nested struct in ecs response -type PublicIpAddressInDescribeInstanceAttribute struct { - IpAddress []string `json:"IpAddress" xml:"IpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go deleted file mode 100644 index cba813ae3f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_address_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PublicIpAddressInDescribeInstances is a nested struct in ecs response -type PublicIpAddressInDescribeInstances struct { - IpAddress []string `json:"IpAddress" xml:"IpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go deleted file mode 100644 index 07259cb7a4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PublicIpAddresse is a nested struct in ecs response -type PublicIpAddresse struct { - IpAddress string `json:"IpAddress" xml:"IpAddress"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go deleted file mode 100644 index b7e4c728f0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// PublicIpAddresses is a nested struct in ecs response -type PublicIpAddresses struct { - PublicIpAddresse []PublicIpAddresse `json:"PublicIpAddresse" xml:"PublicIpAddresse"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go deleted file mode 100644 index 0a08e7fe80..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rdma_ip_address.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RdmaIpAddress is a nested struct in ecs response -type RdmaIpAddress struct { - IpAddress []string `json:"IpAddress" xml:"IpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go deleted file mode 100644 index 8395ad05d0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go +++ /dev/null @@ -1,30 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RecommendInstanceType is a nested struct in ecs response -type RecommendInstanceType struct { - CommodityCode string `json:"CommodityCode" xml:"CommodityCode"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - Priority int `json:"Priority" xml:"Priority"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - Scene string `json:"Scene" xml:"Scene"` - SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - InstanceType InstanceType `json:"InstanceType" xml:"InstanceType"` - Zones ZonesInDescribeRecommendInstanceType `json:"Zones" xml:"Zones"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rule.go deleted file mode 100644 index 1ce29b8cd1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rule.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RecurrenceRule is a nested struct in ecs response -type RecurrenceRule struct { - RecurrenceType string `json:"RecurrenceType" xml:"RecurrenceType"` - RecurrenceValue string `json:"RecurrenceValue" xml:"RecurrenceValue"` - StartHour int `json:"StartHour" xml:"StartHour"` - EndHour int `json:"EndHour" xml:"EndHour"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rules.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rules.go deleted file mode 100644 index 6aa89a27f5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recurrence_rules.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RecurrenceRules is a nested struct in ecs response -type RecurrenceRules struct { - RecurrenceRule []RecurrenceRule `json:"RecurrenceRule" xml:"RecurrenceRule"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_info.go deleted file mode 100644 index 245743a423..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReferencedInfo is a nested struct in ecs response -type ReferencedInfo struct { - ReferencedPrefixListInfos ReferencedPrefixListInfos `json:"ReferencedPrefixListInfos" xml:"ReferencedPrefixListInfos"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_info.go deleted file mode 100644 index b7d34e1979..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_info.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReferencedPrefixListInfo is a nested struct in ecs response -type ReferencedPrefixListInfo struct { - PrefixListId string `json:"PrefixListId" xml:"PrefixListId"` - ProductProvider string `json:"ProductProvider" xml:"ProductProvider"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_infos.go deleted file mode 100644 index 082c37bb3d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referenced_prefix_list_infos.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReferencedPrefixListInfos is a nested struct in ecs response -type ReferencedPrefixListInfos struct { - ReferencedPrefixListInfo []ReferencedPrefixListInfo `json:"ReferencedPrefixListInfo" xml:"ReferencedPrefixListInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go deleted file mode 100644 index 9014802ce5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReferencingSecurityGroup is a nested struct in ecs response -type ReferencingSecurityGroup struct { - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - AliUid string `json:"AliUid" xml:"AliUid"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go deleted file mode 100644 index e73740f1c3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReferencingSecurityGroups is a nested struct in ecs response -type ReferencingSecurityGroups struct { - ReferencingSecurityGroup []ReferencingSecurityGroup `json:"ReferencingSecurityGroup" xml:"ReferencingSecurityGroup"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go deleted file mode 100644 index 35167e7c5a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Region is a nested struct in ecs response -type Region struct { - Status string `json:"Status" xml:"Status"` - RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` - LocalName string `json:"LocalName" xml:"LocalName"` - RegionId string `json:"RegionId" xml:"RegionId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go deleted file mode 100644 index e3936d74d6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_regions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Regions is a nested struct in ecs response -type Regions struct { - Region []Region `json:"Region" xml:"Region"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go deleted file mode 100644 index 4f3b071304..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RelatedItem is a nested struct in ecs response -type RelatedItem struct { - Name string `json:"Name" xml:"Name"` - Value string `json:"Value" xml:"Value"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_delete_snapshot_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_delete_snapshot_group.go deleted file mode 100644 index f7a2d3d943..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_delete_snapshot_group.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RelatedItemSetInDeleteSnapshotGroup is a nested struct in ecs response -type RelatedItemSetInDeleteSnapshotGroup struct { - RelatedItem []RelatedItem `json:"RelatedItem" xml:"RelatedItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_describe_task_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_describe_task_attribute.go deleted file mode 100644 index 106276bbad..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_describe_task_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RelatedItemSetInDescribeTaskAttribute is a nested struct in ecs response -type RelatedItemSetInDescribeTaskAttribute struct { - RelatedItem []RelatedItem `json:"RelatedItem" xml:"RelatedItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_reset_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_reset_disks.go deleted file mode 100644 index 40abb8665e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_reset_disks.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RelatedItemSetInResetDisks is a nested struct in ecs response -type RelatedItemSetInResetDisks struct { - RelatedItem []RelatedItem `json:"RelatedItem" xml:"RelatedItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_price.go deleted file mode 100644 index cca8bdebb7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RelatedPrice is a nested struct in ecs response -type RelatedPrice struct { - MarketplaceImagePrice MarketplaceImagePrice `json:"MarketplaceImagePrice" xml:"MarketplaceImagePrice"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_report.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_report.go deleted file mode 100644 index e56fcb88de..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_report.go +++ /dev/null @@ -1,31 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Report is a nested struct in ecs response -type Report struct { - ResourceId string `json:"ResourceId" xml:"ResourceId"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` - MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` - StartTime string `json:"StartTime" xml:"StartTime"` - EndTime string `json:"EndTime" xml:"EndTime"` - ReportId string `json:"ReportId" xml:"ReportId"` - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - Severity string `json:"Severity" xml:"Severity"` - Issues IssuesInDescribeDiagnosticReports `json:"Issues" xml:"Issues"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reports.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reports.go deleted file mode 100644 index 7345e28959..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reports.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Reports is a nested struct in ecs response -type Reports struct { - Report []Report `json:"Report" xml:"Report"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go deleted file mode 100644 index 3a2c4dfdf3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go +++ /dev/null @@ -1,38 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReservedInstance is a nested struct in ecs response -type ReservedInstance struct { - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ReservedInstanceName string `json:"ReservedInstanceName" xml:"ReservedInstanceName"` - ReservedInstanceId string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - InstanceAmount int `json:"InstanceAmount" xml:"InstanceAmount"` - RegionId string `json:"RegionId" xml:"RegionId"` - OfferingType string `json:"OfferingType" xml:"OfferingType"` - StartTime string `json:"StartTime" xml:"StartTime"` - Description string `json:"Description" xml:"Description"` - AllocationStatus string `json:"AllocationStatus" xml:"AllocationStatus"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - Platform string `json:"Platform" xml:"Platform"` - Scope string `json:"Scope" xml:"Scope"` - OperationLocks OperationLocksInDescribeReservedInstances `json:"OperationLocks" xml:"OperationLocks"` - Tags TagsInDescribeReservedInstances `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_modify_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_modify_reserved_instances.go deleted file mode 100644 index 9981a279ae..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_modify_reserved_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReservedInstanceIdSetsInModifyReservedInstances is a nested struct in ecs response -type ReservedInstanceIdSetsInModifyReservedInstances struct { - ReservedInstanceId []string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_purchase_reserved_instances_offering.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_purchase_reserved_instances_offering.go deleted file mode 100644 index be10d5a982..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_purchase_reserved_instances_offering.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReservedInstanceIdSetsInPurchaseReservedInstancesOffering is a nested struct in ecs response -type ReservedInstanceIdSetsInPurchaseReservedInstancesOffering struct { - ReservedInstanceId []string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_renew_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_renew_reserved_instances.go deleted file mode 100644 index 2747a3efef..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_renew_reserved_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReservedInstanceIdSetsInRenewReservedInstances is a nested struct in ecs response -type ReservedInstanceIdSetsInRenewReservedInstances struct { - ReservedInstanceId []string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attribute.go deleted file mode 100644 index 0526772835..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attribute.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReservedInstanceRenewAttribute is a nested struct in ecs response -type ReservedInstanceRenewAttribute struct { - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - Duration int `json:"Duration" xml:"Duration"` - ReservedInstanceId string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` - RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attributes.go deleted file mode 100644 index eff46a499e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attributes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReservedInstanceRenewAttributes is a nested struct in ecs response -type ReservedInstanceRenewAttributes struct { - ReservedInstanceRenewAttribute []ReservedInstanceRenewAttribute `json:"ReservedInstanceRenewAttribute" xml:"ReservedInstanceRenewAttribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instances.go deleted file mode 100644 index 151e35c7b8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ReservedInstances is a nested struct in ecs response -type ReservedInstances struct { - ReservedInstance []ReservedInstance `json:"ReservedInstance" xml:"ReservedInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go deleted file mode 100644 index 9ea08458a6..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Resource is a nested struct in ecs response -type Resource struct { - ResourceType string `json:"ResourceType" xml:"ResourceType"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - RegionId string `json:"RegionId" xml:"RegionId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_ids.go deleted file mode 100644 index 61e70f410c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ResourceIds is a nested struct in ecs response -type ResourceIds struct { - ResourceId []string `json:"resourceId" xml:"resourceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go deleted file mode 100644 index 52c18fd905..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ResourceTypeCount is a nested struct in ecs response -type ResourceTypeCount struct { - Instance int `json:"Instance" xml:"Instance"` - Image int `json:"Image" xml:"Image"` - Ddh int `json:"Ddh" xml:"Ddh"` - SnapshotPolicy int `json:"SnapshotPolicy" xml:"SnapshotPolicy"` - Securitygroup int `json:"Securitygroup" xml:"Securitygroup"` - Snapshot int `json:"Snapshot" xml:"Snapshot"` - ReservedInstance int `json:"ReservedInstance" xml:"ReservedInstance"` - LaunchTemplate int `json:"LaunchTemplate" xml:"LaunchTemplate"` - Eni int `json:"Eni" xml:"Eni"` - Disk int `json:"Disk" xml:"Disk"` - KeyPair int `json:"KeyPair" xml:"KeyPair"` - Volume int `json:"Volume" xml:"Volume"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go deleted file mode 100644 index 1c9913caad..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Resources is a nested struct in ecs response -type Resources struct { - Resource []Resource `json:"Resource" xml:"Resource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go deleted file mode 100644 index 7f17df6dd7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ResourcesInfo is a nested struct in ecs response -type ResourcesInfo struct { - IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` - SystemDiskCategories SystemDiskCategories `json:"SystemDiskCategories" xml:"SystemDiskCategories"` - InstanceGenerations InstanceGenerations `json:"InstanceGenerations" xml:"InstanceGenerations"` - DataDiskCategories DataDiskCategories `json:"DataDiskCategories" xml:"DataDiskCategories"` - InstanceTypes InstanceTypesInDescribeZones `json:"InstanceTypes" xml:"InstanceTypes"` - InstanceTypeFamilies InstanceTypeFamiliesInDescribeZones `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"` - NetworkTypes NetworkTypesInDescribeZones `json:"NetworkTypes" xml:"NetworkTypes"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go deleted file mode 100644 index 24c16300ac..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_result.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Result is a nested struct in ecs response -type Result struct { - Message string `json:"Message" xml:"Message"` - Success string `json:"Success" xml:"Success"` - Code string `json:"Code" xml:"Code"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go deleted file mode 100644 index 81c572462d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_attach_key_pair.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ResultsInAttachKeyPair is a nested struct in ecs response -type ResultsInAttachKeyPair struct { - Result []Result `json:"Result" xml:"Result"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go deleted file mode 100644 index bf35b8d828..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_results_in_detach_key_pair.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ResultsInDetachKeyPair is a nested struct in ecs response -type ResultsInDetachKeyPair struct { - Result []Result `json:"Result" xml:"Result"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go deleted file mode 100644 index 0d8e9c3181..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RouteEntry is a nested struct in ecs response -type RouteEntry struct { - Type string `json:"Type" xml:"Type"` - Status string `json:"Status" xml:"Status"` - NextHopType string `json:"NextHopType" xml:"NextHopType"` - DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` - NextHops NextHops `json:"NextHops" xml:"NextHops"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go deleted file mode 100644 index 28b4da2b4d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entrys.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RouteEntrys is a nested struct in ecs response -type RouteEntrys struct { - RouteEntry []RouteEntry `json:"RouteEntry" xml:"RouteEntry"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go deleted file mode 100644 index 02829d980b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RouteTable is a nested struct in ecs response -type RouteTable struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - VRouterId string `json:"VRouterId" xml:"VRouterId"` - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` - RouteEntrys RouteEntrys `json:"RouteEntrys" xml:"RouteEntrys"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go deleted file mode 100644 index 1114be1a1e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RouteTableIds is a nested struct in ecs response -type RouteTableIds struct { - RouteTableId []string `json:"RouteTableId" xml:"RouteTableId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go deleted file mode 100644 index bf350f225a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_tables.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RouteTables is a nested struct in ecs response -type RouteTables struct { - RouteTable []RouteTable `json:"RouteTable" xml:"RouteTable"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go deleted file mode 100644 index ef8db99d7c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RouterInterfaceSet is a nested struct in ecs response -type RouterInterfaceSet struct { - RouterInterfaceType []RouterInterfaceType `json:"RouterInterfaceType" xml:"RouterInterfaceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go deleted file mode 100644 index 717905a6ea..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go +++ /dev/null @@ -1,45 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RouterInterfaceType is a nested struct in ecs response -type RouterInterfaceType struct { - HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` - Spec string `json:"Spec" xml:"Spec"` - OppositeInterfaceId string `json:"OppositeInterfaceId" xml:"OppositeInterfaceId"` - RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - OppositeRouterType string `json:"OppositeRouterType" xml:"OppositeRouterType"` - OppositeInterfaceOwnerId string `json:"OppositeInterfaceOwnerId" xml:"OppositeInterfaceOwnerId"` - Description string `json:"Description" xml:"Description"` - Name string `json:"Name" xml:"Name"` - OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` - OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` - RouterId string `json:"RouterId" xml:"RouterId"` - OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` - ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` - OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` - HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` - EndTime string `json:"EndTime" xml:"EndTime"` - OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` - OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - Role string `json:"Role" xml:"Role"` - RouterType string `json:"RouterType" xml:"RouterType"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go deleted file mode 100644 index da75a9e162..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Rule is a nested struct in ecs response -type Rule struct { - RuleId int64 `json:"RuleId" xml:"RuleId"` - Description string `json:"Description" xml:"Description"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_instance_modification_price.go deleted file mode 100644 index d76121fd4f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RuleIdSetInDescribeInstanceModificationPrice is a nested struct in ecs response -type RuleIdSetInDescribeInstanceModificationPrice struct { - RuleId []string `json:"RuleId" xml:"RuleId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_price.go deleted file mode 100644 index f559d58dce..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RuleIdSetInDescribePrice is a nested struct in ecs response -type RuleIdSetInDescribePrice struct { - RuleId []string `json:"RuleId" xml:"RuleId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_renewal_price.go deleted file mode 100644 index debf49dd34..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_id_set_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RuleIdSetInDescribeRenewalPrice is a nested struct in ecs response -type RuleIdSetInDescribeRenewalPrice struct { - RuleId []string `json:"RuleId" xml:"RuleId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_instance_modification_price.go deleted file mode 100644 index 7fefbd8f7b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RuleIdsInDescribeInstanceModificationPrice is a nested struct in ecs response -type RuleIdsInDescribeInstanceModificationPrice struct { - RuleId []int64 `json:"RuleId" xml:"RuleId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_price.go deleted file mode 100644 index 142d5f6859..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RuleIdsInDescribePrice is a nested struct in ecs response -type RuleIdsInDescribePrice struct { - RuleId []int64 `json:"RuleId" xml:"RuleId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_renewal_price.go deleted file mode 100644 index 8005767896..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rule_ids_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RuleIdsInDescribeRenewalPrice is a nested struct in ecs response -type RuleIdsInDescribeRenewalPrice struct { - RuleId []int64 `json:"RuleId" xml:"RuleId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_instance_modification_price.go deleted file mode 100644 index da7166176a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RulesInDescribeInstanceModificationPrice is a nested struct in ecs response -type RulesInDescribeInstanceModificationPrice struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go deleted file mode 100644 index 7bba406446..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RulesInDescribePrice is a nested struct in ecs response -type RulesInDescribePrice struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go deleted file mode 100644 index d6dd4e4e31..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RulesInDescribeRenewalPrice is a nested struct in ecs response -type RulesInDescribeRenewalPrice struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_savings_plan_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_savings_plan_price.go deleted file mode 100644 index 02efeb3c79..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_savings_plan_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RulesInDescribeSavingsPlanPrice is a nested struct in ecs response -type RulesInDescribeSavingsPlanPrice struct { - RulesItem []RulesItem `json:"rules" xml:"rules"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_item.go deleted file mode 100644 index 1997a4dc89..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_item.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// RulesItem is a nested struct in ecs response -type RulesItem struct { - RuleId string `json:"RuleId" xml:"RuleId"` - Description string `json:"Description" xml:"Description"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go deleted file mode 100644 index 6ca521d5a8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ScheduledSystemEventSet is a nested struct in ecs response -type ScheduledSystemEventSet struct { - ScheduledSystemEventType []ScheduledSystemEventType `json:"ScheduledSystemEventType" xml:"ScheduledSystemEventType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go deleted file mode 100644 index b5d84864fc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go +++ /dev/null @@ -1,28 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ScheduledSystemEventType is a nested struct in ecs response -type ScheduledSystemEventType struct { - EventPublishTime string `json:"EventPublishTime" xml:"EventPublishTime"` - EventId string `json:"EventId" xml:"EventId"` - NotBefore string `json:"NotBefore" xml:"NotBefore"` - ImpactLevel string `json:"ImpactLevel" xml:"ImpactLevel"` - Reason string `json:"Reason" xml:"Reason"` - EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"` - EventType EventType `json:"EventType" xml:"EventType"` - ExtendedAttribute ExtendedAttribute `json:"ExtendedAttribute" xml:"ExtendedAttribute"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go deleted file mode 100644 index 1a3f545ee4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go +++ /dev/null @@ -1,34 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroup is a nested struct in ecs response -type SecurityGroup struct { - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - SecurityGroupName string `json:"SecurityGroupName" xml:"SecurityGroupName"` - Description string `json:"Description" xml:"Description"` - SecurityGroupType string `json:"SecurityGroupType" xml:"SecurityGroupType"` - VpcId string `json:"VpcId" xml:"VpcId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - EcsCount int `json:"EcsCount" xml:"EcsCount"` - AvailableInstanceAmount int `json:"AvailableInstanceAmount" xml:"AvailableInstanceAmount"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` - ServiceID int64 `json:"ServiceID" xml:"ServiceID"` - RuleCount int `json:"RuleCount" xml:"RuleCount"` - GroupToGroupRuleCount int `json:"GroupToGroupRuleCount" xml:"GroupToGroupRuleCount"` - Tags TagsInDescribeSecurityGroups `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_create_network_interface.go deleted file mode 100644 index 1fe4f4e066..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_create_network_interface.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupIdsInCreateNetworkInterface is a nested struct in ecs response -type SecurityGroupIdsInCreateNetworkInterface struct { - SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go deleted file mode 100644 index 8e70419101..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instance_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupIdsInDescribeInstanceAttribute is a nested struct in ecs response -type SecurityGroupIdsInDescribeInstanceAttribute struct { - SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go deleted file mode 100644 index 6dd94eec3b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupIdsInDescribeInstances is a nested struct in ecs response -type SecurityGroupIdsInDescribeInstances struct { - SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_launch_template_versions.go deleted file mode 100644 index faa7dce571..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_launch_template_versions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupIdsInDescribeLaunchTemplateVersions is a nested struct in ecs response -type SecurityGroupIdsInDescribeLaunchTemplateVersions struct { - SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interface_attribute.go deleted file mode 100644 index caacd927ca..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interface_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupIdsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response -type SecurityGroupIdsInDescribeNetworkInterfaceAttribute struct { - SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go deleted file mode 100644 index 9d8b4e89dd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interfaces.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupIdsInDescribeNetworkInterfaces is a nested struct in ecs response -type SecurityGroupIdsInDescribeNetworkInterfaces struct { - SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go deleted file mode 100644 index 0f850aed16..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_reference.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupReference is a nested struct in ecs response -type SecurityGroupReference struct { - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - ReferencingSecurityGroups ReferencingSecurityGroups `json:"ReferencingSecurityGroups" xml:"ReferencingSecurityGroups"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go deleted file mode 100644 index 18b76b778b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_references.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroupReferences is a nested struct in ecs response -type SecurityGroupReferences struct { - SecurityGroupReference []SecurityGroupReference `json:"SecurityGroupReference" xml:"SecurityGroupReference"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go deleted file mode 100644 index 45804349ad..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SecurityGroups is a nested struct in ecs response -type SecurityGroups struct { - SecurityGroup []SecurityGroup `json:"SecurityGroup" xml:"SecurityGroup"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_session.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_session.go deleted file mode 100644 index 2090044abc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_session.go +++ /dev/null @@ -1,29 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Session is a nested struct in ecs response -type Session struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - TargetServer string `json:"TargetServer" xml:"TargetServer"` - PortNumber int `json:"PortNumber" xml:"PortNumber"` - PrincipalId string `json:"PrincipalId" xml:"PrincipalId"` - Username string `json:"Username" xml:"Username"` - ClientIP string `json:"ClientIP" xml:"ClientIP"` - IdentityType string `json:"IdentityType" xml:"IdentityType"` - SessionId string `json:"SessionId" xml:"SessionId"` - Connections Connections `json:"Connections" xml:"Connections"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sessions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sessions.go deleted file mode 100644 index 3ac14d72c7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sessions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Sessions is a nested struct in ecs response -type Sessions struct { - Session []Session `json:"Session" xml:"Session"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go deleted file mode 100644 index c7b088cfd1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_group.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ShareGroup is a nested struct in ecs response -type ShareGroup struct { - Group string `json:"Group" xml:"Group"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go deleted file mode 100644 index e78995415f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_share_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ShareGroups is a nested struct in ecs response -type ShareGroups struct { - ShareGroup []ShareGroup `json:"ShareGroup" xml:"ShareGroup"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification.go deleted file mode 100644 index 329d4c1baf..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SlaveInterfaceSpecification is a nested struct in ecs response -type SlaveInterfaceSpecification struct { - SlaveNetworkInterfaceId string `json:"SlaveNetworkInterfaceId" xml:"SlaveNetworkInterfaceId"` - BondNetworkInterfaceId string `json:"BondNetworkInterfaceId" xml:"BondNetworkInterfaceId"` - WorkState string `json:"WorkState" xml:"WorkState"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_in_describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_in_describe_network_interface_attribute.go deleted file mode 100644 index e5e2794d30..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_in_describe_network_interface_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SlaveInterfaceSpecificationInDescribeNetworkInterfaceAttribute is a nested struct in ecs response -type SlaveInterfaceSpecificationInDescribeNetworkInterfaceAttribute struct { - SlaveInterfaceSpecificationSet []SlaveInterfaceSpecificationSet `json:"SlaveInterfaceSpecificationSet" xml:"SlaveInterfaceSpecificationSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_set.go deleted file mode 100644 index fe9ae2c3ef..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_set.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SlaveInterfaceSpecificationSet is a nested struct in ecs response -type SlaveInterfaceSpecificationSet struct { - SlaveNetworkInterfaceId string `json:"SlaveNetworkInterfaceId" xml:"SlaveNetworkInterfaceId"` - WorkState string `json:"WorkState" xml:"WorkState"` - BondNetworkInterfaceId string `json:"BondNetworkInterfaceId" xml:"BondNetworkInterfaceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_config.go deleted file mode 100644 index 71d4a42a21..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_config.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SlsDeliveryConfig is a nested struct in ecs response -type SlsDeliveryConfig struct { - DeliveryType string `json:"DeliveryType" xml:"DeliveryType"` - LogstoreName string `json:"LogstoreName" xml:"LogstoreName"` - Enabled bool `json:"Enabled" xml:"Enabled"` - ProjectName string `json:"ProjectName" xml:"ProjectName"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_configs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_configs.go deleted file mode 100644 index bce7a4a3a2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sls_delivery_configs.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SlsDeliveryConfigs is a nested struct in ecs response -type SlsDeliveryConfigs struct { - SlsDeliveryConfig []SlsDeliveryConfig `json:"SlsDeliveryConfig" xml:"SlsDeliveryConfig"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go deleted file mode 100644 index 421120aacd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go +++ /dev/null @@ -1,49 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Snapshot is a nested struct in ecs response -type Snapshot struct { - Category string `json:"Category" xml:"Category"` - LastModifiedTime string `json:"LastModifiedTime" xml:"LastModifiedTime"` - Available bool `json:"Available" xml:"Available"` - RegionId string `json:"RegionId" xml:"RegionId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SnapshotSN string `json:"SnapshotSN" xml:"SnapshotSN"` - InstantAccess bool `json:"InstantAccess" xml:"InstantAccess"` - SnapshotLinkId string `json:"SnapshotLinkId" xml:"SnapshotLinkId"` - SnapshotType string `json:"SnapshotType" xml:"SnapshotType"` - Description string `json:"Description" xml:"Description"` - SourceDiskType string `json:"SourceDiskType" xml:"SourceDiskType"` - SnapshotName string `json:"SnapshotName" xml:"SnapshotName"` - Usage string `json:"Usage" xml:"Usage"` - SourceDiskSize string `json:"SourceDiskSize" xml:"SourceDiskSize"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - SourceStorageType string `json:"SourceStorageType" xml:"SourceStorageType"` - SourceSnapshotId string `json:"SourceSnapshotId" xml:"SourceSnapshotId"` - KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` - ProductCode string `json:"ProductCode" xml:"ProductCode"` - Encrypted bool `json:"Encrypted" xml:"Encrypted"` - Progress string `json:"Progress" xml:"Progress"` - RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` - SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` - RemainTime int `json:"RemainTime" xml:"RemainTime"` - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - InstantAccessRetentionDays int `json:"InstantAccessRetentionDays" xml:"InstantAccessRetentionDays"` - SourceRegionId string `json:"SourceRegionId" xml:"SourceRegionId"` - Status string `json:"Status" xml:"Status"` - Tags TagsInDescribeSnapshots `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_group.go deleted file mode 100644 index 3e72339173..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_group.go +++ /dev/null @@ -1,30 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotGroup is a nested struct in ecs response -type SnapshotGroup struct { - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Description string `json:"Description" xml:"Description"` - ProgressStatus string `json:"ProgressStatus" xml:"ProgressStatus"` - SnapshotGroupId string `json:"SnapshotGroupId" xml:"SnapshotGroupId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Name string `json:"Name" xml:"Name"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Tags TagsInDescribeSnapshotGroups `json:"Tags" xml:"Tags"` - Snapshots SnapshotsInDescribeSnapshotGroups `json:"Snapshots" xml:"Snapshots"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_groups.go deleted file mode 100644 index 9969be33d7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotGroups is a nested struct in ecs response -type SnapshotGroups struct { - SnapshotGroup []SnapshotGroup `json:"SnapshotGroup" xml:"SnapshotGroup"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go deleted file mode 100644 index 1f52f7d52c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotLink is a nested struct in ecs response -type SnapshotLink struct { - InstantAccess bool `json:"InstantAccess" xml:"InstantAccess"` - TotalSize int64 `json:"TotalSize" xml:"TotalSize"` - SourceDiskName string `json:"SourceDiskName" xml:"SourceDiskName"` - SourceDiskSize int `json:"SourceDiskSize" xml:"SourceDiskSize"` - SourceDiskType string `json:"SourceDiskType" xml:"SourceDiskType"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - SnapshotLinkId string `json:"SnapshotLinkId" xml:"SnapshotLinkId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - RegionId string `json:"RegionId" xml:"RegionId"` - SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - Category string `json:"Category" xml:"Category"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go deleted file mode 100644 index 0c2e558f33..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_links.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotLinks is a nested struct in ecs response -type SnapshotLinks struct { - SnapshotLink []SnapshotLink `json:"SnapshotLink" xml:"SnapshotLink"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go deleted file mode 100644 index 956a9fdd1f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotPackage is a nested struct in ecs response -type SnapshotPackage struct { - DisplayName string `json:"DisplayName" xml:"DisplayName"` - EndTime string `json:"EndTime" xml:"EndTime"` - StartTime string `json:"StartTime" xml:"StartTime"` - InitCapacity int64 `json:"InitCapacity" xml:"InitCapacity"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go deleted file mode 100644 index 35f485c602..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_packages.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotPackages is a nested struct in ecs response -type SnapshotPackages struct { - SnapshotPackage []SnapshotPackage `json:"SnapshotPackage" xml:"SnapshotPackage"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshot_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshot_groups.go deleted file mode 100644 index eecdb68239..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshot_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotsInDescribeSnapshotGroups is a nested struct in ecs response -type SnapshotsInDescribeSnapshotGroups struct { - Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshots.go deleted file mode 100644 index d0c9580feb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshots.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SnapshotsInDescribeSnapshots is a nested struct in ecs response -type SnapshotsInDescribeSnapshots struct { - Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacities.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacities.go deleted file mode 100644 index 7b667e3d22..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacities.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SocketCapacities is a nested struct in ecs response -type SocketCapacities struct { - SocketCapacity []SocketCapacity `json:"SocketCapacity" xml:"SocketCapacity"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacity.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacity.go deleted file mode 100644 index bdd2f4a5db..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacity.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SocketCapacity is a nested struct in ecs response -type SocketCapacity struct { - SocketId int `json:"SocketId" xml:"SocketId"` - AvailableMemory float64 `json:"AvailableMemory" xml:"AvailableMemory"` - TotalMemory float64 `json:"TotalMemory" xml:"TotalMemory"` - AvailableVcpu int `json:"AvailableVcpu" xml:"AvailableVcpu"` - TotalVcpu int `json:"TotalVcpu" xml:"TotalVcpu"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go deleted file mode 100644 index 0eeb052929..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go +++ /dev/null @@ -1,23 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SpotOptions is a nested struct in ecs response -type SpotOptions struct { - InstancePoolsToUseCount int `json:"InstancePoolsToUseCount" xml:"InstancePoolsToUseCount"` - AllocationStrategy string `json:"AllocationStrategy" xml:"AllocationStrategy"` - InstanceInterruptionBehavior string `json:"InstanceInterruptionBehavior" xml:"InstanceInterruptionBehavior"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go deleted file mode 100644 index 1c247bc55a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SpotPriceType is a nested struct in ecs response -type SpotPriceType struct { - IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - SpotPrice float64 `json:"SpotPrice" xml:"SpotPrice"` - Timestamp string `json:"Timestamp" xml:"Timestamp"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - OriginPrice float64 `json:"OriginPrice" xml:"OriginPrice"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go deleted file mode 100644 index 31353f5939..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_prices.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SpotPrices is a nested struct in ecs response -type SpotPrices struct { - SpotPriceType []SpotPriceType `json:"SpotPriceType" xml:"SpotPriceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go deleted file mode 100644 index a7de48500a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_status.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Status is a nested struct in ecs response -type Status struct { - Name string `json:"Name" xml:"Name"` - Code int `json:"Code" xml:"Code"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit.go deleted file mode 100644 index f80654ea89..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit.go +++ /dev/null @@ -1,31 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// StorageCapacityUnit is a nested struct in ecs response -type StorageCapacityUnit struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` - StartTime string `json:"StartTime" xml:"StartTime"` - Capacity int `json:"Capacity" xml:"Capacity"` - Description string `json:"Description" xml:"Description"` - AllocationStatus string `json:"AllocationStatus" xml:"AllocationStatus"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - StorageCapacityUnitId string `json:"StorageCapacityUnitId" xml:"StorageCapacityUnitId"` - Name string `json:"Name" xml:"Name"` - RegionId string `json:"RegionId" xml:"RegionId"` - Tags TagsInDescribeStorageCapacityUnits `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit_ids.go deleted file mode 100644 index c66bf236cd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// StorageCapacityUnitIds is a nested struct in ecs response -type StorageCapacityUnitIds struct { - StorageCapacityUnitId []string `json:"StorageCapacityUnitId" xml:"StorageCapacityUnitId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_units.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_units.go deleted file mode 100644 index 3edb9ad122..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_units.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// StorageCapacityUnits is a nested struct in ecs response -type StorageCapacityUnits struct { - StorageCapacityUnit []StorageCapacityUnit `json:"StorageCapacityUnit" xml:"StorageCapacityUnit"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go deleted file mode 100644 index 967c0a154a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// StorageSet is a nested struct in ecs response -type StorageSet struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Description string `json:"Description" xml:"Description"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - StorageSetId string `json:"StorageSetId" xml:"StorageSetId"` - StorageSetPartitionNumber int `json:"StorageSetPartitionNumber" xml:"StorageSetPartitionNumber"` - StorageSetName string `json:"StorageSetName" xml:"StorageSetName"` - RegionId string `json:"RegionId" xml:"RegionId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_sets.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_sets.go deleted file mode 100644 index f1e077cf65..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_sets.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// StorageSets is a nested struct in ecs response -type StorageSets struct { - StorageSet []StorageSet `json:"StorageSet" xml:"StorageSet"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_price.go deleted file mode 100644 index c2a5816df9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_price.go +++ /dev/null @@ -1,30 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SubPrice is a nested struct in ecs response -type SubPrice struct { - OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` - StandardPrice float64 `json:"StandardPrice" xml:"StandardPrice"` - StandardDiscountPrice float64 `json:"StandardDiscountPrice" xml:"StandardDiscountPrice"` - IsContractPromotion bool `json:"IsContractPromotion" xml:"IsContractPromotion"` - RuleIdSet RuleIdSetInDescribeRenewalPrice `json:"RuleIdSet" xml:"RuleIdSet"` - DepreciateInfo DepreciateInfo `json:"DepreciateInfo" xml:"DepreciateInfo"` - Promotions PromotionsInDescribeRenewalPrice `json:"Promotions" xml:"Promotions"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_prices.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_prices.go deleted file mode 100644 index 2445aa65bb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_prices.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SubPrices is a nested struct in ecs response -type SubPrices struct { - SubPrice []SubPrice `json:"SubPrice" xml:"SubPrice"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_instance_modification_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_instance_modification_price.go deleted file mode 100644 index a29ef84aa9..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_instance_modification_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SubRulesInDescribeInstanceModificationPrice is a nested struct in ecs response -type SubRulesInDescribeInstanceModificationPrice struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_price.go deleted file mode 100644 index ba5579abcb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SubRulesInDescribePrice is a nested struct in ecs response -type SubRulesInDescribePrice struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_renewal_price.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_renewal_price.go deleted file mode 100644 index b17707abb7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_sub_rules_in_describe_renewal_price.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SubRulesInDescribeRenewalPrice is a nested struct in ecs response -type SubRulesInDescribeRenewalPrice struct { - Rule []Rule `json:"Rule" xml:"Rule"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go deleted file mode 100644 index 7726829655..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupplyInfo is a nested struct in ecs response -type SupplyInfo struct { - Amount int `json:"Amount" xml:"Amount"` - SupplyStatus string `json:"SupplyStatus" xml:"SupplyStatus"` - SupplyStartTime string `json:"SupplyStartTime" xml:"SupplyStartTime"` - SupplyEndTime string `json:"SupplyEndTime" xml:"SupplyEndTime"` - PrivatePoolId string `json:"PrivatePoolId" xml:"PrivatePoolId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_infos.go deleted file mode 100644 index f4525360d1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_infos.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupplyInfos is a nested struct in ecs response -type SupplyInfos struct { - SupplyInfo []SupplyInfo `json:"SupplyInfo" xml:"SupplyInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_boot_modes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_boot_modes.go deleted file mode 100644 index 460c518ed4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_boot_modes.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedBootModes is a nested struct in ecs response -type SupportedBootModes struct { - SupportedBootMode []string `json:"SupportedBootMode" xml:"SupportedBootMode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_custom_instance_type_families.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_custom_instance_type_families.go deleted file mode 100644 index b38d81e187..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_custom_instance_type_families.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedCustomInstanceTypeFamilies is a nested struct in ecs response -type SupportedCustomInstanceTypeFamilies struct { - SupportedCustomInstanceTypeFamily []string `json:"SupportedCustomInstanceTypeFamily" xml:"SupportedCustomInstanceTypeFamily"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_host_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_host_types.go deleted file mode 100644 index cf7c72326c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_host_types.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes is a nested struct in ecs response -type SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes struct { - SupportedInstanceTypeFamily []string `json:"SupportedInstanceTypeFamily" xml:"SupportedInstanceTypeFamily"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_hosts.go deleted file mode 100644 index 06e07b0bf3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_type_families_in_describe_dedicated_hosts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedInstanceTypeFamiliesInDescribeDedicatedHosts is a nested struct in ecs response -type SupportedInstanceTypeFamiliesInDescribeDedicatedHosts struct { - SupportedInstanceTypeFamily []string `json:"SupportedInstanceTypeFamily" xml:"SupportedInstanceTypeFamily"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_host_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_host_types.go deleted file mode 100644 index 0af514efda..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_host_types.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedInstanceTypesListInDescribeDedicatedHostTypes is a nested struct in ecs response -type SupportedInstanceTypesListInDescribeDedicatedHostTypes struct { - SupportedInstanceTypesList []string `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_hosts.go deleted file mode 100644 index cd1489de8f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_instance_types_list_in_describe_dedicated_hosts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedInstanceTypesListInDescribeDedicatedHosts is a nested struct in ecs response -type SupportedInstanceTypesListInDescribeDedicatedHosts struct { - SupportedInstanceTypesList []string `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go deleted file mode 100644 index bb9fb5c37f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resource.go +++ /dev/null @@ -1,26 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedResource is a nested struct in ecs response -type SupportedResource struct { - Value string `json:"Value" xml:"Value"` - Max int `json:"Max" xml:"Max"` - Unit string `json:"Unit" xml:"Unit"` - StatusCategory string `json:"StatusCategory" xml:"StatusCategory"` - Status string `json:"Status" xml:"Status"` - Min int `json:"Min" xml:"Min"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go deleted file mode 100644 index e5f7668325..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_available_resource.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedResourcesInDescribeAvailableResource is a nested struct in ecs response -type SupportedResourcesInDescribeAvailableResource struct { - SupportedResource []SupportedResource `json:"SupportedResource" xml:"SupportedResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go deleted file mode 100644 index a5d54318b7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_resources_in_describe_resources_modification.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedResourcesInDescribeResourcesModification is a nested struct in ecs response -type SupportedResourcesInDescribeResourcesModification struct { - SupportedResource []SupportedResource `json:"SupportedResource" xml:"SupportedResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_topology_types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_topology_types.go deleted file mode 100644 index 6431d270fe..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_topology_types.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedTopologyTypes is a nested struct in ecs response -type SupportedTopologyTypes struct { - SupportedTopologyType []string `json:"SupportedTopologyType" xml:"SupportedTopologyType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_values.go deleted file mode 100644 index 2ccebf1af5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_values.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SupportedValues is a nested struct in ecs response -type SupportedValues struct { - SupportedValue []string `json:"SupportedValue" xml:"SupportedValue"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go deleted file mode 100644 index be22e6923b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_system_disk_categories.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// SystemDiskCategories is a nested struct in ecs response -type SystemDiskCategories struct { - SupportedSystemDiskCategory []string `json:"supportedSystemDiskCategory" xml:"supportedSystemDiskCategory"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go deleted file mode 100644 index 5f11826680..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Tag is a nested struct in ecs response -type Tag struct { - Key string `json:"Key" xml:"Key"` - Value string `json:"Value" xml:"Value"` - TagValue string `json:"TagValue" xml:"TagValue"` - TagKey string `json:"TagKey" xml:"TagKey"` - ResourceTypeCount ResourceTypeCount `json:"ResourceTypeCount" xml:"ResourceTypeCount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go deleted file mode 100644 index 7a1d3dbe57..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagResource is a nested struct in ecs response -type TagResource struct { - TagValue string `json:"TagValue" xml:"TagValue"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - TagKey string `json:"TagKey" xml:"TagKey"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resources.go deleted file mode 100644 index 12ec529a63..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagResources is a nested struct in ecs response -type TagResources struct { - TagResource []TagResource `json:"TagResource" xml:"TagResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_create_network_interface.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_create_network_interface.go deleted file mode 100644 index 8b71a6c061..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_create_network_interface.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInCreateNetworkInterface is a nested struct in ecs response -type TagsInCreateNetworkInterface struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_activations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_activations.go deleted file mode 100644 index 109442fdfd..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_activations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeActivations is a nested struct in ecs response -type TagsInDescribeActivations struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_provisioning_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_provisioning_groups.go deleted file mode 100644 index 37a8897c52..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_provisioning_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeAutoProvisioningGroups is a nested struct in ecs response -type TagsInDescribeAutoProvisioningGroups struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_snapshot_policy_ex.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_snapshot_policy_ex.go deleted file mode 100644 index d60da9682e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_snapshot_policy_ex.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeAutoSnapshotPolicyEx is a nested struct in ecs response -type TagsInDescribeAutoSnapshotPolicyEx struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_capacity_reservations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_capacity_reservations.go deleted file mode 100644 index 88f3499b38..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_capacity_reservations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeCapacityReservations is a nested struct in ecs response -type TagsInDescribeCapacityReservations struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_commands.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_commands.go deleted file mode 100644 index 5071d1d57d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_commands.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeCommands is a nested struct in ecs response -type TagsInDescribeCommands struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_host_clusters.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_host_clusters.go deleted file mode 100644 index 0f330464f8..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_host_clusters.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeDedicatedHostClusters is a nested struct in ecs response -type TagsInDescribeDedicatedHostClusters struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_hosts.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_hosts.go deleted file mode 100644 index 473aa6e195..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_hosts.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeDedicatedHosts is a nested struct in ecs response -type TagsInDescribeDedicatedHosts struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go deleted file mode 100644 index c9acca81b2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_disks.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeDisks is a nested struct in ecs response -type TagsInDescribeDisks struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_elasticity_assurances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_elasticity_assurances.go deleted file mode 100644 index 2694130aa7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_elasticity_assurances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeElasticityAssurances is a nested struct in ecs response -type TagsInDescribeElasticityAssurances struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_components.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_components.go deleted file mode 100644 index bb9026802d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_components.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeImageComponents is a nested struct in ecs response -type TagsInDescribeImageComponents struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_from_family.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_from_family.go deleted file mode 100644 index 72a270ed40..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_from_family.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeImageFromFamily is a nested struct in ecs response -type TagsInDescribeImageFromFamily struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipeline_executions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipeline_executions.go deleted file mode 100644 index b47d72b137..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipeline_executions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeImagePipelineExecutions is a nested struct in ecs response -type TagsInDescribeImagePipelineExecutions struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipelines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipelines.go deleted file mode 100644 index 57a94dae47..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipelines.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeImagePipelines is a nested struct in ecs response -type TagsInDescribeImagePipelines struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go deleted file mode 100644 index a06db5b3e4..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_images.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeImages is a nested struct in ecs response -type TagsInDescribeImages struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go deleted file mode 100644 index 7eeb27b942..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeInstances is a nested struct in ecs response -type TagsInDescribeInstances struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocation_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocation_results.go deleted file mode 100644 index 9bddc9092d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocation_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeInvocationResults is a nested struct in ecs response -type TagsInDescribeInvocationResults struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocations.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocations.go deleted file mode 100644 index 82d6d0734e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocations.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeInvocations is a nested struct in ecs response -type TagsInDescribeInvocations struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_key_pairs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_key_pairs.go deleted file mode 100644 index a153d220d5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_key_pairs.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeKeyPairs is a nested struct in ecs response -type TagsInDescribeKeyPairs struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go deleted file mode 100644 index 87f733aab2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_template_versions.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeLaunchTemplateVersions is a nested struct in ecs response -type TagsInDescribeLaunchTemplateVersions struct { - InstanceTag []InstanceTag `json:"InstanceTag" xml:"InstanceTag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_templates.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_templates.go deleted file mode 100644 index 33dc2bd1fc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_launch_templates.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeLaunchTemplates is a nested struct in ecs response -type TagsInDescribeLaunchTemplates struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_managed_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_managed_instances.go deleted file mode 100644 index 7ff22f32ef..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_managed_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeManagedInstances is a nested struct in ecs response -type TagsInDescribeManagedInstances struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interface_attribute.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interface_attribute.go deleted file mode 100644 index 694710d003..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interface_attribute.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response -type TagsInDescribeNetworkInterfaceAttribute struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interfaces.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interfaces.go deleted file mode 100644 index a93e4bb618..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interfaces.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeNetworkInterfaces is a nested struct in ecs response -type TagsInDescribeNetworkInterfaces struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_reserved_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_reserved_instances.go deleted file mode 100644 index 4cff197462..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_reserved_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeReservedInstances is a nested struct in ecs response -type TagsInDescribeReservedInstances struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go deleted file mode 100644 index 7182eed762..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_security_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeSecurityGroups is a nested struct in ecs response -type TagsInDescribeSecurityGroups struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_send_file_results.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_send_file_results.go deleted file mode 100644 index 8110b5fe50..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_send_file_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeSendFileResults is a nested struct in ecs response -type TagsInDescribeSendFileResults struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshot_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshot_groups.go deleted file mode 100644 index 2aa4ed0997..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshot_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeSnapshotGroups is a nested struct in ecs response -type TagsInDescribeSnapshotGroups struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go deleted file mode 100644 index 7843d93a3a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshots.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeSnapshots is a nested struct in ecs response -type TagsInDescribeSnapshots struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_storage_capacity_units.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_storage_capacity_units.go deleted file mode 100644 index 0b646fc238..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_storage_capacity_units.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeStorageCapacityUnits is a nested struct in ecs response -type TagsInDescribeStorageCapacityUnits struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go deleted file mode 100644 index d7d898c032..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_tags.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TagsInDescribeTags is a nested struct in ecs response -type TagsInDescribeTags struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go deleted file mode 100644 index da3b3a04d2..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TargetCapacitySpecification is a nested struct in ecs response -type TargetCapacitySpecification struct { - SpotTargetCapacity float64 `json:"SpotTargetCapacity" xml:"SpotTargetCapacity"` - PayAsYouGoTargetCapacity float64 `json:"PayAsYouGoTargetCapacity" xml:"PayAsYouGoTargetCapacity"` - DefaultTargetCapacityType string `json:"DefaultTargetCapacityType" xml:"DefaultTargetCapacityType"` - TotalTargetCapacity float64 `json:"TotalTargetCapacity" xml:"TotalTargetCapacity"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go deleted file mode 100644 index a43fa79302..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go +++ /dev/null @@ -1,31 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Task is a nested struct in ecs response -type Task struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` - TaskId string `json:"TaskId" xml:"TaskId"` - TaskAction string `json:"TaskAction" xml:"TaskAction"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - Source string `json:"Source" xml:"Source"` - FailedReason string `json:"FailedReason" xml:"FailedReason"` - TaskGroupId string `json:"TaskGroupId" xml:"TaskGroupId"` - ResourceIds ResourceIds `json:"ResourceIds" xml:"ResourceIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go deleted file mode 100644 index 8449f6a587..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// TaskSet is a nested struct in ecs response -type TaskSet struct { - Task []Task `json:"Task" xml:"Task"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_to_region_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_to_region_ids.go deleted file mode 100644 index 77816ed9ca..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_to_region_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ToRegionIds is a nested struct in ecs response -type ToRegionIds struct { - ToRegionId []string `json:"ToRegionId" xml:"ToRegionId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go deleted file mode 100644 index 22f4802e6a..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go +++ /dev/null @@ -1,22 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Topology is a nested struct in ecs response -type Topology struct { - HostId string `json:"HostId" xml:"HostId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topologys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topologys.go deleted file mode 100644 index 575e0de73d..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topologys.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Topologys is a nested struct in ecs response -type Topologys struct { - Topology []Topology `json:"Topology" xml:"Topology"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go deleted file mode 100644 index 2d79296ded..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_user_cidrs.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// UserCidrs is a nested struct in ecs response -type UserCidrs struct { - UserCidr []string `json:"UserCidr" xml:"UserCidr"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go deleted file mode 100644 index e7e342af7b..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VRouter is a nested struct in ecs response -type VRouter struct { - VpcId string `json:"VpcId" xml:"VpcId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - VRouterId string `json:"VRouterId" xml:"VRouterId"` - Description string `json:"Description" xml:"Description"` - VRouterName string `json:"VRouterName" xml:"VRouterName"` - RegionId string `json:"RegionId" xml:"RegionId"` - RouteTableIds RouteTableIds `json:"RouteTableIds" xml:"RouteTableIds"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go deleted file mode 100644 index fe485726b7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_routers.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VRouters is a nested struct in ecs response -type VRouters struct { - VRouter []VRouter `json:"VRouter" xml:"VRouter"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go deleted file mode 100644 index 9276bab13e..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go +++ /dev/null @@ -1,31 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VSwitch is a nested struct in ecs response -type VSwitch struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` - VpcId string `json:"VpcId" xml:"VpcId"` - IsDefault bool `json:"IsDefault" xml:"IsDefault"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` - Description string `json:"Description" xml:"Description"` - AvailableIpAddressCount int64 `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go deleted file mode 100644 index 5a2ab914c1..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch_ids.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VSwitchIds is a nested struct in ecs response -type VSwitchIds struct { - VSwitchId []string `json:"VSwitchId" xml:"VSwitchId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go deleted file mode 100644 index b5e2d544df..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switches.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VSwitches is a nested struct in ecs response -type VSwitches struct { - VSwitch []VSwitch `json:"VSwitch" xml:"VSwitch"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go deleted file mode 100644 index 03d14bcb24..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go +++ /dev/null @@ -1,27 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ValueItem is a nested struct in ecs response -type ValueItem struct { - DiskCategory string `json:"DiskCategory" xml:"DiskCategory"` - Value string `json:"Value" xml:"Value"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - Count int `json:"Count" xml:"Count"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go deleted file mode 100644 index 5b98c2b4dc..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VirtualBorderRouterForPhysicalConnectionSet is a nested struct in ecs response -type VirtualBorderRouterForPhysicalConnectionSet struct { - VirtualBorderRouterForPhysicalConnectionType []VirtualBorderRouterForPhysicalConnectionType `json:"VirtualBorderRouterForPhysicalConnectionType" xml:"VirtualBorderRouterForPhysicalConnectionType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go deleted file mode 100644 index fc32b54dc5..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go +++ /dev/null @@ -1,28 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VirtualBorderRouterForPhysicalConnectionType is a nested struct in ecs response -type VirtualBorderRouterForPhysicalConnectionType struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` - TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` - ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` - VbrOwnerUid int64 `json:"VbrOwnerUid" xml:"VbrOwnerUid"` - VbrId string `json:"VbrId" xml:"VbrId"` - VlanId int `json:"VlanId" xml:"VlanId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go deleted file mode 100644 index 22a29cde27..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_set.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VirtualBorderRouterSet is a nested struct in ecs response -type VirtualBorderRouterSet struct { - VirtualBorderRouterType []VirtualBorderRouterType `json:"VirtualBorderRouterType" xml:"VirtualBorderRouterType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go deleted file mode 100644 index b03c6e4dd0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VirtualBorderRouterType is a nested struct in ecs response -type VirtualBorderRouterType struct { - VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` - LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` - ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` - PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` - PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` - Description string `json:"Description" xml:"Description"` - PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` - RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` - TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` - PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` - Name string `json:"Name" xml:"Name"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - VbrId string `json:"VbrId" xml:"VbrId"` - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` - VlanId int `json:"VlanId" xml:"VlanId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go deleted file mode 100644 index b827b6ed58..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go +++ /dev/null @@ -1,31 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Vpc is a nested struct in ecs response -type Vpc struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - VpcName string `json:"VpcName" xml:"VpcName"` - Status string `json:"Status" xml:"Status"` - VpcId string `json:"VpcId" xml:"VpcId"` - VRouterId string `json:"VRouterId" xml:"VRouterId"` - IsDefault bool `json:"IsDefault" xml:"IsDefault"` - CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` - Description string `json:"Description" xml:"Description"` - RegionId string `json:"RegionId" xml:"RegionId"` - VSwitchIds VSwitchIds `json:"VSwitchIds" xml:"VSwitchIds"` - UserCidrs UserCidrs `json:"UserCidrs" xml:"UserCidrs"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go deleted file mode 100644 index 84cb875634..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go +++ /dev/null @@ -1,24 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// VpcAttributes is a nested struct in ecs response -type VpcAttributes struct { - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - VpcId string `json:"VpcId" xml:"VpcId"` - NatIpAddress string `json:"NatIpAddress" xml:"NatIpAddress"` - PrivateIpAddress PrivateIpAddressInDescribeInstanceAttribute `json:"PrivateIpAddress" xml:"PrivateIpAddress"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go deleted file mode 100644 index f1fbd64541..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpcs.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Vpcs is a nested struct in ecs response -type Vpcs struct { - Vpc []Vpc `json:"Vpc" xml:"Vpc"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go deleted file mode 100644 index fd37d103d7..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go +++ /dev/null @@ -1,32 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Zone is a nested struct in ecs response -type Zone struct { - ZoneNo string `json:"ZoneNo" xml:"ZoneNo"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - LocalName string `json:"LocalName" xml:"LocalName"` - ZoneType string `json:"ZoneType" xml:"ZoneType"` - AvailableResourceCreation AvailableResourceCreation `json:"AvailableResourceCreation" xml:"AvailableResourceCreation"` - AvailableVolumeCategories AvailableVolumeCategories `json:"AvailableVolumeCategories" xml:"AvailableVolumeCategories"` - AvailableInstanceTypes AvailableInstanceTypesInDescribeZones `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"` - AvailableDedicatedHostTypes AvailableDedicatedHostTypes `json:"AvailableDedicatedHostTypes" xml:"AvailableDedicatedHostTypes"` - NetworkTypes NetworkTypesInDescribeRecommendInstanceType `json:"NetworkTypes" xml:"NetworkTypes"` - DedicatedHostGenerations DedicatedHostGenerations `json:"DedicatedHostGenerations" xml:"DedicatedHostGenerations"` - AvailableDiskCategories AvailableDiskCategories `json:"AvailableDiskCategories" xml:"AvailableDiskCategories"` - AvailableResources AvailableResourcesInDescribeZones `json:"AvailableResources" xml:"AvailableResources"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go deleted file mode 100644 index aab4743f0c..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_recommend_instance_type.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ZonesInDescribeRecommendInstanceType is a nested struct in ecs response -type ZonesInDescribeRecommendInstanceType struct { - Zone []Zone `json:"zone" xml:"zone"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go deleted file mode 100644 index 1e749d8580..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zones_in_describe_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ZonesInDescribeZones is a nested struct in ecs response -type ZonesInDescribeZones struct { - Zone []Zone `json:"Zone" xml:"Zone"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go deleted file mode 100644 index 49fb8851b3..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go +++ /dev/null @@ -1,110 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// TagResources invokes the ecs.TagResources API synchronously -func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) { - response = CreateTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// TagResourcesWithChan invokes the ecs.TagResources API asynchronously -func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) { - responseChan := make(chan *TagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.TagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// TagResourcesWithCallback invokes the ecs.TagResources API asynchronously -func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *TagResourcesResponse - var err error - defer close(result) - response, err = client.TagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// TagResourcesRequest is the request struct for api TagResources -type TagResourcesRequest struct { - *requests.RpcRequest - Tag *[]TagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` -} - -// TagResourcesTag is a repeated param struct in TagResourcesRequest -type TagResourcesTag struct { - Key string `name:"Key"` - Value string `name:"Value"` -} - -// TagResourcesResponse is the response struct for api TagResources -type TagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateTagResourcesRequest creates a request to invoke TagResources API -func CreateTagResourcesRequest() (request *TagResourcesRequest) { - request = &TagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "TagResources", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateTagResourcesResponse creates a response to parse from TagResources response -func CreateTagResourcesResponse() (response *TagResourcesResponse) { - response = &TagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go deleted file mode 100644 index 31cdc918ea..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// TerminatePhysicalConnection invokes the ecs.TerminatePhysicalConnection API synchronously -func (client *Client) TerminatePhysicalConnection(request *TerminatePhysicalConnectionRequest) (response *TerminatePhysicalConnectionResponse, err error) { - response = CreateTerminatePhysicalConnectionResponse() - err = client.DoAction(request, response) - return -} - -// TerminatePhysicalConnectionWithChan invokes the ecs.TerminatePhysicalConnection API asynchronously -func (client *Client) TerminatePhysicalConnectionWithChan(request *TerminatePhysicalConnectionRequest) (<-chan *TerminatePhysicalConnectionResponse, <-chan error) { - responseChan := make(chan *TerminatePhysicalConnectionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.TerminatePhysicalConnection(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// TerminatePhysicalConnectionWithCallback invokes the ecs.TerminatePhysicalConnection API asynchronously -func (client *Client) TerminatePhysicalConnectionWithCallback(request *TerminatePhysicalConnectionRequest, callback func(response *TerminatePhysicalConnectionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *TerminatePhysicalConnectionResponse - var err error - defer close(result) - response, err = client.TerminatePhysicalConnection(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// TerminatePhysicalConnectionRequest is the request struct for api TerminatePhysicalConnection -type TerminatePhysicalConnectionRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` -} - -// TerminatePhysicalConnectionResponse is the response struct for api TerminatePhysicalConnection -type TerminatePhysicalConnectionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateTerminatePhysicalConnectionRequest creates a request to invoke TerminatePhysicalConnection API -func CreateTerminatePhysicalConnectionRequest() (request *TerminatePhysicalConnectionRequest) { - request = &TerminatePhysicalConnectionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "TerminatePhysicalConnection", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateTerminatePhysicalConnectionResponse creates a response to parse from TerminatePhysicalConnection response -func CreateTerminatePhysicalConnectionResponse() (response *TerminatePhysicalConnectionResponse) { - response = &TerminatePhysicalConnectionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go deleted file mode 100644 index c3dcbea2d0..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// TerminateVirtualBorderRouter invokes the ecs.TerminateVirtualBorderRouter API synchronously -func (client *Client) TerminateVirtualBorderRouter(request *TerminateVirtualBorderRouterRequest) (response *TerminateVirtualBorderRouterResponse, err error) { - response = CreateTerminateVirtualBorderRouterResponse() - err = client.DoAction(request, response) - return -} - -// TerminateVirtualBorderRouterWithChan invokes the ecs.TerminateVirtualBorderRouter API asynchronously -func (client *Client) TerminateVirtualBorderRouterWithChan(request *TerminateVirtualBorderRouterRequest) (<-chan *TerminateVirtualBorderRouterResponse, <-chan error) { - responseChan := make(chan *TerminateVirtualBorderRouterResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.TerminateVirtualBorderRouter(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// TerminateVirtualBorderRouterWithCallback invokes the ecs.TerminateVirtualBorderRouter API asynchronously -func (client *Client) TerminateVirtualBorderRouterWithCallback(request *TerminateVirtualBorderRouterRequest, callback func(response *TerminateVirtualBorderRouterResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *TerminateVirtualBorderRouterResponse - var err error - defer close(result) - response, err = client.TerminateVirtualBorderRouter(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// TerminateVirtualBorderRouterRequest is the request struct for api TerminateVirtualBorderRouter -type TerminateVirtualBorderRouterRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - VbrId string `position:"Query" name:"VbrId"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// TerminateVirtualBorderRouterResponse is the response struct for api TerminateVirtualBorderRouter -type TerminateVirtualBorderRouterResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateTerminateVirtualBorderRouterRequest creates a request to invoke TerminateVirtualBorderRouter API -func CreateTerminateVirtualBorderRouterRequest() (request *TerminateVirtualBorderRouterRequest) { - request = &TerminateVirtualBorderRouterRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "TerminateVirtualBorderRouter", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateTerminateVirtualBorderRouterResponse creates a response to parse from TerminateVirtualBorderRouter response -func CreateTerminateVirtualBorderRouterResponse() (response *TerminateVirtualBorderRouterResponse) { - response = &TerminateVirtualBorderRouterResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go deleted file mode 100644 index 6539be0ecb..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// UnassignIpv6Addresses invokes the ecs.UnassignIpv6Addresses API synchronously -func (client *Client) UnassignIpv6Addresses(request *UnassignIpv6AddressesRequest) (response *UnassignIpv6AddressesResponse, err error) { - response = CreateUnassignIpv6AddressesResponse() - err = client.DoAction(request, response) - return -} - -// UnassignIpv6AddressesWithChan invokes the ecs.UnassignIpv6Addresses API asynchronously -func (client *Client) UnassignIpv6AddressesWithChan(request *UnassignIpv6AddressesRequest) (<-chan *UnassignIpv6AddressesResponse, <-chan error) { - responseChan := make(chan *UnassignIpv6AddressesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UnassignIpv6Addresses(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UnassignIpv6AddressesWithCallback invokes the ecs.UnassignIpv6Addresses API asynchronously -func (client *Client) UnassignIpv6AddressesWithCallback(request *UnassignIpv6AddressesRequest, callback func(response *UnassignIpv6AddressesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UnassignIpv6AddressesResponse - var err error - defer close(result) - response, err = client.UnassignIpv6Addresses(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UnassignIpv6AddressesRequest is the request struct for api UnassignIpv6Addresses -type UnassignIpv6AddressesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Ipv6Prefix *[]string `position:"Query" name:"Ipv6Prefix" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` - Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` -} - -// UnassignIpv6AddressesResponse is the response struct for api UnassignIpv6Addresses -type UnassignIpv6AddressesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUnassignIpv6AddressesRequest creates a request to invoke UnassignIpv6Addresses API -func CreateUnassignIpv6AddressesRequest() (request *UnassignIpv6AddressesRequest) { - request = &UnassignIpv6AddressesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "UnassignIpv6Addresses", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateUnassignIpv6AddressesResponse creates a response to parse from UnassignIpv6Addresses response -func CreateUnassignIpv6AddressesResponse() (response *UnassignIpv6AddressesResponse) { - response = &UnassignIpv6AddressesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go deleted file mode 100644 index 0397194039..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// UnassignPrivateIpAddresses invokes the ecs.UnassignPrivateIpAddresses API synchronously -func (client *Client) UnassignPrivateIpAddresses(request *UnassignPrivateIpAddressesRequest) (response *UnassignPrivateIpAddressesResponse, err error) { - response = CreateUnassignPrivateIpAddressesResponse() - err = client.DoAction(request, response) - return -} - -// UnassignPrivateIpAddressesWithChan invokes the ecs.UnassignPrivateIpAddresses API asynchronously -func (client *Client) UnassignPrivateIpAddressesWithChan(request *UnassignPrivateIpAddressesRequest) (<-chan *UnassignPrivateIpAddressesResponse, <-chan error) { - responseChan := make(chan *UnassignPrivateIpAddressesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UnassignPrivateIpAddresses(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UnassignPrivateIpAddressesWithCallback invokes the ecs.UnassignPrivateIpAddresses API asynchronously -func (client *Client) UnassignPrivateIpAddressesWithCallback(request *UnassignPrivateIpAddressesRequest, callback func(response *UnassignPrivateIpAddressesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UnassignPrivateIpAddressesResponse - var err error - defer close(result) - response, err = client.UnassignPrivateIpAddresses(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UnassignPrivateIpAddressesRequest is the request struct for api UnassignPrivateIpAddresses -type UnassignPrivateIpAddressesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Ipv4Prefix *[]string `position:"Query" name:"Ipv4Prefix" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` -} - -// UnassignPrivateIpAddressesResponse is the response struct for api UnassignPrivateIpAddresses -type UnassignPrivateIpAddressesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUnassignPrivateIpAddressesRequest creates a request to invoke UnassignPrivateIpAddresses API -func CreateUnassignPrivateIpAddressesRequest() (request *UnassignPrivateIpAddressesRequest) { - request = &UnassignPrivateIpAddressesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "UnassignPrivateIpAddresses", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateUnassignPrivateIpAddressesResponse creates a response to parse from UnassignPrivateIpAddresses response -func CreateUnassignPrivateIpAddressesResponse() (response *UnassignPrivateIpAddressesResponse) { - response = &UnassignPrivateIpAddressesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go deleted file mode 100644 index 87392c99db..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go +++ /dev/null @@ -1,105 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// UnassociateEipAddress invokes the ecs.UnassociateEipAddress API synchronously -func (client *Client) UnassociateEipAddress(request *UnassociateEipAddressRequest) (response *UnassociateEipAddressResponse, err error) { - response = CreateUnassociateEipAddressResponse() - err = client.DoAction(request, response) - return -} - -// UnassociateEipAddressWithChan invokes the ecs.UnassociateEipAddress API asynchronously -func (client *Client) UnassociateEipAddressWithChan(request *UnassociateEipAddressRequest) (<-chan *UnassociateEipAddressResponse, <-chan error) { - responseChan := make(chan *UnassociateEipAddressResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UnassociateEipAddress(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UnassociateEipAddressWithCallback invokes the ecs.UnassociateEipAddress API asynchronously -func (client *Client) UnassociateEipAddressWithCallback(request *UnassociateEipAddressRequest, callback func(response *UnassociateEipAddressResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UnassociateEipAddressResponse - var err error - defer close(result) - response, err = client.UnassociateEipAddress(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UnassociateEipAddressRequest is the request struct for api UnassociateEipAddress -type UnassociateEipAddressRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AllocationId string `position:"Query" name:"AllocationId"` - InstanceType string `position:"Query" name:"InstanceType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// UnassociateEipAddressResponse is the response struct for api UnassociateEipAddress -type UnassociateEipAddressResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUnassociateEipAddressRequest creates a request to invoke UnassociateEipAddress API -func CreateUnassociateEipAddressRequest() (request *UnassociateEipAddressRequest) { - request = &UnassociateEipAddressRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "UnassociateEipAddress", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateUnassociateEipAddressResponse creates a response to parse from UnassociateEipAddress response -func CreateUnassociateEipAddressResponse() (response *UnassociateEipAddressResponse) { - response = &UnassociateEipAddressResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go deleted file mode 100644 index 7f82164880..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// UnassociateHaVip invokes the ecs.UnassociateHaVip API synchronously -func (client *Client) UnassociateHaVip(request *UnassociateHaVipRequest) (response *UnassociateHaVipResponse, err error) { - response = CreateUnassociateHaVipResponse() - err = client.DoAction(request, response) - return -} - -// UnassociateHaVipWithChan invokes the ecs.UnassociateHaVip API asynchronously -func (client *Client) UnassociateHaVipWithChan(request *UnassociateHaVipRequest) (<-chan *UnassociateHaVipResponse, <-chan error) { - responseChan := make(chan *UnassociateHaVipResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UnassociateHaVip(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UnassociateHaVipWithCallback invokes the ecs.UnassociateHaVip API asynchronously -func (client *Client) UnassociateHaVipWithCallback(request *UnassociateHaVipRequest, callback func(response *UnassociateHaVipResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UnassociateHaVipResponse - var err error - defer close(result) - response, err = client.UnassociateHaVip(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UnassociateHaVipRequest is the request struct for api UnassociateHaVip -type UnassociateHaVipRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - HaVipId string `position:"Query" name:"HaVipId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - Force string `position:"Query" name:"Force"` -} - -// UnassociateHaVipResponse is the response struct for api UnassociateHaVip -type UnassociateHaVipResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUnassociateHaVipRequest creates a request to invoke UnassociateHaVip API -func CreateUnassociateHaVipRequest() (request *UnassociateHaVipRequest) { - request = &UnassociateHaVipRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "UnassociateHaVip", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateUnassociateHaVipResponse creates a response to parse from UnassociateHaVip response -func CreateUnassociateHaVipResponse() (response *UnassociateHaVipResponse) { - response = &UnassociateHaVipResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go deleted file mode 100644 index 7daf4c3b1f..0000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go +++ /dev/null @@ -1,106 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// UntagResources invokes the ecs.UntagResources API synchronously -func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) { - response = CreateUntagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// UntagResourcesWithChan invokes the ecs.UntagResources API asynchronously -func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) { - responseChan := make(chan *UntagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UntagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UntagResourcesWithCallback invokes the ecs.UntagResources API asynchronously -func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UntagResourcesResponse - var err error - defer close(result) - response, err = client.UntagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UntagResourcesRequest is the request struct for api UntagResources -type UntagResourcesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - All requests.Boolean `position:"Query" name:"All"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` -} - -// UntagResourcesResponse is the response struct for api UntagResources -type UntagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUntagResourcesRequest creates a request to invoke UntagResources API -func CreateUntagResourcesRequest() (request *UntagResourcesRequest) { - request = &UntagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "UntagResources", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateUntagResourcesResponse creates a response to parse from UntagResources response -func CreateUntagResourcesResponse() (response *UntagResourcesResponse) { - response = &UntagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/LICENSE b/vendor/github.com/aliyun/aliyun-oss-go-sdk/LICENSE deleted file mode 100644 index d46e9d128c..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/LICENSE +++ /dev/null @@ -1,14 +0,0 @@ -Copyright (c) 2015 aliyun.com - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the -Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/auth.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/auth.go deleted file mode 100644 index 2eccf31631..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/auth.go +++ /dev/null @@ -1,339 +0,0 @@ -package oss - -import ( - "bytes" - "crypto/hmac" - "crypto/sha1" - "crypto/sha256" - "encoding/base64" - "encoding/hex" - "fmt" - "hash" - "io" - "net/http" - "sort" - "strconv" - "strings" - "time" -) - -// headerSorter defines the key-value structure for storing the sorted data in signHeader. -type headerSorter struct { - Keys []string - Vals []string -} - -// getAdditionalHeaderKeys get exist key in http header -func (conn Conn) getAdditionalHeaderKeys(req *http.Request) ([]string, map[string]string) { - var keysList []string - keysMap := make(map[string]string) - srcKeys := make(map[string]string) - - for k := range req.Header { - srcKeys[strings.ToLower(k)] = "" - } - - for _, v := range conn.config.AdditionalHeaders { - if _, ok := srcKeys[strings.ToLower(v)]; ok { - keysMap[strings.ToLower(v)] = "" - } - } - - for k := range keysMap { - keysList = append(keysList, k) - } - sort.Strings(keysList) - return keysList, keysMap -} - -// getAdditionalHeaderKeysV4 get exist key in http header -func (conn Conn) getAdditionalHeaderKeysV4(req *http.Request) ([]string, map[string]string) { - var keysList []string - keysMap := make(map[string]string) - srcKeys := make(map[string]string) - - for k := range req.Header { - srcKeys[strings.ToLower(k)] = "" - } - - for _, v := range conn.config.AdditionalHeaders { - if _, ok := srcKeys[strings.ToLower(v)]; ok { - if !strings.EqualFold(v, HTTPHeaderContentMD5) && !strings.EqualFold(v, HTTPHeaderContentType) { - keysMap[strings.ToLower(v)] = "" - } - } - } - - for k := range keysMap { - keysList = append(keysList, k) - } - sort.Strings(keysList) - return keysList, keysMap -} - -// signHeader signs the header and sets it as the authorization header. -func (conn Conn) signHeader(req *http.Request, canonicalizedResource string, credentials Credentials) { - akIf := credentials - authorizationStr := "" - if conn.config.AuthVersion == AuthV4 { - strDay := "" - strDate := req.Header.Get(HttpHeaderOssDate) - if strDate == "" { - strDate = req.Header.Get(HTTPHeaderDate) - t, _ := time.Parse(http.TimeFormat, strDate) - strDay = t.Format("20060102") - } else { - t, _ := time.Parse(timeFormatV4, strDate) - strDay = t.Format("20060102") - } - signHeaderProduct := conn.config.GetSignProduct() - signHeaderRegion := conn.config.GetSignRegion() - - additionalList, _ := conn.getAdditionalHeaderKeysV4(req) - if len(additionalList) > 0 { - authorizationFmt := "OSS4-HMAC-SHA256 Credential=%v/%v/%v/" + signHeaderProduct + "/aliyun_v4_request,AdditionalHeaders=%v,Signature=%v" - additionnalHeadersStr := strings.Join(additionalList, ";") - authorizationStr = fmt.Sprintf(authorizationFmt, akIf.GetAccessKeyID(), strDay, signHeaderRegion, additionnalHeadersStr, conn.getSignedStrV4(req, canonicalizedResource, akIf.GetAccessKeySecret(), nil)) - } else { - authorizationFmt := "OSS4-HMAC-SHA256 Credential=%v/%v/%v/" + signHeaderProduct + "/aliyun_v4_request,Signature=%v" - authorizationStr = fmt.Sprintf(authorizationFmt, akIf.GetAccessKeyID(), strDay, signHeaderRegion, conn.getSignedStrV4(req, canonicalizedResource, akIf.GetAccessKeySecret(), nil)) - } - } else if conn.config.AuthVersion == AuthV2 { - additionalList, _ := conn.getAdditionalHeaderKeys(req) - if len(additionalList) > 0 { - authorizationFmt := "OSS2 AccessKeyId:%v,AdditionalHeaders:%v,Signature:%v" - additionnalHeadersStr := strings.Join(additionalList, ";") - authorizationStr = fmt.Sprintf(authorizationFmt, akIf.GetAccessKeyID(), additionnalHeadersStr, conn.getSignedStr(req, canonicalizedResource, akIf.GetAccessKeySecret())) - } else { - authorizationFmt := "OSS2 AccessKeyId:%v,Signature:%v" - authorizationStr = fmt.Sprintf(authorizationFmt, akIf.GetAccessKeyID(), conn.getSignedStr(req, canonicalizedResource, akIf.GetAccessKeySecret())) - } - } else { - // Get the final authorization string - authorizationStr = "OSS " + akIf.GetAccessKeyID() + ":" + conn.getSignedStr(req, canonicalizedResource, akIf.GetAccessKeySecret()) - } - - // Give the parameter "Authorization" value - req.Header.Set(HTTPHeaderAuthorization, authorizationStr) -} - -func (conn Conn) getSignedStr(req *http.Request, canonicalizedResource string, keySecret string) string { - // Find out the "x-oss-"'s address in header of the request - ossHeadersMap := make(map[string]string) - additionalList, additionalMap := conn.getAdditionalHeaderKeys(req) - for k, v := range req.Header { - if strings.HasPrefix(strings.ToLower(k), "x-oss-") { - ossHeadersMap[strings.ToLower(k)] = v[0] - } else if conn.config.AuthVersion == AuthV2 { - if _, ok := additionalMap[strings.ToLower(k)]; ok { - ossHeadersMap[strings.ToLower(k)] = v[0] - } - } - } - hs := newHeaderSorter(ossHeadersMap) - - // Sort the ossHeadersMap by the ascending order - hs.Sort() - - // Get the canonicalizedOSSHeaders - canonicalizedOSSHeaders := "" - for i := range hs.Keys { - canonicalizedOSSHeaders += hs.Keys[i] + ":" + hs.Vals[i] + "\n" - } - - // Give other parameters values - // when sign URL, date is expires - date := req.Header.Get(HTTPHeaderDate) - contentType := req.Header.Get(HTTPHeaderContentType) - contentMd5 := req.Header.Get(HTTPHeaderContentMD5) - - // default is v1 signature - signStr := req.Method + "\n" + contentMd5 + "\n" + contentType + "\n" + date + "\n" + canonicalizedOSSHeaders + canonicalizedResource - h := hmac.New(func() hash.Hash { return sha1.New() }, []byte(keySecret)) - - // v2 signature - if conn.config.AuthVersion == AuthV2 { - signStr = req.Method + "\n" + contentMd5 + "\n" + contentType + "\n" + date + "\n" + canonicalizedOSSHeaders + strings.Join(additionalList, ";") + "\n" + canonicalizedResource - h = hmac.New(func() hash.Hash { return sha256.New() }, []byte(keySecret)) - } - - if conn.config.LogLevel >= Debug { - conn.config.WriteLog(Debug, "[Req:%p]signStr:%s\n", req, EscapeLFString(signStr)) - } - - io.WriteString(h, signStr) - signedStr := base64.StdEncoding.EncodeToString(h.Sum(nil)) - - return signedStr -} - -func (conn Conn) getSignedStrV4(req *http.Request, canonicalizedResource string, keySecret string, signingTime *time.Time) string { - // Find out the "x-oss-"'s address in header of the request - ossHeadersMap := make(map[string]string) - additionalList, additionalMap := conn.getAdditionalHeaderKeysV4(req) - for k, v := range req.Header { - lowKey := strings.ToLower(k) - if strings.EqualFold(lowKey, HTTPHeaderContentMD5) || - strings.EqualFold(lowKey, HTTPHeaderContentType) || - strings.HasPrefix(lowKey, "x-oss-") { - ossHeadersMap[lowKey] = strings.Trim(v[0], " ") - } else { - if _, ok := additionalMap[lowKey]; ok { - ossHeadersMap[lowKey] = strings.Trim(v[0], " ") - } - } - } - - // get day,eg 20210914 - //signingTime - signDate := "" - strDay := "" - if signingTime != nil { - signDate = signingTime.Format(timeFormatV4) - strDay = signingTime.Format(shortTimeFormatV4) - } else { - var t time.Time - // Required parameters - if date := req.Header.Get(HTTPHeaderDate); date != "" { - signDate = date - t, _ = time.Parse(http.TimeFormat, date) - } - - if ossDate := req.Header.Get(HttpHeaderOssDate); ossDate != "" { - signDate = ossDate - t, _ = time.Parse(timeFormatV4, ossDate) - } - - strDay = t.Format("20060102") - } - - hs := newHeaderSorter(ossHeadersMap) - - // Sort the ossHeadersMap by the ascending order - hs.Sort() - - // Get the canonicalizedOSSHeaders - canonicalizedOSSHeaders := "" - for i := range hs.Keys { - canonicalizedOSSHeaders += hs.Keys[i] + ":" + hs.Vals[i] + "\n" - } - - signStr := "" - - // v4 signature - hashedPayload := DefaultContentSha256 - if val := req.Header.Get(HttpHeaderOssContentSha256); val != "" { - hashedPayload = val - } - - // subResource - resource := canonicalizedResource - subResource := "" - subPos := strings.LastIndex(canonicalizedResource, "?") - if subPos != -1 { - subResource = canonicalizedResource[subPos+1:] - resource = canonicalizedResource[0:subPos] - } - - // get canonical request - canonicalReuqest := req.Method + "\n" + resource + "\n" + subResource + "\n" + canonicalizedOSSHeaders + "\n" + strings.Join(additionalList, ";") + "\n" + hashedPayload - rh := sha256.New() - io.WriteString(rh, canonicalReuqest) - hashedRequest := hex.EncodeToString(rh.Sum(nil)) - - if conn.config.LogLevel >= Debug { - conn.config.WriteLog(Debug, "[Req:%p]CanonicalRequest:%s\n", req, EscapeLFString(canonicalReuqest)) - } - - // Product & Region - signedStrV4Product := conn.config.GetSignProduct() - signedStrV4Region := conn.config.GetSignRegion() - - signStr = "OSS4-HMAC-SHA256" + "\n" + signDate + "\n" + strDay + "/" + signedStrV4Region + "/" + signedStrV4Product + "/aliyun_v4_request" + "\n" + hashedRequest - if conn.config.LogLevel >= Debug { - conn.config.WriteLog(Debug, "[Req:%p]signStr:%s\n", req, EscapeLFString(signStr)) - } - - h1 := hmac.New(func() hash.Hash { return sha256.New() }, []byte("aliyun_v4"+keySecret)) - io.WriteString(h1, strDay) - h1Key := h1.Sum(nil) - - h2 := hmac.New(func() hash.Hash { return sha256.New() }, h1Key) - io.WriteString(h2, signedStrV4Region) - h2Key := h2.Sum(nil) - - h3 := hmac.New(func() hash.Hash { return sha256.New() }, h2Key) - io.WriteString(h3, signedStrV4Product) - h3Key := h3.Sum(nil) - - h4 := hmac.New(func() hash.Hash { return sha256.New() }, h3Key) - io.WriteString(h4, "aliyun_v4_request") - h4Key := h4.Sum(nil) - - h := hmac.New(func() hash.Hash { return sha256.New() }, h4Key) - io.WriteString(h, signStr) - return fmt.Sprintf("%x", h.Sum(nil)) -} - -func (conn Conn) getRtmpSignedStr(bucketName, channelName, playlistName string, expiration int64, keySecret string, params map[string]interface{}) string { - if params[HTTPParamAccessKeyID] == nil { - return "" - } - - canonResource := fmt.Sprintf("/%s/%s", bucketName, channelName) - canonParamsKeys := []string{} - for key := range params { - if key != HTTPParamAccessKeyID && key != HTTPParamSignature && key != HTTPParamExpires && key != HTTPParamSecurityToken { - canonParamsKeys = append(canonParamsKeys, key) - } - } - - sort.Strings(canonParamsKeys) - canonParamsStr := "" - for _, key := range canonParamsKeys { - canonParamsStr = fmt.Sprintf("%s%s:%s\n", canonParamsStr, key, params[key].(string)) - } - - expireStr := strconv.FormatInt(expiration, 10) - signStr := expireStr + "\n" + canonParamsStr + canonResource - - h := hmac.New(func() hash.Hash { return sha1.New() }, []byte(keySecret)) - io.WriteString(h, signStr) - signedStr := base64.StdEncoding.EncodeToString(h.Sum(nil)) - return signedStr -} - -// newHeaderSorter is an additional function for function SignHeader. -func newHeaderSorter(m map[string]string) *headerSorter { - hs := &headerSorter{ - Keys: make([]string, 0, len(m)), - Vals: make([]string, 0, len(m)), - } - - for k, v := range m { - hs.Keys = append(hs.Keys, k) - hs.Vals = append(hs.Vals, v) - } - return hs -} - -// Sort is an additional function for function SignHeader. -func (hs *headerSorter) Sort() { - sort.Sort(hs) -} - -// Len is an additional function for function SignHeader. -func (hs *headerSorter) Len() int { - return len(hs.Vals) -} - -// Less is an additional function for function SignHeader. -func (hs *headerSorter) Less(i, j int) bool { - return bytes.Compare([]byte(hs.Keys[i]), []byte(hs.Keys[j])) < 0 -} - -// Swap is an additional function for function SignHeader. -func (hs *headerSorter) Swap(i, j int) { - hs.Vals[i], hs.Vals[j] = hs.Vals[j], hs.Vals[i] - hs.Keys[i], hs.Keys[j] = hs.Keys[j], hs.Keys[i] -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/bucket.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/bucket.go deleted file mode 100644 index 26dea3bb20..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/bucket.go +++ /dev/null @@ -1,1321 +0,0 @@ -package oss - -import ( - "bytes" - "context" - "crypto/md5" - "encoding/base64" - "encoding/xml" - "fmt" - "hash" - "hash/crc64" - "io" - "io/ioutil" - "net/http" - "net/url" - "os" - "strconv" - "strings" - "time" -) - -// Bucket implements the operations of object. -type Bucket struct { - Client Client - BucketName string -} - -// PutObject creates a new object and it will overwrite the original one if it exists already. -// -// objectKey the object key in UTF-8 encoding. The length must be between 1 and 1023, and cannot start with "/" or "\". -// reader io.Reader instance for reading the data for uploading -// options the options for uploading the object. The valid options here are CacheControl, ContentDisposition, ContentEncoding -// -// Expires, ServerSideEncryption, ObjectACL and Meta. Refer to the link below for more details. -// https://www.alibabacloud.com/help/en/object-storage-service/latest/putobject -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) PutObject(objectKey string, reader io.Reader, options ...Option) error { - opts := AddContentType(options, objectKey) - - request := &PutObjectRequest{ - ObjectKey: objectKey, - Reader: reader, - } - resp, err := bucket.DoPutObject(request, opts) - if err != nil { - return err - } - defer resp.Body.Close() - - return err -} - -// PutObjectFromFile creates a new object from the local file. -// -// objectKey object key. -// filePath the local file path to upload. -// options the options for uploading the object. Refer to the parameter options in PutObject for more details. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) PutObjectFromFile(objectKey, filePath string, options ...Option) error { - fd, err := os.Open(filePath) - if err != nil { - return err - } - defer fd.Close() - - opts := AddContentType(options, filePath, objectKey) - - request := &PutObjectRequest{ - ObjectKey: objectKey, - Reader: fd, - } - resp, err := bucket.DoPutObject(request, opts) - if err != nil { - return err - } - defer resp.Body.Close() - - return err -} - -// DoPutObject does the actual upload work. -// -// request the request instance for uploading an object. -// options the options for uploading an object. -// -// Response the response from OSS. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DoPutObject(request *PutObjectRequest, options []Option) (*Response, error) { - isOptSet, _, _ := IsOptionSet(options, HTTPHeaderContentType) - if !isOptSet { - options = AddContentType(options, request.ObjectKey) - } - - listener := GetProgressListener(options) - - params := map[string]interface{}{} - resp, err := bucket.do("PUT", request.ObjectKey, params, options, request.Reader, listener) - if err != nil { - return nil, err - } - if bucket.GetConfig().IsEnableCRC { - err = CheckCRC(resp, "DoPutObject") - if err != nil { - return resp, err - } - } - err = CheckRespCode(resp.StatusCode, []int{http.StatusOK}) - body, _ := ioutil.ReadAll(resp.Body) - if len(body) > 0 { - if err != nil { - err = tryConvertServiceError(body, resp, err) - } else { - rb, _ := FindOption(options, responseBody, nil) - if rb != nil { - if rbody, ok := rb.(*[]byte); ok { - *rbody = body - } - } - } - } - return resp, err -} - -// GetObject downloads the object. -// -// objectKey the object key. -// options the options for downloading the object. The valid values are: Range, IfModifiedSince, IfUnmodifiedSince, IfMatch, -// -// IfNoneMatch, AcceptEncoding. For more details, please check out: -// https://www.alibabacloud.com/help/en/object-storage-service/latest/getobject -// -// io.ReadCloser reader instance for reading data from response. It must be called close() after the usage and only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) GetObject(objectKey string, options ...Option) (io.ReadCloser, error) { - result, err := bucket.DoGetObject(&GetObjectRequest{objectKey}, options) - if err != nil { - return nil, err - } - - return result.Response, nil -} - -// GetObjectToFile downloads the data to a local file. -// -// objectKey the object key to download. -// filePath the local file to store the object data. -// options the options for downloading the object. Refer to the parameter options in method GetObject for more details. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) GetObjectToFile(objectKey, filePath string, options ...Option) error { - tempFilePath := filePath + TempFileSuffix - - // Calls the API to actually download the object. Returns the result instance. - result, err := bucket.DoGetObject(&GetObjectRequest{objectKey}, options) - if err != nil { - return err - } - defer result.Response.Close() - - // If the local file does not exist, create a new one. If it exists, overwrite it. - fd, err := os.OpenFile(tempFilePath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, FilePermMode) - if err != nil { - return err - } - - // Copy the data to the local file path. - _, err = io.Copy(fd, result.Response.Body) - fd.Close() - if err != nil { - return err - } - - // Compares the CRC value - hasRange, _, _ := IsOptionSet(options, HTTPHeaderRange) - encodeOpt, _ := FindOption(options, HTTPHeaderAcceptEncoding, nil) - acceptEncoding := "" - if encodeOpt != nil { - acceptEncoding = encodeOpt.(string) - } - if bucket.GetConfig().IsEnableCRC && !hasRange && acceptEncoding != "gzip" { - result.Response.ClientCRC = result.ClientCRC.Sum64() - err = CheckCRC(result.Response, "GetObjectToFile") - if err != nil { - os.Remove(tempFilePath) - return err - } - } - - return os.Rename(tempFilePath, filePath) -} - -// DoGetObject is the actual API that gets the object. It's the internal function called by other public APIs. -// -// request the request to download the object. -// options the options for downloading the file. Checks out the parameter options in method GetObject. -// -// GetObjectResult the result instance of getting the object. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DoGetObject(request *GetObjectRequest, options []Option) (*GetObjectResult, error) { - params, _ := GetRawParams(options) - resp, err := bucket.do("GET", request.ObjectKey, params, options, nil, nil) - if err != nil { - return nil, err - } - - result := &GetObjectResult{ - Response: resp, - } - - // CRC - var crcCalc hash.Hash64 - hasRange, _, _ := IsOptionSet(options, HTTPHeaderRange) - if bucket.GetConfig().IsEnableCRC && !hasRange { - crcCalc = crc64.New(CrcTable()) - result.ServerCRC = resp.ServerCRC - result.ClientCRC = crcCalc - } - - // Progress - listener := GetProgressListener(options) - - contentLen, _ := strconv.ParseInt(resp.Headers.Get(HTTPHeaderContentLength), 10, 64) - resp.Body = TeeReader(resp.Body, crcCalc, contentLen, listener, nil) - - return result, nil -} - -// CopyObject copies the object inside the bucket. -// -// srcObjectKey the source object to copy. -// destObjectKey the target object to copy. -// options options for copying an object. You can specify the conditions of copy. The valid conditions are CopySourceIfMatch, -// -// CopySourceIfNoneMatch, CopySourceIfModifiedSince, CopySourceIfUnmodifiedSince, MetadataDirective. -// Also you can specify the target object's attributes, such as CacheControl, ContentDisposition, ContentEncoding, Expires, -// ServerSideEncryption, ObjectACL, Meta. Refer to the link below for more details : -// https://www.alibabacloud.com/help/en/object-storage-service/latest/copyobject -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) CopyObject(srcObjectKey, destObjectKey string, options ...Option) (CopyObjectResult, error) { - var out CopyObjectResult - - //first find version id - versionIdKey := "versionId" - versionId, _ := FindOption(options, versionIdKey, nil) - if versionId == nil { - options = append(options, CopySource(bucket.BucketName, url.QueryEscape(srcObjectKey))) - } else { - options = DeleteOption(options, versionIdKey) - options = append(options, CopySourceVersion(bucket.BucketName, url.QueryEscape(srcObjectKey), versionId.(string))) - } - - params := map[string]interface{}{} - resp, err := bucket.do("PUT", destObjectKey, params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// CopyObjectTo copies the object to another bucket. -// -// srcObjectKey source object key. The source bucket is Bucket.BucketName . -// destBucketName target bucket name. -// destObjectKey target object name. -// options copy options, check out parameter options in function CopyObject for more details. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) CopyObjectTo(destBucketName, destObjectKey, srcObjectKey string, options ...Option) (CopyObjectResult, error) { - return bucket.copy(srcObjectKey, destBucketName, destObjectKey, options...) -} - -// CopyObjectFrom copies the object to another bucket. -// -// srcBucketName source bucket name. -// srcObjectKey source object name. -// destObjectKey target object name. The target bucket name is Bucket.BucketName. -// options copy options. Check out parameter options in function CopyObject. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) CopyObjectFrom(srcBucketName, srcObjectKey, destObjectKey string, options ...Option) (CopyObjectResult, error) { - destBucketName := bucket.BucketName - var out CopyObjectResult - srcBucket, err := bucket.Client.Bucket(srcBucketName) - if err != nil { - return out, err - } - - return srcBucket.copy(srcObjectKey, destBucketName, destObjectKey, options...) -} - -func (bucket Bucket) copy(srcObjectKey, destBucketName, destObjectKey string, options ...Option) (CopyObjectResult, error) { - var out CopyObjectResult - - //first find version id - versionIdKey := "versionId" - versionId, _ := FindOption(options, versionIdKey, nil) - if versionId == nil { - options = append(options, CopySource(bucket.BucketName, url.QueryEscape(srcObjectKey))) - } else { - options = DeleteOption(options, versionIdKey) - options = append(options, CopySourceVersion(bucket.BucketName, url.QueryEscape(srcObjectKey), versionId.(string))) - } - - headers := make(map[string]string) - err := handleOptions(headers, options) - if err != nil { - return out, err - } - params := map[string]interface{}{} - - ctxArg, _ := FindOption(options, contextArg, nil) - ctx, _ := ctxArg.(context.Context) - - resp, err := bucket.Client.Conn.DoWithContext(ctx, "PUT", destBucketName, destObjectKey, params, headers, nil, 0, nil) - - // get response header - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - pRespHeader := respHeader.(*http.Header) - if resp != nil { - *pRespHeader = resp.Headers - } - } - - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// AppendObject uploads the data in the way of appending an existing or new object. -// -// AppendObject the parameter appendPosition specifies which postion (in the target object) to append. For the first append (to a non-existing file), -// the appendPosition should be 0. The appendPosition in the subsequent calls will be the current object length. -// For example, the first appendObject's appendPosition is 0 and it uploaded 65536 bytes data, then the second call's position is 65536. -// The response header x-oss-next-append-position after each successful request also specifies the next call's append position (so the caller need not to maintain this information). -// -// objectKey the target object to append to. -// reader io.Reader. The read instance for reading the data to append. -// appendPosition the start position to append. -// destObjectProperties the options for the first appending, such as CacheControl, ContentDisposition, ContentEncoding, -// -// Expires, ServerSideEncryption, ObjectACL. -// -// int64 the next append position, it's valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) AppendObject(objectKey string, reader io.Reader, appendPosition int64, options ...Option) (int64, error) { - request := &AppendObjectRequest{ - ObjectKey: objectKey, - Reader: reader, - Position: appendPosition, - } - - result, err := bucket.DoAppendObject(request, options) - if err != nil { - return appendPosition, err - } - - return result.NextPosition, err -} - -// DoAppendObject is the actual API that does the object append. -// -// request the request object for appending object. -// options the options for appending object. -// -// AppendObjectResult the result object for appending object. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DoAppendObject(request *AppendObjectRequest, options []Option) (*AppendObjectResult, error) { - params := map[string]interface{}{} - params["append"] = nil - params["position"] = strconv.FormatInt(request.Position, 10) - headers := make(map[string]string) - - opts := AddContentType(options, request.ObjectKey) - handleOptions(headers, opts) - - var initCRC uint64 - isCRCSet, initCRCOpt, _ := IsOptionSet(options, initCRC64) - if isCRCSet { - initCRC = initCRCOpt.(uint64) - } - - listener := GetProgressListener(options) - - handleOptions(headers, opts) - - ctxArg, _ := FindOption(options, contextArg, nil) - ctx, _ := ctxArg.(context.Context) - - resp, err := bucket.Client.Conn.DoWithContext(ctx, "POST", bucket.BucketName, request.ObjectKey, params, headers, - request.Reader, initCRC, listener) - - // get response header - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - pRespHeader := respHeader.(*http.Header) - if resp != nil { - *pRespHeader = resp.Headers - } - } - - if err != nil { - return nil, err - } - defer resp.Body.Close() - - nextPosition, _ := strconv.ParseInt(resp.Headers.Get(HTTPHeaderOssNextAppendPosition), 10, 64) - result := &AppendObjectResult{ - NextPosition: nextPosition, - CRC: resp.ServerCRC, - } - - if bucket.GetConfig().IsEnableCRC && isCRCSet { - err = CheckCRC(resp, "AppendObject") - if err != nil { - return result, err - } - } - - return result, nil -} - -// DeleteObject deletes the object. -// -// objectKey the object key to delete. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DeleteObject(objectKey string, options ...Option) error { - params, _ := GetRawParams(options) - resp, err := bucket.do("DELETE", objectKey, params, options, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// DeleteObjects deletes multiple objects. -// -// objectKeys the object keys to delete. -// options the options for deleting objects. -// -// Supported option is DeleteObjectsQuiet which means it will not return error even deletion failed (not recommended). By default it's not used. -// -// DeleteObjectsResult the result object. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DeleteObjects(objectKeys []string, options ...Option) (DeleteObjectsResult, error) { - out := DeleteObjectsResult{} - dxml := deleteXML{} - for _, key := range objectKeys { - dxml.Objects = append(dxml.Objects, DeleteObject{Key: key}) - } - isQuiet, _ := FindOption(options, deleteObjectsQuiet, false) - dxml.Quiet = isQuiet.(bool) - xmlData := marshalDeleteObjectToXml(dxml) - body, err := bucket.DeleteMultipleObjectsXml(xmlData, options...) - if err != nil { - return out, err - } - deletedResult := DeleteObjectVersionsResult{} - if !dxml.Quiet { - if err = xmlUnmarshal(strings.NewReader(body), &deletedResult); err == nil { - err = decodeDeleteObjectsResult(&deletedResult) - } - } - // Keep compatibility:need convert to struct DeleteObjectsResult - out.XMLName = deletedResult.XMLName - for _, v := range deletedResult.DeletedObjectsDetail { - out.DeletedObjects = append(out.DeletedObjects, v.Key) - } - return out, err -} - -// DeleteObjectVersions deletes multiple object versions. -// -// objectVersions the object keys and versions to delete. -// options the options for deleting objects. -// -// Supported option is DeleteObjectsQuiet which means it will not return error even deletion failed (not recommended). By default it's not used. -// -// DeleteObjectVersionsResult the result object. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DeleteObjectVersions(objectVersions []DeleteObject, options ...Option) (DeleteObjectVersionsResult, error) { - out := DeleteObjectVersionsResult{} - dxml := deleteXML{} - dxml.Objects = objectVersions - isQuiet, _ := FindOption(options, deleteObjectsQuiet, false) - dxml.Quiet = isQuiet.(bool) - xmlData := marshalDeleteObjectToXml(dxml) - body, err := bucket.DeleteMultipleObjectsXml(xmlData, options...) - if err != nil { - return out, err - } - if !dxml.Quiet { - if err = xmlUnmarshal(strings.NewReader(body), &out); err == nil { - err = decodeDeleteObjectsResult(&out) - } - } - return out, err -} - -// DeleteMultipleObjectsXml deletes multiple object or deletes multiple object versions. -// -// xmlData the object keys and versions to delete as the xml format. -// options the options for deleting objects. -// -// string the result response body. -// error it's nil if no error, otherwise it's an error. -func (bucket Bucket) DeleteMultipleObjectsXml(xmlData string, options ...Option) (string, error) { - buffer := new(bytes.Buffer) - bs := []byte(xmlData) - buffer.Write(bs) - options = append(options, ContentType("application/xml")) - sum := md5.Sum(bs) - b64 := base64.StdEncoding.EncodeToString(sum[:]) - options = append(options, ContentMD5(b64)) - params := map[string]interface{}{} - params["delete"] = nil - params["encoding-type"] = "url" - resp, err := bucket.doInner("POST", "", params, options, buffer, nil) - if err != nil { - return "", err - } - defer resp.Body.Close() - - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// IsObjectExist checks if the object exists. -// -// bool flag of object's existence (true:exists; false:non-exist) when error is nil. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) IsObjectExist(objectKey string, options ...Option) (bool, error) { - _, err := bucket.GetObjectMeta(objectKey, options...) - if err == nil { - return true, nil - } - - switch err.(type) { - case ServiceError: - if err.(ServiceError).StatusCode == 404 { - return false, nil - } - } - - return false, err -} - -// ListObjects lists the objects under the current bucket. -// -// options it contains all the filters for listing objects. -// -// It could specify a prefix filter on object keys, the max keys count to return and the object key marker and the delimiter for grouping object names. -// The key marker means the returned objects' key must be greater than it in lexicographic order. -// -// For example, if the bucket has 8 objects, my-object-1, my-object-11, my-object-2, my-object-21, -// my-object-22, my-object-3, my-object-31, my-object-32. If the prefix is my-object-2 (no other filters), then it returns -// my-object-2, my-object-21, my-object-22 three objects. If the marker is my-object-22 (no other filters), then it returns -// my-object-3, my-object-31, my-object-32 three objects. If the max keys is 5, then it returns 5 objects. -// The three filters could be used together to achieve filter and paging functionality. -// If the prefix is the folder name, then it could list all files under this folder (including the files under its subfolders). -// But if the delimiter is specified with '/', then it only returns that folder's files (no subfolder's files). The direct subfolders are in the commonPrefixes properties. -// For example, if the bucket has three objects fun/test.jpg, fun/movie/001.avi, fun/movie/007.avi. And if the prefix is "fun/", then it returns all three objects. -// But if the delimiter is '/', then only "fun/test.jpg" is returned as files and fun/movie/ is returned as common prefix. -// -// For common usage scenario, check out sample/list_object.go. -// -// ListObjectsResult the return value after operation succeeds (only valid when error is nil). -func (bucket Bucket) ListObjects(options ...Option) (ListObjectsResult, error) { - var out ListObjectsResult - - options = append(options, EncodingType("url")) - params, err := GetRawParams(options) - if err != nil { - return out, err - } - - resp, err := bucket.doInner("GET", "", params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - if err != nil { - return out, err - } - - err = decodeListObjectsResult(&out) - return out, err -} - -// ListObjectsV2 lists the objects under the current bucket. -// Recommend to use ListObjectsV2 to replace ListObjects -// ListObjectsResultV2 the return value after operation succeeds (only valid when error is nil). -func (bucket Bucket) ListObjectsV2(options ...Option) (ListObjectsResultV2, error) { - var out ListObjectsResultV2 - - options = append(options, EncodingType("url")) - options = append(options, ListType(2)) - params, err := GetRawParams(options) - if err != nil { - return out, err - } - - resp, err := bucket.doInner("GET", "", params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - if err != nil { - return out, err - } - - err = decodeListObjectsResultV2(&out) - return out, err -} - -// ListObjectVersions lists objects of all versions under the current bucket. -func (bucket Bucket) ListObjectVersions(options ...Option) (ListObjectVersionsResult, error) { - var out ListObjectVersionsResult - - options = append(options, EncodingType("url")) - params, err := GetRawParams(options) - if err != nil { - return out, err - } - params["versions"] = nil - - resp, err := bucket.doInner("GET", "", params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - if err != nil { - return out, err - } - - err = decodeListObjectVersionsResult(&out) - return out, err -} - -// SetObjectMeta sets the metadata of the Object. -// -// objectKey object -// options options for setting the metadata. The valid options are CacheControl, ContentDisposition, ContentEncoding, Expires, -// -// ServerSideEncryption, and custom metadata. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) SetObjectMeta(objectKey string, options ...Option) error { - options = append(options, MetadataDirective(MetaReplace)) - _, err := bucket.CopyObject(objectKey, objectKey, options...) - return err -} - -// GetObjectDetailedMeta gets the object's detailed metadata -// -// objectKey object key. -// options the constraints of the object. Only when the object meets the requirements this method will return the metadata. Otherwise returns error. Valid options are IfModifiedSince, IfUnmodifiedSince, -// -// IfMatch, IfNoneMatch. For more details check out https://www.alibabacloud.com/help/en/object-storage-service/latest/headobject -// -// http.Header object meta when error is nil. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) GetObjectDetailedMeta(objectKey string, options ...Option) (http.Header, error) { - params, _ := GetRawParams(options) - resp, err := bucket.do("HEAD", objectKey, params, options, nil, nil) - if err != nil { - return nil, err - } - defer resp.Body.Close() - - return resp.Headers, nil -} - -// GetObjectMeta gets object metadata. -// -// GetObjectMeta is more lightweight than GetObjectDetailedMeta as it only returns basic metadata including ETag -// size, LastModified. The size information is in the HTTP header Content-Length. -// -// objectKey object key -// -// http.Header the object's metadata, valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) GetObjectMeta(objectKey string, options ...Option) (http.Header, error) { - params, _ := GetRawParams(options) - params["objectMeta"] = nil - //resp, err := bucket.do("GET", objectKey, "?objectMeta", "", nil, nil, nil) - resp, err := bucket.do("HEAD", objectKey, params, options, nil, nil) - if err != nil { - return nil, err - } - defer resp.Body.Close() - - return resp.Headers, nil -} - -// SetObjectACL updates the object's ACL. -// -// Only the bucket's owner could update object's ACL which priority is higher than bucket's ACL. -// For example, if the bucket ACL is private and object's ACL is public-read-write. -// Then object's ACL is used and it means all users could read or write that object. -// When the object's ACL is not set, then bucket's ACL is used as the object's ACL. -// -// Object read operations include GetObject, HeadObject, CopyObject and UploadPartCopy on the source object; -// Object write operations include PutObject, PostObject, AppendObject, DeleteObject, DeleteMultipleObjects, -// CompleteMultipartUpload and CopyObject on target object. -// -// objectKey the target object key (to set the ACL on) -// objectAcl object ACL. Valid options are PrivateACL, PublicReadACL, PublicReadWriteACL. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) SetObjectACL(objectKey string, objectACL ACLType, options ...Option) error { - options = append(options, ObjectACL(objectACL)) - params, _ := GetRawParams(options) - params["acl"] = nil - resp, err := bucket.do("PUT", objectKey, params, options, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetObjectACL gets object's ACL -// -// objectKey the object to get ACL from. -// -// GetObjectACLResult the result object when error is nil. GetObjectACLResult.Acl is the object ACL. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) GetObjectACL(objectKey string, options ...Option) (GetObjectACLResult, error) { - var out GetObjectACLResult - params, _ := GetRawParams(options) - params["acl"] = nil - resp, err := bucket.do("GET", objectKey, params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// PutSymlink creates a symlink (to point to an existing object) -// -// Symlink cannot point to another symlink. -// When creating a symlink, it does not check the existence of the target file, and does not check if the target file is symlink. -// Neither it checks the caller's permission on the target file. All these checks are deferred to the actual GetObject call via this symlink. -// If trying to add an existing file, as long as the caller has the write permission, the existing one will be overwritten. -// If the x-oss-meta- is specified, it will be added as the metadata of the symlink file. -// -// symObjectKey the symlink object's key. -// targetObjectKey the target object key to point to. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) PutSymlink(symObjectKey string, targetObjectKey string, options ...Option) error { - options = append(options, symlinkTarget(url.QueryEscape(targetObjectKey))) - params, _ := GetRawParams(options) - params["symlink"] = nil - resp, err := bucket.do("PUT", symObjectKey, params, options, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetSymlink gets the symlink object with the specified key. -// If the symlink object does not exist, returns 404. -// -// objectKey the symlink object's key. -// -// error it's nil if no error, otherwise it's an error object. -// -// When error is nil, the target file key is in the X-Oss-Symlink-Target header of the returned object. -func (bucket Bucket) GetSymlink(objectKey string, options ...Option) (http.Header, error) { - params, _ := GetRawParams(options) - params["symlink"] = nil - resp, err := bucket.do("GET", objectKey, params, options, nil, nil) - if err != nil { - return nil, err - } - defer resp.Body.Close() - - targetObjectKey := resp.Headers.Get(HTTPHeaderOssSymlinkTarget) - targetObjectKey, err = url.QueryUnescape(targetObjectKey) - if err != nil { - return resp.Headers, err - } - resp.Headers.Set(HTTPHeaderOssSymlinkTarget, targetObjectKey) - return resp.Headers, err -} - -// RestoreObject restores the object from the archive storage. -// -// An archive object is in cold status by default and it cannot be accessed. -// When restore is called on the cold object, it will become available for access after some time. -// If multiple restores are called on the same file when the object is being restored, server side does nothing for additional calls but returns success. -// By default, the restored object is available for access for one day. After that it will be unavailable again. -// But if another RestoreObject are called after the file is restored, then it will extend one day's access time of that object, up to 7 days. -// -// objectKey object key to restore. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) RestoreObject(objectKey string, options ...Option) error { - params, _ := GetRawParams(options) - params["restore"] = nil - resp, err := bucket.do("POST", objectKey, params, options, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK, http.StatusAccepted}) -} - -// RestoreObjectDetail support more features than RestoreObject -func (bucket Bucket) RestoreObjectDetail(objectKey string, restoreConfig RestoreConfiguration, options ...Option) error { - if restoreConfig.Tier == "" { - // Expedited, Standard, Bulk - restoreConfig.Tier = string(RestoreStandard) - } - - if restoreConfig.Days == 0 { - restoreConfig.Days = 1 - } - - bs, err := xml.Marshal(restoreConfig) - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - options = append(options, ContentType(contentType)) - - params, _ := GetRawParams(options) - params["restore"] = nil - - resp, err := bucket.do("POST", objectKey, params, options, buffer, nil) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK, http.StatusAccepted}) -} - -// RestoreObjectXML support more features than RestoreObject -func (bucket Bucket) RestoreObjectXML(objectKey, configXML string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(configXML)) - - contentType := http.DetectContentType(buffer.Bytes()) - options = append(options, ContentType(contentType)) - - params, _ := GetRawParams(options) - params["restore"] = nil - - resp, err := bucket.do("POST", objectKey, params, options, buffer, nil) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK, http.StatusAccepted}) -} - -// SignURL signs the URL. Users could access the object directly with this URL without getting the AK. -// -// objectKey the target object to sign. -// signURLConfig the configuration for the signed URL -// -// string returns the signed URL, when error is nil. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) SignURL(objectKey string, method HTTPMethod, expiredInSec int64, options ...Option) (string, error) { - err := CheckObjectNameEx(objectKey, isVerifyObjectStrict(bucket.GetConfig())) - if err != nil { - return "", err - } - - if expiredInSec < 0 { - return "", fmt.Errorf("invalid expires: %d, expires must bigger than 0", expiredInSec) - } - expiration := time.Now().Unix() + expiredInSec - - params, err := GetRawParams(options) - if err != nil { - return "", err - } - - headers := make(map[string]string) - err = handleOptions(headers, options) - if err != nil { - return "", err - } - - return bucket.Client.Conn.signURL(method, bucket.BucketName, objectKey, expiration, params, headers) -} - -// PutObjectWithURL uploads an object with the URL. If the object exists, it will be overwritten. -// PutObjectWithURL It will not generate minetype according to the key name. -// -// signedURL signed URL. -// reader io.Reader the read instance for reading the data for the upload. -// options the options for uploading the data. The valid options are CacheControl, ContentDisposition, ContentEncoding, -// -// Expires, ServerSideEncryption, ObjectACL and custom metadata. Check out the following link for details: -// https://www.alibabacloud.com/help/en/object-storage-service/latest/putobject -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) PutObjectWithURL(signedURL string, reader io.Reader, options ...Option) error { - resp, err := bucket.DoPutObjectWithURL(signedURL, reader, options) - if err != nil { - return err - } - defer resp.Body.Close() - - return err -} - -// PutObjectFromFileWithURL uploads an object from a local file with the signed URL. -// PutObjectFromFileWithURL It does not generate mimetype according to object key's name or the local file name. -// -// signedURL the signed URL. -// filePath local file path, such as dirfile.txt, for uploading. -// options options for uploading, same as the options in PutObject function. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) PutObjectFromFileWithURL(signedURL, filePath string, options ...Option) error { - fd, err := os.Open(filePath) - if err != nil { - return err - } - defer fd.Close() - - resp, err := bucket.DoPutObjectWithURL(signedURL, fd, options) - if err != nil { - return err - } - defer resp.Body.Close() - - return err -} - -// DoPutObjectWithURL is the actual API that does the upload with URL work(internal for SDK) -// -// signedURL the signed URL. -// reader io.Reader the read instance for getting the data to upload. -// options options for uploading. -// -// Response the response object which contains the HTTP response. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DoPutObjectWithURL(signedURL string, reader io.Reader, options []Option) (*Response, error) { - listener := GetProgressListener(options) - - params := map[string]interface{}{} - resp, err := bucket.doURL("PUT", signedURL, params, options, reader, listener) - if err != nil { - return nil, err - } - - if bucket.GetConfig().IsEnableCRC { - err = CheckCRC(resp, "DoPutObjectWithURL") - if err != nil { - return resp, err - } - } - - err = CheckRespCode(resp.StatusCode, []int{http.StatusOK}) - - return resp, err -} - -// GetObjectWithURL downloads the object and returns the reader instance, with the signed URL. -// -// signedURL the signed URL. -// options options for downloading the object. Valid options are IfModifiedSince, IfUnmodifiedSince, IfMatch, -// -// IfNoneMatch, AcceptEncoding. For more information, check out the following link: -// https://www.alibabacloud.com/help/en/object-storage-service/latest/getobject -// -// io.ReadCloser the reader object for getting the data from response. It needs be closed after the usage. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) GetObjectWithURL(signedURL string, options ...Option) (io.ReadCloser, error) { - result, err := bucket.DoGetObjectWithURL(signedURL, options) - if err != nil { - return nil, err - } - return result.Response, nil -} - -// GetObjectToFileWithURL downloads the object into a local file with the signed URL. -// -// signedURL the signed URL -// filePath the local file path to download to. -// options the options for downloading object. Check out the parameter options in function GetObject for the reference. -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) GetObjectToFileWithURL(signedURL, filePath string, options ...Option) error { - tempFilePath := filePath + TempFileSuffix - - // Get the object's content - result, err := bucket.DoGetObjectWithURL(signedURL, options) - if err != nil { - return err - } - defer result.Response.Close() - - // If the file does not exist, create one. If exists, then overwrite it. - fd, err := os.OpenFile(tempFilePath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, FilePermMode) - if err != nil { - return err - } - - // Save the data to the file. - _, err = io.Copy(fd, result.Response.Body) - fd.Close() - if err != nil { - return err - } - - // Compare the CRC value. If CRC values do not match, return error. - hasRange, _, _ := IsOptionSet(options, HTTPHeaderRange) - encodeOpt, _ := FindOption(options, HTTPHeaderAcceptEncoding, nil) - acceptEncoding := "" - if encodeOpt != nil { - acceptEncoding = encodeOpt.(string) - } - - if bucket.GetConfig().IsEnableCRC && !hasRange && acceptEncoding != "gzip" { - result.Response.ClientCRC = result.ClientCRC.Sum64() - err = CheckCRC(result.Response, "GetObjectToFileWithURL") - if err != nil { - os.Remove(tempFilePath) - return err - } - } - - return os.Rename(tempFilePath, filePath) -} - -// DoGetObjectWithURL is the actual API that downloads the file with the signed URL. -// -// signedURL the signed URL. -// options the options for getting object. Check out parameter options in GetObject for the reference. -// -// GetObjectResult the result object when the error is nil. -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) DoGetObjectWithURL(signedURL string, options []Option) (*GetObjectResult, error) { - params, _ := GetRawParams(options) - resp, err := bucket.doURL("GET", signedURL, params, options, nil, nil) - if err != nil { - return nil, err - } - - result := &GetObjectResult{ - Response: resp, - } - - // CRC - var crcCalc hash.Hash64 - hasRange, _, _ := IsOptionSet(options, HTTPHeaderRange) - if bucket.GetConfig().IsEnableCRC && !hasRange { - crcCalc = crc64.New(CrcTable()) - result.ServerCRC = resp.ServerCRC - result.ClientCRC = crcCalc - } - - // Progress - listener := GetProgressListener(options) - - contentLen, _ := strconv.ParseInt(resp.Headers.Get(HTTPHeaderContentLength), 10, 64) - resp.Body = TeeReader(resp.Body, crcCalc, contentLen, listener, nil) - - return result, nil -} - -// ProcessObject apply process on the specified image file. -// -// The supported process includes resize, rotate, crop, watermark, format, -// udf, customized style, etc. -// -// objectKey object key to process. -// process process string, such as "image/resize,w_100|sys/saveas,o_dGVzdC5qcGc,b_dGVzdA" -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) ProcessObject(objectKey string, process string, options ...Option) (ProcessObjectResult, error) { - var out ProcessObjectResult - params, _ := GetRawParams(options) - params["x-oss-process"] = nil - processData := fmt.Sprintf("%v=%v", "x-oss-process", process) - data := strings.NewReader(processData) - resp, err := bucket.do("POST", objectKey, params, nil, data, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = jsonUnmarshal(resp.Body, &out) - return out, err -} - -// AsyncProcessObject apply async process on the specified image file. -// -// The supported process includes resize, rotate, crop, watermark, format, -// udf, customized style, etc. -// -// objectKey object key to process. -// asyncProcess process string, such as "image/resize,w_100|sys/saveas,o_dGVzdC5qcGc,b_dGVzdA" -// -// error it's nil if no error, otherwise it's an error object. -func (bucket Bucket) AsyncProcessObject(objectKey string, asyncProcess string, options ...Option) (AsyncProcessObjectResult, error) { - var out AsyncProcessObjectResult - params, _ := GetRawParams(options) - params["x-oss-async-process"] = nil - processData := fmt.Sprintf("%v=%v", "x-oss-async-process", asyncProcess) - data := strings.NewReader(processData) - - resp, err := bucket.do("POST", objectKey, params, nil, data, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = jsonUnmarshal(resp.Body, &out) - return out, err -} - -// PutObjectTagging add tagging to object -// -// objectKey object key to add tagging -// tagging tagging to be added -// -// error nil if success, otherwise error -func (bucket Bucket) PutObjectTagging(objectKey string, tagging Tagging, options ...Option) error { - bs, err := xml.Marshal(tagging) - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - params, _ := GetRawParams(options) - params["tagging"] = nil - resp, err := bucket.do("PUT", objectKey, params, options, buffer, nil) - if err != nil { - return err - } - defer resp.Body.Close() - - return nil -} - -// -// GetObjectTagging get tagging of the object -// -// objectKey object key to get tagging -// -// Tagging -// error nil if success, otherwise error - -func (bucket Bucket) GetObjectTagging(objectKey string, options ...Option) (GetObjectTaggingResult, error) { - var out GetObjectTaggingResult - params, _ := GetRawParams(options) - params["tagging"] = nil - - resp, err := bucket.do("GET", objectKey, params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// DeleteObjectTagging delete object taggging -// -// objectKey object key to delete tagging -// -// error nil if success, otherwise error -func (bucket Bucket) DeleteObjectTagging(objectKey string, options ...Option) error { - params, _ := GetRawParams(options) - params["tagging"] = nil - resp, err := bucket.do("DELETE", objectKey, params, options, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -func (bucket Bucket) OptionsMethod(objectKey string, options ...Option) (http.Header, error) { - var out http.Header - resp, err := bucket.doInner("OPTIONS", objectKey, nil, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - out = resp.Headers - return out, nil -} - -// public -func (bucket Bucket) Do(method, objectName string, params map[string]interface{}, options []Option, - data io.Reader, listener ProgressListener) (*Response, error) { - return bucket.doInner(method, objectName, params, options, data, listener) -} - -// Private -func (bucket Bucket) doInner(method, objectName string, params map[string]interface{}, options []Option, - data io.Reader, listener ProgressListener) (*Response, error) { - headers := make(map[string]string) - err := handleOptions(headers, options) - if err != nil { - return nil, err - } - - err = CheckBucketName(bucket.BucketName) - if len(bucket.BucketName) > 0 && err != nil { - return nil, err - } - - ctxArg, _ := FindOption(options, contextArg, nil) - ctx, _ := ctxArg.(context.Context) - - resp, err := bucket.Client.Conn.DoWithContext(ctx, method, bucket.BucketName, objectName, - params, headers, data, 0, listener) - - // get response header - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil && resp != nil { - pRespHeader := respHeader.(*http.Header) - if resp != nil { - *pRespHeader = resp.Headers - } - } - - return resp, err -} - -// Private check object name before bucket.do -func (bucket Bucket) do(method, objectName string, params map[string]interface{}, options []Option, - data io.Reader, listener ProgressListener) (*Response, error) { - err := CheckObjectName(objectName) - if err != nil { - return nil, err - } - resp, err := bucket.doInner(method, objectName, params, options, data, listener) - return resp, err -} - -func (bucket Bucket) doURL(method HTTPMethod, signedURL string, params map[string]interface{}, options []Option, - data io.Reader, listener ProgressListener) (*Response, error) { - - headers := make(map[string]string) - err := handleOptions(headers, options) - if err != nil { - return nil, err - } - - ctxArg, _ := FindOption(options, contextArg, nil) - ctx, _ := ctxArg.(context.Context) - - resp, err := bucket.Client.Conn.DoURLWithContext(ctx, method, signedURL, headers, data, 0, listener) - - // get response header - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - pRespHeader := respHeader.(*http.Header) - if resp != nil { - *pRespHeader = resp.Headers - } - } - - return resp, err -} - -func (bucket Bucket) GetConfig() *Config { - return bucket.Client.Config -} - -func AddContentType(options []Option, keys ...string) []Option { - typ := TypeByExtension("") - for _, key := range keys { - typ = TypeByExtension(key) - if typ != "" { - break - } - } - - if typ == "" { - typ = "application/octet-stream" - } - - opts := []Option{ContentType(typ)} - opts = append(opts, options...) - - return opts -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/client.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/client.go deleted file mode 100644 index 5910bb3bfb..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/client.go +++ /dev/null @@ -1,2956 +0,0 @@ -// Package oss implements functions for access oss service. -// It has two main struct Client and Bucket. -package oss - -import ( - "bytes" - "encoding/xml" - "fmt" - "io" - "io/ioutil" - "log" - "net" - "net/http" - "strings" - "time" -) - -// Client SDK's entry point. It's for bucket related options such as create/delete/set bucket (such as set/get ACL/lifecycle/referer/logging/website). -// Object related operations are done by Bucket class. -// Users use oss.New to create Client instance. -// -type ( - // Client OSS client - Client struct { - Config *Config // OSS client configuration - Conn *Conn // Send HTTP request - HTTPClient *http.Client //http.Client to use - if nil will make its own - } - - // ClientOption client option such as UseCname, Timeout, SecurityToken. - ClientOption func(*Client) -) - -// New creates a new client. -// -// endpoint the OSS datacenter endpoint such as http://oss-cn-hangzhou.aliyuncs.com . -// accessKeyId access key Id. -// accessKeySecret access key secret. -// -// Client creates the new client instance, the returned value is valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func New(endpoint, accessKeyID, accessKeySecret string, options ...ClientOption) (*Client, error) { - // Configuration - config := getDefaultOssConfig() - config.Endpoint = endpoint - config.AccessKeyID = accessKeyID - config.AccessKeySecret = accessKeySecret - - // URL parse - url := &urlMaker{} - - // HTTP connect - conn := &Conn{config: config, url: url} - - // OSS client - client := &Client{ - Config: config, - Conn: conn, - } - - // Client options parse - for _, option := range options { - option(client) - } - - err := url.InitExt(config.Endpoint, config.IsCname, config.IsUseProxy, config.IsPathStyle) - if err != nil { - return nil, err - } - - if config.AuthVersion != AuthV1 && config.AuthVersion != AuthV2 && config.AuthVersion != AuthV4 { - return nil, fmt.Errorf("Init client Error, invalid Auth version: %v", config.AuthVersion) - } - - // Create HTTP connection - err = conn.init(config, url, client.HTTPClient) - - return client, err -} - -// SetRegion set region for client -// -// region the region, such as cn-hangzhou -func (client *Client) SetRegion(region string) { - client.Config.Region = region -} - -// SetCloudBoxId set CloudBoxId for client -// -// cloudBoxId the id of cloudBox -func (client *Client) SetCloudBoxId(cloudBoxId string) { - client.Config.CloudBoxId = cloudBoxId -} - -// SetProduct set Product type for client -// -// Product product type -func (client *Client) SetProduct(product string) { - client.Config.Product = product -} - -// Bucket gets the bucket instance. -// -// bucketName the bucket name. -// Bucket the bucket object, when error is nil. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) Bucket(bucketName string) (*Bucket, error) { - err := CheckBucketName(bucketName) - if err != nil { - return nil, err - } - - return &Bucket{ - client, - bucketName, - }, nil -} - -// CreateBucket creates a bucket. -// -// bucketName the bucket name, it's globably unique and immutable. The bucket name can only consist of lowercase letters, numbers and dash ('-'). -// It must start with lowercase letter or number and the length can only be between 3 and 255. -// options options for creating the bucket, with optional ACL. The ACL could be ACLPrivate, ACLPublicRead, and ACLPublicReadWrite. By default it's ACLPrivate. -// It could also be specified with StorageClass option, which supports StorageStandard, StorageIA(infrequent access), StorageArchive. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) CreateBucket(bucketName string, options ...Option) error { - headers := make(map[string]string) - handleOptions(headers, options) - - buffer := new(bytes.Buffer) - - var cbConfig createBucketConfiguration - cbConfig.StorageClass = StorageStandard - - isStorageSet, valStroage, _ := IsOptionSet(options, storageClass) - isRedundancySet, valRedundancy, _ := IsOptionSet(options, redundancyType) - isObjectHashFuncSet, valHashFunc, _ := IsOptionSet(options, objectHashFunc) - if isStorageSet { - cbConfig.StorageClass = valStroage.(StorageClassType) - } - - if isRedundancySet { - cbConfig.DataRedundancyType = valRedundancy.(DataRedundancyType) - } - - if isObjectHashFuncSet { - cbConfig.ObjectHashFunction = valHashFunc.(ObjecthashFuncType) - } - - bs, err := xml.Marshal(cbConfig) - if err != nil { - return err - } - buffer.Write(bs) - contentType := http.DetectContentType(buffer.Bytes()) - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// create bucket xml -func (client Client) CreateBucketXml(bucketName string, xmlBody string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlBody)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// ListBuckets lists buckets of the current account under the given endpoint, with optional filters. -// -// options specifies the filters such as Prefix, Marker and MaxKeys. Prefix is the bucket name's prefix filter. -// And marker makes sure the returned buckets' name are greater than it in lexicographic order. -// Maxkeys limits the max keys to return, and by default it's 100 and up to 1000. -// For the common usage scenario, please check out list_bucket.go in the sample. -// ListBucketsResponse the response object if error is nil. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) ListBuckets(options ...Option) (ListBucketsResult, error) { - var out ListBucketsResult - - params, err := GetRawParams(options) - if err != nil { - return out, err - } - - resp, err := client.do("GET", "", params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// ListCloudBoxes lists cloud boxes of the current account under the given endpoint, with optional filters. -// -// options specifies the filters such as Prefix, Marker and MaxKeys. Prefix is the bucket name's prefix filter. -// And marker makes sure the returned buckets' name are greater than it in lexicographic order. -// Maxkeys limits the max keys to return, and by default it's 100 and up to 1000. -// For the common usage scenario, please check out list_bucket.go in the sample. -// ListBucketsResponse the response object if error is nil. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) ListCloudBoxes(options ...Option) (ListCloudBoxResult, error) { - var out ListCloudBoxResult - - params, err := GetRawParams(options) - if err != nil { - return out, err - } - - params["cloudboxes"] = nil - - resp, err := client.do("GET", "", params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// IsBucketExist checks if the bucket exists -// -// bucketName the bucket name. -// -// bool true if it exists, and it's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) IsBucketExist(bucketName string) (bool, error) { - listRes, err := client.ListBuckets(Prefix(bucketName), MaxKeys(1)) - if err != nil { - return false, err - } - - if len(listRes.Buckets) == 1 && listRes.Buckets[0].Name == bucketName { - return true, nil - } - return false, nil -} - -// DeleteBucket deletes the bucket. Only empty bucket can be deleted (no object and parts). -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucket(bucketName string, options ...Option) error { - params := map[string]interface{}{} - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// GetBucketLocation gets the bucket location. -// -// Checks out the following link for more information : -// https://www.alibabacloud.com/help/en/object-storage-service/latest/getbucketlocation -// -// bucketName the bucket name -// -// string bucket's datacenter location -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketLocation(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["location"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - var LocationConstraint string - err = xmlUnmarshal(resp.Body, &LocationConstraint) - return LocationConstraint, err -} - -// SetBucketACL sets bucket's ACL. -// -// bucketName the bucket name -// bucketAcl the bucket ACL: ACLPrivate, ACLPublicRead and ACLPublicReadWrite. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketACL(bucketName string, bucketACL ACLType, options ...Option) error { - headers := map[string]string{HTTPHeaderOssACL: string(bucketACL)} - params := map[string]interface{}{} - params["acl"] = nil - resp, err := client.do("PUT", bucketName, params, headers, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketACL gets the bucket ACL. -// -// bucketName the bucket name. -// -// GetBucketAclResponse the result object, and it's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketACL(bucketName string, options ...Option) (GetBucketACLResult, error) { - var out GetBucketACLResult - params := map[string]interface{}{} - params["acl"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// SetBucketLifecycle sets the bucket's lifecycle. -// -// For more information, checks out following link: -// https://www.alibabacloud.com/help/en/object-storage-service/latest/putbucketlifecycle -// -// bucketName the bucket name. -// rules the lifecycle rules. There're two kind of rules: absolute time expiration and relative time expiration in days and day/month/year respectively. -// Check out sample/bucket_lifecycle.go for more details. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketLifecycle(bucketName string, rules []LifecycleRule, options ...Option) error { - err := verifyLifecycleRules(rules) - if err != nil { - return err - } - lifecycleCfg := LifecycleConfiguration{Rules: rules} - bs, err := xml.Marshal(lifecycleCfg) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["lifecycle"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// SetBucketLifecycleXml sets the bucket's lifecycle rule from xml config -func (client Client) SetBucketLifecycleXml(bucketName string, xmlBody string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlBody)) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["lifecycle"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// DeleteBucketLifecycle deletes the bucket's lifecycle. -// -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketLifecycle(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["lifecycle"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// GetBucketLifecycle gets the bucket's lifecycle settings. -// -// bucketName the bucket name. -// -// GetBucketLifecycleResponse the result object upon successful request. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketLifecycle(bucketName string, options ...Option) (GetBucketLifecycleResult, error) { - var out GetBucketLifecycleResult - params := map[string]interface{}{} - params["lifecycle"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - - // NonVersionTransition is not suggested to use - // to keep compatible - for k, rule := range out.Rules { - if len(rule.NonVersionTransitions) > 0 { - out.Rules[k].NonVersionTransition = &(out.Rules[k].NonVersionTransitions[0]) - } - } - return out, err -} - -func (client Client) GetBucketLifecycleXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["lifecycle"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// SetBucketReferer sets the bucket's referer whitelist and the flag if allowing empty referrer. -// -// To avoid stealing link on OSS data, OSS supports the HTTP referrer header. A whitelist referrer could be set either by API or web console, as well as -// the allowing empty referrer flag. Note that this applies to requests from web browser only. -// For example, for a bucket os-example and its referrer http://www.aliyun.com, all requests from this URL could access the bucket. -// For more information, please check out this link : -// https://www.alibabacloud.com/help/en/object-storage-service/latest/putbucketreferer -// -// bucketName the bucket name. -// referrers the referrer white list. A bucket could have a referrer list and each referrer supports one '*' and multiple '?' as wildcards. -// The sample could be found in sample/bucket_referer.go -// allowEmptyReferer the flag of allowing empty referrer. By default it's true. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketReferer(bucketName string, referrers []string, allowEmptyReferer bool, options ...Option) error { - rxml := RefererXML{} - rxml.AllowEmptyReferer = allowEmptyReferer - if referrers == nil { - rxml.RefererList = append(rxml.RefererList, "") - } else { - for _, referrer := range referrers { - rxml.RefererList = append(rxml.RefererList, referrer) - } - } - - bs, err := xml.Marshal(rxml) - if err != nil { - return err - } - - return client.PutBucketRefererXml(bucketName, string(bs), options...) -} - -// SetBucketRefererV2 gets the bucket's referer white list. -// -// setBucketReferer SetBucketReferer bucket referer config in struct format. -// -// GetBucketRefererResponse the result object upon successful request. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketRefererV2(bucketName string, setBucketReferer RefererXML, options ...Option) error { - bs, err := xml.Marshal(setBucketReferer) - if err != nil { - return err - } - return client.PutBucketRefererXml(bucketName, string(bs), options...) -} - -// PutBucketRefererXml set bucket's style -// bucketName the bucket name. -// xmlData the style in xml format -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketRefererXml(bucketName, xmlData string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlData)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["referer"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketReferer gets the bucket's referrer white list. -// bucketName the bucket name. -// GetBucketRefererResult the result object upon successful request. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketReferer(bucketName string, options ...Option) (GetBucketRefererResult, error) { - var out GetBucketRefererResult - body, err := client.GetBucketRefererXml(bucketName, options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// GetBucketRefererXml gets the bucket's referrer white list. -// bucketName the bucket name. -// GetBucketRefererResponse the bucket referer config result in xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketRefererXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["referer"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - return string(body), err -} - -// SetBucketLogging sets the bucket logging settings. -// -// OSS could automatically store the access log. Only the bucket owner could enable the logging. -// Once enabled, OSS would save all the access log into hourly log files in a specified bucket. -// For more information, please check out https://www.alibabacloud.com/help/en/object-storage-service/latest/putbucketlogging -// -// bucketName bucket name to enable the log. -// targetBucket the target bucket name to store the log files. -// targetPrefix the log files' prefix. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketLogging(bucketName, targetBucket, targetPrefix string, - isEnable bool, options ...Option) error { - var err error - var bs []byte - if isEnable { - lxml := LoggingXML{} - lxml.LoggingEnabled.TargetBucket = targetBucket - lxml.LoggingEnabled.TargetPrefix = targetPrefix - bs, err = xml.Marshal(lxml) - } else { - lxml := loggingXMLEmpty{} - bs, err = xml.Marshal(lxml) - } - - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["logging"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// DeleteBucketLogging deletes the logging configuration to disable the logging on the bucket. -// -// bucketName the bucket name to disable the logging. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketLogging(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["logging"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// GetBucketLogging gets the bucket's logging settings -// -// bucketName the bucket name -// GetBucketLoggingResponse the result object upon successful request. It's only valid when error is nil. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketLogging(bucketName string, options ...Option) (GetBucketLoggingResult, error) { - var out GetBucketLoggingResult - params := map[string]interface{}{} - params["logging"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// SetBucketWebsite sets the bucket's static website's index and error page. -// -// OSS supports static web site hosting for the bucket data. When the bucket is enabled with that, you can access the file in the bucket like the way to access a static website. -// For more information, please check out: https://www.alibabacloud.com/help/en/object-storage-service/latest/putbucketwebsite -// -// bucketName the bucket name to enable static web site. -// indexDocument index page. -// errorDocument error page. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketWebsite(bucketName, indexDocument, errorDocument string, options ...Option) error { - wxml := WebsiteXML{} - wxml.IndexDocument.Suffix = indexDocument - wxml.ErrorDocument.Key = errorDocument - - bs, err := xml.Marshal(wxml) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["website"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// SetBucketWebsiteDetail sets the bucket's static website's detail -// -// OSS supports static web site hosting for the bucket data. When the bucket is enabled with that, you can access the file in the bucket like the way to access a static website. -// For more information, please check out: https://www.alibabacloud.com/help/en/object-storage-service/latest/putbucketwebsite -// -// bucketName the bucket name to enable static web site. -// -// wxml the website's detail -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketWebsiteDetail(bucketName string, wxml WebsiteXML, options ...Option) error { - bs, err := xml.Marshal(wxml) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["website"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// SetBucketWebsiteXml sets the bucket's static website's rule -// -// OSS supports static web site hosting for the bucket data. When the bucket is enabled with that, you can access the file in the bucket like the way to access a static website. -// For more information, please check out: https://www.alibabacloud.com/help/en/object-storage-service/latest/putbucketwebsite -// -// bucketName the bucket name to enable static web site. -// -// wxml the website's detail -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketWebsiteXml(bucketName string, webXml string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(webXml)) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["website"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// DeleteBucketWebsite deletes the bucket's static web site settings. -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketWebsite(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["website"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// OpenMetaQuery Enables the metadata management feature for a bucket. -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) OpenMetaQuery(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["metaQuery"] = nil - params["comp"] = "add" - resp, err := client.do("POST", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetMetaQueryStatus Queries the information about the metadata index library of a bucket. -// -// bucketName the bucket name -// -// GetMetaQueryStatusResult the result object upon successful request. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetMetaQueryStatus(bucketName string, options ...Option) (GetMetaQueryStatusResult, error) { - var out GetMetaQueryStatusResult - params := map[string]interface{}{} - params["metaQuery"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// DoMetaQuery Queries the objects that meet specified conditions and lists the information about objects based on specified fields and sorting methods. -// -// bucketName the bucket name -// -// metaQuery the option of query -// -// DoMetaQueryResult the result object upon successful request. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DoMetaQuery(bucketName string, metaQuery MetaQuery, options ...Option) (DoMetaQueryResult, error) { - var out DoMetaQueryResult - bs, err := xml.Marshal(metaQuery) - if err != nil { - return out, err - } - out, err = client.DoMetaQueryXml(bucketName, string(bs), options...) - return out, err -} - -// DoMetaQueryXml Queries the objects that meet specified conditions and lists the information about objects based on specified fields and sorting methods. -// -// bucketName the bucket name -// -// metaQuery the option of query -// -// DoMetaQueryResult the result object upon successful request. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DoMetaQueryXml(bucketName string, metaQueryXml string, options ...Option) (DoMetaQueryResult, error) { - var out DoMetaQueryResult - buffer := new(bytes.Buffer) - buffer.Write([]byte(metaQueryXml)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["metaQuery"] = nil - params["comp"] = "query" - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// CloseMetaQuery Disables the metadata management feature for a bucket. -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) CloseMetaQuery(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["metaQuery"] = nil - params["comp"] = "delete" - resp, err := client.do("POST", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketWebsite gets the bucket's default page (index page) and the error page. -// -// bucketName the bucket name -// -// GetBucketWebsiteResponse the result object upon successful request. It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketWebsite(bucketName string, options ...Option) (GetBucketWebsiteResult, error) { - var out GetBucketWebsiteResult - params := map[string]interface{}{} - params["website"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// GetBucketWebsiteXml gets the bucket's website config xml config. -// -// bucketName the bucket name -// -// string the bucket's xml config, It's only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketWebsiteXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["website"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - body, err := ioutil.ReadAll(resp.Body) - - out := string(body) - return out, err -} - -// SetBucketCORS sets the bucket's CORS rules -// -// For more information, please check out https://help.aliyun.com/document_detail/oss/user_guide/security_management/cors.html -// -// bucketName the bucket name -// corsRules the CORS rules to set. The related sample code is in sample/bucket_cors.go. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketCORS(bucketName string, corsRules []CORSRule, options ...Option) error { - corsxml := CORSXML{} - for _, v := range corsRules { - cr := CORSRule{} - cr.AllowedMethod = v.AllowedMethod - cr.AllowedOrigin = v.AllowedOrigin - cr.AllowedHeader = v.AllowedHeader - cr.ExposeHeader = v.ExposeHeader - cr.MaxAgeSeconds = v.MaxAgeSeconds - corsxml.CORSRules = append(corsxml.CORSRules, cr) - } - - bs, err := xml.Marshal(corsxml) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["cors"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// SetBucketCORSV2 sets the bucket's CORS rules -// -// bucketName the bucket name -// putBucketCORS the CORS rules to set. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketCORSV2(bucketName string, putBucketCORS PutBucketCORS, options ...Option) error { - bs, err := xml.Marshal(putBucketCORS) - if err != nil { - return err - } - err = client.SetBucketCORSXml(bucketName, string(bs), options...) - return err -} - -func (client Client) SetBucketCORSXml(bucketName string, xmlBody string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlBody)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["cors"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// DeleteBucketCORS deletes the bucket's static website settings. -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketCORS(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["cors"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// GetBucketCORS gets the bucket's CORS settings. -// -// bucketName the bucket name. -// GetBucketCORSResult the result object upon successful request. It's only valid when error is nil. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketCORS(bucketName string, options ...Option) (GetBucketCORSResult, error) { - var out GetBucketCORSResult - params := map[string]interface{}{} - params["cors"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -func (client Client) GetBucketCORSXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["cors"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// GetBucketInfo gets the bucket information. -// -// bucketName the bucket name. -// GetBucketInfoResult the result object upon successful request. It's only valid when error is nil. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketInfo(bucketName string, options ...Option) (GetBucketInfoResult, error) { - var out GetBucketInfoResult - params := map[string]interface{}{} - params["bucketInfo"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - - // convert None to "" - if err == nil { - if out.BucketInfo.SseRule.KMSMasterKeyID == "None" { - out.BucketInfo.SseRule.KMSMasterKeyID = "" - } - - if out.BucketInfo.SseRule.SSEAlgorithm == "None" { - out.BucketInfo.SseRule.SSEAlgorithm = "" - } - - if out.BucketInfo.SseRule.KMSDataEncryption == "None" { - out.BucketInfo.SseRule.KMSDataEncryption = "" - } - } - return out, err -} - -// SetBucketVersioning set bucket versioning:Enabled、Suspended -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) SetBucketVersioning(bucketName string, versioningConfig VersioningConfig, options ...Option) error { - var err error - var bs []byte - bs, err = xml.Marshal(versioningConfig) - - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["versioning"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketVersioning get bucket versioning status:Enabled、Suspended -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketVersioning(bucketName string, options ...Option) (GetBucketVersioningResult, error) { - var out GetBucketVersioningResult - params := map[string]interface{}{} - params["versioning"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// SetBucketEncryption set bucket encryption config -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) SetBucketEncryption(bucketName string, encryptionRule ServerEncryptionRule, options ...Option) error { - var err error - var bs []byte - bs, err = xml.Marshal(encryptionRule) - - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["encryption"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketEncryption get bucket encryption -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketEncryption(bucketName string, options ...Option) (GetBucketEncryptionResult, error) { - var out GetBucketEncryptionResult - params := map[string]interface{}{} - params["encryption"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// DeleteBucketEncryption delete bucket encryption config -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error bucket -func (client Client) DeleteBucketEncryption(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["encryption"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// -// SetBucketTagging add tagging to bucket -// bucketName name of bucket -// tagging tagging to be added -// error nil if success, otherwise error -func (client Client) SetBucketTagging(bucketName string, tagging Tagging, options ...Option) error { - var err error - var bs []byte - bs, err = xml.Marshal(tagging) - - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["tagging"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketTagging get tagging of the bucket -// bucketName name of bucket -// error nil if success, otherwise error -func (client Client) GetBucketTagging(bucketName string, options ...Option) (GetBucketTaggingResult, error) { - var out GetBucketTaggingResult - params := map[string]interface{}{} - params["tagging"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// -// DeleteBucketTagging delete bucket tagging -// bucketName name of bucket -// error nil if success, otherwise error -// -func (client Client) DeleteBucketTagging(bucketName string, options ...Option) error { - key, _ := FindOption(options, "tagging", nil) - params := map[string]interface{}{} - if key == nil { - params["tagging"] = nil - } else { - params["tagging"] = key.(string) - } - - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// GetBucketStat get bucket stat -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketStat(bucketName string, options ...Option) (GetBucketStatResult, error) { - var out GetBucketStatResult - params := map[string]interface{}{} - params["stat"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// GetBucketPolicy API operation for Object Storage Service. -// -// Get the policy from the bucket. -// -// bucketName the bucket name. -// -// string return the bucket's policy, and it's only valid when error is nil. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketPolicy(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["policy"] = nil - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - body, err := ioutil.ReadAll(resp.Body) - - out := string(body) - return out, err -} - -// SetBucketPolicy API operation for Object Storage Service. -// -// Set the policy from the bucket. -// -// bucketName the bucket name. -// -// policy the bucket policy. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketPolicy(bucketName string, policy string, options ...Option) error { - params := map[string]interface{}{} - params["policy"] = nil - - buffer := strings.NewReader(policy) - - resp, err := client.do("PUT", bucketName, params, nil, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// DeleteBucketPolicy API operation for Object Storage Service. -// -// Deletes the policy from the bucket. -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketPolicy(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["policy"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// SetBucketRequestPayment API operation for Object Storage Service. -// -// Set the requestPayment of bucket -// -// bucketName the bucket name. -// -// paymentConfig the payment configuration -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketRequestPayment(bucketName string, paymentConfig RequestPaymentConfiguration, options ...Option) error { - params := map[string]interface{}{} - params["requestPayment"] = nil - - var bs []byte - bs, err := xml.Marshal(paymentConfig) - - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketRequestPayment API operation for Object Storage Service. -// -// Get bucket requestPayment -// -// bucketName the bucket name. -// -// RequestPaymentConfiguration the payment configuration -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketRequestPayment(bucketName string, options ...Option) (RequestPaymentConfiguration, error) { - var out RequestPaymentConfiguration - params := map[string]interface{}{} - params["requestPayment"] = nil - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// GetUserQoSInfo API operation for Object Storage Service. -// -// Get user qos. -// -// UserQoSConfiguration the User Qos and range Information. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetUserQoSInfo(options ...Option) (UserQoSConfiguration, error) { - var out UserQoSConfiguration - params := map[string]interface{}{} - params["qosInfo"] = nil - - resp, err := client.do("GET", "", params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// SetBucketQoSInfo API operation for Object Storage Service. -// -// Set Bucket Qos information. -// -// bucketName the bucket name. -// -// qosConf the qos configuration. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketQoSInfo(bucketName string, qosConf BucketQoSConfiguration, options ...Option) error { - params := map[string]interface{}{} - params["qosInfo"] = nil - - var bs []byte - bs, err := xml.Marshal(qosConf) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentTpye := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentTpye - - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketQosInfo API operation for Object Storage Service. -// -// Get Bucket Qos information. -// -// bucketName the bucket name. -// -// BucketQoSConfiguration the return qos configuration. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketQosInfo(bucketName string, options ...Option) (BucketQoSConfiguration, error) { - var out BucketQoSConfiguration - params := map[string]interface{}{} - params["qosInfo"] = nil - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// DeleteBucketQosInfo API operation for Object Storage Service. -// -// Delete Bucket QoS information. -// -// bucketName the bucket name. -// -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketQosInfo(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["qosInfo"] = nil - - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// SetBucketInventory API operation for Object Storage Service -// -// Set the Bucket inventory. -// -// bucketName the bucket name. -// -// inventoryConfig the inventory configuration. -// -// error it's nil if no error, otherwise it's an error. -// -func (client Client) SetBucketInventory(bucketName string, inventoryConfig InventoryConfiguration, options ...Option) error { - params := map[string]interface{}{} - params["inventoryId"] = inventoryConfig.Id - params["inventory"] = nil - - var bs []byte - bs, err := xml.Marshal(inventoryConfig) - - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - - if err != nil { - return err - } - - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// SetBucketInventoryXml API operation for Object Storage Service -// -// Set the Bucket inventory -// -// bucketName the bucket name. -// -// xmlBody the inventory configuration. -// -// error it's nil if no error, otherwise it's an error. -// -func (client Client) SetBucketInventoryXml(bucketName string, xmlBody string, options ...Option) error { - var inventoryConfig InventoryConfiguration - err := xml.Unmarshal([]byte(xmlBody), &inventoryConfig) - if err != nil { - return err - } - - if inventoryConfig.Id == "" { - return fmt.Errorf("inventory id is empty in xml") - } - - params := map[string]interface{}{} - params["inventoryId"] = inventoryConfig.Id - params["inventory"] = nil - - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlBody)) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketInventory API operation for Object Storage Service -// -// Get the Bucket inventory. -// -// bucketName tht bucket name. -// -// strInventoryId the inventory id. -// -// InventoryConfiguration the inventory configuration. -// -// error it's nil if no error, otherwise it's an error. -// -func (client Client) GetBucketInventory(bucketName string, strInventoryId string, options ...Option) (InventoryConfiguration, error) { - var out InventoryConfiguration - params := map[string]interface{}{} - params["inventory"] = nil - params["inventoryId"] = strInventoryId - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// GetBucketInventoryXml API operation for Object Storage Service -// -// Get the Bucket inventory. -// -// bucketName tht bucket name. -// -// strInventoryId the inventory id. -// -// InventoryConfiguration the inventory configuration. -// -// error it's nil if no error, otherwise it's an error. -// -func (client Client) GetBucketInventoryXml(bucketName string, strInventoryId string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["inventory"] = nil - params["inventoryId"] = strInventoryId - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// ListBucketInventory API operation for Object Storage Service -// -// List the Bucket inventory. -// -// bucketName tht bucket name. -// -// continuationToken the users token. -// -// ListInventoryConfigurationsResult list all inventory configuration by . -// -// error it's nil if no error, otherwise it's an error. -// -func (client Client) ListBucketInventory(bucketName, continuationToken string, options ...Option) (ListInventoryConfigurationsResult, error) { - var out ListInventoryConfigurationsResult - params := map[string]interface{}{} - params["inventory"] = nil - if continuationToken == "" { - params["continuation-token"] = nil - } else { - params["continuation-token"] = continuationToken - } - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// ListBucketInventoryXml API operation for Object Storage Service -// -// List the Bucket inventory. -// -// bucketName tht bucket name. -// -// continuationToken the users token. -// -// ListInventoryConfigurationsResult list all inventory configuration by . -// -// error it's nil if no error, otherwise it's an error. -// -func (client Client) ListBucketInventoryXml(bucketName, continuationToken string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["inventory"] = nil - if continuationToken == "" { - params["continuation-token"] = nil - } else { - params["continuation-token"] = continuationToken - } - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// DeleteBucketInventory API operation for Object Storage Service. -// -// Delete Bucket inventory information. -// -// bucketName tht bucket name. -// -// strInventoryId the inventory id. -// -// error it's nil if no error, otherwise it's an error. -// -func (client Client) DeleteBucketInventory(bucketName, strInventoryId string, options ...Option) error { - params := map[string]interface{}{} - params["inventory"] = nil - params["inventoryId"] = strInventoryId - - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// SetBucketAsyncTask API operation for set async fetch task -// -// bucketName tht bucket name. -// -// asynConf configruation -// -// error it's nil if success, otherwise it's an error. -func (client Client) SetBucketAsyncTask(bucketName string, asynConf AsyncFetchTaskConfiguration, options ...Option) (AsyncFetchTaskResult, error) { - var out AsyncFetchTaskResult - params := map[string]interface{}{} - params["asyncFetch"] = nil - - var bs []byte - bs, err := xml.Marshal(asynConf) - - if err != nil { - return out, err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - - if err != nil { - return out, err - } - - defer resp.Body.Close() - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// GetBucketAsyncTask API operation for set async fetch task -// -// bucketName tht bucket name. -// -// taskid returned by SetBucketAsyncTask -// -// error it's nil if success, otherwise it's an error. -func (client Client) GetBucketAsyncTask(bucketName string, taskID string, options ...Option) (AsynFetchTaskInfo, error) { - var out AsynFetchTaskInfo - params := map[string]interface{}{} - params["asyncFetch"] = nil - - headers := make(map[string]string) - headers[HTTPHeaderOssTaskID] = taskID - resp, err := client.do("GET", bucketName, params, headers, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// InitiateBucketWorm creates bucket worm Configuration -// bucketName the bucket name. -// retentionDays the retention period in days -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) InitiateBucketWorm(bucketName string, retentionDays int, options ...Option) (string, error) { - var initiateWormConf InitiateWormConfiguration - initiateWormConf.RetentionPeriodInDays = retentionDays - - var respHeader http.Header - isOptSet, _, _ := IsOptionSet(options, responseHeader) - if !isOptSet { - options = append(options, GetResponseHeader(&respHeader)) - } - - bs, err := xml.Marshal(initiateWormConf) - if err != nil { - return "", err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["worm"] = nil - - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - respOpt, _ := FindOption(options, responseHeader, nil) - wormID := "" - err = CheckRespCode(resp.StatusCode, []int{http.StatusOK}) - if err == nil && respOpt != nil { - wormID = (respOpt.(*http.Header)).Get("x-oss-worm-id") - } - return wormID, err -} - -// AbortBucketWorm delete bucket worm Configuration -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) AbortBucketWorm(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["worm"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// CompleteBucketWorm complete bucket worm Configuration -// bucketName the bucket name. -// wormID the worm id -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) CompleteBucketWorm(bucketName string, wormID string, options ...Option) error { - params := map[string]interface{}{} - params["wormId"] = wormID - resp, err := client.do("POST", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// ExtendBucketWorm exetend bucket worm Configuration -// bucketName the bucket name. -// retentionDays the retention period in days -// wormID the worm id -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) ExtendBucketWorm(bucketName string, retentionDays int, wormID string, options ...Option) error { - var extendWormConf ExtendWormConfiguration - extendWormConf.RetentionPeriodInDays = retentionDays - - bs, err := xml.Marshal(extendWormConf) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["wormId"] = wormID - params["wormExtend"] = nil - - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketWorm get bucket worm Configuration -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketWorm(bucketName string, options ...Option) (WormConfiguration, error) { - var out WormConfiguration - params := map[string]interface{}{} - params["worm"] = nil - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// SetBucketTransferAcc set bucket transfer acceleration configuration -// bucketName the bucket name. -// accConf bucket transfer acceleration configuration -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) SetBucketTransferAcc(bucketName string, accConf TransferAccConfiguration, options ...Option) error { - bs, err := xml.Marshal(accConf) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := make(map[string]string) - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["transferAcceleration"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketTransferAcc get bucket transfer acceleration configuration -// bucketName the bucket name. -// accConf bucket transfer acceleration configuration -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketTransferAcc(bucketName string, options ...Option) (TransferAccConfiguration, error) { - var out TransferAccConfiguration - params := map[string]interface{}{} - params["transferAcceleration"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// DeleteBucketTransferAcc delete bucket transfer acceleration configuration -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketTransferAcc(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["transferAcceleration"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// PutBucketReplication put bucket replication configuration -// bucketName the bucket name. -// xmlBody the replication configuration. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) PutBucketReplication(bucketName string, xmlBody string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlBody)) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["replication"] = nil - params["comp"] = "add" - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// PutBucketRTC put bucket replication rtc -// bucketName the bucket name. -// rtc the bucket rtc config. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) PutBucketRTC(bucketName string, rtc PutBucketRTC, options ...Option) error { - bs, err := xml.Marshal(rtc) - if err != nil { - return err - } - err = client.PutBucketRTCXml(bucketName, string(bs), options...) - return err -} - -// PutBucketRTCXml put bucket rtc configuration -// bucketName the bucket name. -// xmlBody the rtc configuration in xml format. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) PutBucketRTCXml(bucketName string, xmlBody string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlBody)) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["rtc"] = nil - resp, err := client.do("PUT", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketReplication get bucket replication configuration -// bucketName the bucket name. -// string the replication configuration. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketReplication(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["replication"] = nil - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - data, err := ioutil.ReadAll(resp.Body) - if err != nil { - return "", err - } - return string(data), err -} - -// DeleteBucketReplication delete bucket replication configuration -// bucketName the bucket name. -// ruleId the ID of the replication configuration. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) DeleteBucketReplication(bucketName string, ruleId string, options ...Option) error { - replicationxml := ReplicationXML{} - replicationxml.ID = ruleId - - bs, err := xml.Marshal(replicationxml) - if err != nil { - return err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - params := map[string]interface{}{} - params["replication"] = nil - params["comp"] = "delete" - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketReplicationLocation get the locations of the target bucket that can be copied to -// bucketName the bucket name. -// string the locations of the target bucket that can be copied to. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketReplicationLocation(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["replicationLocation"] = nil - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - data, err := ioutil.ReadAll(resp.Body) - if err != nil { - return "", err - } - return string(data), err -} - -// GetBucketReplicationProgress get the replication progress of bucket -// bucketName the bucket name. -// ruleId the ID of the replication configuration. -// string the replication progress of bucket. -// error it's nil if no error, otherwise it's an error object. -// -func (client Client) GetBucketReplicationProgress(bucketName string, ruleId string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["replicationProgress"] = nil - if ruleId != "" { - params["rule-id"] = ruleId - } - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - data, err := ioutil.ReadAll(resp.Body) - if err != nil { - return "", err - } - return string(data), err -} - -// GetBucketAccessMonitor get bucket's access monitor config -// bucketName the bucket name. -// GetBucketAccessMonitorResult the access monitor configuration result of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketAccessMonitor(bucketName string, options ...Option) (GetBucketAccessMonitorResult, error) { - var out GetBucketAccessMonitorResult - body, err := client.GetBucketAccessMonitorXml(bucketName, options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// GetBucketAccessMonitorXml get bucket's access monitor config -// bucketName the bucket name. -// string the access monitor configuration result of bucket xml foramt. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketAccessMonitorXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["accessmonitor"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// PutBucketAccessMonitor get bucket's access monitor config -// bucketName the bucket name. -// accessMonitor the access monitor configuration of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketAccessMonitor(bucketName string, accessMonitor PutBucketAccessMonitor, options ...Option) error { - bs, err := xml.Marshal(accessMonitor) - if err != nil { - return err - } - err = client.PutBucketAccessMonitorXml(bucketName, string(bs), options...) - return err -} - -// PutBucketAccessMonitorXml get bucket's access monitor config -// bucketName the bucket name. -// xmlData the access monitor configuration in xml foramt -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketAccessMonitorXml(bucketName string, xmlData string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlData)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - params := map[string]interface{}{} - params["accessmonitor"] = nil - resp, err := client.do("PUT", bucketName, params, nil, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// ListBucketCname list bucket's binding cname -// bucketName the bucket name. -// string the xml configuration of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) ListBucketCname(bucketName string, options ...Option) (ListBucketCnameResult, error) { - var out ListBucketCnameResult - body, err := client.GetBucketCname(bucketName, options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// GetBucketCname get bucket's binding cname -// bucketName the bucket name. -// string the xml configuration of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketCname(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["cname"] = nil - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - - data, err := ioutil.ReadAll(resp.Body) - if err != nil { - return "", err - } - return string(data), err -} - -// CreateBucketCnameToken create a token for the cname. -// bucketName the bucket name. -// cname a custom domain name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) CreateBucketCnameToken(bucketName string, cname string, options ...Option) (CreateBucketCnameTokenResult, error) { - var out CreateBucketCnameTokenResult - params := map[string]interface{}{} - params["cname"] = nil - params["comp"] = "token" - - rxml := CnameConfigurationXML{} - rxml.Domain = cname - - bs, err := xml.Marshal(rxml) - if err != nil { - return out, err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// GetBucketCnameToken get a token for the cname -// bucketName the bucket name. -// cname a custom domain name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketCnameToken(bucketName string, cname string, options ...Option) (GetBucketCnameTokenResult, error) { - var out GetBucketCnameTokenResult - params := map[string]interface{}{} - params["cname"] = cname - params["comp"] = "token" - - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// PutBucketCnameXml map a custom domain name to a bucket -// bucketName the bucket name. -// xmlBody the cname configuration in xml foramt -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketCnameXml(bucketName string, xmlBody string, options ...Option) error { - params := map[string]interface{}{} - params["cname"] = nil - params["comp"] = "add" - - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlBody)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// PutBucketCname map a custom domain name to a bucket -// bucketName the bucket name. -// cname a custom domain name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketCname(bucketName string, cname string, options ...Option) error { - rxml := CnameConfigurationXML{} - rxml.Domain = cname - bs, err := xml.Marshal(rxml) - if err != nil { - return err - } - return client.PutBucketCnameXml(bucketName, string(bs), options...) -} - -// PutBucketCnameWithCertificate map a custom domain name to a bucket -// bucketName the bucket name. -// PutBucketCname the bucket cname config in struct format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketCnameWithCertificate(bucketName string, putBucketCname PutBucketCname, options ...Option) error { - bs, err := xml.Marshal(putBucketCname) - if err != nil { - return err - } - return client.PutBucketCnameXml(bucketName, string(bs), options...) -} - -// DeleteBucketCname remove the mapping of the custom domain name from a bucket. -// bucketName the bucket name. -// cname a custom domain name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) DeleteBucketCname(bucketName string, cname string, options ...Option) error { - params := map[string]interface{}{} - params["cname"] = nil - params["comp"] = "delete" - - rxml := CnameConfigurationXML{} - rxml.Domain = cname - - bs, err := xml.Marshal(rxml) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - - resp, err := client.do("POST", bucketName, params, headers, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// PutBucketResourceGroup set bucket's resource group -// bucketName the bucket name. -// resourceGroup the resource group configuration of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketResourceGroup(bucketName string, resourceGroup PutBucketResourceGroup, options ...Option) error { - bs, err := xml.Marshal(resourceGroup) - if err != nil { - return err - } - err = client.PutBucketResourceGroupXml(bucketName, string(bs), options...) - return err -} - -// PutBucketResourceGroupXml set bucket's resource group -// bucketName the bucket name. -// xmlData the resource group in xml format -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketResourceGroupXml(bucketName string, xmlData string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlData)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - params := map[string]interface{}{} - params["resourceGroup"] = nil - resp, err := client.do("PUT", bucketName, params, nil, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketResourceGroup get bucket's resource group -// bucketName the bucket name. -// GetBucketResourceGroupResult the resource group configuration result of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketResourceGroup(bucketName string, options ...Option) (GetBucketResourceGroupResult, error) { - var out GetBucketResourceGroupResult - body, err := client.GetBucketResourceGroupXml(bucketName, options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// GetBucketResourceGroupXml get bucket's resource group -// bucketName the bucket name. -// string the resource group result of bucket xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketResourceGroupXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["resourceGroup"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// PutBucketStyle set bucket's style -// bucketName the bucket name. -// styleContent the style content. -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketStyle(bucketName, styleName string, styleContent string, options ...Option) error { - bs := fmt.Sprintf("", styleContent) - err := client.PutBucketStyleXml(bucketName, styleName, bs, options...) - return err -} - -// PutBucketStyleXml set bucket's style -// bucketName the bucket name. -// styleName the style name. -// xmlData the style in xml format -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketStyleXml(bucketName, styleName, xmlData string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlData)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - params := map[string]interface{}{} - params["style"] = nil - params["styleName"] = styleName - resp, err := client.do("PUT", bucketName, params, nil, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketStyle get bucket's style -// bucketName the bucket name. -// styleName the bucket style name. -// GetBucketStyleResult the style result of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketStyle(bucketName, styleName string, options ...Option) (GetBucketStyleResult, error) { - var out GetBucketStyleResult - body, err := client.GetBucketStyleXml(bucketName, styleName, options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// GetBucketStyleXml get bucket's style -// bucketName the bucket name. -// styleName the bucket style name. -// string the style result of bucket in xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketStyleXml(bucketName, styleName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["style"] = nil - params["styleName"] = styleName - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// ListBucketStyle get bucket's styles -// bucketName the bucket name. -// GetBucketListStyleResult the list style result of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) ListBucketStyle(bucketName string, options ...Option) (GetBucketListStyleResult, error) { - var out GetBucketListStyleResult - body, err := client.ListBucketStyleXml(bucketName, options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// ListBucketStyleXml get bucket's list style -// bucketName the bucket name. -// string the style result of bucket in xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) ListBucketStyleXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["style"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// DeleteBucketStyle delete bucket's style -// bucketName the bucket name. -// styleName the bucket style name. -// string the style result of bucket in xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) DeleteBucketStyle(bucketName, styleName string, options ...Option) error { - params := map[string]interface{}{} - params["style"] = bucketName - params["styleName"] = styleName - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// PutBucketResponseHeader set bucket response header -// bucketName the bucket name. -// xmlData the resource group in xml format -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketResponseHeader(bucketName string, responseHeader PutBucketResponseHeader, options ...Option) error { - bs, err := xml.Marshal(responseHeader) - if err != nil { - return err - } - err = client.PutBucketResponseHeaderXml(bucketName, string(bs), options...) - return err -} - -// PutBucketResponseHeaderXml set bucket response header -// bucketName the bucket name. -// xmlData the bucket response header in xml format -// error it's nil if no error, otherwise it's an error object. -func (client Client) PutBucketResponseHeaderXml(bucketName, xmlData string, options ...Option) error { - buffer := new(bytes.Buffer) - buffer.Write([]byte(xmlData)) - contentType := http.DetectContentType(buffer.Bytes()) - headers := map[string]string{} - headers[HTTPHeaderContentType] = contentType - params := map[string]interface{}{} - params["responseHeader"] = nil - resp, err := client.do("PUT", bucketName, params, nil, buffer, options...) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetBucketResponseHeader get bucket's response header. -// bucketName the bucket name. -// GetBucketResponseHeaderResult the response header result of bucket. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketResponseHeader(bucketName string, options ...Option) (GetBucketResponseHeaderResult, error) { - var out GetBucketResponseHeaderResult - body, err := client.GetBucketResponseHeaderXml(bucketName, options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// GetBucketResponseHeaderXml get bucket's resource group -// bucketName the bucket name. -// string the response header result of bucket xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) GetBucketResponseHeaderXml(bucketName string, options ...Option) (string, error) { - params := map[string]interface{}{} - params["responseHeader"] = nil - resp, err := client.do("GET", bucketName, params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// DeleteBucketResponseHeader delete response header from a bucket. -// bucketName the bucket name. -// error it's nil if no error, otherwise it's an error object. -func (client Client) DeleteBucketResponseHeader(bucketName string, options ...Option) error { - params := map[string]interface{}{} - params["responseHeader"] = nil - resp, err := client.do("DELETE", bucketName, params, nil, nil, options...) - - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// DescribeRegions get describe regions -// GetDescribeRegionsResult the result of bucket in xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) DescribeRegions(options ...Option) (DescribeRegionsResult, error) { - var out DescribeRegionsResult - body, err := client.DescribeRegionsXml(options...) - if err != nil { - return out, err - } - err = xmlUnmarshal(strings.NewReader(body), &out) - return out, err -} - -// DescribeRegionsXml get describe regions -// string the style result of bucket in xml format. -// error it's nil if no error, otherwise it's an error object. -func (client Client) DescribeRegionsXml(options ...Option) (string, error) { - params, err := GetRawParams(options) - if err != nil { - return "", err - } - if params["regions"] == nil { - params["regions"] = nil - } - resp, err := client.do("GET", "", params, nil, nil, options...) - if err != nil { - return "", err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - out := string(body) - return out, err -} - -// LimitUploadSpeed set upload bandwidth limit speed,default is 0,unlimited -// upSpeed KB/s, 0 is unlimited,default is 0 -// error it's nil if success, otherwise failure -func (client Client) LimitUploadSpeed(upSpeed int) error { - if client.Config == nil { - return fmt.Errorf("client config is nil") - } - return client.Config.LimitUploadSpeed(upSpeed) -} - -// LimitDownloadSpeed set download bandwidth limit speed,default is 0,unlimited -// downSpeed KB/s, 0 is unlimited,default is 0 -// error it's nil if success, otherwise failure -func (client Client) LimitDownloadSpeed(downSpeed int) error { - if client.Config == nil { - return fmt.Errorf("client config is nil") - } - return client.Config.LimitDownloadSpeed(downSpeed) -} - -// UseCname sets the flag of using CName. By default it's false. -// -// isUseCname true: the endpoint has the CName, false: the endpoint does not have cname. Default is false. -// -func UseCname(isUseCname bool) ClientOption { - return func(client *Client) { - client.Config.IsCname = isUseCname - } -} - -// ForcePathStyle sets the flag of using Path Style. By default it's false. -// -// isPathStyle true: the endpoint has the Path Style, false: the endpoint does not have Path Style. Default is false. -// -func ForcePathStyle(isPathStyle bool) ClientOption { - return func(client *Client) { - client.Config.IsPathStyle = isPathStyle - } -} - -// Timeout sets the HTTP timeout in seconds. -// -// connectTimeoutSec HTTP timeout in seconds. Default is 10 seconds. 0 means infinite (not recommended) -// readWriteTimeout HTTP read or write's timeout in seconds. Default is 20 seconds. 0 means infinite. -// -func Timeout(connectTimeoutSec, readWriteTimeout int64) ClientOption { - return func(client *Client) { - client.Config.HTTPTimeout.ConnectTimeout = - time.Second * time.Duration(connectTimeoutSec) - client.Config.HTTPTimeout.ReadWriteTimeout = - time.Second * time.Duration(readWriteTimeout) - client.Config.HTTPTimeout.HeaderTimeout = - time.Second * time.Duration(readWriteTimeout) - client.Config.HTTPTimeout.IdleConnTimeout = - time.Second * time.Duration(readWriteTimeout) - client.Config.HTTPTimeout.LongTimeout = - time.Second * time.Duration(readWriteTimeout*10) - } -} - -// MaxConns sets the HTTP max connections for a client. -// -// maxIdleConns controls the maximum number of idle (keep-alive) connections across all hosts. Default is 100. -// maxIdleConnsPerHost controls the maximum idle (keep-alive) connections to keep per-host. Default is 100. -// maxConnsPerHost limits the total number of connections per host. Default is no limit. -// -func MaxConns(maxIdleConns, maxIdleConnsPerHost, maxConnsPerHost int) ClientOption { - return func(client *Client) { - client.Config.HTTPMaxConns.MaxIdleConns = maxIdleConns - client.Config.HTTPMaxConns.MaxIdleConnsPerHost = maxIdleConnsPerHost - client.Config.HTTPMaxConns.MaxConnsPerHost = maxConnsPerHost - } -} - -// SecurityToken sets the temporary user's SecurityToken. -// -// token STS token -// -func SecurityToken(token string) ClientOption { - return func(client *Client) { - client.Config.SecurityToken = strings.TrimSpace(token) - } -} - -// EnableMD5 enables MD5 validation. -// -// isEnableMD5 true: enable MD5 validation; false: disable MD5 validation. -// -func EnableMD5(isEnableMD5 bool) ClientOption { - return func(client *Client) { - client.Config.IsEnableMD5 = isEnableMD5 - } -} - -// MD5ThresholdCalcInMemory sets the memory usage threshold for computing the MD5, default is 16MB. -// -// threshold the memory threshold in bytes. When the uploaded content is more than 16MB, the temp file is used for computing the MD5. -// -func MD5ThresholdCalcInMemory(threshold int64) ClientOption { - return func(client *Client) { - client.Config.MD5Threshold = threshold - } -} - -// EnableCRC enables the CRC checksum. Default is true. -// -// isEnableCRC true: enable CRC checksum; false: disable the CRC checksum. -// -func EnableCRC(isEnableCRC bool) ClientOption { - return func(client *Client) { - client.Config.IsEnableCRC = isEnableCRC - } -} - -// UserAgent specifies UserAgent. The default is aliyun-sdk-go/1.2.0 (windows/-/amd64;go1.5.2). -// -// userAgent the user agent string. -// -func UserAgent(userAgent string) ClientOption { - return func(client *Client) { - client.Config.UserAgent = userAgent - client.Config.UserSetUa = true - } -} - -// Proxy sets the proxy (optional). The default is not using proxy. -// -// proxyHost the proxy host in the format "host:port". For example, proxy.com:80 . -// -func Proxy(proxyHost string) ClientOption { - return func(client *Client) { - client.Config.IsUseProxy = true - client.Config.ProxyHost = proxyHost - } -} - -// AuthProxy sets the proxy information with user name and password. -// -// proxyHost the proxy host in the format "host:port". For example, proxy.com:80 . -// proxyUser the proxy user name. -// proxyPassword the proxy password. -// -func AuthProxy(proxyHost, proxyUser, proxyPassword string) ClientOption { - return func(client *Client) { - client.Config.IsUseProxy = true - client.Config.ProxyHost = proxyHost - client.Config.IsAuthProxy = true - client.Config.ProxyUser = proxyUser - client.Config.ProxyPassword = proxyPassword - } -} - -// -// HTTPClient sets the http.Client in use to the one passed in -// -func HTTPClient(HTTPClient *http.Client) ClientOption { - return func(client *Client) { - client.HTTPClient = HTTPClient - } -} - -// -// SetLogLevel sets the oss sdk log level -// -func SetLogLevel(LogLevel int) ClientOption { - return func(client *Client) { - client.Config.LogLevel = LogLevel - } -} - -// -// SetLogger sets the oss sdk logger -// -func SetLogger(Logger *log.Logger) ClientOption { - return func(client *Client) { - client.Config.Logger = Logger - } -} - -// SetCredentialsProvider sets function for get the user's ak -func SetCredentialsProvider(provider CredentialsProvider) ClientOption { - return func(client *Client) { - client.Config.CredentialsProvider = provider - } -} - -// SetLocalAddr sets function for local addr -func SetLocalAddr(localAddr net.Addr) ClientOption { - return func(client *Client) { - client.Config.LocalAddr = localAddr - } -} - -// AuthVersion sets auth version: v1 or v2 signature which oss_server needed -func AuthVersion(authVersion AuthVersionType) ClientOption { - return func(client *Client) { - client.Config.AuthVersion = authVersion - } -} - -// AdditionalHeaders sets special http headers needed to be signed -func AdditionalHeaders(headers []string) ClientOption { - return func(client *Client) { - client.Config.AdditionalHeaders = headers - } -} - -// RedirectEnabled only effective from go1.7 onward,RedirectEnabled set http redirect enabled or not -func RedirectEnabled(enabled bool) ClientOption { - return func(client *Client) { - client.Config.RedirectEnabled = enabled - } -} - -// InsecureSkipVerify skip verifying tls certificate file -func InsecureSkipVerify(enabled bool) ClientOption { - return func(client *Client) { - client.Config.InsecureSkipVerify = enabled - } -} - -// Region set region -func Region(region string) ClientOption { - return func(client *Client) { - client.Config.Region = region - } -} - -// CloudBoxId set cloudBox id -func CloudBoxId(cloudBoxId string) ClientOption { - return func(client *Client) { - client.Config.CloudBoxId = cloudBoxId - } -} - -// Product set product type -func Product(product string) ClientOption { - return func(client *Client) { - client.Config.Product = product - } -} - -// VerifyObjectStrict sets the flag of verifying object name strictly. -func VerifyObjectStrict(enable bool) ClientOption { - return func(client *Client) { - client.Config.VerifyObjectStrict = enable - } -} - -// Private -func (client Client) do(method, bucketName string, params map[string]interface{}, - headers map[string]string, data io.Reader, options ...Option) (*Response, error) { - err := CheckBucketName(bucketName) - if len(bucketName) > 0 && err != nil { - return nil, err - } - - // option headers - addHeaders := make(map[string]string) - err = handleOptions(addHeaders, options) - if err != nil { - return nil, err - } - - // merge header - if headers == nil { - headers = make(map[string]string) - } - - for k, v := range addHeaders { - if _, ok := headers[k]; !ok { - headers[k] = v - } - } - - resp, err := client.Conn.Do(method, bucketName, "", params, headers, data, 0, nil) - - // get response header - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - pRespHeader := respHeader.(*http.Header) - if resp != nil { - *pRespHeader = resp.Headers - } - } - - return resp, err -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conf.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conf.go deleted file mode 100644 index 305fbcf122..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conf.go +++ /dev/null @@ -1,301 +0,0 @@ -package oss - -import ( - "bytes" - "fmt" - "log" - "net" - "os" - "time" -) - -// Define the level of the output log -const ( - LogOff = iota - Error - Warn - Info - Debug -) - -// LogTag Tag for each level of log -var LogTag = []string{"[error]", "[warn]", "[info]", "[debug]"} - -// HTTPTimeout defines HTTP timeout. -type HTTPTimeout struct { - ConnectTimeout time.Duration - ReadWriteTimeout time.Duration - HeaderTimeout time.Duration - LongTimeout time.Duration - IdleConnTimeout time.Duration -} - -// HTTPMaxConns defines max idle connections and max idle connections per host -type HTTPMaxConns struct { - MaxIdleConns int - MaxIdleConnsPerHost int - MaxConnsPerHost int -} - -// Credentials is interface for get AccessKeyID,AccessKeySecret,SecurityToken -type Credentials interface { - GetAccessKeyID() string - GetAccessKeySecret() string - GetSecurityToken() string -} - -// CredentialsProvider is interface for get Credential Info -type CredentialsProvider interface { - GetCredentials() Credentials -} - -type CredentialsProviderE interface { - CredentialsProvider - GetCredentialsE() (Credentials, error) -} - -type defaultCredentials struct { - config *Config -} - -func (defCre *defaultCredentials) GetAccessKeyID() string { - return defCre.config.AccessKeyID -} - -func (defCre *defaultCredentials) GetAccessKeySecret() string { - return defCre.config.AccessKeySecret -} - -func (defCre *defaultCredentials) GetSecurityToken() string { - return defCre.config.SecurityToken -} - -type defaultCredentialsProvider struct { - config *Config -} - -func (defBuild *defaultCredentialsProvider) GetCredentials() Credentials { - return &defaultCredentials{config: defBuild.config} -} - -type envCredentials struct { - AccessKeyId string - AccessKeySecret string - SecurityToken string -} - -type EnvironmentVariableCredentialsProvider struct { - cred Credentials -} - -func (credentials *envCredentials) GetAccessKeyID() string { - return credentials.AccessKeyId -} - -func (credentials *envCredentials) GetAccessKeySecret() string { - return credentials.AccessKeySecret -} - -func (credentials *envCredentials) GetSecurityToken() string { - return credentials.SecurityToken -} - -func (defBuild *EnvironmentVariableCredentialsProvider) GetCredentials() Credentials { - var accessID, accessKey, token string - if defBuild.cred == nil { - accessID = os.Getenv("OSS_ACCESS_KEY_ID") - accessKey = os.Getenv("OSS_ACCESS_KEY_SECRET") - token = os.Getenv("OSS_SESSION_TOKEN") - } else { - accessID = defBuild.cred.GetAccessKeyID() - accessKey = defBuild.cred.GetAccessKeySecret() - token = defBuild.cred.GetSecurityToken() - } - - return &envCredentials{ - AccessKeyId: accessID, - AccessKeySecret: accessKey, - SecurityToken: token, - } -} - -func NewEnvironmentVariableCredentialsProvider() (EnvironmentVariableCredentialsProvider, error) { - var provider EnvironmentVariableCredentialsProvider - accessID := os.Getenv("OSS_ACCESS_KEY_ID") - if accessID == "" { - return provider, fmt.Errorf("access key id is empty!") - } - accessKey := os.Getenv("OSS_ACCESS_KEY_SECRET") - if accessKey == "" { - return provider, fmt.Errorf("access key secret is empty!") - } - token := os.Getenv("OSS_SESSION_TOKEN") - envCredential := &envCredentials{ - AccessKeyId: accessID, - AccessKeySecret: accessKey, - SecurityToken: token, - } - return EnvironmentVariableCredentialsProvider{ - cred: envCredential, - }, nil -} - -// Config defines oss configuration -type Config struct { - Endpoint string // OSS endpoint - AccessKeyID string // AccessId - AccessKeySecret string // AccessKey - RetryTimes uint // Retry count by default it's 5. - UserAgent string // SDK name/version/system information - IsDebug bool // Enable debug mode. Default is false. - Timeout uint // Timeout in seconds. By default it's 60. - SecurityToken string // STS Token - IsCname bool // If cname is in the endpoint. - IsPathStyle bool // If Path Style is in the endpoint. - HTTPTimeout HTTPTimeout // HTTP timeout - HTTPMaxConns HTTPMaxConns // Http max connections - IsUseProxy bool // Flag of using proxy. - ProxyHost string // Flag of using proxy host. - IsAuthProxy bool // Flag of needing authentication. - ProxyUser string // Proxy user - ProxyPassword string // Proxy password - IsEnableMD5 bool // Flag of enabling MD5 for upload. - MD5Threshold int64 // Memory footprint threshold for each MD5 computation (16MB is the default), in byte. When the data is more than that, temp file is used. - IsEnableCRC bool // Flag of enabling CRC for upload. - LogLevel int // Log level - Logger *log.Logger // For write log - UploadLimitSpeed int // Upload limit speed:KB/s, 0 is unlimited - UploadLimiter *OssLimiter // Bandwidth limit reader for upload - DownloadLimitSpeed int // Download limit speed:KB/s, 0 is unlimited - DownloadLimiter *OssLimiter // Bandwidth limit reader for download - CredentialsProvider CredentialsProvider // User provides interface to get AccessKeyID, AccessKeySecret, SecurityToken - LocalAddr net.Addr // local client host info - UserSetUa bool // UserAgent is set by user or not - AuthVersion AuthVersionType // v1 or v2, v4 signature,default is v1 - AdditionalHeaders []string // special http headers needed to be sign - RedirectEnabled bool // only effective from go1.7 onward, enable http redirect or not - InsecureSkipVerify bool // for https, Whether to skip verifying the server certificate file - Region string // such as cn-hangzhou - CloudBoxId string // - Product string // oss or oss-cloudbox, default is oss - VerifyObjectStrict bool // a flag of verifying object name strictly. Default is enable. -} - -// LimitUploadSpeed uploadSpeed:KB/s, 0 is unlimited,default is 0 -func (config *Config) LimitUploadSpeed(uploadSpeed int) error { - if uploadSpeed < 0 { - return fmt.Errorf("invalid argument, the value of uploadSpeed is less than 0") - } else if uploadSpeed == 0 { - config.UploadLimitSpeed = 0 - config.UploadLimiter = nil - return nil - } - - var err error - config.UploadLimiter, err = GetOssLimiter(uploadSpeed) - if err == nil { - config.UploadLimitSpeed = uploadSpeed - } - return err -} - -// LimitDownLoadSpeed downloadSpeed:KB/s, 0 is unlimited,default is 0 -func (config *Config) LimitDownloadSpeed(downloadSpeed int) error { - if downloadSpeed < 0 { - return fmt.Errorf("invalid argument, the value of downloadSpeed is less than 0") - } else if downloadSpeed == 0 { - config.DownloadLimitSpeed = 0 - config.DownloadLimiter = nil - return nil - } - - var err error - config.DownloadLimiter, err = GetOssLimiter(downloadSpeed) - if err == nil { - config.DownloadLimitSpeed = downloadSpeed - } - return err -} - -// WriteLog output log function -func (config *Config) WriteLog(LogLevel int, format string, a ...interface{}) { - if config.LogLevel < LogLevel || config.Logger == nil { - return - } - - var logBuffer bytes.Buffer - logBuffer.WriteString(LogTag[LogLevel-1]) - logBuffer.WriteString(fmt.Sprintf(format, a...)) - config.Logger.Printf("%s", logBuffer.String()) -} - -// for get Credentials -func (config *Config) GetCredentials() Credentials { - return config.CredentialsProvider.GetCredentials() -} - -// for get Sign Product -func (config *Config) GetSignProduct() string { - if config.CloudBoxId != "" { - return "oss-cloudbox" - } - return "oss" -} - -// for get Sign Region -func (config *Config) GetSignRegion() string { - if config.CloudBoxId != "" { - return config.CloudBoxId - } - return config.Region -} - -// getDefaultOssConfig gets the default configuration. -func getDefaultOssConfig() *Config { - config := Config{} - - config.Endpoint = "" - config.AccessKeyID = "" - config.AccessKeySecret = "" - config.RetryTimes = 5 - config.IsDebug = false - config.UserAgent = userAgent() - config.Timeout = 60 // Seconds - config.SecurityToken = "" - config.IsCname = false - config.IsPathStyle = false - - config.HTTPTimeout.ConnectTimeout = time.Second * 30 // 30s - config.HTTPTimeout.ReadWriteTimeout = time.Second * 60 // 60s - config.HTTPTimeout.HeaderTimeout = time.Second * 60 // 60s - config.HTTPTimeout.LongTimeout = time.Second * 300 // 300s - config.HTTPTimeout.IdleConnTimeout = time.Second * 50 // 50s - config.HTTPMaxConns.MaxIdleConns = 100 - config.HTTPMaxConns.MaxIdleConnsPerHost = 100 - - config.IsUseProxy = false - config.ProxyHost = "" - config.IsAuthProxy = false - config.ProxyUser = "" - config.ProxyPassword = "" - - config.MD5Threshold = 16 * 1024 * 1024 // 16MB - config.IsEnableMD5 = false - config.IsEnableCRC = true - - config.LogLevel = LogOff - config.Logger = log.New(os.Stdout, "", log.LstdFlags) - - provider := &defaultCredentialsProvider{config: &config} - config.CredentialsProvider = provider - - config.AuthVersion = AuthV1 - config.RedirectEnabled = true - config.InsecureSkipVerify = false - - config.Product = "oss" - - config.VerifyObjectStrict = true - - return &config -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conn.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conn.go deleted file mode 100644 index 86e2b6f2f9..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/conn.go +++ /dev/null @@ -1,1021 +0,0 @@ -package oss - -import ( - "bytes" - "context" - "crypto/md5" - "encoding/base64" - "encoding/json" - "encoding/xml" - "fmt" - "hash" - "io" - "io/ioutil" - "net" - "net/http" - "net/url" - "os" - "sort" - "strconv" - "strings" - "time" -) - -// Conn defines OSS Conn -type Conn struct { - config *Config - url *urlMaker - client *http.Client -} - -var signKeyList = []string{"acl", "uploads", "location", "cors", - "logging", "website", "referer", "lifecycle", - "delete", "append", "tagging", "objectMeta", - "uploadId", "partNumber", "security-token", - "position", "img", "style", "styleName", - "replication", "replicationProgress", - "replicationLocation", "cname", "bucketInfo", - "comp", "qos", "live", "status", "vod", - "startTime", "endTime", "symlink", - "x-oss-process", "response-content-type", "x-oss-traffic-limit", - "response-content-language", "response-expires", - "response-cache-control", "response-content-disposition", - "response-content-encoding", "udf", "udfName", "udfImage", - "udfId", "udfImageDesc", "udfApplication", "comp", - "udfApplicationLog", "restore", "callback", "callback-var", "qosInfo", - "policy", "stat", "encryption", "versions", "versioning", "versionId", "requestPayment", - "x-oss-request-payer", "sequential", - "inventory", "inventoryId", "continuation-token", "asyncFetch", - "worm", "wormId", "wormExtend", "withHashContext", - "x-oss-enable-md5", "x-oss-enable-sha1", "x-oss-enable-sha256", - "x-oss-hash-ctx", "x-oss-md5-ctx", "transferAcceleration", - "regionList", "cloudboxes", "x-oss-ac-source-ip", "x-oss-ac-subnet-mask", "x-oss-ac-vpc-id", "x-oss-ac-forward-allow", - "metaQuery", "resourceGroup", "rtc", "x-oss-async-process", "responseHeader", -} - -const ( - timeFormatV4 = "20060102T150405Z" - shortTimeFormatV4 = "20060102" - signingAlgorithmV4 = "OSS4-HMAC-SHA256" -) - -// init initializes Conn -func (conn *Conn) init(config *Config, urlMaker *urlMaker, client *http.Client) error { - if client == nil { - // New transport - transport := newTransport(conn, config) - - // Proxy - if conn.config.IsUseProxy { - proxyURL, err := url.Parse(config.ProxyHost) - if err != nil { - return err - } - if config.IsAuthProxy { - if config.ProxyPassword != "" { - proxyURL.User = url.UserPassword(config.ProxyUser, config.ProxyPassword) - } else { - proxyURL.User = url.User(config.ProxyUser) - } - } - transport.Proxy = http.ProxyURL(proxyURL) - } - client = &http.Client{Transport: transport} - if !config.RedirectEnabled { - disableHTTPRedirect(client) - } - } - - conn.config = config - conn.url = urlMaker - conn.client = client - - return nil -} - -// Do sends request and returns the response -func (conn Conn) Do(method, bucketName, objectName string, params map[string]interface{}, headers map[string]string, - data io.Reader, initCRC uint64, listener ProgressListener) (*Response, error) { - return conn.DoWithContext(nil, method, bucketName, objectName, params, headers, data, initCRC, listener) -} - -// DoWithContext sends request and returns the response with context -func (conn Conn) DoWithContext(ctx context.Context, method, bucketName, objectName string, params map[string]interface{}, headers map[string]string, - data io.Reader, initCRC uint64, listener ProgressListener) (*Response, error) { - urlParams := conn.getURLParams(params) - subResource := conn.getSubResource(params) - uri := conn.url.getURL(bucketName, objectName, urlParams) - - resource := "" - if conn.config.AuthVersion != AuthV4 { - resource = conn.getResource(bucketName, objectName, subResource) - } else { - resource = conn.getResourceV4(bucketName, objectName, subResource) - } - - return conn.doRequest(ctx, method, uri, resource, headers, data, initCRC, listener) -} - -// DoURL sends the request with signed URL and returns the response result. -func (conn Conn) DoURL(method HTTPMethod, signedURL string, headers map[string]string, - data io.Reader, initCRC uint64, listener ProgressListener) (*Response, error) { - return conn.DoURLWithContext(nil, method, signedURL, headers, data, initCRC, listener) -} - -// DoURLWithContext sends the request with signed URL and context and returns the response result. -func (conn Conn) DoURLWithContext(ctx context.Context, method HTTPMethod, signedURL string, headers map[string]string, - data io.Reader, initCRC uint64, listener ProgressListener) (*Response, error) { - // Get URI from signedURL - uri, err := url.ParseRequestURI(signedURL) - if err != nil { - return nil, err - } - - m := strings.ToUpper(string(method)) - req := &http.Request{ - Method: m, - URL: uri, - Proto: "HTTP/1.1", - ProtoMajor: 1, - ProtoMinor: 1, - Header: make(http.Header), - Host: uri.Host, - } - - if ctx != nil { - req = req.WithContext(ctx) - } - tracker := &readerTracker{completedBytes: 0} - fd, crc := conn.handleBody(req, data, initCRC, listener, tracker) - if fd != nil { - defer func() { - fd.Close() - os.Remove(fd.Name()) - }() - } - - if conn.config.IsAuthProxy { - auth := conn.config.ProxyUser + ":" + conn.config.ProxyPassword - basic := "Basic " + base64.StdEncoding.EncodeToString([]byte(auth)) - req.Header.Set("Proxy-Authorization", basic) - } - - req.Header.Set(HTTPHeaderHost, req.Host) - req.Header.Set(HTTPHeaderUserAgent, conn.config.UserAgent) - - if headers != nil { - for k, v := range headers { - req.Header.Set(k, v) - } - } - - // Transfer started - event := newProgressEvent(TransferStartedEvent, 0, req.ContentLength, 0) - publishProgress(listener, event) - - if conn.config.LogLevel >= Debug { - conn.LoggerHTTPReq(req) - } - - resp, err := conn.client.Do(req) - if err != nil { - // Transfer failed - conn.config.WriteLog(Debug, "[Resp:%p]http error:%s\n", req, err.Error()) - event = newProgressEvent(TransferFailedEvent, tracker.completedBytes, req.ContentLength, 0) - publishProgress(listener, event) - - return nil, err - } - - if conn.config.LogLevel >= Debug { - //print out http resp - conn.LoggerHTTPResp(req, resp) - } - - // Transfer completed - event = newProgressEvent(TransferCompletedEvent, tracker.completedBytes, req.ContentLength, 0) - publishProgress(listener, event) - - return conn.handleResponse(resp, crc) -} - -func (conn Conn) getURLParams(params map[string]interface{}) string { - // Sort - keys := make([]string, 0, len(params)) - for k := range params { - keys = append(keys, k) - } - sort.Strings(keys) - - // Serialize - var buf bytes.Buffer - for _, k := range keys { - if buf.Len() > 0 { - buf.WriteByte('&') - } - buf.WriteString(url.QueryEscape(k)) - if params[k] != nil && params[k].(string) != "" { - buf.WriteString("=" + strings.Replace(url.QueryEscape(params[k].(string)), "+", "%20", -1)) - } - } - - return buf.String() -} - -func (conn Conn) getSubResource(params map[string]interface{}) string { - // Sort - keys := make([]string, 0, len(params)) - signParams := make(map[string]string) - for k := range params { - if conn.config.AuthVersion == AuthV2 || conn.config.AuthVersion == AuthV4 { - encodedKey := url.QueryEscape(k) - keys = append(keys, encodedKey) - if params[k] != nil && params[k] != "" { - signParams[encodedKey] = strings.Replace(url.QueryEscape(params[k].(string)), "+", "%20", -1) - } - } else if conn.isParamSign(k) { - keys = append(keys, k) - if params[k] != nil { - signParams[k] = params[k].(string) - } - } - } - sort.Strings(keys) - - // Serialize - var buf bytes.Buffer - for _, k := range keys { - if buf.Len() > 0 { - buf.WriteByte('&') - } - buf.WriteString(k) - if _, ok := signParams[k]; ok { - if signParams[k] != "" { - buf.WriteString("=" + signParams[k]) - } - } - } - return buf.String() -} - -func (conn Conn) isParamSign(paramKey string) bool { - for _, k := range signKeyList { - if paramKey == k { - return true - } - } - return false -} - -// getResource gets canonicalized resource -func (conn Conn) getResource(bucketName, objectName, subResource string) string { - if subResource != "" { - subResource = "?" + subResource - } - if bucketName == "" { - if conn.config.AuthVersion == AuthV2 { - return url.QueryEscape("/") + subResource - } - return fmt.Sprintf("/%s%s", bucketName, subResource) - } - if conn.config.AuthVersion == AuthV2 { - return url.QueryEscape("/"+bucketName+"/") + strings.Replace(url.QueryEscape(objectName), "+", "%20", -1) + subResource - } - return fmt.Sprintf("/%s/%s%s", bucketName, objectName, subResource) -} - -// getResource gets canonicalized resource -func (conn Conn) getResourceV4(bucketName, objectName, subResource string) string { - if subResource != "" { - subResource = "?" + subResource - } - - if bucketName == "" { - return fmt.Sprintf("/%s", subResource) - } - - if objectName != "" { - objectName = url.QueryEscape(objectName) - objectName = strings.Replace(objectName, "+", "%20", -1) - objectName = strings.Replace(objectName, "%2F", "/", -1) - return fmt.Sprintf("/%s/%s%s", bucketName, objectName, subResource) - } - return fmt.Sprintf("/%s/%s", bucketName, subResource) -} - -func (conn Conn) doRequest(ctx context.Context, method string, uri *url.URL, canonicalizedResource string, headers map[string]string, - data io.Reader, initCRC uint64, listener ProgressListener) (*Response, error) { - method = strings.ToUpper(method) - var req *http.Request - var err error - req = &http.Request{ - Method: method, - URL: uri, - Proto: "HTTP/1.1", - ProtoMajor: 1, - ProtoMinor: 1, - Header: make(http.Header), - Host: uri.Host, - } - if ctx != nil { - req = req.WithContext(ctx) - } - tracker := &readerTracker{completedBytes: 0} - fd, crc := conn.handleBody(req, data, initCRC, listener, tracker) - if fd != nil { - defer func() { - fd.Close() - os.Remove(fd.Name()) - }() - } - - if conn.config.IsAuthProxy { - auth := conn.config.ProxyUser + ":" + conn.config.ProxyPassword - basic := "Basic " + base64.StdEncoding.EncodeToString([]byte(auth)) - req.Header.Set("Proxy-Authorization", basic) - } - - stNow := time.Now().UTC() - req.Header.Set(HTTPHeaderDate, stNow.Format(http.TimeFormat)) - req.Header.Set(HTTPHeaderHost, req.Host) - req.Header.Set(HTTPHeaderUserAgent, conn.config.UserAgent) - - if conn.config.AuthVersion == AuthV4 { - req.Header.Set(HttpHeaderOssContentSha256, DefaultContentSha256) - } - - var akIf Credentials - if providerE, ok := conn.config.CredentialsProvider.(CredentialsProviderE); ok { - if akIf, err = providerE.GetCredentialsE(); err != nil { - return nil, err - } - } else { - akIf = conn.config.GetCredentials() - } - - if akIf.GetSecurityToken() != "" { - req.Header.Set(HTTPHeaderOssSecurityToken, akIf.GetSecurityToken()) - } - - if headers != nil { - for k, v := range headers { - req.Header.Set(k, v) - } - } - - conn.signHeader(req, canonicalizedResource, akIf) - - // Transfer started - event := newProgressEvent(TransferStartedEvent, 0, req.ContentLength, 0) - publishProgress(listener, event) - - if conn.config.LogLevel >= Debug { - conn.LoggerHTTPReq(req) - } - - resp, err := conn.client.Do(req) - - if err != nil { - conn.config.WriteLog(Debug, "[Resp:%p]http error:%s\n", req, err.Error()) - // Transfer failed - event = newProgressEvent(TransferFailedEvent, tracker.completedBytes, req.ContentLength, 0) - publishProgress(listener, event) - return nil, err - } - - if conn.config.LogLevel >= Debug { - //print out http resp - conn.LoggerHTTPResp(req, resp) - } - - // Transfer completed - event = newProgressEvent(TransferCompletedEvent, tracker.completedBytes, req.ContentLength, 0) - publishProgress(listener, event) - - return conn.handleResponse(resp, crc) -} - -func (conn Conn) signURL(method HTTPMethod, bucketName, objectName string, expiration int64, params map[string]interface{}, headers map[string]string) (string, error) { - var akIf Credentials - var err error - if providerE, ok := conn.config.CredentialsProvider.(CredentialsProviderE); ok { - if akIf, err = providerE.GetCredentialsE(); err != nil { - return "", err - } - } else { - akIf = conn.config.GetCredentials() - } - - m := strings.ToUpper(string(method)) - req := &http.Request{ - Method: m, - Header: make(http.Header), - } - - if conn.config.IsAuthProxy { - auth := conn.config.ProxyUser + ":" + conn.config.ProxyPassword - basic := "Basic " + base64.StdEncoding.EncodeToString([]byte(auth)) - req.Header.Set("Proxy-Authorization", basic) - } - - if conn.config.AuthVersion == AuthV4 { - if akIf.GetSecurityToken() != "" { - params[HTTPParamOssSecurityToken] = akIf.GetSecurityToken() - } - - if headers != nil { - for k, v := range headers { - req.Header.Set(k, v) - } - } - - now := time.Now().UTC() - expires := expiration - now.Unix() - product := conn.config.GetSignProduct() - region := conn.config.GetSignRegion() - strDay := now.Format(shortTimeFormatV4) - additionalList, _ := conn.getAdditionalHeaderKeys(req) - - params[HTTPParamSignatureVersion] = signingAlgorithmV4 - params[HTTPParamCredential] = fmt.Sprintf("%s/%s/%s/%s/aliyun_v4_request", akIf.GetAccessKeyID(), strDay, region, product) - params[HTTPParamDate] = now.Format(timeFormatV4) - params[HTTPParamExpiresV2] = strconv.FormatInt(expires, 10) - if len(additionalList) > 0 { - params[HTTPParamAdditionalHeadersV2] = strings.Join(additionalList, ";") - } - - subResource := conn.getSubResource(params) - canonicalizedResource := conn.getResourceV4(bucketName, objectName, subResource) - authorizationStr := conn.getSignedStrV4(req, canonicalizedResource, akIf.GetAccessKeySecret(), &now) - params[HTTPParamSignatureV2] = authorizationStr - } else { - if akIf.GetSecurityToken() != "" { - params[HTTPParamSecurityToken] = akIf.GetSecurityToken() - } - - req.Header.Set(HTTPHeaderDate, strconv.FormatInt(expiration, 10)) - - if headers != nil { - for k, v := range headers { - req.Header.Set(k, v) - } - } - - if conn.config.AuthVersion == AuthV2 { - params[HTTPParamSignatureVersion] = "OSS2" - params[HTTPParamExpiresV2] = strconv.FormatInt(expiration, 10) - params[HTTPParamAccessKeyIDV2] = conn.config.AccessKeyID - additionalList, _ := conn.getAdditionalHeaderKeys(req) - if len(additionalList) > 0 { - params[HTTPParamAdditionalHeadersV2] = strings.Join(additionalList, ";") - } - } - - subResource := conn.getSubResource(params) - canonicalizedResource := conn.getResource(bucketName, objectName, subResource) - signedStr := conn.getSignedStr(req, canonicalizedResource, akIf.GetAccessKeySecret()) - - if conn.config.AuthVersion == AuthV1 { - params[HTTPParamExpires] = strconv.FormatInt(expiration, 10) - params[HTTPParamAccessKeyID] = akIf.GetAccessKeyID() - params[HTTPParamSignature] = signedStr - } else if conn.config.AuthVersion == AuthV2 { - params[HTTPParamSignatureV2] = signedStr - } - } - - urlParams := conn.getURLParams(params) - return conn.url.getSignURL(bucketName, objectName, urlParams), nil -} - -func (conn Conn) signRtmpURL(bucketName, channelName, playlistName string, expiration int64) string { - params := map[string]interface{}{} - if playlistName != "" { - params[HTTPParamPlaylistName] = playlistName - } - expireStr := strconv.FormatInt(expiration, 10) - params[HTTPParamExpires] = expireStr - - akIf := conn.config.GetCredentials() - if akIf.GetAccessKeyID() != "" { - params[HTTPParamAccessKeyID] = akIf.GetAccessKeyID() - if akIf.GetSecurityToken() != "" { - params[HTTPParamSecurityToken] = akIf.GetSecurityToken() - } - signedStr := conn.getRtmpSignedStr(bucketName, channelName, playlistName, expiration, akIf.GetAccessKeySecret(), params) - params[HTTPParamSignature] = signedStr - } - - urlParams := conn.getURLParams(params) - return conn.url.getSignRtmpURL(bucketName, channelName, urlParams) -} - -// handleBody handles request body -func (conn Conn) handleBody(req *http.Request, body io.Reader, initCRC uint64, - listener ProgressListener, tracker *readerTracker) (*os.File, hash.Hash64) { - var file *os.File - var crc hash.Hash64 - reader := body - readerLen, err := GetReaderLen(reader) - if err == nil { - req.ContentLength = readerLen - } - req.Header.Set(HTTPHeaderContentLength, strconv.FormatInt(req.ContentLength, 10)) - - // MD5 - if body != nil && conn.config.IsEnableMD5 && req.Header.Get(HTTPHeaderContentMD5) == "" { - md5 := "" - reader, md5, file, _ = calcMD5(body, req.ContentLength, conn.config.MD5Threshold) - req.Header.Set(HTTPHeaderContentMD5, md5) - } - - // CRC - if reader != nil && conn.config.IsEnableCRC { - crc = NewCRC(CrcTable(), initCRC) - reader = TeeReader(reader, crc, req.ContentLength, listener, tracker) - } - - // HTTP body - rc, ok := reader.(io.ReadCloser) - if !ok && reader != nil { - rc = ioutil.NopCloser(reader) - } - - if conn.isUploadLimitReq(req) { - limitReader := &LimitSpeedReader{ - reader: rc, - ossLimiter: conn.config.UploadLimiter, - } - req.Body = limitReader - } else { - req.Body = rc - } - return file, crc -} - -// isUploadLimitReq: judge limit upload speed or not -func (conn Conn) isUploadLimitReq(req *http.Request) bool { - if conn.config.UploadLimitSpeed == 0 || conn.config.UploadLimiter == nil { - return false - } - - if req.Method != "GET" && req.Method != "DELETE" && req.Method != "HEAD" { - if req.ContentLength > 0 { - return true - } - } - return false -} - -func tryGetFileSize(f *os.File) int64 { - fInfo, _ := f.Stat() - return fInfo.Size() -} - -// handleResponse handles response -func (conn Conn) handleResponse(resp *http.Response, crc hash.Hash64) (*Response, error) { - var cliCRC uint64 - var srvCRC uint64 - - statusCode := resp.StatusCode - if statusCode/100 != 2 { - if statusCode >= 400 && statusCode <= 505 { - // 4xx and 5xx indicate that the operation has error occurred - var respBody []byte - var errorXml []byte - respBody, err := readResponseBody(resp) - if err != nil { - return nil, err - } - errorXml = respBody - if len(respBody) == 0 && len(resp.Header.Get(HTTPHeaderOssErr)) > 0 { - errorXml, err = base64.StdEncoding.DecodeString(resp.Header.Get(HTTPHeaderOssErr)) - if err != nil { - errorXml = respBody - } - } - if len(errorXml) == 0 { - err = ServiceError{ - StatusCode: statusCode, - RequestID: resp.Header.Get(HTTPHeaderOssRequestID), - Ec: resp.Header.Get(HTTPHeaderOssEc), - } - } else { - srvErr, errIn := serviceErrFromXML(errorXml, resp.StatusCode, - resp.Header.Get(HTTPHeaderOssRequestID)) - if errIn != nil { // error unmarshal the error response - if len(resp.Header.Get(HTTPHeaderOssEc)) > 0 { - err = fmt.Errorf("oss: service returned invalid response body, status = %s, RequestId = %s, ec = %s", resp.Status, resp.Header.Get(HTTPHeaderOssRequestID), resp.Header.Get(HTTPHeaderOssEc)) - } else { - err = fmt.Errorf("oss: service returned invalid response body, status = %s, RequestId = %s", resp.Status, resp.Header.Get(HTTPHeaderOssRequestID)) - } - } else { - err = srvErr - } - } - return &Response{ - StatusCode: resp.StatusCode, - Headers: resp.Header, - Body: ioutil.NopCloser(bytes.NewReader(respBody)), // restore the body - }, err - } else if statusCode >= 300 && statusCode <= 307 { - // OSS use 3xx, but response has no body - err := fmt.Errorf("oss: service returned %d,%s", resp.StatusCode, resp.Status) - return &Response{ - StatusCode: resp.StatusCode, - Headers: resp.Header, - Body: resp.Body, - }, err - } else { - // (0,300) [308,400) [506,) - // Other extended http StatusCode - var respBody []byte - var errorXml []byte - respBody, err := readResponseBody(resp) - if err != nil { - return &Response{StatusCode: resp.StatusCode, Headers: resp.Header, Body: ioutil.NopCloser(bytes.NewReader(respBody))}, err - } - errorXml = respBody - if len(respBody) == 0 && len(resp.Header.Get(HTTPHeaderOssErr)) > 0 { - errorXml, err = base64.StdEncoding.DecodeString(resp.Header.Get(HTTPHeaderOssErr)) - if err != nil { - errorXml = respBody - } - } - if len(errorXml) == 0 { - err = ServiceError{ - StatusCode: statusCode, - RequestID: resp.Header.Get(HTTPHeaderOssRequestID), - Ec: resp.Header.Get(HTTPHeaderOssEc), - } - } else { - srvErr, errIn := serviceErrFromXML(errorXml, resp.StatusCode, - resp.Header.Get(HTTPHeaderOssRequestID)) - if errIn != nil { // error unmarshal the error response - if len(resp.Header.Get(HTTPHeaderOssEc)) > 0 { - err = fmt.Errorf("unknown response body, status = %s, RequestId = %s, ec = %s", resp.Status, resp.Header.Get(HTTPHeaderOssRequestID), resp.Header.Get(HTTPHeaderOssEc)) - } else { - err = fmt.Errorf("unknown response body, status = %s, RequestId = %s", resp.Status, resp.Header.Get(HTTPHeaderOssRequestID)) - } - } else { - err = srvErr - } - } - return &Response{ - StatusCode: resp.StatusCode, - Headers: resp.Header, - Body: ioutil.NopCloser(bytes.NewReader(respBody)), // restore the body - }, err - } - } else { - if conn.config.IsEnableCRC && crc != nil { - cliCRC = crc.Sum64() - } - srvCRC, _ = strconv.ParseUint(resp.Header.Get(HTTPHeaderOssCRC64), 10, 64) - - realBody := resp.Body - if conn.isDownloadLimitResponse(resp) { - limitReader := &LimitSpeedReader{ - reader: realBody, - ossLimiter: conn.config.DownloadLimiter, - } - realBody = limitReader - } - - // 2xx, successful - return &Response{ - StatusCode: resp.StatusCode, - Headers: resp.Header, - Body: realBody, - ClientCRC: cliCRC, - ServerCRC: srvCRC, - }, nil - } -} - -// isUploadLimitReq: judge limit upload speed or not -func (conn Conn) isDownloadLimitResponse(resp *http.Response) bool { - if resp == nil || conn.config.DownloadLimitSpeed == 0 || conn.config.DownloadLimiter == nil { - return false - } - - if strings.EqualFold(resp.Request.Method, "GET") { - return true - } - return false -} - -// LoggerHTTPReq Print the header information of the http request -func (conn Conn) LoggerHTTPReq(req *http.Request) { - var logBuffer bytes.Buffer - logBuffer.WriteString(fmt.Sprintf("[Req:%p]Method:%s\t", req, req.Method)) - logBuffer.WriteString(fmt.Sprintf("Host:%s\t", req.URL.Host)) - logBuffer.WriteString(fmt.Sprintf("Path:%s\t", req.URL.Path)) - logBuffer.WriteString(fmt.Sprintf("Query:%s\t", req.URL.RawQuery)) - logBuffer.WriteString(fmt.Sprintf("Header info:")) - - for k, v := range req.Header { - var valueBuffer bytes.Buffer - for j := 0; j < len(v); j++ { - if j > 0 { - valueBuffer.WriteString(" ") - } - valueBuffer.WriteString(v[j]) - } - logBuffer.WriteString(fmt.Sprintf("\t%s:%s", k, valueBuffer.String())) - } - conn.config.WriteLog(Debug, "%s\n", logBuffer.String()) -} - -// LoggerHTTPResp Print Response to http request -func (conn Conn) LoggerHTTPResp(req *http.Request, resp *http.Response) { - var logBuffer bytes.Buffer - logBuffer.WriteString(fmt.Sprintf("[Resp:%p]StatusCode:%d\t", req, resp.StatusCode)) - logBuffer.WriteString(fmt.Sprintf("Header info:")) - for k, v := range resp.Header { - var valueBuffer bytes.Buffer - for j := 0; j < len(v); j++ { - if j > 0 { - valueBuffer.WriteString(" ") - } - valueBuffer.WriteString(v[j]) - } - logBuffer.WriteString(fmt.Sprintf("\t%s:%s", k, valueBuffer.String())) - } - conn.config.WriteLog(Debug, "%s\n", logBuffer.String()) -} - -func calcMD5(body io.Reader, contentLen, md5Threshold int64) (reader io.Reader, b64 string, tempFile *os.File, err error) { - if contentLen == 0 || contentLen > md5Threshold { - // Huge body, use temporary file - tempFile, err = ioutil.TempFile(os.TempDir(), TempFilePrefix) - if tempFile != nil { - io.Copy(tempFile, body) - tempFile.Seek(0, os.SEEK_SET) - md5 := md5.New() - io.Copy(md5, tempFile) - sum := md5.Sum(nil) - b64 = base64.StdEncoding.EncodeToString(sum[:]) - tempFile.Seek(0, os.SEEK_SET) - reader = tempFile - } - } else { - // Small body, use memory - buf, _ := ioutil.ReadAll(body) - sum := md5.Sum(buf) - b64 = base64.StdEncoding.EncodeToString(sum[:]) - reader = bytes.NewReader(buf) - } - return -} - -func readResponseBody(resp *http.Response) ([]byte, error) { - defer resp.Body.Close() - out, err := ioutil.ReadAll(resp.Body) - if err == io.EOF { - err = nil - } - return out, err -} - -func serviceErrFromXML(body []byte, statusCode int, requestID string) (ServiceError, error) { - var storageErr ServiceError - - if err := xml.Unmarshal(body, &storageErr); err != nil { - return storageErr, err - } - - storageErr.StatusCode = statusCode - storageErr.RequestID = requestID - storageErr.RawMessage = string(body) - return storageErr, nil -} - -func xmlUnmarshal(body io.Reader, v interface{}) error { - data, err := ioutil.ReadAll(body) - if err != nil { - return err - } - return xml.Unmarshal(data, v) -} - -func jsonUnmarshal(body io.Reader, v interface{}) error { - data, err := ioutil.ReadAll(body) - if err != nil { - return err - } - return json.Unmarshal(data, v) -} - -// timeoutConn handles HTTP timeout -type timeoutConn struct { - conn net.Conn - timeout time.Duration - longTimeout time.Duration -} - -func newTimeoutConn(conn net.Conn, timeout time.Duration, longTimeout time.Duration) *timeoutConn { - conn.SetReadDeadline(time.Now().Add(longTimeout)) - return &timeoutConn{ - conn: conn, - timeout: timeout, - longTimeout: longTimeout, - } -} - -func (c *timeoutConn) Read(b []byte) (n int, err error) { - c.SetReadDeadline(time.Now().Add(c.timeout)) - n, err = c.conn.Read(b) - c.SetReadDeadline(time.Now().Add(c.longTimeout)) - return n, err -} - -func (c *timeoutConn) Write(b []byte) (n int, err error) { - c.SetWriteDeadline(time.Now().Add(c.timeout)) - n, err = c.conn.Write(b) - c.SetReadDeadline(time.Now().Add(c.longTimeout)) - return n, err -} - -func (c *timeoutConn) Close() error { - return c.conn.Close() -} - -func (c *timeoutConn) LocalAddr() net.Addr { - return c.conn.LocalAddr() -} - -func (c *timeoutConn) RemoteAddr() net.Addr { - return c.conn.RemoteAddr() -} - -func (c *timeoutConn) SetDeadline(t time.Time) error { - return c.conn.SetDeadline(t) -} - -func (c *timeoutConn) SetReadDeadline(t time.Time) error { - return c.conn.SetReadDeadline(t) -} - -func (c *timeoutConn) SetWriteDeadline(t time.Time) error { - return c.conn.SetWriteDeadline(t) -} - -// UrlMaker builds URL and resource -const ( - urlTypeCname = 1 - urlTypeIP = 2 - urlTypeAliyun = 3 - urlTypePathStyle = 4 -) - -type urlMaker struct { - Scheme string // HTTP or HTTPS - NetLoc string // Host or IP - Type int // 1 CNAME, 2 IP, 3 ALIYUN - IsProxy bool // Proxy -} - -// Init parses endpoint -func (um *urlMaker) Init(endpoint string, isCname bool, isProxy bool) error { - return um.InitExt(endpoint, isCname, isProxy, false) -} - -// InitExt parses endpoint -func (um *urlMaker) InitExt(endpoint string, isCname bool, isProxy bool, isPathStyle bool) error { - if strings.HasPrefix(endpoint, "http://") { - um.Scheme = "http" - um.NetLoc = endpoint[len("http://"):] - } else if strings.HasPrefix(endpoint, "https://") { - um.Scheme = "https" - um.NetLoc = endpoint[len("https://"):] - } else { - um.Scheme = "http" - um.NetLoc = endpoint - } - - //use url.Parse() to get real host - strUrl := um.Scheme + "://" + um.NetLoc - url, err := url.Parse(strUrl) - if err != nil { - return err - } - - um.NetLoc = url.Host - host, _, err := net.SplitHostPort(um.NetLoc) - if err != nil { - host = um.NetLoc - if len(host) > 0 && host[0] == '[' && host[len(host)-1] == ']' { - host = host[1 : len(host)-1] - } - } - - ip := net.ParseIP(host) - if ip != nil { - um.Type = urlTypeIP - } else if isCname { - um.Type = urlTypeCname - } else if isPathStyle { - um.Type = urlTypePathStyle - } else { - um.Type = urlTypeAliyun - } - um.IsProxy = isProxy - - return nil -} - -// getURL gets URL -func (um urlMaker) getURL(bucket, object, params string) *url.URL { - host, path := um.buildURL(bucket, object) - addr := "" - if params == "" { - addr = fmt.Sprintf("%s://%s%s", um.Scheme, host, path) - } else { - addr = fmt.Sprintf("%s://%s%s?%s", um.Scheme, host, path, params) - } - uri, _ := url.ParseRequestURI(addr) - return uri -} - -// getSignURL gets sign URL -func (um urlMaker) getSignURL(bucket, object, params string) string { - host, path := um.buildURL(bucket, object) - return fmt.Sprintf("%s://%s%s?%s", um.Scheme, host, path, params) -} - -// getSignRtmpURL Build Sign Rtmp URL -func (um urlMaker) getSignRtmpURL(bucket, channelName, params string) string { - host, path := um.buildURL(bucket, "live") - - channelName = url.QueryEscape(channelName) - channelName = strings.Replace(channelName, "+", "%20", -1) - - return fmt.Sprintf("rtmp://%s%s/%s?%s", host, path, channelName, params) -} - -// buildURL builds URL -func (um urlMaker) buildURL(bucket, object string) (string, string) { - var host = "" - var path = "" - - object = url.QueryEscape(object) - object = strings.Replace(object, "+", "%20", -1) - - if um.Type == urlTypeCname { - host = um.NetLoc - path = "/" + object - } else if um.Type == urlTypeIP || um.Type == urlTypePathStyle { - if bucket == "" { - host = um.NetLoc - path = "/" - } else { - host = um.NetLoc - path = fmt.Sprintf("/%s/%s", bucket, object) - } - } else { - if bucket == "" { - host = um.NetLoc - path = "/" - } else { - host = bucket + "." + um.NetLoc - path = "/" + object - } - } - - return host, path -} - -// buildURL builds URL -func (um urlMaker) buildURLV4(bucket, object string) (string, string) { - var host = "" - var path = "" - - object = url.QueryEscape(object) - object = strings.Replace(object, "+", "%20", -1) - - // no escape / - object = strings.Replace(object, "%2F", "/", -1) - - if um.Type == urlTypeCname { - host = um.NetLoc - path = "/" + object - } else if um.Type == urlTypeIP || um.Type == urlTypePathStyle { - if bucket == "" { - host = um.NetLoc - path = "/" - } else { - host = um.NetLoc - path = fmt.Sprintf("/%s/%s", bucket, object) - } - } else { - if bucket == "" { - host = um.NetLoc - path = "/" - } else { - host = bucket + "." + um.NetLoc - path = fmt.Sprintf("/%s/%s", bucket, object) - } - } - return host, path -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/const.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/const.go deleted file mode 100644 index 400f7cf951..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/const.go +++ /dev/null @@ -1,273 +0,0 @@ -package oss - -import "os" - -// ACLType bucket/object ACL -type ACLType string - -const ( - // ACLPrivate definition : private read and write - ACLPrivate ACLType = "private" - - // ACLPublicRead definition : public read and private write - ACLPublicRead ACLType = "public-read" - - // ACLPublicReadWrite definition : public read and public write - ACLPublicReadWrite ACLType = "public-read-write" - - // ACLDefault Object. It's only applicable for object. - ACLDefault ACLType = "default" -) - -// bucket versioning status -type VersioningStatus string - -const ( - // Versioning Status definition: Enabled - VersionEnabled VersioningStatus = "Enabled" - - // Versioning Status definition: Suspended - VersionSuspended VersioningStatus = "Suspended" -) - -// MetadataDirectiveType specifying whether use the metadata of source object when copying object. -type MetadataDirectiveType string - -const ( - // MetaCopy the target object's metadata is copied from the source one - MetaCopy MetadataDirectiveType = "COPY" - - // MetaReplace the target object's metadata is created as part of the copy request (not same as the source one) - MetaReplace MetadataDirectiveType = "REPLACE" -) - -// TaggingDirectiveType specifying whether use the tagging of source object when copying object. -type TaggingDirectiveType string - -const ( - // TaggingCopy the target object's tagging is copied from the source one - TaggingCopy TaggingDirectiveType = "COPY" - - // TaggingReplace the target object's tagging is created as part of the copy request (not same as the source one) - TaggingReplace TaggingDirectiveType = "REPLACE" -) - -// AlgorithmType specifying the server side encryption algorithm name -type AlgorithmType string - -const ( - KMSAlgorithm AlgorithmType = "KMS" - AESAlgorithm AlgorithmType = "AES256" - SM4Algorithm AlgorithmType = "SM4" -) - -// StorageClassType bucket storage type -type StorageClassType string - -const ( - // StorageStandard standard - StorageStandard StorageClassType = "Standard" - - // StorageIA infrequent access - StorageIA StorageClassType = "IA" - - // StorageArchive archive - StorageArchive StorageClassType = "Archive" - - // StorageColdArchive cold archive - StorageColdArchive StorageClassType = "ColdArchive" - - // StorageDeepColdArchive deep cold archive - StorageDeepColdArchive StorageClassType = "DeepColdArchive" -) - -//RedundancyType bucket data Redundancy type -type DataRedundancyType string - -const ( - // RedundancyLRS Local redundancy, default value - RedundancyLRS DataRedundancyType = "LRS" - - // RedundancyZRS Same city redundancy - RedundancyZRS DataRedundancyType = "ZRS" -) - -//ObjecthashFuncType -type ObjecthashFuncType string - -const ( - HashFuncSha1 ObjecthashFuncType = "SHA-1" - HashFuncSha256 ObjecthashFuncType = "SHA-256" -) - -// PayerType the type of request payer -type PayerType string - -const ( - // Requester the requester who send the request - Requester PayerType = "Requester" - - // BucketOwner the requester who send the request - BucketOwner PayerType = "BucketOwner" -) - -//RestoreMode the restore mode for coldArchive object -type RestoreMode string - -const ( - //RestoreExpedited object will be restored in 1 hour - RestoreExpedited RestoreMode = "Expedited" - - //RestoreStandard object will be restored in 2-5 hours - RestoreStandard RestoreMode = "Standard" - - //RestoreBulk object will be restored in 5-10 hours - RestoreBulk RestoreMode = "Bulk" -) - -// HTTPMethod HTTP request method -type HTTPMethod string - -const ( - // HTTPGet HTTP GET - HTTPGet HTTPMethod = "GET" - - // HTTPPut HTTP PUT - HTTPPut HTTPMethod = "PUT" - - // HTTPHead HTTP HEAD - HTTPHead HTTPMethod = "HEAD" - - // HTTPPost HTTP POST - HTTPPost HTTPMethod = "POST" - - // HTTPDelete HTTP DELETE - HTTPDelete HTTPMethod = "DELETE" -) - -// HTTP headers -const ( - HTTPHeaderAcceptEncoding string = "Accept-Encoding" - HTTPHeaderAuthorization = "Authorization" - HTTPHeaderCacheControl = "Cache-Control" - HTTPHeaderContentDisposition = "Content-Disposition" - HTTPHeaderContentEncoding = "Content-Encoding" - HTTPHeaderContentLength = "Content-Length" - HTTPHeaderContentMD5 = "Content-MD5" - HTTPHeaderContentType = "Content-Type" - HTTPHeaderContentLanguage = "Content-Language" - HTTPHeaderDate = "Date" - HTTPHeaderEtag = "ETag" - HTTPHeaderExpires = "Expires" - HTTPHeaderHost = "Host" - HTTPHeaderLastModified = "Last-Modified" - HTTPHeaderRange = "Range" - HTTPHeaderLocation = "Location" - HTTPHeaderOrigin = "Origin" - HTTPHeaderServer = "Server" - HTTPHeaderUserAgent = "User-Agent" - HTTPHeaderIfModifiedSince = "If-Modified-Since" - HTTPHeaderIfUnmodifiedSince = "If-Unmodified-Since" - HTTPHeaderIfMatch = "If-Match" - HTTPHeaderIfNoneMatch = "If-None-Match" - HTTPHeaderACReqMethod = "Access-Control-Request-Method" - HTTPHeaderACReqHeaders = "Access-Control-Request-Headers" - - HTTPHeaderOssACL = "X-Oss-Acl" - HTTPHeaderOssMetaPrefix = "X-Oss-Meta-" - HTTPHeaderOssObjectACL = "X-Oss-Object-Acl" - HTTPHeaderOssSecurityToken = "X-Oss-Security-Token" - HTTPHeaderOssServerSideEncryption = "X-Oss-Server-Side-Encryption" - HTTPHeaderOssServerSideEncryptionKeyID = "X-Oss-Server-Side-Encryption-Key-Id" - HTTPHeaderOssServerSideDataEncryption = "X-Oss-Server-Side-Data-Encryption" - HTTPHeaderSSECAlgorithm = "X-Oss-Server-Side-Encryption-Customer-Algorithm" - HTTPHeaderSSECKey = "X-Oss-Server-Side-Encryption-Customer-Key" - HTTPHeaderSSECKeyMd5 = "X-Oss-Server-Side-Encryption-Customer-Key-MD5" - HTTPHeaderOssCopySource = "X-Oss-Copy-Source" - HTTPHeaderOssCopySourceRange = "X-Oss-Copy-Source-Range" - HTTPHeaderOssCopySourceIfMatch = "X-Oss-Copy-Source-If-Match" - HTTPHeaderOssCopySourceIfNoneMatch = "X-Oss-Copy-Source-If-None-Match" - HTTPHeaderOssCopySourceIfModifiedSince = "X-Oss-Copy-Source-If-Modified-Since" - HTTPHeaderOssCopySourceIfUnmodifiedSince = "X-Oss-Copy-Source-If-Unmodified-Since" - HTTPHeaderOssMetadataDirective = "X-Oss-Metadata-Directive" - HTTPHeaderOssNextAppendPosition = "X-Oss-Next-Append-Position" - HTTPHeaderOssRequestID = "X-Oss-Request-Id" - HTTPHeaderOssCRC64 = "X-Oss-Hash-Crc64ecma" - HTTPHeaderOssSymlinkTarget = "X-Oss-Symlink-Target" - HTTPHeaderOssStorageClass = "X-Oss-Storage-Class" - HTTPHeaderOssCallback = "X-Oss-Callback" - HTTPHeaderOssCallbackVar = "X-Oss-Callback-Var" - HTTPHeaderOssRequester = "X-Oss-Request-Payer" - HTTPHeaderOssTagging = "X-Oss-Tagging" - HTTPHeaderOssTaggingDirective = "X-Oss-Tagging-Directive" - HTTPHeaderOssTrafficLimit = "X-Oss-Traffic-Limit" - HTTPHeaderOssForbidOverWrite = "X-Oss-Forbid-Overwrite" - HTTPHeaderOssRangeBehavior = "X-Oss-Range-Behavior" - HTTPHeaderOssTaskID = "X-Oss-Task-Id" - HTTPHeaderOssHashCtx = "X-Oss-Hash-Ctx" - HTTPHeaderOssMd5Ctx = "X-Oss-Md5-Ctx" - HTTPHeaderAllowSameActionOverLap = "X-Oss-Allow-Same-Action-Overlap" - HttpHeaderOssDate = "X-Oss-Date" - HttpHeaderOssContentSha256 = "X-Oss-Content-Sha256" - HttpHeaderOssNotification = "X-Oss-Notification" - HTTPHeaderOssEc = "X-Oss-Ec" - HTTPHeaderOssErr = "X-Oss-Err" -) - -// HTTP Param -const ( - HTTPParamExpires = "Expires" - HTTPParamAccessKeyID = "OSSAccessKeyId" - HTTPParamSignature = "Signature" - HTTPParamSecurityToken = "security-token" - HTTPParamPlaylistName = "playlistName" - - HTTPParamSignatureVersion = "x-oss-signature-version" - HTTPParamExpiresV2 = "x-oss-expires" - HTTPParamAccessKeyIDV2 = "x-oss-access-key-id" - HTTPParamSignatureV2 = "x-oss-signature" - HTTPParamAdditionalHeadersV2 = "x-oss-additional-headers" - HTTPParamCredential = "x-oss-credential" - HTTPParamDate = "x-oss-date" - HTTPParamOssSecurityToken = "x-oss-security-token" -) - -// Other constants -const ( - MaxPartSize = 5 * 1024 * 1024 * 1024 // Max part size, 5GB - MinPartSize = 100 * 1024 // Min part size, 100KB - - FilePermMode = os.FileMode(0664) // Default file permission - - TempFilePrefix = "oss-go-temp-" // Temp file prefix - TempFileSuffix = ".temp" // Temp file suffix - - CheckpointFileSuffix = ".cp" // Checkpoint file suffix - - NullVersion = "null" - - DefaultContentSha256 = "UNSIGNED-PAYLOAD" // for v4 signature - - Version = "v3.0.2" // Go SDK version -) - -// FrameType -const ( - DataFrameType = 8388609 - ContinuousFrameType = 8388612 - EndFrameType = 8388613 - MetaEndFrameCSVType = 8388614 - MetaEndFrameJSONType = 8388615 -) - -// AuthVersion the version of auth -type AuthVersionType string - -const ( - // AuthV1 v1 - AuthV1 AuthVersionType = "v1" - // AuthV2 v2 - AuthV2 AuthVersionType = "v2" - // AuthV4 v4 - AuthV4 AuthVersionType = "v4" -) diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/crc.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/crc.go deleted file mode 100644 index c96694f285..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/crc.go +++ /dev/null @@ -1,123 +0,0 @@ -package oss - -import ( - "hash" - "hash/crc64" -) - -// digest represents the partial evaluation of a checksum. -type digest struct { - crc uint64 - tab *crc64.Table -} - -// NewCRC creates a new hash.Hash64 computing the CRC64 checksum -// using the polynomial represented by the Table. -func NewCRC(tab *crc64.Table, init uint64) hash.Hash64 { return &digest{init, tab} } - -// Size returns the number of bytes sum will return. -func (d *digest) Size() int { return crc64.Size } - -// BlockSize returns the hash's underlying block size. -// The Write method must be able to accept any amount -// of data, but it may operate more efficiently if all writes -// are a multiple of the block size. -func (d *digest) BlockSize() int { return 1 } - -// Reset resets the hash to its initial state. -func (d *digest) Reset() { d.crc = 0 } - -// Write (via the embedded io.Writer interface) adds more data to the running hash. -// It never returns an error. -func (d *digest) Write(p []byte) (n int, err error) { - d.crc = crc64.Update(d.crc, d.tab, p) - return len(p), nil -} - -// Sum64 returns CRC64 value. -func (d *digest) Sum64() uint64 { return d.crc } - -// Sum returns hash value. -func (d *digest) Sum(in []byte) []byte { - s := d.Sum64() - return append(in, byte(s>>56), byte(s>>48), byte(s>>40), byte(s>>32), byte(s>>24), byte(s>>16), byte(s>>8), byte(s)) -} - -// gf2Dim dimension of GF(2) vectors (length of CRC) -const gf2Dim int = 64 - -func gf2MatrixTimes(mat []uint64, vec uint64) uint64 { - var sum uint64 - for i := 0; vec != 0; i++ { - if vec&1 != 0 { - sum ^= mat[i] - } - - vec >>= 1 - } - return sum -} - -func gf2MatrixSquare(square []uint64, mat []uint64) { - for n := 0; n < gf2Dim; n++ { - square[n] = gf2MatrixTimes(mat, mat[n]) - } -} - -// CRC64Combine combines CRC64 -func CRC64Combine(crc1 uint64, crc2 uint64, len2 uint64) uint64 { - var even [gf2Dim]uint64 // Even-power-of-two zeros operator - var odd [gf2Dim]uint64 // Odd-power-of-two zeros operator - - // Degenerate case - if len2 == 0 { - return crc1 - } - - // Put operator for one zero bit in odd - odd[0] = crc64.ECMA // CRC64 polynomial - var row uint64 = 1 - for n := 1; n < gf2Dim; n++ { - odd[n] = row - row <<= 1 - } - - // Put operator for two zero bits in even - gf2MatrixSquare(even[:], odd[:]) - - // Put operator for four zero bits in odd - gf2MatrixSquare(odd[:], even[:]) - - // Apply len2 zeros to crc1, first square will put the operator for one zero byte, eight zero bits, in even - for { - // Apply zeros operator for this bit of len2 - gf2MatrixSquare(even[:], odd[:]) - - if len2&1 != 0 { - crc1 = gf2MatrixTimes(even[:], crc1) - } - - len2 >>= 1 - - // If no more bits set, then done - if len2 == 0 { - break - } - - // Another iteration of the loop with odd and even swapped - gf2MatrixSquare(odd[:], even[:]) - if len2&1 != 0 { - crc1 = gf2MatrixTimes(odd[:], crc1) - } - len2 >>= 1 - - // If no more bits set, then done - if len2 == 0 { - break - } - } - - // Return combined CRC - crc1 ^= crc2 - return crc1 -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/download.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/download.go deleted file mode 100644 index 90c1b633d9..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/download.go +++ /dev/null @@ -1,567 +0,0 @@ -package oss - -import ( - "crypto/md5" - "encoding/base64" - "encoding/json" - "errors" - "fmt" - "hash" - "hash/crc64" - "io" - "io/ioutil" - "net/http" - "os" - "path/filepath" - "strconv" - "time" -) - -// DownloadFile downloads files with multipart download. -// -// objectKey the object key. -// filePath the local file to download from objectKey in OSS. -// partSize the part size in bytes. -// options object's constraints, check out GetObject for the reference. -// -// error it's nil when the call succeeds, otherwise it's an error object. -// -func (bucket Bucket) DownloadFile(objectKey, filePath string, partSize int64, options ...Option) error { - if partSize < 1 { - return errors.New("oss: part size smaller than 1") - } - - uRange, err := GetRangeConfig(options) - if err != nil { - return err - } - - cpConf := getCpConfig(options) - routines := getRoutines(options) - - var strVersionId string - versionId, _ := FindOption(options, "versionId", nil) - if versionId != nil { - strVersionId = versionId.(string) - } - - if cpConf != nil && cpConf.IsEnable { - cpFilePath := getDownloadCpFilePath(cpConf, bucket.BucketName, objectKey, strVersionId, filePath) - if cpFilePath != "" { - return bucket.downloadFileWithCp(objectKey, filePath, partSize, options, cpFilePath, routines, uRange) - } - } - - return bucket.downloadFile(objectKey, filePath, partSize, options, routines, uRange) -} - -func getDownloadCpFilePath(cpConf *cpConfig, srcBucket, srcObject, versionId, destFile string) string { - if cpConf.FilePath == "" && cpConf.DirPath != "" { - src := fmt.Sprintf("oss://%v/%v", srcBucket, srcObject) - absPath, _ := filepath.Abs(destFile) - cpFileName := getCpFileName(src, absPath, versionId) - cpConf.FilePath = cpConf.DirPath + string(os.PathSeparator) + cpFileName - } - return cpConf.FilePath -} - -// downloadWorkerArg is download worker's parameters -type downloadWorkerArg struct { - bucket *Bucket - key string - filePath string - options []Option - hook downloadPartHook - enableCRC bool -} - -// downloadPartHook is hook for test -type downloadPartHook func(part downloadPart) error - -var downloadPartHooker downloadPartHook = defaultDownloadPartHook - -func defaultDownloadPartHook(part downloadPart) error { - return nil -} - -// defaultDownloadProgressListener defines default ProgressListener, shields the ProgressListener in options of GetObject. -type defaultDownloadProgressListener struct { -} - -// ProgressChanged no-ops -func (listener *defaultDownloadProgressListener) ProgressChanged(event *ProgressEvent) { -} - -// downloadWorker -func downloadWorker(id int, arg downloadWorkerArg, jobs <-chan downloadPart, results chan<- downloadPart, failed chan<- error, die <-chan bool) { - for part := range jobs { - if err := arg.hook(part); err != nil { - failed <- err - break - } - - // Resolve options - r := Range(part.Start, part.End) - p := Progress(&defaultDownloadProgressListener{}) - - var respHeader http.Header - opts := make([]Option, len(arg.options)+3) - // Append orderly, can not be reversed! - opts = append(opts, arg.options...) - opts = append(opts, r, p, GetResponseHeader(&respHeader)) - - rd, err := arg.bucket.GetObject(arg.key, opts...) - if err != nil { - failed <- err - break - } - defer rd.Close() - - var crcCalc hash.Hash64 - if arg.enableCRC { - crcCalc = crc64.New(CrcTable()) - contentLen := part.End - part.Start + 1 - rd = ioutil.NopCloser(TeeReader(rd, crcCalc, contentLen, nil, nil)) - } - defer rd.Close() - - select { - case <-die: - return - default: - } - - fd, err := os.OpenFile(arg.filePath, os.O_WRONLY, FilePermMode) - if err != nil { - failed <- err - break - } - - _, err = fd.Seek(part.Start-part.Offset, os.SEEK_SET) - if err != nil { - fd.Close() - failed <- err - break - } - - startT := time.Now().UnixNano() / 1000 / 1000 / 1000 - _, err = io.Copy(fd, rd) - endT := time.Now().UnixNano() / 1000 / 1000 / 1000 - if err != nil { - arg.bucket.Client.Config.WriteLog(Debug, "download part error,cost:%d second,part number:%d,request id:%s,error:%s.\n", endT-startT, part.Index, GetRequestId(respHeader), err.Error()) - fd.Close() - failed <- err - break - } - - if arg.enableCRC { - part.CRC64 = crcCalc.Sum64() - } - - fd.Close() - results <- part - } -} - -// downloadScheduler -func downloadScheduler(jobs chan downloadPart, parts []downloadPart) { - for _, part := range parts { - jobs <- part - } - close(jobs) -} - -// downloadPart defines download part -type downloadPart struct { - Index int // Part number, starting from 0 - Start int64 // Start index - End int64 // End index - Offset int64 // Offset - CRC64 uint64 // CRC check value of part -} - -// getDownloadParts gets download parts -func getDownloadParts(objectSize, partSize int64, uRange *UnpackedRange) []downloadPart { - parts := []downloadPart{} - part := downloadPart{} - i := 0 - start, end := AdjustRange(uRange, objectSize) - for offset := start; offset < end; offset += partSize { - part.Index = i - part.Start = offset - part.End = GetPartEnd(offset, end, partSize) - part.Offset = start - part.CRC64 = 0 - parts = append(parts, part) - i++ - } - return parts -} - -// getObjectBytes gets object bytes length -func getObjectBytes(parts []downloadPart) int64 { - var ob int64 - for _, part := range parts { - ob += (part.End - part.Start + 1) - } - return ob -} - -// combineCRCInParts caculates the total CRC of continuous parts -func combineCRCInParts(dps []downloadPart) uint64 { - if dps == nil || len(dps) == 0 { - return 0 - } - - crc := dps[0].CRC64 - for i := 1; i < len(dps); i++ { - crc = CRC64Combine(crc, dps[i].CRC64, (uint64)(dps[i].End-dps[i].Start+1)) - } - - return crc -} - -// downloadFile downloads file concurrently without checkpoint. -func (bucket Bucket) downloadFile(objectKey, filePath string, partSize int64, options []Option, routines int, uRange *UnpackedRange) error { - tempFilePath := filePath + TempFileSuffix - listener := GetProgressListener(options) - - // If the file does not exist, create one. If exists, the download will overwrite it. - fd, err := os.OpenFile(tempFilePath, os.O_WRONLY|os.O_CREATE, FilePermMode) - if err != nil { - return err - } - fd.Close() - - // Get the object detailed meta for object whole size - // must delete header:range to get whole object size - skipOptions := DeleteOption(options, HTTPHeaderRange) - meta, err := bucket.GetObjectDetailedMeta(objectKey, skipOptions...) - if err != nil { - return err - } - - objectSize, err := strconv.ParseInt(meta.Get(HTTPHeaderContentLength), 10, 64) - if err != nil { - return err - } - - enableCRC := false - expectedCRC := (uint64)(0) - if bucket.GetConfig().IsEnableCRC && meta.Get(HTTPHeaderOssCRC64) != "" { - if uRange == nil || (!uRange.HasStart && !uRange.HasEnd) { - enableCRC = true - expectedCRC, _ = strconv.ParseUint(meta.Get(HTTPHeaderOssCRC64), 10, 64) - } - } - - // Get the parts of the file - parts := getDownloadParts(objectSize, partSize, uRange) - jobs := make(chan downloadPart, len(parts)) - results := make(chan downloadPart, len(parts)) - failed := make(chan error) - die := make(chan bool) - - var completedBytes int64 - totalBytes := getObjectBytes(parts) - event := newProgressEvent(TransferStartedEvent, 0, totalBytes, 0) - publishProgress(listener, event) - - // Start the download workers - arg := downloadWorkerArg{&bucket, objectKey, tempFilePath, options, downloadPartHooker, enableCRC} - for w := 1; w <= routines; w++ { - go downloadWorker(w, arg, jobs, results, failed, die) - } - - // Download parts concurrently - go downloadScheduler(jobs, parts) - - // Waiting for parts download finished - completed := 0 - for completed < len(parts) { - select { - case part := <-results: - completed++ - downBytes := (part.End - part.Start + 1) - completedBytes += downBytes - parts[part.Index].CRC64 = part.CRC64 - event = newProgressEvent(TransferDataEvent, completedBytes, totalBytes, downBytes) - publishProgress(listener, event) - case err := <-failed: - close(die) - event = newProgressEvent(TransferFailedEvent, completedBytes, totalBytes, 0) - publishProgress(listener, event) - return err - } - - if completed >= len(parts) { - break - } - } - - event = newProgressEvent(TransferCompletedEvent, completedBytes, totalBytes, 0) - publishProgress(listener, event) - - if enableCRC { - actualCRC := combineCRCInParts(parts) - err = CheckDownloadCRC(actualCRC, expectedCRC) - if err != nil { - return err - } - } - - return os.Rename(tempFilePath, filePath) -} - -// ----- Concurrent download with chcekpoint ----- - -const downloadCpMagic = "92611BED-89E2-46B6-89E5-72F273D4B0A3" - -type downloadCheckpoint struct { - Magic string // Magic - MD5 string // Checkpoint content MD5 - FilePath string // Local file - Object string // Key - ObjStat objectStat // Object status - Parts []downloadPart // All download parts - PartStat []bool // Parts' download status - Start int64 // Start point of the file - End int64 // End point of the file - enableCRC bool // Whether has CRC check - CRC uint64 // CRC check value -} - -type objectStat struct { - Size int64 // Object size - LastModified string // Last modified time - Etag string // Etag -} - -// isValid flags of checkpoint data is valid. It returns true when the data is valid and the checkpoint is valid and the object is not updated. -func (cp downloadCheckpoint) isValid(meta http.Header, uRange *UnpackedRange) (bool, error) { - // Compare the CP's Magic and the MD5 - cpb := cp - cpb.MD5 = "" - js, _ := json.Marshal(cpb) - sum := md5.Sum(js) - b64 := base64.StdEncoding.EncodeToString(sum[:]) - - if cp.Magic != downloadCpMagic || b64 != cp.MD5 { - return false, nil - } - - objectSize, err := strconv.ParseInt(meta.Get(HTTPHeaderContentLength), 10, 64) - if err != nil { - return false, err - } - - // Compare the object size, last modified time and etag - if cp.ObjStat.Size != objectSize || - cp.ObjStat.LastModified != meta.Get(HTTPHeaderLastModified) || - cp.ObjStat.Etag != meta.Get(HTTPHeaderEtag) { - return false, nil - } - - // Check the download range - if uRange != nil { - start, end := AdjustRange(uRange, objectSize) - if start != cp.Start || end != cp.End { - return false, nil - } - } - - return true, nil -} - -// load checkpoint from local file -func (cp *downloadCheckpoint) load(filePath string) error { - contents, err := ioutil.ReadFile(filePath) - if err != nil { - return err - } - - err = json.Unmarshal(contents, cp) - return err -} - -// dump funciton dumps to file -func (cp *downloadCheckpoint) dump(filePath string) error { - bcp := *cp - - // Calculate MD5 - bcp.MD5 = "" - js, err := json.Marshal(bcp) - if err != nil { - return err - } - sum := md5.Sum(js) - b64 := base64.StdEncoding.EncodeToString(sum[:]) - bcp.MD5 = b64 - - // Serialize - js, err = json.Marshal(bcp) - if err != nil { - return err - } - - // Dump - return ioutil.WriteFile(filePath, js, FilePermMode) -} - -// todoParts gets unfinished parts -func (cp downloadCheckpoint) todoParts() []downloadPart { - dps := []downloadPart{} - for i, ps := range cp.PartStat { - if !ps { - dps = append(dps, cp.Parts[i]) - } - } - return dps -} - -// getCompletedBytes gets completed size -func (cp downloadCheckpoint) getCompletedBytes() int64 { - var completedBytes int64 - for i, part := range cp.Parts { - if cp.PartStat[i] { - completedBytes += (part.End - part.Start + 1) - } - } - return completedBytes -} - -// prepare initiates download tasks -func (cp *downloadCheckpoint) prepare(meta http.Header, bucket *Bucket, objectKey, filePath string, partSize int64, uRange *UnpackedRange) error { - // CP - cp.Magic = downloadCpMagic - cp.FilePath = filePath - cp.Object = objectKey - - objectSize, err := strconv.ParseInt(meta.Get(HTTPHeaderContentLength), 10, 64) - if err != nil { - return err - } - - cp.ObjStat.Size = objectSize - cp.ObjStat.LastModified = meta.Get(HTTPHeaderLastModified) - cp.ObjStat.Etag = meta.Get(HTTPHeaderEtag) - - if bucket.GetConfig().IsEnableCRC && meta.Get(HTTPHeaderOssCRC64) != "" { - if uRange == nil || (!uRange.HasStart && !uRange.HasEnd) { - cp.enableCRC = true - cp.CRC, _ = strconv.ParseUint(meta.Get(HTTPHeaderOssCRC64), 10, 64) - } - } - - // Parts - cp.Parts = getDownloadParts(objectSize, partSize, uRange) - cp.PartStat = make([]bool, len(cp.Parts)) - for i := range cp.PartStat { - cp.PartStat[i] = false - } - - return nil -} - -func (cp *downloadCheckpoint) complete(cpFilePath, downFilepath string) error { - err := os.Rename(downFilepath, cp.FilePath) - if err != nil { - return err - } - return os.Remove(cpFilePath) -} - -// downloadFileWithCp downloads files with checkpoint. -func (bucket Bucket) downloadFileWithCp(objectKey, filePath string, partSize int64, options []Option, cpFilePath string, routines int, uRange *UnpackedRange) error { - tempFilePath := filePath + TempFileSuffix - listener := GetProgressListener(options) - - // Load checkpoint data. - dcp := downloadCheckpoint{} - err := dcp.load(cpFilePath) - if err != nil { - os.Remove(cpFilePath) - } - - // Get the object detailed meta for object whole size - // must delete header:range to get whole object size - skipOptions := DeleteOption(options, HTTPHeaderRange) - meta, err := bucket.GetObjectDetailedMeta(objectKey, skipOptions...) - if err != nil { - return err - } - - // Load error or data invalid. Re-initialize the download. - valid, err := dcp.isValid(meta, uRange) - if err != nil || !valid { - if err = dcp.prepare(meta, &bucket, objectKey, filePath, partSize, uRange); err != nil { - return err - } - os.Remove(cpFilePath) - } - - // Create the file if not exists. Otherwise the parts download will overwrite it. - fd, err := os.OpenFile(tempFilePath, os.O_WRONLY|os.O_CREATE, FilePermMode) - if err != nil { - return err - } - fd.Close() - - // Unfinished parts - parts := dcp.todoParts() - jobs := make(chan downloadPart, len(parts)) - results := make(chan downloadPart, len(parts)) - failed := make(chan error) - die := make(chan bool) - - completedBytes := dcp.getCompletedBytes() - event := newProgressEvent(TransferStartedEvent, completedBytes, dcp.ObjStat.Size, 0) - publishProgress(listener, event) - - // Start the download workers routine - arg := downloadWorkerArg{&bucket, objectKey, tempFilePath, options, downloadPartHooker, dcp.enableCRC} - for w := 1; w <= routines; w++ { - go downloadWorker(w, arg, jobs, results, failed, die) - } - - // Concurrently downloads parts - go downloadScheduler(jobs, parts) - - // Wait for the parts download finished - completed := 0 - for completed < len(parts) { - select { - case part := <-results: - completed++ - dcp.PartStat[part.Index] = true - dcp.Parts[part.Index].CRC64 = part.CRC64 - dcp.dump(cpFilePath) - downBytes := (part.End - part.Start + 1) - completedBytes += downBytes - event = newProgressEvent(TransferDataEvent, completedBytes, dcp.ObjStat.Size, downBytes) - publishProgress(listener, event) - case err := <-failed: - close(die) - event = newProgressEvent(TransferFailedEvent, completedBytes, dcp.ObjStat.Size, 0) - publishProgress(listener, event) - return err - } - - if completed >= len(parts) { - break - } - } - - event = newProgressEvent(TransferCompletedEvent, completedBytes, dcp.ObjStat.Size, 0) - publishProgress(listener, event) - - if dcp.enableCRC { - actualCRC := combineCRCInParts(dcp.Parts) - err = CheckDownloadCRC(actualCRC, dcp.CRC) - if err != nil { - return err - } - } - - return dcp.complete(cpFilePath, tempFilePath) -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/error.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/error.go deleted file mode 100644 index aaa24f28a9..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/error.go +++ /dev/null @@ -1,136 +0,0 @@ -package oss - -import ( - "encoding/xml" - "fmt" - "io/ioutil" - "net/http" - "strconv" - "strings" -) - -// ServiceError contains fields of the error response from Oss Service REST API. -type ServiceError struct { - XMLName xml.Name `xml:"Error"` - Code string `xml:"Code"` // The error code returned from OSS to the caller - Message string `xml:"Message"` // The detail error message from OSS - RequestID string `xml:"RequestId"` // The UUID used to uniquely identify the request - HostID string `xml:"HostId"` // The OSS server cluster's Id - Endpoint string `xml:"Endpoint"` - Ec string `xml:"EC"` - RawMessage string // The raw messages from OSS - StatusCode int // HTTP status code - -} - -// Error implements interface error -func (e ServiceError) Error() string { - errorStr := fmt.Sprintf("oss: service returned error: StatusCode=%d, ErrorCode=%s, ErrorMessage=\"%s\", RequestId=%s", e.StatusCode, e.Code, e.Message, e.RequestID) - if len(e.Endpoint) > 0 { - errorStr = fmt.Sprintf("%s, Endpoint=%s", errorStr, e.Endpoint) - } - if len(e.Ec) > 0 { - errorStr = fmt.Sprintf("%s, Ec=%s", errorStr, e.Ec) - } - return errorStr -} - -// UnexpectedStatusCodeError is returned when a storage service responds with neither an error -// nor with an HTTP status code indicating success. -type UnexpectedStatusCodeError struct { - allowed []int // The expected HTTP stats code returned from OSS - got int // The actual HTTP status code from OSS -} - -// Error implements interface error -func (e UnexpectedStatusCodeError) Error() string { - s := func(i int) string { return fmt.Sprintf("%d %s", i, http.StatusText(i)) } - - got := s(e.got) - expected := []string{} - for _, v := range e.allowed { - expected = append(expected, s(v)) - } - return fmt.Sprintf("oss: status code from service response is %s; was expecting %s", - got, strings.Join(expected, " or ")) -} - -// Got is the actual status code returned by oss. -func (e UnexpectedStatusCodeError) Got() int { - return e.got -} - -// CheckRespCode returns UnexpectedStatusError if the given response code is not -// one of the allowed status codes; otherwise nil. -func CheckRespCode(respCode int, allowed []int) error { - for _, v := range allowed { - if respCode == v { - return nil - } - } - return UnexpectedStatusCodeError{allowed, respCode} -} - -// CheckCallbackResp return error if the given response code is not 200 -func CheckCallbackResp(resp *Response) error { - var err error - contentLengthStr := resp.Headers.Get("Content-Length") - contentLength, _ := strconv.Atoi(contentLengthStr) - var bodyBytes []byte - if contentLength > 0 { - bodyBytes, _ = ioutil.ReadAll(resp.Body) - } - if len(bodyBytes) > 0 { - srvErr, errIn := serviceErrFromXML(bodyBytes, resp.StatusCode, - resp.Headers.Get(HTTPHeaderOssRequestID)) - if errIn != nil { - if len(resp.Headers.Get(HTTPHeaderOssEc)) > 0 { - err = fmt.Errorf("unknown response body, status code = %d, RequestId = %s, ec = %s", resp.StatusCode, resp.Headers.Get(HTTPHeaderOssRequestID), resp.Headers.Get(HTTPHeaderOssEc)) - } else { - err = fmt.Errorf("unknown response body, status code= %d, RequestId = %s", resp.StatusCode, resp.Headers.Get(HTTPHeaderOssRequestID)) - } - } else { - err = srvErr - } - } - return err -} - -func tryConvertServiceError(data []byte, resp *Response, def error) (err error) { - err = def - if len(data) > 0 { - srvErr, errIn := serviceErrFromXML(data, resp.StatusCode, resp.Headers.Get(HTTPHeaderOssRequestID)) - if errIn == nil { - err = srvErr - } - } - return err -} - -// CRCCheckError is returned when crc check is inconsistent between client and server -type CRCCheckError struct { - clientCRC uint64 // Calculated CRC64 in client - serverCRC uint64 // Calculated CRC64 in server - operation string // Upload operations such as PutObject/AppendObject/UploadPart, etc - requestID string // The request id of this operation -} - -// Error implements interface error -func (e CRCCheckError) Error() string { - return fmt.Sprintf("oss: the crc of %s is inconsistent, client %d but server %d; request id is %s", - e.operation, e.clientCRC, e.serverCRC, e.requestID) -} - -func CheckDownloadCRC(clientCRC, serverCRC uint64) error { - if clientCRC == serverCRC { - return nil - } - return CRCCheckError{clientCRC, serverCRC, "DownloadFile", ""} -} - -func CheckCRC(resp *Response, operation string) error { - if resp.Headers.Get(HTTPHeaderOssCRC64) == "" || resp.ClientCRC == resp.ServerCRC { - return nil - } - return CRCCheckError{resp.ClientCRC, resp.ServerCRC, operation, resp.Headers.Get(HTTPHeaderOssRequestID)} -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_6.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_6.go deleted file mode 100644 index 2293f99043..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_6.go +++ /dev/null @@ -1,29 +0,0 @@ -//go:build !go1.7 -// +build !go1.7 - -// "golang.org/x/time/rate" is depended on golang context package go1.7 onward -// this file is only for build,not supports limit upload speed -package oss - -import ( - "fmt" - "io" -) - -const ( - perTokenBandwidthSize int = 1024 -) - -type OssLimiter struct { -} - -type LimitSpeedReader struct { - io.ReadCloser - reader io.Reader - ossLimiter *OssLimiter -} - -func GetOssLimiter(uploadSpeed int) (ossLimiter *OssLimiter, err error) { - err = fmt.Errorf("rate.Limiter is not supported below version go1.7") - return nil, err -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_7.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_7.go deleted file mode 100644 index ea0826ceca..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/limit_reader_1_7.go +++ /dev/null @@ -1,91 +0,0 @@ -//go:build go1.7 -// +build go1.7 - -package oss - -import ( - "fmt" - "io" - "math" - "time" - - "golang.org/x/time/rate" -) - -const ( - perTokenBandwidthSize int = 1024 -) - -// OssLimiter wrapper rate.Limiter -type OssLimiter struct { - limiter *rate.Limiter -} - -// GetOssLimiter create OssLimiter -// uploadSpeed KB/s -func GetOssLimiter(uploadSpeed int) (ossLimiter *OssLimiter, err error) { - limiter := rate.NewLimiter(rate.Limit(uploadSpeed), uploadSpeed) - - // first consume the initial full token,the limiter will behave more accurately - limiter.AllowN(time.Now(), uploadSpeed) - - return &OssLimiter{ - limiter: limiter, - }, nil -} - -// LimitSpeedReader for limit bandwidth upload -type LimitSpeedReader struct { - io.ReadCloser - reader io.Reader - ossLimiter *OssLimiter -} - -// Read -func (r *LimitSpeedReader) Read(p []byte) (n int, err error) { - n = 0 - err = nil - start := 0 - burst := r.ossLimiter.limiter.Burst() - var end int - var tmpN int - var tc int - for start < len(p) { - if start+burst*perTokenBandwidthSize < len(p) { - end = start + burst*perTokenBandwidthSize - } else { - end = len(p) - } - - tmpN, err = r.reader.Read(p[start:end]) - if tmpN > 0 { - n += tmpN - start = n - } - - if err != nil { - return - } - - tc = int(math.Ceil(float64(tmpN) / float64(perTokenBandwidthSize))) - now := time.Now() - re := r.ossLimiter.limiter.ReserveN(now, tc) - if !re.OK() { - err = fmt.Errorf("LimitSpeedReader.Read() failure,ReserveN error,start:%d,end:%d,burst:%d,perTokenBandwidthSize:%d", - start, end, burst, perTokenBandwidthSize) - return - } - timeDelay := re.Delay() - time.Sleep(timeDelay) - } - return -} - -// Close ... -func (r *LimitSpeedReader) Close() error { - rc, ok := r.reader.(io.ReadCloser) - if ok { - return rc.Close() - } - return nil -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/livechannel.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/livechannel.go deleted file mode 100644 index 1fd30fdfd6..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/livechannel.go +++ /dev/null @@ -1,257 +0,0 @@ -package oss - -import ( - "bytes" - "encoding/xml" - "fmt" - "io" - "net/http" - "strconv" - "time" -) - -// -// CreateLiveChannel create a live-channel -// -// channelName the name of the channel -// config configuration of the channel -// -// CreateLiveChannelResult the result of create live-channel -// error nil if success, otherwise error -// -func (bucket Bucket) CreateLiveChannel(channelName string, config LiveChannelConfiguration) (CreateLiveChannelResult, error) { - var out CreateLiveChannelResult - - bs, err := xml.Marshal(config) - if err != nil { - return out, err - } - - buffer := new(bytes.Buffer) - buffer.Write(bs) - - params := map[string]interface{}{} - params["live"] = nil - resp, err := bucket.do("PUT", channelName, params, nil, buffer, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// -// PutLiveChannelStatus Set the status of the live-channel: enabled/disabled -// -// channelName the name of the channel -// status enabled/disabled -// -// error nil if success, otherwise error -// -func (bucket Bucket) PutLiveChannelStatus(channelName, status string) error { - params := map[string]interface{}{} - params["live"] = nil - params["status"] = status - - resp, err := bucket.do("PUT", channelName, params, nil, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// PostVodPlaylist create an playlist based on the specified playlist name, startTime and endTime -// -// channelName the name of the channel -// playlistName the name of the playlist, must end with ".m3u8" -// startTime the start time of the playlist -// endTime the endtime of the playlist -// -// error nil if success, otherwise error -// -func (bucket Bucket) PostVodPlaylist(channelName, playlistName string, startTime, endTime time.Time) error { - params := map[string]interface{}{} - params["vod"] = nil - params["startTime"] = strconv.FormatInt(startTime.Unix(), 10) - params["endTime"] = strconv.FormatInt(endTime.Unix(), 10) - - key := fmt.Sprintf("%s/%s", channelName, playlistName) - resp, err := bucket.do("POST", key, params, nil, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusOK}) -} - -// GetVodPlaylist get the playlist based on the specified channelName, startTime and endTime -// -// channelName the name of the channel -// startTime the start time of the playlist -// endTime the endtime of the playlist -// -// io.ReadCloser reader instance for reading data from response. It must be called close() after the usage and only valid when error is nil. -// error nil if success, otherwise error -// -func (bucket Bucket) GetVodPlaylist(channelName string, startTime, endTime time.Time) (io.ReadCloser, error) { - params := map[string]interface{}{} - params["vod"] = nil - params["startTime"] = strconv.FormatInt(startTime.Unix(), 10) - params["endTime"] = strconv.FormatInt(endTime.Unix(), 10) - - resp, err := bucket.do("GET", channelName, params, nil, nil, nil) - if err != nil { - return nil, err - } - - return resp.Body, nil -} - -// -// GetLiveChannelStat Get the state of the live-channel -// -// channelName the name of the channel -// -// LiveChannelStat the state of the live-channel -// error nil if success, otherwise error -// -func (bucket Bucket) GetLiveChannelStat(channelName string) (LiveChannelStat, error) { - var out LiveChannelStat - params := map[string]interface{}{} - params["live"] = nil - params["comp"] = "stat" - - resp, err := bucket.do("GET", channelName, params, nil, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// -// GetLiveChannelInfo Get the configuration info of the live-channel -// -// channelName the name of the channel -// -// LiveChannelConfiguration the configuration info of the live-channel -// error nil if success, otherwise error -// -func (bucket Bucket) GetLiveChannelInfo(channelName string) (LiveChannelConfiguration, error) { - var out LiveChannelConfiguration - params := map[string]interface{}{} - params["live"] = nil - - resp, err := bucket.do("GET", channelName, params, nil, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// -// GetLiveChannelHistory Get push records of live-channel -// -// channelName the name of the channel -// -// LiveChannelHistory push records -// error nil if success, otherwise error -// -func (bucket Bucket) GetLiveChannelHistory(channelName string) (LiveChannelHistory, error) { - var out LiveChannelHistory - params := map[string]interface{}{} - params["live"] = nil - params["comp"] = "history" - - resp, err := bucket.do("GET", channelName, params, nil, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// -// ListLiveChannel list the live-channels -// -// options Prefix: filter by the name start with the value of "Prefix" -// MaxKeys: the maximum count returned -// Marker: cursor from which starting list -// -// ListLiveChannelResult live-channel list -// error nil if success, otherwise error -// -func (bucket Bucket) ListLiveChannel(options ...Option) (ListLiveChannelResult, error) { - var out ListLiveChannelResult - - params, err := GetRawParams(options) - if err != nil { - return out, err - } - - params["live"] = nil - - resp, err := bucket.doInner("GET", "", params, nil, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - return out, err -} - -// -// DeleteLiveChannel Delete the live-channel. When a client trying to stream the live-channel, the operation will fail. it will only delete the live-channel itself and the object generated by the live-channel will not be deleted. -// -// channelName the name of the channel -// -// error nil if success, otherwise error -// -func (bucket Bucket) DeleteLiveChannel(channelName string) error { - params := map[string]interface{}{} - params["live"] = nil - - if channelName == "" { - return fmt.Errorf("invalid argument: channel name is empty") - } - - resp, err := bucket.do("DELETE", channelName, params, nil, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// -// SignRtmpURL Generate a RTMP push-stream signature URL for the trusted user to push the RTMP stream to the live-channel. -// -// channelName the name of the channel -// playlistName the name of the playlist, must end with ".m3u8" -// expires expiration (in seconds) -// -// string singed rtmp push stream url -// error nil if success, otherwise error -// -func (bucket Bucket) SignRtmpURL(channelName, playlistName string, expires int64) (string, error) { - if expires <= 0 { - return "", fmt.Errorf("invalid argument: %d, expires must greater than 0", expires) - } - expiration := time.Now().Unix() + expires - - return bucket.Client.Conn.signRtmpURL(bucket.BucketName, channelName, playlistName, expiration), nil -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/mime.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/mime.go deleted file mode 100644 index 96a9ee7aa7..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/mime.go +++ /dev/null @@ -1,594 +0,0 @@ -package oss - -import ( - "mime" - "path" - "strings" -) - -var extToMimeType = map[string]string{ - ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", - ".xltx": "application/vnd.openxmlformats-officedocument.spreadsheetml.template", - ".potx": "application/vnd.openxmlformats-officedocument.presentationml.template", - ".ppsx": "application/vnd.openxmlformats-officedocument.presentationml.slideshow", - ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation", - ".sldx": "application/vnd.openxmlformats-officedocument.presentationml.slide", - ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", - ".dotx": "application/vnd.openxmlformats-officedocument.wordprocessingml.template", - ".xlam": "application/vnd.ms-excel.addin.macroEnabled.12", - ".xlsb": "application/vnd.ms-excel.sheet.binary.macroEnabled.12", - ".apk": "application/vnd.android.package-archive", - ".hqx": "application/mac-binhex40", - ".cpt": "application/mac-compactpro", - ".doc": "application/msword", - ".ogg": "application/ogg", - ".pdf": "application/pdf", - ".rtf": "text/rtf", - ".mif": "application/vnd.mif", - ".xls": "application/vnd.ms-excel", - ".ppt": "application/vnd.ms-powerpoint", - ".odc": "application/vnd.oasis.opendocument.chart", - ".odb": "application/vnd.oasis.opendocument.database", - ".odf": "application/vnd.oasis.opendocument.formula", - ".odg": "application/vnd.oasis.opendocument.graphics", - ".otg": "application/vnd.oasis.opendocument.graphics-template", - ".odi": "application/vnd.oasis.opendocument.image", - ".odp": "application/vnd.oasis.opendocument.presentation", - ".otp": "application/vnd.oasis.opendocument.presentation-template", - ".ods": "application/vnd.oasis.opendocument.spreadsheet", - ".ots": "application/vnd.oasis.opendocument.spreadsheet-template", - ".odt": "application/vnd.oasis.opendocument.text", - ".odm": "application/vnd.oasis.opendocument.text-master", - ".ott": "application/vnd.oasis.opendocument.text-template", - ".oth": "application/vnd.oasis.opendocument.text-web", - ".sxw": "application/vnd.sun.xml.writer", - ".stw": "application/vnd.sun.xml.writer.template", - ".sxc": "application/vnd.sun.xml.calc", - ".stc": "application/vnd.sun.xml.calc.template", - ".sxd": "application/vnd.sun.xml.draw", - ".std": "application/vnd.sun.xml.draw.template", - ".sxi": "application/vnd.sun.xml.impress", - ".sti": "application/vnd.sun.xml.impress.template", - ".sxg": "application/vnd.sun.xml.writer.global", - ".sxm": "application/vnd.sun.xml.math", - ".sis": "application/vnd.symbian.install", - ".wbxml": "application/vnd.wap.wbxml", - ".wmlc": "application/vnd.wap.wmlc", - ".wmlsc": "application/vnd.wap.wmlscriptc", - ".bcpio": "application/x-bcpio", - ".torrent": "application/x-bittorrent", - ".bz2": "application/x-bzip2", - ".vcd": "application/x-cdlink", - ".pgn": "application/x-chess-pgn", - ".cpio": "application/x-cpio", - ".csh": "application/x-csh", - ".dvi": "application/x-dvi", - ".spl": "application/x-futuresplash", - ".gtar": "application/x-gtar", - ".hdf": "application/x-hdf", - ".jar": "application/x-java-archive", - ".jnlp": "application/x-java-jnlp-file", - ".js": "application/x-javascript", - ".ksp": "application/x-kspread", - ".chrt": "application/x-kchart", - ".kil": "application/x-killustrator", - ".latex": "application/x-latex", - ".rpm": "application/x-rpm", - ".sh": "application/x-sh", - ".shar": "application/x-shar", - ".swf": "application/x-shockwave-flash", - ".sit": "application/x-stuffit", - ".sv4cpio": "application/x-sv4cpio", - ".sv4crc": "application/x-sv4crc", - ".tar": "application/x-tar", - ".tcl": "application/x-tcl", - ".tex": "application/x-tex", - ".man": "application/x-troff-man", - ".me": "application/x-troff-me", - ".ms": "application/x-troff-ms", - ".ustar": "application/x-ustar", - ".src": "application/x-wais-source", - ".zip": "application/zip", - ".m3u": "audio/x-mpegurl", - ".ra": "audio/x-pn-realaudio", - ".wav": "audio/x-wav", - ".wma": "audio/x-ms-wma", - ".wax": "audio/x-ms-wax", - ".pdb": "chemical/x-pdb", - ".xyz": "chemical/x-xyz", - ".bmp": "image/bmp", - ".gif": "image/gif", - ".ief": "image/ief", - ".png": "image/png", - ".wbmp": "image/vnd.wap.wbmp", - ".ras": "image/x-cmu-raster", - ".pnm": "image/x-portable-anymap", - ".pbm": "image/x-portable-bitmap", - ".pgm": "image/x-portable-graymap", - ".ppm": "image/x-portable-pixmap", - ".rgb": "image/x-rgb", - ".xbm": "image/x-xbitmap", - ".xpm": "image/x-xpixmap", - ".xwd": "image/x-xwindowdump", - ".css": "text/css", - ".rtx": "text/richtext", - ".tsv": "text/tab-separated-values", - ".jad": "text/vnd.sun.j2me.app-descriptor", - ".wml": "text/vnd.wap.wml", - ".wmls": "text/vnd.wap.wmlscript", - ".etx": "text/x-setext", - ".mxu": "video/vnd.mpegurl", - ".flv": "video/x-flv", - ".wm": "video/x-ms-wm", - ".wmv": "video/x-ms-wmv", - ".wmx": "video/x-ms-wmx", - ".wvx": "video/x-ms-wvx", - ".avi": "video/x-msvideo", - ".movie": "video/x-sgi-movie", - ".ice": "x-conference/x-cooltalk", - ".3gp": "video/3gpp", - ".ai": "application/postscript", - ".aif": "audio/x-aiff", - ".aifc": "audio/x-aiff", - ".aiff": "audio/x-aiff", - ".asc": "text/plain", - ".atom": "application/atom+xml", - ".au": "audio/basic", - ".bin": "application/octet-stream", - ".cdf": "application/x-netcdf", - ".cgm": "image/cgm", - ".class": "application/octet-stream", - ".dcr": "application/x-director", - ".dif": "video/x-dv", - ".dir": "application/x-director", - ".djv": "image/vnd.djvu", - ".djvu": "image/vnd.djvu", - ".dll": "application/octet-stream", - ".dmg": "application/octet-stream", - ".dms": "application/octet-stream", - ".dtd": "application/xml-dtd", - ".dv": "video/x-dv", - ".dxr": "application/x-director", - ".eps": "application/postscript", - ".exe": "application/octet-stream", - ".ez": "application/andrew-inset", - ".gram": "application/srgs", - ".grxml": "application/srgs+xml", - ".gz": "application/x-gzip", - ".htm": "text/html", - ".html": "text/html", - ".ico": "image/x-icon", - ".ics": "text/calendar", - ".ifb": "text/calendar", - ".iges": "model/iges", - ".igs": "model/iges", - ".jp2": "image/jp2", - ".jpe": "image/jpeg", - ".jpeg": "image/jpeg", - ".jpg": "image/jpeg", - ".kar": "audio/midi", - ".lha": "application/octet-stream", - ".lzh": "application/octet-stream", - ".m4a": "audio/mp4a-latm", - ".m4p": "audio/mp4a-latm", - ".m4u": "video/vnd.mpegurl", - ".m4v": "video/x-m4v", - ".mac": "image/x-macpaint", - ".mathml": "application/mathml+xml", - ".mesh": "model/mesh", - ".mid": "audio/midi", - ".midi": "audio/midi", - ".mov": "video/quicktime", - ".mp2": "audio/mpeg", - ".mp3": "audio/mpeg", - ".mp4": "video/mp4", - ".mpe": "video/mpeg", - ".mpeg": "video/mpeg", - ".mpg": "video/mpeg", - ".mpga": "audio/mpeg", - ".msh": "model/mesh", - ".nc": "application/x-netcdf", - ".oda": "application/oda", - ".ogv": "video/ogv", - ".pct": "image/pict", - ".pic": "image/pict", - ".pict": "image/pict", - ".pnt": "image/x-macpaint", - ".pntg": "image/x-macpaint", - ".ps": "application/postscript", - ".qt": "video/quicktime", - ".qti": "image/x-quicktime", - ".qtif": "image/x-quicktime", - ".ram": "audio/x-pn-realaudio", - ".rdf": "application/rdf+xml", - ".rm": "application/vnd.rn-realmedia", - ".roff": "application/x-troff", - ".sgm": "text/sgml", - ".sgml": "text/sgml", - ".silo": "model/mesh", - ".skd": "application/x-koan", - ".skm": "application/x-koan", - ".skp": "application/x-koan", - ".skt": "application/x-koan", - ".smi": "application/smil", - ".smil": "application/smil", - ".snd": "audio/basic", - ".so": "application/octet-stream", - ".svg": "image/svg+xml", - ".t": "application/x-troff", - ".texi": "application/x-texinfo", - ".texinfo": "application/x-texinfo", - ".tif": "image/tiff", - ".tiff": "image/tiff", - ".tr": "application/x-troff", - ".txt": "text/plain", - ".vrml": "model/vrml", - ".vxml": "application/voicexml+xml", - ".webm": "video/webm", - ".wrl": "model/vrml", - ".xht": "application/xhtml+xml", - ".xhtml": "application/xhtml+xml", - ".xml": "application/xml", - ".xsl": "application/xml", - ".xslt": "application/xslt+xml", - ".xul": "application/vnd.mozilla.xul+xml", - ".webp": "image/webp", - ".323": "text/h323", - ".aab": "application/x-authoware-bin", - ".aam": "application/x-authoware-map", - ".aas": "application/x-authoware-seg", - ".acx": "application/internet-property-stream", - ".als": "audio/X-Alpha5", - ".amc": "application/x-mpeg", - ".ani": "application/octet-stream", - ".asd": "application/astound", - ".asf": "video/x-ms-asf", - ".asn": "application/astound", - ".asp": "application/x-asap", - ".asr": "video/x-ms-asf", - ".asx": "video/x-ms-asf", - ".avb": "application/octet-stream", - ".awb": "audio/amr-wb", - ".axs": "application/olescript", - ".bas": "text/plain", - ".bin ": "application/octet-stream", - ".bld": "application/bld", - ".bld2": "application/bld2", - ".bpk": "application/octet-stream", - ".c": "text/plain", - ".cal": "image/x-cals", - ".cat": "application/vnd.ms-pkiseccat", - ".ccn": "application/x-cnc", - ".cco": "application/x-cocoa", - ".cer": "application/x-x509-ca-cert", - ".cgi": "magnus-internal/cgi", - ".chat": "application/x-chat", - ".clp": "application/x-msclip", - ".cmx": "image/x-cmx", - ".co": "application/x-cult3d-object", - ".cod": "image/cis-cod", - ".conf": "text/plain", - ".cpp": "text/plain", - ".crd": "application/x-mscardfile", - ".crl": "application/pkix-crl", - ".crt": "application/x-x509-ca-cert", - ".csm": "chemical/x-csml", - ".csml": "chemical/x-csml", - ".cur": "application/octet-stream", - ".dcm": "x-lml/x-evm", - ".dcx": "image/x-dcx", - ".der": "application/x-x509-ca-cert", - ".dhtml": "text/html", - ".dot": "application/msword", - ".dwf": "drawing/x-dwf", - ".dwg": "application/x-autocad", - ".dxf": "application/x-autocad", - ".ebk": "application/x-expandedbook", - ".emb": "chemical/x-embl-dl-nucleotide", - ".embl": "chemical/x-embl-dl-nucleotide", - ".epub": "application/epub+zip", - ".eri": "image/x-eri", - ".es": "audio/echospeech", - ".esl": "audio/echospeech", - ".etc": "application/x-earthtime", - ".evm": "x-lml/x-evm", - ".evy": "application/envoy", - ".fh4": "image/x-freehand", - ".fh5": "image/x-freehand", - ".fhc": "image/x-freehand", - ".fif": "application/fractals", - ".flr": "x-world/x-vrml", - ".fm": "application/x-maker", - ".fpx": "image/x-fpx", - ".fvi": "video/isivideo", - ".gau": "chemical/x-gaussian-input", - ".gca": "application/x-gca-compressed", - ".gdb": "x-lml/x-gdb", - ".gps": "application/x-gps", - ".h": "text/plain", - ".hdm": "text/x-hdml", - ".hdml": "text/x-hdml", - ".hlp": "application/winhlp", - ".hta": "application/hta", - ".htc": "text/x-component", - ".hts": "text/html", - ".htt": "text/webviewhtml", - ".ifm": "image/gif", - ".ifs": "image/ifs", - ".iii": "application/x-iphone", - ".imy": "audio/melody", - ".ins": "application/x-internet-signup", - ".ips": "application/x-ipscript", - ".ipx": "application/x-ipix", - ".isp": "application/x-internet-signup", - ".it": "audio/x-mod", - ".itz": "audio/x-mod", - ".ivr": "i-world/i-vrml", - ".j2k": "image/j2k", - ".jam": "application/x-jam", - ".java": "text/plain", - ".jfif": "image/pipeg", - ".jpz": "image/jpeg", - ".jwc": "application/jwc", - ".kjx": "application/x-kjx", - ".lak": "x-lml/x-lak", - ".lcc": "application/fastman", - ".lcl": "application/x-digitalloca", - ".lcr": "application/x-digitalloca", - ".lgh": "application/lgh", - ".lml": "x-lml/x-lml", - ".lmlpack": "x-lml/x-lmlpack", - ".log": "text/plain", - ".lsf": "video/x-la-asf", - ".lsx": "video/x-la-asf", - ".m13": "application/x-msmediaview", - ".m14": "application/x-msmediaview", - ".m15": "audio/x-mod", - ".m3url": "audio/x-mpegurl", - ".m4b": "audio/mp4a-latm", - ".ma1": "audio/ma1", - ".ma2": "audio/ma2", - ".ma3": "audio/ma3", - ".ma5": "audio/ma5", - ".map": "magnus-internal/imagemap", - ".mbd": "application/mbedlet", - ".mct": "application/x-mascot", - ".mdb": "application/x-msaccess", - ".mdz": "audio/x-mod", - ".mel": "text/x-vmel", - ".mht": "message/rfc822", - ".mhtml": "message/rfc822", - ".mi": "application/x-mif", - ".mil": "image/x-cals", - ".mio": "audio/x-mio", - ".mmf": "application/x-skt-lbs", - ".mng": "video/x-mng", - ".mny": "application/x-msmoney", - ".moc": "application/x-mocha", - ".mocha": "application/x-mocha", - ".mod": "audio/x-mod", - ".mof": "application/x-yumekara", - ".mol": "chemical/x-mdl-molfile", - ".mop": "chemical/x-mopac-input", - ".mpa": "video/mpeg", - ".mpc": "application/vnd.mpohun.certificate", - ".mpg4": "video/mp4", - ".mpn": "application/vnd.mophun.application", - ".mpp": "application/vnd.ms-project", - ".mps": "application/x-mapserver", - ".mpv2": "video/mpeg", - ".mrl": "text/x-mrml", - ".mrm": "application/x-mrm", - ".msg": "application/vnd.ms-outlook", - ".mts": "application/metastream", - ".mtx": "application/metastream", - ".mtz": "application/metastream", - ".mvb": "application/x-msmediaview", - ".mzv": "application/metastream", - ".nar": "application/zip", - ".nbmp": "image/nbmp", - ".ndb": "x-lml/x-ndb", - ".ndwn": "application/ndwn", - ".nif": "application/x-nif", - ".nmz": "application/x-scream", - ".nokia-op-logo": "image/vnd.nok-oplogo-color", - ".npx": "application/x-netfpx", - ".nsnd": "audio/nsnd", - ".nva": "application/x-neva1", - ".nws": "message/rfc822", - ".oom": "application/x-AtlasMate-Plugin", - ".p10": "application/pkcs10", - ".p12": "application/x-pkcs12", - ".p7b": "application/x-pkcs7-certificates", - ".p7c": "application/x-pkcs7-mime", - ".p7m": "application/x-pkcs7-mime", - ".p7r": "application/x-pkcs7-certreqresp", - ".p7s": "application/x-pkcs7-signature", - ".pac": "audio/x-pac", - ".pae": "audio/x-epac", - ".pan": "application/x-pan", - ".pcx": "image/x-pcx", - ".pda": "image/x-pda", - ".pfr": "application/font-tdpfr", - ".pfx": "application/x-pkcs12", - ".pko": "application/ynd.ms-pkipko", - ".pm": "application/x-perl", - ".pma": "application/x-perfmon", - ".pmc": "application/x-perfmon", - ".pmd": "application/x-pmd", - ".pml": "application/x-perfmon", - ".pmr": "application/x-perfmon", - ".pmw": "application/x-perfmon", - ".pnz": "image/png", - ".pot,": "application/vnd.ms-powerpoint", - ".pps": "application/vnd.ms-powerpoint", - ".pqf": "application/x-cprplayer", - ".pqi": "application/cprplayer", - ".prc": "application/x-prc", - ".prf": "application/pics-rules", - ".prop": "text/plain", - ".proxy": "application/x-ns-proxy-autoconfig", - ".ptlk": "application/listenup", - ".pub": "application/x-mspublisher", - ".pvx": "video/x-pv-pvx", - ".qcp": "audio/vnd.qcelp", - ".r3t": "text/vnd.rn-realtext3d", - ".rar": "application/octet-stream", - ".rc": "text/plain", - ".rf": "image/vnd.rn-realflash", - ".rlf": "application/x-richlink", - ".rmf": "audio/x-rmf", - ".rmi": "audio/mid", - ".rmm": "audio/x-pn-realaudio", - ".rmvb": "audio/x-pn-realaudio", - ".rnx": "application/vnd.rn-realplayer", - ".rp": "image/vnd.rn-realpix", - ".rt": "text/vnd.rn-realtext", - ".rte": "x-lml/x-gps", - ".rtg": "application/metastream", - ".rv": "video/vnd.rn-realvideo", - ".rwc": "application/x-rogerwilco", - ".s3m": "audio/x-mod", - ".s3z": "audio/x-mod", - ".sca": "application/x-supercard", - ".scd": "application/x-msschedule", - ".sct": "text/scriptlet", - ".sdf": "application/e-score", - ".sea": "application/x-stuffit", - ".setpay": "application/set-payment-initiation", - ".setreg": "application/set-registration-initiation", - ".shtml": "text/html", - ".shtm": "text/html", - ".shw": "application/presentations", - ".si6": "image/si6", - ".si7": "image/vnd.stiwap.sis", - ".si9": "image/vnd.lgtwap.sis", - ".slc": "application/x-salsa", - ".smd": "audio/x-smd", - ".smp": "application/studiom", - ".smz": "audio/x-smd", - ".spc": "application/x-pkcs7-certificates", - ".spr": "application/x-sprite", - ".sprite": "application/x-sprite", - ".sdp": "application/sdp", - ".spt": "application/x-spt", - ".sst": "application/vnd.ms-pkicertstore", - ".stk": "application/hyperstudio", - ".stl": "application/vnd.ms-pkistl", - ".stm": "text/html", - ".svf": "image/vnd", - ".svh": "image/svh", - ".svr": "x-world/x-svr", - ".swfl": "application/x-shockwave-flash", - ".tad": "application/octet-stream", - ".talk": "text/x-speech", - ".taz": "application/x-tar", - ".tbp": "application/x-timbuktu", - ".tbt": "application/x-timbuktu", - ".tgz": "application/x-compressed", - ".thm": "application/vnd.eri.thm", - ".tki": "application/x-tkined", - ".tkined": "application/x-tkined", - ".toc": "application/toc", - ".toy": "image/toy", - ".trk": "x-lml/x-gps", - ".trm": "application/x-msterminal", - ".tsi": "audio/tsplayer", - ".tsp": "application/dsptype", - ".ttf": "application/octet-stream", - ".ttz": "application/t-time", - ".uls": "text/iuls", - ".ult": "audio/x-mod", - ".uu": "application/x-uuencode", - ".uue": "application/x-uuencode", - ".vcf": "text/x-vcard", - ".vdo": "video/vdo", - ".vib": "audio/vib", - ".viv": "video/vivo", - ".vivo": "video/vivo", - ".vmd": "application/vocaltec-media-desc", - ".vmf": "application/vocaltec-media-file", - ".vmi": "application/x-dreamcast-vms-info", - ".vms": "application/x-dreamcast-vms", - ".vox": "audio/voxware", - ".vqe": "audio/x-twinvq-plugin", - ".vqf": "audio/x-twinvq", - ".vql": "audio/x-twinvq", - ".vre": "x-world/x-vream", - ".vrt": "x-world/x-vrt", - ".vrw": "x-world/x-vream", - ".vts": "workbook/formulaone", - ".wcm": "application/vnd.ms-works", - ".wdb": "application/vnd.ms-works", - ".web": "application/vnd.xara", - ".wi": "image/wavelet", - ".wis": "application/x-InstallShield", - ".wks": "application/vnd.ms-works", - ".wmd": "application/x-ms-wmd", - ".wmf": "application/x-msmetafile", - ".wmlscript": "text/vnd.wap.wmlscript", - ".wmz": "application/x-ms-wmz", - ".wpng": "image/x-up-wpng", - ".wps": "application/vnd.ms-works", - ".wpt": "x-lml/x-gps", - ".wri": "application/x-mswrite", - ".wrz": "x-world/x-vrml", - ".ws": "text/vnd.wap.wmlscript", - ".wsc": "application/vnd.wap.wmlscriptc", - ".wv": "video/wavelet", - ".wxl": "application/x-wxl", - ".x-gzip": "application/x-gzip", - ".xaf": "x-world/x-vrml", - ".xar": "application/vnd.xara", - ".xdm": "application/x-xdma", - ".xdma": "application/x-xdma", - ".xdw": "application/vnd.fujixerox.docuworks", - ".xhtm": "application/xhtml+xml", - ".xla": "application/vnd.ms-excel", - ".xlc": "application/vnd.ms-excel", - ".xll": "application/x-excel", - ".xlm": "application/vnd.ms-excel", - ".xlt": "application/vnd.ms-excel", - ".xlw": "application/vnd.ms-excel", - ".xm": "audio/x-mod", - ".xmz": "audio/x-mod", - ".xof": "x-world/x-vrml", - ".xpi": "application/x-xpinstall", - ".xsit": "text/xml", - ".yz1": "application/x-yz1", - ".z": "application/x-compress", - ".zac": "application/x-zaurus-zac", - ".json": "application/json", -} - -// TypeByExtension returns the MIME type associated with the file extension ext. -// gets the file's MIME type for HTTP header Content-Type -func TypeByExtension(filePath string) string { - typ := mime.TypeByExtension(path.Ext(filePath)) - if typ == "" { - typ = extToMimeType[strings.ToLower(path.Ext(filePath))] - } else { - if strings.HasPrefix(typ, "text/") && strings.Contains(typ, "charset=") { - typ = removeCharsetInMimeType(typ) - } - } - return typ -} - -// Remove charset from mime type -func removeCharsetInMimeType(typ string) (str string) { - temArr := strings.Split(typ, ";") - var builder strings.Builder - for i, s := range temArr { - tmpStr := strings.Trim(s, " ") - if strings.Contains(tmpStr, "charset=") { - continue - } - if i == 0 { - builder.WriteString(s) - } else { - builder.WriteString("; " + s) - } - } - return builder.String() -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/model.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/model.go deleted file mode 100644 index b0b4a50271..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/model.go +++ /dev/null @@ -1,69 +0,0 @@ -package oss - -import ( - "hash" - "io" - "net/http" -) - -// Response defines HTTP response from OSS -type Response struct { - StatusCode int - Headers http.Header - Body io.ReadCloser - ClientCRC uint64 - ServerCRC uint64 -} - -func (r *Response) Read(p []byte) (n int, err error) { - return r.Body.Read(p) -} - -// Close close http reponse body -func (r *Response) Close() error { - return r.Body.Close() -} - -// PutObjectRequest is the request of DoPutObject -type PutObjectRequest struct { - ObjectKey string - Reader io.Reader -} - -// GetObjectRequest is the request of DoGetObject -type GetObjectRequest struct { - ObjectKey string -} - -// GetObjectResult is the result of DoGetObject -type GetObjectResult struct { - Response *Response - ClientCRC hash.Hash64 - ServerCRC uint64 -} - -// AppendObjectRequest is the requtest of DoAppendObject -type AppendObjectRequest struct { - ObjectKey string - Reader io.Reader - Position int64 -} - -// AppendObjectResult is the result of DoAppendObject -type AppendObjectResult struct { - NextPosition int64 - CRC uint64 -} - -// UploadPartRequest is the request of DoUploadPart -type UploadPartRequest struct { - InitResult *InitiateMultipartUploadResult - Reader io.Reader - PartSize int64 - PartNumber int -} - -// UploadPartResult is the result of DoUploadPart -type UploadPartResult struct { - Part UploadPart -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multicopy.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multicopy.go deleted file mode 100644 index 56ed8cadfd..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multicopy.go +++ /dev/null @@ -1,474 +0,0 @@ -package oss - -import ( - "crypto/md5" - "encoding/base64" - "encoding/json" - "errors" - "fmt" - "io/ioutil" - "net/http" - "os" - "strconv" -) - -// CopyFile is multipart copy object -// -// srcBucketName source bucket name -// srcObjectKey source object name -// destObjectKey target object name in the form of bucketname.objectkey -// partSize the part size in byte. -// options object's contraints. Check out function InitiateMultipartUpload. -// -// error it's nil if the operation succeeds, otherwise it's an error object. -// -func (bucket Bucket) CopyFile(srcBucketName, srcObjectKey, destObjectKey string, partSize int64, options ...Option) error { - destBucketName := bucket.BucketName - if partSize < MinPartSize || partSize > MaxPartSize { - return errors.New("oss: part size invalid range (1024KB, 5GB]") - } - - cpConf := getCpConfig(options) - routines := getRoutines(options) - - var strVersionId string - versionId, _ := FindOption(options, "versionId", nil) - if versionId != nil { - strVersionId = versionId.(string) - } - - if cpConf != nil && cpConf.IsEnable { - cpFilePath := getCopyCpFilePath(cpConf, srcBucketName, srcObjectKey, destBucketName, destObjectKey, strVersionId) - if cpFilePath != "" { - return bucket.copyFileWithCp(srcBucketName, srcObjectKey, destBucketName, destObjectKey, partSize, options, cpFilePath, routines) - } - } - - return bucket.copyFile(srcBucketName, srcObjectKey, destBucketName, destObjectKey, - partSize, options, routines) -} - -func getCopyCpFilePath(cpConf *cpConfig, srcBucket, srcObject, destBucket, destObject, versionId string) string { - if cpConf.FilePath == "" && cpConf.DirPath != "" { - dest := fmt.Sprintf("oss://%v/%v", destBucket, destObject) - src := fmt.Sprintf("oss://%v/%v", srcBucket, srcObject) - cpFileName := getCpFileName(src, dest, versionId) - cpConf.FilePath = cpConf.DirPath + string(os.PathSeparator) + cpFileName - } - return cpConf.FilePath -} - -// ----- Concurrently copy without checkpoint --------- - -// copyWorkerArg defines the copy worker arguments -type copyWorkerArg struct { - bucket *Bucket - imur InitiateMultipartUploadResult - srcBucketName string - srcObjectKey string - options []Option - hook copyPartHook -} - -// copyPartHook is the hook for testing purpose -type copyPartHook func(part copyPart) error - -var copyPartHooker copyPartHook = defaultCopyPartHook - -func defaultCopyPartHook(part copyPart) error { - return nil -} - -// copyWorker copies worker -func copyWorker(id int, arg copyWorkerArg, jobs <-chan copyPart, results chan<- UploadPart, failed chan<- error, die <-chan bool) { - for chunk := range jobs { - if err := arg.hook(chunk); err != nil { - failed <- err - break - } - chunkSize := chunk.End - chunk.Start + 1 - part, err := arg.bucket.UploadPartCopy(arg.imur, arg.srcBucketName, arg.srcObjectKey, - chunk.Start, chunkSize, chunk.Number, arg.options...) - if err != nil { - failed <- err - break - } - select { - case <-die: - return - default: - } - results <- part - } -} - -// copyScheduler -func copyScheduler(jobs chan copyPart, parts []copyPart) { - for _, part := range parts { - jobs <- part - } - close(jobs) -} - -// copyPart structure -type copyPart struct { - Number int // Part number (from 1 to 10,000) - Start int64 // The start index in the source file. - End int64 // The end index in the source file -} - -// getCopyParts calculates copy parts -func getCopyParts(objectSize, partSize int64) []copyPart { - parts := []copyPart{} - part := copyPart{} - i := 0 - for offset := int64(0); offset < objectSize; offset += partSize { - part.Number = i + 1 - part.Start = offset - part.End = GetPartEnd(offset, objectSize, partSize) - parts = append(parts, part) - i++ - } - return parts -} - -// getSrcObjectBytes gets the source file size -func getSrcObjectBytes(parts []copyPart) int64 { - var ob int64 - for _, part := range parts { - ob += (part.End - part.Start + 1) - } - return ob -} - -// copyFile is a concurrently copy without checkpoint -func (bucket Bucket) copyFile(srcBucketName, srcObjectKey, destBucketName, destObjectKey string, - partSize int64, options []Option, routines int) error { - descBucket, err := bucket.Client.Bucket(destBucketName) - srcBucket, err := bucket.Client.Bucket(srcBucketName) - listener := GetProgressListener(options) - - // choice valid options - headerOptions := ChoiceHeadObjectOption(options) - partOptions := ChoiceTransferPartOption(options) - completeOptions := ChoiceCompletePartOption(options) - abortOptions := ChoiceAbortPartOption(options) - - meta, err := srcBucket.GetObjectDetailedMeta(srcObjectKey, headerOptions...) - if err != nil { - return err - } - - objectSize, err := strconv.ParseInt(meta.Get(HTTPHeaderContentLength), 10, 0) - if err != nil { - return err - } - - // Get copy parts - parts := getCopyParts(objectSize, partSize) - // Initialize the multipart upload - imur, err := descBucket.InitiateMultipartUpload(destObjectKey, options...) - if err != nil { - return err - } - - jobs := make(chan copyPart, len(parts)) - results := make(chan UploadPart, len(parts)) - failed := make(chan error) - die := make(chan bool) - - var completedBytes int64 - totalBytes := getSrcObjectBytes(parts) - event := newProgressEvent(TransferStartedEvent, 0, totalBytes, 0) - publishProgress(listener, event) - - // Start to copy workers - arg := copyWorkerArg{descBucket, imur, srcBucketName, srcObjectKey, partOptions, copyPartHooker} - for w := 1; w <= routines; w++ { - go copyWorker(w, arg, jobs, results, failed, die) - } - - // Start the scheduler - go copyScheduler(jobs, parts) - - // Wait for the parts finished. - completed := 0 - ups := make([]UploadPart, len(parts)) - for completed < len(parts) { - select { - case part := <-results: - completed++ - ups[part.PartNumber-1] = part - copyBytes := (parts[part.PartNumber-1].End - parts[part.PartNumber-1].Start + 1) - completedBytes += copyBytes - event = newProgressEvent(TransferDataEvent, completedBytes, totalBytes, copyBytes) - publishProgress(listener, event) - case err := <-failed: - close(die) - descBucket.AbortMultipartUpload(imur, abortOptions...) - event = newProgressEvent(TransferFailedEvent, completedBytes, totalBytes, 0) - publishProgress(listener, event) - return err - } - - if completed >= len(parts) { - break - } - } - - event = newProgressEvent(TransferCompletedEvent, completedBytes, totalBytes, 0) - publishProgress(listener, event) - - // Complete the multipart upload - _, err = descBucket.CompleteMultipartUpload(imur, ups, completeOptions...) - if err != nil { - bucket.AbortMultipartUpload(imur, abortOptions...) - return err - } - return nil -} - -// ----- Concurrently copy with checkpoint ----- - -const copyCpMagic = "84F1F18C-FF1D-403B-A1D8-9DEB5F65910A" - -type copyCheckpoint struct { - Magic string // Magic - MD5 string // CP content MD5 - SrcBucketName string // Source bucket - SrcObjectKey string // Source object - DestBucketName string // Target bucket - DestObjectKey string // Target object - CopyID string // Copy ID - ObjStat objectStat // Object stat - Parts []copyPart // Copy parts - CopyParts []UploadPart // The uploaded parts - PartStat []bool // The part status -} - -// isValid checks if the data is valid which means CP is valid and object is not updated. -func (cp copyCheckpoint) isValid(meta http.Header) (bool, error) { - // Compare CP's magic number and the MD5. - cpb := cp - cpb.MD5 = "" - js, _ := json.Marshal(cpb) - sum := md5.Sum(js) - b64 := base64.StdEncoding.EncodeToString(sum[:]) - - if cp.Magic != downloadCpMagic || b64 != cp.MD5 { - return false, nil - } - - objectSize, err := strconv.ParseInt(meta.Get(HTTPHeaderContentLength), 10, 64) - if err != nil { - return false, err - } - - // Compare the object size and last modified time and etag. - if cp.ObjStat.Size != objectSize || - cp.ObjStat.LastModified != meta.Get(HTTPHeaderLastModified) || - cp.ObjStat.Etag != meta.Get(HTTPHeaderEtag) { - return false, nil - } - - return true, nil -} - -// load loads from the checkpoint file -func (cp *copyCheckpoint) load(filePath string) error { - contents, err := ioutil.ReadFile(filePath) - if err != nil { - return err - } - - err = json.Unmarshal(contents, cp) - return err -} - -// update updates the parts status -func (cp *copyCheckpoint) update(part UploadPart) { - cp.CopyParts[part.PartNumber-1] = part - cp.PartStat[part.PartNumber-1] = true -} - -// dump dumps the CP to the file -func (cp *copyCheckpoint) dump(filePath string) error { - bcp := *cp - - // Calculate MD5 - bcp.MD5 = "" - js, err := json.Marshal(bcp) - if err != nil { - return err - } - sum := md5.Sum(js) - b64 := base64.StdEncoding.EncodeToString(sum[:]) - bcp.MD5 = b64 - - // Serialization - js, err = json.Marshal(bcp) - if err != nil { - return err - } - - // Dump - return ioutil.WriteFile(filePath, js, FilePermMode) -} - -// todoParts returns unfinished parts -func (cp copyCheckpoint) todoParts() []copyPart { - dps := []copyPart{} - for i, ps := range cp.PartStat { - if !ps { - dps = append(dps, cp.Parts[i]) - } - } - return dps -} - -// getCompletedBytes returns finished bytes count -func (cp copyCheckpoint) getCompletedBytes() int64 { - var completedBytes int64 - for i, part := range cp.Parts { - if cp.PartStat[i] { - completedBytes += (part.End - part.Start + 1) - } - } - return completedBytes -} - -// prepare initializes the multipart upload -func (cp *copyCheckpoint) prepare(meta http.Header, srcBucket *Bucket, srcObjectKey string, destBucket *Bucket, destObjectKey string, - partSize int64, options []Option) error { - // CP - cp.Magic = copyCpMagic - cp.SrcBucketName = srcBucket.BucketName - cp.SrcObjectKey = srcObjectKey - cp.DestBucketName = destBucket.BucketName - cp.DestObjectKey = destObjectKey - - objectSize, err := strconv.ParseInt(meta.Get(HTTPHeaderContentLength), 10, 64) - if err != nil { - return err - } - - cp.ObjStat.Size = objectSize - cp.ObjStat.LastModified = meta.Get(HTTPHeaderLastModified) - cp.ObjStat.Etag = meta.Get(HTTPHeaderEtag) - - // Parts - cp.Parts = getCopyParts(objectSize, partSize) - cp.PartStat = make([]bool, len(cp.Parts)) - for i := range cp.PartStat { - cp.PartStat[i] = false - } - cp.CopyParts = make([]UploadPart, len(cp.Parts)) - - // Init copy - imur, err := destBucket.InitiateMultipartUpload(destObjectKey, options...) - if err != nil { - return err - } - cp.CopyID = imur.UploadID - - return nil -} - -func (cp *copyCheckpoint) complete(bucket *Bucket, parts []UploadPart, cpFilePath string, options []Option) error { - imur := InitiateMultipartUploadResult{Bucket: cp.DestBucketName, - Key: cp.DestObjectKey, UploadID: cp.CopyID} - _, err := bucket.CompleteMultipartUpload(imur, parts, options...) - if err != nil { - return err - } - os.Remove(cpFilePath) - return err -} - -// copyFileWithCp is concurrently copy with checkpoint -func (bucket Bucket) copyFileWithCp(srcBucketName, srcObjectKey, destBucketName, destObjectKey string, - partSize int64, options []Option, cpFilePath string, routines int) error { - descBucket, err := bucket.Client.Bucket(destBucketName) - srcBucket, err := bucket.Client.Bucket(srcBucketName) - listener := GetProgressListener(options) - - // Load CP data - ccp := copyCheckpoint{} - err = ccp.load(cpFilePath) - if err != nil { - os.Remove(cpFilePath) - } - - // choice valid options - headerOptions := ChoiceHeadObjectOption(options) - partOptions := ChoiceTransferPartOption(options) - completeOptions := ChoiceCompletePartOption(options) - - meta, err := srcBucket.GetObjectDetailedMeta(srcObjectKey, headerOptions...) - if err != nil { - return err - } - - // Load error or the CP data is invalid---reinitialize - valid, err := ccp.isValid(meta) - if err != nil || !valid { - if err = ccp.prepare(meta, srcBucket, srcObjectKey, descBucket, destObjectKey, partSize, options); err != nil { - return err - } - os.Remove(cpFilePath) - } - - // Unfinished parts - parts := ccp.todoParts() - imur := InitiateMultipartUploadResult{ - Bucket: destBucketName, - Key: destObjectKey, - UploadID: ccp.CopyID} - - jobs := make(chan copyPart, len(parts)) - results := make(chan UploadPart, len(parts)) - failed := make(chan error) - die := make(chan bool) - - completedBytes := ccp.getCompletedBytes() - event := newProgressEvent(TransferStartedEvent, completedBytes, ccp.ObjStat.Size, 0) - publishProgress(listener, event) - - // Start the worker coroutines - arg := copyWorkerArg{descBucket, imur, srcBucketName, srcObjectKey, partOptions, copyPartHooker} - for w := 1; w <= routines; w++ { - go copyWorker(w, arg, jobs, results, failed, die) - } - - // Start the scheduler - go copyScheduler(jobs, parts) - - // Wait for the parts completed. - completed := 0 - for completed < len(parts) { - select { - case part := <-results: - completed++ - ccp.update(part) - ccp.dump(cpFilePath) - copyBytes := (parts[part.PartNumber-1].End - parts[part.PartNumber-1].Start + 1) - completedBytes += copyBytes - event = newProgressEvent(TransferDataEvent, completedBytes, ccp.ObjStat.Size, copyBytes) - publishProgress(listener, event) - case err := <-failed: - close(die) - event = newProgressEvent(TransferFailedEvent, completedBytes, ccp.ObjStat.Size, 0) - publishProgress(listener, event) - return err - } - - if completed >= len(parts) { - break - } - } - - event = newProgressEvent(TransferCompletedEvent, completedBytes, ccp.ObjStat.Size, 0) - publishProgress(listener, event) - - return ccp.complete(descBucket, ccp.CopyParts, cpFilePath, completeOptions) -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multipart.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multipart.go deleted file mode 100644 index aea7fafb6e..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/multipart.go +++ /dev/null @@ -1,320 +0,0 @@ -package oss - -import ( - "bytes" - "encoding/xml" - "io" - "io/ioutil" - "net/http" - "net/url" - "os" - "sort" - "strconv" -) - -// InitiateMultipartUpload initializes multipart upload -// -// objectKey object name -// options the object constricts for upload. The valid options are CacheControl, ContentDisposition, ContentEncoding, Expires, -// -// ServerSideEncryption, Meta, check out the following link: -// https://www.alibabacloud.com/help/en/object-storage-service/latest/initiatemultipartupload -// -// InitiateMultipartUploadResult the return value of the InitiateMultipartUpload, which is used for calls later on such as UploadPartFromFile,UploadPartCopy. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) InitiateMultipartUpload(objectKey string, options ...Option) (InitiateMultipartUploadResult, error) { - var imur InitiateMultipartUploadResult - opts := AddContentType(options, objectKey) - params, _ := GetRawParams(options) - paramKeys := []string{"sequential", "withHashContext", "x-oss-enable-md5", "x-oss-enable-sha1", "x-oss-enable-sha256"} - ConvertEmptyValueToNil(params, paramKeys) - params["uploads"] = nil - - resp, err := bucket.do("POST", objectKey, params, opts, nil, nil) - if err != nil { - return imur, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &imur) - return imur, err -} - -// UploadPart uploads parts -// -// After initializing a Multipart Upload, the upload Id and object key could be used for uploading the parts. -// Each part has its part number (ranges from 1 to 10,000). And for each upload Id, the part number identifies the position of the part in the whole file. -// And thus with the same part number and upload Id, another part upload will overwrite the data. -// Except the last one, minimal part size is 100KB. There's no limit on the last part size. -// -// imur the returned value of InitiateMultipartUpload. -// reader io.Reader the reader for the part's data. -// size the part size. -// partNumber the part number (ranges from 1 to 10,000). Invalid part number will lead to InvalidArgument error. -// -// UploadPart the return value of the upload part. It consists of PartNumber and ETag. It's valid when error is nil. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) UploadPart(imur InitiateMultipartUploadResult, reader io.Reader, - partSize int64, partNumber int, options ...Option) (UploadPart, error) { - request := &UploadPartRequest{ - InitResult: &imur, - Reader: reader, - PartSize: partSize, - PartNumber: partNumber, - } - - result, err := bucket.DoUploadPart(request, options) - - return result.Part, err -} - -// UploadPartFromFile uploads part from the file. -// -// imur the return value of a successful InitiateMultipartUpload. -// filePath the local file path to upload. -// startPosition the start position in the local file. -// partSize the part size. -// partNumber the part number (from 1 to 10,000) -// -// UploadPart the return value consists of PartNumber and ETag. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) UploadPartFromFile(imur InitiateMultipartUploadResult, filePath string, - startPosition, partSize int64, partNumber int, options ...Option) (UploadPart, error) { - var part = UploadPart{} - fd, err := os.Open(filePath) - if err != nil { - return part, err - } - defer fd.Close() - fd.Seek(startPosition, os.SEEK_SET) - - request := &UploadPartRequest{ - InitResult: &imur, - Reader: fd, - PartSize: partSize, - PartNumber: partNumber, - } - - result, err := bucket.DoUploadPart(request, options) - - return result.Part, err -} - -// DoUploadPart does the actual part upload. -// -// request part upload request -// -// UploadPartResult the result of uploading part. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) DoUploadPart(request *UploadPartRequest, options []Option) (*UploadPartResult, error) { - listener := GetProgressListener(options) - options = append(options, ContentLength(request.PartSize)) - params := map[string]interface{}{} - params["partNumber"] = strconv.Itoa(request.PartNumber) - params["uploadId"] = request.InitResult.UploadID - resp, err := bucket.do("PUT", request.InitResult.Key, params, options, - &io.LimitedReader{R: request.Reader, N: request.PartSize}, listener) - if err != nil { - return &UploadPartResult{}, err - } - defer resp.Body.Close() - - part := UploadPart{ - ETag: resp.Headers.Get(HTTPHeaderEtag), - PartNumber: request.PartNumber, - } - - if bucket.GetConfig().IsEnableCRC { - err = CheckCRC(resp, "DoUploadPart") - if err != nil { - return &UploadPartResult{part}, err - } - } - - return &UploadPartResult{part}, nil -} - -// UploadPartCopy uploads part copy -// -// imur the return value of InitiateMultipartUpload -// copySrc source Object name -// startPosition the part's start index in the source file -// partSize the part size -// partNumber the part number, ranges from 1 to 10,000. If it exceeds the range OSS returns InvalidArgument error. -// options the constraints of source object for the copy. The copy happens only when these contraints are met. Otherwise it returns error. -// -// CopySourceIfNoneMatch, CopySourceIfModifiedSince CopySourceIfUnmodifiedSince, check out the following link for the detail -// https://www.alibabacloud.com/help/en/object-storage-service/latest/uploadpartcopy -// -// UploadPart the return value consists of PartNumber and ETag. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) UploadPartCopy(imur InitiateMultipartUploadResult, srcBucketName, srcObjectKey string, - startPosition, partSize int64, partNumber int, options ...Option) (UploadPart, error) { - var out UploadPartCopyResult - var part UploadPart - var opts []Option - - //first find version id - versionIdKey := "versionId" - versionId, _ := FindOption(options, versionIdKey, nil) - if versionId == nil { - opts = []Option{CopySource(srcBucketName, url.QueryEscape(srcObjectKey)), - CopySourceRange(startPosition, partSize)} - } else { - opts = []Option{CopySourceVersion(srcBucketName, url.QueryEscape(srcObjectKey), versionId.(string)), - CopySourceRange(startPosition, partSize)} - options = DeleteOption(options, versionIdKey) - } - - opts = append(opts, options...) - - params := map[string]interface{}{} - params["partNumber"] = strconv.Itoa(partNumber) - params["uploadId"] = imur.UploadID - resp, err := bucket.do("PUT", imur.Key, params, opts, nil, nil) - if err != nil { - return part, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - if err != nil { - return part, err - } - part.ETag = out.ETag - part.PartNumber = partNumber - - return part, nil -} - -// CompleteMultipartUpload completes the multipart upload. -// -// imur the return value of InitiateMultipartUpload. -// parts the array of return value of UploadPart/UploadPartFromFile/UploadPartCopy. -// -// CompleteMultipartUploadResponse the return value when the call succeeds. Only valid when the error is nil. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) CompleteMultipartUpload(imur InitiateMultipartUploadResult, - parts []UploadPart, options ...Option) (CompleteMultipartUploadResult, error) { - var out CompleteMultipartUploadResult - - sort.Sort(UploadParts(parts)) - cxml := completeMultipartUploadXML{} - cxml.Part = parts - bs, err := xml.Marshal(cxml) - if err != nil { - return out, err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - params := map[string]interface{}{} - params["uploadId"] = imur.UploadID - resp, err := bucket.do("POST", imur.Key, params, options, buffer, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - if err != nil { - return out, err - } - err = CheckRespCode(resp.StatusCode, []int{http.StatusOK}) - if len(body) > 0 { - if err != nil { - err = tryConvertServiceError(body, resp, err) - } else { - callback, _ := FindOption(options, HTTPHeaderOssCallback, nil) - if callback == nil { - err = xml.Unmarshal(body, &out) - } else { - rb, _ := FindOption(options, responseBody, nil) - if rb != nil { - if rbody, ok := rb.(*[]byte); ok { - *rbody = body - } - } - } - } - } - return out, err -} - -// AbortMultipartUpload aborts the multipart upload. -// -// imur the return value of InitiateMultipartUpload. -// -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) AbortMultipartUpload(imur InitiateMultipartUploadResult, options ...Option) error { - params := map[string]interface{}{} - params["uploadId"] = imur.UploadID - resp, err := bucket.do("DELETE", imur.Key, params, options, nil, nil) - if err != nil { - return err - } - defer resp.Body.Close() - return CheckRespCode(resp.StatusCode, []int{http.StatusNoContent}) -} - -// ListUploadedParts lists the uploaded parts. -// -// imur the return value of InitiateMultipartUpload. -// -// ListUploadedPartsResponse the return value if it succeeds, only valid when error is nil. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) ListUploadedParts(imur InitiateMultipartUploadResult, options ...Option) (ListUploadedPartsResult, error) { - var out ListUploadedPartsResult - options = append(options, EncodingType("url")) - - params := map[string]interface{}{} - params, err := GetRawParams(options) - if err != nil { - return out, err - } - - params["uploadId"] = imur.UploadID - resp, err := bucket.do("GET", imur.Key, params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - if err != nil { - return out, err - } - err = decodeListUploadedPartsResult(&out) - return out, err -} - -// ListMultipartUploads lists all ongoing multipart upload tasks -// -// options listObject's filter. Prefix specifies the returned object's prefix; KeyMarker specifies the returned object's start point in lexicographic order; -// -// MaxKeys specifies the max entries to return; Delimiter is the character for grouping object keys. -// -// ListMultipartUploadResponse the return value if it succeeds, only valid when error is nil. -// error it's nil if the operation succeeds, otherwise it's an error object. -func (bucket Bucket) ListMultipartUploads(options ...Option) (ListMultipartUploadResult, error) { - var out ListMultipartUploadResult - - options = append(options, EncodingType("url")) - params, err := GetRawParams(options) - if err != nil { - return out, err - } - params["uploads"] = nil - - resp, err := bucket.doInner("GET", "", params, options, nil, nil) - if err != nil { - return out, err - } - defer resp.Body.Close() - - err = xmlUnmarshal(resp.Body, &out) - if err != nil { - return out, err - } - err = decodeListMultipartUploadResult(&out) - return out, err -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/option.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/option.go deleted file mode 100644 index 7e517ddbed..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/option.go +++ /dev/null @@ -1,735 +0,0 @@ -package oss - -import ( - "context" - "fmt" - "io/ioutil" - "net/http" - "net/url" - "strconv" - "strings" - "time" -) - -type optionType string - -const ( - optionParam optionType = "HTTPParameter" // URL parameter - optionHTTP optionType = "HTTPHeader" // HTTP header - optionContext optionType = "HTTPContext" // context - optionArg optionType = "FuncArgument" // Function argument - -) - -const ( - deleteObjectsQuiet = "delete-objects-quiet" - routineNum = "x-routine-num" - checkpointConfig = "x-cp-config" - initCRC64 = "init-crc64" - progressListener = "x-progress-listener" - storageClass = "storage-class" - responseHeader = "x-response-header" - redundancyType = "redundancy-type" - objectHashFunc = "object-hash-func" - responseBody = "x-response-body" - contextArg = "x-context-arg" -) - -type ( - optionValue struct { - Value interface{} - Type optionType - } - - // Option HTTP option - Option func(map[string]optionValue) error -) - -// ACL is an option to set X-Oss-Acl header -func ACL(acl ACLType) Option { - return setHeader(HTTPHeaderOssACL, string(acl)) -} - -// ContentType is an option to set Content-Type header -func ContentType(value string) Option { - return setHeader(HTTPHeaderContentType, value) -} - -// ContentLength is an option to set Content-Length header -func ContentLength(length int64) Option { - return setHeader(HTTPHeaderContentLength, strconv.FormatInt(length, 10)) -} - -// CacheControl is an option to set Cache-Control header -func CacheControl(value string) Option { - return setHeader(HTTPHeaderCacheControl, value) -} - -// ContentDisposition is an option to set Content-Disposition header -func ContentDisposition(value string) Option { - return setHeader(HTTPHeaderContentDisposition, value) -} - -// ContentEncoding is an option to set Content-Encoding header -func ContentEncoding(value string) Option { - return setHeader(HTTPHeaderContentEncoding, value) -} - -// ContentLanguage is an option to set Content-Language header -func ContentLanguage(value string) Option { - return setHeader(HTTPHeaderContentLanguage, value) -} - -// ContentMD5 is an option to set Content-MD5 header -func ContentMD5(value string) Option { - return setHeader(HTTPHeaderContentMD5, value) -} - -// Expires is an option to set Expires header -func Expires(t time.Time) Option { - return setHeader(HTTPHeaderExpires, t.Format(http.TimeFormat)) -} - -// Meta is an option to set Meta header -func Meta(key, value string) Option { - return setHeader(HTTPHeaderOssMetaPrefix+key, value) -} - -// Range is an option to set Range header, [start, end] -func Range(start, end int64) Option { - return setHeader(HTTPHeaderRange, fmt.Sprintf("bytes=%d-%d", start, end)) -} - -// NormalizedRange is an option to set Range header, such as 1024-2048 or 1024- or -2048 -func NormalizedRange(nr string) Option { - return setHeader(HTTPHeaderRange, fmt.Sprintf("bytes=%s", strings.TrimSpace(nr))) -} - -// AcceptEncoding is an option to set Accept-Encoding header -func AcceptEncoding(value string) Option { - return setHeader(HTTPHeaderAcceptEncoding, value) -} - -// IfModifiedSince is an option to set If-Modified-Since header -func IfModifiedSince(t time.Time) Option { - return setHeader(HTTPHeaderIfModifiedSince, t.Format(http.TimeFormat)) -} - -// IfUnmodifiedSince is an option to set If-Unmodified-Since header -func IfUnmodifiedSince(t time.Time) Option { - return setHeader(HTTPHeaderIfUnmodifiedSince, t.Format(http.TimeFormat)) -} - -// IfMatch is an option to set If-Match header -func IfMatch(value string) Option { - return setHeader(HTTPHeaderIfMatch, value) -} - -// IfNoneMatch is an option to set IfNoneMatch header -func IfNoneMatch(value string) Option { - return setHeader(HTTPHeaderIfNoneMatch, value) -} - -// CopySource is an option to set X-Oss-Copy-Source header -func CopySource(sourceBucket, sourceObject string) Option { - return setHeader(HTTPHeaderOssCopySource, "/"+sourceBucket+"/"+sourceObject) -} - -// CopySourceVersion is an option to set X-Oss-Copy-Source header,include versionId -func CopySourceVersion(sourceBucket, sourceObject string, versionId string) Option { - return setHeader(HTTPHeaderOssCopySource, "/"+sourceBucket+"/"+sourceObject+"?"+"versionId="+versionId) -} - -// CopySourceRange is an option to set X-Oss-Copy-Source header -func CopySourceRange(startPosition, partSize int64) Option { - val := "bytes=" + strconv.FormatInt(startPosition, 10) + "-" + - strconv.FormatInt((startPosition+partSize-1), 10) - return setHeader(HTTPHeaderOssCopySourceRange, val) -} - -// CopySourceIfMatch is an option to set X-Oss-Copy-Source-If-Match header -func CopySourceIfMatch(value string) Option { - return setHeader(HTTPHeaderOssCopySourceIfMatch, value) -} - -// CopySourceIfNoneMatch is an option to set X-Oss-Copy-Source-If-None-Match header -func CopySourceIfNoneMatch(value string) Option { - return setHeader(HTTPHeaderOssCopySourceIfNoneMatch, value) -} - -// CopySourceIfModifiedSince is an option to set X-Oss-CopySource-If-Modified-Since header -func CopySourceIfModifiedSince(t time.Time) Option { - return setHeader(HTTPHeaderOssCopySourceIfModifiedSince, t.Format(http.TimeFormat)) -} - -// CopySourceIfUnmodifiedSince is an option to set X-Oss-Copy-Source-If-Unmodified-Since header -func CopySourceIfUnmodifiedSince(t time.Time) Option { - return setHeader(HTTPHeaderOssCopySourceIfUnmodifiedSince, t.Format(http.TimeFormat)) -} - -// MetadataDirective is an option to set X-Oss-Metadata-Directive header -func MetadataDirective(directive MetadataDirectiveType) Option { - return setHeader(HTTPHeaderOssMetadataDirective, string(directive)) -} - -// ServerSideEncryption is an option to set X-Oss-Server-Side-Encryption header -func ServerSideEncryption(value string) Option { - return setHeader(HTTPHeaderOssServerSideEncryption, value) -} - -// ServerSideEncryptionKeyID is an option to set X-Oss-Server-Side-Encryption-Key-Id header -func ServerSideEncryptionKeyID(value string) Option { - return setHeader(HTTPHeaderOssServerSideEncryptionKeyID, value) -} - -// ServerSideDataEncryption is an option to set X-Oss-Server-Side-Data-Encryption header -func ServerSideDataEncryption(value string) Option { - return setHeader(HTTPHeaderOssServerSideDataEncryption, value) -} - -// SSECAlgorithm is an option to set X-Oss-Server-Side-Encryption-Customer-Algorithm header -func SSECAlgorithm(value string) Option { - return setHeader(HTTPHeaderSSECAlgorithm, value) -} - -// SSECKey is an option to set X-Oss-Server-Side-Encryption-Customer-Key header -func SSECKey(value string) Option { - return setHeader(HTTPHeaderSSECKey, value) -} - -// SSECKeyMd5 is an option to set X-Oss-Server-Side-Encryption-Customer-Key-Md5 header -func SSECKeyMd5(value string) Option { - return setHeader(HTTPHeaderSSECKeyMd5, value) -} - -// ObjectACL is an option to set X-Oss-Object-Acl header -func ObjectACL(acl ACLType) Option { - return setHeader(HTTPHeaderOssObjectACL, string(acl)) -} - -// symlinkTarget is an option to set X-Oss-Symlink-Target -func symlinkTarget(targetObjectKey string) Option { - return setHeader(HTTPHeaderOssSymlinkTarget, targetObjectKey) -} - -// Origin is an option to set Origin header -func Origin(value string) Option { - return setHeader(HTTPHeaderOrigin, value) -} - -// ObjectStorageClass is an option to set the storage class of object -func ObjectStorageClass(storageClass StorageClassType) Option { - return setHeader(HTTPHeaderOssStorageClass, string(storageClass)) -} - -// Callback is an option to set callback values -func Callback(callback string) Option { - return setHeader(HTTPHeaderOssCallback, callback) -} - -// CallbackVar is an option to set callback user defined values -func CallbackVar(callbackVar string) Option { - return setHeader(HTTPHeaderOssCallbackVar, callbackVar) -} - -// RequestPayer is an option to set payer who pay for the request -func RequestPayer(payerType PayerType) Option { - return setHeader(HTTPHeaderOssRequester, strings.ToLower(string(payerType))) -} - -// RequestPayerParam is an option to set payer who pay for the request -func RequestPayerParam(payerType PayerType) Option { - return addParam(strings.ToLower(HTTPHeaderOssRequester), strings.ToLower(string(payerType))) -} - -// SetTagging is an option to set object tagging -func SetTagging(tagging Tagging) Option { - if len(tagging.Tags) == 0 { - return nil - } - - taggingValue := "" - for index, tag := range tagging.Tags { - if index != 0 { - taggingValue += "&" - } - taggingValue += url.QueryEscape(tag.Key) + "=" + url.QueryEscape(tag.Value) - } - return setHeader(HTTPHeaderOssTagging, taggingValue) -} - -// TaggingDirective is an option to set X-Oss-Metadata-Directive header -func TaggingDirective(directive TaggingDirectiveType) Option { - return setHeader(HTTPHeaderOssTaggingDirective, string(directive)) -} - -// ACReqMethod is an option to set Access-Control-Request-Method header -func ACReqMethod(value string) Option { - return setHeader(HTTPHeaderACReqMethod, value) -} - -// ACReqHeaders is an option to set Access-Control-Request-Headers header -func ACReqHeaders(value string) Option { - return setHeader(HTTPHeaderACReqHeaders, value) -} - -// TrafficLimitHeader is an option to set X-Oss-Traffic-Limit -func TrafficLimitHeader(value int64) Option { - return setHeader(HTTPHeaderOssTrafficLimit, strconv.FormatInt(value, 10)) -} - -// UserAgentHeader is an option to set HTTPHeaderUserAgent -func UserAgentHeader(ua string) Option { - return setHeader(HTTPHeaderUserAgent, ua) -} - -// ForbidOverWrite is an option to set X-Oss-Forbid-Overwrite -func ForbidOverWrite(forbidWrite bool) Option { - if forbidWrite { - return setHeader(HTTPHeaderOssForbidOverWrite, "true") - } else { - return setHeader(HTTPHeaderOssForbidOverWrite, "false") - } -} - -// RangeBehavior is an option to set Range value, such as "standard" -func RangeBehavior(value string) Option { - return setHeader(HTTPHeaderOssRangeBehavior, value) -} - -func PartHashCtxHeader(value string) Option { - return setHeader(HTTPHeaderOssHashCtx, value) -} - -func PartMd5CtxHeader(value string) Option { - return setHeader(HTTPHeaderOssMd5Ctx, value) -} - -func PartHashCtxParam(value string) Option { - return addParam("x-oss-hash-ctx", value) -} - -func PartMd5CtxParam(value string) Option { - return addParam("x-oss-md5-ctx", value) -} - -// Delimiter is an option to set delimiler parameter -func Delimiter(value string) Option { - return addParam("delimiter", value) -} - -// Marker is an option to set marker parameter -func Marker(value string) Option { - return addParam("marker", value) -} - -// MaxKeys is an option to set maxkeys parameter -func MaxKeys(value int) Option { - return addParam("max-keys", strconv.Itoa(value)) -} - -// Prefix is an option to set prefix parameter -func Prefix(value string) Option { - return addParam("prefix", value) -} - -// EncodingType is an option to set encoding-type parameter -func EncodingType(value string) Option { - return addParam("encoding-type", value) -} - -// MaxUploads is an option to set max-uploads parameter -func MaxUploads(value int) Option { - return addParam("max-uploads", strconv.Itoa(value)) -} - -// KeyMarker is an option to set key-marker parameter -func KeyMarker(value string) Option { - return addParam("key-marker", value) -} - -// VersionIdMarker is an option to set version-id-marker parameter -func VersionIdMarker(value string) Option { - return addParam("version-id-marker", value) -} - -// VersionId is an option to set versionId parameter -func VersionId(value string) Option { - return addParam("versionId", value) -} - -// TagKey is an option to set tag key parameter -func TagKey(value string) Option { - return addParam("tag-key", value) -} - -// TagValue is an option to set tag value parameter -func TagValue(value string) Option { - return addParam("tag-value", value) -} - -// UploadIDMarker is an option to set upload-id-marker parameter -func UploadIDMarker(value string) Option { - return addParam("upload-id-marker", value) -} - -// MaxParts is an option to set max-parts parameter -func MaxParts(value int) Option { - return addParam("max-parts", strconv.Itoa(value)) -} - -// PartNumberMarker is an option to set part-number-marker parameter -func PartNumberMarker(value int) Option { - return addParam("part-number-marker", strconv.Itoa(value)) -} - -// Sequential is an option to set sequential parameter for InitiateMultipartUpload -func Sequential() Option { - return addParam("sequential", "") -} - -// WithHashContext is an option to set withHashContext parameter for InitiateMultipartUpload -func WithHashContext() Option { - return addParam("withHashContext", "") -} - -// EnableMd5 is an option to set x-oss-enable-md5 parameter for InitiateMultipartUpload -func EnableMd5() Option { - return addParam("x-oss-enable-md5", "") -} - -// EnableSha1 is an option to set x-oss-enable-sha1 parameter for InitiateMultipartUpload -func EnableSha1() Option { - return addParam("x-oss-enable-sha1", "") -} - -// EnableSha256 is an option to set x-oss-enable-sha256 parameter for InitiateMultipartUpload -func EnableSha256() Option { - return addParam("x-oss-enable-sha256", "") -} - -// ListType is an option to set List-type parameter for ListObjectsV2 -func ListType(value int) Option { - return addParam("list-type", strconv.Itoa(value)) -} - -// StartAfter is an option to set start-after parameter for ListObjectsV2 -func StartAfter(value string) Option { - return addParam("start-after", value) -} - -// ContinuationToken is an option to set Continuation-token parameter for ListObjectsV2 -func ContinuationToken(value string) Option { - if value == "" { - return addParam("continuation-token", nil) - } - return addParam("continuation-token", value) -} - -// FetchOwner is an option to set Fetch-owner parameter for ListObjectsV2 -func FetchOwner(value bool) Option { - if value { - return addParam("fetch-owner", "true") - } - return addParam("fetch-owner", "false") -} - -// DeleteObjectsQuiet false:DeleteObjects in verbose mode; true:DeleteObjects in quite mode. Default is false. -func DeleteObjectsQuiet(isQuiet bool) Option { - return addArg(deleteObjectsQuiet, isQuiet) -} - -// StorageClass bucket storage class -func StorageClass(value StorageClassType) Option { - return addArg(storageClass, value) -} - -// RedundancyType bucket data redundancy type -func RedundancyType(value DataRedundancyType) Option { - return addArg(redundancyType, value) -} - -// RedundancyType bucket data redundancy type -func ObjectHashFunc(value ObjecthashFuncType) Option { - return addArg(objectHashFunc, value) -} - -// WithContext returns an option that sets the context for requests. -func WithContext(ctx context.Context) Option { - return addArg(contextArg, ctx) -} - -// Checkpoint configuration -type cpConfig struct { - IsEnable bool - FilePath string - DirPath string -} - -// Checkpoint sets the isEnable flag and checkpoint file path for DownloadFile/UploadFile. -func Checkpoint(isEnable bool, filePath string) Option { - return addArg(checkpointConfig, &cpConfig{IsEnable: isEnable, FilePath: filePath}) -} - -// CheckpointDir sets the isEnable flag and checkpoint dir path for DownloadFile/UploadFile. -func CheckpointDir(isEnable bool, dirPath string) Option { - return addArg(checkpointConfig, &cpConfig{IsEnable: isEnable, DirPath: dirPath}) -} - -// Routines DownloadFile/UploadFile routine count -func Routines(n int) Option { - return addArg(routineNum, n) -} - -// InitCRC Init AppendObject CRC -func InitCRC(initCRC uint64) Option { - return addArg(initCRC64, initCRC) -} - -// Progress set progress listener -func Progress(listener ProgressListener) Option { - return addArg(progressListener, listener) -} - -// GetResponseHeader for get response http header -func GetResponseHeader(respHeader *http.Header) Option { - return addArg(responseHeader, respHeader) -} - -// CallbackResult for get response of call back -func CallbackResult(body *[]byte) Option { - return addArg(responseBody, body) -} - -// ResponseContentType is an option to set response-content-type param -func ResponseContentType(value string) Option { - return addParam("response-content-type", value) -} - -// ResponseContentLanguage is an option to set response-content-language param -func ResponseContentLanguage(value string) Option { - return addParam("response-content-language", value) -} - -// ResponseExpires is an option to set response-expires param -func ResponseExpires(value string) Option { - return addParam("response-expires", value) -} - -// ResponseCacheControl is an option to set response-cache-control param -func ResponseCacheControl(value string) Option { - return addParam("response-cache-control", value) -} - -// ResponseContentDisposition is an option to set response-content-disposition param -func ResponseContentDisposition(value string) Option { - return addParam("response-content-disposition", value) -} - -// ResponseContentEncoding is an option to set response-content-encoding param -func ResponseContentEncoding(value string) Option { - return addParam("response-content-encoding", value) -} - -// Process is an option to set x-oss-process param -func Process(value string) Option { - return addParam("x-oss-process", value) -} - -// TrafficLimitParam is a option to set x-oss-traffic-limit -func TrafficLimitParam(value int64) Option { - return addParam("x-oss-traffic-limit", strconv.FormatInt(value, 10)) -} - -// SetHeader Allow users to set personalized http headers -func SetHeader(key string, value interface{}) Option { - return setHeader(key, value) -} - -// AddParam Allow users to set personalized http params -func AddParam(key string, value interface{}) Option { - return addParam(key, value) -} - -func setHeader(key string, value interface{}) Option { - return func(params map[string]optionValue) error { - if value == nil { - return nil - } - params[key] = optionValue{value, optionHTTP} - return nil - } -} - -func addParam(key string, value interface{}) Option { - return func(params map[string]optionValue) error { - if value == nil { - return nil - } - params[key] = optionValue{value, optionParam} - return nil - } -} - -func addArg(key string, value interface{}) Option { - return func(params map[string]optionValue) error { - if value == nil { - return nil - } - params[key] = optionValue{value, optionArg} - return nil - } -} - -func handleOptions(headers map[string]string, options []Option) error { - params := map[string]optionValue{} - for _, option := range options { - if option != nil { - if err := option(params); err != nil { - return err - } - } - } - - for k, v := range params { - if v.Type == optionHTTP { - headers[k] = v.Value.(string) - } - } - return nil -} - -func GetRawParams(options []Option) (map[string]interface{}, error) { - // Option - params := map[string]optionValue{} - for _, option := range options { - if option != nil { - if err := option(params); err != nil { - return nil, err - } - } - } - - paramsm := map[string]interface{}{} - // Serialize - for k, v := range params { - if v.Type == optionParam { - vs := params[k] - paramsm[k] = vs.Value.(string) - } - } - - return paramsm, nil -} - -func FindOption(options []Option, param string, defaultVal interface{}) (interface{}, error) { - params := map[string]optionValue{} - for _, option := range options { - if option != nil { - if err := option(params); err != nil { - return nil, err - } - } - } - - if val, ok := params[param]; ok { - return val.Value, nil - } - return defaultVal, nil -} - -func IsOptionSet(options []Option, option string) (bool, interface{}, error) { - params := map[string]optionValue{} - for _, option := range options { - if option != nil { - if err := option(params); err != nil { - return false, nil, err - } - } - } - - if val, ok := params[option]; ok { - return true, val.Value, nil - } - return false, nil, nil -} - -func DeleteOption(options []Option, strKey string) []Option { - var outOption []Option - params := map[string]optionValue{} - for _, option := range options { - if option != nil { - option(params) - _, exist := params[strKey] - if !exist { - outOption = append(outOption, option) - } else { - delete(params, strKey) - } - } - } - return outOption -} - -func GetRequestId(header http.Header) string { - return header.Get("x-oss-request-id") -} - -func GetVersionId(header http.Header) string { - return header.Get("x-oss-version-id") -} - -func GetCopySrcVersionId(header http.Header) string { - return header.Get("x-oss-copy-source-version-id") -} - -func GetDeleteMark(header http.Header) bool { - value := header.Get("x-oss-delete-marker") - if strings.ToUpper(value) == "TRUE" { - return true - } - return false -} - -func GetQosDelayTime(header http.Header) string { - return header.Get("x-oss-qos-delay-time") -} - -// ForbidOverWrite is an option to set X-Oss-Forbid-Overwrite -func AllowSameActionOverLap(enabled bool) Option { - if enabled { - return setHeader(HTTPHeaderAllowSameActionOverLap, "true") - } else { - return setHeader(HTTPHeaderAllowSameActionOverLap, "false") - } -} - -func GetCallbackBody(options []Option, resp *Response, callbackSet bool) error { - var err error - - // get response body - if callbackSet { - err = setBody(options, resp) - } else { - callback, _ := FindOption(options, HTTPHeaderOssCallback, nil) - if callback != nil { - err = setBody(options, resp) - } - } - return err -} - -func setBody(options []Option, resp *Response) error { - respBody, _ := FindOption(options, responseBody, nil) - if respBody != nil && resp != nil { - pRespBody := respBody.(*[]byte) - pBody, err := ioutil.ReadAll(resp.Body) - if err != nil { - return err - } - if pBody != nil { - *pRespBody = pBody - } - } - return nil -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/progress.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/progress.go deleted file mode 100644 index 1b6535ba5e..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/progress.go +++ /dev/null @@ -1,116 +0,0 @@ -package oss - -import ( - "io" -) - -// ProgressEventType defines transfer progress event type -type ProgressEventType int - -const ( - // TransferStartedEvent transfer started, set TotalBytes - TransferStartedEvent ProgressEventType = 1 + iota - // TransferDataEvent transfer data, set ConsumedBytes and TotalBytes - TransferDataEvent - // TransferCompletedEvent transfer completed - TransferCompletedEvent - // TransferFailedEvent transfer encounters an error - TransferFailedEvent -) - -// ProgressEvent defines progress event -type ProgressEvent struct { - ConsumedBytes int64 - TotalBytes int64 - RwBytes int64 - EventType ProgressEventType -} - -// ProgressListener listens progress change -type ProgressListener interface { - ProgressChanged(event *ProgressEvent) -} - -// -------------------- Private -------------------- - -func newProgressEvent(eventType ProgressEventType, consumed, total int64, rwBytes int64) *ProgressEvent { - return &ProgressEvent{ - ConsumedBytes: consumed, - TotalBytes: total, - RwBytes: rwBytes, - EventType: eventType} -} - -// publishProgress -func publishProgress(listener ProgressListener, event *ProgressEvent) { - if listener != nil && event != nil { - listener.ProgressChanged(event) - } -} - -type readerTracker struct { - completedBytes int64 -} - -type teeReader struct { - reader io.Reader - writer io.Writer - listener ProgressListener - consumedBytes int64 - totalBytes int64 - tracker *readerTracker -} - -// TeeReader returns a Reader that writes to w what it reads from r. -// All reads from r performed through it are matched with -// corresponding writes to w. There is no internal buffering - -// the write must complete before the read completes. -// Any error encountered while writing is reported as a read error. -func TeeReader(reader io.Reader, writer io.Writer, totalBytes int64, listener ProgressListener, tracker *readerTracker) io.ReadCloser { - return &teeReader{ - reader: reader, - writer: writer, - listener: listener, - consumedBytes: 0, - totalBytes: totalBytes, - tracker: tracker, - } -} - -func (t *teeReader) Read(p []byte) (n int, err error) { - n, err = t.reader.Read(p) - - // Read encountered error - if err != nil && err != io.EOF { - event := newProgressEvent(TransferFailedEvent, t.consumedBytes, t.totalBytes, 0) - publishProgress(t.listener, event) - } - - if n > 0 { - t.consumedBytes += int64(n) - // CRC - if t.writer != nil { - if n, err := t.writer.Write(p[:n]); err != nil { - return n, err - } - } - // Progress - if t.listener != nil { - event := newProgressEvent(TransferDataEvent, t.consumedBytes, t.totalBytes, int64(n)) - publishProgress(t.listener, event) - } - // Track - if t.tracker != nil { - t.tracker.completedBytes = t.consumedBytes - } - } - - return -} - -func (t *teeReader) Close() error { - if rc, ok := t.reader.(io.ReadCloser); ok { - return rc.Close() - } - return nil -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_6.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_6.go deleted file mode 100644 index ea17d5bd5c..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_6.go +++ /dev/null @@ -1,12 +0,0 @@ -//go:build !go1.7 -// +build !go1.7 - -package oss - -import "net/http" - -// http.ErrUseLastResponse only is defined go1.7 onward - -func disableHTTPRedirect(client *http.Client) { - -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_7.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_7.go deleted file mode 100644 index 5d1442dd18..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/redirect_1_7.go +++ /dev/null @@ -1,13 +0,0 @@ -//go:build go1.7 -// +build go1.7 - -package oss - -import "net/http" - -// http.ErrUseLastResponse only is defined go1.7 onward -func disableHTTPRedirect(client *http.Client) { - client.CheckRedirect = func(req *http.Request, via []*http.Request) error { - return http.ErrUseLastResponse - } -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object.go deleted file mode 100644 index 2e0da4637f..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object.go +++ /dev/null @@ -1,197 +0,0 @@ -package oss - -import ( - "bytes" - "encoding/xml" - "hash/crc32" - "io" - "io/ioutil" - "net/http" - "os" - "strings" -) - -// CreateSelectCsvObjectMeta is Creating csv object meta -// -// key the object key. -// csvMeta the csv file meta -// options the options for create csv Meta of the object. -// -// MetaEndFrameCSV the csv file meta info -// error it's nil if no error, otherwise it's an error object. -// -func (bucket Bucket) CreateSelectCsvObjectMeta(key string, csvMeta CsvMetaRequest, options ...Option) (MetaEndFrameCSV, error) { - var endFrame MetaEndFrameCSV - params := map[string]interface{}{} - params["x-oss-process"] = "csv/meta" - - csvMeta.encodeBase64() - bs, err := xml.Marshal(csvMeta) - if err != nil { - return endFrame, err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - resp, err := bucket.DoPostSelectObject(key, params, buffer, options...) - if err != nil { - return endFrame, err - } - defer resp.Body.Close() - - _, err = ioutil.ReadAll(resp) - - return resp.Frame.MetaEndFrameCSV, err -} - -// CreateSelectJsonObjectMeta is Creating json object meta -// -// key the object key. -// csvMeta the json file meta -// options the options for create json Meta of the object. -// -// MetaEndFrameJSON the json file meta info -// error it's nil if no error, otherwise it's an error object. -// -func (bucket Bucket) CreateSelectJsonObjectMeta(key string, jsonMeta JsonMetaRequest, options ...Option) (MetaEndFrameJSON, error) { - var endFrame MetaEndFrameJSON - params := map[string]interface{}{} - params["x-oss-process"] = "json/meta" - - bs, err := xml.Marshal(jsonMeta) - if err != nil { - return endFrame, err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - - resp, err := bucket.DoPostSelectObject(key, params, buffer, options...) - if err != nil { - return endFrame, err - } - defer resp.Body.Close() - - _, err = ioutil.ReadAll(resp) - - return resp.Frame.MetaEndFrameJSON, err -} - -// SelectObject is the select object api, approve csv and json file. -// -// key the object key. -// selectReq the request data for select object -// options the options for select file of the object. -// -// o.ReadCloser reader instance for reading data from response. It must be called close() after the usage and only valid when error is nil. -// error it's nil if no error, otherwise it's an error object. -// -func (bucket Bucket) SelectObject(key string, selectReq SelectRequest, options ...Option) (io.ReadCloser, error) { - params := map[string]interface{}{} - if selectReq.InputSerializationSelect.JsonBodyInput.JsonIsEmpty() { - params["x-oss-process"] = "csv/select" // default select csv file - } else { - params["x-oss-process"] = "json/select" - } - selectReq.encodeBase64() - bs, err := xml.Marshal(selectReq) - if err != nil { - return nil, err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - resp, err := bucket.DoPostSelectObject(key, params, buffer, options...) - if err != nil { - return nil, err - } - if selectReq.OutputSerializationSelect.EnablePayloadCrc != nil && *selectReq.OutputSerializationSelect.EnablePayloadCrc == true { - resp.Frame.EnablePayloadCrc = true - } - resp.Frame.OutputRawData = strings.ToUpper(resp.Headers.Get("x-oss-select-output-raw")) == "TRUE" - - return resp, err -} - -// DoPostSelectObject is the SelectObject/CreateMeta api, approve csv and json file. -// -// key the object key. -// params the resource of oss approve csv/meta, json/meta, csv/select, json/select. -// buf the request data trans to buffer. -// options the options for select file of the object. -// -// SelectObjectResponse the response of select object. -// error it's nil if no error, otherwise it's an error object. -// -func (bucket Bucket) DoPostSelectObject(key string, params map[string]interface{}, buf *bytes.Buffer, options ...Option) (*SelectObjectResponse, error) { - resp, err := bucket.do("POST", key, params, options, buf, nil) - if err != nil { - return nil, err - } - - result := &SelectObjectResponse{ - Body: resp.Body, - StatusCode: resp.StatusCode, - Frame: SelectObjectResult{}, - } - result.Headers = resp.Headers - // result.Frame = SelectObjectResult{} - result.ReadTimeOut = bucket.GetConfig().Timeout - - // Progress - listener := GetProgressListener(options) - - // CRC32 - crcCalc := crc32.NewIEEE() - result.WriterForCheckCrc32 = crcCalc - result.Body = TeeReader(resp.Body, nil, 0, listener, nil) - - err = CheckRespCode(resp.StatusCode, []int{http.StatusPartialContent, http.StatusOK}) - - return result, err -} - -// SelectObjectIntoFile is the selectObject to file api -// -// key the object key. -// fileName saving file's name to localstation. -// selectReq the request data for select object -// options the options for select file of the object. -// -// error it's nil if no error, otherwise it's an error object. -// -func (bucket Bucket) SelectObjectIntoFile(key, fileName string, selectReq SelectRequest, options ...Option) error { - tempFilePath := fileName + TempFileSuffix - - params := map[string]interface{}{} - if selectReq.InputSerializationSelect.JsonBodyInput.JsonIsEmpty() { - params["x-oss-process"] = "csv/select" // default select csv file - } else { - params["x-oss-process"] = "json/select" - } - selectReq.encodeBase64() - bs, err := xml.Marshal(selectReq) - if err != nil { - return err - } - buffer := new(bytes.Buffer) - buffer.Write(bs) - resp, err := bucket.DoPostSelectObject(key, params, buffer, options...) - if err != nil { - return err - } - defer resp.Close() - - // If the local file does not exist, create a new one. If it exists, overwrite it. - fd, err := os.OpenFile(tempFilePath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, FilePermMode) - if err != nil { - return err - } - - // Copy the data to the local file path. - _, err = io.Copy(fd, resp) - fd.Close() - if err != nil { - return err - } - - return os.Rename(tempFilePath, fileName) -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object_type.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object_type.go deleted file mode 100644 index 75a454555d..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/select_object_type.go +++ /dev/null @@ -1,365 +0,0 @@ -package oss - -import ( - "bytes" - "encoding/binary" - "fmt" - "hash" - "hash/crc32" - "io" - "net/http" - "time" -) - -// The adapter class for Select object's response. -// The response consists of frames. Each frame has the following format: - -// Type | Payload Length | Header Checksum | Payload | Payload Checksum - -// |<4-->| <--4 bytes------><---4 bytes-------><-n/a-----><--4 bytes---------> -// And we have three kind of frames. -// Data Frame: -// Type:8388609 -// Payload: Offset | Data -// <-8 bytes> - -// Continuous Frame -// Type:8388612 -// Payload: Offset (8-bytes) - -// End Frame -// Type:8388613 -// Payload: Offset | total scanned bytes | http status code | error message -// <-- 8bytes--><-----8 bytes--------><---4 bytes-------><---variabe---> - -// SelectObjectResponse defines HTTP response from OSS SelectObject -type SelectObjectResponse struct { - StatusCode int - Headers http.Header - Body io.ReadCloser - Frame SelectObjectResult - ReadTimeOut uint - ClientCRC32 uint32 - ServerCRC32 uint32 - WriterForCheckCrc32 hash.Hash32 - Finish bool -} - -func (sr *SelectObjectResponse) Read(p []byte) (n int, err error) { - n, err = sr.readFrames(p) - return -} - -// Close http reponse body -func (sr *SelectObjectResponse) Close() error { - return sr.Body.Close() -} - -// PostSelectResult is the request of SelectObject -type PostSelectResult struct { - Response *SelectObjectResponse -} - -// readFrames is read Frame -func (sr *SelectObjectResponse) readFrames(p []byte) (int, error) { - var nn int - var err error - var checkValid bool - if sr.Frame.OutputRawData == true { - nn, err = sr.Body.Read(p) - return nn, err - } - - if sr.Finish { - return 0, io.EOF - } - - for { - // if this Frame is Readed, then not reading Header - if sr.Frame.OpenLine != true { - err = sr.analysisHeader() - if err != nil { - return nn, err - } - } - - if sr.Frame.FrameType == DataFrameType { - n, err := sr.analysisData(p[nn:]) - if err != nil { - return nn, err - } - nn += n - - // if this Frame is readed all data, then empty the Frame to read it with next frame - if sr.Frame.ConsumedBytesLength == sr.Frame.PayloadLength-8 { - checkValid, err = sr.checkPayloadSum() - if err != nil || !checkValid { - return nn, fmt.Errorf("%s", err.Error()) - } - sr.emptyFrame() - } - - if nn == len(p) { - return nn, nil - } - } else if sr.Frame.FrameType == ContinuousFrameType { - checkValid, err = sr.checkPayloadSum() - if err != nil || !checkValid { - return nn, fmt.Errorf("%s", err.Error()) - } - sr.Frame.OpenLine = false - } else if sr.Frame.FrameType == EndFrameType { - err = sr.analysisEndFrame() - if err != nil { - return nn, err - } - checkValid, err = sr.checkPayloadSum() - if checkValid { - sr.Finish = true - } - return nn, err - } else if sr.Frame.FrameType == MetaEndFrameCSVType { - err = sr.analysisMetaEndFrameCSV() - if err != nil { - return nn, err - } - checkValid, err = sr.checkPayloadSum() - if checkValid { - sr.Finish = true - } - return nn, err - } else if sr.Frame.FrameType == MetaEndFrameJSONType { - err = sr.analysisMetaEndFrameJSON() - if err != nil { - return nn, err - } - checkValid, err = sr.checkPayloadSum() - if checkValid { - sr.Finish = true - } - return nn, err - } - } - return nn, nil -} - -type chanReadIO struct { - readLen int - err error -} - -func (sr *SelectObjectResponse) readLen(p []byte, timeOut time.Duration) (int, error) { - r := sr.Body - ch := make(chan chanReadIO, 1) - defer close(ch) - go func(p []byte) { - var needReadLength int - readChan := chanReadIO{} - needReadLength = len(p) - for { - n, err := r.Read(p[readChan.readLen:needReadLength]) - readChan.readLen += n - if err != nil { - readChan.err = err - ch <- readChan - return - } - - if readChan.readLen == needReadLength { - break - } - } - ch <- readChan - }(p) - - select { - case <-time.After(time.Second * timeOut): - return 0, fmt.Errorf("requestId: %s, readLen timeout, timeout is %d(second),need read:%d", sr.Headers.Get(HTTPHeaderOssRequestID), timeOut, len(p)) - case result := <-ch: - return result.readLen, result.err - } -} - -// analysisHeader is reading selectObject response body's header -func (sr *SelectObjectResponse) analysisHeader() error { - headFrameByte := make([]byte, 20) - _, err := sr.readLen(headFrameByte, time.Duration(sr.ReadTimeOut)) - if err != nil { - return fmt.Errorf("requestId: %s, Read response frame header failure,err:%s", sr.Headers.Get(HTTPHeaderOssRequestID), err.Error()) - } - - frameTypeByte := headFrameByte[0:4] - sr.Frame.Version = frameTypeByte[0] - frameTypeByte[0] = 0 - bytesToInt(frameTypeByte, &sr.Frame.FrameType) - - if sr.Frame.FrameType != DataFrameType && sr.Frame.FrameType != ContinuousFrameType && - sr.Frame.FrameType != EndFrameType && sr.Frame.FrameType != MetaEndFrameCSVType && sr.Frame.FrameType != MetaEndFrameJSONType { - return fmt.Errorf("requestId: %s, Unexpected frame type: %d", sr.Headers.Get(HTTPHeaderOssRequestID), sr.Frame.FrameType) - } - - payloadLengthByte := headFrameByte[4:8] - bytesToInt(payloadLengthByte, &sr.Frame.PayloadLength) - headCheckSumByte := headFrameByte[8:12] - bytesToInt(headCheckSumByte, &sr.Frame.HeaderCheckSum) - byteOffset := headFrameByte[12:20] - bytesToInt(byteOffset, &sr.Frame.Offset) - sr.Frame.OpenLine = true - - err = sr.writerCheckCrc32(byteOffset) - return err -} - -// analysisData is reading the DataFrameType data of selectObject response body -func (sr *SelectObjectResponse) analysisData(p []byte) (int, error) { - var needReadLength int32 - lenP := int32(len(p)) - restByteLength := sr.Frame.PayloadLength - 8 - sr.Frame.ConsumedBytesLength - if lenP <= restByteLength { - needReadLength = lenP - } else { - needReadLength = restByteLength - } - n, err := sr.readLen(p[:needReadLength], time.Duration(sr.ReadTimeOut)) - if err != nil { - return n, fmt.Errorf("read frame data error,%s", err.Error()) - } - sr.Frame.ConsumedBytesLength += int32(n) - err = sr.writerCheckCrc32(p[:n]) - return n, err -} - -// analysisEndFrame is reading the EndFrameType data of selectObject response body -func (sr *SelectObjectResponse) analysisEndFrame() error { - var eF EndFrame - payLoadBytes := make([]byte, sr.Frame.PayloadLength-8) - _, err := sr.readLen(payLoadBytes, time.Duration(sr.ReadTimeOut)) - if err != nil { - return fmt.Errorf("read end frame error:%s", err.Error()) - } - bytesToInt(payLoadBytes[0:8], &eF.TotalScanned) - bytesToInt(payLoadBytes[8:12], &eF.HTTPStatusCode) - errMsgLength := sr.Frame.PayloadLength - 20 - eF.ErrorMsg = string(payLoadBytes[12 : errMsgLength+12]) - sr.Frame.EndFrame.TotalScanned = eF.TotalScanned - sr.Frame.EndFrame.HTTPStatusCode = eF.HTTPStatusCode - sr.Frame.EndFrame.ErrorMsg = eF.ErrorMsg - err = sr.writerCheckCrc32(payLoadBytes) - return err -} - -// analysisMetaEndFrameCSV is reading the MetaEndFrameCSVType data of selectObject response body -func (sr *SelectObjectResponse) analysisMetaEndFrameCSV() error { - var mCF MetaEndFrameCSV - payLoadBytes := make([]byte, sr.Frame.PayloadLength-8) - _, err := sr.readLen(payLoadBytes, time.Duration(sr.ReadTimeOut)) - if err != nil { - return fmt.Errorf("read meta end csv frame error:%s", err.Error()) - } - - bytesToInt(payLoadBytes[0:8], &mCF.TotalScanned) - bytesToInt(payLoadBytes[8:12], &mCF.Status) - bytesToInt(payLoadBytes[12:16], &mCF.SplitsCount) - bytesToInt(payLoadBytes[16:24], &mCF.RowsCount) - bytesToInt(payLoadBytes[24:28], &mCF.ColumnsCount) - errMsgLength := sr.Frame.PayloadLength - 36 - mCF.ErrorMsg = string(payLoadBytes[28 : errMsgLength+28]) - sr.Frame.MetaEndFrameCSV.ErrorMsg = mCF.ErrorMsg - sr.Frame.MetaEndFrameCSV.TotalScanned = mCF.TotalScanned - sr.Frame.MetaEndFrameCSV.Status = mCF.Status - sr.Frame.MetaEndFrameCSV.SplitsCount = mCF.SplitsCount - sr.Frame.MetaEndFrameCSV.RowsCount = mCF.RowsCount - sr.Frame.MetaEndFrameCSV.ColumnsCount = mCF.ColumnsCount - err = sr.writerCheckCrc32(payLoadBytes) - return err -} - -// analysisMetaEndFrameJSON is reading the MetaEndFrameJSONType data of selectObject response body -func (sr *SelectObjectResponse) analysisMetaEndFrameJSON() error { - var mJF MetaEndFrameJSON - payLoadBytes := make([]byte, sr.Frame.PayloadLength-8) - _, err := sr.readLen(payLoadBytes, time.Duration(sr.ReadTimeOut)) - if err != nil { - return fmt.Errorf("read meta end json frame error:%s", err.Error()) - } - - bytesToInt(payLoadBytes[0:8], &mJF.TotalScanned) - bytesToInt(payLoadBytes[8:12], &mJF.Status) - bytesToInt(payLoadBytes[12:16], &mJF.SplitsCount) - bytesToInt(payLoadBytes[16:24], &mJF.RowsCount) - errMsgLength := sr.Frame.PayloadLength - 32 - mJF.ErrorMsg = string(payLoadBytes[24 : errMsgLength+24]) - sr.Frame.MetaEndFrameJSON.ErrorMsg = mJF.ErrorMsg - sr.Frame.MetaEndFrameJSON.TotalScanned = mJF.TotalScanned - sr.Frame.MetaEndFrameJSON.Status = mJF.Status - sr.Frame.MetaEndFrameJSON.SplitsCount = mJF.SplitsCount - sr.Frame.MetaEndFrameJSON.RowsCount = mJF.RowsCount - - err = sr.writerCheckCrc32(payLoadBytes) - return err -} - -func (sr *SelectObjectResponse) checkPayloadSum() (bool, error) { - payLoadChecksumByte := make([]byte, 4) - n, err := sr.readLen(payLoadChecksumByte, time.Duration(sr.ReadTimeOut)) - if n == 4 { - bytesToInt(payLoadChecksumByte, &sr.Frame.PayloadChecksum) - sr.ServerCRC32 = sr.Frame.PayloadChecksum - sr.ClientCRC32 = sr.WriterForCheckCrc32.Sum32() - if sr.Frame.EnablePayloadCrc == true && sr.ServerCRC32 != 0 && sr.ServerCRC32 != sr.ClientCRC32 { - return false, fmt.Errorf("RequestId: %s, Unexpected frame type: %d, client %d but server %d", - sr.Headers.Get(HTTPHeaderOssRequestID), sr.Frame.FrameType, sr.ClientCRC32, sr.ServerCRC32) - } - return true, err - } - return false, fmt.Errorf("RequestId:%s, read checksum error:%s", sr.Headers.Get(HTTPHeaderOssRequestID), err.Error()) -} - -func (sr *SelectObjectResponse) writerCheckCrc32(p []byte) (err error) { - err = nil - if sr.Frame.EnablePayloadCrc == true { - _, err = sr.WriterForCheckCrc32.Write(p) - } - return err -} - -// emptyFrame is emptying SelectObjectResponse Frame information -func (sr *SelectObjectResponse) emptyFrame() { - crcCalc := crc32.NewIEEE() - sr.WriterForCheckCrc32 = crcCalc - sr.Finish = false - - sr.Frame.ConsumedBytesLength = 0 - sr.Frame.OpenLine = false - sr.Frame.Version = byte(0) - sr.Frame.FrameType = 0 - sr.Frame.PayloadLength = 0 - sr.Frame.HeaderCheckSum = 0 - sr.Frame.Offset = 0 - sr.Frame.Data = "" - - sr.Frame.EndFrame.TotalScanned = 0 - sr.Frame.EndFrame.HTTPStatusCode = 0 - sr.Frame.EndFrame.ErrorMsg = "" - - sr.Frame.MetaEndFrameCSV.TotalScanned = 0 - sr.Frame.MetaEndFrameCSV.Status = 0 - sr.Frame.MetaEndFrameCSV.SplitsCount = 0 - sr.Frame.MetaEndFrameCSV.RowsCount = 0 - sr.Frame.MetaEndFrameCSV.ColumnsCount = 0 - sr.Frame.MetaEndFrameCSV.ErrorMsg = "" - - sr.Frame.MetaEndFrameJSON.TotalScanned = 0 - sr.Frame.MetaEndFrameJSON.Status = 0 - sr.Frame.MetaEndFrameJSON.SplitsCount = 0 - sr.Frame.MetaEndFrameJSON.RowsCount = 0 - sr.Frame.MetaEndFrameJSON.ErrorMsg = "" - - sr.Frame.PayloadChecksum = 0 -} - -// bytesToInt byte's array trans to int -func bytesToInt(b []byte, ret interface{}) { - binBuf := bytes.NewBuffer(b) - binary.Read(binBuf, binary.BigEndian, ret) -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_6.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_6.go deleted file mode 100644 index 08a83a0017..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_6.go +++ /dev/null @@ -1,42 +0,0 @@ -//go:build !go1.7 -// +build !go1.7 - -package oss - -import ( - "crypto/tls" - "net" - "net/http" - "time" -) - -func newTransport(conn *Conn, config *Config) *http.Transport { - httpTimeOut := conn.config.HTTPTimeout - httpMaxConns := conn.config.HTTPMaxConns - // New Transport - transport := &http.Transport{ - Dial: func(netw, addr string) (net.Conn, error) { - d := net.Dialer{ - Timeout: httpTimeOut.ConnectTimeout, - KeepAlive: 30 * time.Second, - } - if config.LocalAddr != nil { - d.LocalAddr = config.LocalAddr - } - conn, err := d.Dial(netw, addr) - if err != nil { - return nil, err - } - return newTimeoutConn(conn, httpTimeOut.ReadWriteTimeout, httpTimeOut.LongTimeout), nil - }, - MaxIdleConnsPerHost: httpMaxConns.MaxIdleConnsPerHost, - ResponseHeaderTimeout: httpTimeOut.HeaderTimeout, - } - - if config.InsecureSkipVerify { - transport.TLSClientConfig = &tls.Config{ - InsecureSkipVerify: true, - } - } - return transport -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_7.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_7.go deleted file mode 100644 index 1acb84154d..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/transport_1_7.go +++ /dev/null @@ -1,45 +0,0 @@ -//go:build go1.7 -// +build go1.7 - -package oss - -import ( - "crypto/tls" - "net" - "net/http" - "time" -) - -func newTransport(conn *Conn, config *Config) *http.Transport { - httpTimeOut := conn.config.HTTPTimeout - httpMaxConns := conn.config.HTTPMaxConns - // New Transport - transport := &http.Transport{ - Dial: func(netw, addr string) (net.Conn, error) { - d := net.Dialer{ - Timeout: httpTimeOut.ConnectTimeout, - KeepAlive: 30 * time.Second, - } - if config.LocalAddr != nil { - d.LocalAddr = config.LocalAddr - } - conn, err := d.Dial(netw, addr) - if err != nil { - return nil, err - } - return newTimeoutConn(conn, httpTimeOut.ReadWriteTimeout, httpTimeOut.LongTimeout), nil - }, - MaxIdleConns: httpMaxConns.MaxIdleConns, - MaxIdleConnsPerHost: httpMaxConns.MaxIdleConnsPerHost, - MaxConnsPerHost: httpMaxConns.MaxConnsPerHost, - IdleConnTimeout: httpTimeOut.IdleConnTimeout, - ResponseHeaderTimeout: httpTimeOut.HeaderTimeout, - } - - if config.InsecureSkipVerify { - transport.TLSClientConfig = &tls.Config{ - InsecureSkipVerify: true, - } - } - return transport -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/type.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/type.go deleted file mode 100644 index a704e3ceff..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/type.go +++ /dev/null @@ -1,1695 +0,0 @@ -package oss - -import ( - "encoding/base64" - "encoding/xml" - "fmt" - "net/url" - "strconv" - "strings" - "time" -) - -// ListBucketsResult defines the result object from ListBuckets request -type ListBucketsResult struct { - XMLName xml.Name `xml:"ListAllMyBucketsResult"` - Prefix string `xml:"Prefix"` // The prefix in this query - Marker string `xml:"Marker"` // The marker filter - MaxKeys int `xml:"MaxKeys"` // The max entry count to return. This information is returned when IsTruncated is true. - IsTruncated bool `xml:"IsTruncated"` // Flag true means there's remaining buckets to return. - NextMarker string `xml:"NextMarker"` // The marker filter for the next list call - Owner Owner `xml:"Owner"` // The owner information - Buckets []BucketProperties `xml:"Buckets>Bucket"` // The bucket list -} - -// BucketProperties defines bucket properties -type BucketProperties struct { - XMLName xml.Name `xml:"Bucket"` - Name string `xml:"Name"` // Bucket name - Location string `xml:"Location"` // Bucket datacenter - CreationDate time.Time `xml:"CreationDate"` // Bucket create time - StorageClass string `xml:"StorageClass"` // Bucket storage class - Region string `xml:"Region"` // Bucket region -} - -// ListCloudBoxResult defines the result object from ListBuckets request -type ListCloudBoxResult struct { - XMLName xml.Name `xml:"ListCloudBoxResult"` - Prefix string `xml:"Prefix"` // The prefix in this query - Marker string `xml:"Marker"` // The marker filter - MaxKeys int `xml:"MaxKeys"` // The max entry count to return. This information is returned when IsTruncated is true. - IsTruncated bool `xml:"IsTruncated"` // Flag true means there's remaining cloudboxes to return. - NextMarker string `xml:"NextMarker"` // The marker filter for the next list call - Owner string `xml:"Owner>DisplayName"` // The owner information - CloudBoxes []CloudBoxProperties `xml:"CloudBoxes>CloudBox"` // The cloudbox list -} - -// CloudBoxProperties defines cloudbox properties -type CloudBoxProperties struct { - XMLName xml.Name `xml:"CloudBox"` - ID string `xml:"ID"` - Name string `xml:"Name"` - Region string `xml:"Region"` - ControlEndpoint string `xml:"ControlEndpoint"` - DataEndpoint string `xml:"DataEndpoint"` -} - -// GetBucketACLResult defines GetBucketACL request's result -type GetBucketACLResult struct { - XMLName xml.Name `xml:"AccessControlPolicy"` - ACL string `xml:"AccessControlList>Grant"` // Bucket ACL - Owner Owner `xml:"Owner"` // Bucket owner -} - -// LifecycleConfiguration is the Bucket Lifecycle configuration -type LifecycleConfiguration struct { - XMLName xml.Name `xml:"LifecycleConfiguration"` - Rules []LifecycleRule `xml:"Rule"` -} - -// LifecycleRule defines Lifecycle rules -type LifecycleRule struct { - XMLName xml.Name `xml:"Rule"` - ID string `xml:"ID,omitempty"` // The rule ID - Prefix string `xml:"Prefix"` // The object key prefix - Status string `xml:"Status"` // The rule status (enabled or not) - Tags []Tag `xml:"Tag,omitempty"` // the tags property - Expiration *LifecycleExpiration `xml:"Expiration,omitempty"` // The expiration property - Transitions []LifecycleTransition `xml:"Transition,omitempty"` // The transition property - AbortMultipartUpload *LifecycleAbortMultipartUpload `xml:"AbortMultipartUpload,omitempty"` // The AbortMultipartUpload property - NonVersionExpiration *LifecycleVersionExpiration `xml:"NoncurrentVersionExpiration,omitempty"` - // Deprecated: Use NonVersionTransitions instead. - NonVersionTransition *LifecycleVersionTransition `xml:"-"` // NonVersionTransition is not suggested to use - NonVersionTransitions []LifecycleVersionTransition `xml:"NoncurrentVersionTransition,omitempty"` - Filter *LifecycleFilter `xml:Filter,omitempty` //condition parameter container of this exclusion rule -} - -// LifecycleExpiration defines the rule's expiration property -type LifecycleExpiration struct { - XMLName xml.Name `xml:"Expiration"` - Days int `xml:"Days,omitempty"` // Relative expiration time: The expiration time in days after the last modified time - Date string `xml:"Date,omitempty"` // Absolute expiration time: The expiration time in date, not recommended - CreatedBeforeDate string `xml:"CreatedBeforeDate,omitempty"` // objects created before the date will be expired - ExpiredObjectDeleteMarker *bool `xml:"ExpiredObjectDeleteMarker,omitempty"` // Specifies whether the expired delete tag is automatically deleted -} - -// LifecycleTransition defines the rule's transition propery -type LifecycleTransition struct { - XMLName xml.Name `xml:"Transition"` - Days int `xml:"Days,omitempty"` // Relative transition time: The transition time in days after the last modified time - CreatedBeforeDate string `xml:"CreatedBeforeDate,omitempty"` // objects created before the date will be expired - StorageClass StorageClassType `xml:"StorageClass,omitempty"` // Specifies the target storage type - IsAccessTime *bool `xml:"IsAccessTime,omitempty"` // access time - ReturnToStdWhenVisit *bool `xml:"ReturnToStdWhenVisit,omitempty"` // Return To Std When Visit - AllowSmallFile *bool `xml:AllowSmallFile,omitempty` -} - -// LifecycleAbortMultipartUpload defines the rule's abort multipart upload propery -type LifecycleAbortMultipartUpload struct { - XMLName xml.Name `xml:"AbortMultipartUpload"` - Days int `xml:"Days,omitempty"` // Relative expiration time: The expiration time in days after the last modified time - CreatedBeforeDate string `xml:"CreatedBeforeDate,omitempty"` // objects created before the date will be expired -} - -// LifecycleVersionExpiration defines the rule's NoncurrentVersionExpiration propery -type LifecycleVersionExpiration struct { - XMLName xml.Name `xml:"NoncurrentVersionExpiration"` - NoncurrentDays int `xml:"NoncurrentDays,omitempty"` // How many days after the Object becomes a non-current version -} - -// LifecycleVersionTransition defines the rule's NoncurrentVersionTransition propery -type LifecycleVersionTransition struct { - XMLName xml.Name `xml:"NoncurrentVersionTransition"` - NoncurrentDays int `xml:"NoncurrentDays,omitempty"` // How many days after the Object becomes a non-current version - StorageClass StorageClassType `xml:"StorageClass,omitempty"` - IsAccessTime *bool `xml:"IsAccessTime,omitempty"` // access time - ReturnToStdWhenVisit *bool `xml:"ReturnToStdWhenVisit,omitempty"` // Return To Std When Visit - AllowSmallFile *bool `xml:AllowSmallFile,omitempty` -} - -// LifecycleFilter defines the rule's Filter propery -type LifecycleFilter struct { - XMLName xml.Name `xml:"Filter"` - Not []LifecycleFilterNot `xml:"Not,omitempty"` - ObjectSizeGreaterThan *int64 `xml:"ObjectSizeGreaterThan,omitempty"` - ObjectSizeLessThan *int64 `xml:"ObjectSizeLessThan,omitempty"` -} - -// LifecycleFilterNot defines the rule's Filter Not propery -type LifecycleFilterNot struct { - XMLName xml.Name `xml:"Not"` - Prefix string `xml:"Prefix"` //Object prefix applicable to this exclusion rule - Tag *Tag `xml:"Tag,omitempty"` //the tags applicable to this exclusion rule -} - -const iso8601DateFormat = "2006-01-02T15:04:05.000Z" -const iso8601DateFormatSecond = "2006-01-02T15:04:05Z" - -// BuildLifecycleRuleByDays builds a lifecycle rule objects will expiration in days after the last modified time -func BuildLifecycleRuleByDays(id, prefix string, status bool, days int) LifecycleRule { - var statusStr = "Enabled" - if !status { - statusStr = "Disabled" - } - return LifecycleRule{ID: id, Prefix: prefix, Status: statusStr, - Expiration: &LifecycleExpiration{Days: days}} -} - -// BuildLifecycleRuleByDate builds a lifecycle rule objects will expiration in specified date -func BuildLifecycleRuleByDate(id, prefix string, status bool, year, month, day int) LifecycleRule { - var statusStr = "Enabled" - if !status { - statusStr = "Disabled" - } - date := time.Date(year, time.Month(month), day, 0, 0, 0, 0, time.UTC).Format(iso8601DateFormat) - return LifecycleRule{ID: id, Prefix: prefix, Status: statusStr, - Expiration: &LifecycleExpiration{Date: date}} -} - -// ValidateLifecycleRule Determine if a lifecycle rule is valid, if it is invalid, it will return an error. -func verifyLifecycleRules(rules []LifecycleRule) error { - if len(rules) == 0 { - return fmt.Errorf("invalid rules, the length of rules is zero") - } - for k, rule := range rules { - if rule.Status != "Enabled" && rule.Status != "Disabled" { - return fmt.Errorf("invalid rule, the value of status must be Enabled or Disabled") - } - - abortMPU := rule.AbortMultipartUpload - if abortMPU != nil { - if (abortMPU.Days != 0 && abortMPU.CreatedBeforeDate != "") || (abortMPU.Days == 0 && abortMPU.CreatedBeforeDate == "") { - return fmt.Errorf("invalid abort multipart upload lifecycle, must be set one of CreatedBeforeDate and Days") - } - } - - transitions := rule.Transitions - if len(transitions) > 0 { - for _, transition := range transitions { - if (transition.Days != 0 && transition.CreatedBeforeDate != "") || (transition.Days == 0 && transition.CreatedBeforeDate == "") { - return fmt.Errorf("invalid transition lifecycle, must be set one of CreatedBeforeDate and Days") - } - } - } - - // NonVersionTransition is not suggested to use - // to keep compatible - if rule.NonVersionTransition != nil && len(rule.NonVersionTransitions) > 0 { - return fmt.Errorf("NonVersionTransition and NonVersionTransitions cannot both have values") - } else if rule.NonVersionTransition != nil { - rules[k].NonVersionTransitions = append(rules[k].NonVersionTransitions, *rule.NonVersionTransition) - } - } - - return nil -} - -// GetBucketLifecycleResult defines GetBucketLifecycle's result object -type GetBucketLifecycleResult LifecycleConfiguration - -// RefererXML defines Referer configuration -type RefererXML struct { - XMLName xml.Name `xml:"RefererConfiguration"` - AllowEmptyReferer bool `xml:"AllowEmptyReferer"` // Allow empty referrer - AllowTruncateQueryString *bool `xml:"AllowTruncateQueryString,omitempty"` - RefererList []string `xml:"RefererList>Referer"` // Referer whitelist - RefererBlacklist *RefererBlacklist `xml:"RefererBlacklist,omitempty"` // Referer blacklist -} - -// GetBucketRefererResult defines result object for GetBucketReferer request -type GetBucketRefererResult RefererXML - -type RefererBlacklist struct { - Referer []string `xml:"Referer,omitempty"` -} - -// LoggingXML defines logging configuration -type LoggingXML struct { - XMLName xml.Name `xml:"BucketLoggingStatus"` - LoggingEnabled LoggingEnabled `xml:"LoggingEnabled"` // The logging configuration information -} - -type loggingXMLEmpty struct { - XMLName xml.Name `xml:"BucketLoggingStatus"` -} - -// LoggingEnabled defines the logging configuration information -type LoggingEnabled struct { - XMLName xml.Name `xml:"LoggingEnabled"` - TargetBucket string `xml:"TargetBucket"` // The bucket name for storing the log files - TargetPrefix string `xml:"TargetPrefix"` // The log file prefix -} - -// GetBucketLoggingResult defines the result from GetBucketLogging request -type GetBucketLoggingResult LoggingXML - -// WebsiteXML defines Website configuration -type WebsiteXML struct { - XMLName xml.Name `xml:"WebsiteConfiguration"` - IndexDocument IndexDocument `xml:"IndexDocument,omitempty"` // The index page - ErrorDocument ErrorDocument `xml:"ErrorDocument,omitempty"` // The error page - RoutingRules []RoutingRule `xml:"RoutingRules>RoutingRule,omitempty"` // The routing Rule list -} - -// IndexDocument defines the index page info -type IndexDocument struct { - XMLName xml.Name `xml:"IndexDocument"` - Suffix string `xml:"Suffix"` // The file name for the index page -} - -// ErrorDocument defines the 404 error page info -type ErrorDocument struct { - XMLName xml.Name `xml:"ErrorDocument"` - Key string `xml:"Key"` // 404 error file name -} - -// RoutingRule defines the routing rules -type RoutingRule struct { - XMLName xml.Name `xml:"RoutingRule"` - RuleNumber int `xml:"RuleNumber,omitempty"` // The routing number - Condition Condition `xml:"Condition,omitempty"` // The routing condition - Redirect Redirect `xml:"Redirect,omitempty"` // The routing redirect - -} - -// Condition defines codition in the RoutingRule -type Condition struct { - XMLName xml.Name `xml:"Condition"` - KeyPrefixEquals string `xml:"KeyPrefixEquals,omitempty"` // Matching objcet prefix - HTTPErrorCodeReturnedEquals int `xml:"HttpErrorCodeReturnedEquals,omitempty"` // The rule is for Accessing to the specified object - IncludeHeader []IncludeHeader `xml:"IncludeHeader"` // The rule is for request which include header -} - -// IncludeHeader defines includeHeader in the RoutingRule's Condition -type IncludeHeader struct { - XMLName xml.Name `xml:"IncludeHeader"` - Key string `xml:"Key,omitempty"` // The Include header key - Equals string `xml:"Equals,omitempty"` // The Include header value -} - -// Redirect defines redirect in the RoutingRule -type Redirect struct { - XMLName xml.Name `xml:"Redirect"` - RedirectType string `xml:"RedirectType,omitempty"` // The redirect type, it have Mirror,External,Internal,AliCDN - PassQueryString *bool `xml:"PassQueryString"` // Whether to send the specified request's parameters, true or false - MirrorURL string `xml:"MirrorURL,omitempty"` // Mirror of the website address back to the source. - MirrorPassQueryString *bool `xml:"MirrorPassQueryString"` // To Mirror of the website Whether to send the specified request's parameters, true or false - MirrorFollowRedirect *bool `xml:"MirrorFollowRedirect"` // Redirect the location, if the mirror return 3XX - MirrorCheckMd5 *bool `xml:"MirrorCheckMd5"` // Check the mirror is MD5. - MirrorHeaders MirrorHeaders `xml:"MirrorHeaders,omitempty"` // Mirror headers - Protocol string `xml:"Protocol,omitempty"` // The redirect Protocol - HostName string `xml:"HostName,omitempty"` // The redirect HostName - ReplaceKeyPrefixWith string `xml:"ReplaceKeyPrefixWith,omitempty"` // object name'Prefix replace the value - HttpRedirectCode int `xml:"HttpRedirectCode,omitempty"` // THe redirect http code - ReplaceKeyWith string `xml:"ReplaceKeyWith,omitempty"` // object name replace the value -} - -// MirrorHeaders defines MirrorHeaders in the Redirect -type MirrorHeaders struct { - XMLName xml.Name `xml:"MirrorHeaders"` - PassAll *bool `xml:"PassAll"` // Penetrating all of headers to source website. - Pass []string `xml:"Pass"` // Penetrating some of headers to source website. - Remove []string `xml:"Remove"` // Prohibit passthrough some of headers to source website - Set []MirrorHeaderSet `xml:"Set"` // Setting some of headers send to source website -} - -// MirrorHeaderSet defines Set for Redirect's MirrorHeaders -type MirrorHeaderSet struct { - XMLName xml.Name `xml:"Set"` - Key string `xml:"Key,omitempty"` // The mirror header key - Value string `xml:"Value,omitempty"` // The mirror header value -} - -// GetBucketWebsiteResult defines the result from GetBucketWebsite request. -type GetBucketWebsiteResult WebsiteXML - -// CORSXML defines CORS configuration -type CORSXML struct { - XMLName xml.Name `xml:"CORSConfiguration"` - CORSRules []CORSRule `xml:"CORSRule"` // CORS rules - ResponseVary *bool `xml:"ResponseVary,omitempty"` // return Vary or not -} - -// CORSRule defines CORS rules -type CORSRule struct { - XMLName xml.Name `xml:"CORSRule"` - AllowedOrigin []string `xml:"AllowedOrigin"` // Allowed origins. By default it's wildcard '*' - AllowedMethod []string `xml:"AllowedMethod"` // Allowed methods - AllowedHeader []string `xml:"AllowedHeader"` // Allowed headers - ExposeHeader []string `xml:"ExposeHeader"` // Allowed response headers - MaxAgeSeconds int `xml:"MaxAgeSeconds"` // Max cache ages in seconds -} - -// GetBucketCORSResult defines the result from GetBucketCORS request. -type GetBucketCORSResult CORSXML - -// PutBucketCORS defines the PutBucketCORS config xml. -type PutBucketCORS CORSXML - -// GetBucketInfoResult defines the result from GetBucketInfo request. -type GetBucketInfoResult struct { - XMLName xml.Name `xml:"BucketInfo"` - BucketInfo BucketInfo `xml:"Bucket"` -} - -// BucketInfo defines Bucket information -type BucketInfo struct { - XMLName xml.Name `xml:"Bucket"` - Name string `xml:"Name"` // Bucket name - AccessMonitor string `xml:"AccessMonitor"` // Bucket Access Monitor - Location string `xml:"Location"` // Bucket datacenter - CreationDate time.Time `xml:"CreationDate"` // Bucket creation time - ExtranetEndpoint string `xml:"ExtranetEndpoint"` // Bucket external endpoint - IntranetEndpoint string `xml:"IntranetEndpoint"` // Bucket internal endpoint - ACL string `xml:"AccessControlList>Grant"` // Bucket ACL - RedundancyType string `xml:"DataRedundancyType"` // Bucket DataRedundancyType - Owner Owner `xml:"Owner"` // Bucket owner - StorageClass string `xml:"StorageClass"` // Bucket storage class - SseRule SSERule `xml:"ServerSideEncryptionRule"` // Bucket ServerSideEncryptionRule - Versioning string `xml:"Versioning"` // Bucket Versioning - TransferAcceleration string `xml:"TransferAcceleration"` // bucket TransferAcceleration - CrossRegionReplication string `xml:"CrossRegionReplication"` // bucket CrossRegionReplication -} - -type SSERule struct { - XMLName xml.Name `xml:"ServerSideEncryptionRule"` // Bucket ServerSideEncryptionRule - KMSMasterKeyID string `xml:"KMSMasterKeyID,omitempty"` // Bucket KMSMasterKeyID - SSEAlgorithm string `xml:"SSEAlgorithm,omitempty"` // Bucket SSEAlgorithm - KMSDataEncryption string `xml:"KMSDataEncryption,omitempty"` //Bucket KMSDataEncryption -} - -// ListObjectsResult defines the result from ListObjects request -type ListObjectsResult struct { - XMLName xml.Name `xml:"ListBucketResult"` - Prefix string `xml:"Prefix"` // The object prefix - Marker string `xml:"Marker"` // The marker filter. - MaxKeys int `xml:"MaxKeys"` // Max keys to return - Delimiter string `xml:"Delimiter"` // The delimiter for grouping objects' name - IsTruncated bool `xml:"IsTruncated"` // Flag indicates if all results are returned (when it's false) - NextMarker string `xml:"NextMarker"` // The start point of the next query - Objects []ObjectProperties `xml:"Contents"` // Object list - CommonPrefixes []string `xml:"CommonPrefixes>Prefix"` // You can think of commonprefixes as "folders" whose names end with the delimiter -} - -// ObjectProperties defines Objecct properties -type ObjectProperties struct { - XMLName xml.Name `xml:"Contents"` - Key string `xml:"Key"` // Object key - Type string `xml:"Type"` // Object type - Size int64 `xml:"Size"` // Object size - ETag string `xml:"ETag"` // Object ETag - Owner Owner `xml:"Owner"` // Object owner information - LastModified time.Time `xml:"LastModified"` // Object last modified time - StorageClass string `xml:"StorageClass"` // Object storage class (Standard, IA, Archive) - RestoreInfo string `xml:"RestoreInfo,omitempty"` // Object restoreInfo -} - -// ListObjectsResultV2 defines the result from ListObjectsV2 request -type ListObjectsResultV2 struct { - XMLName xml.Name `xml:"ListBucketResult"` - Prefix string `xml:"Prefix"` // The object prefix - StartAfter string `xml:"StartAfter"` // the input StartAfter - ContinuationToken string `xml:"ContinuationToken"` // the input ContinuationToken - MaxKeys int `xml:"MaxKeys"` // Max keys to return - Delimiter string `xml:"Delimiter"` // The delimiter for grouping objects' name - IsTruncated bool `xml:"IsTruncated"` // Flag indicates if all results are returned (when it's false) - NextContinuationToken string `xml:"NextContinuationToken"` // The start point of the next NextContinuationToken - Objects []ObjectProperties `xml:"Contents"` // Object list - CommonPrefixes []string `xml:"CommonPrefixes>Prefix"` // You can think of commonprefixes as "folders" whose names end with the delimiter -} - -// ListObjectVersionsResult defines the result from ListObjectVersions request -type ListObjectVersionsResult struct { - XMLName xml.Name `xml:"ListVersionsResult"` - Name string `xml:"Name"` // The Bucket Name - Owner Owner `xml:"Owner"` // The owner of bucket - Prefix string `xml:"Prefix"` // The object prefix - KeyMarker string `xml:"KeyMarker"` // The start marker filter. - VersionIdMarker string `xml:"VersionIdMarker"` // The start VersionIdMarker filter. - MaxKeys int `xml:"MaxKeys"` // Max keys to return - Delimiter string `xml:"Delimiter"` // The delimiter for grouping objects' name - IsTruncated bool `xml:"IsTruncated"` // Flag indicates if all results are returned (when it's false) - NextKeyMarker string `xml:"NextKeyMarker"` // The start point of the next query - NextVersionIdMarker string `xml:"NextVersionIdMarker"` // The start point of the next query - CommonPrefixes []string `xml:"CommonPrefixes>Prefix"` // You can think of commonprefixes as "folders" whose names end with the delimiter - ObjectDeleteMarkers []ObjectDeleteMarkerProperties `xml:"DeleteMarker"` // DeleteMarker list - ObjectVersions []ObjectVersionProperties `xml:"Version"` // version list -} - -type ObjectDeleteMarkerProperties struct { - XMLName xml.Name `xml:"DeleteMarker"` - Key string `xml:"Key"` // The Object Key - VersionId string `xml:"VersionId"` // The Object VersionId - IsLatest bool `xml:"IsLatest"` // is current version or not - LastModified time.Time `xml:"LastModified"` // Object last modified time - Owner Owner `xml:"Owner"` // bucket owner element -} - -type ObjectVersionProperties struct { - XMLName xml.Name `xml:"Version"` - Key string `xml:"Key"` // The Object Key - VersionId string `xml:"VersionId"` // The Object VersionId - IsLatest bool `xml:"IsLatest"` // is latest version or not - LastModified time.Time `xml:"LastModified"` // Object last modified time - Type string `xml:"Type"` // Object type - Size int64 `xml:"Size"` // Object size - ETag string `xml:"ETag"` // Object ETag - StorageClass string `xml:"StorageClass"` // Object storage class (Standard, IA, Archive) - Owner Owner `xml:"Owner"` // bucket owner element - RestoreInfo string `xml:"RestoreInfo,omitempty"` // Object restoreInfo -} - -// Owner defines Bucket/Object's owner -type Owner struct { - XMLName xml.Name `xml:"Owner"` - ID string `xml:"ID"` // Owner ID - DisplayName string `xml:"DisplayName"` // Owner's display name -} - -// CopyObjectResult defines result object of CopyObject -type CopyObjectResult struct { - XMLName xml.Name `xml:"CopyObjectResult"` - LastModified time.Time `xml:"LastModified"` // New object's last modified time. - ETag string `xml:"ETag"` // New object's ETag -} - -// GetObjectACLResult defines result of GetObjectACL request -type GetObjectACLResult GetBucketACLResult - -type deleteXML struct { - XMLName xml.Name `xml:"Delete"` - Objects []DeleteObject `xml:"Object"` // Objects to delete - Quiet bool `xml:"Quiet"` // Flag of quiet mode. -} - -// DeleteObject defines the struct for deleting object -type DeleteObject struct { - XMLName xml.Name `xml:"Object"` - Key string `xml:"Key"` // Object name - VersionId string `xml:"VersionId,omitempty"` // Object VersionId -} - -// DeleteObjectsResult defines result of DeleteObjects request -type DeleteObjectsResult struct { - XMLName xml.Name - DeletedObjects []string // Deleted object key list -} - -// DeleteObjectVersionsResult defines result of DeleteObjects request -type DeleteObjectVersionsResult struct { - XMLName xml.Name `xml:"DeleteResult"` - DeletedObjectsDetail []DeletedKeyInfo `xml:"Deleted"` // Deleted object detail info -} - -// DeletedKeyInfo defines object delete info -type DeletedKeyInfo struct { - XMLName xml.Name `xml:"Deleted"` - Key string `xml:"Key"` // Object key - VersionId string `xml:"VersionId"` // VersionId - DeleteMarker bool `xml:"DeleteMarker"` // Object DeleteMarker - DeleteMarkerVersionId string `xml:"DeleteMarkerVersionId"` // Object DeleteMarkerVersionId -} - -// InitiateMultipartUploadResult defines result of InitiateMultipartUpload request -type InitiateMultipartUploadResult struct { - XMLName xml.Name `xml:"InitiateMultipartUploadResult"` - Bucket string `xml:"Bucket"` // Bucket name - Key string `xml:"Key"` // Object name to upload - UploadID string `xml:"UploadId"` // Generated UploadId -} - -// UploadPart defines the upload/copy part -type UploadPart struct { - XMLName xml.Name `xml:"Part"` - PartNumber int `xml:"PartNumber"` // Part number - ETag string `xml:"ETag"` // ETag value of the part's data -} - -type UploadParts []UploadPart - -func (slice UploadParts) Len() int { - return len(slice) -} - -func (slice UploadParts) Less(i, j int) bool { - return slice[i].PartNumber < slice[j].PartNumber -} - -func (slice UploadParts) Swap(i, j int) { - slice[i], slice[j] = slice[j], slice[i] -} - -// UploadPartCopyResult defines result object of multipart copy request. -type UploadPartCopyResult struct { - XMLName xml.Name `xml:"CopyPartResult"` - LastModified time.Time `xml:"LastModified"` // Last modified time - ETag string `xml:"ETag"` // ETag -} - -type completeMultipartUploadXML struct { - XMLName xml.Name `xml:"CompleteMultipartUpload"` - Part []UploadPart `xml:"Part"` -} - -// CompleteMultipartUploadResult defines result object of CompleteMultipartUploadRequest -type CompleteMultipartUploadResult struct { - XMLName xml.Name `xml:"CompleteMultipartUploadResult"` - Location string `xml:"Location"` // Object URL - Bucket string `xml:"Bucket"` // Bucket name - ETag string `xml:"ETag"` // Object ETag - Key string `xml:"Key"` // Object name -} - -// ListUploadedPartsResult defines result object of ListUploadedParts -type ListUploadedPartsResult struct { - XMLName xml.Name `xml:"ListPartsResult"` - Bucket string `xml:"Bucket"` // Bucket name - Key string `xml:"Key"` // Object name - UploadID string `xml:"UploadId"` // Upload ID - NextPartNumberMarker string `xml:"NextPartNumberMarker"` // Next part number - MaxParts int `xml:"MaxParts"` // Max parts count - IsTruncated bool `xml:"IsTruncated"` // Flag indicates all entries returned.false: all entries returned. - UploadedParts []UploadedPart `xml:"Part"` // Uploaded parts -} - -// UploadedPart defines uploaded part -type UploadedPart struct { - XMLName xml.Name `xml:"Part"` - PartNumber int `xml:"PartNumber"` // Part number - LastModified time.Time `xml:"LastModified"` // Last modified time - ETag string `xml:"ETag"` // ETag cache - Size int `xml:"Size"` // Part size -} - -// ListMultipartUploadResult defines result object of ListMultipartUpload -type ListMultipartUploadResult struct { - XMLName xml.Name `xml:"ListMultipartUploadsResult"` - Bucket string `xml:"Bucket"` // Bucket name - Delimiter string `xml:"Delimiter"` // Delimiter for grouping object. - Prefix string `xml:"Prefix"` // Object prefix - KeyMarker string `xml:"KeyMarker"` // Object key marker - UploadIDMarker string `xml:"UploadIdMarker"` // UploadId marker - NextKeyMarker string `xml:"NextKeyMarker"` // Next key marker, if not all entries returned. - NextUploadIDMarker string `xml:"NextUploadIdMarker"` // Next uploadId marker, if not all entries returned. - MaxUploads int `xml:"MaxUploads"` // Max uploads to return - IsTruncated bool `xml:"IsTruncated"` // Flag indicates all entries are returned. - Uploads []UncompletedUpload `xml:"Upload"` // Ongoing uploads (not completed, not aborted) - CommonPrefixes []string `xml:"CommonPrefixes>Prefix"` // Common prefixes list. -} - -// UncompletedUpload structure wraps an uncompleted upload task -type UncompletedUpload struct { - XMLName xml.Name `xml:"Upload"` - Key string `xml:"Key"` // Object name - UploadID string `xml:"UploadId"` // The UploadId - Initiated time.Time `xml:"Initiated"` // Initialization time in the format such as 2012-02-23T04:18:23.000Z -} - -// ProcessObjectResult defines result object of ProcessObject -type ProcessObjectResult struct { - Bucket string `json:"bucket"` - FileSize int `json:"fileSize"` - Object string `json:"object"` - Status string `json:"status"` -} - -// AsyncProcessObjectResult defines result object of AsyncProcessObject -type AsyncProcessObjectResult struct { - EventId string `json:"EventId"` - RequestId string `json:"RequestId"` - TaskId string `json:"TaskId"` -} - -// decodeDeleteObjectsResult decodes deleting objects result in URL encoding -func decodeDeleteObjectsResult(result *DeleteObjectVersionsResult) error { - var err error - for i := 0; i < len(result.DeletedObjectsDetail); i++ { - result.DeletedObjectsDetail[i].Key, err = url.QueryUnescape(result.DeletedObjectsDetail[i].Key) - if err != nil { - return err - } - } - return nil -} - -// decodeListObjectsResult decodes list objects result in URL encoding -func decodeListObjectsResult(result *ListObjectsResult) error { - var err error - result.Prefix, err = url.QueryUnescape(result.Prefix) - if err != nil { - return err - } - result.Marker, err = url.QueryUnescape(result.Marker) - if err != nil { - return err - } - result.Delimiter, err = url.QueryUnescape(result.Delimiter) - if err != nil { - return err - } - result.NextMarker, err = url.QueryUnescape(result.NextMarker) - if err != nil { - return err - } - for i := 0; i < len(result.Objects); i++ { - result.Objects[i].Key, err = url.QueryUnescape(result.Objects[i].Key) - if err != nil { - return err - } - } - for i := 0; i < len(result.CommonPrefixes); i++ { - result.CommonPrefixes[i], err = url.QueryUnescape(result.CommonPrefixes[i]) - if err != nil { - return err - } - } - return nil -} - -// decodeListObjectsResult decodes list objects result in URL encoding -func decodeListObjectsResultV2(result *ListObjectsResultV2) error { - var err error - result.Prefix, err = url.QueryUnescape(result.Prefix) - if err != nil { - return err - } - result.StartAfter, err = url.QueryUnescape(result.StartAfter) - if err != nil { - return err - } - result.Delimiter, err = url.QueryUnescape(result.Delimiter) - if err != nil { - return err - } - result.NextContinuationToken, err = url.QueryUnescape(result.NextContinuationToken) - if err != nil { - return err - } - for i := 0; i < len(result.Objects); i++ { - result.Objects[i].Key, err = url.QueryUnescape(result.Objects[i].Key) - if err != nil { - return err - } - } - for i := 0; i < len(result.CommonPrefixes); i++ { - result.CommonPrefixes[i], err = url.QueryUnescape(result.CommonPrefixes[i]) - if err != nil { - return err - } - } - return nil -} - -// decodeListObjectVersionsResult decodes list version objects result in URL encoding -func decodeListObjectVersionsResult(result *ListObjectVersionsResult) error { - var err error - - // decode:Delimiter - result.Delimiter, err = url.QueryUnescape(result.Delimiter) - if err != nil { - return err - } - - // decode Prefix - result.Prefix, err = url.QueryUnescape(result.Prefix) - if err != nil { - return err - } - - // decode KeyMarker - result.KeyMarker, err = url.QueryUnescape(result.KeyMarker) - if err != nil { - return err - } - - // decode VersionIdMarker - result.VersionIdMarker, err = url.QueryUnescape(result.VersionIdMarker) - if err != nil { - return err - } - - // decode NextKeyMarker - result.NextKeyMarker, err = url.QueryUnescape(result.NextKeyMarker) - if err != nil { - return err - } - - // decode NextVersionIdMarker - result.NextVersionIdMarker, err = url.QueryUnescape(result.NextVersionIdMarker) - if err != nil { - return err - } - - // decode CommonPrefixes - for i := 0; i < len(result.CommonPrefixes); i++ { - result.CommonPrefixes[i], err = url.QueryUnescape(result.CommonPrefixes[i]) - if err != nil { - return err - } - } - - // decode deleteMarker - for i := 0; i < len(result.ObjectDeleteMarkers); i++ { - result.ObjectDeleteMarkers[i].Key, err = url.QueryUnescape(result.ObjectDeleteMarkers[i].Key) - if err != nil { - return err - } - } - - // decode ObjectVersions - for i := 0; i < len(result.ObjectVersions); i++ { - result.ObjectVersions[i].Key, err = url.QueryUnescape(result.ObjectVersions[i].Key) - if err != nil { - return err - } - } - - return nil -} - -// decodeListUploadedPartsResult decodes -func decodeListUploadedPartsResult(result *ListUploadedPartsResult) error { - var err error - result.Key, err = url.QueryUnescape(result.Key) - if err != nil { - return err - } - return nil -} - -// decodeListMultipartUploadResult decodes list multipart upload result in URL encoding -func decodeListMultipartUploadResult(result *ListMultipartUploadResult) error { - var err error - result.Prefix, err = url.QueryUnescape(result.Prefix) - if err != nil { - return err - } - result.Delimiter, err = url.QueryUnescape(result.Delimiter) - if err != nil { - return err - } - result.KeyMarker, err = url.QueryUnescape(result.KeyMarker) - if err != nil { - return err - } - result.NextKeyMarker, err = url.QueryUnescape(result.NextKeyMarker) - if err != nil { - return err - } - for i := 0; i < len(result.Uploads); i++ { - result.Uploads[i].Key, err = url.QueryUnescape(result.Uploads[i].Key) - if err != nil { - return err - } - } - for i := 0; i < len(result.CommonPrefixes); i++ { - result.CommonPrefixes[i], err = url.QueryUnescape(result.CommonPrefixes[i]) - if err != nil { - return err - } - } - return nil -} - -// marshalDeleteObjectToXml deleteXML struct to xml -func marshalDeleteObjectToXml(dxml deleteXML) string { - var builder strings.Builder - builder.WriteString("") - builder.WriteString("") - builder.WriteString(strconv.FormatBool(dxml.Quiet)) - builder.WriteString("") - if len(dxml.Objects) > 0 { - for _, object := range dxml.Objects { - builder.WriteString("") - if object.Key != "" { - builder.WriteString("") - builder.WriteString(EscapeXml(object.Key)) - builder.WriteString("") - } - if object.VersionId != "" { - builder.WriteString("") - builder.WriteString(object.VersionId) - builder.WriteString("") - } - builder.WriteString("") - } - } - builder.WriteString("") - return builder.String() -} - -// createBucketConfiguration defines the configuration for creating a bucket. -type createBucketConfiguration struct { - XMLName xml.Name `xml:"CreateBucketConfiguration"` - StorageClass StorageClassType `xml:"StorageClass,omitempty"` - DataRedundancyType DataRedundancyType `xml:"DataRedundancyType,omitempty"` - ObjectHashFunction ObjecthashFuncType `xml:"ObjectHashFunction,omitempty"` -} - -// LiveChannelConfiguration defines the configuration for live-channel -type LiveChannelConfiguration struct { - XMLName xml.Name `xml:"LiveChannelConfiguration"` - Description string `xml:"Description,omitempty"` //Description of live-channel, up to 128 bytes - Status string `xml:"Status,omitempty"` //Specify the status of livechannel - Target LiveChannelTarget `xml:"Target"` //target configuration of live-channel - // use point instead of struct to avoid omit empty snapshot - Snapshot *LiveChannelSnapshot `xml:"Snapshot,omitempty"` //snapshot configuration of live-channel -} - -// LiveChannelTarget target configuration of live-channel -type LiveChannelTarget struct { - XMLName xml.Name `xml:"Target"` - Type string `xml:"Type"` //the type of object, only supports HLS - FragDuration int `xml:"FragDuration,omitempty"` //the length of each ts object (in seconds), in the range [1,100] - FragCount int `xml:"FragCount,omitempty"` //the number of ts objects in the m3u8 object, in the range of [1,100] - PlaylistName string `xml:"PlaylistName,omitempty"` //the name of m3u8 object, which must end with ".m3u8" and the length range is [6,128] -} - -// LiveChannelSnapshot snapshot configuration of live-channel -type LiveChannelSnapshot struct { - XMLName xml.Name `xml:"Snapshot"` - RoleName string `xml:"RoleName,omitempty"` //The role of snapshot operations, it sholud has write permission of DestBucket and the permission to send messages to the NotifyTopic. - DestBucket string `xml:"DestBucket,omitempty"` //Bucket the snapshots will be written to. should be the same owner as the source bucket. - NotifyTopic string `xml:"NotifyTopic,omitempty"` //Topics of MNS for notifying users of high frequency screenshot operation results - Interval int `xml:"Interval,omitempty"` //interval of snapshots, threre is no snapshot if no I-frame during the interval time -} - -// CreateLiveChannelResult the result of crete live-channel -type CreateLiveChannelResult struct { - XMLName xml.Name `xml:"CreateLiveChannelResult"` - PublishUrls []string `xml:"PublishUrls>Url"` //push urls list - PlayUrls []string `xml:"PlayUrls>Url"` //play urls list -} - -// LiveChannelStat the result of get live-channel state -type LiveChannelStat struct { - XMLName xml.Name `xml:"LiveChannelStat"` - Status string `xml:"Status"` //Current push status of live-channel: Disabled,Live,Idle - ConnectedTime time.Time `xml:"ConnectedTime"` //The time when the client starts pushing, format: ISO8601 - RemoteAddr string `xml:"RemoteAddr"` //The ip address of the client - Video LiveChannelVideo `xml:"Video"` //Video stream information - Audio LiveChannelAudio `xml:"Audio"` //Audio stream information -} - -// LiveChannelVideo video stream information -type LiveChannelVideo struct { - XMLName xml.Name `xml:"Video"` - Width int `xml:"Width"` //Width (unit: pixels) - Height int `xml:"Height"` //Height (unit: pixels) - FrameRate int `xml:"FrameRate"` //FramRate - Bandwidth int `xml:"Bandwidth"` //Bandwidth (unit: B/s) -} - -// LiveChannelAudio audio stream information -type LiveChannelAudio struct { - XMLName xml.Name `xml:"Audio"` - SampleRate int `xml:"SampleRate"` //SampleRate - Bandwidth int `xml:"Bandwidth"` //Bandwidth (unit: B/s) - Codec string `xml:"Codec"` //Encoding forma -} - -// LiveChannelHistory the result of GetLiveChannelHistory, at most return up to lastest 10 push records -type LiveChannelHistory struct { - XMLName xml.Name `xml:"LiveChannelHistory"` - Record []LiveRecord `xml:"LiveRecord"` //push records list -} - -// LiveRecord push recode -type LiveRecord struct { - XMLName xml.Name `xml:"LiveRecord"` - StartTime time.Time `xml:"StartTime"` //StartTime, format: ISO8601 - EndTime time.Time `xml:"EndTime"` //EndTime, format: ISO8601 - RemoteAddr string `xml:"RemoteAddr"` //The ip address of remote client -} - -// ListLiveChannelResult the result of ListLiveChannel -type ListLiveChannelResult struct { - XMLName xml.Name `xml:"ListLiveChannelResult"` - Prefix string `xml:"Prefix"` //Filter by the name start with the value of "Prefix" - Marker string `xml:"Marker"` //cursor from which starting list - MaxKeys int `xml:"MaxKeys"` //The maximum count returned. the default value is 100. it cannot be greater than 1000. - IsTruncated bool `xml:"IsTruncated"` //Indicates whether all results have been returned, "true" indicates partial results returned while "false" indicates all results have been returned - NextMarker string `xml:"NextMarker"` //NextMarker indicate the Marker value of the next request - LiveChannel []LiveChannelInfo `xml:"LiveChannel"` //The infomation of live-channel -} - -// LiveChannelInfo the infomation of live-channel -type LiveChannelInfo struct { - XMLName xml.Name `xml:"LiveChannel"` - Name string `xml:"Name"` //The name of live-channel - Description string `xml:"Description"` //Description of live-channel - Status string `xml:"Status"` //Status: disabled or enabled - LastModified time.Time `xml:"LastModified"` //Last modification time, format: ISO8601 - PublishUrls []string `xml:"PublishUrls>Url"` //push urls list - PlayUrls []string `xml:"PlayUrls>Url"` //play urls list -} - -// Tag a tag for the object -type Tag struct { - XMLName xml.Name `xml:"Tag"` - Key string `xml:"Key"` - Value string `xml:"Value"` -} - -// Tagging tag set for the object -type Tagging struct { - XMLName xml.Name `xml:"Tagging"` - Tags []Tag `xml:"TagSet>Tag,omitempty"` -} - -// GetObjectTaggingResult for GetObjectTagging return value -type GetObjectTaggingResult Tagging - -// VersioningConfig for the bucket -type VersioningConfig struct { - XMLName xml.Name `xml:"VersioningConfiguration"` - Status string `xml:"Status"` -} - -type GetBucketVersioningResult VersioningConfig - -// ServerEncryptionRule Server Encryption rule for the bucket -type ServerEncryptionRule struct { - XMLName xml.Name `xml:"ServerSideEncryptionRule"` - SSEDefault SSEDefaultRule `xml:"ApplyServerSideEncryptionByDefault"` -} - -// SSEDefaultRule Server Encryption deafult rule for the bucket -type SSEDefaultRule struct { - XMLName xml.Name `xml:"ApplyServerSideEncryptionByDefault"` - SSEAlgorithm string `xml:"SSEAlgorithm,omitempty"` - KMSMasterKeyID string `xml:"KMSMasterKeyID,omitempty"` - KMSDataEncryption string `xml:"KMSDataEncryption,,omitempty"` -} - -type GetBucketEncryptionResult ServerEncryptionRule -type GetBucketTaggingResult Tagging - -type BucketStat struct { - XMLName xml.Name `xml:"BucketStat"` - Storage int64 `xml:"Storage"` - ObjectCount int64 `xml:"ObjectCount"` - MultipartUploadCount int64 `xml:"MultipartUploadCount"` - LiveChannelCount int64 `xml:"LiveChannelCount"` - LastModifiedTime int64 `xml:"LastModifiedTime"` - StandardStorage int64 `xml:"StandardStorage"` - StandardObjectCount int64 `xml:"StandardObjectCount"` - InfrequentAccessStorage int64 `xml:"InfrequentAccessStorage"` - InfrequentAccessRealStorage int64 `xml:"InfrequentAccessRealStorage"` - InfrequentAccessObjectCount int64 `xml:"InfrequentAccessObjectCount"` - ArchiveStorage int64 `xml:"ArchiveStorage"` - ArchiveRealStorage int64 `xml:"ArchiveRealStorage"` - ArchiveObjectCount int64 `xml:"ArchiveObjectCount"` - ColdArchiveStorage int64 `xml:"ColdArchiveStorage"` - ColdArchiveRealStorage int64 `xml:"ColdArchiveRealStorage"` - ColdArchiveObjectCount int64 `xml:"ColdArchiveObjectCount"` -} -type GetBucketStatResult BucketStat - -// RequestPaymentConfiguration define the request payment configuration -type RequestPaymentConfiguration struct { - XMLName xml.Name `xml:"RequestPaymentConfiguration"` - Payer string `xml:"Payer,omitempty"` -} - -// BucketQoSConfiguration define QoS configuration -type BucketQoSConfiguration struct { - XMLName xml.Name `xml:"QoSConfiguration"` - TotalUploadBandwidth *int `xml:"TotalUploadBandwidth"` // Total upload bandwidth - IntranetUploadBandwidth *int `xml:"IntranetUploadBandwidth"` // Intranet upload bandwidth - ExtranetUploadBandwidth *int `xml:"ExtranetUploadBandwidth"` // Extranet upload bandwidth - TotalDownloadBandwidth *int `xml:"TotalDownloadBandwidth"` // Total download bandwidth - IntranetDownloadBandwidth *int `xml:"IntranetDownloadBandwidth"` // Intranet download bandwidth - ExtranetDownloadBandwidth *int `xml:"ExtranetDownloadBandwidth"` // Extranet download bandwidth - TotalQPS *int `xml:"TotalQps"` // Total Qps - IntranetQPS *int `xml:"IntranetQps"` // Intranet Qps - ExtranetQPS *int `xml:"ExtranetQps"` // Extranet Qps -} - -// UserQoSConfiguration define QoS and Range configuration -type UserQoSConfiguration struct { - XMLName xml.Name `xml:"QoSConfiguration"` - Region string `xml:"Region,omitempty"` // Effective area of Qos configuration - BucketQoSConfiguration -} - -////////////////////////////////////////////////////////////// -/////////////////// Select OBject //////////////////////////// -////////////////////////////////////////////////////////////// - -type CsvMetaRequest struct { - XMLName xml.Name `xml:"CsvMetaRequest"` - InputSerialization InputSerialization `xml:"InputSerialization"` - OverwriteIfExists *bool `xml:"OverwriteIfExists,omitempty"` -} - -// encodeBase64 encode base64 of the CreateSelectObjectMeta api request params -func (meta *CsvMetaRequest) encodeBase64() { - meta.InputSerialization.CSV.RecordDelimiter = - base64.StdEncoding.EncodeToString([]byte(meta.InputSerialization.CSV.RecordDelimiter)) - meta.InputSerialization.CSV.FieldDelimiter = - base64.StdEncoding.EncodeToString([]byte(meta.InputSerialization.CSV.FieldDelimiter)) - meta.InputSerialization.CSV.QuoteCharacter = - base64.StdEncoding.EncodeToString([]byte(meta.InputSerialization.CSV.QuoteCharacter)) -} - -type JsonMetaRequest struct { - XMLName xml.Name `xml:"JsonMetaRequest"` - InputSerialization InputSerialization `xml:"InputSerialization"` - OverwriteIfExists *bool `xml:"OverwriteIfExists,omitempty"` -} - -type InputSerialization struct { - XMLName xml.Name `xml:"InputSerialization"` - CSV CSV `xml:CSV,omitempty` - JSON JSON `xml:JSON,omitempty` - CompressionType string `xml:"CompressionType,omitempty"` -} -type CSV struct { - XMLName xml.Name `xml:"CSV"` - RecordDelimiter string `xml:"RecordDelimiter,omitempty"` - FieldDelimiter string `xml:"FieldDelimiter,omitempty"` - QuoteCharacter string `xml:"QuoteCharacter,omitempty"` -} - -type JSON struct { - XMLName xml.Name `xml:"JSON"` - JSONType string `xml:"Type,omitempty"` -} - -// SelectRequest is for the SelectObject request params of json file -type SelectRequest struct { - XMLName xml.Name `xml:"SelectRequest"` - Expression string `xml:"Expression"` - InputSerializationSelect InputSerializationSelect `xml:"InputSerialization"` - OutputSerializationSelect OutputSerializationSelect `xml:"OutputSerialization"` - SelectOptions SelectOptions `xml:"Options,omitempty"` -} -type InputSerializationSelect struct { - XMLName xml.Name `xml:"InputSerialization"` - CsvBodyInput CSVSelectInput `xml:CSV,omitempty` - JsonBodyInput JSONSelectInput `xml:JSON,omitempty` - CompressionType string `xml:"CompressionType,omitempty"` -} -type CSVSelectInput struct { - XMLName xml.Name `xml:"CSV"` - FileHeaderInfo string `xml:"FileHeaderInfo,omitempty"` - RecordDelimiter string `xml:"RecordDelimiter,omitempty"` - FieldDelimiter string `xml:"FieldDelimiter,omitempty"` - QuoteCharacter string `xml:"QuoteCharacter,omitempty"` - CommentCharacter string `xml:"CommentCharacter,omitempty"` - Range string `xml:"Range,omitempty"` - SplitRange string -} -type JSONSelectInput struct { - XMLName xml.Name `xml:"JSON"` - JSONType string `xml:"Type,omitempty"` - Range string `xml:"Range,omitempty"` - ParseJSONNumberAsString *bool `xml:"ParseJsonNumberAsString"` - SplitRange string -} - -func (jsonInput *JSONSelectInput) JsonIsEmpty() bool { - if jsonInput.JSONType != "" { - return false - } - return true -} - -type OutputSerializationSelect struct { - XMLName xml.Name `xml:"OutputSerialization"` - CsvBodyOutput CSVSelectOutput `xml:CSV,omitempty` - JsonBodyOutput JSONSelectOutput `xml:JSON,omitempty` - OutputRawData *bool `xml:"OutputRawData,omitempty"` - KeepAllColumns *bool `xml:"KeepAllColumns,omitempty"` - EnablePayloadCrc *bool `xml:"EnablePayloadCrc,omitempty"` - OutputHeader *bool `xml:"OutputHeader,omitempty"` -} -type CSVSelectOutput struct { - XMLName xml.Name `xml:"CSV"` - RecordDelimiter string `xml:"RecordDelimiter,omitempty"` - FieldDelimiter string `xml:"FieldDelimiter,omitempty"` -} -type JSONSelectOutput struct { - XMLName xml.Name `xml:"JSON"` - RecordDelimiter string `xml:"RecordDelimiter,omitempty"` -} - -func (selectReq *SelectRequest) encodeBase64() { - if selectReq.InputSerializationSelect.JsonBodyInput.JsonIsEmpty() { - selectReq.csvEncodeBase64() - } else { - selectReq.jsonEncodeBase64() - } -} - -// csvEncodeBase64 encode base64 of the SelectObject api request params -func (selectReq *SelectRequest) csvEncodeBase64() { - selectReq.Expression = base64.StdEncoding.EncodeToString([]byte(selectReq.Expression)) - selectReq.InputSerializationSelect.CsvBodyInput.RecordDelimiter = - base64.StdEncoding.EncodeToString([]byte(selectReq.InputSerializationSelect.CsvBodyInput.RecordDelimiter)) - selectReq.InputSerializationSelect.CsvBodyInput.FieldDelimiter = - base64.StdEncoding.EncodeToString([]byte(selectReq.InputSerializationSelect.CsvBodyInput.FieldDelimiter)) - selectReq.InputSerializationSelect.CsvBodyInput.QuoteCharacter = - base64.StdEncoding.EncodeToString([]byte(selectReq.InputSerializationSelect.CsvBodyInput.QuoteCharacter)) - selectReq.InputSerializationSelect.CsvBodyInput.CommentCharacter = - base64.StdEncoding.EncodeToString([]byte(selectReq.InputSerializationSelect.CsvBodyInput.CommentCharacter)) - selectReq.OutputSerializationSelect.CsvBodyOutput.FieldDelimiter = - base64.StdEncoding.EncodeToString([]byte(selectReq.OutputSerializationSelect.CsvBodyOutput.FieldDelimiter)) - selectReq.OutputSerializationSelect.CsvBodyOutput.RecordDelimiter = - base64.StdEncoding.EncodeToString([]byte(selectReq.OutputSerializationSelect.CsvBodyOutput.RecordDelimiter)) - - // handle Range - if selectReq.InputSerializationSelect.CsvBodyInput.Range != "" { - selectReq.InputSerializationSelect.CsvBodyInput.Range = "line-range=" + selectReq.InputSerializationSelect.CsvBodyInput.Range - } - - if selectReq.InputSerializationSelect.CsvBodyInput.SplitRange != "" { - selectReq.InputSerializationSelect.CsvBodyInput.Range = "split-range=" + selectReq.InputSerializationSelect.CsvBodyInput.SplitRange - } -} - -// jsonEncodeBase64 encode base64 of the SelectObject api request params -func (selectReq *SelectRequest) jsonEncodeBase64() { - selectReq.Expression = base64.StdEncoding.EncodeToString([]byte(selectReq.Expression)) - selectReq.OutputSerializationSelect.JsonBodyOutput.RecordDelimiter = - base64.StdEncoding.EncodeToString([]byte(selectReq.OutputSerializationSelect.JsonBodyOutput.RecordDelimiter)) - - // handle Range - if selectReq.InputSerializationSelect.JsonBodyInput.Range != "" { - selectReq.InputSerializationSelect.JsonBodyInput.Range = "line-range=" + selectReq.InputSerializationSelect.JsonBodyInput.Range - } - - if selectReq.InputSerializationSelect.JsonBodyInput.SplitRange != "" { - selectReq.InputSerializationSelect.JsonBodyInput.Range = "split-range=" + selectReq.InputSerializationSelect.JsonBodyInput.SplitRange - } -} - -// SelectOptions is a element in the SelectObject api request's params -type SelectOptions struct { - XMLName xml.Name `xml:"Options"` - SkipPartialDataRecord *bool `xml:"SkipPartialDataRecord,omitempty"` - MaxSkippedRecordsAllowed string `xml:"MaxSkippedRecordsAllowed,omitempty"` -} - -// SelectObjectResult is the SelectObject api's return -type SelectObjectResult struct { - Version byte - FrameType int32 - PayloadLength int32 - HeaderCheckSum uint32 - Offset uint64 - Data string // DataFrame - EndFrame EndFrame // EndFrame - MetaEndFrameCSV MetaEndFrameCSV // MetaEndFrameCSV - MetaEndFrameJSON MetaEndFrameJSON // MetaEndFrameJSON - PayloadChecksum uint32 - ReadFlagInfo -} - -// ReadFlagInfo if reading the frame data, recode the reading status -type ReadFlagInfo struct { - OpenLine bool - ConsumedBytesLength int32 - EnablePayloadCrc bool - OutputRawData bool -} - -// EndFrame is EndFrameType of SelectObject api -type EndFrame struct { - TotalScanned int64 - HTTPStatusCode int32 - ErrorMsg string -} - -// MetaEndFrameCSV is MetaEndFrameCSVType of CreateSelectObjectMeta -type MetaEndFrameCSV struct { - TotalScanned int64 - Status int32 - SplitsCount int32 - RowsCount int64 - ColumnsCount int32 - ErrorMsg string -} - -// MetaEndFrameJSON is MetaEndFrameJSON of CreateSelectObjectMeta -type MetaEndFrameJSON struct { - TotalScanned int64 - Status int32 - SplitsCount int32 - RowsCount int64 - ErrorMsg string -} - -// InventoryConfiguration is Inventory config -type InventoryConfiguration struct { - XMLName xml.Name `xml:"InventoryConfiguration"` - Id string `xml:"Id,omitempty"` - IsEnabled *bool `xml:"IsEnabled,omitempty"` - Prefix string `xml:"Filter>Prefix,omitempty"` - OSSBucketDestination OSSBucketDestination `xml:"Destination>OSSBucketDestination,omitempty"` - Frequency string `xml:"Schedule>Frequency,omitempty"` - IncludedObjectVersions string `xml:"IncludedObjectVersions,omitempty"` - OptionalFields OptionalFields `xml:OptionalFields,omitempty` -} - -type OptionalFields struct { - XMLName xml.Name `xml:"OptionalFields,omitempty` - Field []string `xml:"Field,omitempty` -} - -type OSSBucketDestination struct { - XMLName xml.Name `xml:"OSSBucketDestination"` - Format string `xml:"Format,omitempty"` - AccountId string `xml:"AccountId,omitempty"` - RoleArn string `xml:"RoleArn,omitempty"` - Bucket string `xml:"Bucket,omitempty"` - Prefix string `xml:"Prefix,omitempty"` - Encryption *InvEncryption `xml:"Encryption,omitempty"` -} - -type InvEncryption struct { - XMLName xml.Name `xml:"Encryption"` - SseOss *InvSseOss `xml:"SSE-OSS"` - SseKms *InvSseKms `xml:"SSE-KMS"` -} - -type InvSseOss struct { - XMLName xml.Name `xml:"SSE-OSS"` -} - -type InvSseKms struct { - XMLName xml.Name `xml:"SSE-KMS"` - KmsId string `xml:"KeyId,omitempty"` -} - -type ListInventoryConfigurationsResult struct { - XMLName xml.Name `xml:"ListInventoryConfigurationsResult"` - InventoryConfiguration []InventoryConfiguration `xml:"InventoryConfiguration,omitempty` - IsTruncated *bool `xml:"IsTruncated,omitempty"` - NextContinuationToken string `xml:"NextContinuationToken,omitempty"` -} - -// RestoreConfiguration for RestoreObject -type RestoreConfiguration struct { - XMLName xml.Name `xml:"RestoreRequest"` - Days int32 `xml:"Days,omitempty"` - Tier string `xml:"JobParameters>Tier,omitempty"` -} - -// AsyncFetchTaskConfiguration for SetBucketAsyncFetchTask -type AsyncFetchTaskConfiguration struct { - XMLName xml.Name `xml:"AsyncFetchTaskConfiguration"` - Url string `xml:"Url,omitempty"` - Object string `xml:"Object,omitempty"` - Host string `xml:"Host,omitempty"` - ContentMD5 string `xml:"ContentMD5,omitempty"` - Callback string `xml:"Callback,omitempty"` - StorageClass string `xml:"StorageClass,omitempty"` - IgnoreSameKey bool `xml:"IgnoreSameKey"` -} - -// AsyncFetchTaskResult for SetBucketAsyncFetchTask result -type AsyncFetchTaskResult struct { - XMLName xml.Name `xml:"AsyncFetchTaskResult"` - TaskId string `xml:"TaskId,omitempty"` -} - -// AsynFetchTaskInfo for GetBucketAsyncFetchTask result -type AsynFetchTaskInfo struct { - XMLName xml.Name `xml:"AsyncFetchTaskInfo"` - TaskId string `xml:"TaskId,omitempty"` - State string `xml:"State,omitempty"` - ErrorMsg string `xml:"ErrorMsg,omitempty"` - TaskInfo AsyncTaskInfo `xml:"TaskInfo,omitempty"` -} - -// AsyncTaskInfo for async task information -type AsyncTaskInfo struct { - XMLName xml.Name `xml:"TaskInfo"` - Url string `xml:"Url,omitempty"` - Object string `xml:"Object,omitempty"` - Host string `xml:"Host,omitempty"` - ContentMD5 string `xml:"ContentMD5,omitempty"` - Callback string `xml:"Callback,omitempty"` - StorageClass string `xml:"StorageClass,omitempty"` - IgnoreSameKey bool `xml:"IgnoreSameKey"` -} - -// InitiateWormConfiguration define InitiateBucketWorm configuration -type InitiateWormConfiguration struct { - XMLName xml.Name `xml:"InitiateWormConfiguration"` - RetentionPeriodInDays int `xml:"RetentionPeriodInDays"` // specify retention days -} - -// ExtendWormConfiguration define ExtendWormConfiguration configuration -type ExtendWormConfiguration struct { - XMLName xml.Name `xml:"ExtendWormConfiguration"` - RetentionPeriodInDays int `xml:"RetentionPeriodInDays"` // specify retention days -} - -// WormConfiguration define WormConfiguration -type WormConfiguration struct { - XMLName xml.Name `xml:"WormConfiguration"` - WormId string `xml:"WormId,omitempty"` - State string `xml:"State,omitempty"` - RetentionPeriodInDays int `xml:"RetentionPeriodInDays"` // specify retention days - CreationDate string `xml:"CreationDate,omitempty"` -} - -// TransferAccConfiguration define transfer acceleration configuration -type TransferAccConfiguration struct { - XMLName xml.Name `xml:"TransferAccelerationConfiguration"` - Enabled bool `xml:"Enabled"` -} - -// ReplicationXML defines simple replication xml, and ReplicationXML is used for "DeleteBucketReplication" in client.go -type ReplicationXML struct { - XMLName xml.Name `xml:"ReplicationRules"` - ID string `xml:"ID,omitempty"` -} - -// PutBucketReplication define the bucket replication config -type PutBucketReplication BucketReplicationXml - -// GetBucketReplicationResult define get bucket's replication config -type GetBucketReplicationResult BucketReplicationXml - -// GetBucketReplicationLocationResult define get bucket's replication location -type GetBucketReplicationLocationResult BucketReplicationLocationXml - -// GetBucketReplicationProgressResult define get bucket's replication progress -type GetBucketReplicationProgressResult BucketReplicationProgressXml - -// PutBucketRTC define the bucket rtc config -type PutBucketRTC BucketRTCXml - -// BucketReplicationXml define the xml of bucket replication config -type BucketReplicationXml struct { - XMLName xml.Name `xml:"ReplicationConfiguration"` - Rule []ReplicationRule `xml:"Rule,omitempty"` -} - -// BucketReplicationProgressXml define the xml of bucket replication config -type BucketReplicationProgressXml struct { - XMLName xml.Name `xml:"ReplicationProgress"` - Rule []ReplicationRule `xml:"Rule,omitempty"` -} - -// BucketRTCXml define the xml of bucket rtc config -type BucketRTCXml struct { - XMLName xml.Name `xml:"ReplicationRule"` - RTC *string `xml:"RTC>Status,omitempty"` - ID string `xml:"ID,omitempty"` -} - -// ReplicationRule define the xml of bucket replication config rule -type ReplicationRule struct { - ID string `xml:"ID,omitempty"` - RTC *string `xml:"RTC>Status,omitempty"` - PrefixSet *ReplicationRulePrefix `xml:"PrefixSet,omitempty"` - Action string `xml:"Action,omitempty"` - Destination *ReplicationRuleDestination `xml:"Destination,omitempty"` - HistoricalObjectReplication string `xml:"HistoricalObjectReplication,omitempty"` - Status string `xml:"Status,omitempty"` - SyncRole string `xml:"SyncRole,omitempty"` - SourceSelectionCriteria *string `xml:"SourceSelectionCriteria>SseKmsEncryptedObjects>Status,omitempty"` - EncryptionConfiguration *string `xml:"EncryptionConfiguration>ReplicaKmsKeyID,omitempty"` - Progress *ReplicationRuleProgress `xml:"Progress,omitempty"` - HistoricalObject string `xml:"HistoricalObject,omitempty"` -} - -type ReplicationRulePrefix struct { - Prefix []*string `xml:"Prefix,omitempty"` -} - -type ReplicationRuleDestination struct { - Bucket string `xml:"Bucket,omitempty"` - Location string `xml:"Location,omitempty"` - TransferType string `xml:"TransferType,omitempty"` -} - -// BucketReplicationLocationXml define the xml of bucket replication location info -type BucketReplicationLocationXml struct { - XMLName xml.Name `xml:"ReplicationLocation"` - Location []string `xml:"Location,omitempty"` - LocationTransferType []ReplicationLocationTransferType `xml:"LocationTransferTypeConstraint>LocationTransferType,omitempty"` - RTCLocation []string `xml:"LocationRTCConstraint>Location,omitempty"` -} - -type ReplicationLocation struct { - Location string `xml:"Location,omitempty"` -} - -type ReplicationLocationTransferType struct { - Location string `xml:"Location,omitempty"` - TransferTypes string `xml:"TransferTypes>Type,omitempty"` -} - -type ReplicationRuleProgress struct { - HistoricalObject string `xml:"HistoricalObject,omitempty"` - NewObject string `xml:"NewObject,omitempty"` -} - -// CnameConfigurationXML define cname configuration -type CnameConfigurationXML struct { - XMLName xml.Name `xml:"BucketCnameConfiguration"` - Domain string `xml:"Cname>Domain"` -} - -type PutBucketCname PutBucketCnameXml - -// PutBucketCnameXml define cname configuration -type PutBucketCnameXml struct { - XMLName xml.Name `xml:"BucketCnameConfiguration"` - Cname string `xml:"Cname>Domain"` - CertificateConfiguration *CertificateConfiguration `xml:"Cname>CertificateConfiguration"` -} - -type CertificateConfiguration struct { - CertId string `xml:"CertId,omitempty"` - Certificate string `xml:"Certificate,omitempty"` - PrivateKey string `xml:"PrivateKey,omitempty"` - PreviousCertId string `xml:"PreviousCertId,omitempty"` - Force bool `xml:"Force,omitempty"` - DeleteCertificate bool `xml:"DeleteCertificate,omitempty"` -} - -// CnameTokenXML define cname token information -type CnameTokenXML struct { - XMLName xml.Name `xml:"CnameToken"` - Bucket string `xml:"Bucket,omitempty"` - Cname string `xml:"Cname,omitempty"` - Token string `xml:"Token,omitempty"` - ExpireTime string `xml:"ExpireTime,omitempty"` -} - -// CreateBucketCnameTokenResult defines result object for CreateBucketCnameToken request -type CreateBucketCnameTokenResult CnameTokenXML - -// GetBucketCnameTokenResult defines result object for GetBucketCnameToken request -type GetBucketCnameTokenResult CnameTokenXML - -// GetMetaQueryStatusResult defines result for GetMetaQueryStatus result -type GetMetaQueryStatusResult GetMetaQueryStatusResultXml - -// GetMetaQueryStatusResultXml define get meta query status information -type GetMetaQueryStatusResultXml struct { - XMLName xml.Name `xml:"MetaQueryStatus"` - State string `xml:"State"` - Phase string `xml:"Phase"` - CreateTime string `xml:"CreateTime"` - UpdateTime string `xml:"UpdateTime"` -} - -// MetaQuery defines meta query struct -type MetaQuery struct { - XMLName xml.Name `xml:"MetaQuery"` - NextToken string `xml:"NextToken,omitempty"` - MaxResults int64 `xml:"MaxResults,omitempty"` - Query string `xml:"Query"` - Sort string `xml:"Sort,omitempty"` - Order string `xml:"Order,omitempty"` - Aggregations []MetaQueryAggregationRequest `xml:"Aggregations>Aggregation,omitempty"` -} - -// MetaQueryAggregationRequest defines meta query aggregation request -type MetaQueryAggregationRequest struct { - XMLName xml.Name `xml:"Aggregation"` - Field string `xml:"Field,omitempty"` - Operation string `xml:"Operation,omitempty"` -} - -// MetaQueryAggregationResponse defines meta query aggregation response -type MetaQueryAggregationResponse struct { - XMLName xml.Name `xml:"Aggregation"` - Field string `xml:"Field,omitempty"` - Operation string `xml:"Operation,omitempty"` - Value float64 `xml:"Value,omitempty"` - Groups []MetaQueryGroup `xml:"Groups>Group,omitempty"` -} - -// DoMetaQueryResult defines result for DoMetaQuery result -type DoMetaQueryResult DoMetaQueryResultXml - -// DoMetaQueryResultXml defines do meta query information -type DoMetaQueryResultXml struct { - XMLName xml.Name `xml:"MetaQuery"` - NextToken string `xml:"NextToken,omitempty"` // next token - Files []MetaQueryFile `xml:"Files>File,omitempty"` // file - Aggregations []MetaQueryAggregationResponse `xml:"Aggregations>Aggregation,omitempty"'` // Aggregation -} - -// MetaQueryFile defines do meta query result file information -type MetaQueryFile struct { - XMLName xml.Name `xml:"File"` - Filename string `xml:"Filename"` //file name - Size int64 `xml:"Size"` // file size - FileModifiedTime string `xml:"FileModifiedTime"` // file Modified Time - OssObjectType string `xml:"OSSObjectType"` // Oss Object Type - OssStorageClass string `xml:"OSSStorageClass"` // Oss Storage Class - ObjectACL string `xml:"ObjectACL"` // Object Acl - ETag string `xml:"ETag"` // ETag - OssCRC64 string `xml:"OSSCRC64"` // Oss CRC64 - OssTaggingCount int64 `xml:"OSSTaggingCount,omitempty"` // Oss Tagging Count - OssTagging []MetaQueryTagging `xml:"OSSTagging>Tagging,omitempty"` // Tagging - OssUserMeta []MetaQueryUserMeta `xml:"OSSUserMeta>UserMeta,omitempty"` // UserMeta - ServerSideEncryption string `xml:"ServerSideEncryption,omitempty"` //Server Side Encryption - ServerSideEncryptionCustomerAlgorithm string `xml:"ServerSideEncryptionCustomerAlgorithm,omitempty"` // Server Side Encryption Customer Algorithm -} - -// MetaQueryTagging defines do meta query result tagging information -type MetaQueryTagging struct { - XMLName xml.Name `xml:"Tagging"` - Key string `xml:"Key"` - Value string `xml:"Value"` -} - -// MetaQueryUserMeta defines do meta query result user meta information -type MetaQueryUserMeta struct { - XMLName xml.Name `xml:"UserMeta"` - Key string `xml:"Key"` - Value string `xml:"Value"` -} - -// MetaQueryGroup defines do meta query result group information -type MetaQueryGroup struct { - XMLName xml.Name `xml:"Group"` - Value string `xml:"Value"` - Count int64 `xml:"Count"` -} - -// GetBucketAccessMonitorResult define config for get bucket access monitor -type GetBucketAccessMonitorResult BucketAccessMonitorXml - -// PutBucketAccessMonitor define the xml of bucket access monitor config -type PutBucketAccessMonitor BucketAccessMonitorXml - -// BucketAccessMonitorXml define get bucket access monitor information -type BucketAccessMonitorXml struct { - XMLName xml.Name `xml:"AccessMonitorConfiguration"` - Status string `xml:"Status"` // access monitor status -} - -// ListBucketCnameResult define the cname list of the bucket -type ListBucketCnameResult BucketCnameXml - -// BucketCnameXml define get the bucket cname information -type BucketCnameXml struct { - XMLName xml.Name `xml:"ListCnameResult"` - Bucket string `xml:"Bucket"` - Owner string `xml:"Owner"` - Cname []Cname `xml:"Cname"` -} - -// Cname define the cname information -type Cname struct { - Domain string `xml:"Domain"` - LastModified string `xml:"LastModified"` - Status string `xml:"Status"` - Certificate Certificate `xml:"Certificate"` -} - -// Certificate define Details of domain name certificate -type Certificate struct { - Type string `xml:"Type"` - CertId string `xml:"CertId"` - Status string `xml:"Status"` - CreationDate string `xml:"CreationDate"` - Fingerprint string `xml:"Fingerprint"` - ValidStartDate string `xml:"ValidStartDate"` - ValidEndDate string `xml:"ValidEndDate"` -} - -// GetBucketResourceGroupResult define resource group for the bucket -type GetBucketResourceGroupResult BucketResourceGroupXml - -// PutBucketResourceGroup define the xml of bucket's resource group config -type PutBucketResourceGroup BucketResourceGroupXml - -// BucketResourceGroupXml define the information of the bucket's resource group -type BucketResourceGroupXml struct { - XMLName xml.Name `xml:"BucketResourceGroupConfiguration"` - ResourceGroupId string `xml:"ResourceGroupId"` // resource groupId -} - -// GetBucketStyleResult define style for the bucket -type GetBucketStyleResult BucketStyleXml - -// GetBucketListStyleResult define the list style for the bucket -type GetBucketListStyleResult BucketListStyleXml - -// BucketListStyleXml define the list style of the bucket -type BucketListStyleXml struct { - XMLName xml.Name `xml:"StyleList"` - Style []BucketStyleXml `xml:"Style,omitempty"` // style -} - -// BucketStyleXml define the information of the bucket's style -type BucketStyleXml struct { - XMLName xml.Name `xml:"Style"` - Name string `xml:"Name,omitempty"` // style name - Content string `xml:"Content"` // style content - CreateTime string `xml:"CreateTime,omitempty"` // style create time - LastModifyTime string `xml:"LastModifyTime,omitempty"` // style last modify time -} - -// DescribeRegionsResult define get the describe regions result -type DescribeRegionsResult RegionInfoList - -type RegionInfo struct { - Region string `xml:"Region"` - InternetEndpoint string `xml:"InternetEndpoint"` - InternalEndpoint string `xml:"InternalEndpoint"` - AccelerateEndpoint string `xml:"AccelerateEndpoint"` -} - -type RegionInfoList struct { - XMLName xml.Name `xml:"RegionInfoList"` - Regions []RegionInfo `xml:"RegionInfo"` -} - -//PutBucketResponseHeader define the xml of bucket's response header config -type PutBucketResponseHeader ResponseHeaderXml - -//GetBucketResponseHeaderResult define the xml of bucket's response header result -type GetBucketResponseHeaderResult ResponseHeaderXml - -type ResponseHeaderXml struct { - XMLName xml.Name `xml:"ResponseHeaderConfiguration"` - Rule []ResponseHeaderRule `xml:Rule,omitempty"` // rule -} - -type ResponseHeaderRule struct { - Name string `xml:"Name"` // rule name - Filters ResponseHeaderRuleFilters `xml:"Filters,omitempty"` // rule filters Operation - HideHeaders ResponseHeaderRuleHeaders `xml:"HideHeaders,omitempty"` // rule hide header -} - -type ResponseHeaderRuleFilters struct { - Operation []string `xml:"Operation,omitempty"` -} - -type ResponseHeaderRuleHeaders struct { - Header []string `xml:"Header,omitempty"` -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/upload.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/upload.go deleted file mode 100644 index becc6433dc..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/upload.go +++ /dev/null @@ -1,578 +0,0 @@ -package oss - -import ( - "bytes" - "crypto/md5" - "encoding/base64" - "encoding/hex" - "encoding/json" - "errors" - "fmt" - "io/ioutil" - "net/http" - "os" - "path/filepath" - "time" -) - -// UploadFile is multipart file upload. -// -// objectKey the object name. -// filePath the local file path to upload. -// partSize the part size in byte. -// options the options for uploading object. -// -// error it's nil if the operation succeeds, otherwise it's an error object. -// -func (bucket Bucket) UploadFile(objectKey, filePath string, partSize int64, options ...Option) error { - if partSize < MinPartSize || partSize > MaxPartSize { - return errors.New("oss: part size invalid range (100KB, 5GB]") - } - - cpConf := getCpConfig(options) - routines := getRoutines(options) - - if cpConf != nil && cpConf.IsEnable { - cpFilePath := getUploadCpFilePath(cpConf, filePath, bucket.BucketName, objectKey) - if cpFilePath != "" { - return bucket.uploadFileWithCp(objectKey, filePath, partSize, options, cpFilePath, routines) - } - } - - return bucket.uploadFile(objectKey, filePath, partSize, options, routines) -} - -func getUploadCpFilePath(cpConf *cpConfig, srcFile, destBucket, destObject string) string { - if cpConf.FilePath == "" && cpConf.DirPath != "" { - dest := fmt.Sprintf("oss://%v/%v", destBucket, destObject) - absPath, _ := filepath.Abs(srcFile) - cpFileName := getCpFileName(absPath, dest, "") - cpConf.FilePath = cpConf.DirPath + string(os.PathSeparator) + cpFileName - } - return cpConf.FilePath -} - -// ----- concurrent upload without checkpoint ----- - -// getCpConfig gets checkpoint configuration -func getCpConfig(options []Option) *cpConfig { - cpcOpt, err := FindOption(options, checkpointConfig, nil) - if err != nil || cpcOpt == nil { - return nil - } - - return cpcOpt.(*cpConfig) -} - -// getCpFileName return the name of the checkpoint file -func getCpFileName(src, dest, versionId string) string { - md5Ctx := md5.New() - md5Ctx.Write([]byte(src)) - srcCheckSum := hex.EncodeToString(md5Ctx.Sum(nil)) - - md5Ctx.Reset() - md5Ctx.Write([]byte(dest)) - destCheckSum := hex.EncodeToString(md5Ctx.Sum(nil)) - - if versionId == "" { - return fmt.Sprintf("%v-%v.cp", srcCheckSum, destCheckSum) - } - - md5Ctx.Reset() - md5Ctx.Write([]byte(versionId)) - versionCheckSum := hex.EncodeToString(md5Ctx.Sum(nil)) - return fmt.Sprintf("%v-%v-%v.cp", srcCheckSum, destCheckSum, versionCheckSum) -} - -// getRoutines gets the routine count. by default it's 1. -func getRoutines(options []Option) int { - rtnOpt, err := FindOption(options, routineNum, nil) - if err != nil || rtnOpt == nil { - return 1 - } - - rs := rtnOpt.(int) - if rs < 1 { - rs = 1 - } else if rs > 100 { - rs = 100 - } - - return rs -} - -// getPayer return the payer of the request -func getPayer(options []Option) string { - payerOpt, err := FindOption(options, HTTPHeaderOssRequester, nil) - if err != nil || payerOpt == nil { - return "" - } - return payerOpt.(string) -} - -// GetProgressListener gets the progress callback -func GetProgressListener(options []Option) ProgressListener { - isSet, listener, _ := IsOptionSet(options, progressListener) - if !isSet { - return nil - } - return listener.(ProgressListener) -} - -// uploadPartHook is for testing usage -type uploadPartHook func(id int, chunk FileChunk) error - -var uploadPartHooker uploadPartHook = defaultUploadPart - -func defaultUploadPart(id int, chunk FileChunk) error { - return nil -} - -// workerArg defines worker argument structure -type workerArg struct { - bucket *Bucket - filePath string - imur InitiateMultipartUploadResult - options []Option - hook uploadPartHook -} - -// worker is the worker coroutine function -type defaultUploadProgressListener struct { -} - -// ProgressChanged no-ops -func (listener *defaultUploadProgressListener) ProgressChanged(event *ProgressEvent) { -} - -func worker(id int, arg workerArg, jobs <-chan FileChunk, results chan<- UploadPart, failed chan<- error, die <-chan bool) { - for chunk := range jobs { - if err := arg.hook(id, chunk); err != nil { - failed <- err - break - } - var respHeader http.Header - p := Progress(&defaultUploadProgressListener{}) - opts := make([]Option, len(arg.options)+2) - opts = append(opts, arg.options...) - - // use defaultUploadProgressListener - opts = append(opts, p, GetResponseHeader(&respHeader)) - - startT := time.Now().UnixNano() / 1000 / 1000 / 1000 - part, err := arg.bucket.UploadPartFromFile(arg.imur, arg.filePath, chunk.Offset, chunk.Size, chunk.Number, opts...) - endT := time.Now().UnixNano() / 1000 / 1000 / 1000 - if err != nil { - arg.bucket.Client.Config.WriteLog(Debug, "upload part error,cost:%d second,part number:%d,request id:%s,error:%s\n", endT-startT, chunk.Number, GetRequestId(respHeader), err.Error()) - failed <- err - break - } - select { - case <-die: - return - default: - } - results <- part - } -} - -// scheduler function -func scheduler(jobs chan FileChunk, chunks []FileChunk) { - for _, chunk := range chunks { - jobs <- chunk - } - close(jobs) -} - -func getTotalBytes(chunks []FileChunk) int64 { - var tb int64 - for _, chunk := range chunks { - tb += chunk.Size - } - return tb -} - -// uploadFile is a concurrent upload, without checkpoint -func (bucket Bucket) uploadFile(objectKey, filePath string, partSize int64, options []Option, routines int) error { - listener := GetProgressListener(options) - - chunks, err := SplitFileByPartSize(filePath, partSize) - if err != nil { - return err - } - - partOptions := ChoiceTransferPartOption(options) - completeOptions := ChoiceCompletePartOption(options) - abortOptions := ChoiceAbortPartOption(options) - - // Initialize the multipart upload - imur, err := bucket.InitiateMultipartUpload(objectKey, options...) - if err != nil { - return err - } - - jobs := make(chan FileChunk, len(chunks)) - results := make(chan UploadPart, len(chunks)) - failed := make(chan error) - die := make(chan bool) - - var completedBytes int64 - totalBytes := getTotalBytes(chunks) - event := newProgressEvent(TransferStartedEvent, 0, totalBytes, 0) - publishProgress(listener, event) - - // Start the worker coroutine - arg := workerArg{&bucket, filePath, imur, partOptions, uploadPartHooker} - for w := 1; w <= routines; w++ { - go worker(w, arg, jobs, results, failed, die) - } - - // Schedule the jobs - go scheduler(jobs, chunks) - - // Waiting for the upload finished - completed := 0 - parts := make([]UploadPart, len(chunks)) - for completed < len(chunks) { - select { - case part := <-results: - completed++ - parts[part.PartNumber-1] = part - completedBytes += chunks[part.PartNumber-1].Size - - // why RwBytes in ProgressEvent is 0 ? - // because read or write event has been notified in teeReader.Read() - event = newProgressEvent(TransferDataEvent, completedBytes, totalBytes, chunks[part.PartNumber-1].Size) - publishProgress(listener, event) - case err := <-failed: - close(die) - event = newProgressEvent(TransferFailedEvent, completedBytes, totalBytes, 0) - publishProgress(listener, event) - bucket.AbortMultipartUpload(imur, abortOptions...) - return err - } - - if completed >= len(chunks) { - break - } - } - - event = newProgressEvent(TransferCompletedEvent, completedBytes, totalBytes, 0) - publishProgress(listener, event) - - // Complete the multpart upload - _, err = bucket.CompleteMultipartUpload(imur, parts, completeOptions...) - if err != nil { - bucket.AbortMultipartUpload(imur, abortOptions...) - return err - } - return nil -} - -// ----- concurrent upload with checkpoint ----- -const uploadCpMagic = "FE8BB4EA-B593-4FAC-AD7A-2459A36E2E62" - -type uploadCheckpoint struct { - Magic string // Magic - MD5 string // Checkpoint file content's MD5 - FilePath string // Local file path - FileStat cpStat // File state - ObjectKey string // Key - UploadID string // Upload ID - Parts []cpPart // All parts of the local file - CallbackVal string - CallbackBody *[]byte -} - -type cpStat struct { - Size int64 // File size - LastModified time.Time // File's last modified time - MD5 string // Local file's MD5 -} - -type cpPart struct { - Chunk FileChunk // File chunk - Part UploadPart // Uploaded part - IsCompleted bool // Upload complete flag -} - -// isValid checks if the uploaded data is valid---it's valid when the file is not updated and the checkpoint data is valid. -func (cp uploadCheckpoint) isValid(filePath string,options []Option) (bool, error) { - - callbackVal, _ := FindOption(options, HTTPHeaderOssCallback, "") - if callbackVal != "" && cp.CallbackVal != callbackVal { - return false, nil - } - callbackBody, _ := FindOption(options, responseBody, nil) - if callbackBody != nil{ - body, _ := json.Marshal(callbackBody) - if bytes.Equal(*cp.CallbackBody, body) { - return false, nil - } - } - // Compare the CP's magic number and MD5. - cpb := cp - cpb.MD5 = "" - js, _ := json.Marshal(cpb) - sum := md5.Sum(js) - b64 := base64.StdEncoding.EncodeToString(sum[:]) - - if cp.Magic != uploadCpMagic || b64 != cp.MD5 { - return false, nil - } - - // Make sure if the local file is updated. - fd, err := os.Open(filePath) - if err != nil { - return false, err - } - defer fd.Close() - - st, err := fd.Stat() - if err != nil { - return false, err - } - - md, err := calcFileMD5(filePath) - if err != nil { - return false, err - } - - // Compare the file size, file's last modified time and file's MD5 - if cp.FileStat.Size != st.Size() || - !cp.FileStat.LastModified.Equal(st.ModTime()) || - cp.FileStat.MD5 != md { - return false, nil - } - - return true, nil -} - -// load loads from the file -func (cp *uploadCheckpoint) load(filePath string) error { - contents, err := ioutil.ReadFile(filePath) - if err != nil { - return err - } - - err = json.Unmarshal(contents, cp) - return err -} - -// dump dumps to the local file -func (cp *uploadCheckpoint) dump(filePath string) error { - bcp := *cp - - // Calculate MD5 - bcp.MD5 = "" - js, err := json.Marshal(bcp) - if err != nil { - return err - } - sum := md5.Sum(js) - b64 := base64.StdEncoding.EncodeToString(sum[:]) - bcp.MD5 = b64 - - // Serialization - js, err = json.Marshal(bcp) - if err != nil { - return err - } - - // Dump - return ioutil.WriteFile(filePath, js, FilePermMode) -} - -// updatePart updates the part status -func (cp *uploadCheckpoint) updatePart(part UploadPart) { - cp.Parts[part.PartNumber-1].Part = part - cp.Parts[part.PartNumber-1].IsCompleted = true -} - -// todoParts returns unfinished parts -func (cp *uploadCheckpoint) todoParts() []FileChunk { - fcs := []FileChunk{} - for _, part := range cp.Parts { - if !part.IsCompleted { - fcs = append(fcs, part.Chunk) - } - } - return fcs -} - -// allParts returns all parts -func (cp *uploadCheckpoint) allParts() []UploadPart { - ps := []UploadPart{} - for _, part := range cp.Parts { - ps = append(ps, part.Part) - } - return ps -} - -// getCompletedBytes returns completed bytes count -func (cp *uploadCheckpoint) getCompletedBytes() int64 { - var completedBytes int64 - for _, part := range cp.Parts { - if part.IsCompleted { - completedBytes += part.Chunk.Size - } - } - return completedBytes -} - -// calcFileMD5 calculates the MD5 for the specified local file -func calcFileMD5(filePath string) (string, error) { - return "", nil -} - -// prepare initializes the multipart upload -func prepare(cp *uploadCheckpoint, objectKey, filePath string, partSize int64, bucket *Bucket, options []Option) error { - // CP - cp.Magic = uploadCpMagic - cp.FilePath = filePath - cp.ObjectKey = objectKey - - // Local file - fd, err := os.Open(filePath) - if err != nil { - return err - } - defer fd.Close() - - st, err := fd.Stat() - if err != nil { - return err - } - cp.FileStat.Size = st.Size() - cp.FileStat.LastModified = st.ModTime() - callbackVal, _ := FindOption(options, HTTPHeaderOssCallback, "") - cp.CallbackVal = callbackVal.(string) - callbackBody, _ := FindOption(options, responseBody, nil) - if callbackBody != nil { - body, _ := json.Marshal(callbackBody) - cp.CallbackBody = &body - } - md, err := calcFileMD5(filePath) - if err != nil { - return err - } - cp.FileStat.MD5 = md - - // Chunks - parts, err := SplitFileByPartSize(filePath, partSize) - if err != nil { - return err - } - - cp.Parts = make([]cpPart, len(parts)) - for i, part := range parts { - cp.Parts[i].Chunk = part - cp.Parts[i].IsCompleted = false - } - - // Init load - imur, err := bucket.InitiateMultipartUpload(objectKey, options...) - if err != nil { - return err - } - cp.UploadID = imur.UploadID - - return nil -} - -// complete completes the multipart upload and deletes the local CP files -func complete(cp *uploadCheckpoint, bucket *Bucket, parts []UploadPart, cpFilePath string, options []Option) error { - imur := InitiateMultipartUploadResult{Bucket: bucket.BucketName, - Key: cp.ObjectKey, UploadID: cp.UploadID} - - _, err := bucket.CompleteMultipartUpload(imur, parts, options...) - if err != nil { - if e, ok := err.(ServiceError);ok && (e.StatusCode == 203 || e.StatusCode == 404) { - os.Remove(cpFilePath) - } - return err - } - os.Remove(cpFilePath) - return err -} - -// uploadFileWithCp handles concurrent upload with checkpoint -func (bucket Bucket) uploadFileWithCp(objectKey, filePath string, partSize int64, options []Option, cpFilePath string, routines int) error { - listener := GetProgressListener(options) - - partOptions := ChoiceTransferPartOption(options) - completeOptions := ChoiceCompletePartOption(options) - - // Load CP data - ucp := uploadCheckpoint{} - err := ucp.load(cpFilePath) - if err != nil { - os.Remove(cpFilePath) - } - - // Load error or the CP data is invalid. - valid, err := ucp.isValid(filePath,options) - if err != nil || !valid { - if err = prepare(&ucp, objectKey, filePath, partSize, &bucket, options); err != nil { - return err - } - os.Remove(cpFilePath) - } - - chunks := ucp.todoParts() - imur := InitiateMultipartUploadResult{ - Bucket: bucket.BucketName, - Key: objectKey, - UploadID: ucp.UploadID} - - jobs := make(chan FileChunk, len(chunks)) - results := make(chan UploadPart, len(chunks)) - failed := make(chan error) - die := make(chan bool) - - completedBytes := ucp.getCompletedBytes() - - // why RwBytes in ProgressEvent is 0 ? - // because read or write event has been notified in teeReader.Read() - event := newProgressEvent(TransferStartedEvent, completedBytes, ucp.FileStat.Size, 0) - publishProgress(listener, event) - - // Start the workers - arg := workerArg{&bucket, filePath, imur, partOptions, uploadPartHooker} - for w := 1; w <= routines; w++ { - go worker(w, arg, jobs, results, failed, die) - } - - // Schedule jobs - go scheduler(jobs, chunks) - - // Waiting for the job finished - completed := 0 - for completed < len(chunks) { - select { - case part := <-results: - completed++ - ucp.updatePart(part) - ucp.dump(cpFilePath) - completedBytes += ucp.Parts[part.PartNumber-1].Chunk.Size - event = newProgressEvent(TransferDataEvent, completedBytes, ucp.FileStat.Size, ucp.Parts[part.PartNumber-1].Chunk.Size) - publishProgress(listener, event) - case err := <-failed: - close(die) - event = newProgressEvent(TransferFailedEvent, completedBytes, ucp.FileStat.Size, 0) - publishProgress(listener, event) - return err - } - - if completed >= len(chunks) { - break - } - } - - event = newProgressEvent(TransferCompletedEvent, completedBytes, ucp.FileStat.Size, 0) - publishProgress(listener, event) - - // Complete the multipart upload - err = complete(&ucp, &bucket, ucp.allParts(), cpFilePath, completeOptions) - return err -} diff --git a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/utils.go b/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/utils.go deleted file mode 100644 index 8f3f035003..0000000000 --- a/vendor/github.com/aliyun/aliyun-oss-go-sdk/oss/utils.go +++ /dev/null @@ -1,674 +0,0 @@ -package oss - -import ( - "bytes" - "errors" - "fmt" - "hash/crc32" - "hash/crc64" - "io" - "net/http" - "os" - "runtime" - "strconv" - "strings" - "time" - "unicode/utf8" -) - -var sys_name string -var sys_release string -var sys_machine string - -var ( - escQuot = []byte(""") // shorter than """ - escApos = []byte("'") // shorter than "'" - escAmp = []byte("&") - escLT = []byte("<") - escGT = []byte(">") - escTab = []byte(" ") - escNL = []byte(" ") - escCR = []byte(" ") - escFFFD = []byte("\uFFFD") // Unicode replacement character -) - -func init() { - sys_name = runtime.GOOS - sys_release = "-" - sys_machine = runtime.GOARCH -} - -// userAgent gets user agent -// It has the SDK version information, OS information and GO version -func userAgent() string { - sys := getSysInfo() - return fmt.Sprintf("aliyun-sdk-go/%s (%s/%s/%s;%s)", Version, sys.name, - sys.release, sys.machine, runtime.Version()) -} - -type sysInfo struct { - name string // OS name such as windows/Linux - release string // OS version 2.6.32-220.23.2.ali1089.el5.x86_64 etc - machine string // CPU type amd64/x86_64 -} - -// getSysInfo gets system info -// gets the OS information and CPU type -func getSysInfo() sysInfo { - return sysInfo{name: sys_name, release: sys_release, machine: sys_machine} -} - -// GetRangeConfig gets the download range from the options. -func GetRangeConfig(options []Option) (*UnpackedRange, error) { - rangeOpt, err := FindOption(options, HTTPHeaderRange, nil) - if err != nil || rangeOpt == nil { - return nil, err - } - return ParseRange(rangeOpt.(string)) -} - -// UnpackedRange -type UnpackedRange struct { - HasStart bool // Flag indicates if the start point is specified - HasEnd bool // Flag indicates if the end point is specified - Start int64 // Start point - End int64 // End point -} - -// InvalidRangeError returns invalid range error -func InvalidRangeError(r string) error { - return fmt.Errorf("InvalidRange %s", r) -} - -func GetRangeString(unpackRange UnpackedRange) string { - var strRange string - if unpackRange.HasStart && unpackRange.HasEnd { - strRange = fmt.Sprintf("%d-%d", unpackRange.Start, unpackRange.End) - } else if unpackRange.HasStart { - strRange = fmt.Sprintf("%d-", unpackRange.Start) - } else if unpackRange.HasEnd { - strRange = fmt.Sprintf("-%d", unpackRange.End) - } - return strRange -} - -// ParseRange parse various styles of range such as bytes=M-N -func ParseRange(normalizedRange string) (*UnpackedRange, error) { - var err error - hasStart := false - hasEnd := false - var start int64 - var end int64 - - // Bytes==M-N or ranges=M-N - nrSlice := strings.Split(normalizedRange, "=") - if len(nrSlice) != 2 || nrSlice[0] != "bytes" { - return nil, InvalidRangeError(normalizedRange) - } - - // Bytes=M-N,X-Y - rSlice := strings.Split(nrSlice[1], ",") - rStr := rSlice[0] - - if strings.HasSuffix(rStr, "-") { // M- - startStr := rStr[:len(rStr)-1] - start, err = strconv.ParseInt(startStr, 10, 64) - if err != nil { - return nil, InvalidRangeError(normalizedRange) - } - hasStart = true - } else if strings.HasPrefix(rStr, "-") { // -N - len := rStr[1:] - end, err = strconv.ParseInt(len, 10, 64) - if err != nil { - return nil, InvalidRangeError(normalizedRange) - } - if end == 0 { // -0 - return nil, InvalidRangeError(normalizedRange) - } - hasEnd = true - } else { // M-N - valSlice := strings.Split(rStr, "-") - if len(valSlice) != 2 { - return nil, InvalidRangeError(normalizedRange) - } - start, err = strconv.ParseInt(valSlice[0], 10, 64) - if err != nil { - return nil, InvalidRangeError(normalizedRange) - } - hasStart = true - end, err = strconv.ParseInt(valSlice[1], 10, 64) - if err != nil { - return nil, InvalidRangeError(normalizedRange) - } - hasEnd = true - } - - return &UnpackedRange{hasStart, hasEnd, start, end}, nil -} - -// AdjustRange returns adjusted range, adjust the range according to the length of the file -func AdjustRange(ur *UnpackedRange, size int64) (start, end int64) { - if ur == nil { - return 0, size - } - - if ur.HasStart && ur.HasEnd { - start = ur.Start - end = ur.End + 1 - if ur.Start < 0 || ur.Start >= size || ur.End > size || ur.Start > ur.End { - start = 0 - end = size - } - } else if ur.HasStart { - start = ur.Start - end = size - if ur.Start < 0 || ur.Start >= size { - start = 0 - } - } else if ur.HasEnd { - start = size - ur.End - end = size - if ur.End < 0 || ur.End > size { - start = 0 - end = size - } - } - return -} - -// GetNowSec returns Unix time, the number of seconds elapsed since January 1, 1970 UTC. -// gets the current time in Unix time, in seconds. -func GetNowSec() int64 { - return time.Now().Unix() -} - -// GetNowNanoSec returns t as a Unix time, the number of nanoseconds elapsed -// since January 1, 1970 UTC. The result is undefined if the Unix time -// in nanoseconds cannot be represented by an int64. Note that this -// means the result of calling UnixNano on the zero Time is undefined. -// gets the current time in Unix time, in nanoseconds. -func GetNowNanoSec() int64 { - return time.Now().UnixNano() -} - -// GetNowGMT gets the current time in GMT format. -func GetNowGMT() string { - return time.Now().UTC().Format(http.TimeFormat) -} - -// FileChunk is the file chunk definition -type FileChunk struct { - Number int // Chunk number - Offset int64 // Chunk offset - Size int64 // Chunk size. -} - -// SplitFileByPartNum splits big file into parts by the num of parts. -// Split the file with specified parts count, returns the split result when error is nil. -func SplitFileByPartNum(fileName string, chunkNum int) ([]FileChunk, error) { - if chunkNum <= 0 || chunkNum > 10000 { - return nil, errors.New("chunkNum invalid") - } - - file, err := os.Open(fileName) - if err != nil { - return nil, err - } - defer file.Close() - - stat, err := file.Stat() - if err != nil { - return nil, err - } - - if int64(chunkNum) > stat.Size() { - return nil, errors.New("oss: chunkNum invalid") - } - - var chunks []FileChunk - var chunk = FileChunk{} - var chunkN = (int64)(chunkNum) - for i := int64(0); i < chunkN; i++ { - chunk.Number = int(i + 1) - chunk.Offset = i * (stat.Size() / chunkN) - if i == chunkN-1 { - chunk.Size = stat.Size()/chunkN + stat.Size()%chunkN - } else { - chunk.Size = stat.Size() / chunkN - } - chunks = append(chunks, chunk) - } - - return chunks, nil -} - -// SplitFileByPartSize splits big file into parts by the size of parts. -// Splits the file by the part size. Returns the FileChunk when error is nil. -func SplitFileByPartSize(fileName string, chunkSize int64) ([]FileChunk, error) { - if chunkSize <= 0 { - return nil, errors.New("chunkSize invalid") - } - - file, err := os.Open(fileName) - if err != nil { - return nil, err - } - defer file.Close() - - stat, err := file.Stat() - if err != nil { - return nil, err - } - var chunkN = stat.Size() / chunkSize - if chunkN >= 10000 { - return nil, errors.New("Too many parts, please increase part size") - } - - var chunks []FileChunk - var chunk = FileChunk{} - for i := int64(0); i < chunkN; i++ { - chunk.Number = int(i + 1) - chunk.Offset = i * chunkSize - chunk.Size = chunkSize - chunks = append(chunks, chunk) - } - - if stat.Size()%chunkSize > 0 { - chunk.Number = len(chunks) + 1 - chunk.Offset = int64(len(chunks)) * chunkSize - chunk.Size = stat.Size() % chunkSize - chunks = append(chunks, chunk) - } - - return chunks, nil -} - -// GetPartEnd calculates the end position -func GetPartEnd(begin int64, total int64, per int64) int64 { - if begin+per > total { - return total - 1 - } - return begin + per - 1 -} - -// CrcTable returns the table constructed from the specified polynomial -var CrcTable = func() *crc64.Table { - return crc64.MakeTable(crc64.ECMA) -} - -// CrcTable returns the table constructed from the specified polynomial -var crc32Table = func() *crc32.Table { - return crc32.MakeTable(crc32.IEEE) -} - -// choiceTransferPartOption choices valid option supported by Uploadpart or DownloadPart -func ChoiceTransferPartOption(options []Option) []Option { - var outOption []Option - - listener, _ := FindOption(options, progressListener, nil) - if listener != nil { - outOption = append(outOption, Progress(listener.(ProgressListener))) - } - - payer, _ := FindOption(options, HTTPHeaderOssRequester, nil) - if payer != nil { - outOption = append(outOption, RequestPayer(PayerType(payer.(string)))) - } - - versionId, _ := FindOption(options, "versionId", nil) - if versionId != nil { - outOption = append(outOption, VersionId(versionId.(string))) - } - - trafficLimit, _ := FindOption(options, HTTPHeaderOssTrafficLimit, nil) - if trafficLimit != nil { - speed, _ := strconv.ParseInt(trafficLimit.(string), 10, 64) - outOption = append(outOption, TrafficLimitHeader(speed)) - } - - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - outOption = append(outOption, GetResponseHeader(respHeader.(*http.Header))) - } - - return outOption -} - -// ChoiceCompletePartOption choices valid option supported by CompleteMulitiPart -func ChoiceCompletePartOption(options []Option) []Option { - var outOption []Option - - listener, _ := FindOption(options, progressListener, nil) - if listener != nil { - outOption = append(outOption, Progress(listener.(ProgressListener))) - } - - payer, _ := FindOption(options, HTTPHeaderOssRequester, nil) - if payer != nil { - outOption = append(outOption, RequestPayer(PayerType(payer.(string)))) - } - - acl, _ := FindOption(options, HTTPHeaderOssObjectACL, nil) - if acl != nil { - outOption = append(outOption, ObjectACL(ACLType(acl.(string)))) - } - - callback, _ := FindOption(options, HTTPHeaderOssCallback, nil) - if callback != nil { - outOption = append(outOption, Callback(callback.(string))) - } - - callbackVar, _ := FindOption(options, HTTPHeaderOssCallbackVar, nil) - if callbackVar != nil { - outOption = append(outOption, CallbackVar(callbackVar.(string))) - } - - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - outOption = append(outOption, GetResponseHeader(respHeader.(*http.Header))) - } - - forbidOverWrite, _ := FindOption(options, HTTPHeaderOssForbidOverWrite, nil) - if forbidOverWrite != nil { - if forbidOverWrite.(string) == "true" { - outOption = append(outOption, ForbidOverWrite(true)) - } else { - outOption = append(outOption, ForbidOverWrite(false)) - } - } - - notification, _ := FindOption(options, HttpHeaderOssNotification, nil) - if notification != nil { - outOption = append(outOption, SetHeader(HttpHeaderOssNotification, notification)) - } - - return outOption -} - -// ChoiceAbortPartOption choices valid option supported by AbortMultipartUpload -func ChoiceAbortPartOption(options []Option) []Option { - var outOption []Option - payer, _ := FindOption(options, HTTPHeaderOssRequester, nil) - if payer != nil { - outOption = append(outOption, RequestPayer(PayerType(payer.(string)))) - } - - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - outOption = append(outOption, GetResponseHeader(respHeader.(*http.Header))) - } - - return outOption -} - -// ChoiceHeadObjectOption choices valid option supported by HeadObject -func ChoiceHeadObjectOption(options []Option) []Option { - var outOption []Option - - // not select HTTPHeaderRange to get whole object length - payer, _ := FindOption(options, HTTPHeaderOssRequester, nil) - if payer != nil { - outOption = append(outOption, RequestPayer(PayerType(payer.(string)))) - } - - versionId, _ := FindOption(options, "versionId", nil) - if versionId != nil { - outOption = append(outOption, VersionId(versionId.(string))) - } - - respHeader, _ := FindOption(options, responseHeader, nil) - if respHeader != nil { - outOption = append(outOption, GetResponseHeader(respHeader.(*http.Header))) - } - - return outOption -} - -func CheckBucketName(bucketName string) error { - nameLen := len(bucketName) - if nameLen < 3 || nameLen > 63 { - return fmt.Errorf("bucket name %s len is between [3-63],now is %d", bucketName, nameLen) - } - - for _, v := range bucketName { - if !(('a' <= v && v <= 'z') || ('0' <= v && v <= '9') || v == '-') { - return fmt.Errorf("bucket name %s can only include lowercase letters, numbers, and -", bucketName) - } - } - if bucketName[0] == '-' || bucketName[nameLen-1] == '-' { - return fmt.Errorf("bucket name %s must start and end with a lowercase letter or number", bucketName) - } - return nil -} - -func CheckObjectName(objectName string) error { - if len(objectName) == 0 { - return fmt.Errorf("object name is empty") - } - return nil -} - -func CheckObjectNameEx(objectName string, strict bool) error { - if err := CheckObjectName(objectName); err != nil { - return err - } - - if strict && strings.HasPrefix(objectName, "?") { - return fmt.Errorf("object name is invalid, can't start with '?'") - } - - return nil -} - -/* - func GetReaderLen(reader io.Reader) (int64, error) { - var contentLength int64 - var err error - switch v := reader.(type) { - case *bytes.Buffer: - contentLength = int64(v.Len()) - case *bytes.Reader: - contentLength = int64(v.Len()) - case *strings.Reader: - contentLength = int64(v.Len()) - case *os.File: - fInfo, fError := v.Stat() - if fError != nil { - err = fmt.Errorf("can't get reader content length,%s", fError.Error()) - } else { - contentLength = fInfo.Size() - } - case *io.LimitedReader: - contentLength = int64(v.N) - case *LimitedReadCloser: - contentLength = int64(v.N) - default: - err = fmt.Errorf("can't get reader content length,unkown reader type") - } - return contentLength, err - } -*/ - -func GetReaderLen(reader io.Reader) (int64, error) { - var contentLength int64 - var err error - switch v := reader.(type) { - case *io.LimitedReader: - contentLength = int64(v.N) - case *LimitedReadCloser: - contentLength = int64(v.N) - default: - // Len - type lenner interface { - Len() int - } - if lr, ok := reader.(lenner); ok { - return int64(lr.Len()), nil - } - // seeker len - if s, ok := reader.(io.Seeker); ok { - curOffset, err := s.Seek(0, io.SeekCurrent) - if err != nil { - return 0, err - } - endOffset, err := s.Seek(0, io.SeekEnd) - if err != nil { - return 0, err - } - _, err = s.Seek(curOffset, io.SeekStart) - if err != nil { - return 0, err - } - n := endOffset - curOffset - if n >= 0 { - return n, nil - } - } - // - err = fmt.Errorf("can't get reader content length,unkown reader type") - } - return contentLength, err -} - -func LimitReadCloser(r io.Reader, n int64) io.Reader { - var lc LimitedReadCloser - lc.R = r - lc.N = n - return &lc -} - -// LimitedRC support Close() -type LimitedReadCloser struct { - io.LimitedReader -} - -func (lc *LimitedReadCloser) Close() error { - if closer, ok := lc.R.(io.ReadCloser); ok { - return closer.Close() - } - return nil -} - -type DiscardReadCloser struct { - RC io.ReadCloser - Discard int -} - -func (drc *DiscardReadCloser) Read(b []byte) (int, error) { - n, err := drc.RC.Read(b) - if drc.Discard == 0 || n <= 0 { - return n, err - } - - if n <= drc.Discard { - drc.Discard -= n - return 0, err - } - - realLen := n - drc.Discard - copy(b[0:realLen], b[drc.Discard:n]) - drc.Discard = 0 - return realLen, err -} - -func (drc *DiscardReadCloser) Close() error { - closer, ok := drc.RC.(io.ReadCloser) - if ok { - return closer.Close() - } - return nil -} - -func ConvertEmptyValueToNil(params map[string]interface{}, keys []string) { - for _, key := range keys { - value, ok := params[key] - if ok && value == "" { - // convert "" to nil - params[key] = nil - } - } -} - -func EscapeLFString(str string) string { - var log bytes.Buffer - for i := 0; i < len(str); i++ { - if str[i] != '\n' { - log.WriteByte(str[i]) - } else { - log.WriteString("\\n") - } - } - return log.String() -} - -// EscapeString writes to p the properly escaped XML equivalent -// of the plain text data s. -func EscapeXml(s string) string { - var p strings.Builder - var esc []byte - hextable := "0123456789ABCDEF" - escPattern := []byte("�") - last := 0 - for i := 0; i < len(s); { - r, width := utf8.DecodeRuneInString(s[i:]) - i += width - switch r { - case '"': - esc = escQuot - case '\'': - esc = escApos - case '&': - esc = escAmp - case '<': - esc = escLT - case '>': - esc = escGT - case '\t': - esc = escTab - case '\n': - esc = escNL - case '\r': - esc = escCR - default: - if !isInCharacterRange(r) || (r == 0xFFFD && width == 1) { - if r >= 0x00 && r < 0x20 { - escPattern[3] = hextable[r>>4] - escPattern[4] = hextable[r&0x0f] - esc = escPattern - } else { - esc = escFFFD - } - break - } - continue - } - p.WriteString(s[last : i-width]) - p.Write(esc) - last = i - } - p.WriteString(s[last:]) - return p.String() -} - -// Decide whether the given rune is in the XML Character Range, per -// the Char production of https://www.xml.com/axml/testaxml.htm, -// Section 2.2 Characters. -func isInCharacterRange(r rune) (inrange bool) { - return r == 0x09 || - r == 0x0A || - r == 0x0D || - r >= 0x20 && r <= 0xD7FF || - r >= 0xE000 && r <= 0xFFFD || - r >= 0x10000 && r <= 0x10FFFF -} - -func isVerifyObjectStrict(config *Config) bool { - if config != nil { - if config.AuthVersion == AuthV2 || config.AuthVersion == AuthV4 { - return false - } - return config.VerifyObjectStrict - } - return true -} diff --git a/vendor/github.com/json-iterator/go/.codecov.yml b/vendor/github.com/json-iterator/go/.codecov.yml deleted file mode 100644 index 955dc0be5f..0000000000 --- a/vendor/github.com/json-iterator/go/.codecov.yml +++ /dev/null @@ -1,3 +0,0 @@ -ignore: - - "output_tests/.*" - diff --git a/vendor/github.com/json-iterator/go/.gitignore b/vendor/github.com/json-iterator/go/.gitignore deleted file mode 100644 index 15556530a8..0000000000 --- a/vendor/github.com/json-iterator/go/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/vendor -/bug_test.go -/coverage.txt -/.idea diff --git a/vendor/github.com/json-iterator/go/.travis.yml b/vendor/github.com/json-iterator/go/.travis.yml deleted file mode 100644 index 449e67cd01..0000000000 --- a/vendor/github.com/json-iterator/go/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: go - -go: - - 1.8.x - - 1.x - -before_install: - - go get -t -v ./... - -script: - - ./test.sh - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/vendor/github.com/json-iterator/go/Gopkg.lock b/vendor/github.com/json-iterator/go/Gopkg.lock deleted file mode 100644 index c8a9fbb387..0000000000 --- a/vendor/github.com/json-iterator/go/Gopkg.lock +++ /dev/null @@ -1,21 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/modern-go/concurrent" - packages = ["."] - revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" - version = "1.0.0" - -[[projects]] - name = "github.com/modern-go/reflect2" - packages = ["."] - revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" - version = "1.0.1" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/vendor/github.com/json-iterator/go/Gopkg.toml b/vendor/github.com/json-iterator/go/Gopkg.toml deleted file mode 100644 index 313a0f887b..0000000000 --- a/vendor/github.com/json-iterator/go/Gopkg.toml +++ /dev/null @@ -1,26 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" - -ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"] - -[[constraint]] - name = "github.com/modern-go/reflect2" - version = "1.0.1" diff --git a/vendor/github.com/json-iterator/go/LICENSE b/vendor/github.com/json-iterator/go/LICENSE deleted file mode 100644 index 2cf4f5ab28..0000000000 --- a/vendor/github.com/json-iterator/go/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016 json-iterator - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/json-iterator/go/README.md b/vendor/github.com/json-iterator/go/README.md deleted file mode 100644 index c589addf98..0000000000 --- a/vendor/github.com/json-iterator/go/README.md +++ /dev/null @@ -1,85 +0,0 @@ -[![Sourcegraph](https://sourcegraph.com/github.com/json-iterator/go/-/badge.svg)](https://sourcegraph.com/github.com/json-iterator/go?badge) -[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://pkg.go.dev/github.com/json-iterator/go) -[![Build Status](https://travis-ci.org/json-iterator/go.svg?branch=master)](https://travis-ci.org/json-iterator/go) -[![codecov](https://codecov.io/gh/json-iterator/go/branch/master/graph/badge.svg)](https://codecov.io/gh/json-iterator/go) -[![rcard](https://goreportcard.com/badge/github.com/json-iterator/go)](https://goreportcard.com/report/github.com/json-iterator/go) -[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/json-iterator/go/master/LICENSE) -[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby) - -A high-performance 100% compatible drop-in replacement of "encoding/json" - -# Benchmark - -![benchmark](http://jsoniter.com/benchmarks/go-benchmark.png) - -Source code: https://github.com/json-iterator/go-benchmark/blob/master/src/github.com/json-iterator/go-benchmark/benchmark_medium_payload_test.go - -Raw Result (easyjson requires static code generation) - -| | ns/op | allocation bytes | allocation times | -| --------------- | ----------- | ---------------- | ---------------- | -| std decode | 35510 ns/op | 1960 B/op | 99 allocs/op | -| easyjson decode | 8499 ns/op | 160 B/op | 4 allocs/op | -| jsoniter decode | 5623 ns/op | 160 B/op | 3 allocs/op | -| std encode | 2213 ns/op | 712 B/op | 5 allocs/op | -| easyjson encode | 883 ns/op | 576 B/op | 3 allocs/op | -| jsoniter encode | 837 ns/op | 384 B/op | 4 allocs/op | - -Always benchmark with your own workload. -The result depends heavily on the data input. - -# Usage - -100% compatibility with standard lib - -Replace - -```go -import "encoding/json" -json.Marshal(&data) -``` - -with - -```go -import jsoniter "github.com/json-iterator/go" - -var json = jsoniter.ConfigCompatibleWithStandardLibrary -json.Marshal(&data) -``` - -Replace - -```go -import "encoding/json" -json.Unmarshal(input, &data) -``` - -with - -```go -import jsoniter "github.com/json-iterator/go" - -var json = jsoniter.ConfigCompatibleWithStandardLibrary -json.Unmarshal(input, &data) -``` - -[More documentation](http://jsoniter.com/migrate-from-go-std.html) - -# How to get - -``` -go get github.com/json-iterator/go -``` - -# Contribution Welcomed ! - -Contributors - -- [thockin](https://github.com/thockin) -- [mattn](https://github.com/mattn) -- [cch123](https://github.com/cch123) -- [Oleg Shaldybin](https://github.com/olegshaldybin) -- [Jason Toffaletti](https://github.com/toffaletti) - -Report issue or pull request, or email taowen@gmail.com, or [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby) diff --git a/vendor/github.com/json-iterator/go/adapter.go b/vendor/github.com/json-iterator/go/adapter.go deleted file mode 100644 index 92d2cc4a3d..0000000000 --- a/vendor/github.com/json-iterator/go/adapter.go +++ /dev/null @@ -1,150 +0,0 @@ -package jsoniter - -import ( - "bytes" - "io" -) - -// RawMessage to make replace json with jsoniter -type RawMessage []byte - -// Unmarshal adapts to json/encoding Unmarshal API -// -// Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v. -// Refer to https://godoc.org/encoding/json#Unmarshal for more information -func Unmarshal(data []byte, v interface{}) error { - return ConfigDefault.Unmarshal(data, v) -} - -// UnmarshalFromString is a convenient method to read from string instead of []byte -func UnmarshalFromString(str string, v interface{}) error { - return ConfigDefault.UnmarshalFromString(str, v) -} - -// Get quick method to get value from deeply nested JSON structure -func Get(data []byte, path ...interface{}) Any { - return ConfigDefault.Get(data, path...) -} - -// Marshal adapts to json/encoding Marshal API -// -// Marshal returns the JSON encoding of v, adapts to json/encoding Marshal API -// Refer to https://godoc.org/encoding/json#Marshal for more information -func Marshal(v interface{}) ([]byte, error) { - return ConfigDefault.Marshal(v) -} - -// MarshalIndent same as json.MarshalIndent. Prefix is not supported. -func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) { - return ConfigDefault.MarshalIndent(v, prefix, indent) -} - -// MarshalToString convenient method to write as string instead of []byte -func MarshalToString(v interface{}) (string, error) { - return ConfigDefault.MarshalToString(v) -} - -// NewDecoder adapts to json/stream NewDecoder API. -// -// NewDecoder returns a new decoder that reads from r. -// -// Instead of a json/encoding Decoder, an Decoder is returned -// Refer to https://godoc.org/encoding/json#NewDecoder for more information -func NewDecoder(reader io.Reader) *Decoder { - return ConfigDefault.NewDecoder(reader) -} - -// Decoder reads and decodes JSON values from an input stream. -// Decoder provides identical APIs with json/stream Decoder (Token() and UseNumber() are in progress) -type Decoder struct { - iter *Iterator -} - -// Decode decode JSON into interface{} -func (adapter *Decoder) Decode(obj interface{}) error { - if adapter.iter.head == adapter.iter.tail && adapter.iter.reader != nil { - if !adapter.iter.loadMore() { - return io.EOF - } - } - adapter.iter.ReadVal(obj) - err := adapter.iter.Error - if err == io.EOF { - return nil - } - return adapter.iter.Error -} - -// More is there more? -func (adapter *Decoder) More() bool { - iter := adapter.iter - if iter.Error != nil { - return false - } - c := iter.nextToken() - if c == 0 { - return false - } - iter.unreadByte() - return c != ']' && c != '}' -} - -// Buffered remaining buffer -func (adapter *Decoder) Buffered() io.Reader { - remaining := adapter.iter.buf[adapter.iter.head:adapter.iter.tail] - return bytes.NewReader(remaining) -} - -// UseNumber causes the Decoder to unmarshal a number into an interface{} as a -// Number instead of as a float64. -func (adapter *Decoder) UseNumber() { - cfg := adapter.iter.cfg.configBeforeFrozen - cfg.UseNumber = true - adapter.iter.cfg = cfg.frozeWithCacheReuse(adapter.iter.cfg.extraExtensions) -} - -// DisallowUnknownFields causes the Decoder to return an error when the destination -// is a struct and the input contains object keys which do not match any -// non-ignored, exported fields in the destination. -func (adapter *Decoder) DisallowUnknownFields() { - cfg := adapter.iter.cfg.configBeforeFrozen - cfg.DisallowUnknownFields = true - adapter.iter.cfg = cfg.frozeWithCacheReuse(adapter.iter.cfg.extraExtensions) -} - -// NewEncoder same as json.NewEncoder -func NewEncoder(writer io.Writer) *Encoder { - return ConfigDefault.NewEncoder(writer) -} - -// Encoder same as json.Encoder -type Encoder struct { - stream *Stream -} - -// Encode encode interface{} as JSON to io.Writer -func (adapter *Encoder) Encode(val interface{}) error { - adapter.stream.WriteVal(val) - adapter.stream.WriteRaw("\n") - adapter.stream.Flush() - return adapter.stream.Error -} - -// SetIndent set the indention. Prefix is not supported -func (adapter *Encoder) SetIndent(prefix, indent string) { - config := adapter.stream.cfg.configBeforeFrozen - config.IndentionStep = len(indent) - adapter.stream.cfg = config.frozeWithCacheReuse(adapter.stream.cfg.extraExtensions) -} - -// SetEscapeHTML escape html by default, set to false to disable -func (adapter *Encoder) SetEscapeHTML(escapeHTML bool) { - config := adapter.stream.cfg.configBeforeFrozen - config.EscapeHTML = escapeHTML - adapter.stream.cfg = config.frozeWithCacheReuse(adapter.stream.cfg.extraExtensions) -} - -// Valid reports whether data is a valid JSON encoding. -func Valid(data []byte) bool { - return ConfigDefault.Valid(data) -} diff --git a/vendor/github.com/json-iterator/go/any.go b/vendor/github.com/json-iterator/go/any.go deleted file mode 100644 index f6b8aeab0a..0000000000 --- a/vendor/github.com/json-iterator/go/any.go +++ /dev/null @@ -1,325 +0,0 @@ -package jsoniter - -import ( - "errors" - "fmt" - "github.com/modern-go/reflect2" - "io" - "reflect" - "strconv" - "unsafe" -) - -// Any generic object representation. -// The lazy json implementation holds []byte and parse lazily. -type Any interface { - LastError() error - ValueType() ValueType - MustBeValid() Any - ToBool() bool - ToInt() int - ToInt32() int32 - ToInt64() int64 - ToUint() uint - ToUint32() uint32 - ToUint64() uint64 - ToFloat32() float32 - ToFloat64() float64 - ToString() string - ToVal(val interface{}) - Get(path ...interface{}) Any - Size() int - Keys() []string - GetInterface() interface{} - WriteTo(stream *Stream) -} - -type baseAny struct{} - -func (any *baseAny) Get(path ...interface{}) Any { - return &invalidAny{baseAny{}, fmt.Errorf("GetIndex %v from simple value", path)} -} - -func (any *baseAny) Size() int { - return 0 -} - -func (any *baseAny) Keys() []string { - return []string{} -} - -func (any *baseAny) ToVal(obj interface{}) { - panic("not implemented") -} - -// WrapInt32 turn int32 into Any interface -func WrapInt32(val int32) Any { - return &int32Any{baseAny{}, val} -} - -// WrapInt64 turn int64 into Any interface -func WrapInt64(val int64) Any { - return &int64Any{baseAny{}, val} -} - -// WrapUint32 turn uint32 into Any interface -func WrapUint32(val uint32) Any { - return &uint32Any{baseAny{}, val} -} - -// WrapUint64 turn uint64 into Any interface -func WrapUint64(val uint64) Any { - return &uint64Any{baseAny{}, val} -} - -// WrapFloat64 turn float64 into Any interface -func WrapFloat64(val float64) Any { - return &floatAny{baseAny{}, val} -} - -// WrapString turn string into Any interface -func WrapString(val string) Any { - return &stringAny{baseAny{}, val} -} - -// Wrap turn a go object into Any interface -func Wrap(val interface{}) Any { - if val == nil { - return &nilAny{} - } - asAny, isAny := val.(Any) - if isAny { - return asAny - } - typ := reflect2.TypeOf(val) - switch typ.Kind() { - case reflect.Slice: - return wrapArray(val) - case reflect.Struct: - return wrapStruct(val) - case reflect.Map: - return wrapMap(val) - case reflect.String: - return WrapString(val.(string)) - case reflect.Int: - if strconv.IntSize == 32 { - return WrapInt32(int32(val.(int))) - } - return WrapInt64(int64(val.(int))) - case reflect.Int8: - return WrapInt32(int32(val.(int8))) - case reflect.Int16: - return WrapInt32(int32(val.(int16))) - case reflect.Int32: - return WrapInt32(val.(int32)) - case reflect.Int64: - return WrapInt64(val.(int64)) - case reflect.Uint: - if strconv.IntSize == 32 { - return WrapUint32(uint32(val.(uint))) - } - return WrapUint64(uint64(val.(uint))) - case reflect.Uintptr: - if ptrSize == 32 { - return WrapUint32(uint32(val.(uintptr))) - } - return WrapUint64(uint64(val.(uintptr))) - case reflect.Uint8: - return WrapUint32(uint32(val.(uint8))) - case reflect.Uint16: - return WrapUint32(uint32(val.(uint16))) - case reflect.Uint32: - return WrapUint32(uint32(val.(uint32))) - case reflect.Uint64: - return WrapUint64(val.(uint64)) - case reflect.Float32: - return WrapFloat64(float64(val.(float32))) - case reflect.Float64: - return WrapFloat64(val.(float64)) - case reflect.Bool: - if val.(bool) == true { - return &trueAny{} - } - return &falseAny{} - } - return &invalidAny{baseAny{}, fmt.Errorf("unsupported type: %v", typ)} -} - -// ReadAny read next JSON element as an Any object. It is a better json.RawMessage. -func (iter *Iterator) ReadAny() Any { - return iter.readAny() -} - -func (iter *Iterator) readAny() Any { - c := iter.nextToken() - switch c { - case '"': - iter.unreadByte() - return &stringAny{baseAny{}, iter.ReadString()} - case 'n': - iter.skipThreeBytes('u', 'l', 'l') // null - return &nilAny{} - case 't': - iter.skipThreeBytes('r', 'u', 'e') // true - return &trueAny{} - case 'f': - iter.skipFourBytes('a', 'l', 's', 'e') // false - return &falseAny{} - case '{': - return iter.readObjectAny() - case '[': - return iter.readArrayAny() - case '-': - return iter.readNumberAny(false) - case 0: - return &invalidAny{baseAny{}, errors.New("input is empty")} - default: - return iter.readNumberAny(true) - } -} - -func (iter *Iterator) readNumberAny(positive bool) Any { - iter.startCapture(iter.head - 1) - iter.skipNumber() - lazyBuf := iter.stopCapture() - return &numberLazyAny{baseAny{}, iter.cfg, lazyBuf, nil} -} - -func (iter *Iterator) readObjectAny() Any { - iter.startCapture(iter.head - 1) - iter.skipObject() - lazyBuf := iter.stopCapture() - return &objectLazyAny{baseAny{}, iter.cfg, lazyBuf, nil} -} - -func (iter *Iterator) readArrayAny() Any { - iter.startCapture(iter.head - 1) - iter.skipArray() - lazyBuf := iter.stopCapture() - return &arrayLazyAny{baseAny{}, iter.cfg, lazyBuf, nil} -} - -func locateObjectField(iter *Iterator, target string) []byte { - var found []byte - iter.ReadObjectCB(func(iter *Iterator, field string) bool { - if field == target { - found = iter.SkipAndReturnBytes() - return false - } - iter.Skip() - return true - }) - return found -} - -func locateArrayElement(iter *Iterator, target int) []byte { - var found []byte - n := 0 - iter.ReadArrayCB(func(iter *Iterator) bool { - if n == target { - found = iter.SkipAndReturnBytes() - return false - } - iter.Skip() - n++ - return true - }) - return found -} - -func locatePath(iter *Iterator, path []interface{}) Any { - for i, pathKeyObj := range path { - switch pathKey := pathKeyObj.(type) { - case string: - valueBytes := locateObjectField(iter, pathKey) - if valueBytes == nil { - return newInvalidAny(path[i:]) - } - iter.ResetBytes(valueBytes) - case int: - valueBytes := locateArrayElement(iter, pathKey) - if valueBytes == nil { - return newInvalidAny(path[i:]) - } - iter.ResetBytes(valueBytes) - case int32: - if '*' == pathKey { - return iter.readAny().Get(path[i:]...) - } - return newInvalidAny(path[i:]) - default: - return newInvalidAny(path[i:]) - } - } - if iter.Error != nil && iter.Error != io.EOF { - return &invalidAny{baseAny{}, iter.Error} - } - return iter.readAny() -} - -var anyType = reflect2.TypeOfPtr((*Any)(nil)).Elem() - -func createDecoderOfAny(ctx *ctx, typ reflect2.Type) ValDecoder { - if typ == anyType { - return &directAnyCodec{} - } - if typ.Implements(anyType) { - return &anyCodec{ - valType: typ, - } - } - return nil -} - -func createEncoderOfAny(ctx *ctx, typ reflect2.Type) ValEncoder { - if typ == anyType { - return &directAnyCodec{} - } - if typ.Implements(anyType) { - return &anyCodec{ - valType: typ, - } - } - return nil -} - -type anyCodec struct { - valType reflect2.Type -} - -func (codec *anyCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - panic("not implemented") -} - -func (codec *anyCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - obj := codec.valType.UnsafeIndirect(ptr) - any := obj.(Any) - any.WriteTo(stream) -} - -func (codec *anyCodec) IsEmpty(ptr unsafe.Pointer) bool { - obj := codec.valType.UnsafeIndirect(ptr) - any := obj.(Any) - return any.Size() == 0 -} - -type directAnyCodec struct { -} - -func (codec *directAnyCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - *(*Any)(ptr) = iter.readAny() -} - -func (codec *directAnyCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - any := *(*Any)(ptr) - if any == nil { - stream.WriteNil() - return - } - any.WriteTo(stream) -} - -func (codec *directAnyCodec) IsEmpty(ptr unsafe.Pointer) bool { - any := *(*Any)(ptr) - return any.Size() == 0 -} diff --git a/vendor/github.com/json-iterator/go/any_array.go b/vendor/github.com/json-iterator/go/any_array.go deleted file mode 100644 index 0449e9aa42..0000000000 --- a/vendor/github.com/json-iterator/go/any_array.go +++ /dev/null @@ -1,278 +0,0 @@ -package jsoniter - -import ( - "reflect" - "unsafe" -) - -type arrayLazyAny struct { - baseAny - cfg *frozenConfig - buf []byte - err error -} - -func (any *arrayLazyAny) ValueType() ValueType { - return ArrayValue -} - -func (any *arrayLazyAny) MustBeValid() Any { - return any -} - -func (any *arrayLazyAny) LastError() error { - return any.err -} - -func (any *arrayLazyAny) ToBool() bool { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - return iter.ReadArray() -} - -func (any *arrayLazyAny) ToInt() int { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToInt32() int32 { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToInt64() int64 { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToUint() uint { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToUint32() uint32 { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToUint64() uint64 { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToFloat32() float32 { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToFloat64() float64 { - if any.ToBool() { - return 1 - } - return 0 -} - -func (any *arrayLazyAny) ToString() string { - return *(*string)(unsafe.Pointer(&any.buf)) -} - -func (any *arrayLazyAny) ToVal(val interface{}) { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - iter.ReadVal(val) -} - -func (any *arrayLazyAny) Get(path ...interface{}) Any { - if len(path) == 0 { - return any - } - switch firstPath := path[0].(type) { - case int: - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - valueBytes := locateArrayElement(iter, firstPath) - if valueBytes == nil { - return newInvalidAny(path) - } - iter.ResetBytes(valueBytes) - return locatePath(iter, path[1:]) - case int32: - if '*' == firstPath { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - arr := make([]Any, 0) - iter.ReadArrayCB(func(iter *Iterator) bool { - found := iter.readAny().Get(path[1:]...) - if found.ValueType() != InvalidValue { - arr = append(arr, found) - } - return true - }) - return wrapArray(arr) - } - return newInvalidAny(path) - default: - return newInvalidAny(path) - } -} - -func (any *arrayLazyAny) Size() int { - size := 0 - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - iter.ReadArrayCB(func(iter *Iterator) bool { - size++ - iter.Skip() - return true - }) - return size -} - -func (any *arrayLazyAny) WriteTo(stream *Stream) { - stream.Write(any.buf) -} - -func (any *arrayLazyAny) GetInterface() interface{} { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - return iter.Read() -} - -type arrayAny struct { - baseAny - val reflect.Value -} - -func wrapArray(val interface{}) *arrayAny { - return &arrayAny{baseAny{}, reflect.ValueOf(val)} -} - -func (any *arrayAny) ValueType() ValueType { - return ArrayValue -} - -func (any *arrayAny) MustBeValid() Any { - return any -} - -func (any *arrayAny) LastError() error { - return nil -} - -func (any *arrayAny) ToBool() bool { - return any.val.Len() != 0 -} - -func (any *arrayAny) ToInt() int { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToInt32() int32 { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToInt64() int64 { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToUint() uint { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToUint32() uint32 { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToUint64() uint64 { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToFloat32() float32 { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToFloat64() float64 { - if any.val.Len() == 0 { - return 0 - } - return 1 -} - -func (any *arrayAny) ToString() string { - str, _ := MarshalToString(any.val.Interface()) - return str -} - -func (any *arrayAny) Get(path ...interface{}) Any { - if len(path) == 0 { - return any - } - switch firstPath := path[0].(type) { - case int: - if firstPath < 0 || firstPath >= any.val.Len() { - return newInvalidAny(path) - } - return Wrap(any.val.Index(firstPath).Interface()) - case int32: - if '*' == firstPath { - mappedAll := make([]Any, 0) - for i := 0; i < any.val.Len(); i++ { - mapped := Wrap(any.val.Index(i).Interface()).Get(path[1:]...) - if mapped.ValueType() != InvalidValue { - mappedAll = append(mappedAll, mapped) - } - } - return wrapArray(mappedAll) - } - return newInvalidAny(path) - default: - return newInvalidAny(path) - } -} - -func (any *arrayAny) Size() int { - return any.val.Len() -} - -func (any *arrayAny) WriteTo(stream *Stream) { - stream.WriteVal(any.val) -} - -func (any *arrayAny) GetInterface() interface{} { - return any.val.Interface() -} diff --git a/vendor/github.com/json-iterator/go/any_bool.go b/vendor/github.com/json-iterator/go/any_bool.go deleted file mode 100644 index 9452324af5..0000000000 --- a/vendor/github.com/json-iterator/go/any_bool.go +++ /dev/null @@ -1,137 +0,0 @@ -package jsoniter - -type trueAny struct { - baseAny -} - -func (any *trueAny) LastError() error { - return nil -} - -func (any *trueAny) ToBool() bool { - return true -} - -func (any *trueAny) ToInt() int { - return 1 -} - -func (any *trueAny) ToInt32() int32 { - return 1 -} - -func (any *trueAny) ToInt64() int64 { - return 1 -} - -func (any *trueAny) ToUint() uint { - return 1 -} - -func (any *trueAny) ToUint32() uint32 { - return 1 -} - -func (any *trueAny) ToUint64() uint64 { - return 1 -} - -func (any *trueAny) ToFloat32() float32 { - return 1 -} - -func (any *trueAny) ToFloat64() float64 { - return 1 -} - -func (any *trueAny) ToString() string { - return "true" -} - -func (any *trueAny) WriteTo(stream *Stream) { - stream.WriteTrue() -} - -func (any *trueAny) Parse() *Iterator { - return nil -} - -func (any *trueAny) GetInterface() interface{} { - return true -} - -func (any *trueAny) ValueType() ValueType { - return BoolValue -} - -func (any *trueAny) MustBeValid() Any { - return any -} - -type falseAny struct { - baseAny -} - -func (any *falseAny) LastError() error { - return nil -} - -func (any *falseAny) ToBool() bool { - return false -} - -func (any *falseAny) ToInt() int { - return 0 -} - -func (any *falseAny) ToInt32() int32 { - return 0 -} - -func (any *falseAny) ToInt64() int64 { - return 0 -} - -func (any *falseAny) ToUint() uint { - return 0 -} - -func (any *falseAny) ToUint32() uint32 { - return 0 -} - -func (any *falseAny) ToUint64() uint64 { - return 0 -} - -func (any *falseAny) ToFloat32() float32 { - return 0 -} - -func (any *falseAny) ToFloat64() float64 { - return 0 -} - -func (any *falseAny) ToString() string { - return "false" -} - -func (any *falseAny) WriteTo(stream *Stream) { - stream.WriteFalse() -} - -func (any *falseAny) Parse() *Iterator { - return nil -} - -func (any *falseAny) GetInterface() interface{} { - return false -} - -func (any *falseAny) ValueType() ValueType { - return BoolValue -} - -func (any *falseAny) MustBeValid() Any { - return any -} diff --git a/vendor/github.com/json-iterator/go/any_float.go b/vendor/github.com/json-iterator/go/any_float.go deleted file mode 100644 index 35fdb09497..0000000000 --- a/vendor/github.com/json-iterator/go/any_float.go +++ /dev/null @@ -1,83 +0,0 @@ -package jsoniter - -import ( - "strconv" -) - -type floatAny struct { - baseAny - val float64 -} - -func (any *floatAny) Parse() *Iterator { - return nil -} - -func (any *floatAny) ValueType() ValueType { - return NumberValue -} - -func (any *floatAny) MustBeValid() Any { - return any -} - -func (any *floatAny) LastError() error { - return nil -} - -func (any *floatAny) ToBool() bool { - return any.ToFloat64() != 0 -} - -func (any *floatAny) ToInt() int { - return int(any.val) -} - -func (any *floatAny) ToInt32() int32 { - return int32(any.val) -} - -func (any *floatAny) ToInt64() int64 { - return int64(any.val) -} - -func (any *floatAny) ToUint() uint { - if any.val > 0 { - return uint(any.val) - } - return 0 -} - -func (any *floatAny) ToUint32() uint32 { - if any.val > 0 { - return uint32(any.val) - } - return 0 -} - -func (any *floatAny) ToUint64() uint64 { - if any.val > 0 { - return uint64(any.val) - } - return 0 -} - -func (any *floatAny) ToFloat32() float32 { - return float32(any.val) -} - -func (any *floatAny) ToFloat64() float64 { - return any.val -} - -func (any *floatAny) ToString() string { - return strconv.FormatFloat(any.val, 'E', -1, 64) -} - -func (any *floatAny) WriteTo(stream *Stream) { - stream.WriteFloat64(any.val) -} - -func (any *floatAny) GetInterface() interface{} { - return any.val -} diff --git a/vendor/github.com/json-iterator/go/any_int32.go b/vendor/github.com/json-iterator/go/any_int32.go deleted file mode 100644 index 1b56f39915..0000000000 --- a/vendor/github.com/json-iterator/go/any_int32.go +++ /dev/null @@ -1,74 +0,0 @@ -package jsoniter - -import ( - "strconv" -) - -type int32Any struct { - baseAny - val int32 -} - -func (any *int32Any) LastError() error { - return nil -} - -func (any *int32Any) ValueType() ValueType { - return NumberValue -} - -func (any *int32Any) MustBeValid() Any { - return any -} - -func (any *int32Any) ToBool() bool { - return any.val != 0 -} - -func (any *int32Any) ToInt() int { - return int(any.val) -} - -func (any *int32Any) ToInt32() int32 { - return any.val -} - -func (any *int32Any) ToInt64() int64 { - return int64(any.val) -} - -func (any *int32Any) ToUint() uint { - return uint(any.val) -} - -func (any *int32Any) ToUint32() uint32 { - return uint32(any.val) -} - -func (any *int32Any) ToUint64() uint64 { - return uint64(any.val) -} - -func (any *int32Any) ToFloat32() float32 { - return float32(any.val) -} - -func (any *int32Any) ToFloat64() float64 { - return float64(any.val) -} - -func (any *int32Any) ToString() string { - return strconv.FormatInt(int64(any.val), 10) -} - -func (any *int32Any) WriteTo(stream *Stream) { - stream.WriteInt32(any.val) -} - -func (any *int32Any) Parse() *Iterator { - return nil -} - -func (any *int32Any) GetInterface() interface{} { - return any.val -} diff --git a/vendor/github.com/json-iterator/go/any_int64.go b/vendor/github.com/json-iterator/go/any_int64.go deleted file mode 100644 index c440d72b6d..0000000000 --- a/vendor/github.com/json-iterator/go/any_int64.go +++ /dev/null @@ -1,74 +0,0 @@ -package jsoniter - -import ( - "strconv" -) - -type int64Any struct { - baseAny - val int64 -} - -func (any *int64Any) LastError() error { - return nil -} - -func (any *int64Any) ValueType() ValueType { - return NumberValue -} - -func (any *int64Any) MustBeValid() Any { - return any -} - -func (any *int64Any) ToBool() bool { - return any.val != 0 -} - -func (any *int64Any) ToInt() int { - return int(any.val) -} - -func (any *int64Any) ToInt32() int32 { - return int32(any.val) -} - -func (any *int64Any) ToInt64() int64 { - return any.val -} - -func (any *int64Any) ToUint() uint { - return uint(any.val) -} - -func (any *int64Any) ToUint32() uint32 { - return uint32(any.val) -} - -func (any *int64Any) ToUint64() uint64 { - return uint64(any.val) -} - -func (any *int64Any) ToFloat32() float32 { - return float32(any.val) -} - -func (any *int64Any) ToFloat64() float64 { - return float64(any.val) -} - -func (any *int64Any) ToString() string { - return strconv.FormatInt(any.val, 10) -} - -func (any *int64Any) WriteTo(stream *Stream) { - stream.WriteInt64(any.val) -} - -func (any *int64Any) Parse() *Iterator { - return nil -} - -func (any *int64Any) GetInterface() interface{} { - return any.val -} diff --git a/vendor/github.com/json-iterator/go/any_invalid.go b/vendor/github.com/json-iterator/go/any_invalid.go deleted file mode 100644 index 1d859eac32..0000000000 --- a/vendor/github.com/json-iterator/go/any_invalid.go +++ /dev/null @@ -1,82 +0,0 @@ -package jsoniter - -import "fmt" - -type invalidAny struct { - baseAny - err error -} - -func newInvalidAny(path []interface{}) *invalidAny { - return &invalidAny{baseAny{}, fmt.Errorf("%v not found", path)} -} - -func (any *invalidAny) LastError() error { - return any.err -} - -func (any *invalidAny) ValueType() ValueType { - return InvalidValue -} - -func (any *invalidAny) MustBeValid() Any { - panic(any.err) -} - -func (any *invalidAny) ToBool() bool { - return false -} - -func (any *invalidAny) ToInt() int { - return 0 -} - -func (any *invalidAny) ToInt32() int32 { - return 0 -} - -func (any *invalidAny) ToInt64() int64 { - return 0 -} - -func (any *invalidAny) ToUint() uint { - return 0 -} - -func (any *invalidAny) ToUint32() uint32 { - return 0 -} - -func (any *invalidAny) ToUint64() uint64 { - return 0 -} - -func (any *invalidAny) ToFloat32() float32 { - return 0 -} - -func (any *invalidAny) ToFloat64() float64 { - return 0 -} - -func (any *invalidAny) ToString() string { - return "" -} - -func (any *invalidAny) WriteTo(stream *Stream) { -} - -func (any *invalidAny) Get(path ...interface{}) Any { - if any.err == nil { - return &invalidAny{baseAny{}, fmt.Errorf("get %v from invalid", path)} - } - return &invalidAny{baseAny{}, fmt.Errorf("%v, get %v from invalid", any.err, path)} -} - -func (any *invalidAny) Parse() *Iterator { - return nil -} - -func (any *invalidAny) GetInterface() interface{} { - return nil -} diff --git a/vendor/github.com/json-iterator/go/any_nil.go b/vendor/github.com/json-iterator/go/any_nil.go deleted file mode 100644 index d04cb54c11..0000000000 --- a/vendor/github.com/json-iterator/go/any_nil.go +++ /dev/null @@ -1,69 +0,0 @@ -package jsoniter - -type nilAny struct { - baseAny -} - -func (any *nilAny) LastError() error { - return nil -} - -func (any *nilAny) ValueType() ValueType { - return NilValue -} - -func (any *nilAny) MustBeValid() Any { - return any -} - -func (any *nilAny) ToBool() bool { - return false -} - -func (any *nilAny) ToInt() int { - return 0 -} - -func (any *nilAny) ToInt32() int32 { - return 0 -} - -func (any *nilAny) ToInt64() int64 { - return 0 -} - -func (any *nilAny) ToUint() uint { - return 0 -} - -func (any *nilAny) ToUint32() uint32 { - return 0 -} - -func (any *nilAny) ToUint64() uint64 { - return 0 -} - -func (any *nilAny) ToFloat32() float32 { - return 0 -} - -func (any *nilAny) ToFloat64() float64 { - return 0 -} - -func (any *nilAny) ToString() string { - return "" -} - -func (any *nilAny) WriteTo(stream *Stream) { - stream.WriteNil() -} - -func (any *nilAny) Parse() *Iterator { - return nil -} - -func (any *nilAny) GetInterface() interface{} { - return nil -} diff --git a/vendor/github.com/json-iterator/go/any_number.go b/vendor/github.com/json-iterator/go/any_number.go deleted file mode 100644 index 9d1e901a66..0000000000 --- a/vendor/github.com/json-iterator/go/any_number.go +++ /dev/null @@ -1,123 +0,0 @@ -package jsoniter - -import ( - "io" - "unsafe" -) - -type numberLazyAny struct { - baseAny - cfg *frozenConfig - buf []byte - err error -} - -func (any *numberLazyAny) ValueType() ValueType { - return NumberValue -} - -func (any *numberLazyAny) MustBeValid() Any { - return any -} - -func (any *numberLazyAny) LastError() error { - return any.err -} - -func (any *numberLazyAny) ToBool() bool { - return any.ToFloat64() != 0 -} - -func (any *numberLazyAny) ToInt() int { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadInt() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToInt32() int32 { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadInt32() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToInt64() int64 { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadInt64() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToUint() uint { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadUint() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToUint32() uint32 { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadUint32() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToUint64() uint64 { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadUint64() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToFloat32() float32 { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadFloat32() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToFloat64() float64 { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - val := iter.ReadFloat64() - if iter.Error != nil && iter.Error != io.EOF { - any.err = iter.Error - } - return val -} - -func (any *numberLazyAny) ToString() string { - return *(*string)(unsafe.Pointer(&any.buf)) -} - -func (any *numberLazyAny) WriteTo(stream *Stream) { - stream.Write(any.buf) -} - -func (any *numberLazyAny) GetInterface() interface{} { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - return iter.Read() -} diff --git a/vendor/github.com/json-iterator/go/any_object.go b/vendor/github.com/json-iterator/go/any_object.go deleted file mode 100644 index c44ef5c989..0000000000 --- a/vendor/github.com/json-iterator/go/any_object.go +++ /dev/null @@ -1,374 +0,0 @@ -package jsoniter - -import ( - "reflect" - "unsafe" -) - -type objectLazyAny struct { - baseAny - cfg *frozenConfig - buf []byte - err error -} - -func (any *objectLazyAny) ValueType() ValueType { - return ObjectValue -} - -func (any *objectLazyAny) MustBeValid() Any { - return any -} - -func (any *objectLazyAny) LastError() error { - return any.err -} - -func (any *objectLazyAny) ToBool() bool { - return true -} - -func (any *objectLazyAny) ToInt() int { - return 0 -} - -func (any *objectLazyAny) ToInt32() int32 { - return 0 -} - -func (any *objectLazyAny) ToInt64() int64 { - return 0 -} - -func (any *objectLazyAny) ToUint() uint { - return 0 -} - -func (any *objectLazyAny) ToUint32() uint32 { - return 0 -} - -func (any *objectLazyAny) ToUint64() uint64 { - return 0 -} - -func (any *objectLazyAny) ToFloat32() float32 { - return 0 -} - -func (any *objectLazyAny) ToFloat64() float64 { - return 0 -} - -func (any *objectLazyAny) ToString() string { - return *(*string)(unsafe.Pointer(&any.buf)) -} - -func (any *objectLazyAny) ToVal(obj interface{}) { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - iter.ReadVal(obj) -} - -func (any *objectLazyAny) Get(path ...interface{}) Any { - if len(path) == 0 { - return any - } - switch firstPath := path[0].(type) { - case string: - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - valueBytes := locateObjectField(iter, firstPath) - if valueBytes == nil { - return newInvalidAny(path) - } - iter.ResetBytes(valueBytes) - return locatePath(iter, path[1:]) - case int32: - if '*' == firstPath { - mappedAll := map[string]Any{} - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - iter.ReadMapCB(func(iter *Iterator, field string) bool { - mapped := locatePath(iter, path[1:]) - if mapped.ValueType() != InvalidValue { - mappedAll[field] = mapped - } - return true - }) - return wrapMap(mappedAll) - } - return newInvalidAny(path) - default: - return newInvalidAny(path) - } -} - -func (any *objectLazyAny) Keys() []string { - keys := []string{} - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - iter.ReadMapCB(func(iter *Iterator, field string) bool { - iter.Skip() - keys = append(keys, field) - return true - }) - return keys -} - -func (any *objectLazyAny) Size() int { - size := 0 - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - iter.ReadObjectCB(func(iter *Iterator, field string) bool { - iter.Skip() - size++ - return true - }) - return size -} - -func (any *objectLazyAny) WriteTo(stream *Stream) { - stream.Write(any.buf) -} - -func (any *objectLazyAny) GetInterface() interface{} { - iter := any.cfg.BorrowIterator(any.buf) - defer any.cfg.ReturnIterator(iter) - return iter.Read() -} - -type objectAny struct { - baseAny - err error - val reflect.Value -} - -func wrapStruct(val interface{}) *objectAny { - return &objectAny{baseAny{}, nil, reflect.ValueOf(val)} -} - -func (any *objectAny) ValueType() ValueType { - return ObjectValue -} - -func (any *objectAny) MustBeValid() Any { - return any -} - -func (any *objectAny) Parse() *Iterator { - return nil -} - -func (any *objectAny) LastError() error { - return any.err -} - -func (any *objectAny) ToBool() bool { - return any.val.NumField() != 0 -} - -func (any *objectAny) ToInt() int { - return 0 -} - -func (any *objectAny) ToInt32() int32 { - return 0 -} - -func (any *objectAny) ToInt64() int64 { - return 0 -} - -func (any *objectAny) ToUint() uint { - return 0 -} - -func (any *objectAny) ToUint32() uint32 { - return 0 -} - -func (any *objectAny) ToUint64() uint64 { - return 0 -} - -func (any *objectAny) ToFloat32() float32 { - return 0 -} - -func (any *objectAny) ToFloat64() float64 { - return 0 -} - -func (any *objectAny) ToString() string { - str, err := MarshalToString(any.val.Interface()) - any.err = err - return str -} - -func (any *objectAny) Get(path ...interface{}) Any { - if len(path) == 0 { - return any - } - switch firstPath := path[0].(type) { - case string: - field := any.val.FieldByName(firstPath) - if !field.IsValid() { - return newInvalidAny(path) - } - return Wrap(field.Interface()) - case int32: - if '*' == firstPath { - mappedAll := map[string]Any{} - for i := 0; i < any.val.NumField(); i++ { - field := any.val.Field(i) - if field.CanInterface() { - mapped := Wrap(field.Interface()).Get(path[1:]...) - if mapped.ValueType() != InvalidValue { - mappedAll[any.val.Type().Field(i).Name] = mapped - } - } - } - return wrapMap(mappedAll) - } - return newInvalidAny(path) - default: - return newInvalidAny(path) - } -} - -func (any *objectAny) Keys() []string { - keys := make([]string, 0, any.val.NumField()) - for i := 0; i < any.val.NumField(); i++ { - keys = append(keys, any.val.Type().Field(i).Name) - } - return keys -} - -func (any *objectAny) Size() int { - return any.val.NumField() -} - -func (any *objectAny) WriteTo(stream *Stream) { - stream.WriteVal(any.val) -} - -func (any *objectAny) GetInterface() interface{} { - return any.val.Interface() -} - -type mapAny struct { - baseAny - err error - val reflect.Value -} - -func wrapMap(val interface{}) *mapAny { - return &mapAny{baseAny{}, nil, reflect.ValueOf(val)} -} - -func (any *mapAny) ValueType() ValueType { - return ObjectValue -} - -func (any *mapAny) MustBeValid() Any { - return any -} - -func (any *mapAny) Parse() *Iterator { - return nil -} - -func (any *mapAny) LastError() error { - return any.err -} - -func (any *mapAny) ToBool() bool { - return true -} - -func (any *mapAny) ToInt() int { - return 0 -} - -func (any *mapAny) ToInt32() int32 { - return 0 -} - -func (any *mapAny) ToInt64() int64 { - return 0 -} - -func (any *mapAny) ToUint() uint { - return 0 -} - -func (any *mapAny) ToUint32() uint32 { - return 0 -} - -func (any *mapAny) ToUint64() uint64 { - return 0 -} - -func (any *mapAny) ToFloat32() float32 { - return 0 -} - -func (any *mapAny) ToFloat64() float64 { - return 0 -} - -func (any *mapAny) ToString() string { - str, err := MarshalToString(any.val.Interface()) - any.err = err - return str -} - -func (any *mapAny) Get(path ...interface{}) Any { - if len(path) == 0 { - return any - } - switch firstPath := path[0].(type) { - case int32: - if '*' == firstPath { - mappedAll := map[string]Any{} - for _, key := range any.val.MapKeys() { - keyAsStr := key.String() - element := Wrap(any.val.MapIndex(key).Interface()) - mapped := element.Get(path[1:]...) - if mapped.ValueType() != InvalidValue { - mappedAll[keyAsStr] = mapped - } - } - return wrapMap(mappedAll) - } - return newInvalidAny(path) - default: - value := any.val.MapIndex(reflect.ValueOf(firstPath)) - if !value.IsValid() { - return newInvalidAny(path) - } - return Wrap(value.Interface()) - } -} - -func (any *mapAny) Keys() []string { - keys := make([]string, 0, any.val.Len()) - for _, key := range any.val.MapKeys() { - keys = append(keys, key.String()) - } - return keys -} - -func (any *mapAny) Size() int { - return any.val.Len() -} - -func (any *mapAny) WriteTo(stream *Stream) { - stream.WriteVal(any.val) -} - -func (any *mapAny) GetInterface() interface{} { - return any.val.Interface() -} diff --git a/vendor/github.com/json-iterator/go/any_str.go b/vendor/github.com/json-iterator/go/any_str.go deleted file mode 100644 index 1f12f6612d..0000000000 --- a/vendor/github.com/json-iterator/go/any_str.go +++ /dev/null @@ -1,166 +0,0 @@ -package jsoniter - -import ( - "fmt" - "strconv" -) - -type stringAny struct { - baseAny - val string -} - -func (any *stringAny) Get(path ...interface{}) Any { - if len(path) == 0 { - return any - } - return &invalidAny{baseAny{}, fmt.Errorf("GetIndex %v from simple value", path)} -} - -func (any *stringAny) Parse() *Iterator { - return nil -} - -func (any *stringAny) ValueType() ValueType { - return StringValue -} - -func (any *stringAny) MustBeValid() Any { - return any -} - -func (any *stringAny) LastError() error { - return nil -} - -func (any *stringAny) ToBool() bool { - str := any.ToString() - if str == "0" { - return false - } - for _, c := range str { - switch c { - case ' ', '\n', '\r', '\t': - default: - return true - } - } - return false -} - -func (any *stringAny) ToInt() int { - return int(any.ToInt64()) - -} - -func (any *stringAny) ToInt32() int32 { - return int32(any.ToInt64()) -} - -func (any *stringAny) ToInt64() int64 { - if any.val == "" { - return 0 - } - - flag := 1 - startPos := 0 - if any.val[0] == '+' || any.val[0] == '-' { - startPos = 1 - } - - if any.val[0] == '-' { - flag = -1 - } - - endPos := startPos - for i := startPos; i < len(any.val); i++ { - if any.val[i] >= '0' && any.val[i] <= '9' { - endPos = i + 1 - } else { - break - } - } - parsed, _ := strconv.ParseInt(any.val[startPos:endPos], 10, 64) - return int64(flag) * parsed -} - -func (any *stringAny) ToUint() uint { - return uint(any.ToUint64()) -} - -func (any *stringAny) ToUint32() uint32 { - return uint32(any.ToUint64()) -} - -func (any *stringAny) ToUint64() uint64 { - if any.val == "" { - return 0 - } - - startPos := 0 - - if any.val[0] == '-' { - return 0 - } - if any.val[0] == '+' { - startPos = 1 - } - - endPos := startPos - for i := startPos; i < len(any.val); i++ { - if any.val[i] >= '0' && any.val[i] <= '9' { - endPos = i + 1 - } else { - break - } - } - parsed, _ := strconv.ParseUint(any.val[startPos:endPos], 10, 64) - return parsed -} - -func (any *stringAny) ToFloat32() float32 { - return float32(any.ToFloat64()) -} - -func (any *stringAny) ToFloat64() float64 { - if len(any.val) == 0 { - return 0 - } - - // first char invalid - if any.val[0] != '+' && any.val[0] != '-' && (any.val[0] > '9' || any.val[0] < '0') { - return 0 - } - - // extract valid num expression from string - // eg 123true => 123, -12.12xxa => -12.12 - endPos := 1 - for i := 1; i < len(any.val); i++ { - if any.val[i] == '.' || any.val[i] == 'e' || any.val[i] == 'E' || any.val[i] == '+' || any.val[i] == '-' { - endPos = i + 1 - continue - } - - // end position is the first char which is not digit - if any.val[i] >= '0' && any.val[i] <= '9' { - endPos = i + 1 - } else { - endPos = i - break - } - } - parsed, _ := strconv.ParseFloat(any.val[:endPos], 64) - return parsed -} - -func (any *stringAny) ToString() string { - return any.val -} - -func (any *stringAny) WriteTo(stream *Stream) { - stream.WriteString(any.val) -} - -func (any *stringAny) GetInterface() interface{} { - return any.val -} diff --git a/vendor/github.com/json-iterator/go/any_uint32.go b/vendor/github.com/json-iterator/go/any_uint32.go deleted file mode 100644 index 656bbd33d7..0000000000 --- a/vendor/github.com/json-iterator/go/any_uint32.go +++ /dev/null @@ -1,74 +0,0 @@ -package jsoniter - -import ( - "strconv" -) - -type uint32Any struct { - baseAny - val uint32 -} - -func (any *uint32Any) LastError() error { - return nil -} - -func (any *uint32Any) ValueType() ValueType { - return NumberValue -} - -func (any *uint32Any) MustBeValid() Any { - return any -} - -func (any *uint32Any) ToBool() bool { - return any.val != 0 -} - -func (any *uint32Any) ToInt() int { - return int(any.val) -} - -func (any *uint32Any) ToInt32() int32 { - return int32(any.val) -} - -func (any *uint32Any) ToInt64() int64 { - return int64(any.val) -} - -func (any *uint32Any) ToUint() uint { - return uint(any.val) -} - -func (any *uint32Any) ToUint32() uint32 { - return any.val -} - -func (any *uint32Any) ToUint64() uint64 { - return uint64(any.val) -} - -func (any *uint32Any) ToFloat32() float32 { - return float32(any.val) -} - -func (any *uint32Any) ToFloat64() float64 { - return float64(any.val) -} - -func (any *uint32Any) ToString() string { - return strconv.FormatInt(int64(any.val), 10) -} - -func (any *uint32Any) WriteTo(stream *Stream) { - stream.WriteUint32(any.val) -} - -func (any *uint32Any) Parse() *Iterator { - return nil -} - -func (any *uint32Any) GetInterface() interface{} { - return any.val -} diff --git a/vendor/github.com/json-iterator/go/any_uint64.go b/vendor/github.com/json-iterator/go/any_uint64.go deleted file mode 100644 index 7df2fce33b..0000000000 --- a/vendor/github.com/json-iterator/go/any_uint64.go +++ /dev/null @@ -1,74 +0,0 @@ -package jsoniter - -import ( - "strconv" -) - -type uint64Any struct { - baseAny - val uint64 -} - -func (any *uint64Any) LastError() error { - return nil -} - -func (any *uint64Any) ValueType() ValueType { - return NumberValue -} - -func (any *uint64Any) MustBeValid() Any { - return any -} - -func (any *uint64Any) ToBool() bool { - return any.val != 0 -} - -func (any *uint64Any) ToInt() int { - return int(any.val) -} - -func (any *uint64Any) ToInt32() int32 { - return int32(any.val) -} - -func (any *uint64Any) ToInt64() int64 { - return int64(any.val) -} - -func (any *uint64Any) ToUint() uint { - return uint(any.val) -} - -func (any *uint64Any) ToUint32() uint32 { - return uint32(any.val) -} - -func (any *uint64Any) ToUint64() uint64 { - return any.val -} - -func (any *uint64Any) ToFloat32() float32 { - return float32(any.val) -} - -func (any *uint64Any) ToFloat64() float64 { - return float64(any.val) -} - -func (any *uint64Any) ToString() string { - return strconv.FormatUint(any.val, 10) -} - -func (any *uint64Any) WriteTo(stream *Stream) { - stream.WriteUint64(any.val) -} - -func (any *uint64Any) Parse() *Iterator { - return nil -} - -func (any *uint64Any) GetInterface() interface{} { - return any.val -} diff --git a/vendor/github.com/json-iterator/go/build.sh b/vendor/github.com/json-iterator/go/build.sh deleted file mode 100644 index b45ef68831..0000000000 --- a/vendor/github.com/json-iterator/go/build.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -e -set -x - -if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then - mkdir -p /tmp/build-golang/src/github.com/json-iterator - ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go -fi -export GOPATH=/tmp/build-golang -go get -u github.com/golang/dep/cmd/dep -cd /tmp/build-golang/src/github.com/json-iterator/go -exec $GOPATH/bin/dep ensure -update diff --git a/vendor/github.com/json-iterator/go/config.go b/vendor/github.com/json-iterator/go/config.go deleted file mode 100644 index 2adcdc3b79..0000000000 --- a/vendor/github.com/json-iterator/go/config.go +++ /dev/null @@ -1,375 +0,0 @@ -package jsoniter - -import ( - "encoding/json" - "io" - "reflect" - "sync" - "unsafe" - - "github.com/modern-go/concurrent" - "github.com/modern-go/reflect2" -) - -// Config customize how the API should behave. -// The API is created from Config by Froze. -type Config struct { - IndentionStep int - MarshalFloatWith6Digits bool - EscapeHTML bool - SortMapKeys bool - UseNumber bool - DisallowUnknownFields bool - TagKey string - OnlyTaggedField bool - ValidateJsonRawMessage bool - ObjectFieldMustBeSimpleString bool - CaseSensitive bool -} - -// API the public interface of this package. -// Primary Marshal and Unmarshal. -type API interface { - IteratorPool - StreamPool - MarshalToString(v interface{}) (string, error) - Marshal(v interface{}) ([]byte, error) - MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) - UnmarshalFromString(str string, v interface{}) error - Unmarshal(data []byte, v interface{}) error - Get(data []byte, path ...interface{}) Any - NewEncoder(writer io.Writer) *Encoder - NewDecoder(reader io.Reader) *Decoder - Valid(data []byte) bool - RegisterExtension(extension Extension) - DecoderOf(typ reflect2.Type) ValDecoder - EncoderOf(typ reflect2.Type) ValEncoder -} - -// ConfigDefault the default API -var ConfigDefault = Config{ - EscapeHTML: true, -}.Froze() - -// ConfigCompatibleWithStandardLibrary tries to be 100% compatible with standard library behavior -var ConfigCompatibleWithStandardLibrary = Config{ - EscapeHTML: true, - SortMapKeys: true, - ValidateJsonRawMessage: true, -}.Froze() - -// ConfigFastest marshals float with only 6 digits precision -var ConfigFastest = Config{ - EscapeHTML: false, - MarshalFloatWith6Digits: true, // will lose precession - ObjectFieldMustBeSimpleString: true, // do not unescape object field -}.Froze() - -type frozenConfig struct { - configBeforeFrozen Config - sortMapKeys bool - indentionStep int - objectFieldMustBeSimpleString bool - onlyTaggedField bool - disallowUnknownFields bool - decoderCache *concurrent.Map - encoderCache *concurrent.Map - encoderExtension Extension - decoderExtension Extension - extraExtensions []Extension - streamPool *sync.Pool - iteratorPool *sync.Pool - caseSensitive bool -} - -func (cfg *frozenConfig) initCache() { - cfg.decoderCache = concurrent.NewMap() - cfg.encoderCache = concurrent.NewMap() -} - -func (cfg *frozenConfig) addDecoderToCache(cacheKey uintptr, decoder ValDecoder) { - cfg.decoderCache.Store(cacheKey, decoder) -} - -func (cfg *frozenConfig) addEncoderToCache(cacheKey uintptr, encoder ValEncoder) { - cfg.encoderCache.Store(cacheKey, encoder) -} - -func (cfg *frozenConfig) getDecoderFromCache(cacheKey uintptr) ValDecoder { - decoder, found := cfg.decoderCache.Load(cacheKey) - if found { - return decoder.(ValDecoder) - } - return nil -} - -func (cfg *frozenConfig) getEncoderFromCache(cacheKey uintptr) ValEncoder { - encoder, found := cfg.encoderCache.Load(cacheKey) - if found { - return encoder.(ValEncoder) - } - return nil -} - -var cfgCache = concurrent.NewMap() - -func getFrozenConfigFromCache(cfg Config) *frozenConfig { - obj, found := cfgCache.Load(cfg) - if found { - return obj.(*frozenConfig) - } - return nil -} - -func addFrozenConfigToCache(cfg Config, frozenConfig *frozenConfig) { - cfgCache.Store(cfg, frozenConfig) -} - -// Froze forge API from config -func (cfg Config) Froze() API { - api := &frozenConfig{ - sortMapKeys: cfg.SortMapKeys, - indentionStep: cfg.IndentionStep, - objectFieldMustBeSimpleString: cfg.ObjectFieldMustBeSimpleString, - onlyTaggedField: cfg.OnlyTaggedField, - disallowUnknownFields: cfg.DisallowUnknownFields, - caseSensitive: cfg.CaseSensitive, - } - api.streamPool = &sync.Pool{ - New: func() interface{} { - return NewStream(api, nil, 512) - }, - } - api.iteratorPool = &sync.Pool{ - New: func() interface{} { - return NewIterator(api) - }, - } - api.initCache() - encoderExtension := EncoderExtension{} - decoderExtension := DecoderExtension{} - if cfg.MarshalFloatWith6Digits { - api.marshalFloatWith6Digits(encoderExtension) - } - if cfg.EscapeHTML { - api.escapeHTML(encoderExtension) - } - if cfg.UseNumber { - api.useNumber(decoderExtension) - } - if cfg.ValidateJsonRawMessage { - api.validateJsonRawMessage(encoderExtension) - } - api.encoderExtension = encoderExtension - api.decoderExtension = decoderExtension - api.configBeforeFrozen = cfg - return api -} - -func (cfg Config) frozeWithCacheReuse(extraExtensions []Extension) *frozenConfig { - api := getFrozenConfigFromCache(cfg) - if api != nil { - return api - } - api = cfg.Froze().(*frozenConfig) - for _, extension := range extraExtensions { - api.RegisterExtension(extension) - } - addFrozenConfigToCache(cfg, api) - return api -} - -func (cfg *frozenConfig) validateJsonRawMessage(extension EncoderExtension) { - encoder := &funcEncoder{func(ptr unsafe.Pointer, stream *Stream) { - rawMessage := *(*json.RawMessage)(ptr) - iter := cfg.BorrowIterator([]byte(rawMessage)) - defer cfg.ReturnIterator(iter) - iter.Read() - if iter.Error != nil && iter.Error != io.EOF { - stream.WriteRaw("null") - } else { - stream.WriteRaw(string(rawMessage)) - } - }, func(ptr unsafe.Pointer) bool { - return len(*((*json.RawMessage)(ptr))) == 0 - }} - extension[reflect2.TypeOfPtr((*json.RawMessage)(nil)).Elem()] = encoder - extension[reflect2.TypeOfPtr((*RawMessage)(nil)).Elem()] = encoder -} - -func (cfg *frozenConfig) useNumber(extension DecoderExtension) { - extension[reflect2.TypeOfPtr((*interface{})(nil)).Elem()] = &funcDecoder{func(ptr unsafe.Pointer, iter *Iterator) { - exitingValue := *((*interface{})(ptr)) - if exitingValue != nil && reflect.TypeOf(exitingValue).Kind() == reflect.Ptr { - iter.ReadVal(exitingValue) - return - } - if iter.WhatIsNext() == NumberValue { - *((*interface{})(ptr)) = json.Number(iter.readNumberAsString()) - } else { - *((*interface{})(ptr)) = iter.Read() - } - }} -} -func (cfg *frozenConfig) getTagKey() string { - tagKey := cfg.configBeforeFrozen.TagKey - if tagKey == "" { - return "json" - } - return tagKey -} - -func (cfg *frozenConfig) RegisterExtension(extension Extension) { - cfg.extraExtensions = append(cfg.extraExtensions, extension) - copied := cfg.configBeforeFrozen - cfg.configBeforeFrozen = copied -} - -type lossyFloat32Encoder struct { -} - -func (encoder *lossyFloat32Encoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteFloat32Lossy(*((*float32)(ptr))) -} - -func (encoder *lossyFloat32Encoder) IsEmpty(ptr unsafe.Pointer) bool { - return *((*float32)(ptr)) == 0 -} - -type lossyFloat64Encoder struct { -} - -func (encoder *lossyFloat64Encoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteFloat64Lossy(*((*float64)(ptr))) -} - -func (encoder *lossyFloat64Encoder) IsEmpty(ptr unsafe.Pointer) bool { - return *((*float64)(ptr)) == 0 -} - -// EnableLossyFloatMarshalling keeps 10**(-6) precision -// for float variables for better performance. -func (cfg *frozenConfig) marshalFloatWith6Digits(extension EncoderExtension) { - // for better performance - extension[reflect2.TypeOfPtr((*float32)(nil)).Elem()] = &lossyFloat32Encoder{} - extension[reflect2.TypeOfPtr((*float64)(nil)).Elem()] = &lossyFloat64Encoder{} -} - -type htmlEscapedStringEncoder struct { -} - -func (encoder *htmlEscapedStringEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - str := *((*string)(ptr)) - stream.WriteStringWithHTMLEscaped(str) -} - -func (encoder *htmlEscapedStringEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return *((*string)(ptr)) == "" -} - -func (cfg *frozenConfig) escapeHTML(encoderExtension EncoderExtension) { - encoderExtension[reflect2.TypeOfPtr((*string)(nil)).Elem()] = &htmlEscapedStringEncoder{} -} - -func (cfg *frozenConfig) cleanDecoders() { - typeDecoders = map[string]ValDecoder{} - fieldDecoders = map[string]ValDecoder{} - *cfg = *(cfg.configBeforeFrozen.Froze().(*frozenConfig)) -} - -func (cfg *frozenConfig) cleanEncoders() { - typeEncoders = map[string]ValEncoder{} - fieldEncoders = map[string]ValEncoder{} - *cfg = *(cfg.configBeforeFrozen.Froze().(*frozenConfig)) -} - -func (cfg *frozenConfig) MarshalToString(v interface{}) (string, error) { - stream := cfg.BorrowStream(nil) - defer cfg.ReturnStream(stream) - stream.WriteVal(v) - if stream.Error != nil { - return "", stream.Error - } - return string(stream.Buffer()), nil -} - -func (cfg *frozenConfig) Marshal(v interface{}) ([]byte, error) { - stream := cfg.BorrowStream(nil) - defer cfg.ReturnStream(stream) - stream.WriteVal(v) - if stream.Error != nil { - return nil, stream.Error - } - result := stream.Buffer() - copied := make([]byte, len(result)) - copy(copied, result) - return copied, nil -} - -func (cfg *frozenConfig) MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) { - if prefix != "" { - panic("prefix is not supported") - } - for _, r := range indent { - if r != ' ' { - panic("indent can only be space") - } - } - newCfg := cfg.configBeforeFrozen - newCfg.IndentionStep = len(indent) - return newCfg.frozeWithCacheReuse(cfg.extraExtensions).Marshal(v) -} - -func (cfg *frozenConfig) UnmarshalFromString(str string, v interface{}) error { - data := []byte(str) - iter := cfg.BorrowIterator(data) - defer cfg.ReturnIterator(iter) - iter.ReadVal(v) - c := iter.nextToken() - if c == 0 { - if iter.Error == io.EOF { - return nil - } - return iter.Error - } - iter.ReportError("Unmarshal", "there are bytes left after unmarshal") - return iter.Error -} - -func (cfg *frozenConfig) Get(data []byte, path ...interface{}) Any { - iter := cfg.BorrowIterator(data) - defer cfg.ReturnIterator(iter) - return locatePath(iter, path) -} - -func (cfg *frozenConfig) Unmarshal(data []byte, v interface{}) error { - iter := cfg.BorrowIterator(data) - defer cfg.ReturnIterator(iter) - iter.ReadVal(v) - c := iter.nextToken() - if c == 0 { - if iter.Error == io.EOF { - return nil - } - return iter.Error - } - iter.ReportError("Unmarshal", "there are bytes left after unmarshal") - return iter.Error -} - -func (cfg *frozenConfig) NewEncoder(writer io.Writer) *Encoder { - stream := NewStream(cfg, writer, 512) - return &Encoder{stream} -} - -func (cfg *frozenConfig) NewDecoder(reader io.Reader) *Decoder { - iter := Parse(cfg, reader, 512) - return &Decoder{iter} -} - -func (cfg *frozenConfig) Valid(data []byte) bool { - iter := cfg.BorrowIterator(data) - defer cfg.ReturnIterator(iter) - iter.Skip() - return iter.Error == nil -} diff --git a/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md b/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md deleted file mode 100644 index 3095662b06..0000000000 --- a/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md +++ /dev/null @@ -1,7 +0,0 @@ -| json type \ dest type | bool | int | uint | float |string| -| --- | --- | --- | --- |--|--| -| number | positive => true
negative => true
zero => false| 23.2 => 23
-32.1 => -32| 12.1 => 12
-12.1 => 0|as normal|same as origin| -| string | empty string => false
string "0" => false
other strings => true | "123.32" => 123
"-123.4" => -123
"123.23xxxw" => 123
"abcde12" => 0
"-32.1" => -32| 13.2 => 13
-1.1 => 0 |12.1 => 12.1
-12.3 => -12.3
12.4xxa => 12.4
+1.1e2 =>110 |same as origin| -| bool | true => true
false => false| true => 1
false => 0 | true => 1
false => 0 |true => 1
false => 0|true => "true"
false => "false"| -| object | true | 0 | 0 |0|originnal json| -| array | empty array => false
nonempty array => true| [] => 0
[1,2] => 1 | [] => 0
[1,2] => 1 |[] => 0
[1,2] => 1|original json| \ No newline at end of file diff --git a/vendor/github.com/json-iterator/go/iter.go b/vendor/github.com/json-iterator/go/iter.go deleted file mode 100644 index 29b31cf789..0000000000 --- a/vendor/github.com/json-iterator/go/iter.go +++ /dev/null @@ -1,349 +0,0 @@ -package jsoniter - -import ( - "encoding/json" - "fmt" - "io" -) - -// ValueType the type for JSON element -type ValueType int - -const ( - // InvalidValue invalid JSON element - InvalidValue ValueType = iota - // StringValue JSON element "string" - StringValue - // NumberValue JSON element 100 or 0.10 - NumberValue - // NilValue JSON element null - NilValue - // BoolValue JSON element true or false - BoolValue - // ArrayValue JSON element [] - ArrayValue - // ObjectValue JSON element {} - ObjectValue -) - -var hexDigits []byte -var valueTypes []ValueType - -func init() { - hexDigits = make([]byte, 256) - for i := 0; i < len(hexDigits); i++ { - hexDigits[i] = 255 - } - for i := '0'; i <= '9'; i++ { - hexDigits[i] = byte(i - '0') - } - for i := 'a'; i <= 'f'; i++ { - hexDigits[i] = byte((i - 'a') + 10) - } - for i := 'A'; i <= 'F'; i++ { - hexDigits[i] = byte((i - 'A') + 10) - } - valueTypes = make([]ValueType, 256) - for i := 0; i < len(valueTypes); i++ { - valueTypes[i] = InvalidValue - } - valueTypes['"'] = StringValue - valueTypes['-'] = NumberValue - valueTypes['0'] = NumberValue - valueTypes['1'] = NumberValue - valueTypes['2'] = NumberValue - valueTypes['3'] = NumberValue - valueTypes['4'] = NumberValue - valueTypes['5'] = NumberValue - valueTypes['6'] = NumberValue - valueTypes['7'] = NumberValue - valueTypes['8'] = NumberValue - valueTypes['9'] = NumberValue - valueTypes['t'] = BoolValue - valueTypes['f'] = BoolValue - valueTypes['n'] = NilValue - valueTypes['['] = ArrayValue - valueTypes['{'] = ObjectValue -} - -// Iterator is a io.Reader like object, with JSON specific read functions. -// Error is not returned as return value, but stored as Error member on this iterator instance. -type Iterator struct { - cfg *frozenConfig - reader io.Reader - buf []byte - head int - tail int - depth int - captureStartedAt int - captured []byte - Error error - Attachment interface{} // open for customized decoder -} - -// NewIterator creates an empty Iterator instance -func NewIterator(cfg API) *Iterator { - return &Iterator{ - cfg: cfg.(*frozenConfig), - reader: nil, - buf: nil, - head: 0, - tail: 0, - depth: 0, - } -} - -// Parse creates an Iterator instance from io.Reader -func Parse(cfg API, reader io.Reader, bufSize int) *Iterator { - return &Iterator{ - cfg: cfg.(*frozenConfig), - reader: reader, - buf: make([]byte, bufSize), - head: 0, - tail: 0, - depth: 0, - } -} - -// ParseBytes creates an Iterator instance from byte array -func ParseBytes(cfg API, input []byte) *Iterator { - return &Iterator{ - cfg: cfg.(*frozenConfig), - reader: nil, - buf: input, - head: 0, - tail: len(input), - depth: 0, - } -} - -// ParseString creates an Iterator instance from string -func ParseString(cfg API, input string) *Iterator { - return ParseBytes(cfg, []byte(input)) -} - -// Pool returns a pool can provide more iterator with same configuration -func (iter *Iterator) Pool() IteratorPool { - return iter.cfg -} - -// Reset reuse iterator instance by specifying another reader -func (iter *Iterator) Reset(reader io.Reader) *Iterator { - iter.reader = reader - iter.head = 0 - iter.tail = 0 - iter.depth = 0 - return iter -} - -// ResetBytes reuse iterator instance by specifying another byte array as input -func (iter *Iterator) ResetBytes(input []byte) *Iterator { - iter.reader = nil - iter.buf = input - iter.head = 0 - iter.tail = len(input) - iter.depth = 0 - return iter -} - -// WhatIsNext gets ValueType of relatively next json element -func (iter *Iterator) WhatIsNext() ValueType { - valueType := valueTypes[iter.nextToken()] - iter.unreadByte() - return valueType -} - -func (iter *Iterator) skipWhitespacesWithoutLoadMore() bool { - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - switch c { - case ' ', '\n', '\t', '\r': - continue - } - iter.head = i - return false - } - return true -} - -func (iter *Iterator) isObjectEnd() bool { - c := iter.nextToken() - if c == ',' { - return false - } - if c == '}' { - return true - } - iter.ReportError("isObjectEnd", "object ended prematurely, unexpected char "+string([]byte{c})) - return true -} - -func (iter *Iterator) nextToken() byte { - // a variation of skip whitespaces, returning the next non-whitespace token - for { - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - switch c { - case ' ', '\n', '\t', '\r': - continue - } - iter.head = i + 1 - return c - } - if !iter.loadMore() { - return 0 - } - } -} - -// ReportError record a error in iterator instance with current position. -func (iter *Iterator) ReportError(operation string, msg string) { - if iter.Error != nil { - if iter.Error != io.EOF { - return - } - } - peekStart := iter.head - 10 - if peekStart < 0 { - peekStart = 0 - } - peekEnd := iter.head + 10 - if peekEnd > iter.tail { - peekEnd = iter.tail - } - parsing := string(iter.buf[peekStart:peekEnd]) - contextStart := iter.head - 50 - if contextStart < 0 { - contextStart = 0 - } - contextEnd := iter.head + 50 - if contextEnd > iter.tail { - contextEnd = iter.tail - } - context := string(iter.buf[contextStart:contextEnd]) - iter.Error = fmt.Errorf("%s: %s, error found in #%v byte of ...|%s|..., bigger context ...|%s|...", - operation, msg, iter.head-peekStart, parsing, context) -} - -// CurrentBuffer gets current buffer as string for debugging purpose -func (iter *Iterator) CurrentBuffer() string { - peekStart := iter.head - 10 - if peekStart < 0 { - peekStart = 0 - } - return fmt.Sprintf("parsing #%v byte, around ...|%s|..., whole buffer ...|%s|...", iter.head, - string(iter.buf[peekStart:iter.head]), string(iter.buf[0:iter.tail])) -} - -func (iter *Iterator) readByte() (ret byte) { - if iter.head == iter.tail { - if iter.loadMore() { - ret = iter.buf[iter.head] - iter.head++ - return ret - } - return 0 - } - ret = iter.buf[iter.head] - iter.head++ - return ret -} - -func (iter *Iterator) loadMore() bool { - if iter.reader == nil { - if iter.Error == nil { - iter.head = iter.tail - iter.Error = io.EOF - } - return false - } - if iter.captured != nil { - iter.captured = append(iter.captured, - iter.buf[iter.captureStartedAt:iter.tail]...) - iter.captureStartedAt = 0 - } - for { - n, err := iter.reader.Read(iter.buf) - if n == 0 { - if err != nil { - if iter.Error == nil { - iter.Error = err - } - return false - } - } else { - iter.head = 0 - iter.tail = n - return true - } - } -} - -func (iter *Iterator) unreadByte() { - if iter.Error != nil { - return - } - iter.head-- - return -} - -// Read read the next JSON element as generic interface{}. -func (iter *Iterator) Read() interface{} { - valueType := iter.WhatIsNext() - switch valueType { - case StringValue: - return iter.ReadString() - case NumberValue: - if iter.cfg.configBeforeFrozen.UseNumber { - return json.Number(iter.readNumberAsString()) - } - return iter.ReadFloat64() - case NilValue: - iter.skipFourBytes('n', 'u', 'l', 'l') - return nil - case BoolValue: - return iter.ReadBool() - case ArrayValue: - arr := []interface{}{} - iter.ReadArrayCB(func(iter *Iterator) bool { - var elem interface{} - iter.ReadVal(&elem) - arr = append(arr, elem) - return true - }) - return arr - case ObjectValue: - obj := map[string]interface{}{} - iter.ReadMapCB(func(Iter *Iterator, field string) bool { - var elem interface{} - iter.ReadVal(&elem) - obj[field] = elem - return true - }) - return obj - default: - iter.ReportError("Read", fmt.Sprintf("unexpected value type: %v", valueType)) - return nil - } -} - -// limit maximum depth of nesting, as allowed by https://tools.ietf.org/html/rfc7159#section-9 -const maxDepth = 10000 - -func (iter *Iterator) incrementDepth() (success bool) { - iter.depth++ - if iter.depth <= maxDepth { - return true - } - iter.ReportError("incrementDepth", "exceeded max depth") - return false -} - -func (iter *Iterator) decrementDepth() (success bool) { - iter.depth-- - if iter.depth >= 0 { - return true - } - iter.ReportError("decrementDepth", "unexpected negative nesting") - return false -} diff --git a/vendor/github.com/json-iterator/go/iter_array.go b/vendor/github.com/json-iterator/go/iter_array.go deleted file mode 100644 index 204fe0e092..0000000000 --- a/vendor/github.com/json-iterator/go/iter_array.go +++ /dev/null @@ -1,64 +0,0 @@ -package jsoniter - -// ReadArray read array element, tells if the array has more element to read. -func (iter *Iterator) ReadArray() (ret bool) { - c := iter.nextToken() - switch c { - case 'n': - iter.skipThreeBytes('u', 'l', 'l') - return false // null - case '[': - c = iter.nextToken() - if c != ']' { - iter.unreadByte() - return true - } - return false - case ']': - return false - case ',': - return true - default: - iter.ReportError("ReadArray", "expect [ or , or ] or n, but found "+string([]byte{c})) - return - } -} - -// ReadArrayCB read array with callback -func (iter *Iterator) ReadArrayCB(callback func(*Iterator) bool) (ret bool) { - c := iter.nextToken() - if c == '[' { - if !iter.incrementDepth() { - return false - } - c = iter.nextToken() - if c != ']' { - iter.unreadByte() - if !callback(iter) { - iter.decrementDepth() - return false - } - c = iter.nextToken() - for c == ',' { - if !callback(iter) { - iter.decrementDepth() - return false - } - c = iter.nextToken() - } - if c != ']' { - iter.ReportError("ReadArrayCB", "expect ] in the end, but found "+string([]byte{c})) - iter.decrementDepth() - return false - } - return iter.decrementDepth() - } - return iter.decrementDepth() - } - if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - return true // null - } - iter.ReportError("ReadArrayCB", "expect [ or n, but found "+string([]byte{c})) - return false -} diff --git a/vendor/github.com/json-iterator/go/iter_float.go b/vendor/github.com/json-iterator/go/iter_float.go deleted file mode 100644 index 8a3d8b6fb4..0000000000 --- a/vendor/github.com/json-iterator/go/iter_float.go +++ /dev/null @@ -1,342 +0,0 @@ -package jsoniter - -import ( - "encoding/json" - "io" - "math/big" - "strconv" - "strings" - "unsafe" -) - -var floatDigits []int8 - -const invalidCharForNumber = int8(-1) -const endOfNumber = int8(-2) -const dotInNumber = int8(-3) - -func init() { - floatDigits = make([]int8, 256) - for i := 0; i < len(floatDigits); i++ { - floatDigits[i] = invalidCharForNumber - } - for i := int8('0'); i <= int8('9'); i++ { - floatDigits[i] = i - int8('0') - } - floatDigits[','] = endOfNumber - floatDigits[']'] = endOfNumber - floatDigits['}'] = endOfNumber - floatDigits[' '] = endOfNumber - floatDigits['\t'] = endOfNumber - floatDigits['\n'] = endOfNumber - floatDigits['.'] = dotInNumber -} - -// ReadBigFloat read big.Float -func (iter *Iterator) ReadBigFloat() (ret *big.Float) { - str := iter.readNumberAsString() - if iter.Error != nil && iter.Error != io.EOF { - return nil - } - prec := 64 - if len(str) > prec { - prec = len(str) - } - val, _, err := big.ParseFloat(str, 10, uint(prec), big.ToZero) - if err != nil { - iter.Error = err - return nil - } - return val -} - -// ReadBigInt read big.Int -func (iter *Iterator) ReadBigInt() (ret *big.Int) { - str := iter.readNumberAsString() - if iter.Error != nil && iter.Error != io.EOF { - return nil - } - ret = big.NewInt(0) - var success bool - ret, success = ret.SetString(str, 10) - if !success { - iter.ReportError("ReadBigInt", "invalid big int") - return nil - } - return ret -} - -//ReadFloat32 read float32 -func (iter *Iterator) ReadFloat32() (ret float32) { - c := iter.nextToken() - if c == '-' { - return -iter.readPositiveFloat32() - } - iter.unreadByte() - return iter.readPositiveFloat32() -} - -func (iter *Iterator) readPositiveFloat32() (ret float32) { - i := iter.head - // first char - if i == iter.tail { - return iter.readFloat32SlowPath() - } - c := iter.buf[i] - i++ - ind := floatDigits[c] - switch ind { - case invalidCharForNumber: - return iter.readFloat32SlowPath() - case endOfNumber: - iter.ReportError("readFloat32", "empty number") - return - case dotInNumber: - iter.ReportError("readFloat32", "leading dot is invalid") - return - case 0: - if i == iter.tail { - return iter.readFloat32SlowPath() - } - c = iter.buf[i] - switch c { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - iter.ReportError("readFloat32", "leading zero is invalid") - return - } - } - value := uint64(ind) - // chars before dot -non_decimal_loop: - for ; i < iter.tail; i++ { - c = iter.buf[i] - ind := floatDigits[c] - switch ind { - case invalidCharForNumber: - return iter.readFloat32SlowPath() - case endOfNumber: - iter.head = i - return float32(value) - case dotInNumber: - break non_decimal_loop - } - if value > uint64SafeToMultiple10 { - return iter.readFloat32SlowPath() - } - value = (value << 3) + (value << 1) + uint64(ind) // value = value * 10 + ind; - } - // chars after dot - if c == '.' { - i++ - decimalPlaces := 0 - if i == iter.tail { - return iter.readFloat32SlowPath() - } - for ; i < iter.tail; i++ { - c = iter.buf[i] - ind := floatDigits[c] - switch ind { - case endOfNumber: - if decimalPlaces > 0 && decimalPlaces < len(pow10) { - iter.head = i - return float32(float64(value) / float64(pow10[decimalPlaces])) - } - // too many decimal places - return iter.readFloat32SlowPath() - case invalidCharForNumber, dotInNumber: - return iter.readFloat32SlowPath() - } - decimalPlaces++ - if value > uint64SafeToMultiple10 { - return iter.readFloat32SlowPath() - } - value = (value << 3) + (value << 1) + uint64(ind) - } - } - return iter.readFloat32SlowPath() -} - -func (iter *Iterator) readNumberAsString() (ret string) { - strBuf := [16]byte{} - str := strBuf[0:0] -load_loop: - for { - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - switch c { - case '+', '-', '.', 'e', 'E', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - str = append(str, c) - continue - default: - iter.head = i - break load_loop - } - } - if !iter.loadMore() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF { - return - } - if len(str) == 0 { - iter.ReportError("readNumberAsString", "invalid number") - } - return *(*string)(unsafe.Pointer(&str)) -} - -func (iter *Iterator) readFloat32SlowPath() (ret float32) { - str := iter.readNumberAsString() - if iter.Error != nil && iter.Error != io.EOF { - return - } - errMsg := validateFloat(str) - if errMsg != "" { - iter.ReportError("readFloat32SlowPath", errMsg) - return - } - val, err := strconv.ParseFloat(str, 32) - if err != nil { - iter.Error = err - return - } - return float32(val) -} - -// ReadFloat64 read float64 -func (iter *Iterator) ReadFloat64() (ret float64) { - c := iter.nextToken() - if c == '-' { - return -iter.readPositiveFloat64() - } - iter.unreadByte() - return iter.readPositiveFloat64() -} - -func (iter *Iterator) readPositiveFloat64() (ret float64) { - i := iter.head - // first char - if i == iter.tail { - return iter.readFloat64SlowPath() - } - c := iter.buf[i] - i++ - ind := floatDigits[c] - switch ind { - case invalidCharForNumber: - return iter.readFloat64SlowPath() - case endOfNumber: - iter.ReportError("readFloat64", "empty number") - return - case dotInNumber: - iter.ReportError("readFloat64", "leading dot is invalid") - return - case 0: - if i == iter.tail { - return iter.readFloat64SlowPath() - } - c = iter.buf[i] - switch c { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - iter.ReportError("readFloat64", "leading zero is invalid") - return - } - } - value := uint64(ind) - // chars before dot -non_decimal_loop: - for ; i < iter.tail; i++ { - c = iter.buf[i] - ind := floatDigits[c] - switch ind { - case invalidCharForNumber: - return iter.readFloat64SlowPath() - case endOfNumber: - iter.head = i - return float64(value) - case dotInNumber: - break non_decimal_loop - } - if value > uint64SafeToMultiple10 { - return iter.readFloat64SlowPath() - } - value = (value << 3) + (value << 1) + uint64(ind) // value = value * 10 + ind; - } - // chars after dot - if c == '.' { - i++ - decimalPlaces := 0 - if i == iter.tail { - return iter.readFloat64SlowPath() - } - for ; i < iter.tail; i++ { - c = iter.buf[i] - ind := floatDigits[c] - switch ind { - case endOfNumber: - if decimalPlaces > 0 && decimalPlaces < len(pow10) { - iter.head = i - return float64(value) / float64(pow10[decimalPlaces]) - } - // too many decimal places - return iter.readFloat64SlowPath() - case invalidCharForNumber, dotInNumber: - return iter.readFloat64SlowPath() - } - decimalPlaces++ - if value > uint64SafeToMultiple10 { - return iter.readFloat64SlowPath() - } - value = (value << 3) + (value << 1) + uint64(ind) - if value > maxFloat64 { - return iter.readFloat64SlowPath() - } - } - } - return iter.readFloat64SlowPath() -} - -func (iter *Iterator) readFloat64SlowPath() (ret float64) { - str := iter.readNumberAsString() - if iter.Error != nil && iter.Error != io.EOF { - return - } - errMsg := validateFloat(str) - if errMsg != "" { - iter.ReportError("readFloat64SlowPath", errMsg) - return - } - val, err := strconv.ParseFloat(str, 64) - if err != nil { - iter.Error = err - return - } - return val -} - -func validateFloat(str string) string { - // strconv.ParseFloat is not validating `1.` or `1.e1` - if len(str) == 0 { - return "empty number" - } - if str[0] == '-' { - return "-- is not valid" - } - dotPos := strings.IndexByte(str, '.') - if dotPos != -1 { - if dotPos == len(str)-1 { - return "dot can not be last character" - } - switch str[dotPos+1] { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - default: - return "missing digit after dot" - } - } - return "" -} - -// ReadNumber read json.Number -func (iter *Iterator) ReadNumber() (ret json.Number) { - return json.Number(iter.readNumberAsString()) -} diff --git a/vendor/github.com/json-iterator/go/iter_int.go b/vendor/github.com/json-iterator/go/iter_int.go deleted file mode 100644 index d786a89fe1..0000000000 --- a/vendor/github.com/json-iterator/go/iter_int.go +++ /dev/null @@ -1,346 +0,0 @@ -package jsoniter - -import ( - "math" - "strconv" -) - -var intDigits []int8 - -const uint32SafeToMultiply10 = uint32(0xffffffff)/10 - 1 -const uint64SafeToMultiple10 = uint64(0xffffffffffffffff)/10 - 1 -const maxFloat64 = 1<<53 - 1 - -func init() { - intDigits = make([]int8, 256) - for i := 0; i < len(intDigits); i++ { - intDigits[i] = invalidCharForNumber - } - for i := int8('0'); i <= int8('9'); i++ { - intDigits[i] = i - int8('0') - } -} - -// ReadUint read uint -func (iter *Iterator) ReadUint() uint { - if strconv.IntSize == 32 { - return uint(iter.ReadUint32()) - } - return uint(iter.ReadUint64()) -} - -// ReadInt read int -func (iter *Iterator) ReadInt() int { - if strconv.IntSize == 32 { - return int(iter.ReadInt32()) - } - return int(iter.ReadInt64()) -} - -// ReadInt8 read int8 -func (iter *Iterator) ReadInt8() (ret int8) { - c := iter.nextToken() - if c == '-' { - val := iter.readUint32(iter.readByte()) - if val > math.MaxInt8+1 { - iter.ReportError("ReadInt8", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return -int8(val) - } - val := iter.readUint32(c) - if val > math.MaxInt8 { - iter.ReportError("ReadInt8", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return int8(val) -} - -// ReadUint8 read uint8 -func (iter *Iterator) ReadUint8() (ret uint8) { - val := iter.readUint32(iter.nextToken()) - if val > math.MaxUint8 { - iter.ReportError("ReadUint8", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return uint8(val) -} - -// ReadInt16 read int16 -func (iter *Iterator) ReadInt16() (ret int16) { - c := iter.nextToken() - if c == '-' { - val := iter.readUint32(iter.readByte()) - if val > math.MaxInt16+1 { - iter.ReportError("ReadInt16", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return -int16(val) - } - val := iter.readUint32(c) - if val > math.MaxInt16 { - iter.ReportError("ReadInt16", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return int16(val) -} - -// ReadUint16 read uint16 -func (iter *Iterator) ReadUint16() (ret uint16) { - val := iter.readUint32(iter.nextToken()) - if val > math.MaxUint16 { - iter.ReportError("ReadUint16", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return uint16(val) -} - -// ReadInt32 read int32 -func (iter *Iterator) ReadInt32() (ret int32) { - c := iter.nextToken() - if c == '-' { - val := iter.readUint32(iter.readByte()) - if val > math.MaxInt32+1 { - iter.ReportError("ReadInt32", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return -int32(val) - } - val := iter.readUint32(c) - if val > math.MaxInt32 { - iter.ReportError("ReadInt32", "overflow: "+strconv.FormatInt(int64(val), 10)) - return - } - return int32(val) -} - -// ReadUint32 read uint32 -func (iter *Iterator) ReadUint32() (ret uint32) { - return iter.readUint32(iter.nextToken()) -} - -func (iter *Iterator) readUint32(c byte) (ret uint32) { - ind := intDigits[c] - if ind == 0 { - iter.assertInteger() - return 0 // single zero - } - if ind == invalidCharForNumber { - iter.ReportError("readUint32", "unexpected character: "+string([]byte{byte(ind)})) - return - } - value := uint32(ind) - if iter.tail-iter.head > 10 { - i := iter.head - ind2 := intDigits[iter.buf[i]] - if ind2 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value - } - i++ - ind3 := intDigits[iter.buf[i]] - if ind3 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*10 + uint32(ind2) - } - //iter.head = i + 1 - //value = value * 100 + uint32(ind2) * 10 + uint32(ind3) - i++ - ind4 := intDigits[iter.buf[i]] - if ind4 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*100 + uint32(ind2)*10 + uint32(ind3) - } - i++ - ind5 := intDigits[iter.buf[i]] - if ind5 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*1000 + uint32(ind2)*100 + uint32(ind3)*10 + uint32(ind4) - } - i++ - ind6 := intDigits[iter.buf[i]] - if ind6 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*10000 + uint32(ind2)*1000 + uint32(ind3)*100 + uint32(ind4)*10 + uint32(ind5) - } - i++ - ind7 := intDigits[iter.buf[i]] - if ind7 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*100000 + uint32(ind2)*10000 + uint32(ind3)*1000 + uint32(ind4)*100 + uint32(ind5)*10 + uint32(ind6) - } - i++ - ind8 := intDigits[iter.buf[i]] - if ind8 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*1000000 + uint32(ind2)*100000 + uint32(ind3)*10000 + uint32(ind4)*1000 + uint32(ind5)*100 + uint32(ind6)*10 + uint32(ind7) - } - i++ - ind9 := intDigits[iter.buf[i]] - value = value*10000000 + uint32(ind2)*1000000 + uint32(ind3)*100000 + uint32(ind4)*10000 + uint32(ind5)*1000 + uint32(ind6)*100 + uint32(ind7)*10 + uint32(ind8) - iter.head = i - if ind9 == invalidCharForNumber { - iter.assertInteger() - return value - } - } - for { - for i := iter.head; i < iter.tail; i++ { - ind = intDigits[iter.buf[i]] - if ind == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value - } - if value > uint32SafeToMultiply10 { - value2 := (value << 3) + (value << 1) + uint32(ind) - if value2 < value { - iter.ReportError("readUint32", "overflow") - return - } - value = value2 - continue - } - value = (value << 3) + (value << 1) + uint32(ind) - } - if !iter.loadMore() { - iter.assertInteger() - return value - } - } -} - -// ReadInt64 read int64 -func (iter *Iterator) ReadInt64() (ret int64) { - c := iter.nextToken() - if c == '-' { - val := iter.readUint64(iter.readByte()) - if val > math.MaxInt64+1 { - iter.ReportError("ReadInt64", "overflow: "+strconv.FormatUint(uint64(val), 10)) - return - } - return -int64(val) - } - val := iter.readUint64(c) - if val > math.MaxInt64 { - iter.ReportError("ReadInt64", "overflow: "+strconv.FormatUint(uint64(val), 10)) - return - } - return int64(val) -} - -// ReadUint64 read uint64 -func (iter *Iterator) ReadUint64() uint64 { - return iter.readUint64(iter.nextToken()) -} - -func (iter *Iterator) readUint64(c byte) (ret uint64) { - ind := intDigits[c] - if ind == 0 { - iter.assertInteger() - return 0 // single zero - } - if ind == invalidCharForNumber { - iter.ReportError("readUint64", "unexpected character: "+string([]byte{byte(ind)})) - return - } - value := uint64(ind) - if iter.tail-iter.head > 10 { - i := iter.head - ind2 := intDigits[iter.buf[i]] - if ind2 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value - } - i++ - ind3 := intDigits[iter.buf[i]] - if ind3 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*10 + uint64(ind2) - } - //iter.head = i + 1 - //value = value * 100 + uint32(ind2) * 10 + uint32(ind3) - i++ - ind4 := intDigits[iter.buf[i]] - if ind4 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*100 + uint64(ind2)*10 + uint64(ind3) - } - i++ - ind5 := intDigits[iter.buf[i]] - if ind5 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*1000 + uint64(ind2)*100 + uint64(ind3)*10 + uint64(ind4) - } - i++ - ind6 := intDigits[iter.buf[i]] - if ind6 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*10000 + uint64(ind2)*1000 + uint64(ind3)*100 + uint64(ind4)*10 + uint64(ind5) - } - i++ - ind7 := intDigits[iter.buf[i]] - if ind7 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*100000 + uint64(ind2)*10000 + uint64(ind3)*1000 + uint64(ind4)*100 + uint64(ind5)*10 + uint64(ind6) - } - i++ - ind8 := intDigits[iter.buf[i]] - if ind8 == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value*1000000 + uint64(ind2)*100000 + uint64(ind3)*10000 + uint64(ind4)*1000 + uint64(ind5)*100 + uint64(ind6)*10 + uint64(ind7) - } - i++ - ind9 := intDigits[iter.buf[i]] - value = value*10000000 + uint64(ind2)*1000000 + uint64(ind3)*100000 + uint64(ind4)*10000 + uint64(ind5)*1000 + uint64(ind6)*100 + uint64(ind7)*10 + uint64(ind8) - iter.head = i - if ind9 == invalidCharForNumber { - iter.assertInteger() - return value - } - } - for { - for i := iter.head; i < iter.tail; i++ { - ind = intDigits[iter.buf[i]] - if ind == invalidCharForNumber { - iter.head = i - iter.assertInteger() - return value - } - if value > uint64SafeToMultiple10 { - value2 := (value << 3) + (value << 1) + uint64(ind) - if value2 < value { - iter.ReportError("readUint64", "overflow") - return - } - value = value2 - continue - } - value = (value << 3) + (value << 1) + uint64(ind) - } - if !iter.loadMore() { - iter.assertInteger() - return value - } - } -} - -func (iter *Iterator) assertInteger() { - if iter.head < iter.tail && iter.buf[iter.head] == '.' { - iter.ReportError("assertInteger", "can not decode float as int") - } -} diff --git a/vendor/github.com/json-iterator/go/iter_object.go b/vendor/github.com/json-iterator/go/iter_object.go deleted file mode 100644 index 58ee89c849..0000000000 --- a/vendor/github.com/json-iterator/go/iter_object.go +++ /dev/null @@ -1,267 +0,0 @@ -package jsoniter - -import ( - "fmt" - "strings" -) - -// ReadObject read one field from object. -// If object ended, returns empty string. -// Otherwise, returns the field name. -func (iter *Iterator) ReadObject() (ret string) { - c := iter.nextToken() - switch c { - case 'n': - iter.skipThreeBytes('u', 'l', 'l') - return "" // null - case '{': - c = iter.nextToken() - if c == '"' { - iter.unreadByte() - field := iter.ReadString() - c = iter.nextToken() - if c != ':' { - iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) - } - return field - } - if c == '}' { - return "" // end of object - } - iter.ReportError("ReadObject", `expect " after {, but found `+string([]byte{c})) - return - case ',': - field := iter.ReadString() - c = iter.nextToken() - if c != ':' { - iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) - } - return field - case '}': - return "" // end of object - default: - iter.ReportError("ReadObject", fmt.Sprintf(`expect { or , or } or n, but found %s`, string([]byte{c}))) - return - } -} - -// CaseInsensitive -func (iter *Iterator) readFieldHash() int64 { - hash := int64(0x811c9dc5) - c := iter.nextToken() - if c != '"' { - iter.ReportError("readFieldHash", `expect ", but found `+string([]byte{c})) - return 0 - } - for { - for i := iter.head; i < iter.tail; i++ { - // require ascii string and no escape - b := iter.buf[i] - if b == '\\' { - iter.head = i - for _, b := range iter.readStringSlowPath() { - if 'A' <= b && b <= 'Z' && !iter.cfg.caseSensitive { - b += 'a' - 'A' - } - hash ^= int64(b) - hash *= 0x1000193 - } - c = iter.nextToken() - if c != ':' { - iter.ReportError("readFieldHash", `expect :, but found `+string([]byte{c})) - return 0 - } - return hash - } - if b == '"' { - iter.head = i + 1 - c = iter.nextToken() - if c != ':' { - iter.ReportError("readFieldHash", `expect :, but found `+string([]byte{c})) - return 0 - } - return hash - } - if 'A' <= b && b <= 'Z' && !iter.cfg.caseSensitive { - b += 'a' - 'A' - } - hash ^= int64(b) - hash *= 0x1000193 - } - if !iter.loadMore() { - iter.ReportError("readFieldHash", `incomplete field name`) - return 0 - } - } -} - -func calcHash(str string, caseSensitive bool) int64 { - if !caseSensitive { - str = strings.ToLower(str) - } - hash := int64(0x811c9dc5) - for _, b := range []byte(str) { - hash ^= int64(b) - hash *= 0x1000193 - } - return int64(hash) -} - -// ReadObjectCB read object with callback, the key is ascii only and field name not copied -func (iter *Iterator) ReadObjectCB(callback func(*Iterator, string) bool) bool { - c := iter.nextToken() - var field string - if c == '{' { - if !iter.incrementDepth() { - return false - } - c = iter.nextToken() - if c == '"' { - iter.unreadByte() - field = iter.ReadString() - c = iter.nextToken() - if c != ':' { - iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) - } - if !callback(iter, field) { - iter.decrementDepth() - return false - } - c = iter.nextToken() - for c == ',' { - field = iter.ReadString() - c = iter.nextToken() - if c != ':' { - iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) - } - if !callback(iter, field) { - iter.decrementDepth() - return false - } - c = iter.nextToken() - } - if c != '}' { - iter.ReportError("ReadObjectCB", `object not ended with }`) - iter.decrementDepth() - return false - } - return iter.decrementDepth() - } - if c == '}' { - return iter.decrementDepth() - } - iter.ReportError("ReadObjectCB", `expect " after {, but found `+string([]byte{c})) - iter.decrementDepth() - return false - } - if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - return true // null - } - iter.ReportError("ReadObjectCB", `expect { or n, but found `+string([]byte{c})) - return false -} - -// ReadMapCB read map with callback, the key can be any string -func (iter *Iterator) ReadMapCB(callback func(*Iterator, string) bool) bool { - c := iter.nextToken() - if c == '{' { - if !iter.incrementDepth() { - return false - } - c = iter.nextToken() - if c == '"' { - iter.unreadByte() - field := iter.ReadString() - if iter.nextToken() != ':' { - iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) - iter.decrementDepth() - return false - } - if !callback(iter, field) { - iter.decrementDepth() - return false - } - c = iter.nextToken() - for c == ',' { - field = iter.ReadString() - if iter.nextToken() != ':' { - iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) - iter.decrementDepth() - return false - } - if !callback(iter, field) { - iter.decrementDepth() - return false - } - c = iter.nextToken() - } - if c != '}' { - iter.ReportError("ReadMapCB", `object not ended with }`) - iter.decrementDepth() - return false - } - return iter.decrementDepth() - } - if c == '}' { - return iter.decrementDepth() - } - iter.ReportError("ReadMapCB", `expect " after {, but found `+string([]byte{c})) - iter.decrementDepth() - return false - } - if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - return true // null - } - iter.ReportError("ReadMapCB", `expect { or n, but found `+string([]byte{c})) - return false -} - -func (iter *Iterator) readObjectStart() bool { - c := iter.nextToken() - if c == '{' { - c = iter.nextToken() - if c == '}' { - return false - } - iter.unreadByte() - return true - } else if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - return false - } - iter.ReportError("readObjectStart", "expect { or n, but found "+string([]byte{c})) - return false -} - -func (iter *Iterator) readObjectFieldAsBytes() (ret []byte) { - str := iter.ReadStringAsSlice() - if iter.skipWhitespacesWithoutLoadMore() { - if ret == nil { - ret = make([]byte, len(str)) - copy(ret, str) - } - if !iter.loadMore() { - return - } - } - if iter.buf[iter.head] != ':' { - iter.ReportError("readObjectFieldAsBytes", "expect : after object field, but found "+string([]byte{iter.buf[iter.head]})) - return - } - iter.head++ - if iter.skipWhitespacesWithoutLoadMore() { - if ret == nil { - ret = make([]byte, len(str)) - copy(ret, str) - } - if !iter.loadMore() { - return - } - } - if ret == nil { - return str - } - return ret -} diff --git a/vendor/github.com/json-iterator/go/iter_skip.go b/vendor/github.com/json-iterator/go/iter_skip.go deleted file mode 100644 index e91eefb15b..0000000000 --- a/vendor/github.com/json-iterator/go/iter_skip.go +++ /dev/null @@ -1,130 +0,0 @@ -package jsoniter - -import "fmt" - -// ReadNil reads a json object as nil and -// returns whether it's a nil or not -func (iter *Iterator) ReadNil() (ret bool) { - c := iter.nextToken() - if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') // null - return true - } - iter.unreadByte() - return false -} - -// ReadBool reads a json object as BoolValue -func (iter *Iterator) ReadBool() (ret bool) { - c := iter.nextToken() - if c == 't' { - iter.skipThreeBytes('r', 'u', 'e') - return true - } - if c == 'f' { - iter.skipFourBytes('a', 'l', 's', 'e') - return false - } - iter.ReportError("ReadBool", "expect t or f, but found "+string([]byte{c})) - return -} - -// SkipAndReturnBytes skip next JSON element, and return its content as []byte. -// The []byte can be kept, it is a copy of data. -func (iter *Iterator) SkipAndReturnBytes() []byte { - iter.startCapture(iter.head) - iter.Skip() - return iter.stopCapture() -} - -// SkipAndAppendBytes skips next JSON element and appends its content to -// buffer, returning the result. -func (iter *Iterator) SkipAndAppendBytes(buf []byte) []byte { - iter.startCaptureTo(buf, iter.head) - iter.Skip() - return iter.stopCapture() -} - -func (iter *Iterator) startCaptureTo(buf []byte, captureStartedAt int) { - if iter.captured != nil { - panic("already in capture mode") - } - iter.captureStartedAt = captureStartedAt - iter.captured = buf -} - -func (iter *Iterator) startCapture(captureStartedAt int) { - iter.startCaptureTo(make([]byte, 0, 32), captureStartedAt) -} - -func (iter *Iterator) stopCapture() []byte { - if iter.captured == nil { - panic("not in capture mode") - } - captured := iter.captured - remaining := iter.buf[iter.captureStartedAt:iter.head] - iter.captureStartedAt = -1 - iter.captured = nil - return append(captured, remaining...) -} - -// Skip skips a json object and positions to relatively the next json object -func (iter *Iterator) Skip() { - c := iter.nextToken() - switch c { - case '"': - iter.skipString() - case 'n': - iter.skipThreeBytes('u', 'l', 'l') // null - case 't': - iter.skipThreeBytes('r', 'u', 'e') // true - case 'f': - iter.skipFourBytes('a', 'l', 's', 'e') // false - case '0': - iter.unreadByte() - iter.ReadFloat32() - case '-', '1', '2', '3', '4', '5', '6', '7', '8', '9': - iter.skipNumber() - case '[': - iter.skipArray() - case '{': - iter.skipObject() - default: - iter.ReportError("Skip", fmt.Sprintf("do not know how to skip: %v", c)) - return - } -} - -func (iter *Iterator) skipFourBytes(b1, b2, b3, b4 byte) { - if iter.readByte() != b1 { - iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) - return - } - if iter.readByte() != b2 { - iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) - return - } - if iter.readByte() != b3 { - iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) - return - } - if iter.readByte() != b4 { - iter.ReportError("skipFourBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3, b4}))) - return - } -} - -func (iter *Iterator) skipThreeBytes(b1, b2, b3 byte) { - if iter.readByte() != b1 { - iter.ReportError("skipThreeBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3}))) - return - } - if iter.readByte() != b2 { - iter.ReportError("skipThreeBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3}))) - return - } - if iter.readByte() != b3 { - iter.ReportError("skipThreeBytes", fmt.Sprintf("expect %s", string([]byte{b1, b2, b3}))) - return - } -} diff --git a/vendor/github.com/json-iterator/go/iter_skip_sloppy.go b/vendor/github.com/json-iterator/go/iter_skip_sloppy.go deleted file mode 100644 index 9303de41e4..0000000000 --- a/vendor/github.com/json-iterator/go/iter_skip_sloppy.go +++ /dev/null @@ -1,163 +0,0 @@ -//+build jsoniter_sloppy - -package jsoniter - -// sloppy but faster implementation, do not validate the input json - -func (iter *Iterator) skipNumber() { - for { - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - switch c { - case ' ', '\n', '\r', '\t', ',', '}', ']': - iter.head = i - return - } - } - if !iter.loadMore() { - return - } - } -} - -func (iter *Iterator) skipArray() { - level := 1 - if !iter.incrementDepth() { - return - } - for { - for i := iter.head; i < iter.tail; i++ { - switch iter.buf[i] { - case '"': // If inside string, skip it - iter.head = i + 1 - iter.skipString() - i = iter.head - 1 // it will be i++ soon - case '[': // If open symbol, increase level - level++ - if !iter.incrementDepth() { - return - } - case ']': // If close symbol, increase level - level-- - if !iter.decrementDepth() { - return - } - - // If we have returned to the original level, we're done - if level == 0 { - iter.head = i + 1 - return - } - } - } - if !iter.loadMore() { - iter.ReportError("skipObject", "incomplete array") - return - } - } -} - -func (iter *Iterator) skipObject() { - level := 1 - if !iter.incrementDepth() { - return - } - - for { - for i := iter.head; i < iter.tail; i++ { - switch iter.buf[i] { - case '"': // If inside string, skip it - iter.head = i + 1 - iter.skipString() - i = iter.head - 1 // it will be i++ soon - case '{': // If open symbol, increase level - level++ - if !iter.incrementDepth() { - return - } - case '}': // If close symbol, increase level - level-- - if !iter.decrementDepth() { - return - } - - // If we have returned to the original level, we're done - if level == 0 { - iter.head = i + 1 - return - } - } - } - if !iter.loadMore() { - iter.ReportError("skipObject", "incomplete object") - return - } - } -} - -func (iter *Iterator) skipString() { - for { - end, escaped := iter.findStringEnd() - if end == -1 { - if !iter.loadMore() { - iter.ReportError("skipString", "incomplete string") - return - } - if escaped { - iter.head = 1 // skip the first char as last char read is \ - } - } else { - iter.head = end - return - } - } -} - -// adapted from: https://github.com/buger/jsonparser/blob/master/parser.go -// Tries to find the end of string -// Support if string contains escaped quote symbols. -func (iter *Iterator) findStringEnd() (int, bool) { - escaped := false - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - if c == '"' { - if !escaped { - return i + 1, false - } - j := i - 1 - for { - if j < iter.head || iter.buf[j] != '\\' { - // even number of backslashes - // either end of buffer, or " found - return i + 1, true - } - j-- - if j < iter.head || iter.buf[j] != '\\' { - // odd number of backslashes - // it is \" or \\\" - break - } - j-- - } - } else if c == '\\' { - escaped = true - } - } - j := iter.tail - 1 - for { - if j < iter.head || iter.buf[j] != '\\' { - // even number of backslashes - // either end of buffer, or " found - return -1, false // do not end with \ - } - j-- - if j < iter.head || iter.buf[j] != '\\' { - // odd number of backslashes - // it is \" or \\\" - break - } - j-- - - } - return -1, true // end with \ -} diff --git a/vendor/github.com/json-iterator/go/iter_skip_strict.go b/vendor/github.com/json-iterator/go/iter_skip_strict.go deleted file mode 100644 index 6cf66d0438..0000000000 --- a/vendor/github.com/json-iterator/go/iter_skip_strict.go +++ /dev/null @@ -1,99 +0,0 @@ -//+build !jsoniter_sloppy - -package jsoniter - -import ( - "fmt" - "io" -) - -func (iter *Iterator) skipNumber() { - if !iter.trySkipNumber() { - iter.unreadByte() - if iter.Error != nil && iter.Error != io.EOF { - return - } - iter.ReadFloat64() - if iter.Error != nil && iter.Error != io.EOF { - iter.Error = nil - iter.ReadBigFloat() - } - } -} - -func (iter *Iterator) trySkipNumber() bool { - dotFound := false - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - switch c { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - case '.': - if dotFound { - iter.ReportError("validateNumber", `more than one dot found in number`) - return true // already failed - } - if i+1 == iter.tail { - return false - } - c = iter.buf[i+1] - switch c { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - default: - iter.ReportError("validateNumber", `missing digit after dot`) - return true // already failed - } - dotFound = true - default: - switch c { - case ',', ']', '}', ' ', '\t', '\n', '\r': - if iter.head == i { - return false // if - without following digits - } - iter.head = i - return true // must be valid - } - return false // may be invalid - } - } - return false -} - -func (iter *Iterator) skipString() { - if !iter.trySkipString() { - iter.unreadByte() - iter.ReadString() - } -} - -func (iter *Iterator) trySkipString() bool { - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - if c == '"' { - iter.head = i + 1 - return true // valid - } else if c == '\\' { - return false - } else if c < ' ' { - iter.ReportError("trySkipString", - fmt.Sprintf(`invalid control character found: %d`, c)) - return true // already failed - } - } - return false -} - -func (iter *Iterator) skipObject() { - iter.unreadByte() - iter.ReadObjectCB(func(iter *Iterator, field string) bool { - iter.Skip() - return true - }) -} - -func (iter *Iterator) skipArray() { - iter.unreadByte() - iter.ReadArrayCB(func(iter *Iterator) bool { - iter.Skip() - return true - }) -} diff --git a/vendor/github.com/json-iterator/go/iter_str.go b/vendor/github.com/json-iterator/go/iter_str.go deleted file mode 100644 index adc487ea80..0000000000 --- a/vendor/github.com/json-iterator/go/iter_str.go +++ /dev/null @@ -1,215 +0,0 @@ -package jsoniter - -import ( - "fmt" - "unicode/utf16" -) - -// ReadString read string from iterator -func (iter *Iterator) ReadString() (ret string) { - c := iter.nextToken() - if c == '"' { - for i := iter.head; i < iter.tail; i++ { - c := iter.buf[i] - if c == '"' { - ret = string(iter.buf[iter.head:i]) - iter.head = i + 1 - return ret - } else if c == '\\' { - break - } else if c < ' ' { - iter.ReportError("ReadString", - fmt.Sprintf(`invalid control character found: %d`, c)) - return - } - } - return iter.readStringSlowPath() - } else if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - return "" - } - iter.ReportError("ReadString", `expects " or n, but found `+string([]byte{c})) - return -} - -func (iter *Iterator) readStringSlowPath() (ret string) { - var str []byte - var c byte - for iter.Error == nil { - c = iter.readByte() - if c == '"' { - return string(str) - } - if c == '\\' { - c = iter.readByte() - str = iter.readEscapedChar(c, str) - } else { - str = append(str, c) - } - } - iter.ReportError("readStringSlowPath", "unexpected end of input") - return -} - -func (iter *Iterator) readEscapedChar(c byte, str []byte) []byte { - switch c { - case 'u': - r := iter.readU4() - if utf16.IsSurrogate(r) { - c = iter.readByte() - if iter.Error != nil { - return nil - } - if c != '\\' { - iter.unreadByte() - str = appendRune(str, r) - return str - } - c = iter.readByte() - if iter.Error != nil { - return nil - } - if c != 'u' { - str = appendRune(str, r) - return iter.readEscapedChar(c, str) - } - r2 := iter.readU4() - if iter.Error != nil { - return nil - } - combined := utf16.DecodeRune(r, r2) - if combined == '\uFFFD' { - str = appendRune(str, r) - str = appendRune(str, r2) - } else { - str = appendRune(str, combined) - } - } else { - str = appendRune(str, r) - } - case '"': - str = append(str, '"') - case '\\': - str = append(str, '\\') - case '/': - str = append(str, '/') - case 'b': - str = append(str, '\b') - case 'f': - str = append(str, '\f') - case 'n': - str = append(str, '\n') - case 'r': - str = append(str, '\r') - case 't': - str = append(str, '\t') - default: - iter.ReportError("readEscapedChar", - `invalid escape char after \`) - return nil - } - return str -} - -// ReadStringAsSlice read string from iterator without copying into string form. -// The []byte can not be kept, as it will change after next iterator call. -func (iter *Iterator) ReadStringAsSlice() (ret []byte) { - c := iter.nextToken() - if c == '"' { - for i := iter.head; i < iter.tail; i++ { - // require ascii string and no escape - // for: field name, base64, number - if iter.buf[i] == '"' { - // fast path: reuse the underlying buffer - ret = iter.buf[iter.head:i] - iter.head = i + 1 - return ret - } - } - readLen := iter.tail - iter.head - copied := make([]byte, readLen, readLen*2) - copy(copied, iter.buf[iter.head:iter.tail]) - iter.head = iter.tail - for iter.Error == nil { - c := iter.readByte() - if c == '"' { - return copied - } - copied = append(copied, c) - } - return copied - } - iter.ReportError("ReadStringAsSlice", `expects " or n, but found `+string([]byte{c})) - return -} - -func (iter *Iterator) readU4() (ret rune) { - for i := 0; i < 4; i++ { - c := iter.readByte() - if iter.Error != nil { - return - } - if c >= '0' && c <= '9' { - ret = ret*16 + rune(c-'0') - } else if c >= 'a' && c <= 'f' { - ret = ret*16 + rune(c-'a'+10) - } else if c >= 'A' && c <= 'F' { - ret = ret*16 + rune(c-'A'+10) - } else { - iter.ReportError("readU4", "expects 0~9 or a~f, but found "+string([]byte{c})) - return - } - } - return ret -} - -const ( - t1 = 0x00 // 0000 0000 - tx = 0x80 // 1000 0000 - t2 = 0xC0 // 1100 0000 - t3 = 0xE0 // 1110 0000 - t4 = 0xF0 // 1111 0000 - t5 = 0xF8 // 1111 1000 - - maskx = 0x3F // 0011 1111 - mask2 = 0x1F // 0001 1111 - mask3 = 0x0F // 0000 1111 - mask4 = 0x07 // 0000 0111 - - rune1Max = 1<<7 - 1 - rune2Max = 1<<11 - 1 - rune3Max = 1<<16 - 1 - - surrogateMin = 0xD800 - surrogateMax = 0xDFFF - - maxRune = '\U0010FFFF' // Maximum valid Unicode code point. - runeError = '\uFFFD' // the "error" Rune or "Unicode replacement character" -) - -func appendRune(p []byte, r rune) []byte { - // Negative values are erroneous. Making it unsigned addresses the problem. - switch i := uint32(r); { - case i <= rune1Max: - p = append(p, byte(r)) - return p - case i <= rune2Max: - p = append(p, t2|byte(r>>6)) - p = append(p, tx|byte(r)&maskx) - return p - case i > maxRune, surrogateMin <= i && i <= surrogateMax: - r = runeError - fallthrough - case i <= rune3Max: - p = append(p, t3|byte(r>>12)) - p = append(p, tx|byte(r>>6)&maskx) - p = append(p, tx|byte(r)&maskx) - return p - default: - p = append(p, t4|byte(r>>18)) - p = append(p, tx|byte(r>>12)&maskx) - p = append(p, tx|byte(r>>6)&maskx) - p = append(p, tx|byte(r)&maskx) - return p - } -} diff --git a/vendor/github.com/json-iterator/go/jsoniter.go b/vendor/github.com/json-iterator/go/jsoniter.go deleted file mode 100644 index c2934f916e..0000000000 --- a/vendor/github.com/json-iterator/go/jsoniter.go +++ /dev/null @@ -1,18 +0,0 @@ -// Package jsoniter implements encoding and decoding of JSON as defined in -// RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. -// Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter -// and variable type declarations (if any). -// jsoniter interfaces gives 100% compatibility with code using standard lib. -// -// "JSON and Go" -// (https://golang.org/doc/articles/json_and_go.html) -// gives a description of how Marshal/Unmarshal operate -// between arbitrary or predefined json objects and bytes, -// and it applies to jsoniter.Marshal/Unmarshal as well. -// -// Besides, jsoniter.Iterator provides a different set of interfaces -// iterating given bytes/string/reader -// and yielding parsed elements one by one. -// This set of interfaces reads input as required and gives -// better performance. -package jsoniter diff --git a/vendor/github.com/json-iterator/go/pool.go b/vendor/github.com/json-iterator/go/pool.go deleted file mode 100644 index e2389b56cf..0000000000 --- a/vendor/github.com/json-iterator/go/pool.go +++ /dev/null @@ -1,42 +0,0 @@ -package jsoniter - -import ( - "io" -) - -// IteratorPool a thread safe pool of iterators with same configuration -type IteratorPool interface { - BorrowIterator(data []byte) *Iterator - ReturnIterator(iter *Iterator) -} - -// StreamPool a thread safe pool of streams with same configuration -type StreamPool interface { - BorrowStream(writer io.Writer) *Stream - ReturnStream(stream *Stream) -} - -func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream { - stream := cfg.streamPool.Get().(*Stream) - stream.Reset(writer) - return stream -} - -func (cfg *frozenConfig) ReturnStream(stream *Stream) { - stream.out = nil - stream.Error = nil - stream.Attachment = nil - cfg.streamPool.Put(stream) -} - -func (cfg *frozenConfig) BorrowIterator(data []byte) *Iterator { - iter := cfg.iteratorPool.Get().(*Iterator) - iter.ResetBytes(data) - return iter -} - -func (cfg *frozenConfig) ReturnIterator(iter *Iterator) { - iter.Error = nil - iter.Attachment = nil - cfg.iteratorPool.Put(iter) -} diff --git a/vendor/github.com/json-iterator/go/reflect.go b/vendor/github.com/json-iterator/go/reflect.go deleted file mode 100644 index 39acb320ac..0000000000 --- a/vendor/github.com/json-iterator/go/reflect.go +++ /dev/null @@ -1,337 +0,0 @@ -package jsoniter - -import ( - "fmt" - "reflect" - "unsafe" - - "github.com/modern-go/reflect2" -) - -// ValDecoder is an internal type registered to cache as needed. -// Don't confuse jsoniter.ValDecoder with json.Decoder. -// For json.Decoder's adapter, refer to jsoniter.AdapterDecoder(todo link). -// -// Reflection on type to create decoders, which is then cached -// Reflection on value is avoided as we can, as the reflect.Value itself will allocate, with following exceptions -// 1. create instance of new value, for example *int will need a int to be allocated -// 2. append to slice, if the existing cap is not enough, allocate will be done using Reflect.New -// 3. assignment to map, both key and value will be reflect.Value -// For a simple struct binding, it will be reflect.Value free and allocation free -type ValDecoder interface { - Decode(ptr unsafe.Pointer, iter *Iterator) -} - -// ValEncoder is an internal type registered to cache as needed. -// Don't confuse jsoniter.ValEncoder with json.Encoder. -// For json.Encoder's adapter, refer to jsoniter.AdapterEncoder(todo godoc link). -type ValEncoder interface { - IsEmpty(ptr unsafe.Pointer) bool - Encode(ptr unsafe.Pointer, stream *Stream) -} - -type checkIsEmpty interface { - IsEmpty(ptr unsafe.Pointer) bool -} - -type ctx struct { - *frozenConfig - prefix string - encoders map[reflect2.Type]ValEncoder - decoders map[reflect2.Type]ValDecoder -} - -func (b *ctx) caseSensitive() bool { - if b.frozenConfig == nil { - // default is case-insensitive - return false - } - return b.frozenConfig.caseSensitive -} - -func (b *ctx) append(prefix string) *ctx { - return &ctx{ - frozenConfig: b.frozenConfig, - prefix: b.prefix + " " + prefix, - encoders: b.encoders, - decoders: b.decoders, - } -} - -// ReadVal copy the underlying JSON into go interface, same as json.Unmarshal -func (iter *Iterator) ReadVal(obj interface{}) { - depth := iter.depth - cacheKey := reflect2.RTypeOf(obj) - decoder := iter.cfg.getDecoderFromCache(cacheKey) - if decoder == nil { - typ := reflect2.TypeOf(obj) - if typ == nil || typ.Kind() != reflect.Ptr { - iter.ReportError("ReadVal", "can only unmarshal into pointer") - return - } - decoder = iter.cfg.DecoderOf(typ) - } - ptr := reflect2.PtrOf(obj) - if ptr == nil { - iter.ReportError("ReadVal", "can not read into nil pointer") - return - } - decoder.Decode(ptr, iter) - if iter.depth != depth { - iter.ReportError("ReadVal", "unexpected mismatched nesting") - return - } -} - -// WriteVal copy the go interface into underlying JSON, same as json.Marshal -func (stream *Stream) WriteVal(val interface{}) { - if nil == val { - stream.WriteNil() - return - } - cacheKey := reflect2.RTypeOf(val) - encoder := stream.cfg.getEncoderFromCache(cacheKey) - if encoder == nil { - typ := reflect2.TypeOf(val) - encoder = stream.cfg.EncoderOf(typ) - } - encoder.Encode(reflect2.PtrOf(val), stream) -} - -func (cfg *frozenConfig) DecoderOf(typ reflect2.Type) ValDecoder { - cacheKey := typ.RType() - decoder := cfg.getDecoderFromCache(cacheKey) - if decoder != nil { - return decoder - } - ctx := &ctx{ - frozenConfig: cfg, - prefix: "", - decoders: map[reflect2.Type]ValDecoder{}, - encoders: map[reflect2.Type]ValEncoder{}, - } - ptrType := typ.(*reflect2.UnsafePtrType) - decoder = decoderOfType(ctx, ptrType.Elem()) - cfg.addDecoderToCache(cacheKey, decoder) - return decoder -} - -func decoderOfType(ctx *ctx, typ reflect2.Type) ValDecoder { - decoder := getTypeDecoderFromExtension(ctx, typ) - if decoder != nil { - return decoder - } - decoder = createDecoderOfType(ctx, typ) - for _, extension := range extensions { - decoder = extension.DecorateDecoder(typ, decoder) - } - decoder = ctx.decoderExtension.DecorateDecoder(typ, decoder) - for _, extension := range ctx.extraExtensions { - decoder = extension.DecorateDecoder(typ, decoder) - } - return decoder -} - -func createDecoderOfType(ctx *ctx, typ reflect2.Type) ValDecoder { - decoder := ctx.decoders[typ] - if decoder != nil { - return decoder - } - placeholder := &placeholderDecoder{} - ctx.decoders[typ] = placeholder - decoder = _createDecoderOfType(ctx, typ) - placeholder.decoder = decoder - return decoder -} - -func _createDecoderOfType(ctx *ctx, typ reflect2.Type) ValDecoder { - decoder := createDecoderOfJsonRawMessage(ctx, typ) - if decoder != nil { - return decoder - } - decoder = createDecoderOfJsonNumber(ctx, typ) - if decoder != nil { - return decoder - } - decoder = createDecoderOfMarshaler(ctx, typ) - if decoder != nil { - return decoder - } - decoder = createDecoderOfAny(ctx, typ) - if decoder != nil { - return decoder - } - decoder = createDecoderOfNative(ctx, typ) - if decoder != nil { - return decoder - } - switch typ.Kind() { - case reflect.Interface: - ifaceType, isIFace := typ.(*reflect2.UnsafeIFaceType) - if isIFace { - return &ifaceDecoder{valType: ifaceType} - } - return &efaceDecoder{} - case reflect.Struct: - return decoderOfStruct(ctx, typ) - case reflect.Array: - return decoderOfArray(ctx, typ) - case reflect.Slice: - return decoderOfSlice(ctx, typ) - case reflect.Map: - return decoderOfMap(ctx, typ) - case reflect.Ptr: - return decoderOfOptional(ctx, typ) - default: - return &lazyErrorDecoder{err: fmt.Errorf("%s%s is unsupported type", ctx.prefix, typ.String())} - } -} - -func (cfg *frozenConfig) EncoderOf(typ reflect2.Type) ValEncoder { - cacheKey := typ.RType() - encoder := cfg.getEncoderFromCache(cacheKey) - if encoder != nil { - return encoder - } - ctx := &ctx{ - frozenConfig: cfg, - prefix: "", - decoders: map[reflect2.Type]ValDecoder{}, - encoders: map[reflect2.Type]ValEncoder{}, - } - encoder = encoderOfType(ctx, typ) - if typ.LikePtr() { - encoder = &onePtrEncoder{encoder} - } - cfg.addEncoderToCache(cacheKey, encoder) - return encoder -} - -type onePtrEncoder struct { - encoder ValEncoder -} - -func (encoder *onePtrEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.encoder.IsEmpty(unsafe.Pointer(&ptr)) -} - -func (encoder *onePtrEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - encoder.encoder.Encode(unsafe.Pointer(&ptr), stream) -} - -func encoderOfType(ctx *ctx, typ reflect2.Type) ValEncoder { - encoder := getTypeEncoderFromExtension(ctx, typ) - if encoder != nil { - return encoder - } - encoder = createEncoderOfType(ctx, typ) - for _, extension := range extensions { - encoder = extension.DecorateEncoder(typ, encoder) - } - encoder = ctx.encoderExtension.DecorateEncoder(typ, encoder) - for _, extension := range ctx.extraExtensions { - encoder = extension.DecorateEncoder(typ, encoder) - } - return encoder -} - -func createEncoderOfType(ctx *ctx, typ reflect2.Type) ValEncoder { - encoder := ctx.encoders[typ] - if encoder != nil { - return encoder - } - placeholder := &placeholderEncoder{} - ctx.encoders[typ] = placeholder - encoder = _createEncoderOfType(ctx, typ) - placeholder.encoder = encoder - return encoder -} -func _createEncoderOfType(ctx *ctx, typ reflect2.Type) ValEncoder { - encoder := createEncoderOfJsonRawMessage(ctx, typ) - if encoder != nil { - return encoder - } - encoder = createEncoderOfJsonNumber(ctx, typ) - if encoder != nil { - return encoder - } - encoder = createEncoderOfMarshaler(ctx, typ) - if encoder != nil { - return encoder - } - encoder = createEncoderOfAny(ctx, typ) - if encoder != nil { - return encoder - } - encoder = createEncoderOfNative(ctx, typ) - if encoder != nil { - return encoder - } - kind := typ.Kind() - switch kind { - case reflect.Interface: - return &dynamicEncoder{typ} - case reflect.Struct: - return encoderOfStruct(ctx, typ) - case reflect.Array: - return encoderOfArray(ctx, typ) - case reflect.Slice: - return encoderOfSlice(ctx, typ) - case reflect.Map: - return encoderOfMap(ctx, typ) - case reflect.Ptr: - return encoderOfOptional(ctx, typ) - default: - return &lazyErrorEncoder{err: fmt.Errorf("%s%s is unsupported type", ctx.prefix, typ.String())} - } -} - -type lazyErrorDecoder struct { - err error -} - -func (decoder *lazyErrorDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if iter.WhatIsNext() != NilValue { - if iter.Error == nil { - iter.Error = decoder.err - } - } else { - iter.Skip() - } -} - -type lazyErrorEncoder struct { - err error -} - -func (encoder *lazyErrorEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - if ptr == nil { - stream.WriteNil() - } else if stream.Error == nil { - stream.Error = encoder.err - } -} - -func (encoder *lazyErrorEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return false -} - -type placeholderDecoder struct { - decoder ValDecoder -} - -func (decoder *placeholderDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - decoder.decoder.Decode(ptr, iter) -} - -type placeholderEncoder struct { - encoder ValEncoder -} - -func (encoder *placeholderEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - encoder.encoder.Encode(ptr, stream) -} - -func (encoder *placeholderEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.encoder.IsEmpty(ptr) -} diff --git a/vendor/github.com/json-iterator/go/reflect_array.go b/vendor/github.com/json-iterator/go/reflect_array.go deleted file mode 100644 index 13a0b7b087..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_array.go +++ /dev/null @@ -1,104 +0,0 @@ -package jsoniter - -import ( - "fmt" - "github.com/modern-go/reflect2" - "io" - "unsafe" -) - -func decoderOfArray(ctx *ctx, typ reflect2.Type) ValDecoder { - arrayType := typ.(*reflect2.UnsafeArrayType) - decoder := decoderOfType(ctx.append("[arrayElem]"), arrayType.Elem()) - return &arrayDecoder{arrayType, decoder} -} - -func encoderOfArray(ctx *ctx, typ reflect2.Type) ValEncoder { - arrayType := typ.(*reflect2.UnsafeArrayType) - if arrayType.Len() == 0 { - return emptyArrayEncoder{} - } - encoder := encoderOfType(ctx.append("[arrayElem]"), arrayType.Elem()) - return &arrayEncoder{arrayType, encoder} -} - -type emptyArrayEncoder struct{} - -func (encoder emptyArrayEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteEmptyArray() -} - -func (encoder emptyArrayEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return true -} - -type arrayEncoder struct { - arrayType *reflect2.UnsafeArrayType - elemEncoder ValEncoder -} - -func (encoder *arrayEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteArrayStart() - elemPtr := unsafe.Pointer(ptr) - encoder.elemEncoder.Encode(elemPtr, stream) - for i := 1; i < encoder.arrayType.Len(); i++ { - stream.WriteMore() - elemPtr = encoder.arrayType.UnsafeGetIndex(ptr, i) - encoder.elemEncoder.Encode(elemPtr, stream) - } - stream.WriteArrayEnd() - if stream.Error != nil && stream.Error != io.EOF { - stream.Error = fmt.Errorf("%v: %s", encoder.arrayType, stream.Error.Error()) - } -} - -func (encoder *arrayEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return false -} - -type arrayDecoder struct { - arrayType *reflect2.UnsafeArrayType - elemDecoder ValDecoder -} - -func (decoder *arrayDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - decoder.doDecode(ptr, iter) - if iter.Error != nil && iter.Error != io.EOF { - iter.Error = fmt.Errorf("%v: %s", decoder.arrayType, iter.Error.Error()) - } -} - -func (decoder *arrayDecoder) doDecode(ptr unsafe.Pointer, iter *Iterator) { - c := iter.nextToken() - arrayType := decoder.arrayType - if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - return - } - if c != '[' { - iter.ReportError("decode array", "expect [ or n, but found "+string([]byte{c})) - return - } - c = iter.nextToken() - if c == ']' { - return - } - iter.unreadByte() - elemPtr := arrayType.UnsafeGetIndex(ptr, 0) - decoder.elemDecoder.Decode(elemPtr, iter) - length := 1 - for c = iter.nextToken(); c == ','; c = iter.nextToken() { - if length >= arrayType.Len() { - iter.Skip() - continue - } - idx := length - length += 1 - elemPtr = arrayType.UnsafeGetIndex(ptr, idx) - decoder.elemDecoder.Decode(elemPtr, iter) - } - if c != ']' { - iter.ReportError("decode array", "expect ], but found "+string([]byte{c})) - return - } -} diff --git a/vendor/github.com/json-iterator/go/reflect_dynamic.go b/vendor/github.com/json-iterator/go/reflect_dynamic.go deleted file mode 100644 index 8b6bc8b433..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_dynamic.go +++ /dev/null @@ -1,70 +0,0 @@ -package jsoniter - -import ( - "github.com/modern-go/reflect2" - "reflect" - "unsafe" -) - -type dynamicEncoder struct { - valType reflect2.Type -} - -func (encoder *dynamicEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - obj := encoder.valType.UnsafeIndirect(ptr) - stream.WriteVal(obj) -} - -func (encoder *dynamicEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.valType.UnsafeIndirect(ptr) == nil -} - -type efaceDecoder struct { -} - -func (decoder *efaceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - pObj := (*interface{})(ptr) - obj := *pObj - if obj == nil { - *pObj = iter.Read() - return - } - typ := reflect2.TypeOf(obj) - if typ.Kind() != reflect.Ptr { - *pObj = iter.Read() - return - } - ptrType := typ.(*reflect2.UnsafePtrType) - ptrElemType := ptrType.Elem() - if iter.WhatIsNext() == NilValue { - if ptrElemType.Kind() != reflect.Ptr { - iter.skipFourBytes('n', 'u', 'l', 'l') - *pObj = nil - return - } - } - if reflect2.IsNil(obj) { - obj := ptrElemType.New() - iter.ReadVal(obj) - *pObj = obj - return - } - iter.ReadVal(obj) -} - -type ifaceDecoder struct { - valType *reflect2.UnsafeIFaceType -} - -func (decoder *ifaceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if iter.ReadNil() { - decoder.valType.UnsafeSet(ptr, decoder.valType.UnsafeNew()) - return - } - obj := decoder.valType.UnsafeIndirect(ptr) - if reflect2.IsNil(obj) { - iter.ReportError("decode non empty interface", "can not unmarshal into nil") - return - } - iter.ReadVal(obj) -} diff --git a/vendor/github.com/json-iterator/go/reflect_extension.go b/vendor/github.com/json-iterator/go/reflect_extension.go deleted file mode 100644 index 74a97bfe5a..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_extension.go +++ /dev/null @@ -1,483 +0,0 @@ -package jsoniter - -import ( - "fmt" - "github.com/modern-go/reflect2" - "reflect" - "sort" - "strings" - "unicode" - "unsafe" -) - -var typeDecoders = map[string]ValDecoder{} -var fieldDecoders = map[string]ValDecoder{} -var typeEncoders = map[string]ValEncoder{} -var fieldEncoders = map[string]ValEncoder{} -var extensions = []Extension{} - -// StructDescriptor describe how should we encode/decode the struct -type StructDescriptor struct { - Type reflect2.Type - Fields []*Binding -} - -// GetField get one field from the descriptor by its name. -// Can not use map here to keep field orders. -func (structDescriptor *StructDescriptor) GetField(fieldName string) *Binding { - for _, binding := range structDescriptor.Fields { - if binding.Field.Name() == fieldName { - return binding - } - } - return nil -} - -// Binding describe how should we encode/decode the struct field -type Binding struct { - levels []int - Field reflect2.StructField - FromNames []string - ToNames []string - Encoder ValEncoder - Decoder ValDecoder -} - -// Extension the one for all SPI. Customize encoding/decoding by specifying alternate encoder/decoder. -// Can also rename fields by UpdateStructDescriptor. -type Extension interface { - UpdateStructDescriptor(structDescriptor *StructDescriptor) - CreateMapKeyDecoder(typ reflect2.Type) ValDecoder - CreateMapKeyEncoder(typ reflect2.Type) ValEncoder - CreateDecoder(typ reflect2.Type) ValDecoder - CreateEncoder(typ reflect2.Type) ValEncoder - DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder - DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder -} - -// DummyExtension embed this type get dummy implementation for all methods of Extension -type DummyExtension struct { -} - -// UpdateStructDescriptor No-op -func (extension *DummyExtension) UpdateStructDescriptor(structDescriptor *StructDescriptor) { -} - -// CreateMapKeyDecoder No-op -func (extension *DummyExtension) CreateMapKeyDecoder(typ reflect2.Type) ValDecoder { - return nil -} - -// CreateMapKeyEncoder No-op -func (extension *DummyExtension) CreateMapKeyEncoder(typ reflect2.Type) ValEncoder { - return nil -} - -// CreateDecoder No-op -func (extension *DummyExtension) CreateDecoder(typ reflect2.Type) ValDecoder { - return nil -} - -// CreateEncoder No-op -func (extension *DummyExtension) CreateEncoder(typ reflect2.Type) ValEncoder { - return nil -} - -// DecorateDecoder No-op -func (extension *DummyExtension) DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder { - return decoder -} - -// DecorateEncoder No-op -func (extension *DummyExtension) DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder { - return encoder -} - -type EncoderExtension map[reflect2.Type]ValEncoder - -// UpdateStructDescriptor No-op -func (extension EncoderExtension) UpdateStructDescriptor(structDescriptor *StructDescriptor) { -} - -// CreateDecoder No-op -func (extension EncoderExtension) CreateDecoder(typ reflect2.Type) ValDecoder { - return nil -} - -// CreateEncoder get encoder from map -func (extension EncoderExtension) CreateEncoder(typ reflect2.Type) ValEncoder { - return extension[typ] -} - -// CreateMapKeyDecoder No-op -func (extension EncoderExtension) CreateMapKeyDecoder(typ reflect2.Type) ValDecoder { - return nil -} - -// CreateMapKeyEncoder No-op -func (extension EncoderExtension) CreateMapKeyEncoder(typ reflect2.Type) ValEncoder { - return nil -} - -// DecorateDecoder No-op -func (extension EncoderExtension) DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder { - return decoder -} - -// DecorateEncoder No-op -func (extension EncoderExtension) DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder { - return encoder -} - -type DecoderExtension map[reflect2.Type]ValDecoder - -// UpdateStructDescriptor No-op -func (extension DecoderExtension) UpdateStructDescriptor(structDescriptor *StructDescriptor) { -} - -// CreateMapKeyDecoder No-op -func (extension DecoderExtension) CreateMapKeyDecoder(typ reflect2.Type) ValDecoder { - return nil -} - -// CreateMapKeyEncoder No-op -func (extension DecoderExtension) CreateMapKeyEncoder(typ reflect2.Type) ValEncoder { - return nil -} - -// CreateDecoder get decoder from map -func (extension DecoderExtension) CreateDecoder(typ reflect2.Type) ValDecoder { - return extension[typ] -} - -// CreateEncoder No-op -func (extension DecoderExtension) CreateEncoder(typ reflect2.Type) ValEncoder { - return nil -} - -// DecorateDecoder No-op -func (extension DecoderExtension) DecorateDecoder(typ reflect2.Type, decoder ValDecoder) ValDecoder { - return decoder -} - -// DecorateEncoder No-op -func (extension DecoderExtension) DecorateEncoder(typ reflect2.Type, encoder ValEncoder) ValEncoder { - return encoder -} - -type funcDecoder struct { - fun DecoderFunc -} - -func (decoder *funcDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - decoder.fun(ptr, iter) -} - -type funcEncoder struct { - fun EncoderFunc - isEmptyFunc func(ptr unsafe.Pointer) bool -} - -func (encoder *funcEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - encoder.fun(ptr, stream) -} - -func (encoder *funcEncoder) IsEmpty(ptr unsafe.Pointer) bool { - if encoder.isEmptyFunc == nil { - return false - } - return encoder.isEmptyFunc(ptr) -} - -// DecoderFunc the function form of TypeDecoder -type DecoderFunc func(ptr unsafe.Pointer, iter *Iterator) - -// EncoderFunc the function form of TypeEncoder -type EncoderFunc func(ptr unsafe.Pointer, stream *Stream) - -// RegisterTypeDecoderFunc register TypeDecoder for a type with function -func RegisterTypeDecoderFunc(typ string, fun DecoderFunc) { - typeDecoders[typ] = &funcDecoder{fun} -} - -// RegisterTypeDecoder register TypeDecoder for a typ -func RegisterTypeDecoder(typ string, decoder ValDecoder) { - typeDecoders[typ] = decoder -} - -// RegisterFieldDecoderFunc register TypeDecoder for a struct field with function -func RegisterFieldDecoderFunc(typ string, field string, fun DecoderFunc) { - RegisterFieldDecoder(typ, field, &funcDecoder{fun}) -} - -// RegisterFieldDecoder register TypeDecoder for a struct field -func RegisterFieldDecoder(typ string, field string, decoder ValDecoder) { - fieldDecoders[fmt.Sprintf("%s/%s", typ, field)] = decoder -} - -// RegisterTypeEncoderFunc register TypeEncoder for a type with encode/isEmpty function -func RegisterTypeEncoderFunc(typ string, fun EncoderFunc, isEmptyFunc func(unsafe.Pointer) bool) { - typeEncoders[typ] = &funcEncoder{fun, isEmptyFunc} -} - -// RegisterTypeEncoder register TypeEncoder for a type -func RegisterTypeEncoder(typ string, encoder ValEncoder) { - typeEncoders[typ] = encoder -} - -// RegisterFieldEncoderFunc register TypeEncoder for a struct field with encode/isEmpty function -func RegisterFieldEncoderFunc(typ string, field string, fun EncoderFunc, isEmptyFunc func(unsafe.Pointer) bool) { - RegisterFieldEncoder(typ, field, &funcEncoder{fun, isEmptyFunc}) -} - -// RegisterFieldEncoder register TypeEncoder for a struct field -func RegisterFieldEncoder(typ string, field string, encoder ValEncoder) { - fieldEncoders[fmt.Sprintf("%s/%s", typ, field)] = encoder -} - -// RegisterExtension register extension -func RegisterExtension(extension Extension) { - extensions = append(extensions, extension) -} - -func getTypeDecoderFromExtension(ctx *ctx, typ reflect2.Type) ValDecoder { - decoder := _getTypeDecoderFromExtension(ctx, typ) - if decoder != nil { - for _, extension := range extensions { - decoder = extension.DecorateDecoder(typ, decoder) - } - decoder = ctx.decoderExtension.DecorateDecoder(typ, decoder) - for _, extension := range ctx.extraExtensions { - decoder = extension.DecorateDecoder(typ, decoder) - } - } - return decoder -} -func _getTypeDecoderFromExtension(ctx *ctx, typ reflect2.Type) ValDecoder { - for _, extension := range extensions { - decoder := extension.CreateDecoder(typ) - if decoder != nil { - return decoder - } - } - decoder := ctx.decoderExtension.CreateDecoder(typ) - if decoder != nil { - return decoder - } - for _, extension := range ctx.extraExtensions { - decoder := extension.CreateDecoder(typ) - if decoder != nil { - return decoder - } - } - typeName := typ.String() - decoder = typeDecoders[typeName] - if decoder != nil { - return decoder - } - if typ.Kind() == reflect.Ptr { - ptrType := typ.(*reflect2.UnsafePtrType) - decoder := typeDecoders[ptrType.Elem().String()] - if decoder != nil { - return &OptionalDecoder{ptrType.Elem(), decoder} - } - } - return nil -} - -func getTypeEncoderFromExtension(ctx *ctx, typ reflect2.Type) ValEncoder { - encoder := _getTypeEncoderFromExtension(ctx, typ) - if encoder != nil { - for _, extension := range extensions { - encoder = extension.DecorateEncoder(typ, encoder) - } - encoder = ctx.encoderExtension.DecorateEncoder(typ, encoder) - for _, extension := range ctx.extraExtensions { - encoder = extension.DecorateEncoder(typ, encoder) - } - } - return encoder -} - -func _getTypeEncoderFromExtension(ctx *ctx, typ reflect2.Type) ValEncoder { - for _, extension := range extensions { - encoder := extension.CreateEncoder(typ) - if encoder != nil { - return encoder - } - } - encoder := ctx.encoderExtension.CreateEncoder(typ) - if encoder != nil { - return encoder - } - for _, extension := range ctx.extraExtensions { - encoder := extension.CreateEncoder(typ) - if encoder != nil { - return encoder - } - } - typeName := typ.String() - encoder = typeEncoders[typeName] - if encoder != nil { - return encoder - } - if typ.Kind() == reflect.Ptr { - typePtr := typ.(*reflect2.UnsafePtrType) - encoder := typeEncoders[typePtr.Elem().String()] - if encoder != nil { - return &OptionalEncoder{encoder} - } - } - return nil -} - -func describeStruct(ctx *ctx, typ reflect2.Type) *StructDescriptor { - structType := typ.(*reflect2.UnsafeStructType) - embeddedBindings := []*Binding{} - bindings := []*Binding{} - for i := 0; i < structType.NumField(); i++ { - field := structType.Field(i) - tag, hastag := field.Tag().Lookup(ctx.getTagKey()) - if ctx.onlyTaggedField && !hastag && !field.Anonymous() { - continue - } - if tag == "-" || field.Name() == "_" { - continue - } - tagParts := strings.Split(tag, ",") - if field.Anonymous() && (tag == "" || tagParts[0] == "") { - if field.Type().Kind() == reflect.Struct { - structDescriptor := describeStruct(ctx, field.Type()) - for _, binding := range structDescriptor.Fields { - binding.levels = append([]int{i}, binding.levels...) - omitempty := binding.Encoder.(*structFieldEncoder).omitempty - binding.Encoder = &structFieldEncoder{field, binding.Encoder, omitempty} - binding.Decoder = &structFieldDecoder{field, binding.Decoder} - embeddedBindings = append(embeddedBindings, binding) - } - continue - } else if field.Type().Kind() == reflect.Ptr { - ptrType := field.Type().(*reflect2.UnsafePtrType) - if ptrType.Elem().Kind() == reflect.Struct { - structDescriptor := describeStruct(ctx, ptrType.Elem()) - for _, binding := range structDescriptor.Fields { - binding.levels = append([]int{i}, binding.levels...) - omitempty := binding.Encoder.(*structFieldEncoder).omitempty - binding.Encoder = &dereferenceEncoder{binding.Encoder} - binding.Encoder = &structFieldEncoder{field, binding.Encoder, omitempty} - binding.Decoder = &dereferenceDecoder{ptrType.Elem(), binding.Decoder} - binding.Decoder = &structFieldDecoder{field, binding.Decoder} - embeddedBindings = append(embeddedBindings, binding) - } - continue - } - } - } - fieldNames := calcFieldNames(field.Name(), tagParts[0], tag) - fieldCacheKey := fmt.Sprintf("%s/%s", typ.String(), field.Name()) - decoder := fieldDecoders[fieldCacheKey] - if decoder == nil { - decoder = decoderOfType(ctx.append(field.Name()), field.Type()) - } - encoder := fieldEncoders[fieldCacheKey] - if encoder == nil { - encoder = encoderOfType(ctx.append(field.Name()), field.Type()) - } - binding := &Binding{ - Field: field, - FromNames: fieldNames, - ToNames: fieldNames, - Decoder: decoder, - Encoder: encoder, - } - binding.levels = []int{i} - bindings = append(bindings, binding) - } - return createStructDescriptor(ctx, typ, bindings, embeddedBindings) -} -func createStructDescriptor(ctx *ctx, typ reflect2.Type, bindings []*Binding, embeddedBindings []*Binding) *StructDescriptor { - structDescriptor := &StructDescriptor{ - Type: typ, - Fields: bindings, - } - for _, extension := range extensions { - extension.UpdateStructDescriptor(structDescriptor) - } - ctx.encoderExtension.UpdateStructDescriptor(structDescriptor) - ctx.decoderExtension.UpdateStructDescriptor(structDescriptor) - for _, extension := range ctx.extraExtensions { - extension.UpdateStructDescriptor(structDescriptor) - } - processTags(structDescriptor, ctx.frozenConfig) - // merge normal & embedded bindings & sort with original order - allBindings := sortableBindings(append(embeddedBindings, structDescriptor.Fields...)) - sort.Sort(allBindings) - structDescriptor.Fields = allBindings - return structDescriptor -} - -type sortableBindings []*Binding - -func (bindings sortableBindings) Len() int { - return len(bindings) -} - -func (bindings sortableBindings) Less(i, j int) bool { - left := bindings[i].levels - right := bindings[j].levels - k := 0 - for { - if left[k] < right[k] { - return true - } else if left[k] > right[k] { - return false - } - k++ - } -} - -func (bindings sortableBindings) Swap(i, j int) { - bindings[i], bindings[j] = bindings[j], bindings[i] -} - -func processTags(structDescriptor *StructDescriptor, cfg *frozenConfig) { - for _, binding := range structDescriptor.Fields { - shouldOmitEmpty := false - tagParts := strings.Split(binding.Field.Tag().Get(cfg.getTagKey()), ",") - for _, tagPart := range tagParts[1:] { - if tagPart == "omitempty" { - shouldOmitEmpty = true - } else if tagPart == "string" { - if binding.Field.Type().Kind() == reflect.String { - binding.Decoder = &stringModeStringDecoder{binding.Decoder, cfg} - binding.Encoder = &stringModeStringEncoder{binding.Encoder, cfg} - } else { - binding.Decoder = &stringModeNumberDecoder{binding.Decoder} - binding.Encoder = &stringModeNumberEncoder{binding.Encoder} - } - } - } - binding.Decoder = &structFieldDecoder{binding.Field, binding.Decoder} - binding.Encoder = &structFieldEncoder{binding.Field, binding.Encoder, shouldOmitEmpty} - } -} - -func calcFieldNames(originalFieldName string, tagProvidedFieldName string, wholeTag string) []string { - // ignore? - if wholeTag == "-" { - return []string{} - } - // rename? - var fieldNames []string - if tagProvidedFieldName == "" { - fieldNames = []string{originalFieldName} - } else { - fieldNames = []string{tagProvidedFieldName} - } - // private? - isNotExported := unicode.IsLower(rune(originalFieldName[0])) || originalFieldName[0] == '_' - if isNotExported { - fieldNames = []string{} - } - return fieldNames -} diff --git a/vendor/github.com/json-iterator/go/reflect_json_number.go b/vendor/github.com/json-iterator/go/reflect_json_number.go deleted file mode 100644 index 98d45c1ec2..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_json_number.go +++ /dev/null @@ -1,112 +0,0 @@ -package jsoniter - -import ( - "encoding/json" - "github.com/modern-go/reflect2" - "strconv" - "unsafe" -) - -type Number string - -// String returns the literal text of the number. -func (n Number) String() string { return string(n) } - -// Float64 returns the number as a float64. -func (n Number) Float64() (float64, error) { - return strconv.ParseFloat(string(n), 64) -} - -// Int64 returns the number as an int64. -func (n Number) Int64() (int64, error) { - return strconv.ParseInt(string(n), 10, 64) -} - -func CastJsonNumber(val interface{}) (string, bool) { - switch typedVal := val.(type) { - case json.Number: - return string(typedVal), true - case Number: - return string(typedVal), true - } - return "", false -} - -var jsonNumberType = reflect2.TypeOfPtr((*json.Number)(nil)).Elem() -var jsoniterNumberType = reflect2.TypeOfPtr((*Number)(nil)).Elem() - -func createDecoderOfJsonNumber(ctx *ctx, typ reflect2.Type) ValDecoder { - if typ.AssignableTo(jsonNumberType) { - return &jsonNumberCodec{} - } - if typ.AssignableTo(jsoniterNumberType) { - return &jsoniterNumberCodec{} - } - return nil -} - -func createEncoderOfJsonNumber(ctx *ctx, typ reflect2.Type) ValEncoder { - if typ.AssignableTo(jsonNumberType) { - return &jsonNumberCodec{} - } - if typ.AssignableTo(jsoniterNumberType) { - return &jsoniterNumberCodec{} - } - return nil -} - -type jsonNumberCodec struct { -} - -func (codec *jsonNumberCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - switch iter.WhatIsNext() { - case StringValue: - *((*json.Number)(ptr)) = json.Number(iter.ReadString()) - case NilValue: - iter.skipFourBytes('n', 'u', 'l', 'l') - *((*json.Number)(ptr)) = "" - default: - *((*json.Number)(ptr)) = json.Number([]byte(iter.readNumberAsString())) - } -} - -func (codec *jsonNumberCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - number := *((*json.Number)(ptr)) - if len(number) == 0 { - stream.writeByte('0') - } else { - stream.WriteRaw(string(number)) - } -} - -func (codec *jsonNumberCodec) IsEmpty(ptr unsafe.Pointer) bool { - return len(*((*json.Number)(ptr))) == 0 -} - -type jsoniterNumberCodec struct { -} - -func (codec *jsoniterNumberCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - switch iter.WhatIsNext() { - case StringValue: - *((*Number)(ptr)) = Number(iter.ReadString()) - case NilValue: - iter.skipFourBytes('n', 'u', 'l', 'l') - *((*Number)(ptr)) = "" - default: - *((*Number)(ptr)) = Number([]byte(iter.readNumberAsString())) - } -} - -func (codec *jsoniterNumberCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - number := *((*Number)(ptr)) - if len(number) == 0 { - stream.writeByte('0') - } else { - stream.WriteRaw(string(number)) - } -} - -func (codec *jsoniterNumberCodec) IsEmpty(ptr unsafe.Pointer) bool { - return len(*((*Number)(ptr))) == 0 -} diff --git a/vendor/github.com/json-iterator/go/reflect_json_raw_message.go b/vendor/github.com/json-iterator/go/reflect_json_raw_message.go deleted file mode 100644 index eba434f2f1..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_json_raw_message.go +++ /dev/null @@ -1,76 +0,0 @@ -package jsoniter - -import ( - "encoding/json" - "github.com/modern-go/reflect2" - "unsafe" -) - -var jsonRawMessageType = reflect2.TypeOfPtr((*json.RawMessage)(nil)).Elem() -var jsoniterRawMessageType = reflect2.TypeOfPtr((*RawMessage)(nil)).Elem() - -func createEncoderOfJsonRawMessage(ctx *ctx, typ reflect2.Type) ValEncoder { - if typ == jsonRawMessageType { - return &jsonRawMessageCodec{} - } - if typ == jsoniterRawMessageType { - return &jsoniterRawMessageCodec{} - } - return nil -} - -func createDecoderOfJsonRawMessage(ctx *ctx, typ reflect2.Type) ValDecoder { - if typ == jsonRawMessageType { - return &jsonRawMessageCodec{} - } - if typ == jsoniterRawMessageType { - return &jsoniterRawMessageCodec{} - } - return nil -} - -type jsonRawMessageCodec struct { -} - -func (codec *jsonRawMessageCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if iter.ReadNil() { - *((*json.RawMessage)(ptr)) = nil - } else { - *((*json.RawMessage)(ptr)) = iter.SkipAndReturnBytes() - } -} - -func (codec *jsonRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - if *((*json.RawMessage)(ptr)) == nil { - stream.WriteNil() - } else { - stream.WriteRaw(string(*((*json.RawMessage)(ptr)))) - } -} - -func (codec *jsonRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool { - return len(*((*json.RawMessage)(ptr))) == 0 -} - -type jsoniterRawMessageCodec struct { -} - -func (codec *jsoniterRawMessageCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if iter.ReadNil() { - *((*RawMessage)(ptr)) = nil - } else { - *((*RawMessage)(ptr)) = iter.SkipAndReturnBytes() - } -} - -func (codec *jsoniterRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - if *((*RawMessage)(ptr)) == nil { - stream.WriteNil() - } else { - stream.WriteRaw(string(*((*RawMessage)(ptr)))) - } -} - -func (codec *jsoniterRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool { - return len(*((*RawMessage)(ptr))) == 0 -} diff --git a/vendor/github.com/json-iterator/go/reflect_map.go b/vendor/github.com/json-iterator/go/reflect_map.go deleted file mode 100644 index 5829671301..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_map.go +++ /dev/null @@ -1,346 +0,0 @@ -package jsoniter - -import ( - "fmt" - "github.com/modern-go/reflect2" - "io" - "reflect" - "sort" - "unsafe" -) - -func decoderOfMap(ctx *ctx, typ reflect2.Type) ValDecoder { - mapType := typ.(*reflect2.UnsafeMapType) - keyDecoder := decoderOfMapKey(ctx.append("[mapKey]"), mapType.Key()) - elemDecoder := decoderOfType(ctx.append("[mapElem]"), mapType.Elem()) - return &mapDecoder{ - mapType: mapType, - keyType: mapType.Key(), - elemType: mapType.Elem(), - keyDecoder: keyDecoder, - elemDecoder: elemDecoder, - } -} - -func encoderOfMap(ctx *ctx, typ reflect2.Type) ValEncoder { - mapType := typ.(*reflect2.UnsafeMapType) - if ctx.sortMapKeys { - return &sortKeysMapEncoder{ - mapType: mapType, - keyEncoder: encoderOfMapKey(ctx.append("[mapKey]"), mapType.Key()), - elemEncoder: encoderOfType(ctx.append("[mapElem]"), mapType.Elem()), - } - } - return &mapEncoder{ - mapType: mapType, - keyEncoder: encoderOfMapKey(ctx.append("[mapKey]"), mapType.Key()), - elemEncoder: encoderOfType(ctx.append("[mapElem]"), mapType.Elem()), - } -} - -func decoderOfMapKey(ctx *ctx, typ reflect2.Type) ValDecoder { - decoder := ctx.decoderExtension.CreateMapKeyDecoder(typ) - if decoder != nil { - return decoder - } - for _, extension := range ctx.extraExtensions { - decoder := extension.CreateMapKeyDecoder(typ) - if decoder != nil { - return decoder - } - } - - ptrType := reflect2.PtrTo(typ) - if ptrType.Implements(unmarshalerType) { - return &referenceDecoder{ - &unmarshalerDecoder{ - valType: ptrType, - }, - } - } - if typ.Implements(unmarshalerType) { - return &unmarshalerDecoder{ - valType: typ, - } - } - if ptrType.Implements(textUnmarshalerType) { - return &referenceDecoder{ - &textUnmarshalerDecoder{ - valType: ptrType, - }, - } - } - if typ.Implements(textUnmarshalerType) { - return &textUnmarshalerDecoder{ - valType: typ, - } - } - - switch typ.Kind() { - case reflect.String: - return decoderOfType(ctx, reflect2.DefaultTypeOfKind(reflect.String)) - case reflect.Bool, - reflect.Uint8, reflect.Int8, - reflect.Uint16, reflect.Int16, - reflect.Uint32, reflect.Int32, - reflect.Uint64, reflect.Int64, - reflect.Uint, reflect.Int, - reflect.Float32, reflect.Float64, - reflect.Uintptr: - typ = reflect2.DefaultTypeOfKind(typ.Kind()) - return &numericMapKeyDecoder{decoderOfType(ctx, typ)} - default: - return &lazyErrorDecoder{err: fmt.Errorf("unsupported map key type: %v", typ)} - } -} - -func encoderOfMapKey(ctx *ctx, typ reflect2.Type) ValEncoder { - encoder := ctx.encoderExtension.CreateMapKeyEncoder(typ) - if encoder != nil { - return encoder - } - for _, extension := range ctx.extraExtensions { - encoder := extension.CreateMapKeyEncoder(typ) - if encoder != nil { - return encoder - } - } - - if typ == textMarshalerType { - return &directTextMarshalerEncoder{ - stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), - } - } - if typ.Implements(textMarshalerType) { - return &textMarshalerEncoder{ - valType: typ, - stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), - } - } - - switch typ.Kind() { - case reflect.String: - return encoderOfType(ctx, reflect2.DefaultTypeOfKind(reflect.String)) - case reflect.Bool, - reflect.Uint8, reflect.Int8, - reflect.Uint16, reflect.Int16, - reflect.Uint32, reflect.Int32, - reflect.Uint64, reflect.Int64, - reflect.Uint, reflect.Int, - reflect.Float32, reflect.Float64, - reflect.Uintptr: - typ = reflect2.DefaultTypeOfKind(typ.Kind()) - return &numericMapKeyEncoder{encoderOfType(ctx, typ)} - default: - if typ.Kind() == reflect.Interface { - return &dynamicMapKeyEncoder{ctx, typ} - } - return &lazyErrorEncoder{err: fmt.Errorf("unsupported map key type: %v", typ)} - } -} - -type mapDecoder struct { - mapType *reflect2.UnsafeMapType - keyType reflect2.Type - elemType reflect2.Type - keyDecoder ValDecoder - elemDecoder ValDecoder -} - -func (decoder *mapDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - mapType := decoder.mapType - c := iter.nextToken() - if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - *(*unsafe.Pointer)(ptr) = nil - mapType.UnsafeSet(ptr, mapType.UnsafeNew()) - return - } - if mapType.UnsafeIsNil(ptr) { - mapType.UnsafeSet(ptr, mapType.UnsafeMakeMap(0)) - } - if c != '{' { - iter.ReportError("ReadMapCB", `expect { or n, but found `+string([]byte{c})) - return - } - c = iter.nextToken() - if c == '}' { - return - } - iter.unreadByte() - key := decoder.keyType.UnsafeNew() - decoder.keyDecoder.Decode(key, iter) - c = iter.nextToken() - if c != ':' { - iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) - return - } - elem := decoder.elemType.UnsafeNew() - decoder.elemDecoder.Decode(elem, iter) - decoder.mapType.UnsafeSetIndex(ptr, key, elem) - for c = iter.nextToken(); c == ','; c = iter.nextToken() { - key := decoder.keyType.UnsafeNew() - decoder.keyDecoder.Decode(key, iter) - c = iter.nextToken() - if c != ':' { - iter.ReportError("ReadMapCB", "expect : after object field, but found "+string([]byte{c})) - return - } - elem := decoder.elemType.UnsafeNew() - decoder.elemDecoder.Decode(elem, iter) - decoder.mapType.UnsafeSetIndex(ptr, key, elem) - } - if c != '}' { - iter.ReportError("ReadMapCB", `expect }, but found `+string([]byte{c})) - } -} - -type numericMapKeyDecoder struct { - decoder ValDecoder -} - -func (decoder *numericMapKeyDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - c := iter.nextToken() - if c != '"' { - iter.ReportError("ReadMapCB", `expect ", but found `+string([]byte{c})) - return - } - decoder.decoder.Decode(ptr, iter) - c = iter.nextToken() - if c != '"' { - iter.ReportError("ReadMapCB", `expect ", but found `+string([]byte{c})) - return - } -} - -type numericMapKeyEncoder struct { - encoder ValEncoder -} - -func (encoder *numericMapKeyEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.writeByte('"') - encoder.encoder.Encode(ptr, stream) - stream.writeByte('"') -} - -func (encoder *numericMapKeyEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return false -} - -type dynamicMapKeyEncoder struct { - ctx *ctx - valType reflect2.Type -} - -func (encoder *dynamicMapKeyEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - obj := encoder.valType.UnsafeIndirect(ptr) - encoderOfMapKey(encoder.ctx, reflect2.TypeOf(obj)).Encode(reflect2.PtrOf(obj), stream) -} - -func (encoder *dynamicMapKeyEncoder) IsEmpty(ptr unsafe.Pointer) bool { - obj := encoder.valType.UnsafeIndirect(ptr) - return encoderOfMapKey(encoder.ctx, reflect2.TypeOf(obj)).IsEmpty(reflect2.PtrOf(obj)) -} - -type mapEncoder struct { - mapType *reflect2.UnsafeMapType - keyEncoder ValEncoder - elemEncoder ValEncoder -} - -func (encoder *mapEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - if *(*unsafe.Pointer)(ptr) == nil { - stream.WriteNil() - return - } - stream.WriteObjectStart() - iter := encoder.mapType.UnsafeIterate(ptr) - for i := 0; iter.HasNext(); i++ { - if i != 0 { - stream.WriteMore() - } - key, elem := iter.UnsafeNext() - encoder.keyEncoder.Encode(key, stream) - if stream.indention > 0 { - stream.writeTwoBytes(byte(':'), byte(' ')) - } else { - stream.writeByte(':') - } - encoder.elemEncoder.Encode(elem, stream) - } - stream.WriteObjectEnd() -} - -func (encoder *mapEncoder) IsEmpty(ptr unsafe.Pointer) bool { - iter := encoder.mapType.UnsafeIterate(ptr) - return !iter.HasNext() -} - -type sortKeysMapEncoder struct { - mapType *reflect2.UnsafeMapType - keyEncoder ValEncoder - elemEncoder ValEncoder -} - -func (encoder *sortKeysMapEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - if *(*unsafe.Pointer)(ptr) == nil { - stream.WriteNil() - return - } - stream.WriteObjectStart() - mapIter := encoder.mapType.UnsafeIterate(ptr) - subStream := stream.cfg.BorrowStream(nil) - subStream.Attachment = stream.Attachment - subIter := stream.cfg.BorrowIterator(nil) - keyValues := encodedKeyValues{} - for mapIter.HasNext() { - key, elem := mapIter.UnsafeNext() - subStreamIndex := subStream.Buffered() - encoder.keyEncoder.Encode(key, subStream) - if subStream.Error != nil && subStream.Error != io.EOF && stream.Error == nil { - stream.Error = subStream.Error - } - encodedKey := subStream.Buffer()[subStreamIndex:] - subIter.ResetBytes(encodedKey) - decodedKey := subIter.ReadString() - if stream.indention > 0 { - subStream.writeTwoBytes(byte(':'), byte(' ')) - } else { - subStream.writeByte(':') - } - encoder.elemEncoder.Encode(elem, subStream) - keyValues = append(keyValues, encodedKV{ - key: decodedKey, - keyValue: subStream.Buffer()[subStreamIndex:], - }) - } - sort.Sort(keyValues) - for i, keyValue := range keyValues { - if i != 0 { - stream.WriteMore() - } - stream.Write(keyValue.keyValue) - } - if subStream.Error != nil && stream.Error == nil { - stream.Error = subStream.Error - } - stream.WriteObjectEnd() - stream.cfg.ReturnStream(subStream) - stream.cfg.ReturnIterator(subIter) -} - -func (encoder *sortKeysMapEncoder) IsEmpty(ptr unsafe.Pointer) bool { - iter := encoder.mapType.UnsafeIterate(ptr) - return !iter.HasNext() -} - -type encodedKeyValues []encodedKV - -type encodedKV struct { - key string - keyValue []byte -} - -func (sv encodedKeyValues) Len() int { return len(sv) } -func (sv encodedKeyValues) Swap(i, j int) { sv[i], sv[j] = sv[j], sv[i] } -func (sv encodedKeyValues) Less(i, j int) bool { return sv[i].key < sv[j].key } diff --git a/vendor/github.com/json-iterator/go/reflect_marshaler.go b/vendor/github.com/json-iterator/go/reflect_marshaler.go deleted file mode 100644 index 3e21f37567..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_marshaler.go +++ /dev/null @@ -1,225 +0,0 @@ -package jsoniter - -import ( - "encoding" - "encoding/json" - "unsafe" - - "github.com/modern-go/reflect2" -) - -var marshalerType = reflect2.TypeOfPtr((*json.Marshaler)(nil)).Elem() -var unmarshalerType = reflect2.TypeOfPtr((*json.Unmarshaler)(nil)).Elem() -var textMarshalerType = reflect2.TypeOfPtr((*encoding.TextMarshaler)(nil)).Elem() -var textUnmarshalerType = reflect2.TypeOfPtr((*encoding.TextUnmarshaler)(nil)).Elem() - -func createDecoderOfMarshaler(ctx *ctx, typ reflect2.Type) ValDecoder { - ptrType := reflect2.PtrTo(typ) - if ptrType.Implements(unmarshalerType) { - return &referenceDecoder{ - &unmarshalerDecoder{ptrType}, - } - } - if ptrType.Implements(textUnmarshalerType) { - return &referenceDecoder{ - &textUnmarshalerDecoder{ptrType}, - } - } - return nil -} - -func createEncoderOfMarshaler(ctx *ctx, typ reflect2.Type) ValEncoder { - if typ == marshalerType { - checkIsEmpty := createCheckIsEmpty(ctx, typ) - var encoder ValEncoder = &directMarshalerEncoder{ - checkIsEmpty: checkIsEmpty, - } - return encoder - } - if typ.Implements(marshalerType) { - checkIsEmpty := createCheckIsEmpty(ctx, typ) - var encoder ValEncoder = &marshalerEncoder{ - valType: typ, - checkIsEmpty: checkIsEmpty, - } - return encoder - } - ptrType := reflect2.PtrTo(typ) - if ctx.prefix != "" && ptrType.Implements(marshalerType) { - checkIsEmpty := createCheckIsEmpty(ctx, ptrType) - var encoder ValEncoder = &marshalerEncoder{ - valType: ptrType, - checkIsEmpty: checkIsEmpty, - } - return &referenceEncoder{encoder} - } - if typ == textMarshalerType { - checkIsEmpty := createCheckIsEmpty(ctx, typ) - var encoder ValEncoder = &directTextMarshalerEncoder{ - checkIsEmpty: checkIsEmpty, - stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), - } - return encoder - } - if typ.Implements(textMarshalerType) { - checkIsEmpty := createCheckIsEmpty(ctx, typ) - var encoder ValEncoder = &textMarshalerEncoder{ - valType: typ, - stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), - checkIsEmpty: checkIsEmpty, - } - return encoder - } - // if prefix is empty, the type is the root type - if ctx.prefix != "" && ptrType.Implements(textMarshalerType) { - checkIsEmpty := createCheckIsEmpty(ctx, ptrType) - var encoder ValEncoder = &textMarshalerEncoder{ - valType: ptrType, - stringEncoder: ctx.EncoderOf(reflect2.TypeOf("")), - checkIsEmpty: checkIsEmpty, - } - return &referenceEncoder{encoder} - } - return nil -} - -type marshalerEncoder struct { - checkIsEmpty checkIsEmpty - valType reflect2.Type -} - -func (encoder *marshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - obj := encoder.valType.UnsafeIndirect(ptr) - if encoder.valType.IsNullable() && reflect2.IsNil(obj) { - stream.WriteNil() - return - } - marshaler := obj.(json.Marshaler) - bytes, err := marshaler.MarshalJSON() - if err != nil { - stream.Error = err - } else { - // html escape was already done by jsoniter - // but the extra '\n' should be trimed - l := len(bytes) - if l > 0 && bytes[l-1] == '\n' { - bytes = bytes[:l-1] - } - stream.Write(bytes) - } -} - -func (encoder *marshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.checkIsEmpty.IsEmpty(ptr) -} - -type directMarshalerEncoder struct { - checkIsEmpty checkIsEmpty -} - -func (encoder *directMarshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - marshaler := *(*json.Marshaler)(ptr) - if marshaler == nil { - stream.WriteNil() - return - } - bytes, err := marshaler.MarshalJSON() - if err != nil { - stream.Error = err - } else { - stream.Write(bytes) - } -} - -func (encoder *directMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.checkIsEmpty.IsEmpty(ptr) -} - -type textMarshalerEncoder struct { - valType reflect2.Type - stringEncoder ValEncoder - checkIsEmpty checkIsEmpty -} - -func (encoder *textMarshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - obj := encoder.valType.UnsafeIndirect(ptr) - if encoder.valType.IsNullable() && reflect2.IsNil(obj) { - stream.WriteNil() - return - } - marshaler := (obj).(encoding.TextMarshaler) - bytes, err := marshaler.MarshalText() - if err != nil { - stream.Error = err - } else { - str := string(bytes) - encoder.stringEncoder.Encode(unsafe.Pointer(&str), stream) - } -} - -func (encoder *textMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.checkIsEmpty.IsEmpty(ptr) -} - -type directTextMarshalerEncoder struct { - stringEncoder ValEncoder - checkIsEmpty checkIsEmpty -} - -func (encoder *directTextMarshalerEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - marshaler := *(*encoding.TextMarshaler)(ptr) - if marshaler == nil { - stream.WriteNil() - return - } - bytes, err := marshaler.MarshalText() - if err != nil { - stream.Error = err - } else { - str := string(bytes) - encoder.stringEncoder.Encode(unsafe.Pointer(&str), stream) - } -} - -func (encoder *directTextMarshalerEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.checkIsEmpty.IsEmpty(ptr) -} - -type unmarshalerDecoder struct { - valType reflect2.Type -} - -func (decoder *unmarshalerDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - valType := decoder.valType - obj := valType.UnsafeIndirect(ptr) - unmarshaler := obj.(json.Unmarshaler) - iter.nextToken() - iter.unreadByte() // skip spaces - bytes := iter.SkipAndReturnBytes() - err := unmarshaler.UnmarshalJSON(bytes) - if err != nil { - iter.ReportError("unmarshalerDecoder", err.Error()) - } -} - -type textUnmarshalerDecoder struct { - valType reflect2.Type -} - -func (decoder *textUnmarshalerDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - valType := decoder.valType - obj := valType.UnsafeIndirect(ptr) - if reflect2.IsNil(obj) { - ptrType := valType.(*reflect2.UnsafePtrType) - elemType := ptrType.Elem() - elem := elemType.UnsafeNew() - ptrType.UnsafeSet(ptr, unsafe.Pointer(&elem)) - obj = valType.UnsafeIndirect(ptr) - } - unmarshaler := (obj).(encoding.TextUnmarshaler) - str := iter.ReadString() - err := unmarshaler.UnmarshalText([]byte(str)) - if err != nil { - iter.ReportError("textUnmarshalerDecoder", err.Error()) - } -} diff --git a/vendor/github.com/json-iterator/go/reflect_native.go b/vendor/github.com/json-iterator/go/reflect_native.go deleted file mode 100644 index f88722d14d..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_native.go +++ /dev/null @@ -1,453 +0,0 @@ -package jsoniter - -import ( - "encoding/base64" - "reflect" - "strconv" - "unsafe" - - "github.com/modern-go/reflect2" -) - -const ptrSize = 32 << uintptr(^uintptr(0)>>63) - -func createEncoderOfNative(ctx *ctx, typ reflect2.Type) ValEncoder { - if typ.Kind() == reflect.Slice && typ.(reflect2.SliceType).Elem().Kind() == reflect.Uint8 { - sliceDecoder := decoderOfSlice(ctx, typ) - return &base64Codec{sliceDecoder: sliceDecoder} - } - typeName := typ.String() - kind := typ.Kind() - switch kind { - case reflect.String: - if typeName != "string" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*string)(nil)).Elem()) - } - return &stringCodec{} - case reflect.Int: - if typeName != "int" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*int)(nil)).Elem()) - } - if strconv.IntSize == 32 { - return &int32Codec{} - } - return &int64Codec{} - case reflect.Int8: - if typeName != "int8" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*int8)(nil)).Elem()) - } - return &int8Codec{} - case reflect.Int16: - if typeName != "int16" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*int16)(nil)).Elem()) - } - return &int16Codec{} - case reflect.Int32: - if typeName != "int32" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*int32)(nil)).Elem()) - } - return &int32Codec{} - case reflect.Int64: - if typeName != "int64" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*int64)(nil)).Elem()) - } - return &int64Codec{} - case reflect.Uint: - if typeName != "uint" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*uint)(nil)).Elem()) - } - if strconv.IntSize == 32 { - return &uint32Codec{} - } - return &uint64Codec{} - case reflect.Uint8: - if typeName != "uint8" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*uint8)(nil)).Elem()) - } - return &uint8Codec{} - case reflect.Uint16: - if typeName != "uint16" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*uint16)(nil)).Elem()) - } - return &uint16Codec{} - case reflect.Uint32: - if typeName != "uint32" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*uint32)(nil)).Elem()) - } - return &uint32Codec{} - case reflect.Uintptr: - if typeName != "uintptr" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*uintptr)(nil)).Elem()) - } - if ptrSize == 32 { - return &uint32Codec{} - } - return &uint64Codec{} - case reflect.Uint64: - if typeName != "uint64" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*uint64)(nil)).Elem()) - } - return &uint64Codec{} - case reflect.Float32: - if typeName != "float32" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*float32)(nil)).Elem()) - } - return &float32Codec{} - case reflect.Float64: - if typeName != "float64" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*float64)(nil)).Elem()) - } - return &float64Codec{} - case reflect.Bool: - if typeName != "bool" { - return encoderOfType(ctx, reflect2.TypeOfPtr((*bool)(nil)).Elem()) - } - return &boolCodec{} - } - return nil -} - -func createDecoderOfNative(ctx *ctx, typ reflect2.Type) ValDecoder { - if typ.Kind() == reflect.Slice && typ.(reflect2.SliceType).Elem().Kind() == reflect.Uint8 { - sliceDecoder := decoderOfSlice(ctx, typ) - return &base64Codec{sliceDecoder: sliceDecoder} - } - typeName := typ.String() - switch typ.Kind() { - case reflect.String: - if typeName != "string" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*string)(nil)).Elem()) - } - return &stringCodec{} - case reflect.Int: - if typeName != "int" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*int)(nil)).Elem()) - } - if strconv.IntSize == 32 { - return &int32Codec{} - } - return &int64Codec{} - case reflect.Int8: - if typeName != "int8" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*int8)(nil)).Elem()) - } - return &int8Codec{} - case reflect.Int16: - if typeName != "int16" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*int16)(nil)).Elem()) - } - return &int16Codec{} - case reflect.Int32: - if typeName != "int32" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*int32)(nil)).Elem()) - } - return &int32Codec{} - case reflect.Int64: - if typeName != "int64" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*int64)(nil)).Elem()) - } - return &int64Codec{} - case reflect.Uint: - if typeName != "uint" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*uint)(nil)).Elem()) - } - if strconv.IntSize == 32 { - return &uint32Codec{} - } - return &uint64Codec{} - case reflect.Uint8: - if typeName != "uint8" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*uint8)(nil)).Elem()) - } - return &uint8Codec{} - case reflect.Uint16: - if typeName != "uint16" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*uint16)(nil)).Elem()) - } - return &uint16Codec{} - case reflect.Uint32: - if typeName != "uint32" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*uint32)(nil)).Elem()) - } - return &uint32Codec{} - case reflect.Uintptr: - if typeName != "uintptr" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*uintptr)(nil)).Elem()) - } - if ptrSize == 32 { - return &uint32Codec{} - } - return &uint64Codec{} - case reflect.Uint64: - if typeName != "uint64" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*uint64)(nil)).Elem()) - } - return &uint64Codec{} - case reflect.Float32: - if typeName != "float32" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*float32)(nil)).Elem()) - } - return &float32Codec{} - case reflect.Float64: - if typeName != "float64" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*float64)(nil)).Elem()) - } - return &float64Codec{} - case reflect.Bool: - if typeName != "bool" { - return decoderOfType(ctx, reflect2.TypeOfPtr((*bool)(nil)).Elem()) - } - return &boolCodec{} - } - return nil -} - -type stringCodec struct { -} - -func (codec *stringCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - *((*string)(ptr)) = iter.ReadString() -} - -func (codec *stringCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - str := *((*string)(ptr)) - stream.WriteString(str) -} - -func (codec *stringCodec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*string)(ptr)) == "" -} - -type int8Codec struct { -} - -func (codec *int8Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*int8)(ptr)) = iter.ReadInt8() - } -} - -func (codec *int8Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteInt8(*((*int8)(ptr))) -} - -func (codec *int8Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*int8)(ptr)) == 0 -} - -type int16Codec struct { -} - -func (codec *int16Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*int16)(ptr)) = iter.ReadInt16() - } -} - -func (codec *int16Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteInt16(*((*int16)(ptr))) -} - -func (codec *int16Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*int16)(ptr)) == 0 -} - -type int32Codec struct { -} - -func (codec *int32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*int32)(ptr)) = iter.ReadInt32() - } -} - -func (codec *int32Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteInt32(*((*int32)(ptr))) -} - -func (codec *int32Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*int32)(ptr)) == 0 -} - -type int64Codec struct { -} - -func (codec *int64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*int64)(ptr)) = iter.ReadInt64() - } -} - -func (codec *int64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteInt64(*((*int64)(ptr))) -} - -func (codec *int64Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*int64)(ptr)) == 0 -} - -type uint8Codec struct { -} - -func (codec *uint8Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*uint8)(ptr)) = iter.ReadUint8() - } -} - -func (codec *uint8Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteUint8(*((*uint8)(ptr))) -} - -func (codec *uint8Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*uint8)(ptr)) == 0 -} - -type uint16Codec struct { -} - -func (codec *uint16Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*uint16)(ptr)) = iter.ReadUint16() - } -} - -func (codec *uint16Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteUint16(*((*uint16)(ptr))) -} - -func (codec *uint16Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*uint16)(ptr)) == 0 -} - -type uint32Codec struct { -} - -func (codec *uint32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*uint32)(ptr)) = iter.ReadUint32() - } -} - -func (codec *uint32Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteUint32(*((*uint32)(ptr))) -} - -func (codec *uint32Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*uint32)(ptr)) == 0 -} - -type uint64Codec struct { -} - -func (codec *uint64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*uint64)(ptr)) = iter.ReadUint64() - } -} - -func (codec *uint64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteUint64(*((*uint64)(ptr))) -} - -func (codec *uint64Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*uint64)(ptr)) == 0 -} - -type float32Codec struct { -} - -func (codec *float32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*float32)(ptr)) = iter.ReadFloat32() - } -} - -func (codec *float32Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteFloat32(*((*float32)(ptr))) -} - -func (codec *float32Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*float32)(ptr)) == 0 -} - -type float64Codec struct { -} - -func (codec *float64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*float64)(ptr)) = iter.ReadFloat64() - } -} - -func (codec *float64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteFloat64(*((*float64)(ptr))) -} - -func (codec *float64Codec) IsEmpty(ptr unsafe.Pointer) bool { - return *((*float64)(ptr)) == 0 -} - -type boolCodec struct { -} - -func (codec *boolCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.ReadNil() { - *((*bool)(ptr)) = iter.ReadBool() - } -} - -func (codec *boolCodec) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteBool(*((*bool)(ptr))) -} - -func (codec *boolCodec) IsEmpty(ptr unsafe.Pointer) bool { - return !(*((*bool)(ptr))) -} - -type base64Codec struct { - sliceType *reflect2.UnsafeSliceType - sliceDecoder ValDecoder -} - -func (codec *base64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) { - if iter.ReadNil() { - codec.sliceType.UnsafeSetNil(ptr) - return - } - switch iter.WhatIsNext() { - case StringValue: - src := iter.ReadString() - dst, err := base64.StdEncoding.DecodeString(src) - if err != nil { - iter.ReportError("decode base64", err.Error()) - } else { - codec.sliceType.UnsafeSet(ptr, unsafe.Pointer(&dst)) - } - case ArrayValue: - codec.sliceDecoder.Decode(ptr, iter) - default: - iter.ReportError("base64Codec", "invalid input") - } -} - -func (codec *base64Codec) Encode(ptr unsafe.Pointer, stream *Stream) { - if codec.sliceType.UnsafeIsNil(ptr) { - stream.WriteNil() - return - } - src := *((*[]byte)(ptr)) - encoding := base64.StdEncoding - stream.writeByte('"') - if len(src) != 0 { - size := encoding.EncodedLen(len(src)) - buf := make([]byte, size) - encoding.Encode(buf, src) - stream.buf = append(stream.buf, buf...) - } - stream.writeByte('"') -} - -func (codec *base64Codec) IsEmpty(ptr unsafe.Pointer) bool { - return len(*((*[]byte)(ptr))) == 0 -} diff --git a/vendor/github.com/json-iterator/go/reflect_optional.go b/vendor/github.com/json-iterator/go/reflect_optional.go deleted file mode 100644 index fa71f47489..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_optional.go +++ /dev/null @@ -1,129 +0,0 @@ -package jsoniter - -import ( - "github.com/modern-go/reflect2" - "unsafe" -) - -func decoderOfOptional(ctx *ctx, typ reflect2.Type) ValDecoder { - ptrType := typ.(*reflect2.UnsafePtrType) - elemType := ptrType.Elem() - decoder := decoderOfType(ctx, elemType) - return &OptionalDecoder{elemType, decoder} -} - -func encoderOfOptional(ctx *ctx, typ reflect2.Type) ValEncoder { - ptrType := typ.(*reflect2.UnsafePtrType) - elemType := ptrType.Elem() - elemEncoder := encoderOfType(ctx, elemType) - encoder := &OptionalEncoder{elemEncoder} - return encoder -} - -type OptionalDecoder struct { - ValueType reflect2.Type - ValueDecoder ValDecoder -} - -func (decoder *OptionalDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if iter.ReadNil() { - *((*unsafe.Pointer)(ptr)) = nil - } else { - if *((*unsafe.Pointer)(ptr)) == nil { - //pointer to null, we have to allocate memory to hold the value - newPtr := decoder.ValueType.UnsafeNew() - decoder.ValueDecoder.Decode(newPtr, iter) - *((*unsafe.Pointer)(ptr)) = newPtr - } else { - //reuse existing instance - decoder.ValueDecoder.Decode(*((*unsafe.Pointer)(ptr)), iter) - } - } -} - -type dereferenceDecoder struct { - // only to deference a pointer - valueType reflect2.Type - valueDecoder ValDecoder -} - -func (decoder *dereferenceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if *((*unsafe.Pointer)(ptr)) == nil { - //pointer to null, we have to allocate memory to hold the value - newPtr := decoder.valueType.UnsafeNew() - decoder.valueDecoder.Decode(newPtr, iter) - *((*unsafe.Pointer)(ptr)) = newPtr - } else { - //reuse existing instance - decoder.valueDecoder.Decode(*((*unsafe.Pointer)(ptr)), iter) - } -} - -type OptionalEncoder struct { - ValueEncoder ValEncoder -} - -func (encoder *OptionalEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - if *((*unsafe.Pointer)(ptr)) == nil { - stream.WriteNil() - } else { - encoder.ValueEncoder.Encode(*((*unsafe.Pointer)(ptr)), stream) - } -} - -func (encoder *OptionalEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return *((*unsafe.Pointer)(ptr)) == nil -} - -type dereferenceEncoder struct { - ValueEncoder ValEncoder -} - -func (encoder *dereferenceEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - if *((*unsafe.Pointer)(ptr)) == nil { - stream.WriteNil() - } else { - encoder.ValueEncoder.Encode(*((*unsafe.Pointer)(ptr)), stream) - } -} - -func (encoder *dereferenceEncoder) IsEmpty(ptr unsafe.Pointer) bool { - dePtr := *((*unsafe.Pointer)(ptr)) - if dePtr == nil { - return true - } - return encoder.ValueEncoder.IsEmpty(dePtr) -} - -func (encoder *dereferenceEncoder) IsEmbeddedPtrNil(ptr unsafe.Pointer) bool { - deReferenced := *((*unsafe.Pointer)(ptr)) - if deReferenced == nil { - return true - } - isEmbeddedPtrNil, converted := encoder.ValueEncoder.(IsEmbeddedPtrNil) - if !converted { - return false - } - fieldPtr := unsafe.Pointer(deReferenced) - return isEmbeddedPtrNil.IsEmbeddedPtrNil(fieldPtr) -} - -type referenceEncoder struct { - encoder ValEncoder -} - -func (encoder *referenceEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - encoder.encoder.Encode(unsafe.Pointer(&ptr), stream) -} - -func (encoder *referenceEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.encoder.IsEmpty(unsafe.Pointer(&ptr)) -} - -type referenceDecoder struct { - decoder ValDecoder -} - -func (decoder *referenceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - decoder.decoder.Decode(unsafe.Pointer(&ptr), iter) -} diff --git a/vendor/github.com/json-iterator/go/reflect_slice.go b/vendor/github.com/json-iterator/go/reflect_slice.go deleted file mode 100644 index 9441d79df3..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_slice.go +++ /dev/null @@ -1,99 +0,0 @@ -package jsoniter - -import ( - "fmt" - "github.com/modern-go/reflect2" - "io" - "unsafe" -) - -func decoderOfSlice(ctx *ctx, typ reflect2.Type) ValDecoder { - sliceType := typ.(*reflect2.UnsafeSliceType) - decoder := decoderOfType(ctx.append("[sliceElem]"), sliceType.Elem()) - return &sliceDecoder{sliceType, decoder} -} - -func encoderOfSlice(ctx *ctx, typ reflect2.Type) ValEncoder { - sliceType := typ.(*reflect2.UnsafeSliceType) - encoder := encoderOfType(ctx.append("[sliceElem]"), sliceType.Elem()) - return &sliceEncoder{sliceType, encoder} -} - -type sliceEncoder struct { - sliceType *reflect2.UnsafeSliceType - elemEncoder ValEncoder -} - -func (encoder *sliceEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - if encoder.sliceType.UnsafeIsNil(ptr) { - stream.WriteNil() - return - } - length := encoder.sliceType.UnsafeLengthOf(ptr) - if length == 0 { - stream.WriteEmptyArray() - return - } - stream.WriteArrayStart() - encoder.elemEncoder.Encode(encoder.sliceType.UnsafeGetIndex(ptr, 0), stream) - for i := 1; i < length; i++ { - stream.WriteMore() - elemPtr := encoder.sliceType.UnsafeGetIndex(ptr, i) - encoder.elemEncoder.Encode(elemPtr, stream) - } - stream.WriteArrayEnd() - if stream.Error != nil && stream.Error != io.EOF { - stream.Error = fmt.Errorf("%v: %s", encoder.sliceType, stream.Error.Error()) - } -} - -func (encoder *sliceEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.sliceType.UnsafeLengthOf(ptr) == 0 -} - -type sliceDecoder struct { - sliceType *reflect2.UnsafeSliceType - elemDecoder ValDecoder -} - -func (decoder *sliceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - decoder.doDecode(ptr, iter) - if iter.Error != nil && iter.Error != io.EOF { - iter.Error = fmt.Errorf("%v: %s", decoder.sliceType, iter.Error.Error()) - } -} - -func (decoder *sliceDecoder) doDecode(ptr unsafe.Pointer, iter *Iterator) { - c := iter.nextToken() - sliceType := decoder.sliceType - if c == 'n' { - iter.skipThreeBytes('u', 'l', 'l') - sliceType.UnsafeSetNil(ptr) - return - } - if c != '[' { - iter.ReportError("decode slice", "expect [ or n, but found "+string([]byte{c})) - return - } - c = iter.nextToken() - if c == ']' { - sliceType.UnsafeSet(ptr, sliceType.UnsafeMakeSlice(0, 0)) - return - } - iter.unreadByte() - sliceType.UnsafeGrow(ptr, 1) - elemPtr := sliceType.UnsafeGetIndex(ptr, 0) - decoder.elemDecoder.Decode(elemPtr, iter) - length := 1 - for c = iter.nextToken(); c == ','; c = iter.nextToken() { - idx := length - length += 1 - sliceType.UnsafeGrow(ptr, length) - elemPtr = sliceType.UnsafeGetIndex(ptr, idx) - decoder.elemDecoder.Decode(elemPtr, iter) - } - if c != ']' { - iter.ReportError("decode slice", "expect ], but found "+string([]byte{c})) - return - } -} diff --git a/vendor/github.com/json-iterator/go/reflect_struct_decoder.go b/vendor/github.com/json-iterator/go/reflect_struct_decoder.go deleted file mode 100644 index 92ae912dc2..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_struct_decoder.go +++ /dev/null @@ -1,1097 +0,0 @@ -package jsoniter - -import ( - "fmt" - "io" - "strings" - "unsafe" - - "github.com/modern-go/reflect2" -) - -func decoderOfStruct(ctx *ctx, typ reflect2.Type) ValDecoder { - bindings := map[string]*Binding{} - structDescriptor := describeStruct(ctx, typ) - for _, binding := range structDescriptor.Fields { - for _, fromName := range binding.FromNames { - old := bindings[fromName] - if old == nil { - bindings[fromName] = binding - continue - } - ignoreOld, ignoreNew := resolveConflictBinding(ctx.frozenConfig, old, binding) - if ignoreOld { - delete(bindings, fromName) - } - if !ignoreNew { - bindings[fromName] = binding - } - } - } - fields := map[string]*structFieldDecoder{} - for k, binding := range bindings { - fields[k] = binding.Decoder.(*structFieldDecoder) - } - - if !ctx.caseSensitive() { - for k, binding := range bindings { - if _, found := fields[strings.ToLower(k)]; !found { - fields[strings.ToLower(k)] = binding.Decoder.(*structFieldDecoder) - } - } - } - - return createStructDecoder(ctx, typ, fields) -} - -func createStructDecoder(ctx *ctx, typ reflect2.Type, fields map[string]*structFieldDecoder) ValDecoder { - if ctx.disallowUnknownFields { - return &generalStructDecoder{typ: typ, fields: fields, disallowUnknownFields: true} - } - knownHash := map[int64]struct{}{ - 0: {}, - } - - switch len(fields) { - case 0: - return &skipObjectDecoder{typ} - case 1: - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - return &oneFieldStructDecoder{typ, fieldHash, fieldDecoder} - } - case 2: - var fieldHash1 int64 - var fieldHash2 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldHash1 == 0 { - fieldHash1 = fieldHash - fieldDecoder1 = fieldDecoder - } else { - fieldHash2 = fieldHash - fieldDecoder2 = fieldDecoder - } - } - return &twoFieldsStructDecoder{typ, fieldHash1, fieldDecoder1, fieldHash2, fieldDecoder2} - case 3: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } - } - return &threeFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3} - case 4: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldName4 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - var fieldDecoder4 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else if fieldName3 == 0 { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } else { - fieldName4 = fieldHash - fieldDecoder4 = fieldDecoder - } - } - return &fourFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3, - fieldName4, fieldDecoder4} - case 5: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldName4 int64 - var fieldName5 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - var fieldDecoder4 *structFieldDecoder - var fieldDecoder5 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else if fieldName3 == 0 { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } else if fieldName4 == 0 { - fieldName4 = fieldHash - fieldDecoder4 = fieldDecoder - } else { - fieldName5 = fieldHash - fieldDecoder5 = fieldDecoder - } - } - return &fiveFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3, - fieldName4, fieldDecoder4, - fieldName5, fieldDecoder5} - case 6: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldName4 int64 - var fieldName5 int64 - var fieldName6 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - var fieldDecoder4 *structFieldDecoder - var fieldDecoder5 *structFieldDecoder - var fieldDecoder6 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else if fieldName3 == 0 { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } else if fieldName4 == 0 { - fieldName4 = fieldHash - fieldDecoder4 = fieldDecoder - } else if fieldName5 == 0 { - fieldName5 = fieldHash - fieldDecoder5 = fieldDecoder - } else { - fieldName6 = fieldHash - fieldDecoder6 = fieldDecoder - } - } - return &sixFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3, - fieldName4, fieldDecoder4, - fieldName5, fieldDecoder5, - fieldName6, fieldDecoder6} - case 7: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldName4 int64 - var fieldName5 int64 - var fieldName6 int64 - var fieldName7 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - var fieldDecoder4 *structFieldDecoder - var fieldDecoder5 *structFieldDecoder - var fieldDecoder6 *structFieldDecoder - var fieldDecoder7 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else if fieldName3 == 0 { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } else if fieldName4 == 0 { - fieldName4 = fieldHash - fieldDecoder4 = fieldDecoder - } else if fieldName5 == 0 { - fieldName5 = fieldHash - fieldDecoder5 = fieldDecoder - } else if fieldName6 == 0 { - fieldName6 = fieldHash - fieldDecoder6 = fieldDecoder - } else { - fieldName7 = fieldHash - fieldDecoder7 = fieldDecoder - } - } - return &sevenFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3, - fieldName4, fieldDecoder4, - fieldName5, fieldDecoder5, - fieldName6, fieldDecoder6, - fieldName7, fieldDecoder7} - case 8: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldName4 int64 - var fieldName5 int64 - var fieldName6 int64 - var fieldName7 int64 - var fieldName8 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - var fieldDecoder4 *structFieldDecoder - var fieldDecoder5 *structFieldDecoder - var fieldDecoder6 *structFieldDecoder - var fieldDecoder7 *structFieldDecoder - var fieldDecoder8 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else if fieldName3 == 0 { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } else if fieldName4 == 0 { - fieldName4 = fieldHash - fieldDecoder4 = fieldDecoder - } else if fieldName5 == 0 { - fieldName5 = fieldHash - fieldDecoder5 = fieldDecoder - } else if fieldName6 == 0 { - fieldName6 = fieldHash - fieldDecoder6 = fieldDecoder - } else if fieldName7 == 0 { - fieldName7 = fieldHash - fieldDecoder7 = fieldDecoder - } else { - fieldName8 = fieldHash - fieldDecoder8 = fieldDecoder - } - } - return &eightFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3, - fieldName4, fieldDecoder4, - fieldName5, fieldDecoder5, - fieldName6, fieldDecoder6, - fieldName7, fieldDecoder7, - fieldName8, fieldDecoder8} - case 9: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldName4 int64 - var fieldName5 int64 - var fieldName6 int64 - var fieldName7 int64 - var fieldName8 int64 - var fieldName9 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - var fieldDecoder4 *structFieldDecoder - var fieldDecoder5 *structFieldDecoder - var fieldDecoder6 *structFieldDecoder - var fieldDecoder7 *structFieldDecoder - var fieldDecoder8 *structFieldDecoder - var fieldDecoder9 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else if fieldName3 == 0 { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } else if fieldName4 == 0 { - fieldName4 = fieldHash - fieldDecoder4 = fieldDecoder - } else if fieldName5 == 0 { - fieldName5 = fieldHash - fieldDecoder5 = fieldDecoder - } else if fieldName6 == 0 { - fieldName6 = fieldHash - fieldDecoder6 = fieldDecoder - } else if fieldName7 == 0 { - fieldName7 = fieldHash - fieldDecoder7 = fieldDecoder - } else if fieldName8 == 0 { - fieldName8 = fieldHash - fieldDecoder8 = fieldDecoder - } else { - fieldName9 = fieldHash - fieldDecoder9 = fieldDecoder - } - } - return &nineFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3, - fieldName4, fieldDecoder4, - fieldName5, fieldDecoder5, - fieldName6, fieldDecoder6, - fieldName7, fieldDecoder7, - fieldName8, fieldDecoder8, - fieldName9, fieldDecoder9} - case 10: - var fieldName1 int64 - var fieldName2 int64 - var fieldName3 int64 - var fieldName4 int64 - var fieldName5 int64 - var fieldName6 int64 - var fieldName7 int64 - var fieldName8 int64 - var fieldName9 int64 - var fieldName10 int64 - var fieldDecoder1 *structFieldDecoder - var fieldDecoder2 *structFieldDecoder - var fieldDecoder3 *structFieldDecoder - var fieldDecoder4 *structFieldDecoder - var fieldDecoder5 *structFieldDecoder - var fieldDecoder6 *structFieldDecoder - var fieldDecoder7 *structFieldDecoder - var fieldDecoder8 *structFieldDecoder - var fieldDecoder9 *structFieldDecoder - var fieldDecoder10 *structFieldDecoder - for fieldName, fieldDecoder := range fields { - fieldHash := calcHash(fieldName, ctx.caseSensitive()) - _, known := knownHash[fieldHash] - if known { - return &generalStructDecoder{typ, fields, false} - } - knownHash[fieldHash] = struct{}{} - if fieldName1 == 0 { - fieldName1 = fieldHash - fieldDecoder1 = fieldDecoder - } else if fieldName2 == 0 { - fieldName2 = fieldHash - fieldDecoder2 = fieldDecoder - } else if fieldName3 == 0 { - fieldName3 = fieldHash - fieldDecoder3 = fieldDecoder - } else if fieldName4 == 0 { - fieldName4 = fieldHash - fieldDecoder4 = fieldDecoder - } else if fieldName5 == 0 { - fieldName5 = fieldHash - fieldDecoder5 = fieldDecoder - } else if fieldName6 == 0 { - fieldName6 = fieldHash - fieldDecoder6 = fieldDecoder - } else if fieldName7 == 0 { - fieldName7 = fieldHash - fieldDecoder7 = fieldDecoder - } else if fieldName8 == 0 { - fieldName8 = fieldHash - fieldDecoder8 = fieldDecoder - } else if fieldName9 == 0 { - fieldName9 = fieldHash - fieldDecoder9 = fieldDecoder - } else { - fieldName10 = fieldHash - fieldDecoder10 = fieldDecoder - } - } - return &tenFieldsStructDecoder{typ, - fieldName1, fieldDecoder1, - fieldName2, fieldDecoder2, - fieldName3, fieldDecoder3, - fieldName4, fieldDecoder4, - fieldName5, fieldDecoder5, - fieldName6, fieldDecoder6, - fieldName7, fieldDecoder7, - fieldName8, fieldDecoder8, - fieldName9, fieldDecoder9, - fieldName10, fieldDecoder10} - } - return &generalStructDecoder{typ, fields, false} -} - -type generalStructDecoder struct { - typ reflect2.Type - fields map[string]*structFieldDecoder - disallowUnknownFields bool -} - -func (decoder *generalStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - var c byte - for c = ','; c == ','; c = iter.nextToken() { - decoder.decodeOneField(ptr, iter) - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - if c != '}' { - iter.ReportError("struct Decode", `expect }, but found `+string([]byte{c})) - } - iter.decrementDepth() -} - -func (decoder *generalStructDecoder) decodeOneField(ptr unsafe.Pointer, iter *Iterator) { - var field string - var fieldDecoder *structFieldDecoder - if iter.cfg.objectFieldMustBeSimpleString { - fieldBytes := iter.ReadStringAsSlice() - field = *(*string)(unsafe.Pointer(&fieldBytes)) - fieldDecoder = decoder.fields[field] - if fieldDecoder == nil && !iter.cfg.caseSensitive { - fieldDecoder = decoder.fields[strings.ToLower(field)] - } - } else { - field = iter.ReadString() - fieldDecoder = decoder.fields[field] - if fieldDecoder == nil && !iter.cfg.caseSensitive { - fieldDecoder = decoder.fields[strings.ToLower(field)] - } - } - if fieldDecoder == nil { - if decoder.disallowUnknownFields { - msg := "found unknown field: " + field - iter.ReportError("ReadObject", msg) - } - c := iter.nextToken() - if c != ':' { - iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) - } - iter.Skip() - return - } - c := iter.nextToken() - if c != ':' { - iter.ReportError("ReadObject", "expect : after object field, but found "+string([]byte{c})) - } - fieldDecoder.Decode(ptr, iter) -} - -type skipObjectDecoder struct { - typ reflect2.Type -} - -func (decoder *skipObjectDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - valueType := iter.WhatIsNext() - if valueType != ObjectValue && valueType != NilValue { - iter.ReportError("skipObjectDecoder", "expect object or null") - return - } - iter.Skip() -} - -type oneFieldStructDecoder struct { - typ reflect2.Type - fieldHash int64 - fieldDecoder *structFieldDecoder -} - -func (decoder *oneFieldStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - if iter.readFieldHash() == decoder.fieldHash { - decoder.fieldDecoder.Decode(ptr, iter) - } else { - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type twoFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder -} - -func (decoder *twoFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type threeFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder -} - -func (decoder *threeFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type fourFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder - fieldHash4 int64 - fieldDecoder4 *structFieldDecoder -} - -func (decoder *fourFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - case decoder.fieldHash4: - decoder.fieldDecoder4.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type fiveFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder - fieldHash4 int64 - fieldDecoder4 *structFieldDecoder - fieldHash5 int64 - fieldDecoder5 *structFieldDecoder -} - -func (decoder *fiveFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - case decoder.fieldHash4: - decoder.fieldDecoder4.Decode(ptr, iter) - case decoder.fieldHash5: - decoder.fieldDecoder5.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type sixFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder - fieldHash4 int64 - fieldDecoder4 *structFieldDecoder - fieldHash5 int64 - fieldDecoder5 *structFieldDecoder - fieldHash6 int64 - fieldDecoder6 *structFieldDecoder -} - -func (decoder *sixFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - case decoder.fieldHash4: - decoder.fieldDecoder4.Decode(ptr, iter) - case decoder.fieldHash5: - decoder.fieldDecoder5.Decode(ptr, iter) - case decoder.fieldHash6: - decoder.fieldDecoder6.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type sevenFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder - fieldHash4 int64 - fieldDecoder4 *structFieldDecoder - fieldHash5 int64 - fieldDecoder5 *structFieldDecoder - fieldHash6 int64 - fieldDecoder6 *structFieldDecoder - fieldHash7 int64 - fieldDecoder7 *structFieldDecoder -} - -func (decoder *sevenFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - case decoder.fieldHash4: - decoder.fieldDecoder4.Decode(ptr, iter) - case decoder.fieldHash5: - decoder.fieldDecoder5.Decode(ptr, iter) - case decoder.fieldHash6: - decoder.fieldDecoder6.Decode(ptr, iter) - case decoder.fieldHash7: - decoder.fieldDecoder7.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type eightFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder - fieldHash4 int64 - fieldDecoder4 *structFieldDecoder - fieldHash5 int64 - fieldDecoder5 *structFieldDecoder - fieldHash6 int64 - fieldDecoder6 *structFieldDecoder - fieldHash7 int64 - fieldDecoder7 *structFieldDecoder - fieldHash8 int64 - fieldDecoder8 *structFieldDecoder -} - -func (decoder *eightFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - case decoder.fieldHash4: - decoder.fieldDecoder4.Decode(ptr, iter) - case decoder.fieldHash5: - decoder.fieldDecoder5.Decode(ptr, iter) - case decoder.fieldHash6: - decoder.fieldDecoder6.Decode(ptr, iter) - case decoder.fieldHash7: - decoder.fieldDecoder7.Decode(ptr, iter) - case decoder.fieldHash8: - decoder.fieldDecoder8.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type nineFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder - fieldHash4 int64 - fieldDecoder4 *structFieldDecoder - fieldHash5 int64 - fieldDecoder5 *structFieldDecoder - fieldHash6 int64 - fieldDecoder6 *structFieldDecoder - fieldHash7 int64 - fieldDecoder7 *structFieldDecoder - fieldHash8 int64 - fieldDecoder8 *structFieldDecoder - fieldHash9 int64 - fieldDecoder9 *structFieldDecoder -} - -func (decoder *nineFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - case decoder.fieldHash4: - decoder.fieldDecoder4.Decode(ptr, iter) - case decoder.fieldHash5: - decoder.fieldDecoder5.Decode(ptr, iter) - case decoder.fieldHash6: - decoder.fieldDecoder6.Decode(ptr, iter) - case decoder.fieldHash7: - decoder.fieldDecoder7.Decode(ptr, iter) - case decoder.fieldHash8: - decoder.fieldDecoder8.Decode(ptr, iter) - case decoder.fieldHash9: - decoder.fieldDecoder9.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type tenFieldsStructDecoder struct { - typ reflect2.Type - fieldHash1 int64 - fieldDecoder1 *structFieldDecoder - fieldHash2 int64 - fieldDecoder2 *structFieldDecoder - fieldHash3 int64 - fieldDecoder3 *structFieldDecoder - fieldHash4 int64 - fieldDecoder4 *structFieldDecoder - fieldHash5 int64 - fieldDecoder5 *structFieldDecoder - fieldHash6 int64 - fieldDecoder6 *structFieldDecoder - fieldHash7 int64 - fieldDecoder7 *structFieldDecoder - fieldHash8 int64 - fieldDecoder8 *structFieldDecoder - fieldHash9 int64 - fieldDecoder9 *structFieldDecoder - fieldHash10 int64 - fieldDecoder10 *structFieldDecoder -} - -func (decoder *tenFieldsStructDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if !iter.readObjectStart() { - return - } - if !iter.incrementDepth() { - return - } - for { - switch iter.readFieldHash() { - case decoder.fieldHash1: - decoder.fieldDecoder1.Decode(ptr, iter) - case decoder.fieldHash2: - decoder.fieldDecoder2.Decode(ptr, iter) - case decoder.fieldHash3: - decoder.fieldDecoder3.Decode(ptr, iter) - case decoder.fieldHash4: - decoder.fieldDecoder4.Decode(ptr, iter) - case decoder.fieldHash5: - decoder.fieldDecoder5.Decode(ptr, iter) - case decoder.fieldHash6: - decoder.fieldDecoder6.Decode(ptr, iter) - case decoder.fieldHash7: - decoder.fieldDecoder7.Decode(ptr, iter) - case decoder.fieldHash8: - decoder.fieldDecoder8.Decode(ptr, iter) - case decoder.fieldHash9: - decoder.fieldDecoder9.Decode(ptr, iter) - case decoder.fieldHash10: - decoder.fieldDecoder10.Decode(ptr, iter) - default: - iter.Skip() - } - if iter.isObjectEnd() { - break - } - } - if iter.Error != nil && iter.Error != io.EOF && len(decoder.typ.Type1().Name()) != 0 { - iter.Error = fmt.Errorf("%v.%s", decoder.typ, iter.Error.Error()) - } - iter.decrementDepth() -} - -type structFieldDecoder struct { - field reflect2.StructField - fieldDecoder ValDecoder -} - -func (decoder *structFieldDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - fieldPtr := decoder.field.UnsafeGet(ptr) - decoder.fieldDecoder.Decode(fieldPtr, iter) - if iter.Error != nil && iter.Error != io.EOF { - iter.Error = fmt.Errorf("%s: %s", decoder.field.Name(), iter.Error.Error()) - } -} - -type stringModeStringDecoder struct { - elemDecoder ValDecoder - cfg *frozenConfig -} - -func (decoder *stringModeStringDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - decoder.elemDecoder.Decode(ptr, iter) - str := *((*string)(ptr)) - tempIter := decoder.cfg.BorrowIterator([]byte(str)) - defer decoder.cfg.ReturnIterator(tempIter) - *((*string)(ptr)) = tempIter.ReadString() -} - -type stringModeNumberDecoder struct { - elemDecoder ValDecoder -} - -func (decoder *stringModeNumberDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { - if iter.WhatIsNext() == NilValue { - decoder.elemDecoder.Decode(ptr, iter) - return - } - - c := iter.nextToken() - if c != '"' { - iter.ReportError("stringModeNumberDecoder", `expect ", but found `+string([]byte{c})) - return - } - decoder.elemDecoder.Decode(ptr, iter) - if iter.Error != nil { - return - } - c = iter.readByte() - if c != '"' { - iter.ReportError("stringModeNumberDecoder", `expect ", but found `+string([]byte{c})) - return - } -} diff --git a/vendor/github.com/json-iterator/go/reflect_struct_encoder.go b/vendor/github.com/json-iterator/go/reflect_struct_encoder.go deleted file mode 100644 index 152e3ef5a9..0000000000 --- a/vendor/github.com/json-iterator/go/reflect_struct_encoder.go +++ /dev/null @@ -1,211 +0,0 @@ -package jsoniter - -import ( - "fmt" - "github.com/modern-go/reflect2" - "io" - "reflect" - "unsafe" -) - -func encoderOfStruct(ctx *ctx, typ reflect2.Type) ValEncoder { - type bindingTo struct { - binding *Binding - toName string - ignored bool - } - orderedBindings := []*bindingTo{} - structDescriptor := describeStruct(ctx, typ) - for _, binding := range structDescriptor.Fields { - for _, toName := range binding.ToNames { - new := &bindingTo{ - binding: binding, - toName: toName, - } - for _, old := range orderedBindings { - if old.toName != toName { - continue - } - old.ignored, new.ignored = resolveConflictBinding(ctx.frozenConfig, old.binding, new.binding) - } - orderedBindings = append(orderedBindings, new) - } - } - if len(orderedBindings) == 0 { - return &emptyStructEncoder{} - } - finalOrderedFields := []structFieldTo{} - for _, bindingTo := range orderedBindings { - if !bindingTo.ignored { - finalOrderedFields = append(finalOrderedFields, structFieldTo{ - encoder: bindingTo.binding.Encoder.(*structFieldEncoder), - toName: bindingTo.toName, - }) - } - } - return &structEncoder{typ, finalOrderedFields} -} - -func createCheckIsEmpty(ctx *ctx, typ reflect2.Type) checkIsEmpty { - encoder := createEncoderOfNative(ctx, typ) - if encoder != nil { - return encoder - } - kind := typ.Kind() - switch kind { - case reflect.Interface: - return &dynamicEncoder{typ} - case reflect.Struct: - return &structEncoder{typ: typ} - case reflect.Array: - return &arrayEncoder{} - case reflect.Slice: - return &sliceEncoder{} - case reflect.Map: - return encoderOfMap(ctx, typ) - case reflect.Ptr: - return &OptionalEncoder{} - default: - return &lazyErrorEncoder{err: fmt.Errorf("unsupported type: %v", typ)} - } -} - -func resolveConflictBinding(cfg *frozenConfig, old, new *Binding) (ignoreOld, ignoreNew bool) { - newTagged := new.Field.Tag().Get(cfg.getTagKey()) != "" - oldTagged := old.Field.Tag().Get(cfg.getTagKey()) != "" - if newTagged { - if oldTagged { - if len(old.levels) > len(new.levels) { - return true, false - } else if len(new.levels) > len(old.levels) { - return false, true - } else { - return true, true - } - } else { - return true, false - } - } else { - if oldTagged { - return true, false - } - if len(old.levels) > len(new.levels) { - return true, false - } else if len(new.levels) > len(old.levels) { - return false, true - } else { - return true, true - } - } -} - -type structFieldEncoder struct { - field reflect2.StructField - fieldEncoder ValEncoder - omitempty bool -} - -func (encoder *structFieldEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - fieldPtr := encoder.field.UnsafeGet(ptr) - encoder.fieldEncoder.Encode(fieldPtr, stream) - if stream.Error != nil && stream.Error != io.EOF { - stream.Error = fmt.Errorf("%s: %s", encoder.field.Name(), stream.Error.Error()) - } -} - -func (encoder *structFieldEncoder) IsEmpty(ptr unsafe.Pointer) bool { - fieldPtr := encoder.field.UnsafeGet(ptr) - return encoder.fieldEncoder.IsEmpty(fieldPtr) -} - -func (encoder *structFieldEncoder) IsEmbeddedPtrNil(ptr unsafe.Pointer) bool { - isEmbeddedPtrNil, converted := encoder.fieldEncoder.(IsEmbeddedPtrNil) - if !converted { - return false - } - fieldPtr := encoder.field.UnsafeGet(ptr) - return isEmbeddedPtrNil.IsEmbeddedPtrNil(fieldPtr) -} - -type IsEmbeddedPtrNil interface { - IsEmbeddedPtrNil(ptr unsafe.Pointer) bool -} - -type structEncoder struct { - typ reflect2.Type - fields []structFieldTo -} - -type structFieldTo struct { - encoder *structFieldEncoder - toName string -} - -func (encoder *structEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteObjectStart() - isNotFirst := false - for _, field := range encoder.fields { - if field.encoder.omitempty && field.encoder.IsEmpty(ptr) { - continue - } - if field.encoder.IsEmbeddedPtrNil(ptr) { - continue - } - if isNotFirst { - stream.WriteMore() - } - stream.WriteObjectField(field.toName) - field.encoder.Encode(ptr, stream) - isNotFirst = true - } - stream.WriteObjectEnd() - if stream.Error != nil && stream.Error != io.EOF { - stream.Error = fmt.Errorf("%v.%s", encoder.typ, stream.Error.Error()) - } -} - -func (encoder *structEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return false -} - -type emptyStructEncoder struct { -} - -func (encoder *emptyStructEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.WriteEmptyObject() -} - -func (encoder *emptyStructEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return false -} - -type stringModeNumberEncoder struct { - elemEncoder ValEncoder -} - -func (encoder *stringModeNumberEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - stream.writeByte('"') - encoder.elemEncoder.Encode(ptr, stream) - stream.writeByte('"') -} - -func (encoder *stringModeNumberEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.elemEncoder.IsEmpty(ptr) -} - -type stringModeStringEncoder struct { - elemEncoder ValEncoder - cfg *frozenConfig -} - -func (encoder *stringModeStringEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { - tempStream := encoder.cfg.BorrowStream(nil) - tempStream.Attachment = stream.Attachment - defer encoder.cfg.ReturnStream(tempStream) - encoder.elemEncoder.Encode(ptr, tempStream) - stream.WriteString(string(tempStream.Buffer())) -} - -func (encoder *stringModeStringEncoder) IsEmpty(ptr unsafe.Pointer) bool { - return encoder.elemEncoder.IsEmpty(ptr) -} diff --git a/vendor/github.com/json-iterator/go/stream.go b/vendor/github.com/json-iterator/go/stream.go deleted file mode 100644 index 23d8a3ad6b..0000000000 --- a/vendor/github.com/json-iterator/go/stream.go +++ /dev/null @@ -1,210 +0,0 @@ -package jsoniter - -import ( - "io" -) - -// stream is a io.Writer like object, with JSON specific write functions. -// Error is not returned as return value, but stored as Error member on this stream instance. -type Stream struct { - cfg *frozenConfig - out io.Writer - buf []byte - Error error - indention int - Attachment interface{} // open for customized encoder -} - -// NewStream create new stream instance. -// cfg can be jsoniter.ConfigDefault. -// out can be nil if write to internal buffer. -// bufSize is the initial size for the internal buffer in bytes. -func NewStream(cfg API, out io.Writer, bufSize int) *Stream { - return &Stream{ - cfg: cfg.(*frozenConfig), - out: out, - buf: make([]byte, 0, bufSize), - Error: nil, - indention: 0, - } -} - -// Pool returns a pool can provide more stream with same configuration -func (stream *Stream) Pool() StreamPool { - return stream.cfg -} - -// Reset reuse this stream instance by assign a new writer -func (stream *Stream) Reset(out io.Writer) { - stream.out = out - stream.buf = stream.buf[:0] -} - -// Available returns how many bytes are unused in the buffer. -func (stream *Stream) Available() int { - return cap(stream.buf) - len(stream.buf) -} - -// Buffered returns the number of bytes that have been written into the current buffer. -func (stream *Stream) Buffered() int { - return len(stream.buf) -} - -// Buffer if writer is nil, use this method to take the result -func (stream *Stream) Buffer() []byte { - return stream.buf -} - -// SetBuffer allows to append to the internal buffer directly -func (stream *Stream) SetBuffer(buf []byte) { - stream.buf = buf -} - -// Write writes the contents of p into the buffer. -// It returns the number of bytes written. -// If nn < len(p), it also returns an error explaining -// why the write is short. -func (stream *Stream) Write(p []byte) (nn int, err error) { - stream.buf = append(stream.buf, p...) - if stream.out != nil { - nn, err = stream.out.Write(stream.buf) - stream.buf = stream.buf[nn:] - return - } - return len(p), nil -} - -// WriteByte writes a single byte. -func (stream *Stream) writeByte(c byte) { - stream.buf = append(stream.buf, c) -} - -func (stream *Stream) writeTwoBytes(c1 byte, c2 byte) { - stream.buf = append(stream.buf, c1, c2) -} - -func (stream *Stream) writeThreeBytes(c1 byte, c2 byte, c3 byte) { - stream.buf = append(stream.buf, c1, c2, c3) -} - -func (stream *Stream) writeFourBytes(c1 byte, c2 byte, c3 byte, c4 byte) { - stream.buf = append(stream.buf, c1, c2, c3, c4) -} - -func (stream *Stream) writeFiveBytes(c1 byte, c2 byte, c3 byte, c4 byte, c5 byte) { - stream.buf = append(stream.buf, c1, c2, c3, c4, c5) -} - -// Flush writes any buffered data to the underlying io.Writer. -func (stream *Stream) Flush() error { - if stream.out == nil { - return nil - } - if stream.Error != nil { - return stream.Error - } - _, err := stream.out.Write(stream.buf) - if err != nil { - if stream.Error == nil { - stream.Error = err - } - return err - } - stream.buf = stream.buf[:0] - return nil -} - -// WriteRaw write string out without quotes, just like []byte -func (stream *Stream) WriteRaw(s string) { - stream.buf = append(stream.buf, s...) -} - -// WriteNil write null to stream -func (stream *Stream) WriteNil() { - stream.writeFourBytes('n', 'u', 'l', 'l') -} - -// WriteTrue write true to stream -func (stream *Stream) WriteTrue() { - stream.writeFourBytes('t', 'r', 'u', 'e') -} - -// WriteFalse write false to stream -func (stream *Stream) WriteFalse() { - stream.writeFiveBytes('f', 'a', 'l', 's', 'e') -} - -// WriteBool write true or false into stream -func (stream *Stream) WriteBool(val bool) { - if val { - stream.WriteTrue() - } else { - stream.WriteFalse() - } -} - -// WriteObjectStart write { with possible indention -func (stream *Stream) WriteObjectStart() { - stream.indention += stream.cfg.indentionStep - stream.writeByte('{') - stream.writeIndention(0) -} - -// WriteObjectField write "field": with possible indention -func (stream *Stream) WriteObjectField(field string) { - stream.WriteString(field) - if stream.indention > 0 { - stream.writeTwoBytes(':', ' ') - } else { - stream.writeByte(':') - } -} - -// WriteObjectEnd write } with possible indention -func (stream *Stream) WriteObjectEnd() { - stream.writeIndention(stream.cfg.indentionStep) - stream.indention -= stream.cfg.indentionStep - stream.writeByte('}') -} - -// WriteEmptyObject write {} -func (stream *Stream) WriteEmptyObject() { - stream.writeByte('{') - stream.writeByte('}') -} - -// WriteMore write , with possible indention -func (stream *Stream) WriteMore() { - stream.writeByte(',') - stream.writeIndention(0) -} - -// WriteArrayStart write [ with possible indention -func (stream *Stream) WriteArrayStart() { - stream.indention += stream.cfg.indentionStep - stream.writeByte('[') - stream.writeIndention(0) -} - -// WriteEmptyArray write [] -func (stream *Stream) WriteEmptyArray() { - stream.writeTwoBytes('[', ']') -} - -// WriteArrayEnd write ] with possible indention -func (stream *Stream) WriteArrayEnd() { - stream.writeIndention(stream.cfg.indentionStep) - stream.indention -= stream.cfg.indentionStep - stream.writeByte(']') -} - -func (stream *Stream) writeIndention(delta int) { - if stream.indention == 0 { - return - } - stream.writeByte('\n') - toWrite := stream.indention - delta - for i := 0; i < toWrite; i++ { - stream.buf = append(stream.buf, ' ') - } -} diff --git a/vendor/github.com/json-iterator/go/stream_float.go b/vendor/github.com/json-iterator/go/stream_float.go deleted file mode 100644 index 826aa594ac..0000000000 --- a/vendor/github.com/json-iterator/go/stream_float.go +++ /dev/null @@ -1,111 +0,0 @@ -package jsoniter - -import ( - "fmt" - "math" - "strconv" -) - -var pow10 []uint64 - -func init() { - pow10 = []uint64{1, 10, 100, 1000, 10000, 100000, 1000000} -} - -// WriteFloat32 write float32 to stream -func (stream *Stream) WriteFloat32(val float32) { - if math.IsInf(float64(val), 0) || math.IsNaN(float64(val)) { - stream.Error = fmt.Errorf("unsupported value: %f", val) - return - } - abs := math.Abs(float64(val)) - fmt := byte('f') - // Note: Must use float32 comparisons for underlying float32 value to get precise cutoffs right. - if abs != 0 { - if float32(abs) < 1e-6 || float32(abs) >= 1e21 { - fmt = 'e' - } - } - stream.buf = strconv.AppendFloat(stream.buf, float64(val), fmt, -1, 32) -} - -// WriteFloat32Lossy write float32 to stream with ONLY 6 digits precision although much much faster -func (stream *Stream) WriteFloat32Lossy(val float32) { - if math.IsInf(float64(val), 0) || math.IsNaN(float64(val)) { - stream.Error = fmt.Errorf("unsupported value: %f", val) - return - } - if val < 0 { - stream.writeByte('-') - val = -val - } - if val > 0x4ffffff { - stream.WriteFloat32(val) - return - } - precision := 6 - exp := uint64(1000000) // 6 - lval := uint64(float64(val)*float64(exp) + 0.5) - stream.WriteUint64(lval / exp) - fval := lval % exp - if fval == 0 { - return - } - stream.writeByte('.') - for p := precision - 1; p > 0 && fval < pow10[p]; p-- { - stream.writeByte('0') - } - stream.WriteUint64(fval) - for stream.buf[len(stream.buf)-1] == '0' { - stream.buf = stream.buf[:len(stream.buf)-1] - } -} - -// WriteFloat64 write float64 to stream -func (stream *Stream) WriteFloat64(val float64) { - if math.IsInf(val, 0) || math.IsNaN(val) { - stream.Error = fmt.Errorf("unsupported value: %f", val) - return - } - abs := math.Abs(val) - fmt := byte('f') - // Note: Must use float32 comparisons for underlying float32 value to get precise cutoffs right. - if abs != 0 { - if abs < 1e-6 || abs >= 1e21 { - fmt = 'e' - } - } - stream.buf = strconv.AppendFloat(stream.buf, float64(val), fmt, -1, 64) -} - -// WriteFloat64Lossy write float64 to stream with ONLY 6 digits precision although much much faster -func (stream *Stream) WriteFloat64Lossy(val float64) { - if math.IsInf(val, 0) || math.IsNaN(val) { - stream.Error = fmt.Errorf("unsupported value: %f", val) - return - } - if val < 0 { - stream.writeByte('-') - val = -val - } - if val > 0x4ffffff { - stream.WriteFloat64(val) - return - } - precision := 6 - exp := uint64(1000000) // 6 - lval := uint64(val*float64(exp) + 0.5) - stream.WriteUint64(lval / exp) - fval := lval % exp - if fval == 0 { - return - } - stream.writeByte('.') - for p := precision - 1; p > 0 && fval < pow10[p]; p-- { - stream.writeByte('0') - } - stream.WriteUint64(fval) - for stream.buf[len(stream.buf)-1] == '0' { - stream.buf = stream.buf[:len(stream.buf)-1] - } -} diff --git a/vendor/github.com/json-iterator/go/stream_int.go b/vendor/github.com/json-iterator/go/stream_int.go deleted file mode 100644 index d1059ee4c2..0000000000 --- a/vendor/github.com/json-iterator/go/stream_int.go +++ /dev/null @@ -1,190 +0,0 @@ -package jsoniter - -var digits []uint32 - -func init() { - digits = make([]uint32, 1000) - for i := uint32(0); i < 1000; i++ { - digits[i] = (((i / 100) + '0') << 16) + ((((i / 10) % 10) + '0') << 8) + i%10 + '0' - if i < 10 { - digits[i] += 2 << 24 - } else if i < 100 { - digits[i] += 1 << 24 - } - } -} - -func writeFirstBuf(space []byte, v uint32) []byte { - start := v >> 24 - if start == 0 { - space = append(space, byte(v>>16), byte(v>>8)) - } else if start == 1 { - space = append(space, byte(v>>8)) - } - space = append(space, byte(v)) - return space -} - -func writeBuf(buf []byte, v uint32) []byte { - return append(buf, byte(v>>16), byte(v>>8), byte(v)) -} - -// WriteUint8 write uint8 to stream -func (stream *Stream) WriteUint8(val uint8) { - stream.buf = writeFirstBuf(stream.buf, digits[val]) -} - -// WriteInt8 write int8 to stream -func (stream *Stream) WriteInt8(nval int8) { - var val uint8 - if nval < 0 { - val = uint8(-nval) - stream.buf = append(stream.buf, '-') - } else { - val = uint8(nval) - } - stream.buf = writeFirstBuf(stream.buf, digits[val]) -} - -// WriteUint16 write uint16 to stream -func (stream *Stream) WriteUint16(val uint16) { - q1 := val / 1000 - if q1 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[val]) - return - } - r1 := val - q1*1000 - stream.buf = writeFirstBuf(stream.buf, digits[q1]) - stream.buf = writeBuf(stream.buf, digits[r1]) - return -} - -// WriteInt16 write int16 to stream -func (stream *Stream) WriteInt16(nval int16) { - var val uint16 - if nval < 0 { - val = uint16(-nval) - stream.buf = append(stream.buf, '-') - } else { - val = uint16(nval) - } - stream.WriteUint16(val) -} - -// WriteUint32 write uint32 to stream -func (stream *Stream) WriteUint32(val uint32) { - q1 := val / 1000 - if q1 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[val]) - return - } - r1 := val - q1*1000 - q2 := q1 / 1000 - if q2 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[q1]) - stream.buf = writeBuf(stream.buf, digits[r1]) - return - } - r2 := q1 - q2*1000 - q3 := q2 / 1000 - if q3 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[q2]) - } else { - r3 := q2 - q3*1000 - stream.buf = append(stream.buf, byte(q3+'0')) - stream.buf = writeBuf(stream.buf, digits[r3]) - } - stream.buf = writeBuf(stream.buf, digits[r2]) - stream.buf = writeBuf(stream.buf, digits[r1]) -} - -// WriteInt32 write int32 to stream -func (stream *Stream) WriteInt32(nval int32) { - var val uint32 - if nval < 0 { - val = uint32(-nval) - stream.buf = append(stream.buf, '-') - } else { - val = uint32(nval) - } - stream.WriteUint32(val) -} - -// WriteUint64 write uint64 to stream -func (stream *Stream) WriteUint64(val uint64) { - q1 := val / 1000 - if q1 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[val]) - return - } - r1 := val - q1*1000 - q2 := q1 / 1000 - if q2 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[q1]) - stream.buf = writeBuf(stream.buf, digits[r1]) - return - } - r2 := q1 - q2*1000 - q3 := q2 / 1000 - if q3 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[q2]) - stream.buf = writeBuf(stream.buf, digits[r2]) - stream.buf = writeBuf(stream.buf, digits[r1]) - return - } - r3 := q2 - q3*1000 - q4 := q3 / 1000 - if q4 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[q3]) - stream.buf = writeBuf(stream.buf, digits[r3]) - stream.buf = writeBuf(stream.buf, digits[r2]) - stream.buf = writeBuf(stream.buf, digits[r1]) - return - } - r4 := q3 - q4*1000 - q5 := q4 / 1000 - if q5 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[q4]) - stream.buf = writeBuf(stream.buf, digits[r4]) - stream.buf = writeBuf(stream.buf, digits[r3]) - stream.buf = writeBuf(stream.buf, digits[r2]) - stream.buf = writeBuf(stream.buf, digits[r1]) - return - } - r5 := q4 - q5*1000 - q6 := q5 / 1000 - if q6 == 0 { - stream.buf = writeFirstBuf(stream.buf, digits[q5]) - } else { - stream.buf = writeFirstBuf(stream.buf, digits[q6]) - r6 := q5 - q6*1000 - stream.buf = writeBuf(stream.buf, digits[r6]) - } - stream.buf = writeBuf(stream.buf, digits[r5]) - stream.buf = writeBuf(stream.buf, digits[r4]) - stream.buf = writeBuf(stream.buf, digits[r3]) - stream.buf = writeBuf(stream.buf, digits[r2]) - stream.buf = writeBuf(stream.buf, digits[r1]) -} - -// WriteInt64 write int64 to stream -func (stream *Stream) WriteInt64(nval int64) { - var val uint64 - if nval < 0 { - val = uint64(-nval) - stream.buf = append(stream.buf, '-') - } else { - val = uint64(nval) - } - stream.WriteUint64(val) -} - -// WriteInt write int to stream -func (stream *Stream) WriteInt(val int) { - stream.WriteInt64(int64(val)) -} - -// WriteUint write uint to stream -func (stream *Stream) WriteUint(val uint) { - stream.WriteUint64(uint64(val)) -} diff --git a/vendor/github.com/json-iterator/go/stream_str.go b/vendor/github.com/json-iterator/go/stream_str.go deleted file mode 100644 index 54c2ba0b3a..0000000000 --- a/vendor/github.com/json-iterator/go/stream_str.go +++ /dev/null @@ -1,372 +0,0 @@ -package jsoniter - -import ( - "unicode/utf8" -) - -// htmlSafeSet holds the value true if the ASCII character with the given -// array position can be safely represented inside a JSON string, embedded -// inside of HTML