diff --git a/.gitignore b/.gitignore index f902286dd..1c11b8186 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ -examples/terraform-provider-outscale -examples/.terraform -examples/terraform.tfstate -examples/terraform.tfstate.backup +terraform-provider-outscale +.terraform +terraform.tfstate +terraform.tfstate.backup +.terraform.lock.hcl +.terraform.tfstate.lock.info test/ .vscode/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 29af65fa2..f6c47710d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,64 @@ +0.3.0 (April 06, 2021) +======================== + +FEATURES: +--------- + +* New Data Source: outscale_flexible_gpu +* New Data Source: outscale_flexible_gpu_catalog +* New Data Source: outscale_flexible_gpus +* New Data Source: outscale_net_access_point +* New Data Source: outscale_net_access_points +* New Data Source: outscale_net_access_point_services +* New Data Source: outscale_regions +* New Data Source: outscale_subregion +* New Data Source: outscale_subregions +* New Data Source: outscale_vm_types + +* New Resource: outscale_net_access_point +* New Resource: outscale_flexible_gpu +* New Resource: outscale_flexible_gpu_link + +BUG FIXES: +---------- + +* Issue when importing the resource "outscale_load_balancer_listener_rule" (TPD-1941) +* terraform crash when "outscale_net_peering" resource cannot be found (TPD-1943) +* Create "outscale_net_access_point" resource and datasource(s) in oAPI client (TPD-1945) +* Create "outscale_flexible_gpu" resource and datasource(s) in oAPI client (TPD-1946) +* Create "outscale_flexible_gpu_link" resource in oAPI client (TPD-1947) +* Create "outscale_flexible_gpu_catalog" datasource in oAPI client (TPD-1948) +* Create "outscale_vm_types" datasource in oAPI client (TPD-1949) +* Add "outscale_regions" datasource in oAPI client (TPD-1950) +* Add "outscale_subregion" and "outscale_subregions" datasource in oAPI client (TPD-1951) +* Create "outscale_net_access_point_services" datasource in oAPI client (TPD-1952) +* "outscale_load_balancer_listener_rule" cannot be updated (TPD-1953) +* Terraform hangs when changing instance type on VMs with shutdown behaviour set to "restart" (TPD-1954) +* Terraform crash when "outscale_route_table" resource cannot be found (TPD-1960) +* "outscale_route_table" datasource(s) is not sending all filters (TPD-1961) +* terraform crash when "outscale_nat_service" resource cannot be found (TPD-1962) +* "outscale_internet_service" datasource(s) is not sending all filters (TPD-1964) +* Filters should not be mandatory in "outscale_vm_types" datasource in oAPI client (TPD-1968) +* "dhcp_options_set_id" attribute is missing in "outscale_dhcp_option" datasource(s) (TPD-1969) +* Examples rework (TPD-1970) +* Add CONTRIBUTING.md (TPD-1971) +* Integrate QA tests (TPD-1973) + + +KNOWN INCOMPATIBILITIES: +------------------------ + +* outscale_load_balancer datasource: When applying the same configuration file twice in a row (with non change), terraform asks fo the user confirmation to read the datasource again (TPD-1942). + + +NOTES: +------ + +**WARNING:** When creating access keys, the secret key is stored in the Terraform state. For security reasons, it is strongly recommended to create access keys using the API instead of the Terraform resource. For more information on how to create access keys using the API, see our [official API documentation](https://docs.outscale.com/api#3ds-outscale-api-accesskey). + +It is recommended to set tags inside the resources rather than using outscale_tag. + + 0.2.0 (November 30, 2020) ======================== diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..3c7710d65 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,47 @@ +# Opening an issue + +Feel free to open a [Github issue](https://github.com/outscale-dev/terraform-provider-outscale/issues) and explain your problem. + +Please provide at least those informations: +- terraform version +- how to reproduce the issue +- output of your command with `TF_LOG=TRACE` set (e.g. `TF_LOG=TRACE terraform apply`) +- please store large output (like traces) as as an attached file +- make sure your don't leak any sensible informations (credentials, ...) + +# Developing the Provider + +If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`. + +To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. + +```sh +$ make build +... +$ $GOPATH/bin/terraform-provider-outscale +... +``` + +In order to test the provider, you can simply run `make test`. + +```sh +$ make test +``` + +In order to run the full suite of Acceptance tests, run `make testacc`. + +*Note:* Acceptance tests create real resources, and often cost money to run. + +*Note:* The following environment variables must be set prior to run Acceptance Tests + +```sh +$ export OUTSCALE_IMAGEID="ami-xxxxxxxx" # i.e. "ami-4a7bf2b3" +$ export OUTSCALE_ACCESSKEYID="" # i.e. "XXXXXXXXXXXXXXXXXXXX" +$ export OUTSCALE_SECRETKEYID="" # i.e. "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" +$ export OUTSCALE_REGION="" # i.e. "eu-west-2" +$ export OUTSCALE_ACCOUNT="" # i.e. "XXXXXXXXXXXX" +``` + +```sh +$ make testacc +``` diff --git a/GNUmakefile b/GNUmakefile index 3ca19acfe..1ec079217 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -61,4 +61,18 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) endif @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) -.PHONY: build test testacc fmt fmtcheck lint tools test-compile website website-lint website-test +# In order to test examples, you will need to set +# - TF_VAR_access_key_id +# - TF_VAR_secret_key_id +# - TF_VAR_region +examples-test: + find ./examples -mindepth 1 -maxdepth 1 -type d | \ + while read example; do \ + cd "$$example"; \ + terraform init; \ + terraform apply -auto-approve; \ + terraform destroy -auto-approve; \ + cd ../..; \ + done\ + +.PHONY: build test testacc fmt fmtcheck lint tools test-compile website website-lint website-test examples-test diff --git a/README.md b/README.md index b7f3a65b7..8e38490de 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ terraform { required_providers { outscale = { source = "outscale-dev/outscale" - version = "0.2.0" + version = "0.3.0" } } } @@ -60,7 +60,7 @@ terraform { required_providers { outscale = { source = "outscale-dev/outscale" - version = "0.2.0" + version = "0.3.0" } } } @@ -87,64 +87,29 @@ Clone repository to: `$GOPATH/src/github.com/terraform-providers/terraform-provi ```sh $ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers -$ git clone --branch v0.2.0 https://github.com/outscale-dev/terraform-provider-outscale +$ git clone --branch v0.3.0 https://github.com/outscale-dev/terraform-provider-outscale ``` Enter the provider directory and build the provider ```sh $ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-outscale -$ go build -o terraform-provider-outscale_v0.2.0 +$ go build -o terraform-provider-outscale_v0.3.0 ``` Using the provider ---------------------- 1. Download and install [Terraform](https://www.terraform.io/downloads.html) -2. Move the plugin to the repository ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.2.0/linux_amd64/. +2. Move the plugin to the repository ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.3.0/linux_amd64/. ```shell - $ mv terraform-provider-outscale_v0.2.0 ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.2.0/linux_amd64/. + $ mv terraform-provider-outscale_v0.3.0 ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.3.0/linux_amd64/. ``` 3. Execute `terraform init` 4. Execute `terraform plan` +Issues and contributions +------------------------ - -Developing the Provider ---------------------------- - -If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`. - -To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. - -```sh -$ make build -... -$ $GOPATH/bin/terraform-provider-outscale -... -``` - -In order to test the provider, you can simply run `make test`. - -```sh -$ make test -``` - -In order to run the full suite of Acceptance tests, run `make testacc`. - -*Note:* Acceptance tests create real resources, and often cost money to run. - -*Note:* The following environment variables must be set prior to run Acceptance Tests - -```sh -$ export OUTSCALE_IMAGEID="ami-xxxxxxxx" # i.e. "ami-4a7bf2b3" -$ export OUTSCALE_ACCESSKEYID="" # i.e. "XXXXXXXXXXXXXXXXXXXX" -$ export OUTSCALE_SECRETKEYID="" # i.e. "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" -$ export OUTSCALE_REGION="" # i.e. "eu-west-2" -$ export OUTSCALE_ACCOUNT="" # i.e. "XXXXXXXXXXXX" -``` - -```sh -$ make testacc -``` +Check [CONTRIBUTING.md](./CONTRIBUTING.md) for more details. diff --git a/examples/LBU_resources_examples.tf b/examples/LBU_resources_examples.tf deleted file mode 100644 index 1e7a95c34..000000000 --- a/examples/LBU_resources_examples.tf +++ /dev/null @@ -1,251 +0,0 @@ -#---Public LBU------------------------------------------------------------------ -resource "outscale_load_balancer" "public_lbu-01" { - load_balancer_name = "lbu-01" - subregion_names = ["${var.region}a"] - listeners { - backend_port = 80 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 80 - } - listeners { - backend_port = 1024 - backend_protocol = "TCP" - load_balancer_protocol = "TCP" - load_balancer_port = 1024 - } - tags { - key = "name" - value = "public_lbu-01" - } -} -#-------------------------------------------------------------------------------- - -#---Private LBU------------------------------------------------------------------ -resource "outscale_net" "Net-01" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_route_table" "Route_Table-01" { - net_id = outscale_net.Net-01.net_id -} - -resource "outscale_security_group" "SG-1" { - description = "test group" - security_group_name = "sg1-terraform-lbu-test" - net_id = outscale_net.Net-01.net_id -} - -resource "outscale_security_group" "SG-2" { - description = "test group-2" - security_group_name = "sg2-terraform-lbu-test" - net_id = outscale_net.Net-01.net_id -} -resource "outscale_subnet" "Subnet-1" { - net_id = outscale_net.Net-01.net_id - ip_range = "10.0.0.0/24" -} - -resource "outscale_load_balancer" "internal_lbu" { - load_balancer_name = "lbu-internal" - subnets = [outscale_subnet.Subnet-1.subnet_id] - security_groups = [outscale_security_group.SG-1.id, outscale_security_group.SG-2.id] - load_balancer_type = "internal" - listeners { - backend_port = 80 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 80 - } - tags { - key = "name" - value = "internal_lbu" - } -} -#---------------------------------------------------------------------------- - -#---LBU Policies------------------------------------------------------------- -resource "outscale_load_balancer" "public_lbu-02" { - load_balancer_name = "lbu-02" - subregion_names = ["${var.region}a"] - listeners { - backend_port = 80 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 80 - } - tags { - key = "project" - value = "terraform" - } -} - -resource "outscale_load_balancer_policy" "policy-1" { - load_balancer_name = outscale_load_balancer.public_lbu-02.load_balancer_name - policy_name = "lbu-policy-1" - policy_type = "load_balancer" -} - -resource "outscale_load_balancer_policy" "policy-2" { - load_balancer_name = outscale_load_balancer.public_lbu-02.load_balancer_name - policy_name = "lbu-policy-2" - policy_type = "app" - cookie_name = "Cookie-2" -} - -#---------------------------------------------------------------------------- - -#---LBU Backend_vms--------------------------------------------------------- -resource "outscale_vm" "backend_vm" { - count = 2 - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name -} - -resource "outscale_load_balancer" "public_lbu-03" { - load_balancer_name = "lbu-03" - subregion_names = ["${var.region}a"] - listeners { - backend_port = 80 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 80 - } -} - -resource "outscale_load_balancer_vms" "backend_vms" { - load_balancer_name = outscale_load_balancer.public_lbu-03.load_balancer_name - backend_vm_ids = [outscale_vm.backend_vm[0].vm_id,outscale_vm.backend_vm[1].vm_id] -} - -data "outscale_load_balancer_vm_health" "backend_vms_health" { - load_balancer_name = outscale_load_balancer.public_lbu-03.load_balancer_name - backend_vm_ids = [outscale_vm.backend_vm[0].vm_id,outscale_vm.backend_vm[1].vm_id] -depends_on = [outscale_load_balancer_vms.backend_vms] -} - -#---------------------------------------------------------------------------- - -#---LBU Update Attributes---------------------------------------------------- - -resource "outscale_load_balancer" "public_lbu-04" { - load_balancer_name = "lbu-04" - subregion_names = ["${var.region}a"] - listeners { - backend_port = 80 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 80 - } -} - -resource "outscale_load_balancer_attributes" "attributes-health_check" { - load_balancer_name = outscale_load_balancer.public_lbu-04.load_balancer_name - health_check { - healthy_threshold = 10 - check_interval = 30 - path = "/index.html" - port = 80 - protocol = "HTTP" - timeout = 5 - unhealthy_threshold = 5 - } -} - -resource "outscale_load_balancer_attributes" "attributes-access_log" { - load_balancer_name = outscale_load_balancer.public_lbu-04.load_balancer_name - access_log { - publication_interval = 5 - is_enabled = true - osu_bucket_name = "terraform-bucket" - osu_bucket_prefix = "access-logs" - } -} - -resource "outscale_load_balancer_attributes" "attributes-listener-policy" { - load_balancer_name = outscale_load_balancer.public_lbu-04.load_balancer_name - load_balancer_port = 80 - policy_names = ["lbu-policy-3"] -depends_on =[outscale_load_balancer_policy.policy-3] -} -resource "outscale_load_balancer_policy" "policy-3" { - load_balancer_name = outscale_load_balancer.public_lbu-04.load_balancer_name - policy_name = "lbu-policy-3" - policy_type = "load_balancer" -} - -#---------------------------------------------------------------------------- - -#---LBU datasource(s)-------------------------------------------------------- - -data "outscale_load_balancer" "public_lbu-01" { - filter { - name = "load_balancer_names" - values = ["lbu-01"] - } -depends_on = [outscale_load_balancer.public_lbu-01] -} - -data "outscale_load_balancers" "public_lbus" { - filter { - name = "load_balancer_names" - values = ["lbu-01","lbu-02"] - } -depends_on = [outscale_load_balancer.public_lbu-01,outscale_load_balancer.public_lbu-02] -} - -data "outscale_load_balancer_tags" "lbu_tags" { - load_balancer_names = ["lbu-01","lbu-02"] -depends_on = [outscale_load_balancer.public_lbu-01,outscale_load_balancer.public_lbu-02] -} - -#---------------------------------------------------------------------------- - -#---Listener Rules----------------------------------------------------------- -resource "outscale_load_balancer_listener_rule" "rule-1" { - listener { - load_balancer_name = outscale_load_balancer.public_lbu-03.load_balancer_name - load_balancer_port = 80 - } - - listener_rule { - action = "forward" - listener_rule_name = "listener-rule-1" - path_pattern = "*.abc.*.abc.*.com" - priority = 10 - } - vm_ids = [outscale_vm.backend_vm[0].vm_id] -} - -resource "outscale_load_balancer_listener_rule" "rule-2" { - listener { - load_balancer_name = outscale_load_balancer.public_lbu-03.load_balancer_name - load_balancer_port = 80 - } - - listener_rule { - action = "forward" - listener_rule_name = "listener-rule-2" - host_name_pattern = "*.abc.-.abc.*.com" - priority = 1 - } - vm_ids = [outscale_vm.backend_vm[1].vm_id] -} - -data "outscale_load_balancer_listener_rule" "listener_rule" { -filter { - name = "listener_rule_names" - values = ["listener-rule-2"] - } -depends_on =[outscale_load_balancer_listener_rule.rule-2] -} - -data "outscale_load_balancer_listener_rules" "listener_rules" { -filter { - name = "listener_rule_names" - values = ["listener-rule-2","listener-rule-1"] - } -depends_on =[outscale_load_balancer_listener_rule.rule-2,outscale_load_balancer_listener_rule.rule-1] -} -#---------------------------------------------------------------------------- diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 000000000..573f1c4c4 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,31 @@ +# Outscale terraform examples + +This folder contains a number of examples to show how to use Outscale provider for terraform. + +# How to test examples + +First, make sure you have [installed terraform](https://www.terraform.io/downloads.html) > 0.13.x. + +Each folder is self-contained example. +You will need to setup your credentials through environement variables: +```bash +export TF_VAR_access_key_id="myaccesskey" +export TF_VAR_secret_key_id="mysecretkey" +export TF_VAR_region="eu-west-2" +``` + +If you want to write your credentials in terraform variables, just edit `terraform.tfvars` file. + +Once your credentials are configured, you can go to any example folder and test them: +```bash +cd volume +terraform init +# Check plan before applying +terraform plan +# Create volume +terraform apply +# Re-run plan to check that infrastructure is up-to-date +terraform plan +# Clean ressources +terraform destroy +``` diff --git a/examples/keypair/keypair.tf b/examples/keypair/keypair.tf new file mode 100644 index 000000000..1fcd9bff7 --- /dev/null +++ b/examples/keypair/keypair.tf @@ -0,0 +1,14 @@ +resource "tls_private_key" "my_key" { + algorithm = "RSA" + rsa_bits = "2048" +} + +resource "local_file" "my_key" { + filename = "${path.module}/my_key.pem" + content = tls_private_key.my_key.private_key_pem + file_permission = "0600" +} + +resource "outscale_keypair" "my_keypair" { + public_key = tls_private_key.my_key.public_key_openssh +} diff --git a/examples/keypair/outscale.tf b/examples/keypair/outscale.tf new file mode 100644 index 000000000..d86d61953 --- /dev/null +++ b/examples/keypair/outscale.tf @@ -0,0 +1,14 @@ +terraform { + required_providers { + outscale = { + source = "outscale-dev/outscale" + version = "0.2.0" + } + } +} + +provider "outscale" { + access_key_id = var.access_key_id + secret_key_id = var.secret_key_id + region = var.region +} diff --git a/examples/keypair/terraform.tfvars b/examples/keypair/terraform.tfvars new file mode 100644 index 000000000..c0f36d1a1 --- /dev/null +++ b/examples/keypair/terraform.tfvars @@ -0,0 +1,3 @@ +#access_key_id = "MyAccessKey" +#secret_key_id = "MySecretKey" +#region = "eu-west-2" diff --git a/examples/keypair/variables.tf b/examples/keypair/variables.tf new file mode 100644 index 000000000..51ea18582 --- /dev/null +++ b/examples/keypair/variables.tf @@ -0,0 +1,3 @@ +variable "access_key_id" {} +variable "secret_key_id" {} +variable "region" {} diff --git a/examples/main.tf b/examples/main.tf deleted file mode 100644 index 21a85bff7..000000000 --- a/examples/main.tf +++ /dev/null @@ -1,956 +0,0 @@ -#---001------------------------------------------------------------------ -resource "outscale_vm" "vm001" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [var.security_group_id] - placement_subregion_name = "${var.region}a" - placement_tenancy = "default" - tags { - key = "name" - value = "Vm001" - } -} - -#------------------------------------------------------------------------ - -#---002------------------------------------------------------------------ -resource "outscale_vm" "vm002" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_names = [var.security_group_name] - placement_subregion_name = "${var.region}a" - placement_tenancy = "default" -} - -#------------------------------------------------------------------------ - -#---003------------------------------------------------------------------ -resource "outscale_vm" "vm003" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [var.security_group_id] -} - -data "outscale_vm" "vm_003d" { - filter { - name = "vm_ids" - values = [outscale_vm.vm003.vm_id] - } -} - -#------------------------------------------------------------------------ - -#---004------------------------------------------------------------------ -resource "outscale_vm" "vm004" { - count = 2 - - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [var.security_group_id] -} - -data "outscale_vm" "outscale_vm004_0d" { - filter { - name = "vm_ids" - values = [outscale_vm.vm004[0].vm_id] - } -} - -data "outscale_vm" "outscale_vm_004_1d" { - filter { - name = "vm_ids" - values = [outscale_vm.vm004[1].vm_id] - } -} - -#------------------------------------------------------------------------ - -#---005------------------------------------------------------------------ -resource "outscale_net" "net005" { - ip_range = "10.0.0.0/16" - tags { - key = "name" - value = "Net005" - } -} - -resource "outscale_subnet" "subnet005" { - subregion_name = "${var.region}a" - ip_range = "10.0.0.0/16" - net_id = outscale_net.net005.net_id -} - -resource "outscale_security_group" "security_group005" { - count = 1 - - description = "test group005" - security_group_name = "sg1-test-group_test-net005" - net_id = outscale_net.net005.net_id -} - -resource "outscale_vm" "outscale_vm005" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [outscale_security_group.security_group005[0].security_group_id] - placement_subregion_name = "${var.region}a" - placement_tenancy = "default" - - #is_source_dest_checked = true - subnet_id = outscale_subnet.subnet005.subnet_id -} - -#------------------------------------------------------------------------ - -#---006------------------------------------------------------------------ -resource "outscale_vm" "vm006" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [var.security_group_id] - #placement_subregion_name = "${var.region}a" - #placement_tenancy = "default" -} - -data "outscale_vm_state" "vm_state006d" { - filter { - name = "vm_ids" - values = [outscale_vm.vm006.vm_id] - } -} - -#------------------------------------------------------------------------ - -#---007------------------------------------------------------------------ -resource "outscale_public_ip" "public_ip007" { -tags { - key = "name" - value = "public_ip007" - } -} - -#------------------------------------------------------------------------ - -#---008------------------------------------------------------------------ -resource "outscale_public_ip" "public_ip008" { -} - -data "outscale_public_ip" "public_ip008d" { - filter { - name = "public_ips" - values = [outscale_public_ip.public_ip008.public_ip] - } -} - -#------------------------------------------------------------------------ - -#---009------------------------------------------------------------------ -resource "outscale_public_ip" "public_ip009" { -} - -resource "outscale_vm" "vm009" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [var.security_group_id] -} - -resource "outscale_public_ip_link" "public_ip_link009" { - vm_id = outscale_vm.vm009.vm_id - public_ip = outscale_public_ip.public_ip009.public_ip -} - -#------------------------------------------------------------------------ - -#---010------------------------------------------------------------------ -resource "outscale_volume" "volume010" { - subregion_name = "${var.region}a" - size = 10 -} - -#------------------------------------------------------------------------ - -#---011------------------------------------------------------------------ -resource "outscale_volume" "volume011" { - subregion_name = "${var.region}a" - size = 10 - iops = 100 - volume_type = "io1" -} - -#------------------------------------------------------------------------ - -#---012------------------------------------------------------------------ -resource "outscale_volume" "volume012" { - subregion_name = "${var.region}a" - size = 10 - snapshot_id = var.snapshot_id - tags { - key = "name" - value = "Volume012" - } -} - -#------------------------------------------------------------------------ - -#---013------------------------------------------------------------------ -resource "outscale_volume" "volume013" { - subregion_name = "${var.region}a" - size = 10 - iops = 100 - volume_type = "io1" - tags { - key = "type" - value = "io1" - } -} - -data "outscale_volume" "outscale_volume014d" { - filter { - name = "volume_ids" - values = [outscale_volume.volume013.volume_id] - } -} - -#------------------------------------------------------------------------ - -#---015------------------------------------------------------------------ -resource "outscale_volume" "volume015" { - subregion_name = "${var.region}a" - size = 40 -} - -resource "outscale_vm" "vm015" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [var.security_group_id] -} - -resource "outscale_volumes_link" "volumes_link015" { - device_name = "/dev/xvdc" - volume_id = outscale_volume.volume015.id - vm_id = outscale_vm.vm015.id -} - -#------------------------------------------------------------------------ - -#---016------------------------------------------------------------------ -resource "outscale_internet_service" "internet_service016" { - tags { - key = "name" - value = "internet_service016" - } -} - -#------------------------------------------------------------------------ - -#---017------------------------------------------------------------------ -resource "outscale_internet_service" "internet_service017" { -} - -data "outscale_internet_service" "internet_service017d" { - filter { - name = "internet_service_ids" - values = [outscale_internet_service.internet_service017.internet_service_id] - } -} - -#------------------------------------------------------------------------ - -#---018------------------------------------------------------------------ -resource "outscale_internet_service_link" "internet_service_link018" { - internet_service_id = outscale_internet_service.internet_service018.internet_service_id - net_id = outscale_net.net018.net_id -} - -resource "outscale_net" "net018" { - ip_range = "10.0.0.0/18" -} - -resource "outscale_internet_service" "internet_service018" { -} - -#------------------------------------------------------------------------ - -#---019------------------------------------------------------------------ -resource "outscale_net" "net019" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_subnet" "subnet019" { - net_id = outscale_net.net019.net_id - ip_range = "10.0.0.0/18" -} - -resource "outscale_public_ip" "public_ip019" { -} - - -resource "outscale_route_table" "route_table019" { - net_id = outscale_net.net019.net_id -} - -resource "outscale_route_table_link" "route_table_link019" { - subnet_id = outscale_subnet.subnet019.subnet_id - route_table_id = outscale_route_table.route_table019.id -} - -resource "outscale_internet_service" "internet_service019" { -} - -resource "outscale_internet_service_link" "internet_service_link019" { - net_id = outscale_net.net019.net_id - internet_service_id = outscale_internet_service.internet_service019.id -} - -resource "outscale_route" "route019" { - destination_ip_range = "0.0.0.0/0" - gateway_id = outscale_internet_service.internet_service019.internet_service_id - route_table_id = outscale_route_table.route_table019.route_table_id -} - -resource "outscale_nat_service" "nat_service019" { - depends_on = [outscale_route.route019,outscale_route_table_link.route_table_link019] - subnet_id = outscale_subnet.subnet019.subnet_id - public_ip_id = outscale_public_ip.public_ip019.public_ip_id - tags { - key = "Natservice" - value = "019" - } -} - -data "outscale_nat_service" "nat_service019" { - filter { - name = "nat_service_ids" - values = [outscale_nat_service.nat_service019.nat_service_id] - } -} - -#------------------------------------------------------------------------ - -#---020------------------------------------------------------------------ -resource "outscale_net" "net020" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_subnet" "subnet020" { - net_id = outscale_net.net020.net_id - ip_range = "10.0.0.0/18" -} - -#------------------------------------------------------------------------ - -#------------------------------------------------------------------------ -#TODO outscale_route_table -resource "outscale_net" "outscale_net50" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_route_table" "outscale_route_table51" { - net_id = outscale_net.outscale_net50.net_id - tags { - key = "name" - value = "outscale_route_table51" - } -} - -data "outscale_route_table" "outscale_route_table51" { - filter { - name = "route_table_ids" - values = [outscale_route_table.outscale_route_table51.route_table_id] - } -} - -#------------------------------------------------------------------------ -#TODO outscale_route_table_link (1) - -resource "outscale_subnet" "outscale_subnet52" { - net_id = outscale_net.outscale_net50.net_id - ip_range = "10.0.0.0/18" -} - -resource "outscale_route_table_link" "outscale_route_table_link53" { - route_table_id = outscale_route_table.outscale_route_table51.route_table_id - subnet_id = outscale_subnet.outscale_subnet52.subnet_id -} - -#------------------------------------------------------------------------ - - -resource "outscale_internet_service" "outscale_internet_service54" { -} - -resource "outscale_internet_service_link" "outscale_internet_service_link54" { - internet_service_id = outscale_internet_service.outscale_internet_service54.internet_service_id - net_id = outscale_net.outscale_net50.net_id -} - -resource "outscale_route" "outscale_route55" { - gateway_id = outscale_internet_service.outscale_internet_service54.id - destination_ip_range = "20.0.0.0/16" - route_table_id = outscale_route_table.outscale_route_table51.route_table_id -} - -#------------------------------------------------------------------------ - -#---024------------------------------------------------------------------ -resource "outscale_net" "net024" { - ip_range = "10.0.0.0/16" - - tags { - key = "Name" - value = "outscale_net_resource" - } - tags { - key = "VerSion" - value = "1Q84" - } -} - -data "outscale_net" "net024d" { - filter { - name = "net_ids" - values = [outscale_net.net024.net_id] - } -} - -#------------------------------------------------------------------------ - -#---025------------------------------------------------------------------ -resource "outscale_net" "net025" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_dhcp_option" "outscale_dhcp_option025" { -domain_name= "test-outscale" - tags { - key ="Name" - value = "dhcp_option025" - } -} - -resource "outscale_net_attributes" "net_attributes025" { - net_id = outscale_net.net025.net_id - dhcp_options_set_id = outscale_dhcp_option.outscale_dhcp_option025.dhcp_options_set_id -} - -data "outscale_net_attributes" "net_attributes025d" { - net_id = outscale_net.net025.net_id -} - -data "outscale_dhcp_option" "outscale_dhcp_option025d" { -filter { - name = "dhcp_options_set_ids" - values = [outscale_dhcp_option.outscale_dhcp_option025.dhcp_options_set_id] - } -} - -#------------------------------------------------------------------------ - -#---026------------------------------------------------------------------ -#TODO outscale_net_peering -#------------------------------------------------------------------------ -resource "outscale_net" "outscale_net56" { - ip_range = "10.10.0.0/24" -} - -resource "outscale_net" "outscale_net57" { - ip_range = "10.31.0.0/16" -} - -resource "outscale_net_peering" "outscale_net_peering58" { - accepter_net_id = outscale_net.outscale_net56.net_id - source_net_id = outscale_net.outscale_net57.net_id - tags { - key = "name" - value = "outscale_net_peering58" - } -} - -#---027------------------------------------------------------------------ - -resource "outscale_net_peering_acceptation" "outscale_net_peering_acceptation58" { - net_peering_id = outscale_net_peering.outscale_net_peering58.net_peering_id -} - -#------------------------------------------------------------------------ - -#---021------------------------------------------------------------------ -data "outscale_image" "image021" { - filter { - name = "image_ids" - values = [var.image_id] - } -} - -#------------------------------------------------------------------------ - -#---022------------------------------------------------------------------ -resource "outscale_image" "image022" { - image_name = "terraform test for image attributes" - vm_id = var.vm_id - no_reboot = "true" -} - -#------------------------------------------------------------------------ - -#---023------------------------------------------------------------------ -resource "outscale_vm" "vm023" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - security_group_ids = [var.security_group_id] -} - -resource "outscale_image" "image023" { - image_name = "terraform test image launch permission" - vm_id = outscale_vm.vm023.vm_id - no_reboot = "true" -} - -resource "outscale_image_launch_permission" "image_launch_permission023" { - image_id = outscale_image.image023.image_id - - permission_additions { - account_ids = [var.account_id] - } -} - -#------------------------------------------------------------------------ - -#---028------------------------------------------------------------------ -resource "outscale_keypair" "keypair028" { - keypair_name = "keyname_test_ford028" -} - -data "outscale_keypair" "keypair028d" { - filter { - name = "keypair_names" - values = [outscale_keypair.keypair028.keypair_name] - } -} - -#------------------------------------------------------------------------ - -#---029------------------------------------------------------------------ -resource "outscale_keypair" "keypair029" { - keypair_name = "keyname_test_import029" - public_key = file("keypair_public_test.pub") -} - -#------------------------------------------------------------------------ - -#---030------------------------------------------------------------------ -resource "outscale_net" "net030" { - ip_range = "10.0.0.0/16" - - tags { - key = "Name" - value = "outscale_net_resource030" - } -} - -data "outscale_security_group" "security_group030d" { - filter { - name = "security_group_ids" - values = [outscale_security_group.security_group030.security_group_id] - } -} - -resource "outscale_security_group" "security_group030" { - description = "test group" - security_group_name = "sg1-test-group_test-d030" - net_id = outscale_net.net030.net_id -} - -#------------------------------------------------------------------------ - -#---031------------------------------------------------------------------ -resource "outscale_security_group" "security_group031" { - description = "test group031" - security_group_name = "sg1-test-group_test031" -} - -resource "outscale_security_group_rule" "security_group_rule031" { - flow = "Inbound" - security_group_id = outscale_security_group.security_group031.id - - from_port_range = "0" - to_port_range = "0" - - #ip_protocol = "-1" - ip_protocol = "tcp" - ip_range = "0.0.0.0/0" -} - -#------------------------------------------------------------------------ - -#---032------------------------------------------------------------------ -resource "outscale_net" "net032" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_subnet" "subnet032" { - subregion_name = "${var.region}a" - ip_range = "10.0.0.0/16" - net_id = outscale_net.net032.net_id -} - -resource "outscale_nic" "nic032" { - subnet_id = outscale_subnet.subnet032.subnet_id -} - - -#------------------------------------------------------------------------ - -#---033------------------------------------------------------------------ -resource "outscale_volume" "volume033" { - subregion_name = "${var.region}a" - size = 40 -} - -resource "outscale_snapshot" "snapshot033" { - volume_id = outscale_volume.volume033.volume_id -} - -data "outscale_snapshot" "snapshot033d" { - filter { - name = "snapshot_ids" - values = [outscale_snapshot.snapshot033.snapshot_id] - } -} - -#------------------------------------------------------------------------ - -#---034------------------------------------------------------------------ -resource "outscale_volume" "volume034" { - subregion_name = "${var.region}a" - size = 40 -} - -resource "outscale_snapshot" "snapshot034" { - volume_id = outscale_volume.volume034.volume_id -} - -resource "outscale_snapshot_attributes" "snapshot_attributes034" { - snapshot_id = outscale_snapshot.snapshot034.snapshot_id - permissions_to_create_volume_additions { - account_ids = [var.account_id] - } -} - -data "outscale_snapshot" "snapshot034d" { - depends_on = [outscale_snapshot_attributes.snapshot_attributes034] - snapshot_id = outscale_snapshot.snapshot034.snapshot_id -} - -#------------------------------------------------------------------------ - -#---035------------------------------------------------------------------ - -resource "outscale_net" "net035" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_subnet" "subnet035" { - subregion_name = "${var.region}a" - ip_range = "10.0.0.0/24" - net_id = outscale_net.net035.net_id -} - -resource "outscale_nic" "nic035" { - subnet_id = outscale_subnet.subnet035.subnet_id -} - -resource "outscale_nic_private_ip" "nic_private_ip35" { - nic_id = outscale_nic.nic035.nic_id - private_ips = ["10.0.0.67"] -} - -#------------------------------------------------------------------------ - -#---036------------------------------------------------------------------ - -resource "outscale_net" "net036" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_subnet" "subnet036" { - subregion_name = "${var.region}a" - ip_range = "10.0.0.0/24" - net_id = outscale_net.net036.net_id -} - -resource "outscale_nic" "nic036" { - subnet_id = outscale_subnet.subnet036.subnet_id -} -resource "outscale_vm" "vm036" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - subnet_id = outscale_subnet.subnet036.subnet_id -} - - -resource "outscale_nic_link" "nic_link036" { - device_number = "1" - vm_id = outscale_vm.vm036.vm_id - nic_id = outscale_nic.nic036.nic_id -} - - -#------------------------- -#—037------------------------------------------------------------------ -resource "outscale_vm" "outscale_vm37" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name - block_device_mappings { - device_name = "/dev/sda1" # resizing bootdisk volume - bsu { - volume_size = "100" - volume_type = "gp2" - delete_on_vm_deletion = "true" - } - } - block_device_mappings { - device_name = "/dev/sdb" - bsu { - volume_size=30 - volume_type = "io1" - iops = 150 - snapshot_id = var.snapshot_id - delete_on_vm_deletion = false - } - } - tags { - key = "name" - value = "VM with multiple Block Device Mappings" - } -} - -#------------------------- - -#---038------------------------------------------------------------------ - -resource "outscale_net" "outscale_net38" { - ip_range = "10.0.0.0/16" -} - -resource "outscale_subnet" "outscale_subnet38" { - net_id = outscale_net.outscale_net38.net_id - ip_range = "10.0.0.0/24" - subregion_name = "${var.region}a" -} - -resource "outscale_security_group" "outscale_security_group38" { - description = "test vm with nic" - security_group_name = "private-sg-1" - net_id = outscale_net.outscale_net38.net_id -} - - -resource "outscale_nic" "outscale_nic38" { - subnet_id = outscale_subnet.outscale_subnet38.subnet_id -} - -resource "outscale_vm" "outscale_vm38" { - image_id = var.image_id - vm_type = "tinav4.c4r4p2" - keypair_name = var.keypair_name - nics { - subnet_id = outscale_subnet.outscale_subnet38.subnet_id - security_group_ids = [outscale_security_group.outscale_security_group38.security_group_id] - private_ips { - private_ip ="10.0.0.123" - is_primary = true - } - device_number = "0" - delete_on_vm_deletion = true - } - nics { - nic_id =outscale_nic.outscale_nic38.nic_id - device_number = "1" - } -} - -#------------------------- - -#---039------------------------------------------------------------------ - -resource "outscale_net" "outscale_net39" { - ip_range = "10.0.0.0/16" - - tags { - key = "Name" - value = "outscale_net_resource-39" - } -} - -resource "outscale_security_group" "outscale_security_group39_1" { - description = "test rules" - security_group_name = "terraform-SG-39_1" - net_id = outscale_net.outscale_net39.net_id - tags { - key = "Name" - value = "outscale_sg39_1" - } -} - -resource "outscale_security_group" "outscale_security_group39_2" { - description = "test rules" - security_group_name = "terraform-SG-39_2" - net_id = outscale_net.outscale_net39.net_id - tags { - key = "Name" - value = "outscale_sg39_2" - } -} - -resource "outscale_security_group_rule" "outscale_security_group_rule39_1" { - flow = "Outbound" - security_group_id = outscale_security_group.outscale_security_group39_1.id - rules { - from_port_range = "22" - to_port_range = "22" - ip_protocol = "tcp" - security_groups_members { - account_id = var.account_id - security_group_id = outscale_security_group.outscale_security_group39_2.id - } - } -} - -resource "outscale_security_group_rule" "outscale_security_group_rule39_2" { - flow = "Inbound" - security_group_id = outscale_security_group.outscale_security_group39_1.id - rules { - from_port_range = "8080" - to_port_range = "8080" - ip_protocol = "tcp" - security_groups_members { - account_id = var.account_id - security_group_id = outscale_security_group.outscale_security_group39_2.id - } - } -} - -#------------------------- - -#---040------------------------------------------------------------------ - - - -resource "outscale_client_gateway" "outscale_client_gateway_040" { - bgp_asn = 51 - public_ip = "192.168.0.1" - connection_type = "ipsec.1" - tags { - key = "Name" - value = "client_gateway_040" - } -} - -resource "outscale_virtual_gateway" "outscale_virtual_gateway_040" { - connection_type = "ipsec.1" - tags { - key = "Name" - value = "virtual_gateway_040" - } -} - - -resource "outscale_vpn_connection" "outscale_vpn_connection_40" { - client_gateway_id = outscale_client_gateway.outscale_client_gateway_040.client_gateway_id - virtual_gateway_id = outscale_virtual_gateway.outscale_virtual_gateway_040.virtual_gateway_id - connection_type = "ipsec.1" - static_routes_only = true - tags { - key = "Name" - value = "vpn_connection_40" - } -} - -resource "outscale_vpn_connection_route" "outscale_vpn_connection_route_040" { - vpn_connection_id = outscale_vpn_connection.outscale_vpn_connection_40.vpn_connection_id - destination_ip_range = "30.0.0.0/16" - } - -data "outscale_client_gateway" "outscale_client_gateway_040d" { - filter { - name = "client_gateway_ids" - values = [outscale_client_gateway.outscale_client_gateway_040.client_gateway_id] - } -} - -data "outscale_vpn_connection" "outscale_vpn_connection_40d" { -filter { - name = "vpn_connection_ids" - values = [outscale_vpn_connection.outscale_vpn_connection_40.vpn_connection_id] - } -} - -#------------------------- - -#---041------------------------------------------------------------------ -resource "outscale_net" "outscale_net_041" { - ip_range = "10.0.0.0/16" - - tags { - key = "Name" - value = "outscale_net_resource-041" - } -} - -resource "outscale_virtual_gateway" "outscale_virtual_gateway_041" { - connection_type = "ipsec.1" - tags { - key = "Name" - value = "virtual_gateway_041" - } -} - -resource "outscale_virtual_gateway_link" "outscale_virtual_gateway_link_041" { - virtual_gateway_id = outscale_virtual_gateway.outscale_virtual_gateway_040.virtual_gateway_id - net_id = outscale_net.outscale_net_041.net_id -} - -resource "outscale_route_table" "outscale_route_table_041" { - net_id = outscale_net.outscale_net_041.net_id - tags { - key = "Name" - value = "route_table_041" - } -} - -resource "outscale_virtual_gateway_route_propagation" "outscale_virtual_gateway_route_propagation_041" { - enable = true - virtual_gateway_id = outscale_virtual_gateway_link.outscale_virtual_gateway_link_041.virtual_gateway_id - route_table_id = outscale_route_table.outscale_route_table_041.route_table_id -} - -data "outscale_virtual_gateway" "outscale_virtual_gateway_041d" { -filter { - name = "virtual_gateway_ids" - values = [outscale_virtual_gateway.outscale_virtual_gateway_041.virtual_gateway_id] - } -} - #------------------------- - - #---042------------------------------------------------------------------ - resource "outscale_access_key" "outscale_access_key_042"{ - - } - -data "outscale_access_key" "outscale_access_key_042d"{ - filter { - name ="access_key_ids" - values = [outscale_access_key.outscale_access_key_042.access_key_id] - } -} - diff --git a/examples/net/net.tf b/examples/net/net.tf new file mode 100644 index 000000000..03d8ff3ed --- /dev/null +++ b/examples/net/net.tf @@ -0,0 +1,3 @@ +resource "outscale_net" "my_net" { + ip_range = var.net_ip_range +} diff --git a/examples/net/outscale.tf b/examples/net/outscale.tf new file mode 100644 index 000000000..d86d61953 --- /dev/null +++ b/examples/net/outscale.tf @@ -0,0 +1,14 @@ +terraform { + required_providers { + outscale = { + source = "outscale-dev/outscale" + version = "0.2.0" + } + } +} + +provider "outscale" { + access_key_id = var.access_key_id + secret_key_id = var.secret_key_id + region = var.region +} diff --git a/examples/net/subnet.tf b/examples/net/subnet.tf new file mode 100644 index 000000000..0d1c68a90 --- /dev/null +++ b/examples/net/subnet.tf @@ -0,0 +1,5 @@ +resource "outscale_subnet" "my_subnet" { + net_id = outscale_net.my_net.net_id + ip_range = var.subnet_ip_range + subregion_name = "${var.region}a" +} diff --git a/examples/net/terraform.tfvars b/examples/net/terraform.tfvars new file mode 100644 index 000000000..9ce139b16 --- /dev/null +++ b/examples/net/terraform.tfvars @@ -0,0 +1,6 @@ +#access_key_id = "MyAccessKey" +#secret_key_id = "MySecretKey" +#region = "eu-west-2" + +net_ip_range = "10.0.0.0/16" +subnet_ip_range = "10.0.0.0/24" diff --git a/examples/net/variables.tf b/examples/net/variables.tf new file mode 100644 index 000000000..d26e9737c --- /dev/null +++ b/examples/net/variables.tf @@ -0,0 +1,6 @@ +variable "access_key_id" {} +variable "secret_key_id" {} +variable "region" {} + +variable "net_ip_range" {} +variable "subnet_ip_range" {} diff --git a/examples/net_vm/README.md b/examples/net_vm/README.md new file mode 100644 index 000000000..9d110cb9f --- /dev/null +++ b/examples/net_vm/README.md @@ -0,0 +1,10 @@ +This more complex example shows how to create a VM in a Net (VPC). + +- net, subnet, internet_service +- routes table and default route +- client-side generated keypair +- security group and rules +- public IP + +It will also generate a `connect.sh` script to ease your connection. +Once `terraform apply` done, VM will need some time to boot before beeing able to connect. diff --git a/examples/net_vm/internet_service.tf b/examples/net_vm/internet_service.tf new file mode 100644 index 000000000..01f0357a7 --- /dev/null +++ b/examples/net_vm/internet_service.tf @@ -0,0 +1,7 @@ +resource "outscale_internet_service" "my_internet_service" { +} + +resource "outscale_internet_service_link" "my_internet_service_link" { + internet_service_id = outscale_internet_service.my_internet_service.internet_service_id + net_id = outscale_net.my_net.net_id +} diff --git a/examples/net_vm/keypair.tf b/examples/net_vm/keypair.tf new file mode 100644 index 000000000..1fcd9bff7 --- /dev/null +++ b/examples/net_vm/keypair.tf @@ -0,0 +1,14 @@ +resource "tls_private_key" "my_key" { + algorithm = "RSA" + rsa_bits = "2048" +} + +resource "local_file" "my_key" { + filename = "${path.module}/my_key.pem" + content = tls_private_key.my_key.private_key_pem + file_permission = "0600" +} + +resource "outscale_keypair" "my_keypair" { + public_key = tls_private_key.my_key.public_key_openssh +} diff --git a/examples/net_vm/net.tf b/examples/net_vm/net.tf new file mode 100644 index 000000000..03d8ff3ed --- /dev/null +++ b/examples/net_vm/net.tf @@ -0,0 +1,3 @@ +resource "outscale_net" "my_net" { + ip_range = var.net_ip_range +} diff --git a/examples/net_vm/outscale.tf b/examples/net_vm/outscale.tf new file mode 100644 index 000000000..d86d61953 --- /dev/null +++ b/examples/net_vm/outscale.tf @@ -0,0 +1,14 @@ +terraform { + required_providers { + outscale = { + source = "outscale-dev/outscale" + version = "0.2.0" + } + } +} + +provider "outscale" { + access_key_id = var.access_key_id + secret_key_id = var.secret_key_id + region = var.region +} diff --git a/examples/net_vm/public_ip.tf b/examples/net_vm/public_ip.tf new file mode 100644 index 000000000..6c40cccef --- /dev/null +++ b/examples/net_vm/public_ip.tf @@ -0,0 +1,7 @@ +resource "outscale_public_ip" "my_public_ip" { +} + +resource "outscale_public_ip_link" "my_public_ip_link" { + vm_id = outscale_vm.my_vm.vm_id + public_ip = outscale_public_ip.my_public_ip.public_ip +} diff --git a/examples/net_vm/route_table.tf b/examples/net_vm/route_table.tf new file mode 100644 index 000000000..fb21c1d81 --- /dev/null +++ b/examples/net_vm/route_table.tf @@ -0,0 +1,14 @@ +resource "outscale_route_table" "my_route_table" { + net_id = outscale_net.my_net.net_id +} + +resource "outscale_route_table_link" "my_route_table_link" { + subnet_id = outscale_subnet.my_subnet.subnet_id + route_table_id = outscale_route_table.my_route_table.route_table_id +} + +resource "outscale_route" "my_default_route" { + destination_ip_range = "0.0.0.0/0" + gateway_id = outscale_internet_service.my_internet_service.internet_service_id + route_table_id = outscale_route_table.my_route_table.route_table_id +} diff --git a/examples/net_vm/security_group.tf b/examples/net_vm/security_group.tf new file mode 100644 index 000000000..3d84d0ab0 --- /dev/null +++ b/examples/net_vm/security_group.tf @@ -0,0 +1,15 @@ +resource "outscale_security_group" "my_sg" { + description = "test security group" + net_id = outscale_net.my_net.net_id +} + +resource "outscale_security_group_rule" "my_sg_rule" { + flow = "Inbound" + security_group_id = outscale_security_group.my_sg.id + rules { + from_port_range = "22" + to_port_range = "22" + ip_protocol = "tcp" + ip_ranges = var.allowed_cidr + } +} diff --git a/examples/net_vm/subnet.tf b/examples/net_vm/subnet.tf new file mode 100644 index 000000000..52c10900e --- /dev/null +++ b/examples/net_vm/subnet.tf @@ -0,0 +1,5 @@ +resource "outscale_subnet" "my_subnet" { + net_id = outscale_net.my_net.net_id + ip_range = var.subnet_ip_range + subregion_name = "${var.region}a" +} diff --git a/examples/net_vm/terraform.tfvars b/examples/net_vm/terraform.tfvars new file mode 100644 index 000000000..268e5fba3 --- /dev/null +++ b/examples/net_vm/terraform.tfvars @@ -0,0 +1,9 @@ +#access_key_id = "MyAccessKey" +#secret_key_id = "MySecretKey" +#region = "eu-west-2" + +image_id = "ami-cdfcddb7" # Ubuntu-20.04-2021.02.10-5 on eu-west-2 +vm_type = "tinav4.c1r1p2" +allowed_cidr = ["0.0.0.0/0"] +net_ip_range = "10.0.0.0/16" +subnet_ip_range = "10.0.0.0/24" diff --git a/examples/net_vm/variables.tf b/examples/net_vm/variables.tf new file mode 100644 index 000000000..54e4293c1 --- /dev/null +++ b/examples/net_vm/variables.tf @@ -0,0 +1,11 @@ +variable "access_key_id" {} +variable "secret_key_id" {} +variable "region" {} + +variable "image_id" {} +variable "vm_type" {} +variable "allowed_cidr" { + type = list(string) +} +variable "net_ip_range" {} +variable "subnet_ip_range" {} diff --git a/examples/net_vm/vm.tf b/examples/net_vm/vm.tf new file mode 100644 index 000000000..376d87020 --- /dev/null +++ b/examples/net_vm/vm.tf @@ -0,0 +1,21 @@ +resource "outscale_vm" "my_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = outscale_keypair.my_keypair.keypair_name + security_group_ids = [outscale_security_group.my_sg.security_group_id] + subnet_id = outscale_subnet.my_subnet.subnet_id + + tags { + key = "osc.fcu.eip.auto-attach" + value = outscale_public_ip.my_public_ip.public_ip + } +} + +resource "local_file" "connect_script" { + filename = "${path.module}/connect.sh" + file_permission = "0770" + content = <Node ${node_number}" > $dest +chmod a+r $dest diff --git a/examples/public_vm/README.md b/examples/public_vm/README.md new file mode 100644 index 000000000..8f205eb67 --- /dev/null +++ b/examples/public_vm/README.md @@ -0,0 +1,9 @@ +This more complex example shows how to create a public VM with: +- client-side generated keypair +- security group and rules +- public IP +- resized bootdisk volume +- additional volume attached + +It will also generate a `connect.sh` script to ease your connection. +Once `terraform apply` done, VM will need some time to boot before beeing able to connect. diff --git a/examples/public_vm/keypair.tf b/examples/public_vm/keypair.tf new file mode 100644 index 000000000..1fcd9bff7 --- /dev/null +++ b/examples/public_vm/keypair.tf @@ -0,0 +1,14 @@ +resource "tls_private_key" "my_key" { + algorithm = "RSA" + rsa_bits = "2048" +} + +resource "local_file" "my_key" { + filename = "${path.module}/my_key.pem" + content = tls_private_key.my_key.private_key_pem + file_permission = "0600" +} + +resource "outscale_keypair" "my_keypair" { + public_key = tls_private_key.my_key.public_key_openssh +} diff --git a/examples/public_vm/outscale.tf b/examples/public_vm/outscale.tf new file mode 100644 index 000000000..d86d61953 --- /dev/null +++ b/examples/public_vm/outscale.tf @@ -0,0 +1,14 @@ +terraform { + required_providers { + outscale = { + source = "outscale-dev/outscale" + version = "0.2.0" + } + } +} + +provider "outscale" { + access_key_id = var.access_key_id + secret_key_id = var.secret_key_id + region = var.region +} diff --git a/examples/public_vm/public_ip.tf b/examples/public_vm/public_ip.tf new file mode 100644 index 000000000..6c40cccef --- /dev/null +++ b/examples/public_vm/public_ip.tf @@ -0,0 +1,7 @@ +resource "outscale_public_ip" "my_public_ip" { +} + +resource "outscale_public_ip_link" "my_public_ip_link" { + vm_id = outscale_vm.my_vm.vm_id + public_ip = outscale_public_ip.my_public_ip.public_ip +} diff --git a/examples/public_vm/security_group.tf b/examples/public_vm/security_group.tf new file mode 100644 index 000000000..6d0987f56 --- /dev/null +++ b/examples/public_vm/security_group.tf @@ -0,0 +1,14 @@ +resource "outscale_security_group" "my_sg" { + description = "test security group" +} + +resource "outscale_security_group_rule" "my_sg_rule" { + flow = "Inbound" + security_group_id = outscale_security_group.my_sg.id + rules { + from_port_range = "22" + to_port_range = "22" + ip_protocol = "tcp" + ip_ranges = var.allowed_cidr + } +} diff --git a/examples/public_vm/terraform.tfvars b/examples/public_vm/terraform.tfvars new file mode 100644 index 000000000..730cdbb39 --- /dev/null +++ b/examples/public_vm/terraform.tfvars @@ -0,0 +1,10 @@ +#access_key_id = "MyAccessKey" +#secret_key_id = "MySecretKey" +#region = "eu-west-2" + +volume_type = "io1" +volume_iops = 10000 +volume_size_gib = 200 +image_id = "ami-cdfcddb7" # Ubuntu-20.04-2021.02.10-5 on eu-west-2 +vm_type = "tinav4.c1r1p2" +allowed_cidr = ["0.0.0.0/0"] diff --git a/examples/public_vm/variables.tf b/examples/public_vm/variables.tf new file mode 100644 index 000000000..17e133c38 --- /dev/null +++ b/examples/public_vm/variables.tf @@ -0,0 +1,12 @@ +variable "access_key_id" {} +variable "secret_key_id" {} +variable "region" {} + +variable "volume_type" {} +variable "volume_iops" {} +variable "volume_size_gib" {} +variable "image_id" {} +variable "vm_type" {} +variable "allowed_cidr" { + type = list(string) +} diff --git a/examples/public_vm/vm.tf b/examples/public_vm/vm.tf new file mode 100644 index 000000000..2eb618552 --- /dev/null +++ b/examples/public_vm/vm.tf @@ -0,0 +1,32 @@ +resource "outscale_vm" "my_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = outscale_keypair.my_keypair.keypair_name + security_group_ids = [outscale_security_group.my_sg.security_group_id] + placement_subregion_name = "${var.region}a" + placement_tenancy = "default" + + # resized bootdisk volume + block_device_mappings { + device_name = "/dev/sda1" + bsu { + volume_size = "100" + volume_type = "gp2" + delete_on_vm_deletion = "true" + } + } + + tags { + key = "osc.fcu.eip.auto-attach" + value = outscale_public_ip.my_public_ip.public_ip + } +} + +resource "local_file" "connect_script" { + filename = "${path.module}/connect.sh" + file_permission = "0770" + content = < 1 { + return fmt.Errorf("Multiple Flexible GPU matched; use additional constraints to reduce matches to a single Flexible GPU") + } + + fg := (*resp.FlexibleGpus)[0] + + if err := d.Set("delete_on_vm_deletion", fg.GetDeleteOnVmDeletion()); err != nil { + return err + } + if err := d.Set("subregion_name", fg.GetSubregionName()); err != nil { + return err + } + if err := d.Set("generation", fg.GetGeneration()); err != nil { + return err + } + if err := d.Set("flexible_gpu_id", fg.GetFlexibleGpuId()); err != nil { + return err + } + if err := d.Set("vm_id", fg.GetVmId()); err != nil { + return err + } + if err := d.Set("model_name", fg.GetModelName()); err != nil { + return err + } + if err := d.Set("state", fg.GetState()); err != nil { + return err + } + if err := d.Set("request_id", resp.ResponseContext.GetRequestId()); err != nil { + return err + } + d.SetId(fg.GetFlexibleGpuId()) + return nil +} + +func buildOutscaleOAPIDataSourceFlexibleGpuFilters(set *schema.Set) oscgo.FiltersFlexibleGpu { + var filters oscgo.FiltersFlexibleGpu + for _, v := range set.List() { + m := v.(map[string]interface{}) + var filterValues []string + for _, e := range m["values"].([]interface{}) { + filterValues = append(filterValues, e.(string)) + } + + switch name := m["name"].(string); name { + case "delete_on_vm_deletion": + filters.SetDeleteOnVmDeletion(cast.ToBool(filterValues[0])) + case "flexible_gpu_ids": + filters.SetFlexibleGpuIds(filterValues) + case "generations": + filters.SetGenerations(filterValues) + case "model_names": + filters.SetModelNames(filterValues) + case "states": + filters.SetStates(filterValues) + case "subregion_names": + filters.SetSubregionNames(filterValues) + case "vm_ids": + filters.SetVmIds(filterValues) + default: + log.Printf("[Debug] Unknown Filter Name: %s.", name) + } + } + return filters +} diff --git a/outscale/data_source_outscale_flexible_gpu_catalog.go b/outscale/data_source_outscale_flexible_gpu_catalog.go new file mode 100644 index 000000000..b9eab0c7b --- /dev/null +++ b/outscale/data_source_outscale_flexible_gpu_catalog.go @@ -0,0 +1,100 @@ +package outscale + +import ( + "context" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func dataSourceOutscaleOAPIFlexibleGpuCatalog() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleOAPIFlexibleGpuCatalogRead, + Schema: map[string]*schema.Schema{ + "filter": dataSourceFiltersSchema(), + "flexible_gpu_catalog": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "generations": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "max_cpu": { + Type: schema.TypeInt, + Computed: true, + }, + "max_ram": { + Type: schema.TypeInt, + Computed: true, + }, + "model_name": { + Type: schema.TypeString, + Computed: true, + }, + "v_ram": { + Type: schema.TypeInt, + Computed: true, + }, + }, + }, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func dataSourceOutscaleOAPIFlexibleGpuCatalogRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + req := oscgo.ReadFlexibleGpuCatalogRequest{} + + var resp oscgo.ReadFlexibleGpuCatalogResponse + var err error + + err = resource.Retry(20*time.Second, func() *resource.RetryError { + resp, _, err = conn.FlexibleGpuApi.ReadFlexibleGpuCatalog( + context.Background()). + ReadFlexibleGpuCatalogRequest(req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + fgcs := resp.GetFlexibleGpuCatalog()[:] + fgc_ret := make([]map[string]interface{}, len(fgcs)) + + for k, v := range fgcs { + n := make(map[string]interface{}) + n["generations"] = v.GetGenerations() + n["model_name"] = v.GetModelName() + n["max_cpu"] = v.GetMaxCpu() + n["max_ram"] = v.GetMaxRam() + n["v_ram"] = v.GetVRam() + fgc_ret[k] = n + } + + if err := d.Set("flexible_gpu_catalog", fgc_ret); err != nil { + return err + } + + if err := d.Set("request_id", resp.ResponseContext.RequestId); err != nil { + return err + } + d.SetId(resource.UniqueId()) + + return nil +} diff --git a/outscale/data_source_outscale_flexible_gpu_catalog_test.go b/outscale/data_source_outscale_flexible_gpu_catalog_test.go new file mode 100644 index 000000000..eb3f46ab1 --- /dev/null +++ b/outscale/data_source_outscale_flexible_gpu_catalog_test.go @@ -0,0 +1,40 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccDataSourceOutscaleOAPIFlexibleGpuCatalog_basic(t *testing.T) { + region := fmt.Sprintf("%sa", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDataSourceOutscaleOAPIFlexibleGpuCatalogConfig(region), + }, + }, + }) +} + +func testAccDataSourceOutscaleOAPIFlexibleGpuCatalogConfig(region string) string { + return fmt.Sprintf(` + resource "outscale_flexible_gpu" "fGPU-1" { + model_name = "nvidia-k2" + generation = "v3" + subregion_name = "%s" + delete_on_vm_deletion = true + } + + data "outscale_flexible_gpu_catalog" "catalog-fGPU" { + + } + `, region) +} diff --git a/outscale/data_source_outscale_flexible_gpu_test.go b/outscale/data_source_outscale_flexible_gpu_test.go new file mode 100644 index 000000000..a9d1aac29 --- /dev/null +++ b/outscale/data_source_outscale_flexible_gpu_test.go @@ -0,0 +1,63 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccDataSourceOutscaleOAPIFlexibleGpu_basic(t *testing.T) { + region := fmt.Sprintf("%sa", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDataSourceOutscaleOAPIFlexibleGpuConfig(region, region), + }, + }, + }) +} + +func testAccDataSourceOutscaleOAPIFlexibleGpuConfig(region, region1 string) string { + return fmt.Sprintf(` + resource "outscale_flexible_gpu" "fGPU-1" { + model_name = "nvidia-k2" + generation = "v3" + subregion_name = "%s" + delete_on_vm_deletion = true + } + + data "outscale_flexible_gpu" "data_fGPU-1" { + filter { + name = "flexible_gpu_ids" + values = [outscale_flexible_gpu.fGPU-1.flexible_gpu_id] + } + filter { + name = "delete_on_vm_deletion" + values = [true] + } + filter { + name = "generations" + values = ["v3"] + } + filter { + name = "states" + values = ["allocated"] + } + filter { + name = "model_names" + values = ["nvidia-k2"] + } + filter { + name = "subregion_names" + values = ["%s"] + } + } + `, region, region) +} diff --git a/outscale/data_source_outscale_flexible_gpus.go b/outscale/data_source_outscale_flexible_gpus.go new file mode 100644 index 000000000..66f2a8660 --- /dev/null +++ b/outscale/data_source_outscale_flexible_gpus.go @@ -0,0 +1,141 @@ +package outscale + +import ( + "context" + "fmt" + "strings" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func dataSourceOutscaleOAPIFlexibleGpus() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleOAPIFlexibleGpusRead, + + Schema: map[string]*schema.Schema{ + "filter": dataSourceFiltersSchema(), + "flexible_gpus": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "delete_on_vm_deletion": { + Type: schema.TypeBool, + Computed: true, + }, + "model_name": { + Type: schema.TypeString, + Computed: true, + }, + "generation": { + Type: schema.TypeString, + Computed: true, + }, + "subregion_name": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "vm_id": { + Type: schema.TypeString, + Computed: true, + }, + "flexible_gpu_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func dataSourceOutscaleOAPIFlexibleGpusRead(d *schema.ResourceData, meta interface{}) error { + + conn := meta.(*OutscaleClient).OSCAPI + filters, filtersOk := d.GetOk("filter") + _, IDOk := d.GetOk("flexible_gpu_id") + + if !filtersOk && !IDOk { + return fmt.Errorf("One of filters, or flexible_gpu_id must be assigned") + } + + req := oscgo.ReadFlexibleGpusRequest{} + req.SetFilters(buildOutscaleOAPIDataSourceFlexibleGpuFilters(filters.(*schema.Set))) + + var resp oscgo.ReadFlexibleGpusResponse + var err error + + err = resource.Retry(30*time.Second, func() *resource.RetryError { + resp, _, err = conn.FlexibleGpuApi.ReadFlexibleGpus( + context.Background()).ReadFlexibleGpusRequest(req).Execute() + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded:") { + return resource.RetryableError(err) + } + return resource.NonRetryableError(err) + } + return nil + }) + + if err != nil { + errString := err.Error() + return fmt.Errorf("[DEBUG] Error reading flexible gpu (%s)", errString) + } + + flexgps := resp.GetFlexibleGpus()[:] + + if len(flexgps) < 1 { + return fmt.Errorf("Your query returned no results. Please change your search criteria and try again") + } + + if err := d.Set("request_id", resp.ResponseContext.GetRequestId()); err != nil { + return err + } + d.SetId(resource.UniqueId()) + + return setOAPIFlexibleGpuAttributes(d, flexgps) +} + +func setOAPIFlexibleGpuAttributes(d *schema.ResourceData, fg []oscgo.FlexibleGpu) error { + + fgpus := make([]map[string]interface{}, len(fg)) + for k, v := range fg { + fgpu := make(map[string]interface{}) + + fgpu["delete_on_vm_deletion"] = v.GetDeleteOnVmDeletion() + if v.GetFlexibleGpuId() != "" { + fgpu["flexible_gpu_id"] = v.GetFlexibleGpuId() + } + if v.GetGeneration() != "" { + fgpu["generation"] = v.GetGeneration() + } + if v.GetModelName() != "" { + fgpu["model_name"] = v.GetModelName() + } + if v.GetState() != "" { + fgpu["state"] = v.GetState() + } + if v.GetSubregionName() != "" { + fgpu["subregion_name"] = v.GetSubregionName() + } + if v.GetVmId() != "" { + fgpu["vm_id"] = v.GetVmId() + } + fgpus[k] = fgpu + } + + return d.Set("flexible_gpus", fgpus) +} diff --git a/outscale/data_source_outscale_flexible_gpus_test.go b/outscale/data_source_outscale_flexible_gpus_test.go new file mode 100644 index 000000000..4b9a76de6 --- /dev/null +++ b/outscale/data_source_outscale_flexible_gpus_test.go @@ -0,0 +1,63 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccDataSourceOutscaleOAPIFlexibleGpus_basic(t *testing.T) { + region := fmt.Sprintf("%sa", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDataSourceOutscaleOAPIFlexibleGpusConfig(region, region), + }, + }, + }) +} + +func testAccDataSourceOutscaleOAPIFlexibleGpusConfig(region, region1 string) string { + return fmt.Sprintf(` + resource "outscale_flexible_gpu" "fGPU-1" { + model_name = "nvidia-k2" + generation = "v3" + subregion_name = "%s" + delete_on_vm_deletion = true + } + + data "outscale_flexible_gpu" "data_fGPU-1" { + filter { + name = "flexible_gpu_ids" + values = [outscale_flexible_gpu.fGPU-1.flexible_gpu_id] + } + filter { + name = "delete_on_vm_deletion" + values = [true] + } + filter { + name = "generations" + values = ["v3"] + } + filter { + name = "states" + values = ["allocated"] + } + filter { + name = "model_names" + values = ["nvidia-k2"] + } + filter { + name = "subregion_names" + values = ["%s"] + } + } + `, region, region) +} diff --git a/outscale/data_source_outscale_internet_service.go b/outscale/data_source_outscale_internet_service.go index 0b9c8ce83..11eb3154e 100644 --- a/outscale/data_source_outscale_internet_service.go +++ b/outscale/data_source_outscale_internet_service.go @@ -125,7 +125,17 @@ func buildOutscaleOSCAPIDataSourceInternetServiceFilters(set *schema.Set) *oscgo switch name := m["name"].(string); name { case "internet_service_ids": - filters.InternetServiceIds = &filterValues + filters.SetInternetServiceIds(filterValues) + case "link_net_ids": + filters.SetLinkNetIds(filterValues) + case "link_states": + filters.SetLinkStates(filterValues) + case "tags": + filters.SetTags(filterValues) + case "tag_keys": + filters.SetTagKeys(filterValues) + case "tag_values": + filters.SetTagValues(filterValues) default: log.Printf("[Debug] Unknown Filter Name: %s.", name) } diff --git a/outscale/data_source_outscale_net_access_point.go b/outscale/data_source_outscale_net_access_point.go new file mode 100644 index 000000000..e8f9f5234 --- /dev/null +++ b/outscale/data_source_outscale_net_access_point.go @@ -0,0 +1,130 @@ +package outscale + +import ( + "context" + "fmt" + "strings" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func napdSchema() map[string]*schema.Schema { + return map[string]*schema.Schema{ + "net_access_point_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "net_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "service_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "tag_key": { + Type: schema.TypeString, + Computed: true, + }, + "tag_value": { + Type: schema.TypeString, + Computed: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "tags": dataSourceTagsSchema(), + "route_table_ids": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + } +} + +func dataSourceOutscaleNetAccessPoint() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleNetAccessPointRead, + + Schema: getDataSourceSchemas(napdSchema()), + } +} + +func dataSourceOutscaleNetAccessPointRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + napid, napidOk := d.GetOk("net_access_point_ids") + filters, filtersOk := d.GetOk("filter") + filter := new(oscgo.FiltersNetAccessPoint) + + if !napidOk && !filtersOk { + return fmt.Errorf("One of filters, or listener_rule_name must be assigned") + } + + if filtersOk { + filter = buildOutscaleDataSourcesNAPFilters(filters.(*schema.Set)) + } else { + filter = &oscgo.FiltersNetAccessPoint{ + NetAccessPointIds: &[]string{napid.(string)}, + } + } + + req := &oscgo.ReadNetAccessPointsRequest{ + Filters: filter, + } + + var resp oscgo.ReadNetAccessPointsResponse + var err error + + err = resource.Retry(30*time.Second, func() *resource.RetryError { + resp, _, err = conn.NetAccessPointApi.ReadNetAccessPoints( + context.Background()). + ReadNetAccessPointsRequest(*req).Execute() + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded:") { + return resource.RetryableError(err) + } + return resource.NonRetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + naps := *resp.NetAccessPoints + nap_len := len(naps) + + if naps == nil || nap_len != 1 { + return fmt.Errorf("Error retrieving Net Access Point") + } + nap := naps[0] + + d.Set("net_access_point_id", nap.NetAccessPointId) + d.Set("route_table_ids", flattenStringList(nap.RouteTableIds)) + d.Set("net_id", nap.NetId) + d.Set("service_name", nap.ServiceName) + d.Set("state", nap.State) + d.Set("tags", tagsOSCAPIToMap(nap.GetTags())) + + d.Set("request_id", resp.ResponseContext.GetRequestId()) + id := *nap.NetAccessPointId + d.SetId(id) + + return nil +} diff --git a/outscale/data_source_outscale_net_access_point_services.go b/outscale/data_source_outscale_net_access_point_services.go new file mode 100644 index 000000000..c6ee66fa5 --- /dev/null +++ b/outscale/data_source_outscale_net_access_point_services.go @@ -0,0 +1,119 @@ +package outscale + +import ( + "context" + "log" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func dataSourceOutscaleOAPINetAccessPointServices() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleOAPINetAccessPointServicesRead, + Schema: map[string]*schema.Schema{ + "filter": dataSourceFiltersSchema(), + "services": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "ip_ranges": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "service_id": { + Type: schema.TypeString, + Computed: true, + }, + "service_name": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func dataSourceOutscaleOAPINetAccessPointServicesRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + filters, filtersOk := d.GetOk("filter") + + filtersReq := oscgo.FiltersService{} + if filtersOk { + filtersReq = buildOutscaleDataSourcesNAPSFilters(filters.(*schema.Set)) + } + req := oscgo.ReadNetAccessPointServicesRequest{Filters: &filtersReq} + + var resp oscgo.ReadNetAccessPointServicesResponse + var err error + + err = resource.Retry(20*time.Second, func() *resource.RetryError { + resp, _, err = conn.NetAccessPointApi.ReadNetAccessPointServices( + context.Background()). + ReadNetAccessPointServicesRequest(req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + naps := resp.GetServices()[:] + nap_ret := make([]map[string]interface{}, len(naps)) + + for k, v := range naps { + n := make(map[string]interface{}) + n["ip_ranges"] = v.GetIpRanges() + n["service_id"] = v.GetServiceId() + n["service_name"] = v.GetServiceName() + nap_ret[k] = n + } + + if err := d.Set("services", nap_ret); err != nil { + return err + } + + if err := d.Set("request_id", resp.ResponseContext.RequestId); err != nil { + return err + } + d.SetId(resource.UniqueId()) + + return nil +} + +func buildOutscaleDataSourcesNAPSFilters(set *schema.Set) oscgo.FiltersService { + var filters oscgo.FiltersService + + for _, v := range set.List() { + m := v.(map[string]interface{}) + filterValues := make([]string, 0) + for _, e := range m["values"].([]interface{}) { + filterValues = append(filterValues, e.(string)) + } + + switch name := m["name"].(string); name { + case "service_ids": + filters.SetServiceIds(filterValues) + case "service_names": + filters.SetServiceNames(filterValues) + default: + log.Printf("[Debug] Unknown net access point services Filter Name: %s. default", name) + } + } + return filters +} diff --git a/outscale/data_source_outscale_net_access_point_services_test.go b/outscale/data_source_outscale_net_access_point_services_test.go new file mode 100644 index 000000000..f27fc6119 --- /dev/null +++ b/outscale/data_source_outscale_net_access_point_services_test.go @@ -0,0 +1,58 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccDataSourceOutscaleOAPINetAccessPointServices_basic(t *testing.T) { + serviceName := fmt.Sprintf("com.outscale.%s.api", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDataSourceOutscaleOAPINetAccessPointServicesConfig(serviceName, serviceName), + }, + }, + }) +} + +func testAccDataSourceOutscaleOAPINetAccessPointServicesConfig(sName, sName2 string) string { + return fmt.Sprintf(` + resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + } + + resource "outscale_route_table" "route_table-1" { + net_id = outscale_net.outscale_net.net_id + } + + resource "outscale_net_access_point" "net_access_point_1" { + net_id = outscale_net.outscale_net.net_id + route_table_ids = [outscale_route_table.route_table-1.route_table_id] + service_name = "%s" + tags { + key = "name" + value = "terraform-Net-Access-Point" + } + + } + + data "outscale_net_access_point_services" "all-services" { + filter { + name = "service_names" + values = [ "%s"] + } + } + + data "outscale_net_access_point_services" "all-services2" { } + + `, sName, sName2) +} diff --git a/outscale/data_source_outscale_net_access_point_test.go b/outscale/data_source_outscale_net_access_point_test.go new file mode 100644 index 000000000..682c46537 --- /dev/null +++ b/outscale/data_source_outscale_net_access_point_test.go @@ -0,0 +1,76 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccDataSourceOutscaleOAPINetAccessPoint_basic(t *testing.T) { + serviceName := fmt.Sprintf("com.outscale.%s.api", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDataSourceOutscaleOAPINetAccessPointConfig(serviceName, serviceName), + }, + }, + }) +} + +func testAccDataSourceOutscaleOAPINetAccessPointConfig(sName, sName2 string) string { + return fmt.Sprintf(` + resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + } + + resource "outscale_route_table" "route_table-1" { + net_id = outscale_net.outscale_net.net_id + } + + resource "outscale_net_access_point" "net_access_point_1" { + net_id = outscale_net.outscale_net.net_id + route_table_ids = [outscale_route_table.route_table-1.route_table_id] + service_name = "%s" + tags { + key = "name" + value = "terraform-Net-Access-Point" + } + + } + + data "outscale_net_access_point" "data_net_access_point" { + filter { + name = "net_access_point_ids" + values = [outscale_net_access_point.net_access_point_1.net_access_point_id] + } + filter { + name = "net_ids" + values = [outscale_net.outscale_net.net_id] + } + filter { + name = "service_names" + values = [ "%s"] + } + filter { + name = "states" + values = ["available"] + } + filter { + name = "tag_keys" + values = ["name"] + } + filter { + name = "tag_values" + values = ["terraform-Net-Access-Point"] + } + } + + `, sName, sName2) +} diff --git a/outscale/data_source_outscale_net_access_points.go b/outscale/data_source_outscale_net_access_points.go new file mode 100644 index 000000000..11487d50b --- /dev/null +++ b/outscale/data_source_outscale_net_access_points.go @@ -0,0 +1,201 @@ +package outscale + +import ( + "context" + "fmt" + "log" + "strings" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func napSchema() map[string]*schema.Schema { + return map[string]*schema.Schema{ + "net_access_point_ids": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "net_ids": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "service_names": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "states": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "tag_keys": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "tag_values": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "tags": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "net_access_point": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "net_access_point_id": { + Type: schema.TypeString, + Computed: true, + }, + "net_id": { + Type: schema.TypeString, + Computed: true, + }, + "route_table_ids": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "service_name": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "tags": dataSourceTagsSchema(), + }, + }, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + } +} + +func dataSourceOutscaleNetAccessPoints() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleNetAccessPointsRead, + + Schema: getDataSourceSchemas(napSchema()), + } +} + +func buildOutscaleDataSourcesNAPFilters(set *schema.Set) *oscgo.FiltersNetAccessPoint { + filters := new(oscgo.FiltersNetAccessPoint) + + for _, v := range set.List() { + m := v.(map[string]interface{}) + filterValues := make([]string, 0) + for _, e := range m["values"].([]interface{}) { + filterValues = append(filterValues, e.(string)) + } + + switch name := m["name"].(string); name { + case "net_ids": + filters.NetIds = &filterValues + case "service_names": + filters.ServiceNames = &filterValues + case "states": + filters.States = &filterValues + case "tag_keys": + filters.TagKeys = &filterValues + case "tag_values": + filters.TagValues = &filterValues + case "tags": + filters.Tags = &filterValues + case "net_access_point_id": + filters.NetAccessPointIds = &filterValues + default: + filters.NetAccessPointIds = &filterValues + log.Printf("[Debug] Unknown Filter Name: %s. default to 'net_access_point_id'", name) + } + } + return filters +} + +func dataSourceOutscaleNetAccessPointsRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + napid, napidOk := d.GetOk("net_access_point_ids") + filters, filtersOk := d.GetOk("filter") + filter := new(oscgo.FiltersNetAccessPoint) + + if !napidOk && !filtersOk { + return fmt.Errorf("One of filters, or listener_rule_name must be assigned") + } + + if filtersOk { + filter = buildOutscaleDataSourcesNAPFilters(filters.(*schema.Set)) + } else { + filter = &oscgo.FiltersNetAccessPoint{ + NetAccessPointIds: &[]string{napid.(string)}, + } + } + + req := &oscgo.ReadNetAccessPointsRequest{ + Filters: filter, + } + + var resp oscgo.ReadNetAccessPointsResponse + var err error + + err = resource.Retry(30*time.Second, func() *resource.RetryError { + resp, _, err = conn.NetAccessPointApi.ReadNetAccessPoints( + context.Background()). + ReadNetAccessPointsRequest(*req).Execute() + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded:") { + return resource.RetryableError(err) + } + return resource.NonRetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + naps := *resp.NetAccessPoints + nap_len := len(naps) + nap_ret := make([]map[string]interface{}, nap_len) + + for k, v := range naps { + n := make(map[string]interface{}) + + n["net_access_point_id"] = v.NetAccessPointId + n["route_table_ids"] = flattenStringList(v.RouteTableIds) + n["net_id"] = v.NetId + n["service_name"] = v.ServiceName + n["state"] = v.State + n["tags"] = tagsOSCAPIToMap(v.GetTags()) + nap_ret[k] = n + } + + err = d.Set("net_access_point", nap_ret) + if err != nil { + return err + } + d.Set("request_id", resp.ResponseContext.RequestId) + if err != nil { + return err + } + d.SetId(resource.UniqueId()) + + return nil +} diff --git a/outscale/data_source_outscale_net_access_points_test.go b/outscale/data_source_outscale_net_access_points_test.go new file mode 100644 index 000000000..d3aeafb87 --- /dev/null +++ b/outscale/data_source_outscale_net_access_points_test.go @@ -0,0 +1,76 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccDataSourceOutscaleOAPINetAccessPoints_basic(t *testing.T) { + serviceName := fmt.Sprintf("com.outscale.%s.api", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDataSourceOutscaleOAPINetAccessPointsConfig(serviceName, serviceName), + }, + }, + }) +} + +func testAccDataSourceOutscaleOAPINetAccessPointsConfig(sName, sName2 string) string { + return fmt.Sprintf(` + resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + } + + resource "outscale_route_table" "route_table-1" { + net_id = outscale_net.outscale_net.net_id + } + + resource "outscale_net_access_point" "net_access_point_1" { + net_id = outscale_net.outscale_net.net_id + route_table_ids = [outscale_route_table.route_table-1.route_table_id] + service_name = "%s" + tags { + key = "name" + value = "terraform-Net-Access-Point" + } + + } + + data "outscale_net_access_points" "data_net_access_points" { + filter { + name = "net_access_point_ids" + values = [outscale_net_access_point.net_access_point_1.net_access_point_id] + } + filter { + name = "net_ids" + values = [outscale_net.outscale_net.net_id] + } + filter { + name = "service_names" + values = [ "%s"] + } + filter { + name = "states" + values = ["available"] + } + filter { + name = "tag_keys" + values = ["name"] + } + filter { + name = "tag_values" + values = ["terraform-Net-Access-Point"] + } + } + + `, sName, sName2) +} diff --git a/outscale/data_source_outscale_regions.go b/outscale/data_source_outscale_regions.go new file mode 100644 index 000000000..d6a637c08 --- /dev/null +++ b/outscale/data_source_outscale_regions.go @@ -0,0 +1,81 @@ +package outscale + +import ( + "context" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + oscgo "github.com/outscale/osc-sdk-go/v2" +) + +func dataSourceOutscaleOAPIRegions() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleOAPIRegionsRead, + Schema: map[string]*schema.Schema{ + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + "regions": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "endpoint": { + Type: schema.TypeString, + Computed: true, + }, + "region_name": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + } +} + +func dataSourceOutscaleOAPIRegionsRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + var resp oscgo.ReadRegionsResponse + var err error + var req oscgo.ReadRegionsRequest + + err = resource.Retry(5*time.Minute, func() *resource.RetryError { + resp, _, err = conn.RegionApi.ReadRegions(context.Background()).ReadRegionsRequest(req).Execute() + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded:") { + return resource.RetryableError(err) + } + return resource.NonRetryableError(err) + } + return nil + }) + if err != nil { + return err + } + + regions := resp.GetRegions() + + return resourceDataAttrSetter(d, func(set AttributeSetter) error { + d.SetId(resource.UniqueId()) + + regs := make([]map[string]interface{}, len(regions)) + for i, region := range regions { + regs[i] = map[string]interface{}{ + "endpoint": region.GetEndpoint(), + "region_name": region.GetRegionName(), + } + } + + if err := d.Set("request_id", resp.ResponseContext.RequestId); err != nil { + return err + } + + return set("regions", regs) + }) +} diff --git a/outscale/data_source_outscale_regions_test.go b/outscale/data_source_outscale_regions_test.go new file mode 100644 index 000000000..36fe8d7e6 --- /dev/null +++ b/outscale/data_source_outscale_regions_test.go @@ -0,0 +1,44 @@ +package outscale + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/terraform" +) + +func TestAccOutscaleOAPIRegionsDataSource_basic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckOutscaleOAPIRegionsDataSourceConfig, + Check: resource.ComposeTestCheckFunc( + testAccCheckOutscaleOAPIRegionsDataSourceID("data.outscale_regions.regions"), + ), + }, + }, + }) +} + +func testAccCheckOutscaleOAPIRegionsDataSourceID(n string) resource.TestCheckFunc { + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("can't find regions data source: %s", n) + } + + if rs.Primary.ID == "" { + return fmt.Errorf("regions data source ID not set") + } + return nil + } +} + +var testAccCheckOutscaleOAPIRegionsDataSourceConfig = ` + data "outscale_regions" "regions" {} + ` diff --git a/outscale/data_source_outscale_route_table.go b/outscale/data_source_outscale_route_table.go index 502217054..acfe0b7ee 100644 --- a/outscale/data_source_outscale_route_table.go +++ b/outscale/data_source_outscale_route_table.go @@ -3,6 +3,7 @@ package outscale import ( "context" "fmt" + "github.com/spf13/cast" "log" "strings" "time" @@ -204,9 +205,38 @@ func buildOutscaleOAPIDataSourceRouteTableFilters(set *schema.Set) *oscgo.Filter switch name := m["name"].(string); name { case "route_table_ids": filters.SetRouteTableIds(filterValues) - case "link_route_table_ids": + case "link_route_table_link_route_table_ids": filters.SetLinkRouteTableLinkRouteTableIds(filterValues) - + case "tag_keys": + filters.SetTagKeys(filterValues) + case "tag_values": + filters.SetTagValues(filterValues) + case "tags": + filters.SetTags(filterValues) + case "link_route_table_ids": + filters.SetLinkRouteTableIds(filterValues) + case "link_route_table_main": + filters.SetLinkRouteTableMain(cast.ToBool(filterValues[0])) + case "link_subnet_ids": + filters.SetLinkSubnetIds(filterValues) + case "net_ids": + filters.SetNetIds(filterValues) + case "route_creation_methods": + filters.SetRouteCreationMethods(filterValues) + case "route_destination_ip_ranges": + filters.SetRouteDestinationIpRanges(filterValues) + case "route_destination_service_ids": + filters.SetRouteDestinationServiceIds(filterValues) + case "route_gateway_ids": + filters.SetRouteGatewayIds(filterValues) + case "route_nat_service_ids": + filters.SetRouteNatServiceIds(filterValues) + case "route_net_peering_ids": + filters.SetRouteNetPeeringIds(filterValues) + case "route_states": + filters.SetRouteStates(filterValues) + case "route_vm_ids": + filters.SetRouteVmIds(filterValues) default: log.Printf("[Debug] Unknown Filter Name: %s.", name) } diff --git a/outscale/data_source_outscale_subregions.go b/outscale/data_source_outscale_subregions.go new file mode 100644 index 000000000..45eed42b7 --- /dev/null +++ b/outscale/data_source_outscale_subregions.go @@ -0,0 +1,120 @@ +package outscale + +import ( + "context" + "log" + "strings" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + "github.com/spf13/cast" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func dataSourceOutscaleOAPISubregions() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleOAPISubregionsRead, + + Schema: map[string]*schema.Schema{ + "filter": dataSourceFiltersSchema(), + // Computed values. + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + "subregions": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "region_name": { + Type: schema.TypeString, + Computed: true, + }, + "subregion_name": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + } +} + +func dataSourceOutscaleOAPISubregionsRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + filters, filtersOk := d.GetOk("filter") + + filtersReq := &oscgo.FiltersSubregion{} + if filtersOk { + filtersReq = buildOutscaleOAPIDataSourceSubregionsFilters(filters.(*schema.Set)) + } + + req := oscgo.ReadSubregionsRequest{Filters: filtersReq} + + var resp oscgo.ReadSubregionsResponse + var err error + err = resource.Retry(5*time.Minute, func() *resource.RetryError { + resp, _, err = conn.SubregionApi.ReadSubregions(context.Background()).ReadSubregionsRequest(req).Execute() + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded:") { + return resource.RetryableError(err) + } + return resource.NonRetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + subregions := resp.GetSubregions() + + return resourceDataAttrSetter(d, func(set AttributeSetter) error { + d.SetId(resource.UniqueId()) + + subs := make([]map[string]interface{}, len(subregions)) + for i, subregion := range subregions { + subs[i] = map[string]interface{}{ + "subregion_name": subregion.GetSubregionName(), + "region_name": subregion.GetRegionName(), + "state": subregion.GetState(), + } + } + + if err = d.Set("request_id", resp.ResponseContext.RequestId); err != nil { + return err + } + + return set("subregions", subs) + }) +} + +func buildOutscaleOAPIDataSourceSubregionsFilters(set *schema.Set) *oscgo.FiltersSubregion { + filters := &oscgo.FiltersSubregion{} + for _, v := range set.List() { + m := v.(map[string]interface{}) + var filterValues []string + + for _, e := range m["values"].([]interface{}) { + filterValues = append(filterValues, cast.ToString(e)) + } + + switch name := m["name"].(string); name { + case "subregion_names": + filters.SetSubregionNames(filterValues) + default: + log.Printf("[Debug] Unknown Filter Name: %s.", name) + } + } + return filters +} diff --git a/outscale/data_source_outscale_subregions_test.go b/outscale/data_source_outscale_subregions_test.go new file mode 100644 index 000000000..414e4b3d3 --- /dev/null +++ b/outscale/data_source_outscale_subregions_test.go @@ -0,0 +1,76 @@ +package outscale + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/terraform" +) + +func TestAccOutscaleOAPISubregionsDataSource_Basic(t *testing.T) { + subregionName := "eu-west-2b" + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckOutscaleOAPISubregionsDataSourceConfig(subregionName), + Check: resource.ComposeTestCheckFunc( + testAccCheckOutscaleOAPISubregionsDataSourceID("data.outscale_subregions.test"), + ), + }, + }, + }) +} + +func TestAccOutscaleOAPISubregionsDataSource_All(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCheckOutscaleOAPISubregionsDataSourceConfigAll, + Check: resource.ComposeTestCheckFunc( + testAccCheckOutscaleOAPISubregionsDataSourceID("data.outscale_subregions.test"), + ), + }, + }, + }) +} + +func testAccCheckOutscaleOAPISubregionsDataSourceID(n string) resource.TestCheckFunc { + // Wait for IAM role + return func(s *terraform.State) error { + rs, ok := s.RootModule().Resources[n] + if !ok { + return fmt.Errorf("can't find subregions data source: %s", n) + } + + if rs.Primary.ID == "" { + return fmt.Errorf("subregions data source ID not set") + } + return nil + } +} + +func testAccCheckOutscaleOAPISubregionsDataSourceConfig(subregionName string) string { + return fmt.Sprintf(` + data "outscale_subregions" "test" { + filter { + name = "subregion_names" + values = ["%s"] + } + } + `, subregionName) +} + +var testAccCheckOutscaleOAPISubregionsDataSourceConfigAll = ` + data "outscale_subregions" "test" { + } + ` diff --git a/outscale/data_source_outscale_vm_types.go b/outscale/data_source_outscale_vm_types.go new file mode 100644 index 000000000..5593980e1 --- /dev/null +++ b/outscale/data_source_outscale_vm_types.go @@ -0,0 +1,187 @@ +package outscale + +import ( + "context" + "fmt" + "log" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + oscgo "github.com/outscale/osc-sdk-go/v2" + "github.com/spf13/cast" + "github.com/terraform-providers/terraform-provider-outscale/utils" +) + +func dataSourceOutscaleOAPIVMTypes() *schema.Resource { + return &schema.Resource{ + Read: dataSourceOutscaleOAPIVMTypesRead, + + Schema: map[string]*schema.Schema{ + "filter": dataSourceFiltersSchema(), + "vm_types": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "bsu_optimized": { + Type: schema.TypeBool, + Computed: true, + }, + "max_private_ips": { + Type: schema.TypeInt, + Computed: true, + }, + "memory_size": { + Type: schema.TypeInt, + Computed: true, + }, + "vcore_count": { + Type: schema.TypeInt, + Computed: true, + }, + "vm_type_name": { + Type: schema.TypeString, + Computed: true, + }, + "volume_count": { + Type: schema.TypeInt, + Computed: true, + }, + "volume_size": { + Type: schema.TypeInt, + Computed: true, + }, + }, + }, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func dataSourceOutscaleOAPIVMTypesRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + filter, filterOk := d.GetOk("filter") + filtersReq := oscgo.FiltersVmType{} + + if filterOk { + filtersReq = buildOutscaleOAPIDataSourceVMTypesFilters(filter.(*schema.Set)) + } + req := oscgo.ReadVmTypesRequest{Filters: &filtersReq} + + var resp oscgo.ReadVmTypesResponse + var err error + err = resource.Retry(30*time.Second, func() *resource.RetryError { + var err error + resp, _, err = conn.VmApi.ReadVmTypes(context.Background()).ReadVmTypesRequest(req).Execute() + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded") { + return resource.RetryableError(err) + } + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + filteredTypes := resp.GetVmTypes()[:] + + if len(filteredTypes) < 1 { + return fmt.Errorf("Your query returned no results. Please change your search criteria and try again") + } + + if err := d.Set("request_id", resp.ResponseContext.GetRequestId()); err != nil { + return err + } + return statusDescriptionOAPIVMTypesAttributes(d, filteredTypes) + +} + +func setOAPIVMTypeAttributes(set AttributeSetter, vType *oscgo.VmType) error { + + if err := set("bsu_optimized", vType.GetBsuOptimized()); err != nil { + return err + } + if err := set("max_private_ips", vType.GetMaxPrivateIps()); err != nil { + return err + } + if err := set("memory_size", vType.GetMemorySize()); err != nil { + return err + } + if err := set("vcore_count", vType.GetVcoreCount()); err != nil { + return err + } + if err := set("vm_type_name", vType.GetVmTypeName()); err != nil { + return err + } + if err := set("volume_count", vType.GetVolumeCount()); err != nil { + return err + } + if err := set("volume_size", vType.GetVolumeSize()); err != nil { + return err + } + + return nil +} + +func statusDescriptionOAPIVMTypesAttributes(d *schema.ResourceData, fTypes []oscgo.VmType) error { + d.SetId(resource.UniqueId()) + + vTypes := make([]map[string]interface{}, len(fTypes)) + + for k, v := range fTypes { + vtype := make(map[string]interface{}) + + setterFunc := func(key string, value interface{}) error { + vtype[key] = value + return nil + } + + if err := setOAPIVMTypeAttributes(setterFunc, &v); err != nil { + return err + } + + vTypes[k] = vtype + } + + return d.Set("vm_types", vTypes) + +} + +func buildOutscaleOAPIDataSourceVMTypesFilters(set *schema.Set) oscgo.FiltersVmType { + var filters oscgo.FiltersVmType + for _, v := range set.List() { + m := v.(map[string]interface{}) + var filterValues []string + for _, e := range m["values"].([]interface{}) { + filterValues = append(filterValues, e.(string)) + } + + switch name := m["name"].(string); name { + case "bsu_optimized": + filters.SetBsuOptimized(cast.ToBool(filterValues[0])) + case "memory_sizes": + filters.SetMemorySizes(utils.StringSliceToFloat32Slice(filterValues)) + case "vcore_counts": + filters.SetVcoreCounts(utils.StringSliceToInt32Slice(filterValues)) + case "vm_type_names": + filters.SetVmTypeNames(filterValues) + case "volume_counts": + filters.SetVolumeCounts(utils.StringSliceToInt32Slice(filterValues)) + case "volume_sizes": + filters.SetVolumeSizes(utils.StringSliceToInt32Slice(filterValues)) + default: + log.Printf("[Debug] Unknown Filter Name: %s.", name) + } + } + return filters +} diff --git a/outscale/data_source_outscale_vm_types_test.go b/outscale/data_source_outscale_vm_types_test.go new file mode 100644 index 000000000..3bc8b6689 --- /dev/null +++ b/outscale/data_source_outscale_vm_types_test.go @@ -0,0 +1,44 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccDataSourceOutscaleOAPIVMTypes_basic(t *testing.T) { + omi := os.Getenv("OUTSCALE_IMAGEID") + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDataSourceOutscaleOAPIVMTypesConfig(omi, "tinav4.c1r1p1"), + }, + }, + }) +} + +func testAccDataSourceOutscaleOAPIVMTypesConfig(omi, vmType string) string { + return fmt.Sprintf(` + resource "outscale_vm" "basic" { + image_id = "%s" + vm_type = "%s" + keypair_name = "terraform-basic" + } + + data "outscale_vm_types" "vm_types" { + filter { + name = "bsu_optimized" + values = ["true"] + } + } + + data "outscale_vm_types" "all-types" { } + `, omi, vmType) +} diff --git a/outscale/dictionary.go b/outscale/dictionary.go index 022e0670f..792c9ce82 100644 --- a/outscale/dictionary.go +++ b/outscale/dictionary.go @@ -86,6 +86,8 @@ func init() { "outscale_public_ips": dataSourceOutscaleOAPIPublicIPS, "outscale_nat_service": dataSourceOutscaleOAPINatService, "outscale_nat_services": dataSourceOutscaleOAPINatServices, + "outscale_subregions": dataSourceOutscaleOAPISubregions, + "outscale_regions": dataSourceOutscaleOAPIRegions, }, } } diff --git a/outscale/provider.go b/outscale/provider.go index 7ce5c7410..03ddad017 100644 --- a/outscale/provider.go +++ b/outscale/provider.go @@ -76,6 +76,7 @@ func Provider() terraform.ResourceProvider { "outscale_image_launch_permission": resourceOutscaleOAPIImageLaunchPermission(), "outscale_net_peering": resourceOutscaleOAPILinPeeringConnection(), "outscale_net_peering_acceptation": resourceOutscaleOAPILinPeeringConnectionAccepter(), + "outscale_net_access_point": resourceOutscaleNetAccessPoint(), "outscale_nic_link": resourceOutscaleOAPINetworkInterfaceAttachment(), "outscale_nic_private_ip": resourceOutscaleOAPINetworkInterfacePrivateIP(), "outscale_snapshot_attributes": resourcedOutscaleOAPISnapshotAttributes(), @@ -92,6 +93,8 @@ func Provider() terraform.ResourceProvider { "outscale_load_balancer_vms": resourceOutscaleOAPILBUAttachment(), "outscale_load_balancer_attributes": resourceOutscaleOAPILoadBalancerAttributes(), "outscale_load_balancer_listener_rule": resourceOutscaleLoadBalancerListenerRule(), + "outscale_flexible_gpu": resourceOutscaleOAPIFlexibleGpu(), + "outscale_flexible_gpu_link": resourceOutscaleOAPIFlexibleGpuLink(), }, DataSourcesMap: map[string]*schema.Resource{ "outscale_vm": dataSourceOutscaleOAPIVM(), @@ -143,6 +146,15 @@ func Provider() terraform.ResourceProvider { "outscale_load_balancer_tags": dataSourceOutscaleOAPILBUTags(), "outscale_load_balancer_vm_health": dataSourceOutscaleLoadBalancerVmsHeals(), "outscale_load_balancers": dataSourceOutscaleOAPILoadBalancers(), + "outscale_vm_types": dataSourceOutscaleOAPIVMTypes(), + "outscale_net_access_point": dataSourceOutscaleNetAccessPoint(), + "outscale_net_access_points": dataSourceOutscaleNetAccessPoints(), + "outscale_flexible_gpu": dataSourceOutscaleOAPIFlexibleGpu(), + "outscale_flexible_gpus": dataSourceOutscaleOAPIFlexibleGpus(), + "outscale_subregions": dataSourceOutscaleOAPISubregions(), + "outscale_regions": dataSourceOutscaleOAPIRegions(), + "outscale_net_access_point_services": dataSourceOutscaleOAPINetAccessPointServices(), + "outscale_flexible_gpu_catalog": dataSourceOutscaleOAPIFlexibleGpuCatalog(), }, ConfigureFunc: providerConfigureClient, diff --git a/outscale/resource_outscale_dhcp_option.go b/outscale/resource_outscale_dhcp_option.go index 4ac945bf6..43ade3f86 100644 --- a/outscale/resource_outscale_dhcp_option.go +++ b/outscale/resource_outscale_dhcp_option.go @@ -134,9 +134,6 @@ func resourceOutscaleDHCPOptionRead(d *schema.ResourceData, meta interface{}) er if err := d.Set("default", dhcp.GetDefault()); err != nil { return err } - if err := d.Set("dhcp_options_name", dhcp.GetDhcpOptionsName()); err != nil { - return err - } if err := d.Set("dhcp_options_set_id", dhcp.GetDhcpOptionsSetId()); err != nil { return err } diff --git a/outscale/resource_outscale_flexible_gpu.go b/outscale/resource_outscale_flexible_gpu.go new file mode 100644 index 000000000..9927f3b5b --- /dev/null +++ b/outscale/resource_outscale_flexible_gpu.go @@ -0,0 +1,228 @@ +package outscale + +import ( + "context" + "fmt" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func resourceOutscaleOAPIFlexibleGpu() *schema.Resource { + return &schema.Resource{ + Create: resourceOutscaleOAPIFlexibleGpuCreate, + Read: resourceOutscaleOAPIFlexibleGpuRead, + Delete: resourceOutscaleOAPIFlexibleGpuDelete, + Update: resourceOutscaleOAPIFlexibleGpuUpdate, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + + Schema: map[string]*schema.Schema{ + "delete_on_vm_deletion": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "model_name": { + Type: schema.TypeString, + ForceNew: true, + Required: true, + }, + "generation": { + Type: schema.TypeString, + ForceNew: true, + Optional: true, + Computed: true, + }, + "subregion_name": { + Type: schema.TypeString, + ForceNew: true, + Required: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "vm_id": { + Type: schema.TypeString, + ForceNew: true, + Computed: true, + }, + "flexible_gpu_id": { + Type: schema.TypeString, + Computed: true, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func resourceOutscaleOAPIFlexibleGpuCreate(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + req := &oscgo.CreateFlexibleGpuRequest{} + + mn := d.Get("model_name") + req.SetModelName(mn.(string)) + + sn := d.Get("subregion_name") + req.SetSubregionName(sn.(string)) + + if v, ok := d.GetOk("delete_on_vm_deletion"); ok { + req.SetDeleteOnVmDeletion(v.(bool)) + } + + if v, ok := d.GetOk("generation"); ok { + req.SetGeneration(v.(string)) + } + + var resp oscgo.CreateFlexibleGpuResponse + var err error + err = resource.Retry(60*time.Second, func() *resource.RetryError { + resp, _, err = conn.FlexibleGpuApi.CreateFlexibleGpu( + context.Background()). + CreateFlexibleGpuRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + d.SetId(resp.FlexibleGpu.GetFlexibleGpuId()) + + return resourceOutscaleOAPIFlexibleGpuRead(d, meta) +} + +func resourceOutscaleOAPIFlexibleGpuRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + napid := d.Id() + + filter := &oscgo.FiltersFlexibleGpu{ + FlexibleGpuIds: &[]string{napid}, + } + + req := &oscgo.ReadFlexibleGpusRequest{ + Filters: filter, + } + + var resp oscgo.ReadFlexibleGpusResponse + var err error + + err = resource.Retry(60*time.Second, func() *resource.RetryError { + resp, _, err = conn.FlexibleGpuApi.ReadFlexibleGpus( + context.Background()). + ReadFlexibleGpusRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + if resp.FlexibleGpus == nil { + return fmt.Errorf("NO Net Access Point FOUND") + } + + if len(*resp.FlexibleGpus) != 1 { + return fmt.Errorf("Unable to find Flexible GPU: %#v", napid) + } + + fg := (*resp.FlexibleGpus)[0] + if err := d.Set("delete_on_vm_deletion", fg.GetDeleteOnVmDeletion()); err != nil { + return err + } + if err := d.Set("subregion_name", fg.GetSubregionName()); err != nil { + return err + } + if err := d.Set("generation", fg.GetGeneration()); err != nil { + return err + } + if err := d.Set("flexible_gpu_id", fg.GetFlexibleGpuId()); err != nil { + return err + } + if err := d.Set("vm_id", fg.GetVmId()); err != nil { + return err + } + if err := d.Set("model_name", fg.GetModelName()); err != nil { + return err + } + if err := d.Set("state", fg.GetState()); err != nil { + return err + } + if err := d.Set("request_id", resp.ResponseContext.GetRequestId()); err != nil { + return err + } + d.SetId(fg.GetFlexibleGpuId()) + return nil +} + +func resourceOutscaleOAPIFlexibleGpuUpdate(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + v := d.Get("delete_on_vm_deletion") + req := &oscgo.UpdateFlexibleGpuRequest{ + FlexibleGpuId: d.Id(), + } + req.SetDeleteOnVmDeletion(v.(bool)) + + var err error + + err = resource.Retry(60*time.Second, func() *resource.RetryError { + _, _, err = conn.FlexibleGpuApi.UpdateFlexibleGpu( + context.Background()). + UpdateFlexibleGpuRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + return resourceOutscaleOAPIFlexibleGpuRead(d, meta) + +} + +func resourceOutscaleOAPIFlexibleGpuDelete(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + req := &oscgo.DeleteFlexibleGpuRequest{ + FlexibleGpuId: d.Id(), + } + + var err error + + err = resource.Retry(60*time.Second, func() *resource.RetryError { + _, _, err = conn.FlexibleGpuApi.DeleteFlexibleGpu( + context.Background()). + DeleteFlexibleGpuRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + d.SetId("") + return nil + +} diff --git a/outscale/resource_outscale_flexible_gpu_link.go b/outscale/resource_outscale_flexible_gpu_link.go new file mode 100644 index 000000000..d1afbcc18 --- /dev/null +++ b/outscale/resource_outscale_flexible_gpu_link.go @@ -0,0 +1,244 @@ +package outscale + +import ( + "context" + "fmt" + "strings" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func resourceOutscaleOAPIFlexibleGpuLink() *schema.Resource { + return &schema.Resource{ + Create: resourceOutscaleOAPIFlexibleGpuLinkCreate, + Read: resourceOutscaleOAPIFlexibleGpuLinkRead, + Delete: resourceOutscaleOAPIFlexibleGpuLinkDelete, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + + Schema: map[string]*schema.Schema{ + "flexible_gpu_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "vm_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func resourceOutscaleOAPIFlexibleGpuLinkCreate(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + flexGpuID := d.Get("flexible_gpu_id").(string) + vmId := d.Get("vm_id").(string) + + filter := &oscgo.FiltersFlexibleGpu{ + FlexibleGpuIds: &[]string{flexGpuID}, + } + reqFlex := &oscgo.ReadFlexibleGpusRequest{ + Filters: filter, + } + reqLink := oscgo.LinkFlexibleGpuRequest{ + FlexibleGpuId: flexGpuID, + VmId: vmId, + } + + resp, _, err := conn.FlexibleGpuApi.LinkFlexibleGpu( + context.Background()).LinkFlexibleGpuRequest(reqLink).Execute() + if err != nil { + return fmt.Errorf("Error Link flexibe gpu: %s", err.Error()) + } + + if !resp.HasResponseContext() { + return fmt.Errorf("Error there is not Link flexible gpu (%s)", err) + } + + respGpu, _, err := conn.FlexibleGpuApi.ReadFlexibleGpus(context.Background()). + ReadFlexibleGpusRequest(*reqFlex).Execute() + if err != nil { + return fmt.Errorf("error reading the FlexibleGpu %s", err) + } + + if len(*respGpu.FlexibleGpus) != 1 { + return fmt.Errorf("Unable to find Flexible GPU") + } + if (*respGpu.FlexibleGpus)[0].GetState() != "attaching" { + return fmt.Errorf("Unable to link Flexible GPU") + } + + if err := changeShutdownBehavior(conn, vmId); err != nil { + return fmt.Errorf("Unable to change ShutdownBehavior: %s\n", err) + } + + return resourceOutscaleOAPIFlexibleGpuLinkRead(d, meta) +} + +func resourceOutscaleOAPIFlexibleGpuLinkRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + flexGpuID := d.Get("flexible_gpu_id").(string) + if flexGpuID == "" { + flexGpuID = d.Id() + } + req := &oscgo.ReadFlexibleGpusRequest{ + Filters: &oscgo.FiltersFlexibleGpu{ + FlexibleGpuIds: &[]string{flexGpuID}, + }, + } + + var resp oscgo.ReadFlexibleGpusResponse + var err error + err = resource.Retry(60*time.Second, func() *resource.RetryError { + resp, _, err = conn.FlexibleGpuApi.ReadFlexibleGpus( + context.Background()). + ReadFlexibleGpusRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + if len(*resp.FlexibleGpus) != 1 { + return fmt.Errorf("Unable to find Flexible GPU") + } + + fg := (*resp.FlexibleGpus)[0] + if err := d.Set("flexible_gpu_id", fg.GetFlexibleGpuId()); err != nil { + return err + } + if err := d.Set("vm_id", fg.GetVmId()); err != nil { + return err + } + if err := d.Set("request_id", resp.ResponseContext.GetRequestId()); err != nil { + return err + } + d.SetId(fg.GetFlexibleGpuId()) + return nil +} + +func resourceOutscaleOAPIFlexibleGpuLinkDelete(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + flexGpuID := d.Get("flexible_gpu_id").(string) + vmId := d.Get("vm_id").(string) + + filter := &oscgo.FiltersFlexibleGpu{ + FlexibleGpuIds: &[]string{flexGpuID}, + } + reqFlex := &oscgo.ReadFlexibleGpusRequest{ + Filters: filter, + } + + req := &oscgo.UnlinkFlexibleGpuRequest{ + FlexibleGpuId: flexGpuID, + } + + var err error + + err = resource.Retry(20*time.Second, func() *resource.RetryError { + _, _, err = conn.FlexibleGpuApi.UnlinkFlexibleGpu( + context.Background()).UnlinkFlexibleGpuRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + respGpu, _, err := conn.FlexibleGpuApi.ReadFlexibleGpus(context.Background()). + ReadFlexibleGpusRequest(*reqFlex).Execute() + if err != nil { + return fmt.Errorf("error reading the FlexibleGpu %s", err) + } + + if len(*respGpu.FlexibleGpus) != 1 { + return fmt.Errorf("Unable to find Flexible GPU") + } + if (*respGpu.FlexibleGpus)[0].GetState() != "detaching" { + return fmt.Errorf("Unable to unlink Flexible GPU") + } + + if err := changeShutdownBehavior(conn, vmId); err != nil { + return fmt.Errorf("Unable to change ShutdownBehavior: %s\n", err) + } + + d.SetId("") + return nil + +} + +func changeShutdownBehavior(conn *oscgo.APIClient, vmId string) error { + + var respV oscgo.ReadVmsResponse + + err := resource.Retry(20*time.Second, func() *resource.RetryError { + r, _, err := conn.VmApi.ReadVms(context.Background()).ReadVmsRequest(oscgo.ReadVmsRequest{ + Filters: &oscgo.FiltersVm{ + VmIds: &[]string{vmId}, + }}).Execute() + + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded:") { + return resource.RetryableError(err) + } + return resource.NonRetryableError(err) + } + respV = r + return nil + }) + + if err != nil { + return fmt.Errorf("error reading the VM %s", err) + } + if len(respV.GetVms()) == 0 { + return fmt.Errorf("error reading the VM %s err %s ", vmId, err) + } + vm := respV.GetVms()[0] + + shutdownBehOpt := vm.GetVmInitiatedShutdownBehavior() + if shutdownBehOpt != "stop" { + sbOpts := oscgo.UpdateVmRequest{VmId: vm.GetVmId()} + sbOpts.SetVmInitiatedShutdownBehavior("stop") + if err := updateVmAttr(conn, sbOpts); err != nil { + return err + } + } + + if err := stopVM(vmId, conn); err != nil { + return err + } + + if shutdownBehOpt != "stop" { + sbReq := oscgo.UpdateVmRequest{VmId: vmId} + sbReq.SetVmInitiatedShutdownBehavior(shutdownBehOpt) + if err = updateVmAttr(conn, sbReq); err != nil { + return err + } + } + + if err := startVM(vmId, conn); err != nil { + return err + } + return nil +} diff --git a/outscale/resource_outscale_flexible_gpu_link_test.go b/outscale/resource_outscale_flexible_gpu_link_test.go new file mode 100644 index 000000000..f944a6f8a --- /dev/null +++ b/outscale/resource_outscale_flexible_gpu_link_test.go @@ -0,0 +1,50 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccOutscaleOAPIFlexibleGpuLink_basic(t *testing.T) { + omi := os.Getenv("OUTSCALE_IMAGEID") + region := fmt.Sprintf("%sa", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccOutscaleOAPIFlexibleGpuLinkConfig(omi, "tinav3.c1r1p2", region), + }, + }, + }) +} + +func testAccOutscaleOAPIFlexibleGpuLinkConfig(omi, vmType, region string) string { + return fmt.Sprintf(` + resource "outscale_vm" "basic" { + image_id = "%s" + vm_type = "%s" + keypair_name = "terraform-basic" + vm_initiated_shutdown_behavior = "restart" + } + + resource "outscale_flexible_gpu" "fGPU-1" { + model_name = "nvidia-k2" + generation = "v3" + subregion_name = "%s" + delete_on_vm_deletion = true + } + + resource "outscale_flexible_gpu_link" "link_fGPU" { + flexible_gpu_id = outscale_flexible_gpu.fGPU-1.flexible_gpu_id + vm_id = outscale_vm.basic.vm_id + } + + `, omi, vmType, region) +} diff --git a/outscale/resource_outscale_flexible_gpu_test.go b/outscale/resource_outscale_flexible_gpu_test.go new file mode 100644 index 000000000..b437d7ea0 --- /dev/null +++ b/outscale/resource_outscale_flexible_gpu_test.go @@ -0,0 +1,43 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccOutscaleOAPIFlexibleGpu_basic(t *testing.T) { + region := fmt.Sprintf("%sa", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccOutscaleOAPIFlexibleGpuConfig(region), + }, + }, + }) +} + +func testAccOutscaleOAPIFlexibleGpuConfig(region string) string { + return fmt.Sprintf(` + resource "outscale_flexible_gpu" "fGPU-1" { + model_name = "nvidia-k2" + generation = "v3" + subregion_name = "%s" + delete_on_vm_deletion = true + } + + data "outscale_flexible_gpu" "data_fGPU-1" { + filter { + name = "flexible_gpu_ids" + values = [outscale_flexible_gpu.fGPU-1.flexible_gpu_id] + } + } + `, region) +} diff --git a/outscale/resource_outscale_load_balancer_listener_rule.go b/outscale/resource_outscale_load_balancer_listener_rule.go index 892ba2cfa..04c90b702 100644 --- a/outscale/resource_outscale_load_balancer_listener_rule.go +++ b/outscale/resource_outscale_load_balancer_listener_rule.go @@ -33,18 +33,15 @@ func resourceOutscaleLoadBalancerListenerRule() *schema.Resource { "listener": { Type: schema.TypeList, MaxItems: 1, - ForceNew: true, Required: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "load_balancer_name": { Type: schema.TypeString, - ForceNew: true, Required: true, }, "load_balancer_port": { Type: schema.TypeInt, - ForceNew: true, Required: true, }, }, @@ -63,7 +60,6 @@ func resourceOutscaleLoadBalancerListenerRule() *schema.Resource { "action": { Type: schema.TypeString, Optional: true, - ForceNew: true, Computed: true, }, "host_name_pattern": { @@ -74,6 +70,7 @@ func resourceOutscaleLoadBalancerListenerRule() *schema.Resource { "listener_rule_name": { Type: schema.TypeString, Required: true, + ForceNew: true, }, "listener_rule_id": { Type: schema.TypeInt, @@ -86,7 +83,6 @@ func resourceOutscaleLoadBalancerListenerRule() *schema.Resource { "path_pattern": { Type: schema.TypeString, Optional: true, - ForceNew: true, Computed: true, }, "priority": { @@ -253,48 +249,48 @@ func resourceOutscaleLoadBalancerListenerRuleUpdate(d *schema.ResourceData, meta conn := meta.(*OutscaleClient).OSCAPI if d.HasChange("listener_rule") { - n, ok := d.GetOk("listener_rule") - - if ok != true { - return fmt.Errorf("can't get listener_rule") - } - //_, n := d.GetChange("listener_rule") - ns := n.(map[string]interface{}) + nw := d.Get("listener_rule").([]interface{}) + if len(nw) > 0 { + check := nw[0].(map[string]interface{}) + req := oscgo.UpdateListenerRuleRequest{ + ListenerRuleName: d.Id(), + } + if check["host_name_pattern"] != nil { + req.SetHostPattern(check["host_name_pattern"].(string)) + } else { + req.SetHostPattern("") + } + if check["listener_rule_name"] != nil { + req.SetListenerRuleName(check["listener_rule_name"].(string)) + } else { + req.SetListenerRuleName("") + } + if check["path_pattern"] != nil { + req.SetPathPattern(check["path_pattern"].(string)) + } else { + req.SetPathPattern("") + } - req := oscgo.UpdateListenerRuleRequest{ - ListenerRuleName: d.Id(), - } - if ns["host_name_pattern"] != nil { - req.SetHostPattern(ns["host_name_pattern"].(string)) - } else { - req.SetHostPattern("") - } - if ns["listener_rule_name"] != nil { - req.SetListenerRuleName(ns["listener_rule_name"].(string)) - } else { - req.SetListenerRuleName("") - } + var err error + err = resource.Retry(5*time.Minute, func() *resource.RetryError { + _, _, err = conn.ListenerApi.UpdateListenerRule( + context.Background()).UpdateListenerRuleRequest(req). + Execute() - var err error - err = resource.Retry(5*time.Minute, func() *resource.RetryError { - _, _, err = conn.ListenerApi.UpdateListenerRule( - context.Background()).UpdateListenerRuleRequest(req). - Execute() + if err != nil { + if strings.Contains(fmt.Sprint(err), "400 Bad Request") { + return resource.NonRetryableError(err) + } + return resource.RetryableError( + fmt.Errorf("[WARN] Error creating LBU Attr: %s", err)) + } + return nil + }) if err != nil { - if strings.Contains(fmt.Sprint(err), "400 Bad Request") { - return resource.NonRetryableError(err) - } - return resource.RetryableError( - fmt.Errorf("[WARN] Error creating LBU Attr: %s", err)) + return err } - return nil - }) - - if err != nil { - return err } - } return resourceOutscaleLoadBalancerListenerRuleRead(d, meta) } diff --git a/outscale/resource_outscale_nat_service.go b/outscale/resource_outscale_nat_service.go index fe5b407cc..662da5e51 100644 --- a/outscale/resource_outscale_nat_service.go +++ b/outscale/resource_outscale_nat_service.go @@ -161,6 +161,12 @@ func resourceOAPINatServiceRead(d *schema.ResourceData, meta interface{}) error } resp := value.(oscgo.ReadNatServicesResponse) + + if len(resp.GetNatServices()) == 0 { + d.SetId("") + return fmt.Errorf("oAPI nat services not found") + } + natService := resp.GetNatServices()[0] return resourceDataAttrSetter(d, func(set AttributeSetter) error { diff --git a/outscale/resource_outscale_net_access_point.go b/outscale/resource_outscale_net_access_point.go new file mode 100644 index 000000000..7a062f856 --- /dev/null +++ b/outscale/resource_outscale_net_access_point.go @@ -0,0 +1,312 @@ +package outscale + +import ( + "context" + "fmt" + "log" + "strings" + "time" + + oscgo "github.com/outscale/osc-sdk-go/v2" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" +) + +func resourceOutscaleNetAccessPoint() *schema.Resource { + return &schema.Resource{ + Create: resourceOutscaleNetAccessPointCreate, + Read: resourceOutscaleNetAccessPointRead, + Delete: resourceOutscaleNetAccessPointDelete, + Update: resourceOutscaleNetAccessPointUpdate, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + + Schema: map[string]*schema.Schema{ + "net_access_point_id": { + Type: schema.TypeString, + Computed: true, + }, + "net_id": { + Type: schema.TypeString, + ForceNew: true, + Required: true, + }, + "route_table_ids": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, + "service_name": { + Type: schema.TypeString, + ForceNew: true, + Required: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "tags": tagsListOAPISchema(), + "request_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func resourceOutscaleNetAccessPointUpdate(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + if d.HasChange("route_table_ids") { + o, n := d.GetChange("route_table_ids") + + log.Printf("[DEBUG] it change !: %v %v", o, n) + oo := expandSetStringList(o.(*schema.Set)) + nn := expandSetStringList(n.(*schema.Set)) + destroy := make([]string, 0) + add := make([]string, 0) + + for _, v := range *oo { + to_destroy := true + for _, v2 := range *nn { + if v2 == v { + to_destroy = false + break + } + } + if to_destroy { + destroy = append(destroy, v) + } + } + + for _, v := range *nn { + to_add := true + for _, v2 := range *oo { + if v2 == v { + to_add = false + break + } + } + if to_add { + add = append(add, v) + } + } + + req := &oscgo.UpdateNetAccessPointRequest{ + AddRouteTableIds: &add, + RemoveRouteTableIds: &destroy, + NetAccessPointId: d.Id(), + } + + var resp oscgo.UpdateNetAccessPointResponse + var err error + + err = resource.Retry(60*time.Second, func() *resource.RetryError { + resp, _, err = conn.NetAccessPointApi.UpdateNetAccessPoint(context.Background()).UpdateNetAccessPointRequest(*req).Execute() + if err != nil { + if strings.Contains(err.Error(), "RequestLimitExceeded:") { + return resource.RetryableError(err) + } + return resource.NonRetryableError(err) + } + return nil + }) + d.Set("request_id", resp.ResponseContext.RequestId) + } + + if d.HasChange("tags") { + + d.Partial(true) + + if err := setOSCAPITags(conn, d); err != nil { + return err + } + + d.SetPartial("tags") + + d.Partial(false) + } + return resourceOutscaleNetAccessPointRead(d, meta) +} + +func napStateRefreshFunc(conn *oscgo.APIClient, id string) resource.StateRefreshFunc { + return func() (interface{}, string, error) { + resp, _, err := conn.NetAccessPointApi. + ReadNetAccessPoints(context.Background()). + ReadNetAccessPointsRequest(oscgo.ReadNetAccessPointsRequest{ + Filters: &oscgo.FiltersNetAccessPoint{ + NetAccessPointIds: &[]string{id}, + }, + }).Execute() + + if err != nil { + log.Printf("[ERROR] error on NetAccessPointStateRefresh: %s", err) + return nil, "", err + } + + if !resp.HasNetAccessPoints() { + return nil, "", nil + } + + nap := resp.GetNetAccessPoints()[0] + state := nap.GetState() + + return nap, state, nil + } +} + +func resourceOutscaleNetAccessPointCreate(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + req := &oscgo.CreateNetAccessPointRequest{} + + if v, ok := d.GetOk("route_table_ids"); ok { + req.RouteTableIds = expandSetStringList(v.(*schema.Set)) + } + + nid := d.Get("net_id") + req.SetNetId(nid.(string)) + + sn := d.Get("service_name") + req.SetServiceName(sn.(string)) + + var resp oscgo.CreateNetAccessPointResponse + var err error + + err = resource.Retry(60*time.Second, func() *resource.RetryError { + resp, _, err = conn.NetAccessPointApi.CreateNetAccessPoint( + context.Background()). + CreateNetAccessPointRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + //SetTags + if tags, ok := d.GetOk("tags"); ok { + err := assignTags(tags.(*schema.Set), resp.NetAccessPoint.GetNetAccessPointId(), conn) + if err != nil { + return err + } + } + + id := *resp.NetAccessPoint.NetAccessPointId + stateConf := &resource.StateChangeConf{ + Pending: []string{"pending"}, + Target: []string{"available"}, + Refresh: napStateRefreshFunc(conn, id), + Timeout: 10 * time.Minute, + Delay: 10 * time.Second, + MinTimeout: 3 * time.Second, + } + + if _, err := stateConf.WaitForState(); err != nil { + return fmt.Errorf("Error waiting for instance (%s) to become ready: %s", id, err) + } + + d.Set("request_id", resp.ResponseContext.RequestId) + d.Set("net_access_point_id", id) + d.SetId(id) + + return resourceOutscaleNetAccessPointRead(d, meta) +} + +func resourceOutscaleNetAccessPointRead(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + napid := d.Id() + + filter := &oscgo.FiltersNetAccessPoint{ + NetAccessPointIds: &[]string{napid}, + } + + req := &oscgo.ReadNetAccessPointsRequest{ + Filters: filter, + } + + var resp oscgo.ReadNetAccessPointsResponse + var err error + + err = resource.Retry(60*time.Second, func() *resource.RetryError { + resp, _, err = conn.NetAccessPointApi.ReadNetAccessPoints( + context.Background()). + ReadNetAccessPointsRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + if resp.NetAccessPoints == nil { + return fmt.Errorf("NO Net Access Point FOUND") + } + + if len(*resp.NetAccessPoints) != 1 { + return fmt.Errorf("Unable to find Net Access Point: %#v", napid) + } + + nap := (*resp.NetAccessPoints)[0] + + d.Set("route_table_ids", flattenStringList(nap.RouteTableIds)) + d.Set("net_id", nap.NetId) + d.Set("service_name", nap.ServiceName) + d.Set("state", nap.State) + d.Set("tags", tagsOSCAPIToMap(nap.GetTags())) + d.Set("net_access_point_id", nap.GetNetAccessPointId()) + if _, ok := d.GetOk("request_id"); ok == false { + d.Set("request_id", resp.ResponseContext.GetRequestId()) + } + + return nil +} + +func resourceOutscaleNetAccessPointDelete(d *schema.ResourceData, meta interface{}) error { + conn := meta.(*OutscaleClient).OSCAPI + + req := &oscgo.DeleteNetAccessPointRequest{ + NetAccessPointId: d.Id(), + } + + var err error + + err = resource.Retry(70*time.Second, func() *resource.RetryError { + _, _, err = conn.NetAccessPointApi.DeleteNetAccessPoint( + context.Background()). + DeleteNetAccessPointRequest(*req).Execute() + if err != nil { + return resource.RetryableError(err) + } + return nil + }) + + if err != nil { + return err + } + + stateConf := &resource.StateChangeConf{ + Pending: []string{"pending", "available", "deleting"}, + Target: []string{"deleted"}, + Refresh: napStateRefreshFunc(conn, d.Id()), + Timeout: 10 * time.Minute, + Delay: 10 * time.Second, + MinTimeout: 3 * time.Second, + } + + if _, err := stateConf.WaitForState(); err != nil { + return fmt.Errorf("Error waiting for instance (%s) to become ready: %s", d.Id(), err) + } + d.SetId("") + return nil + +} diff --git a/outscale/resource_outscale_net_access_point_test.go b/outscale/resource_outscale_net_access_point_test.go new file mode 100644 index 000000000..1853117a9 --- /dev/null +++ b/outscale/resource_outscale_net_access_point_test.go @@ -0,0 +1,48 @@ +package outscale + +import ( + "fmt" + "os" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +func TestAccOutscaleOAPINetAccessPoint_basic(t *testing.T) { + ServiceName := fmt.Sprintf("com.outscale.%s.api", os.Getenv("OUTSCALE_REGION")) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccOutscaleOAPINetAccessPointConfig(ServiceName), + }, + }, + }) +} + +func testAccOutscaleOAPINetAccessPointConfig(sName string) string { + return fmt.Sprintf(` + resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + } + + resource "outscale_route_table" "route_table-1" { + net_id = outscale_net.outscale_net.net_id + } + + resource "outscale_net_access_point" "net_access_point_1" { + net_id = outscale_net.outscale_net.net_id + route_table_ids = [outscale_route_table.route_table-1.route_table_id] + service_name = "%s" + tags { + key = "name" + value = "terraform-Net-Access-Point" + } + + } + `, sName) +} diff --git a/outscale/resource_outscale_net_peering.go b/outscale/resource_outscale_net_peering.go index 459a58bed..aa06b05db 100644 --- a/outscale/resource_outscale_net_peering.go +++ b/outscale/resource_outscale_net_peering.go @@ -167,6 +167,10 @@ func resourceOutscaleOAPILinPeeringRead(d *schema.ResourceData, meta interface{} return fmt.Errorf("Error reading Net Peering details: %s", errString) } + if len(resp.GetNetPeerings()) == 0 { + d.SetId("") + return fmt.Errorf("oAPI network peering not found") + } pc := resp.GetNetPeerings()[0] // The failed status is a status that we can assume just means the diff --git a/outscale/resource_outscale_route_table_link.go b/outscale/resource_outscale_route_table_link.go index 4149b6b06..54a5a70ce 100644 --- a/outscale/resource_outscale_route_table_link.go +++ b/outscale/resource_outscale_route_table_link.go @@ -191,6 +191,9 @@ func readOutscaleLinkRouteTable(meta *OutscaleClient, routeTableID, linkRouteTab return nil, rt.ResponseContext.GetRequestId(), err } + if len(rt.GetRouteTables()) == 0 { + return nil, "", fmt.Errorf("oAPI route tables for get link table not found") + } return getLinkRouteTable(linkRouteTableID, rt.GetRouteTables()[0].GetLinkRouteTables()), rt.ResponseContext.GetRequestId(), nil } diff --git a/outscale/resource_outscale_vm.go b/outscale/resource_outscale_vm.go index 907fd572d..c33ff665b 100644 --- a/outscale/resource_outscale_vm.go +++ b/outscale/resource_outscale_vm.go @@ -4,7 +4,9 @@ import ( "context" "errors" "fmt" + "io/ioutil" "log" + "net/http" "strings" "time" @@ -1071,7 +1073,23 @@ func vmStateRefreshFunc(conn *oscgo.APIClient, instanceID, failState string) res } func stopVM(vmID string, conn *oscgo.APIClient) error { - _, _, err := conn.VmApi.StopVms(context.Background()).StopVmsRequest(oscgo.StopVmsRequest{ + vmResp, _, err := readVM(vmID, conn) + if err != nil { + return err + } + shutdownBehaviorOriginal := "" + if len(vmResp.GetVms()) > 0 { + if vmResp.GetVms()[0].GetVmInitiatedShutdownBehavior() != "stop" { + shutdownBehaviorOriginal = vmResp.GetVms()[0].GetVmInitiatedShutdownBehavior() + opts := oscgo.UpdateVmRequest{VmId: vmID} + opts.SetVmInitiatedShutdownBehavior("stop") + if err = updateVmAttr(conn, opts); err != nil { + return err + } + } + } + + _, _, err = conn.VmApi.StopVms(context.Background()).StopVmsRequest(oscgo.StopVmsRequest{ VmIds: []string{vmID}, }).Execute() @@ -1093,6 +1111,14 @@ func stopVM(vmID string, conn *oscgo.APIClient) error { return fmt.Errorf("Error waiting for instance (%s) to stop: %s", vmID, err) } + if shutdownBehaviorOriginal != "" { + opts := oscgo.UpdateVmRequest{VmId: vmID} + opts.SetVmInitiatedShutdownBehavior(shutdownBehaviorOriginal) + if err = updateVmAttr(conn, opts); err != nil { + return err + } + } + return nil } @@ -1122,12 +1148,24 @@ func startVM(vmID string, conn *oscgo.APIClient) error { } func updateVmAttr(conn *oscgo.APIClient, instanceAttrOpts oscgo.UpdateVmRequest) error { - if _, _, err := conn.VmApi.UpdateVm(context.Background()).UpdateVmRequest(instanceAttrOpts).Execute(); err != nil { - return err + if _, httpResp, err := conn.VmApi.UpdateVm(context.Background()).UpdateVmRequest(instanceAttrOpts).Execute(); err != nil { + bodyBytes, errBody := ioutil.ReadAll(httpResp.Body) + if errBody != nil { + fmt.Println(errBody) + } + return fmt.Errorf("%s %s", err, string(bodyBytes)) } return nil } +func readVM(vmID string, conn *oscgo.APIClient) (oscgo.ReadVmsResponse, *http.Response, error) { + return conn.VmApi.ReadVms(context.Background()).ReadVmsRequest(oscgo.ReadVmsRequest{ + Filters: &oscgo.FiltersVm{ + VmIds: &[]string{vmID}, + }, + }).Execute() +} + // AttributeSetter you can use this function to set the attributes type AttributeSetter func(key string, value interface{}) error diff --git a/outscale/resource_outscale_vm_test.go b/outscale/resource_outscale_vm_test.go index 12d9f96b2..69b8e32d5 100644 --- a/outscale/resource_outscale_vm_test.go +++ b/outscale/resource_outscale_vm_test.go @@ -42,6 +42,43 @@ func TestAccOutscaleOAPIVM_Basic(t *testing.T) { }) } +func TestAccOutscaleOAPIVMBehavior_Basic(t *testing.T) { + var server oscgo.Vm + omi := os.Getenv("OUTSCALE_IMAGEID") + region := os.Getenv("OUTSCALE_REGION") + keypair := os.Getenv("OUTSCALE_KEYPAIR") + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: testAccProviders, + CheckDestroy: testAccCheckOutscaleOAPIVMDestroy, + Steps: []resource.TestStep{ + { + Config: testAccCheckOutscaleOAPIVMBehaviorConfigBasic(omi, "tinav4.c2r2p2", region, keypair, "high", "stop"), + Check: resource.ComposeTestCheckFunc( + testAccCheckOutscaleOAPIVMExists("outscale_vm.basic", &server), + testAccCheckOutscaleOAPIVMAttributes(t, &server, omi), + resource.TestCheckResourceAttr( + "outscale_vm.basic", "image_id", omi), + resource.TestCheckResourceAttr( + "outscale_vm.basic", "vm_type", "tinav4.c2r2p2"), + ), + }, + { + Config: testAccCheckOutscaleOAPIVMBehaviorConfigBasic(omi, "tinav4.c2r2p2", region, keypair, "highest", "restart"), + Check: resource.ComposeTestCheckFunc( + testAccCheckOutscaleOAPIVMExists("outscale_vm.basic", &server), + testAccCheckOutscaleOAPIVMAttributes(t, &server, omi), + resource.TestCheckResourceAttr( + "outscale_vm.basic", "image_id", omi), + resource.TestCheckResourceAttr( + "outscale_vm.basic", "vm_type", "tinav4.c2r2p2"), + ), + }, + }, + }) +} + func TestAccOutscaleOAPIVM_importBasic(t *testing.T) { var ( server oscgo.Vm @@ -981,3 +1018,37 @@ func assertEqual(t *testing.T, a interface{}, b interface{}, message string) { t.Fatalf(message+"Expected: %s, actual: %s", a, b) } } + +func testAccCheckOutscaleOAPIVMBehaviorConfigBasic(omi, vmType, region, keypair, perfomance, vmBehavior string) string { + return fmt.Sprintf(` + resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + + tags { + key = "Name" + value = "testacc-vm-rs" + } + } + + resource "outscale_subnet" "outscale_subnet" { + net_id = "${outscale_net.outscale_net.net_id}" + ip_range = "10.0.0.0/24" + subregion_name = "eu-west-2a" + } + + resource "outscale_vm" "basic" { + image_id = "%[1]s" + vm_type = "%[2]s" + keypair_name = "%[4]s" + #placement_subregion_name = "%[3]s" + subnet_id = "${outscale_subnet.outscale_subnet.subnet_id}" + private_ips = ["10.0.0.12"] + vm_initiated_shutdown_behavior = "%[6]s" + + performance = "%[5]s" + tags { + key = "name" + value = "Terraform-VM" + } + }`, omi, vmType, region, keypair, perfomance, vmBehavior) +} diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 000000000..c7b204b49 --- /dev/null +++ b/tests/README.md @@ -0,0 +1,38 @@ +# Test Terraform provider for Outscale API + +## Getting Started + +### Python prerequisites + +You will need Python 3. + +You can create a Virtual Env and install dependencies following command lines below: +```bash +python3 -m venv .venv +source .venv/bin/activate +pip install -r requirements.txt +``` + +### Terraform prerequisites + +You will need a Terraform v0.12.16 in your PATH. + +## Usage + +### Configuration + +TODO: Template.... + +### Execute tests + +```bash +pytest [-s] [-k ] -v ./test_provider_oapi.py +``` +* use '-s' for more detailed log in console +* use '-k' to execute a subset of tests + +## Add new tests + +TODO... + + diff --git a/tests/check.py b/tests/check.py new file mode 100644 index 000000000..f6bdf00c6 --- /dev/null +++ b/tests/check.py @@ -0,0 +1,130 @@ +#!/usr/bin/python +""" +""" +import json +import pprint +import sys +import logging + + +def looking_for_attributes(resource): + """Fetch attributes dict in resource + In the following example resources.instances[0].attributes will be returned +{ + "version": 4, + "terraform_version": "0.12.16", + "serial": 3, + "lineage": "5e62916e-5910-65a9-a2a5-4463f0c9a308", + "outputs": {}, + "resources": [ + { + "mode": "managed", + "type": "outscale_vm", + "name": "vm001", + "provider": "provider.outscale", + "instances": [ + { + "schema_version": 0, + "attributes": { + "admin_password": "", + "architecture": "x86_64", + "block_device_mappings": [], + .... + + + """ + target_resource_key = [res for res in resource.keys() if res not in ['mode', 'type', 'name', 'provider']] + if len(target_resource_key) != 1 : + print('Can not guess resource in {}'.format(resource.keys())) + return None + target_resource_key = target_resource_key[0] + if not isinstance(resource[target_resource_key], list): + print('Expecting resource to be a list') + return None + target_resource = resource[target_resource_key][0] + attributes = target_resource['attributes'] + return attributes + + +def flattern(content, line, result): + if isinstance(content, (bool, int, str)): + result.append("{}.{}".format(line, content)) # end + return + for left, right in content.items(): + if isinstance(right, (bool, int, str)) or right is None: + result.append("{}.{}".format(line, left)) # end + elif isinstance(right, list) and len(right) != 0: + result.append('{}.{}.#'.format(line, left)) + for rright_count, rright in enumerate(right): + current_line = '{}.{}.{}'.format(line, left, rright_count) + flattern(rright, current_line, result) + elif isinstance(right, list) and len(right) == 0: + result.append('{}.{}'.format(line, left)) + +def parse_terraform_state_pull(reported, item): + """ + :param str reported: filepath to terraform state pull file. + :param str item: item you want to check + """ + result = [] + with open(reported, 'r') as report: + reported_content = json.loads(report.read()) + resource_item_content = [resource for resource in reported_content['resources'] if resource['type'] == item] + if len(resource_item_content) == 0: + print('ERROR. Looking for type={}. See content:\n'.format(item)) + pprint.pprint(reported_content) + return 1 + resource_item_content = resource_item_content[0] + attributes = looking_for_attributes(resource_item_content) + flattern(attributes, '', result) + result = [res[1:] for res in result] + result.sort() + return result + +def patch_item(item): + """ugly way to patch without modifying all existing runCmd(./check.py ... ) + Terraform0.11 has items like outscale_public_ip.outscale_public_ip where terraform 0.12 "type" field is just outscale_public_ip + """ + items = item.split('.') + if len(items) == 2: + return items[1] + return item + +def main(reported, attended, item): + """ + :param str reported: filepath to terraform state pull file. + :param str attended: filepath to file which lists datasources attributes + :param str item: item you want to check + """ + logger = logging.getLogger('tpd_test') + item = patch_item(item) + reported_result = parse_terraform_state_pull(reported, item) + attended_result = [] + with open(attended, 'r') as att: + attended_result = [line for line in att.read().splitlines() if not line.startswith('#')] + if reported_result == 1: + logger.debug('???') + return ['unknown error ???'] + missing = set(attended_result) - set(reported_result) + if attended_result or missing: + logger.debug('===== check.py : Differences between terraform reported (pull result) attributes and attended attributes') + for unkown in set(reported_result) - set(attended_result): + logger.debug('Unkown: {}'.format(unkown)) + for miss in missing: + logger.debug('Missing: {}'.format(miss)) + if len(missing) != 0: + return missing + return None + + +def check(): + """Ce patch degueu pour eviter de commenter tous les tests avec from check import check + """ + pass + +if __name__ == '__main__': + if len(sys.argv) == 4: + return_code = main(sys.argv[1], sys.argv[2], sys.argv[3]) + sys.exit(return_code) + else: + print("command: check.py reportedAttributes attendedAttributes item") diff --git a/tests/migrate.sh b/tests/migrate.sh new file mode 100755 index 000000000..2a612d026 --- /dev/null +++ b/tests/migrate.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +for f in $(find provider_outscale_oapi/test/ -name '*.py' -type f); do + cat=$(echo $f | cut -d '/' -f4 | sed 's/outscale_//g') + test_name=$(echo $f | cut -d '/' -f5 | sed 's/.*outscale_//g;s/.py//g') + tf_file_list=$(grep "ln -s" $f | sed 's/.*ln -s //g' | sed 's/ test.tf.*//g') + echo "mkdir -p qa_provider_oapi/$cat/TF00_"$test_name + mkdir -p "qa_provider_oapi/$cat/TF00_"$test_name + origin="qa_provider_oapi/$cat/TF00_"$test_name"/origin.txt" + echo "" > $origin + echo "python file: $f" >> $origin + i=1 + if [ -z "$tf_file_list" ]; then + echo "WARNING: No tf file" >> $origin + fi + for tf_file in $tf_file_list; do + step_name=$(echo $tf_file | sed 's/.*config_outscale_//g') + if [ ! -f "$tf_file" ]; then + echo "WARNING: tf file not found '$tf_file'" >> $origin + continue + fi + nb_lin=$(grep "outscale_lin" $tf_file | grep -c -v "#") + if [ "$nb_lin" != "0" ]; then + echo "WARNING: LIN found in tf file '$tf_file'" >> $origin + fi + cp $tf_file "qa_provider_oapi/$cat/TF00_"$test_name"/step"$i"."$step_name".tf" + echo "tf file: $tf_file" >> $origin + + IFS=$'\n' + check_list=$(grep "check.py" $f | grep -v "#runCmde" | sed 's/.*\.json //g;s/", .*//g') + if [ -z "$check_list" ]; then + echo "WARNING: No check file !!!" >> $origin + fi + for check in $check_list; do + check_file=$(echo $check | cut -d ' ' -f1) + res_name=$(echo $check | cut -d ' ' -f2) + if [ ! -f "$check_file" ]; then + echo "WARNING: check file not found '$check_file'" >> $origin + continue + fi + cp $check_file "qa_provider_oapi/$cat/TF00_"$test_name"/step"$i"."$res_name".check" + echo "check file: $check_file" >> $origin + done + unset IFS + + i=$((i+1)) + done + +done + + +#for f in $(grep -r "var." ./qa_provider_oapi | cut -d ':' -f1 | sort -u); do +for f in $(find ./qa_provider_oapi -type f -name "*.tf"); do + echo $f + sed -i '' 's/"${//g;s/}"//g;s/var.region}a"/format("%s%s", var.region, "a")/g;s/var.region}b"/format("%s%s", var.region, "b")/g' $f +done + diff --git a/tests/provider.auto.tfvars.template b/tests/provider.auto.tfvars.template new file mode 100644 index 000000000..0ff8586d4 --- /dev/null +++ b/tests/provider.auto.tfvars.template @@ -0,0 +1,4 @@ +account_id = "xxxxxxxx" +access_key_id = "xxx" +secret_key_id = "xxx" +region = "xx-xxxxx-x" diff --git a/examples/config.tf b/tests/provider.tf similarity index 100% rename from examples/config.tf rename to tests/provider.tf diff --git a/tests/qa_provider_oapi/examples/TF00_examples_attributes_ok/origin.txt b/tests/qa_provider_oapi/examples/TF00_examples_attributes_ok/origin.txt new file mode 100644 index 000000000..5bedbd8a2 --- /dev/null +++ b/tests/qa_provider_oapi/examples/TF00_examples_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_examples/test_outscale_examples_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_examples/config_outscale_examples +WARNING: No check file !!! diff --git a/tests/qa_provider_oapi/examples/TF00_examples_attributes_ok/step1.examples.tf b/tests/qa_provider_oapi/examples/TF00_examples_attributes_ok/step1.examples.tf new file mode 100644 index 000000000..873784e4a --- /dev/null +++ b/tests/qa_provider_oapi/examples/TF00_examples_attributes_ok/step1.examples.tf @@ -0,0 +1,551 @@ +#---001------------------------------------------------------------------ +resource "outscale_vm" "vm001" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + placement_subregion_name = format("%s%s", var.region, "a") + placement_tenancy = "default" +} +#------------------------------------------------------------------------ + +#---002------------------------------------------------------------------ +resource "outscale_vm" "vm002" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_names = [var.security_group_name] + placement_subregion_name = format("%s%s", var.region, "a") + placement_tenancy = "default" +} +#------------------------------------------------------------------------ + +#---003------------------------------------------------------------------ +resource "outscale_vm" "vm003" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +data "outscale_vm" "vm_003d" { + filter { + name = "vm_ids" + values = [outscale_vm.vm003.vm_id] + } +} +#------------------------------------------------------------------------ + +#---004------------------------------------------------------------------ +resource "outscale_vm" "vm004" { + count = 2 + + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +data "outscale_vm" "outscale_vm004_0d" { + filter { + name = "vm_ids" + values = [outscale_vm.vm004.*.vm_id[0]] + } +} + +data "outscale_vm" "outscale_vm_004_1d" { + filter { + name = "vm_ids" + values = [outscale_vm.vm004.*.vm_id[1]] + } +} +#------------------------------------------------------------------------ + +#---005------------------------------------------------------------------ +resource "outscale_net" "net005" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "subnet005" { + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.net005.net_id +} + +resource "outscale_security_group" "security_group005" { + count = 1 + + description = "test group005" + security_group_name = "sg1-test-group_test-net005" + net_id = outscale_net.net005.net_id +} + +resource "outscale_vm" "outscale_vm005" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [outscale_security_group.security_group005.security_group_id] + placement_subregion_name = format("%s%s", var.region, "a") + placement_tenancy = "default" + #is_source_dest_checked = true + subnet_id = outscale_subnet.subnet005.subnet_id +} +#------------------------------------------------------------------------ + +#---014------------------------------------------------------------------ +#TODO outscale_vm_attributes (merged in outscale_vm) + +#------------------------------------------------------------------------ + + + +#------------------------------------------------------------------------ + +#---006------------------------------------------------------------------ +resource "outscale_vm" "vm006" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + #placement_subregion_name = format("%s%s", var.region, "a") + #placement_tenancy = "default" +} + +data "outscale_vm_state" "vm_state006d" { + filter { + name = "vm_ids" + values = [outscale_vm.vm006.vm_id] + } +} +#------------------------------------------------------------------------ + +#---007------------------------------------------------------------------ +resource "outscale_public_ip" "public_ip007" { +} +#------------------------------------------------------------------------ + +#---008------------------------------------------------------------------ +resource "outscale_public_ip" "public_ip008" { +} + +#data "outscale_public_ip" "public_ip008d" { +# filter { +# name = "public_ips" +# values = [outscale_public_ip.public_ip008.public_ip] +# } +#} +#------------------------------------------------------------------------ + +#---009------------------------------------------------------------------ +resource "outscale_public_ip" "public_ip009" { +} + +resource "outscale_vm" "vm009" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_public_ip_link" "public_ip_link009" { + vm_id = outscale_vm.vm009.vm_id + public_ip = outscale_public_ip.public_ip009.public_ip +} +#------------------------------------------------------------------------ + +#---010------------------------------------------------------------------ +resource "outscale_volume" "volume010" { + subregion_name = format("%s%s", var.region, "a") + size = 10 +} +#------------------------------------------------------------------------ + +#---011------------------------------------------------------------------ +resource "outscale_volume" "volume011" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + iops = 100 + volume_type = "io1" +} +#------------------------------------------------------------------------ + +#---012------------------------------------------------------------------ +resource "outscale_volume" "volume012" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + snapshot_id = var.snapshot_id +} +#------------------------------------------------------------------------ + +#---013------------------------------------------------------------------ +resource "outscale_volume" "volume013" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + iops = 100 + volume_type = "io1" + +} + +data "outscale_volume" "outscale_volume013d" { + filter { + name = "volume_ids" + values = [outscale_volume.volume013.volume_id] + } +} +#------------------------------------------------------------------------ + +#---015------------------------------------------------------------------ +resource "outscale_volume" "volume015" { + subregion_name = format("%s%s", var.region, "a") + size = 40 +} + +resource "outscale_vm" "vm015" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_volumes_link" "volumes_link015" { + device_name = "/dev/xvdc" + volume_id = outscale_volume.volume015.id + vm_id = outscale_vm.vm015.id +} +#------------------------------------------------------------------------ + +#---016------------------------------------------------------------------ +resource "outscale_internet_service" "internet_service016" { +} +#------------------------------------------------------------------------ + +#---017------------------------------------------------------------------ +resource "outscale_internet_service" "internet_service017" { +} + +data "outscale_internet_service" "internet_service017d" { + filter { + name = "internet_service_ids" + values = [outscale_internet_service.internet_service017.internet_service_id] + } +} +#------------------------------------------------------------------------ + +#---018------------------------------------------------------------------ +resource "outscale_internet_service_link" "internet_service_link018" { + internet_service_id = outscale_internet_service.internet_service018.internet_service_id + net_id = outscale_net.net018.net_id +} + +resource "outscale_net" "net018" { + ip_range = "10.0.0.0/18" +} + +resource "outscale_internet_service" "internet_service018" { +} +#------------------------------------------------------------------------ + +#---019------------------------------------------------------------------ +resource "outscale_net" "net019" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "subnet019" { + net_id = outscale_net.net019.net_id + ip_range = "10.0.0.0/18" +} + +resource "outscale_public_ip" "public_ip019" { +} + +resource "outscale_nat_service" "nat_service019" { + depends_on = ["outscale_route.route019"] + subnet_id = outscale_subnet.subnet019.subnet_id + public_ip_id = outscale_public_ip.public_ip019.public_ip_id +} + +resource "outscale_route_table" "route_table019" { + net_id = outscale_net.net019.net_id +} + +resource "outscale_route" "route019" { + destination_ip_range = "0.0.0.0/0" + gateway_id = outscale_internet_service.internet_service019.internet_service_id + route_table_id = outscale_route_table.route_table019.route_table_id +} + +resource "outscale_route_table_link" "route_table_link019" { + subnet_id = outscale_subnet.subnet019.subnet_id + route_table_id = outscale_route_table.route_table019.id +} + +resource "outscale_internet_service" "internet_service019" { +} + +resource "outscale_internet_service_link" "internet_service_link019" { + net_id = outscale_net.net019.net_id + internet_service_id = outscale_internet_service.internet_service019.id +} + +data "outscale_nat_service" "nat_service019" { + filter { + name = "nat_service_ids" + values = [outscale_nat_service.nat_service019.nat_service_id] + } +} +#------------------------------------------------------------------------ + +#---020------------------------------------------------------------------ +resource "outscale_net" "net020" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "subnet020" { + net_id = outscale_net.net020.net_id + ip_range = "10.0.0.0/18" +} +#------------------------------------------------------------------------ + + + + + +#------------------------------------------------------------------------ +#TODO outscale_route_table +#------------------------------------------------------------------------ +#TODO outscale_route_table_link (1) +#------------------------------------------------------------------------ +#TODO outscale_route +#------------------------------------------------------------------------ + + +#---024------------------------------------------------------------------ +resource "outscale_net" "net024" { + ip_range = "10.0.0.0/16" + + tags = [{ + key = "Name" + value = "outscale_net_resource" + }, + { + key = "VerSion" + value = "1Q84" + }] +} + +data "outscale_net" "net024d" { + filter { + name = "net_ids" + values = [outscale_net.net024.net_id] + } +} +#------------------------------------------------------------------------ + +#---025------------------------------------------------------------------ +resource "outscale_net" "net025" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_net_attributes" "net_attributes025" { + net_id = outscale_net.net025.net_id + dhcp_options_set_id = var.dhcp_options_set_id +} + +data "outscale_net_attributes" "net_attributes025d" { + net_id = outscale_net.net025.net_id +} +#------------------------------------------------------------------------ + + + +#---026------------------------------------------------------------------ +#TODO outscale_net_peering +#------------------------------------------------------------------------ + +#---027------------------------------------------------------------------ +#TODO outscale_net_peering_acceptation (6) +#------------------------------------------------------------------------ + + + + +#---021------------------------------------------------------------------ +data "outscale_image" "image021" { + filter { + name = "image_ids" + values = [var.image_id] + } +} +#------------------------------------------------------------------------ + + +#---022------------------------------------------------------------------ +resource "outscale_image" "image022" { + image_name = "terraform test for image attributes" + vm_id = var.vm_id + no_reboot = "true" +} +#------------------------------------------------------------------------ + + +#---023------------------------------------------------------------------ +resource "outscale_vm" "vm023" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_image" "image023" { + image_name = "terraform test image launch permission" + vm_id = outscale_vm.vm023.vm_id + no_reboot = "true" +} + +resource "outscale_image_launch_permission" "image_launch_permission023" { + image_id = outscale_image.image023.image_id + + permission_additions = { + account_ids = [var.account_id] + } +} +#------------------------------------------------------------------------ + + + + + + +#---028------------------------------------------------------------------ +resource "outscale_keypair" "keypair028" { + keypair_name = "keyname_test_ford028" +} + +data "outscale_keypair" "keypair028d" { + filter { + name = "keypair_names" + values = [outscale_keypair.keypair028.keypair_name] + } +} +#------------------------------------------------------------------------ + +#---029------------------------------------------------------------------ +resource "outscale_keypair" "keypair029" { + keypair_name = "keyname_test_import029" + public_key = file("keypair_public_test.pub") +} +#------------------------------------------------------------------------ + + + +#---030------------------------------------------------------------------ +resource "outscale_net" "net030" { + ip_range = "10.0.0.0/16" + + tags = { + key = "Name" + value = "outscale_net_resource030" + } +} + +data "outscale_security_group" "security_group030d" { + filter { + name = "security_group_ids" + values = [outscale_security_group.security_group030.security_group_id] + } +} + +resource "outscale_security_group" "security_group030" { + description = "test group" + security_group_name = "sg1-test-group_test-d030" + net_id = outscale_net.net030.net_id +} +#------------------------------------------------------------------------ + +#---031------------------------------------------------------------------ +resource "outscale_security_group" "security_group031" { + description = "test group031" + security_group_name = "sg1-test-group_test031" +} + +resource "outscale_security_group_rule" "security_group_rule031" { + flow = "Inbound" + security_group_id = outscale_security_group.security_group031.id + + from_port_range = "0" + to_port_range = "0" + #ip_protocol = "-1" + ip_protocol = "tcp" + ip_range = "0.0.0.0/0" +} +#------------------------------------------------------------------------ + +#---032------------------------------------------------------------------ +resource "outscale_net" "net032" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "subnet032" { + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.net032.net_id +} + +resource "outscale_nic" "nic032" { + subnet_id = outscale_subnet.subnet032.subnet_id +} +#------------------------------------------------------------------------ + +#---033------------------------------------------------------------------ +resource "outscale_volume" "volume033" { + subregion_name = format("%s%s", var.region, "a") + size = 40 +} + +resource "outscale_snapshot" "snapshot033" { + volume_id = outscale_volume.volume033.volume_id +} + +data "outscale_snapshot" "snapshot033d" { + filter { + name = "snapshot_ids" + values = [outscale_snapshot.snapshot033.snapshot_id] + } +} +#------------------------------------------------------------------------ + + +#---034------------------------------------------------------------------ +resource "outscale_volume" "volume034" { + subregion_name = format("%s%s", var.region, "a") + size = 40 +} + +resource "outscale_snapshot" "snapshot034" { + volume_id = outscale_volume.volume034.volume_id +} + +resource "outscale_snapshot_attributes" "snapshot_attributes034" { + snapshot_id = outscale_snapshot.snapshot034.snapshot_id + permissions_to_create_volume_additions = { + account_ids = [var.account_id] + } +} + +data "outscale_snapshot" "snapshot034d" { + depends_on = ["outscale_snapshot_attributes.snapshot_attributes034"] + snapshot_id = outscale_snapshot.snapshot034.snapshot_id +} +#------------------------------------------------------------------------ + +#------------------------------------------------------------------------ +#TODO outscale_tag (2) +#------------------------------------------------------------------------ + + +#------------------------------------------------------------------------ +#TODO outscale_nic_link +#------------------------------------------------------------------------ +#TODO outscale_nic_private_ip +#------------------------------------------------------------------------ + diff --git a/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..cf2fdc0cf --- /dev/null +++ b/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_image/test_outscale_image_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_image/config_outscale_image_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_image/outscale_image_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/step1.image_datasource_attributes_ok.tf b/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/step1.image_datasource_attributes_ok.tf new file mode 100644 index 000000000..c96f6872c --- /dev/null +++ b/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/step1.image_datasource_attributes_ok.tf @@ -0,0 +1,6 @@ +data "outscale_image" "outscale_image" { + filter { + name = "image_ids" + values = [var.image_id] + } +} diff --git a/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/step1.outscale_image.outscale_image.check b/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/step1.outscale_image.outscale_image.check new file mode 100644 index 000000000..6d6d1eb8e --- /dev/null +++ b/tests/qa_provider_oapi/image/TF00_image_datasource_attributes_ok/step1.outscale_image.outscale_image.check @@ -0,0 +1,50 @@ +account_alias +account_id +architecture +block_device_mappings.# +block_device_mappings.0.bsu.% +block_device_mappings.0.bsu.delete_on_vm_deletion +block_device_mappings.0.bsu.iops +block_device_mappings.0.bsu.snapshot_id +block_device_mappings.0.bsu.volume_size +block_device_mappings.0.bsu.volume_type +block_device_mappings.0.device_name +block_device_mappings.0.virtual_device_name +# add block_device_mappings for a second device +#block_device_mappings.1.bsu.% +#block_device_mappings.1.bsu.delete_on_vm_deletion +#block_device_mappings.1.bsu.iops +#block_device_mappings.1.bsu.snapshot_id +#block_device_mappings.1.bsu.volume_size +#block_device_mappings.1.bsu.volume_type +#block_device_mappings.1.device_name +#block_device_mappings.1.virtual_device_name +creation_date +description +file_location +image_id +image_name +image_type +permissions_to_launch.# +permissions_to_launch.0.account_ids.# +permissions_to_launch.0.global_permission +# add permissions_to_launch for a second device +#permissions_to_launch.1.account_ids.# +#permissions_to_launch.1.global_permission +product_codes.# +product_codes.0 +root_device_name +root_device_type +state +state_comment.% +state_comment.state_code +state_comment.state_message +tags.# +tags.0.key +tags.0.value +# add tags for the second device +#tags.1.key +#tags.1.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..1a4355391 --- /dev/null +++ b/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_image/test_outscale_image_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_image/config_outscale_image_no-reboot_resource_std_attributes_ok +check file: provider_outscale_oapi/test/outscale_image/outscale_image_resource_attributes.txt diff --git a/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/step1.image_no-reboot_resource_std_attributes_ok.tf b/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/step1.image_no-reboot_resource_std_attributes_ok.tf new file mode 100644 index 000000000..468735f44 --- /dev/null +++ b/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/step1.image_no-reboot_resource_std_attributes_ok.tf @@ -0,0 +1,14 @@ +resource "outscale_image" "outscale_image" { + image_name = "terraform test for image attributes" + vm_id = var.vm_id + no_reboot = "true" +} + +### Test Copy Image + +resource "outscale_image" "outscale_image_2" { +description = "Test-copy-image" +image_name = "test-copy-image" +source_image_id= var.image_id +source_region_name= var.region +} diff --git a/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/step1.outscale_image.outscale_image.check b/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/step1.outscale_image.outscale_image.check new file mode 100644 index 000000000..d16f11cf6 --- /dev/null +++ b/tests/qa_provider_oapi/image/TF00_image_resource_attributes_ok/step1.outscale_image.outscale_image.check @@ -0,0 +1,40 @@ +account_alias +account_id +architecture +block_device_mappings.# +block_device_mappings.0.bsu.% +block_device_mappings.0.bsu.delete_on_vm_deletion +block_device_mappings.0.bsu.iops +block_device_mappings.0.bsu.snapshot_id +block_device_mappings.0.bsu.volume_size +block_device_mappings.0.bsu.volume_type +block_device_mappings.0.device_name +block_device_mappings.0.virtual_device_name +creation_date +description +file_location +image_id +image_name +image_type +permissions_to_launch.# +permissions_to_launch.0.account_ids.# +permissions_to_launch.0.global_permission +#permissions_to_launch.% +#permissions_to_launch.account_ids.# +#permissions_to_launch.global_permission +product_codes.# +product_codes.0 +root_device_name +root_device_type +state +state_comment.% +state_comment.state_code +state_comment.state_message +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id +vm_id +no_reboot \ No newline at end of file diff --git a/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..d4d8841a0 --- /dev/null +++ b/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_image_launch_permission/test_outscale_image_launch_permission_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_image_launch_permission/config_outscale_image_launch_permission_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_image_launch_permission/outscale_image_launch_permission_resource_attributes.txt diff --git a/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/step1.image_launch_permission_resource_attributes_ok.tf b/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/step1.image_launch_permission_resource_attributes_ok.tf new file mode 100644 index 000000000..5c35e4e47 --- /dev/null +++ b/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/step1.image_launch_permission_resource_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_image" "outscale_image" { + image_name = "terraform test image launch permission" + vm_id = outscale_vm.outscale_vm.vm_id + no_reboot = "true" +} + +resource "outscale_image_launch_permission" "outscale_image_launch_permission" { + image_id = outscale_image.outscale_image.image_id + + permission_additions { + account_ids = ["313532087625"] + } +} diff --git a/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/step1.outscale_image_launch_permission.outscale_image_launch_permission.check b/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/step1.outscale_image_launch_permission.outscale_image_launch_permission.check new file mode 100644 index 000000000..64fd7adde --- /dev/null +++ b/tests/qa_provider_oapi/image_launch_permission/TF00_image_launch_permission_resource_attributes_ok/step1.outscale_image_launch_permission.outscale_image_launch_permission.check @@ -0,0 +1,12 @@ +image_id +description +#permissions_to_launch.% +#permissions_to_launch.account_ids.# +#permissions_to_launch.global_permission +permissions_to_launch.# +permissions_to_launch.0.account_ids.# +permissions_to_launch.0.account_ids.0 +permissions_to_launch.0.global_permission +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..3ebfec82b --- /dev/null +++ b/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_images/test_outscale_images_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_images/config_outscale_images_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_images/outscale_images_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/step1.images_datasource_attributes_ok.tf b/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/step1.images_datasource_attributes_ok.tf new file mode 100644 index 000000000..de04a07a6 --- /dev/null +++ b/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/step1.images_datasource_attributes_ok.tf @@ -0,0 +1,28 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id +} + +resource "outscale_image" "outscale_image1" { + image_name = "test datasources 1" + vm_id = outscale_vm.outscale_vm.vm_id + no_reboot = "true" +} + +resource "outscale_image" "outscale_image2" { + image_name = "test datasources 2" + vm_id = outscale_vm.outscale_vm.vm_id + no_reboot = "true" +} + + +data "outscale_images" "outscale_images" { + + #executable_by = ["339215505907"] # customer-tooling + + filter { + #name = "architectures" + #values = ["x86_64"] + name = "image_ids" + values = [outscale_image.outscale_image1.image_id,outscale_image.outscale_image2.image_id] + } +} diff --git a/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/step1.outscale_images.outscale_images.check b/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/step1.outscale_images.outscale_images.check new file mode 100644 index 000000000..9c3e4046b --- /dev/null +++ b/tests/qa_provider_oapi/images/TF00_images_datasource_attributes_ok/step1.outscale_images.outscale_images.check @@ -0,0 +1,70 @@ +images.# +images.0.account_alias +images.0.account_id +images.0.architecture +images.0.block_device_mappings.# +images.0.block_device_mappings.0.bsu.% +images.0.block_device_mappings.0.bsu.delete_on_vm_deletion +images.0.block_device_mappings.0.bsu.iops +images.0.block_device_mappings.0.bsu.snapshot_id +images.0.block_device_mappings.0.bsu.volume_size +images.0.block_device_mappings.0.bsu.volume_type +images.0.block_device_mappings.0.device_name +images.0.block_device_mappings.0.virtual_device_name +images.0.block_device_mappings.0.no_device +images.0.creation_date +images.0.description +images.0.file_location +images.0.image_id +images.0.image_name +images.0.image_type +images.0.permissions_to_launch.# +images.0.permissions_to_launch.0.account_ids.# +images.0.permissions_to_launch.0.global_permission +images.0.product_codes.# +images.0.product_codes.0 +images.0.root_device_name +images.0.root_device_type +images.0.state +images.0.state_comment.% +images.0.state_comment.state_code +images.0.state_comment.state_message +images.0.tags.# +images.0.tags.0.key +images.0.tags.0.value +images.1.account_alias +images.1.account_id +images.1.architecture +images.1.block_device_mappings.# +images.1.block_device_mappings.0.bsu.% +images.1.block_device_mappings.0.bsu.delete_on_vm_deletion +images.1.block_device_mappings.0.bsu.iops +images.1.block_device_mappings.0.bsu.snapshot_id +images.1.block_device_mappings.0.bsu.volume_size +images.1.block_device_mappings.0.bsu.volume_type +images.1.block_device_mappings.0.device_name +images.1.block_device_mappings.0.virtual_device_name +images.1.block_device_mappings.0.no_device +images.1.creation_date +images.1.description +images.1.file_location +images.1.image_id +images.1.image_name +images.1.image_type +images.1.permissions_to_launch.# +images.1.permissions_to_launch.0.account_ids.# +images.1.permissions_to_launch.0.global_permission +images.1.product_codes.# +images.1.product_codes.0 +images.1.root_device_name +images.1.root_device_type +images.1.state +images.1.state_comment.% +images.1.state_comment.state_code +images.1.state_comment.state_message +images.1.tags.# +images.1.tags.0.key +images.1.tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..ae7e0346b --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_internet_service/test_outscale_internet_service_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_internet_service/config_outscale_internet_service_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_internet_service/outscale_internet_service_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/step1.internet_service_datasource_attributes_ok.tf b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/step1.internet_service_datasource_attributes_ok.tf new file mode 100644 index 000000000..ab4e353b1 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/step1.internet_service_datasource_attributes_ok.tf @@ -0,0 +1,13 @@ +resource "outscale_internet_service" "outscale_internet_service" { + tags { + key = "newTag" + value = "IGW" + } +} + +data "outscale_internet_service" "outscale_internet_serviced" { + filter { + name = "internet_service_ids" + values = [outscale_internet_service.outscale_internet_service.internet_service_id] + } +} diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/step1.outscale_internet_service.outscale_internet_service.check b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/step1.outscale_internet_service.outscale_internet_service.check new file mode 100644 index 000000000..5ddede245 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok/step1.outscale_internet_service.outscale_internet_service.check @@ -0,0 +1,9 @@ +internet_service_id +net_id +state +tags.# +#tags.0.key +#tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/origin.txt b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/origin.txt new file mode 100644 index 000000000..eb92b2953 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_internet_service/test_outscale_internet_service_datasource_attributes_ok2.py +tf file: provider_outscale_oapi/config/outscale_internet_service/config_outscale_internet_service_datasource_attributes_ok2 +check file: provider_outscale_oapi/test/outscale_internet_service/outscale_internet_service_datasource_attributes2.txt diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/step1.internet_service_datasource_attributes_ok2.tf b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/step1.internet_service_datasource_attributes_ok2.tf new file mode 100644 index 000000000..ed855ed31 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/step1.internet_service_datasource_attributes_ok2.tf @@ -0,0 +1,13 @@ +resource "outscale_internet_service" "outscale_internet_service" { +tags { + key = "test" + value = "internet_service" + } +} + +data "outscale_internet_service" "outscale_internet_serviced" { + filter { + name = "internet_service_ids" + values = [outscale_internet_service.outscale_internet_service.internet_service_id] + } +} diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/step1.outscale_internet_service.outscale_internet_service.check b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/step1.outscale_internet_service.outscale_internet_service.check new file mode 100644 index 000000000..fd45d3f95 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_datasource_attributes_ok2/step1.outscale_internet_service.outscale_internet_service.check @@ -0,0 +1,9 @@ +internet_service_id +net_id +state +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..f89b771ac --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_internet_service/test_outscale_internet_service_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_internet_service/config_outscale_internet_service_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_internet_service/outscale_internet_service_resource_attributes.txt diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/step1.internet_service_resource_attributes_ok.tf b/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/step1.internet_service_resource_attributes_ok.tf new file mode 100644 index 000000000..2dd7dc0c1 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/step1.internet_service_resource_attributes_ok.tf @@ -0,0 +1,6 @@ +resource "outscale_internet_service" "outscale_internet_service" { +tags { + key = "Name" + value = "Terraform-IGW" + } +} diff --git a/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/step1.outscale_internet_service.outscale_internet_service.check b/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/step1.outscale_internet_service.outscale_internet_service.check new file mode 100644 index 000000000..fd45d3f95 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service/TF00_internet_service_resource_attributes_ok/step1.outscale_internet_service.outscale_internet_service.check @@ -0,0 +1,9 @@ +internet_service_id +net_id +state +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..207988e5b --- /dev/null +++ b/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_internet_service_link/test_outscale_internet_service_link_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_internet_service_link/config_outscale_internet_service_link_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_internet_service_link/outscale_internet_service_link_resource_attributes.txt diff --git a/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/step1.internet_service_link_resource_attributes_ok.tf b/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/step1.internet_service_link_resource_attributes_ok.tf new file mode 100644 index 000000000..45ab42b71 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/step1.internet_service_link_resource_attributes_ok.tf @@ -0,0 +1,16 @@ + +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/18" +} + +resource "outscale_internet_service" "outscale_internet_service" { +tags { + key = "Name" + value = "Terraform-IGW" + } +} + +resource "outscale_internet_service_link" "outscale_internet_service_link" { + internet_service_id = outscale_internet_service.outscale_internet_service.internet_service_id + net_id = outscale_net.outscale_net.net_id +} diff --git a/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/step1.outscale_internet_service_link.outscale_internet_service_link.check b/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/step1.outscale_internet_service_link.outscale_internet_service_link.check new file mode 100644 index 000000000..fd45d3f95 --- /dev/null +++ b/tests/qa_provider_oapi/internet_service_link/TF00_internet_service_link_resource_attributes_ok/step1.outscale_internet_service_link.outscale_internet_service_link.check @@ -0,0 +1,9 @@ +internet_service_id +net_id +state +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..6df536c27 --- /dev/null +++ b/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_internet_services/test_outscale_internet_services_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_internet_services/config_outscale_internet_services_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_internet_services/outscale_internet_services_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/step1.internet_services_datasource_attributes_ok.tf b/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/step1.internet_services_datasource_attributes_ok.tf new file mode 100644 index 000000000..972445712 --- /dev/null +++ b/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/step1.internet_services_datasource_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_internet_service" "outscale_internet_service" { + tags { + key = "name" + value = "Internet-service-1" + } +} + +resource "outscale_internet_service" "outscale_internet_service2" { +tags { + key = "name" + value = "Internet-service-2" + } +} + +data "outscale_internet_services" "outscale_internet_services" { + filter { + name = "internet_service_ids" + values = [outscale_internet_service.outscale_internet_service.internet_service_id, outscale_internet_service.outscale_internet_service2.internet_service_id] + } +} diff --git a/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/step1.outscale_internet_services.outscale_internet_services.check b/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/step1.outscale_internet_services.outscale_internet_services.check new file mode 100644 index 000000000..02fe7a8a7 --- /dev/null +++ b/tests/qa_provider_oapi/internet_services/TF00_internet_services_datasource_attributes_ok/step1.outscale_internet_services.outscale_internet_services.check @@ -0,0 +1,10 @@ +internet_services.# +internet_services.0.internet_service_id +internet_services.0.net_id +internet_services.0.state +internet_services.0.tags.# +internet_services.0.tags.0.key +internet_services.0.tags.0.value +request_id +# correctives below +id diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..7d7cc5c6b --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_keypair/test_outscale_keypair_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_keypair/config_outscale_keypair_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_keypair/outscale_keypair_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/step1.keypair_datasource_attributes_ok.tf b/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/step1.keypair_datasource_attributes_ok.tf new file mode 100644 index 000000000..078ceb31a --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/step1.keypair_datasource_attributes_ok.tf @@ -0,0 +1,10 @@ +resource "outscale_keypair" "outscale_keypair" { + keypair_name = "keyname_test_ford" +} + +data "outscale_keypair" "outscale_keypair" { + filter { + name = "keypair_names" + values = [outscale_keypair.outscale_keypair.keypair_name] + } +} diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/step1.outscale_keypair.outscale_keypair.check b/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/step1.outscale_keypair.outscale_keypair.check new file mode 100644 index 000000000..f8e121571 --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_datasource_attributes_ok/step1.outscale_keypair.outscale_keypair.check @@ -0,0 +1,5 @@ +keypair_fingerprint +keypair_name +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..a4348b476 --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_keypair/test_outscale_keypair_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_keypair/config_outscale_keypair_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_keypair/outscale_keypair_resource_attributes.txt diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/step1.keypair_resource_attributes_ok.tf b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/step1.keypair_resource_attributes_ok.tf new file mode 100644 index 000000000..c3833f8a4 --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/step1.keypair_resource_attributes_ok.tf @@ -0,0 +1,3 @@ +resource "outscale_keypair" "outscale_keypair" { + keypair_name = "keyname_test_" +} diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/step1.outscale_keypair.outscale_keypair.check b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/step1.outscale_keypair.outscale_keypair.check new file mode 100644 index 000000000..25d5cb51a --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok/step1.outscale_keypair.outscale_keypair.check @@ -0,0 +1,6 @@ +keypair_fingerprint +keypair_name +request_id +private_key +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/origin.txt b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/origin.txt new file mode 100644 index 000000000..859537e7d --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_keypair/test_outscale_keypair_resource_attributes_ok2.py +tf file: provider_outscale_oapi/config/outscale_keypair/config_outscale_keypair_resource_attributes_ok2 +check file: provider_outscale_oapi/test/outscale_keypair/outscale_keypair_resource_attributes2.txt diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/step1.keypair_resource_attributes_ok2.tf b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/step1.keypair_resource_attributes_ok2.tf new file mode 100644 index 000000000..841281aad --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/step1.keypair_resource_attributes_ok2.tf @@ -0,0 +1,4 @@ +resource "outscale_keypair" "outscale_keypair" { + keypair_name = "keyname_test_import" + public_key = file("keypair_public_test.pub") +} diff --git a/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/step1.outscale_keypair.outscale_keypair.check b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/step1.outscale_keypair.outscale_keypair.check new file mode 100644 index 000000000..a4cf55306 --- /dev/null +++ b/tests/qa_provider_oapi/keypair/TF00_keypair_resource_attributes_ok2/step1.outscale_keypair.outscale_keypair.check @@ -0,0 +1,6 @@ +keypair_fingerprint +keypair_name +request_id +# correctives below +id +public_key \ No newline at end of file diff --git a/tests/qa_provider_oapi/keypair_importation/TF00_keypair_importation_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/keypair_importation/TF00_keypair_importation_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..e61080b54 --- /dev/null +++ b/tests/qa_provider_oapi/keypair_importation/TF00_keypair_importation_resource_attributes_ok/origin.txt @@ -0,0 +1,3 @@ + +python file: provider_outscale_oapi/test//outscale_keypair_importation/test_outscale_keypair_importation_resource_attributes_ok.py +WARNING: tf file not found 'provider_outscale_oapi/config/outscale_keypair_importation/config_outscale_keypair_importation_resource_attributes_ok' diff --git a/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..f6c45644e --- /dev/null +++ b/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_keypairs/test_outscale_keypairs_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_keypairs/config_outscale_keypairs_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_keypairs/outscale_keypairs_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/step1.keypairs_datasource_attributes_ok.tf b/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/step1.keypairs_datasource_attributes_ok.tf new file mode 100644 index 000000000..453f282a6 --- /dev/null +++ b/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/step1.keypairs_datasource_attributes_ok.tf @@ -0,0 +1,14 @@ +resource "outscale_keypair" "outscale_keypair" { + keypair_name = "keyname_test_" +} + +resource "outscale_keypair" "outscale_keypair2" { + keypair_name = "keyname_test_2" +} + +data "outscale_keypairs" "outscale_keypairs" { + filter { + name = "keypair_names" + values = [outscale_keypair.outscale_keypair.keypair_name, outscale_keypair.outscale_keypair2.keypair_name] + } +} diff --git a/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/step1.outscale_keypairs.outscale_keypairs.check b/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/step1.outscale_keypairs.outscale_keypairs.check new file mode 100644 index 000000000..f38eacaf3 --- /dev/null +++ b/tests/qa_provider_oapi/keypairs/TF00_keypairs_datasource_attributes_ok/step1.outscale_keypairs.outscale_keypairs.check @@ -0,0 +1,8 @@ +keypairs.# +keypairs.0.keypair_fingerprint +keypairs.0.keypair_name +keypairs.1.keypair_fingerprint +keypairs.1.keypair_name +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_datasource_ok/origin.txt b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_datasource_ok/origin.txt new file mode 100644 index 000000000..5e42e0389 --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_datasource_ok/origin.txt @@ -0,0 +1,5 @@ + +python file: provider_outscale_oapi/test//outscale_nat_service/test_outscale_nat_gateway_datasource_ok.py +tf file: provider_outscale_oapi/config/outscale_nat_service/config_outscale_nat_gateway_datasource_ok +WARNING: No check file !!! +WARNING: tf file not found 'provider_outscale_oapi/config/outscale_nat_service/config_outscale_public_ip_datasource_std_ok3' diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_datasource_ok/step1.nat_gateway_datasource_ok.tf b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_datasource_ok/step1.nat_gateway_datasource_ok.tf new file mode 100644 index 000000000..59d5cfa53 --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_datasource_ok/step1.nat_gateway_datasource_ok.tf @@ -0,0 +1,22 @@ +resource "outscale_net" "outscale_net" { + count = 1 + + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + count = 1 + + net_id = outscale_net.outscale_net.vpc_id +} + +resource "outscale_nat_service" "outscale_nat_service" { + count = 1 + + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + + +output "nat_gateway" { + value = outscale_nat_service.outscale_nat_service.nat_gateway_id +} diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_resource_deletion_ok/origin.txt b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_resource_deletion_ok/origin.txt new file mode 100644 index 000000000..fd1442d88 --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_resource_deletion_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nat_service/test_outscale_nat_gateway_resource_deletion_ok.py +tf file: provider_outscale_oapi/config/outscale_nat_service/config_outscale_nat_gateway_resource_deletion_ok +WARNING: No check file !!! diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_resource_deletion_ok/step1.nat_gateway_resource_deletion_ok.tf b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_resource_deletion_ok/step1.nat_gateway_resource_deletion_ok.tf new file mode 100644 index 000000000..b561a7aec --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_gateway_resource_deletion_ok/step1.nat_gateway_resource_deletion_ok.tf @@ -0,0 +1,5 @@ +/* +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} +*/ diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..a9998432b --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nat_service/test_outscale_nat_service_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nat_service/config_outscale_nat_service_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nat_service/outscale_nat_service_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/step1.nat_service_datasource_attributes_ok.tf b/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/step1.nat_service_datasource_attributes_ok.tf new file mode 100644 index 000000000..d5c720c69 --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/step1.nat_service_datasource_attributes_ok.tf @@ -0,0 +1,71 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + tags { + key = "name" + value = "net" + } +} + +resource "outscale_subnet" "outscale_subnet" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.0.0/18" + tags { + key = "name" + value = "subnet" + } +} + +resource "outscale_public_ip" "outscale_public_ip" { + tags { + key = "name" + value = "public_ip" + } +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "route_table" + } +} + +resource "outscale_route" "outscale_route" { + destination_ip_range = "0.0.0.0/0" + gateway_id = outscale_internet_service.outscale_internet_service.internet_service_id + route_table_id = outscale_route_table.outscale_route_table.route_table_id +} + +resource "outscale_route_table_link" "outscale_route_table_link" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id + route_table_id = outscale_route_table.outscale_route_table.id +} + +resource "outscale_internet_service" "outscale_internet_service" { + tags { + key = "name" + value = "internet_service" + } +} + +resource "outscale_internet_service_link" "outscale_internet_service_link" { + net_id = outscale_net.outscale_net.net_id + internet_service_id = outscale_internet_service.outscale_internet_service.id +} + +resource "outscale_nat_service" "outscale_nat_service" { + depends_on = ["outscale_route.outscale_route"] + subnet_id = outscale_subnet.outscale_subnet.subnet_id + public_ip_id = outscale_public_ip.outscale_public_ip.public_ip_id + tags { + key = "name" + value = "nat" + } +} + +data "outscale_nat_service" "outscale_nat_service" { + filter { + name = "nat_service_ids" + values = [outscale_nat_service.outscale_nat_service.nat_service_id] + } +} diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/step1.outscale_nat_service.outscale_nat_service.check b/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/step1.outscale_nat_service.outscale_nat_service.check new file mode 100644 index 000000000..7ef6cc9a9 --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_service_datasource_attributes_ok/step1.outscale_nat_service.outscale_nat_service.check @@ -0,0 +1,10 @@ +nat_service_id +net_id +public_ips.# +public_ips.0.public_ip +public_ips.0.public_ip_id +state +subnet_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..f972cf93e --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nat_service/test_outscale_nat_service_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nat_service/config_outscale_nat_service_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nat_service/outscale_nat_service_resource_attributes.txt diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/step1.nat_service_resource_attributes_ok.tf b/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/step1.nat_service_resource_attributes_ok.tf new file mode 100644 index 000000000..08ead2a39 --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/step1.nat_service_resource_attributes_ok.tf @@ -0,0 +1,64 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + tags { + key = "name" + value = "net" + } +} + +resource "outscale_subnet" "outscale_subnet" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.0.0/18" + tags { + key = "name" + value = "subnet" + } +} + +resource "outscale_public_ip" "outscale_public_ip" { + tags { + key = "name" + value = "public_ip" + } +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "route_table" + } +} + +resource "outscale_route" "outscale_route" { + destination_ip_range = "0.0.0.0/0" + gateway_id = outscale_internet_service.outscale_internet_service.internet_service_id + route_table_id = outscale_route_table.outscale_route_table.route_table_id +} + +resource "outscale_route_table_link" "outscale_route_table_link" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id + route_table_id = outscale_route_table.outscale_route_table.id +} + +resource "outscale_internet_service" "outscale_internet_service" { + tags { + key = "name" + value = "internet_service" + } +} + +resource "outscale_internet_service_link" "outscale_internet_service_link" { + net_id = outscale_net.outscale_net.net_id + internet_service_id = outscale_internet_service.outscale_internet_service.id +} + +resource "outscale_nat_service" "outscale_nat_service" { + depends_on = ["outscale_route.outscale_route"] + subnet_id = outscale_subnet.outscale_subnet.subnet_id + public_ip_id = outscale_public_ip.outscale_public_ip.public_ip_id + tags { + key = "name" + value = "nat" + } +} diff --git a/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/step1.outscale_nat_service.outscale_nat_service.check b/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/step1.outscale_nat_service.outscale_nat_service.check new file mode 100644 index 000000000..7ef6cc9a9 --- /dev/null +++ b/tests/qa_provider_oapi/nat_service/TF00_nat_service_resource_attributes_ok/step1.outscale_nat_service.outscale_nat_service.check @@ -0,0 +1,10 @@ +nat_service_id +net_id +public_ips.# +public_ips.0.public_ip +public_ips.0.public_ip_id +state +subnet_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..751d166be --- /dev/null +++ b/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nat_services/test_outscale_nat_services_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nat_services/config_outscale_nat_services_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nat_services/outscale_nat_services_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/step1.nat_services_datasource_attributes_ok.tf b/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/step1.nat_services_datasource_attributes_ok.tf new file mode 100644 index 000000000..f67961fb8 --- /dev/null +++ b/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/step1.nat_services_datasource_attributes_ok.tf @@ -0,0 +1,125 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_internet_service" "outscale_internet_service" { +} + + +resource "outscale_internet_service_link" "outscale_internet_service_link" { + net_id = outscale_net.outscale_net.net_id + internet_service_id = outscale_internet_service.outscale_internet_service.internet_service_id +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_route_table" "outscale_route_table2" { + net_id = outscale_net.outscale_net.net_id +} + + +resource "outscale_subnet" "outscale_subnet" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.0.0/24" +} + +resource "outscale_subnet" "outscale_subnet2" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.1.0/24" +} + +resource "outscale_route_table_link" "outscale_route_table_link" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id + route_table_id = outscale_route_table.outscale_route_table.id +} + +resource "outscale_route_table_link" "outscale_route_table_link2" { + subnet_id = outscale_subnet.outscale_subnet2.subnet_id + route_table_id = outscale_route_table.outscale_route_table2.id +} + +resource "outscale_public_ip" "outscale_public_ip" { +} + +resource "outscale_public_ip" "outscale_public_ip2" { +:...skipping... +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_internet_service" "outscale_internet_service" { +} + + +resource "outscale_internet_service_link" "outscale_internet_service_link" { + net_id = outscale_net.outscale_net.net_id + internet_service_id = outscale_internet_service.outscale_internet_service.internet_service_id +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_route_table" "outscale_route_table2" { + net_id = outscale_net.outscale_net.net_id +} + + +resource "outscale_subnet" "outscale_subnet" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.0.0/24" +} + +resource "outscale_subnet" "outscale_subnet2" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.1.0/24" +} + +resource "outscale_route_table_link" "outscale_route_table_link" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id + route_table_id = outscale_route_table.outscale_route_table.id +} + +resource "outscale_route_table_link" "outscale_route_table_link2" { + subnet_id = outscale_subnet.outscale_subnet2.subnet_id + route_table_id = outscale_route_table.outscale_route_table2.id +} + +resource "outscale_public_ip" "outscale_public_ip" { +} + +resource "outscale_public_ip" "outscale_public_ip2" { +} + +resource "outscale_route" "outscale_route" { + destination_ip_range = "0.0.0.0/0" + gateway_id = outscale_internet_service.outscale_internet_service.internet_service_id + route_table_id = outscale_route_table.outscale_route_table.id +} + +resource "outscale_route" "outscale_route2" { + destination_ip_range = "0.0.0.0/0" + gateway_id = outscale_internet_service.outscale_internet_service.internet_service_id + route_table_id = outscale_route_table.outscale_route_table2.id +} + +resource "outscale_nat_service" "outscale_nat_service" { + depends_on = [outscale_route.outscale_route] + subnet_id = outscale_subnet.outscale_subnet.subnet_id + public_ip_id = outscale_public_ip.outscale_public_ip.public_ip_id +} + +resource "outscale_nat_service" "outscale_nat_service2" { + depends_on = [outscale_route.outscale_route2] + subnet_id = outscale_subnet.outscale_subnet2.subnet_id + public_ip_id = outscale_public_ip.outscale_public_ip2.public_ip_id + +} +data "outscale_nat_services" "outscale_nat_services" { + filter { + name = "nat_service_ids" + values = [outscale_nat_service.outscale_nat_service.nat_service_id, outscale_nat_service.outscale_nat_service2.nat_service_id] + } +} diff --git a/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/step1.outscale_nat_services.outscale_nat_services.check b/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/step1.outscale_nat_services.outscale_nat_services.check new file mode 100644 index 000000000..ee84253f8 --- /dev/null +++ b/tests/qa_provider_oapi/nat_services/TF00_nat_services_datasource_attributes_ok/step1.outscale_nat_services.outscale_nat_services.check @@ -0,0 +1,18 @@ +nat_services.# +nat_services.0.nat_service_id +nat_services.0.net_id +nat_services.0.public_ips.# +nat_services.0.public_ips.0.public_ip +nat_services.0.public_ips.0.public_ip_id +nat_services.0.state +nat_services.0.subnet_id +nat_services.1.nat_service_id +nat_services.1.net_id +nat_services.1.public_ips.# +nat_services.1.public_ips.0.public_ip +nat_services.1.public_ips.0.public_ip_id +nat_services.1.state +nat_services.1.subnet_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..68ca84ec9 --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net/test_outscale_net_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net/config_outscale_net_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_net/outscale_net_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/step1.net_datasource_attributes_ok.tf b/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/step1.net_datasource_attributes_ok.tf new file mode 100644 index 000000000..ee407256e --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/step1.net_datasource_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + + tags { + key = "Name" + value = "outscale_net_resource" + } + + tags { + key = "VerSion" + value = "1Q84" + } +} + +data "outscale_net" "outscale_net" { + filter { + name = "net_ids" + values = [outscale_net.outscale_net.net_id] + } +} diff --git a/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/step1.outscale_net.outscale_net.check b/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/step1.outscale_net.outscale_net.check new file mode 100644 index 000000000..55476d4e6 --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_datasource_attributes_ok/step1.outscale_net.outscale_net.check @@ -0,0 +1,13 @@ +dhcp_options_set_id +ip_range +net_id +state +tags.# +tags.0.key +tags.0.value +tags.1.key +tags.1.value +tenancy +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..025160260 --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net/test_outscale_net_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net/config_outscale_net_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_net/outscale_net_resource_attributes.txt diff --git a/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/step1.net_resource_attributes_ok.tf b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/step1.net_resource_attributes_ok.tf new file mode 100644 index 000000000..6f8784cd7 --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/step1.net_resource_attributes_ok.tf @@ -0,0 +1,8 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + + tags { + key = "Name" + value = "outscale_net_resource" + } +} diff --git a/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/step1.outscale_net.outscale_net.check b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/step1.outscale_net.outscale_net.check new file mode 100644 index 000000000..993390532 --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok/step1.outscale_net.outscale_net.check @@ -0,0 +1,11 @@ +dhcp_options_set_id +ip_range +net_id +state +tags.# +tags.0.key +tags.0.value +tenancy +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/origin.txt b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/origin.txt new file mode 100644 index 000000000..dc8b95f96 --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net/test_outscale_net_resource_attributes_ok2.py +tf file: provider_outscale_oapi/config/outscale_net/config_outscale_net_resource_attributes_ok2 +check file: provider_outscale_oapi/test/outscale_net/outscale_net_resource_attributes.txt diff --git a/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/step1.net_resource_attributes_ok2.tf b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/step1.net_resource_attributes_ok2.tf new file mode 100644 index 000000000..312e63ceb --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/step1.net_resource_attributes_ok2.tf @@ -0,0 +1,10 @@ +resource "outscale_net" "outscale_net" { + count = 2 + + ip_range = "10.0.0.0/16" + + tags { + key = "Name" + value = "outscale_net_resource" + } +} diff --git a/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/step1.outscale_net.check b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/step1.outscale_net.check new file mode 100644 index 000000000..993390532 --- /dev/null +++ b/tests/qa_provider_oapi/net/TF00_net_resource_attributes_ok2/step1.outscale_net.check @@ -0,0 +1,11 @@ +dhcp_options_set_id +ip_range +net_id +state +tags.# +tags.0.key +tags.0.value +tenancy +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..1f090cf20 --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net_attributes/test_outscale_net_attributes_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net_attributes/config_outscale_net_attributes_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_net_attributes/outscale_net_attributes_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/step1.net_attributes_datasource_attributes_ok.tf b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/step1.net_attributes_datasource_attributes_ok.tf new file mode 100644 index 000000000..47dab29ff --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/step1.net_attributes_datasource_attributes_ok.tf @@ -0,0 +1,12 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_net_attributes" "outscale_net_attributes" { + net_id = outscale_net.outscale_net.net_id + dhcp_options_set_id = var.dhcp_options_set_id +} + +data "outscale_net_attributes" "outscale_net_attributes" { + net_id = outscale_net.outscale_net.net_id +} diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check new file mode 100644 index 000000000..4728a3736 --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_datasource_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check @@ -0,0 +1,5 @@ +dhcp_options_set_id +net_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/origin.txt b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/origin.txt new file mode 100644 index 000000000..b06fa93f1 --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net_attributes/test_outscale_net_attributes_resource_hostnames_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net_attributes/config_outscale_net_attributes_resource_hostnames_attributes_ok +check file: provider_outscale_oapi/test/outscale_net_attributes/outscale_net_attributes_resource_hostnames_attributes.txt diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/step1.net_attributes_resource_hostnames_attributes_ok.tf b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/step1.net_attributes_resource_hostnames_attributes_ok.tf new file mode 100644 index 000000000..93edf5f1b --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/step1.net_attributes_resource_hostnames_attributes_ok.tf @@ -0,0 +1,8 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_net_attributes" "outscale_net_attributes" { + net_id = outscale_net.outscale_net.net_id + dhcp_options_set_id = var.dhcp_options_set_id +} diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check new file mode 100644 index 000000000..4728a3736 --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_hostnames_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check @@ -0,0 +1,5 @@ +dhcp_options_set_id +net_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/origin.txt b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/origin.txt new file mode 100644 index 000000000..5d8ecd7a9 --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net_attributes/test_outscale_net_attributes_resource_support_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net_attributes/config_outscale_net_attributes_resource_support_attributes_ok +check file: provider_outscale_oapi/test/outscale_net_attributes/outscale_net_attributes_resource_support_attributes.txt diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/step1.net_attributes_resource_support_attributes_ok.tf b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/step1.net_attributes_resource_support_attributes_ok.tf new file mode 100644 index 000000000..93edf5f1b --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/step1.net_attributes_resource_support_attributes_ok.tf @@ -0,0 +1,8 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_net_attributes" "outscale_net_attributes" { + net_id = outscale_net.outscale_net.net_id + dhcp_options_set_id = var.dhcp_options_set_id +} diff --git a/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check new file mode 100644 index 000000000..4728a3736 --- /dev/null +++ b/tests/qa_provider_oapi/net_attributes/TF00_net_attributes_resource_support_attributes_ok/step1.outscale_net_attributes.outscale_net_attributes.check @@ -0,0 +1,5 @@ +dhcp_options_set_id +net_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..1f0769d58 --- /dev/null +++ b/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net_peering/test_outscale_net_peering_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net_peering/config_outscale_net_peering_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_net_peering/outscale_net_peering_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/step1.net_peering_datasource_attributes_ok.tf b/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/step1.net_peering_datasource_attributes_ok.tf new file mode 100644 index 000000000..6488a83ce --- /dev/null +++ b/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/step1.net_peering_datasource_attributes_ok.tf @@ -0,0 +1,27 @@ +resource "outscale_net" "outscale_net" { + #count = 1 + + ip_range = "10.10.0.0/24" +} + +resource "outscale_net" "outscale_net2" { + #count = 1 + + ip_range = "10.31.0.0/16" +} + +resource "outscale_net_peering" "outscale_net_peering" { + accepter_net_id = outscale_net.outscale_net.net_id + source_net_id = outscale_net.outscale_net2.net_id + tags { + key = "name" + value = "test-net-peering" + } +} + +data "outscale_net_peering" "outscale_net_peering" { + filter { + name = "net_peering_ids" + values = [outscale_net_peering.outscale_net_peering.net_peering_id] + } +} diff --git a/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/step1.outscale_net_peering.outscale_net_peering.check b/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/step1.outscale_net_peering.outscale_net_peering.check new file mode 100644 index 000000000..e01be0bfe --- /dev/null +++ b/tests/qa_provider_oapi/net_peering/TF00_net_peering_datasource_attributes_ok/step1.outscale_net_peering.outscale_net_peering.check @@ -0,0 +1,20 @@ +accepter_net.% +accepter_net.ip_range +accepter_net.account_id +accepter_net.net_id +source_net.% +source_net.ip_range +source_net.account_id +source_net.net_id +state.% +state.name +state.message +tags.# +tags.0.key +tags.0.value +net_peering_id +request_id +# correctives below +id +#source_net_id +#accepter_net_id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..1153dd36c --- /dev/null +++ b/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net_peering/test_outscale_net_peering_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net_peering/config_outscale_net_peering_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_net_peering/outscale_net_peering_resource_attributes.txt diff --git a/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/step1.net_peering_resource_attributes_ok.tf b/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/step1.net_peering_resource_attributes_ok.tf new file mode 100644 index 000000000..676d43ebe --- /dev/null +++ b/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/step1.net_peering_resource_attributes_ok.tf @@ -0,0 +1,12 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.10.0.0/24" +} + +resource "outscale_net" "outscale_net2" { + ip_range = "10.31.0.0/16" +} + +resource "outscale_net_peering" "outscale_net_peering" { + accepter_net_id = outscale_net.outscale_net.net_id + source_net_id = outscale_net.outscale_net2.net_id +} diff --git a/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/step1.outscale_net_peering.outscale_net_peering.check b/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/step1.outscale_net_peering.outscale_net_peering.check new file mode 100644 index 000000000..99bf71654 --- /dev/null +++ b/tests/qa_provider_oapi/net_peering/TF00_net_peering_resource_attributes_ok/step1.outscale_net_peering.outscale_net_peering.check @@ -0,0 +1,21 @@ +accepter_net.% +accepter_net.ip_range +accepter_net.account_id +accepter_net.net_id +source_net.% +source_net.ip_range +source_net.account_id +source_net.net_id +state.% +state.name +state.message +tags.# +tags.0.key +tags.0.value +net_peering_id +request_id +# correctives below +id +source_net_id +accepter_net_id +#net_id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..1d22ed87b --- /dev/null +++ b/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net_peering_acceptation/test_outscale_net_peering_acceptation_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net_peering_acceptation/config_outscale_net_peering_acceptation_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_net_peering_acceptation/outscale_net_peering_acceptation_resource_attributes.txt diff --git a/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/step1.net_peering_acceptation_resource_attributes_ok.tf b/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/step1.net_peering_acceptation_resource_attributes_ok.tf new file mode 100644 index 000000000..94b8538b6 --- /dev/null +++ b/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/step1.net_peering_acceptation_resource_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.10.0.0/24" +} + +resource "outscale_net" "outscale_net2" { + ip_range = "10.31.0.0/16" +} + +resource "outscale_net_peering" "outscale_net_peering" { + accepter_net_id = outscale_net.outscale_net.net_id + source_net_id = outscale_net.outscale_net2.net_id + tags { + key = "name" + value = "net-peering" + } +} + +resource "outscale_net_peering_acceptation" "outscale_net_peering_acceptation" { + net_peering_id = outscale_net_peering.outscale_net_peering.net_peering_id +} diff --git a/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/step1.outscale_net_peering_acceptation.outscale_net_peering_acceptation.check b/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/step1.outscale_net_peering_acceptation.outscale_net_peering_acceptation.check new file mode 100644 index 000000000..62eaf57ec --- /dev/null +++ b/tests/qa_provider_oapi/net_peering_acceptation/TF00_net_peering_acceptation_resource_attributes_ok/step1.outscale_net_peering_acceptation.outscale_net_peering_acceptation.check @@ -0,0 +1,18 @@ +accepter_net.% +accepter_net.ip_range +accepter_net.account_id +accepter_net.net_id +source_net.% +source_net.ip_range +source_net.account_id +source_net.net_id +state.% +state.name +state.message +tags.# +tags.0.key +tags.0.value +net_peering_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..86ba1764d --- /dev/null +++ b/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_net_peerings/test_outscale_net_peerings_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_net_peerings/config_outscale_net_peerings_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_net_peerings/outscale_net_peerings_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/step1.net_peerings_datasource_attributes_ok.tf b/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/step1.net_peerings_datasource_attributes_ok.tf new file mode 100644 index 000000000..2abb43476 --- /dev/null +++ b/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/step1.net_peerings_datasource_attributes_ok.tf @@ -0,0 +1,47 @@ +resource "outscale_net" "outscale_net" { + #count = 1 + + ip_range = "10.10.0.0/24" + # tags { + # key = "name" + # value = "net-1" + #} +} + +resource "outscale_net" "outscale_net2" { + #count = 1 + + ip_range = "10.31.0.0/16" + # tags { + # key = "name" + # value = "net-2" + # } +} + +resource "outscale_net" "outscale_net3" { + #count = 1 + ip_range = "20.0.0.0/16" + # tags { + # key = "name" + # value = "net-3" + # } +} + +resource "outscale_net_peering" "outscale_net_peering" { + accepter_net_id = outscale_net.outscale_net.net_id + source_net_id = outscale_net.outscale_net2.net_id +} + +resource "outscale_net_peering" "outscale_net_peering2" { + accepter_net_id = outscale_net.outscale_net.net_id + source_net_id = outscale_net.outscale_net3.net_id +} + + +data "outscale_net_peerings" "outscale_net_peerings" { + + filter { + name = "net_peering_ids" + values = [outscale_net_peering.outscale_net_peering.net_peering_id , outscale_net_peering.outscale_net_peering2.net_peering_id] + } +} diff --git a/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/step1.outscale_net_peerings.outscale_net_peerings.check b/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/step1.outscale_net_peerings.outscale_net_peerings.check new file mode 100644 index 000000000..6bb344e56 --- /dev/null +++ b/tests/qa_provider_oapi/net_peerings/TF00_net_peerings_datasource_attributes_ok/step1.outscale_net_peerings.outscale_net_peerings.check @@ -0,0 +1,34 @@ +net_peerings.# +net_peerings.0.accepter_net.% +net_peerings.0.accepter_net.ip_range +net_peerings.0.accepter_net.account_id +net_peerings.0.accepter_net.net_id +net_peerings.0.source_net.% +net_peerings.0.source_net.ip_range +net_peerings.0.source_net.account_id +net_peerings.0.source_net.net_id +net_peerings.0.state.% +net_peerings.0.state.name +net_peerings.0.state.message +net_peerings.0.tags +#net_peerings.0.tags.0.key +#net_peerings.0.tags.0.value +net_peerings.0.net_peering_id +net_peerings.1.accepter_net.% +net_peerings.1.accepter_net.ip_range +net_peerings.1.accepter_net.account_id +net_peerings.1.accepter_net.net_id +net_peerings.1.source_net.% +net_peerings.1.source_net.ip_range +net_peerings.1.source_net.account_id +net_peerings.1.source_net.net_id +net_peerings.1.state.% +net_peerings.1.state.name +net_peerings.1.state.message +net_peerings.1.tags +#net_peerings.1.tags.0.key +#net_peerings.1.tags.0.value +net_peerings.1.net_peering_id +request_id +# correctives below +id diff --git a/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..7fdce30eb --- /dev/null +++ b/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nets/test_outscale_nets_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nets/config_outscale_nets_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nets/outscale_nets_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/step1.nets_datasource_attributes_ok.tf b/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/step1.nets_datasource_attributes_ok.tf new file mode 100644 index 000000000..3dca64627 --- /dev/null +++ b/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/step1.nets_datasource_attributes_ok.tf @@ -0,0 +1,28 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/17" + + tags { + key = "Name" + value = "outscale_net_resource" + } + + #provisioner "local-exec" { + # command = "ssh -o StrictHostKeyChecking=no root@${osc_eip.eip_instance.*.public_ip[count.index]} uname -a" + #} +} + +resource "outscale_net" "outscale_net2" { + ip_range = "10.2.0.0/17" + + tags { + key = "Name" + value = "outscale_net_resource2" + } +} + +data "outscale_nets" "outscale_nets" { + filter { + name = "net_ids" + values = [outscale_net.outscale_net.net_id, outscale_net.outscale_net2.net_id] + } +} diff --git a/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/step1.outscale_nets.outscale_nets.check b/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/step1.outscale_nets.outscale_nets.check new file mode 100644 index 000000000..93f22f008 --- /dev/null +++ b/tests/qa_provider_oapi/nets/TF00_nets_datasource_attributes_ok/step1.outscale_nets.outscale_nets.check @@ -0,0 +1,20 @@ +nets.# +nets.0.dhcp_options_set_id +nets.0.ip_range +nets.0.net_id +nets.0.state +nets.0.tags.# +nets.0.tags.0.key +nets.0.tags.0.value +nets.0.tenancy +nets.1.dhcp_options_set_id +nets.1.ip_range +nets.1.net_id +nets.1.state +nets.1.tags.# +nets.1.tags.0.key +nets.1.tags.0.value +nets.1.tenancy +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..1473d1713 --- /dev/null +++ b/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nic/test_outscale_nic_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nic/config_outscale_nic_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nic/outscale_nic_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/step1.nic_datasource_attributes_ok.tf b/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/step1.nic_datasource_attributes_ok.tf new file mode 100644 index 000000000..a0a6ea4a0 --- /dev/null +++ b/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/step1.nic_datasource_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_nic" "outscale_nic" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +data "outscale_nic" "outscale_nic" { + filter { + name = "nic_ids" + values = [outscale_nic.outscale_nic.nic_id] + } +} diff --git a/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/step1.outscale_nic.outscale_nic.check b/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/step1.outscale_nic.outscale_nic.check new file mode 100644 index 000000000..b98159518 --- /dev/null +++ b/tests/qa_provider_oapi/nic/TF00_nic_datasource_attributes_ok/step1.outscale_nic.outscale_nic.check @@ -0,0 +1,42 @@ +account_id +description +is_source_dest_checked +link_nic.% +link_nic.delete_on_vm_deletion +link_nic.device_number +link_nic.link_nic_id +link_nic.state +link_nic.vm_account_id +link_nic.vm_id +link_public_ip.% +link_public_ip.link_public_ip_id +link_public_ip.public_dns_name +link_public_ip.public_ip +link_public_ip.public_ip_account_id +link_public_ip.public_ip_id +mac_address +net_id +nic_id +private_dns_name +private_ips.# +private_ips.0.is_primary +private_ips.0.link_public_ip.% +private_ips.0.link_public_ip.link_public_ip_id +private_ips.0.link_public_ip.public_dns_name +private_ips.0.link_public_ip.public_ip +private_ips.0.link_public_ip.public_ip_account_id +private_ips.0.link_public_ip.public_ip_id +private_ips.0.private_dns_name +private_ips.0.private_ip +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +subnet_id +subregion_name +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..dab86ecac --- /dev/null +++ b/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nic/test_outscale_nic_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nic/config_outscale_nic_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nic/outscale_nic_resource_attributes.txt diff --git a/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/step1.nic_resource_attributes_ok.tf b/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/step1.nic_resource_attributes_ok.tf new file mode 100644 index 000000000..5c5040142 --- /dev/null +++ b/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/step1.nic_resource_attributes_ok.tf @@ -0,0 +1,38 @@ +resource "outscale_net" "outscale_net" { + #count = 1 + + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + #count = 1 + + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_nic" "outscale_nic" { + #count = 1 + + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +resource "outscale_security_group" "outscale_sg" { + description = "sg for terraform tests" + security_group_name = "terraform-sg" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_nic" "outscale_nic2" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id + security_group_ids = [outscale_security_group.outscale_sg.security_group_id] + private_ips { + is_primary = true + private_ip = "10.0.0.23" + } + private_ips { + is_primary = false + private_ip = "10.0.0.46" + } +} diff --git a/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/step1.outscale_nic.outscale_nic.check b/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/step1.outscale_nic.outscale_nic.check new file mode 100644 index 000000000..b98159518 --- /dev/null +++ b/tests/qa_provider_oapi/nic/TF00_nic_resource_attributes_ok/step1.outscale_nic.outscale_nic.check @@ -0,0 +1,42 @@ +account_id +description +is_source_dest_checked +link_nic.% +link_nic.delete_on_vm_deletion +link_nic.device_number +link_nic.link_nic_id +link_nic.state +link_nic.vm_account_id +link_nic.vm_id +link_public_ip.% +link_public_ip.link_public_ip_id +link_public_ip.public_dns_name +link_public_ip.public_ip +link_public_ip.public_ip_account_id +link_public_ip.public_ip_id +mac_address +net_id +nic_id +private_dns_name +private_ips.# +private_ips.0.is_primary +private_ips.0.link_public_ip.% +private_ips.0.link_public_ip.link_public_ip_id +private_ips.0.link_public_ip.public_dns_name +private_ips.0.link_public_ip.public_ip +private_ips.0.link_public_ip.public_ip_account_id +private_ips.0.link_public_ip.public_ip_id +private_ips.0.private_dns_name +private_ips.0.private_ip +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +subnet_id +subregion_name +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..44ace3e4f --- /dev/null +++ b/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nic_link/test_outscale_nic_link_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nic_link/config_outscale_nic_link_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nic_link/outscale_nic_link_resource_attributes.txt diff --git a/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/step1.nic_link_resource_attributes_ok.tf b/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/step1.nic_link_resource_attributes_ok.tf new file mode 100644 index 000000000..2d8d374a8 --- /dev/null +++ b/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/step1.nic_link_resource_attributes_ok.tf @@ -0,0 +1,36 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [outscale_security_group.outscale_security_group.id] +# placement_subregion_name = format("%s%s", var.region, "a") +# placement_tenancy = "default" + subnet_id = outscale_subnet.outscale_subnet.id +} + + +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_security_group" "outscale_security_group" { + description = "test group" + security_group_name = "sg1-test-group_test" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_subnet" "outscale_subnet" { + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_nic" "outscale_nic" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +resource "outscale_nic_link" "outscale_nic_link" { + device_number = "1" + vm_id = outscale_vm.outscale_vm.vm_id + nic_id = outscale_nic.outscale_nic.nic_id +} diff --git a/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/step1.outscale_nic_link.outscale_nic_link.check b/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/step1.outscale_nic_link.outscale_nic_link.check new file mode 100644 index 000000000..784911c25 --- /dev/null +++ b/tests/qa_provider_oapi/nic_link/TF00_nic_link_resource_attributes_ok/step1.outscale_nic_link.outscale_nic_link.check @@ -0,0 +1,10 @@ +#delete_on_vm_deletion +device_number +link_nic_id +state +vm_account_id +vm_id +nic_id +request_id +# correctives below +id diff --git a/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..0ca98426c --- /dev/null +++ b/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nic_private_ip/test_outscale_nic_private_ip_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nic_private_ip/config_outscale_nic_private_ip_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nic_private_ip/outscale_nic_private_ip_resource_attributes.txt diff --git a/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/step1.nic_private_ip_resource_attributes_ok.tf b/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/step1.nic_private_ip_resource_attributes_ok.tf new file mode 100644 index 000000000..8ba447c22 --- /dev/null +++ b/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/step1.nic_private_ip_resource_attributes_ok.tf @@ -0,0 +1,19 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_nic" "outscale_nic" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +resource "outscale_nic_private_ip" "outscale_nic_private_ip" { + nic_id = outscale_nic.outscale_nic.nic_id + #secondary_private_ip_address_count = 1 + private_ips = ["10.0.45.67"] +} diff --git a/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/step1.outscale_nic_private_ip.outscale_nic_private_ip.check b/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/step1.outscale_nic_private_ip.outscale_nic_private_ip.check new file mode 100644 index 000000000..e15cc7814 --- /dev/null +++ b/tests/qa_provider_oapi/nic_private_ip/TF00_nic_private_ip_resource_attributes_ok/step1.outscale_nic_private_ip.outscale_nic_private_ip.check @@ -0,0 +1,10 @@ +allow_relink +nic_id +primary_private_ip +private_ips.# +private_ips.0 +#private_ips.1 +secondary_private_ip_count +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..bdc365497 --- /dev/null +++ b/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_nics/test_outscale_nics_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_nics/config_outscale_nics_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_nics/outscale_nics_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/step1.nics_datasource_attributes_ok.tf b/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/step1.nics_datasource_attributes_ok.tf new file mode 100644 index 000000000..3ad41172a --- /dev/null +++ b/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/step1.nics_datasource_attributes_ok.tf @@ -0,0 +1,24 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_nic" "outscale_nic" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +resource "outscale_nic" "outscale_nic2" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +data "outscale_nics" "outscale_nics" { + filter { + name = "nic_ids" + values = [outscale_nic.outscale_nic.nic_id, outscale_nic.outscale_nic2.nic_id] + } +} diff --git a/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/step1.outscale_nics.outscale_nics.check b/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/step1.outscale_nics.outscale_nics.check new file mode 100644 index 000000000..5ec0c52ec --- /dev/null +++ b/tests/qa_provider_oapi/nics/TF00_nics_datasource_attributes_ok/step1.outscale_nics.outscale_nics.check @@ -0,0 +1,85 @@ +nics.# +nics.0.account_id +nics.0.description +nics.0.is_source_dest_checked +nics.0.link_nic.% +nics.0.link_nic.delete_on_vm_deletion +nics.0.link_nic.device_number +nics.0.link_nic.link_nic_id +nics.0.link_nic.state +nics.0.link_nic.vm_account_id +nics.0.link_nic.vm_id +nics.0.link_public_ip.% +nics.0.link_public_ip.link_public_ip_id +nics.0.link_public_ip.public_dns_name +nics.0.link_public_ip.public_ip +nics.0.link_public_ip.public_ip_account_id +nics.0.link_public_ip.public_ip_id +nics.0.mac_address +nics.0.net_id +nics.0.nic_id +nics.0.private_dns_name +nics.0.private_ips.# +nics.0.private_ips.0.is_primary +nics.0.private_ips.0.link_public_ip.% +nics.0.private_ips.0.link_public_ip.link_public_ip_id +nics.0.private_ips.0.link_public_ip.public_dns_name +nics.0.private_ips.0.link_public_ip.public_ip +nics.0.private_ips.0.link_public_ip.public_ip_account_id +nics.0.private_ips.0.link_public_ip.public_ip_id +nics.0.private_ips.0.private_dns_name +nics.0.private_ips.0.private_ip +nics.0.security_groups.# +nics.0.security_groups.0.security_group_id +nics.0.security_groups.0.security_group_name +nics.0.state +nics.0.subnet_id +nics.0.subregion_name +nics.0.tags.# +#nics.0.tags.0.key +#nics.0.tags.0.value +nics.1.account_id +nics.1.description +nics.1.is_source_dest_checked +nics.1.link_nic.% +nics.1.link_nic.delete_on_vm_deletion +nics.1.link_nic.device_number +nics.1.link_nic.link_nic_id +nics.1.link_nic.state +nics.1.link_nic.vm_account_id +nics.1.link_nic.vm_id +nics.1.link_public_ip.% +nics.1.link_public_ip.link_public_ip_id +nics.1.link_public_ip.public_dns_name +nics.1.link_public_ip.public_ip +nics.1.link_public_ip.public_ip_account_id +nics.1.link_public_ip.public_ip_id +nics.1.mac_address +nics.1.net_id +nics.1.nic_id +nics.1.private_dns_name +nics.1.private_ips.# +nics.1.private_ips.0.is_primary +nics.1.private_ips.0.link_public_ip.% +nics.1.private_ips.0.link_public_ip.link_public_ip_id +nics.1.private_ips.0.link_public_ip.public_dns_name +nics.1.private_ips.0.link_public_ip.public_ip +nics.1.private_ips.0.link_public_ip.public_ip_account_id +nics.1.private_ips.0.link_public_ip.public_ip_id +nics.1.private_ips.0.private_dns_name +nics.1.private_ips.0.private_ip +nics.1.security_groups.# +nics.1.security_groups.0.security_group_id +nics.1.security_groups.0.security_group_name +nics.1.state +nics.1.subnet_id +nics.1.subregion_name +nics.1.tags.# +#nics.1.tags.0.key +#nics.1.tags.0.value +request_id +# correctives below +id +#network_interface_id.# +#network_interface_id.0 +#network_interface_id.1 \ No newline at end of file diff --git a/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..0a6dc3577 --- /dev/null +++ b/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/origin.txt @@ -0,0 +1,5 @@ + +python file: provider_outscale_oapi/test//outscale_outbound_rule/test_outscale_outbound_rule_resource_attributes_ok.py +WARNING: LIN found in tf file 'provider_outscale_oapi/config/outscale_outbound_rule/config_outscale_outbound_rule_resource_attributes_ok' +tf file: provider_outscale_oapi/config/outscale_outbound_rule/config_outscale_outbound_rule_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_outbound_rule/outscale_outbound_rule_resource_attributes.txt diff --git a/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/step1.outbound_rule_resource_attributes_ok.tf b/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/step1.outbound_rule_resource_attributes_ok.tf new file mode 100644 index 000000000..a769db10e --- /dev/null +++ b/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/step1.outbound_rule_resource_attributes_ok.tf @@ -0,0 +1,21 @@ +resource "outscale_net" "net" { + ip_range = "10.0.0.0/16" + + tag { + Name = "outbound rule test" + } +} + +resource "outscale_outbound_rule" "outscale_outbound_rule" { + from_port_range = 0 + to_port_range = 0 + ip_protocol = "-1" + ip_ranges = ["1.2.3.4/32"] + firewall_rules_set_id = outscale_firewall_rules_set.outscale_firewall_rules_set.id +} + +resource "outscale_firewall_rules_set" "outscale_firewall_rules_set" { + description = "test group" + name = "sg1-test-group_test" + net_id = outscale_lin.lin.id +} diff --git a/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/step1.outscale_outbound_rule.outscale_outbound_rule.check b/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/step1.outscale_outbound_rule.outscale_outbound_rule.check new file mode 100644 index 000000000..13941f70c --- /dev/null +++ b/tests/qa_provider_oapi/outbound_rule/TF00_outbound_rule_resource_attributes_ok/step1.outscale_outbound_rule.outscale_outbound_rule.check @@ -0,0 +1,14 @@ +outbound_rules.# +outbound_rules.0.firewall_rules_set_members.# +outbound_rules.0.firewall_rules_set_members.0.account_id +outbound_rules.0.firewall_rules_set_members.0.firewall_rules_set_id +outbound_rules.0.firewall_rules_set_members.0.name +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges +outbound_rules.0.prefix_list_ids.# +outbound_rules.0.prefix_list_ids.0 +outbound_rules.0.to_port_range +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..6609e5906 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_public_ip/test_outscale_public_ip_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_public_ip/config_outscale_public_ip_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_public_ip/outscale_public_ip_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/step1.outscale_public_ip.outscale_public_ip.check b/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/step1.outscale_public_ip.outscale_public_ip.check new file mode 100644 index 000000000..2c5927ce5 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/step1.outscale_public_ip.outscale_public_ip.check @@ -0,0 +1,10 @@ +link_public_ip_id +nic_account_id +nic_id +private_ip +public_ip +public_ip_id +vm_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/step1.public_ip_datasource_attributes_ok.tf b/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/step1.public_ip_datasource_attributes_ok.tf new file mode 100644 index 000000000..fe348fb4a --- /dev/null +++ b/tests/qa_provider_oapi/public_ip/TF00_public_ip_datasource_attributes_ok/step1.public_ip_datasource_attributes_ok.tf @@ -0,0 +1,13 @@ +resource "outscale_public_ip" "outscale_public_ip" { +tags { + key = "name" + value = "public_ip-data" + } +} + +data "outscale_public_ip" "outscale_public_ip" { + filter { + name = "public_ips" + values = [outscale_public_ip.outscale_public_ip.public_ip] + } +} diff --git a/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..321c7b0a0 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_public_ip/test_outscale_public_ip_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_public_ip/config_outscale_public_ip_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_public_ip/outscale_public_ip_resource_attributes.txt diff --git a/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/step1.outscale_public_ip.outscale_public_ip.check b/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/step1.outscale_public_ip.outscale_public_ip.check new file mode 100644 index 000000000..2c5927ce5 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/step1.outscale_public_ip.outscale_public_ip.check @@ -0,0 +1,10 @@ +link_public_ip_id +nic_account_id +nic_id +private_ip +public_ip +public_ip_id +vm_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/step1.public_ip_resource_attributes_ok.tf b/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/step1.public_ip_resource_attributes_ok.tf new file mode 100644 index 000000000..8736af6e6 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip/TF00_public_ip_resource_attributes_ok/step1.public_ip_resource_attributes_ok.tf @@ -0,0 +1,6 @@ +resource "outscale_public_ip" "outscale_public_ip" { +tags { + key = "name" + value ="Public_ip" + } +} diff --git a/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..75e3c1e73 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_public_ip_link/test_outscale_public_ip_link_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_public_ip_link/config_outscale_public_ip_link_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_public_ip_link/outscale_public_ip_link_resource_attributes.txt diff --git a/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/step1.outscale_public_ip_link.outscale_public_ip_link.check b/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/step1.outscale_public_ip_link.outscale_public_ip_link.check new file mode 100644 index 000000000..2c5927ce5 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/step1.outscale_public_ip_link.outscale_public_ip_link.check @@ -0,0 +1,10 @@ +link_public_ip_id +nic_account_id +nic_id +private_ip +public_ip +public_ip_id +vm_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/step1.public_ip_link_resource_attributes_ok.tf b/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/step1.public_ip_link_resource_attributes_ok.tf new file mode 100644 index 000000000..4bc884430 --- /dev/null +++ b/tests/qa_provider_oapi/public_ip_link/TF00_public_ip_link_resource_attributes_ok/step1.public_ip_link_resource_attributes_ok.tf @@ -0,0 +1,19 @@ +resource "outscale_public_ip" "outscale_public_ip" { + tags { + key = "name" + value = "public_ip" + } +} + +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_public_ip_link" "outscale_public_ip_link" { + vm_id = outscale_vm.outscale_vm.vm_id + #vm_id = outscale_vm.outscale_vm.id # test purposes only + public_ip = outscale_public_ip.outscale_public_ip.public_ip +} diff --git a/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..bb447e909 --- /dev/null +++ b/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_public_ips/test_outscale_public_ips_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_public_ips/config_outscale_public_ips_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_public_ips/outscale_public_ips_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/step1.outscale_public_ips.outscale_public_ips.check b/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/step1.outscale_public_ips.outscale_public_ips.check new file mode 100644 index 000000000..8ec254c04 --- /dev/null +++ b/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/step1.outscale_public_ips.outscale_public_ips.check @@ -0,0 +1,18 @@ +public_ips.# +public_ips.0.link_public_ip_id +public_ips.0.nic_account_id +public_ips.0.nic_id +public_ips.0.private_ip +public_ips.0.public_ip +public_ips.0.public_ip_id +public_ips.0.vm_id +public_ips.1.link_public_ip_id +public_ips.1.nic_account_id +public_ips.1.nic_id +public_ips.1.private_ip +public_ips.1.public_ip +public_ips.1.public_ip_id +public_ips.1.vm_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/step1.public_ips_datasource_attributes_ok.tf b/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/step1.public_ips_datasource_attributes_ok.tf new file mode 100644 index 000000000..a830fb8ff --- /dev/null +++ b/tests/qa_provider_oapi/public_ips/TF00_public_ips_datasource_attributes_ok/step1.public_ips_datasource_attributes_ok.tf @@ -0,0 +1,12 @@ +resource "outscale_public_ip" "outscale_public_ip" { +} + +resource "outscale_public_ip" "outscale_public_ip2" { +} + +data "outscale_public_ips" "outscale_public_ips" { + filter { + name = "public_ips" + values = [outscale_public_ip.outscale_public_ip.public_ip,outscale_public_ip.outscale_public_ip2.public_ip] + } +} diff --git a/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..af5ef7362 --- /dev/null +++ b/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_route/test_outscale_route_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_route/config_outscale_route_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_route/outscale_route_resource_attributes.txt diff --git a/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/step1.outscale_route.outscale_route.check b/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/step1.outscale_route.outscale_route.check new file mode 100644 index 000000000..fb6b776f8 --- /dev/null +++ b/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/step1.outscale_route.outscale_route.check @@ -0,0 +1,38 @@ +link_route_tables +#link_route_tables.0.link_route_table_id +#link_route_tables.0.main +#link_route_tables.0.route_table_id +#link_route_tables.0.subnet_id +net_id +route_propagating_virtual_gateways +#route_propagating_virtual_gateways.0.virtual_gateway_id +route_table_id +routes.# +routes.0.creation_method +routes.0.destination_ip_range +routes.0.destination_service_id +routes.0.gateway_id +routes.0.nat_service_id +routes.0.net_access_point_id +routes.0.net_peering_id +routes.0.nic_id +routes.0.state +routes.0.vm_account_id +routes.0.vm_id +routes.1.creation_method +routes.1.destination_ip_range +routes.1.destination_service_id +routes.1.gateway_id +routes.1.nat_service_id +routes.1.net_access_point_id +routes.1.net_peering_id +routes.1.nic_id +routes.1.state +routes.1.vm_account_id +routes.1.vm_id +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id diff --git a/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/step1.route_resource_attributes_ok.tf b/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/step1.route_resource_attributes_ok.tf new file mode 100644 index 000000000..1311c9c05 --- /dev/null +++ b/tests/qa_provider_oapi/route/TF00_route_resource_attributes_ok/step1.route_resource_attributes_ok.tf @@ -0,0 +1,37 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/24" + tags { + key = "name" + value = "Net" + } +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + #depends_on = ["outscale_internet_service_link.outscale_internet_service_link"] + tags { + key = "name" + value = "Route-Table" + } +} + +resource "outscale_internet_service" "outscale_internet_service" { + tags { + key = "name" + value = "InternetService" + } +} + +resource "outscale_internet_service_link" "outscale_internet_service_link" { + internet_service_id = outscale_internet_service.outscale_internet_service.internet_service_id + # internet_service_id = outscale_internet_service.outscale_internet_service.id # TEST purpose only + net_id = outscale_net.outscale_net.net_id +} + + +resource "outscale_route" "outscale_route" { + gateway_id = outscale_internet_service.outscale_internet_service.internet_service_id + #gateway_id = outscale_internet_service.outscale_internet_service.id # TEST purposes only + destination_ip_range = "10.0.0.0/16" + route_table_id = outscale_route_table.outscale_route_table.route_table_id +} diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..5414d8642 --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_route_table/test_outscale_route_table_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_route_table/config_outscale_route_table_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_route_table/outscale_route_table_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/step1.outscale_route_table.outscale_route_table.check b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/step1.outscale_route_table.outscale_route_table.check new file mode 100644 index 000000000..9e2363cb3 --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/step1.outscale_route_table.outscale_route_table.check @@ -0,0 +1,27 @@ +link_route_tables +#link_route_tables.0.link_route_table_id +#link_route_tables.0.main +#link_route_tables.0.route_table_id +#link_route_tables.0.subnet_id +net_id +route_propagating_virtual_gateways +#route_propagating_virtual_gateways.0.virtual_gateway_id +route_table_id +routes.# +routes.0.creation_method +routes.0.destination_ip_range +routes.0.destination_service_id +routes.0.gateway_id +routes.0.nat_service_id +routes.0.net_access_point_id +routes.0.net_peering_id +routes.0.nic_id +routes.0.state +routes.0.vm_account_id +routes.0.vm_id +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/step1.route_table_datasource_attributes_ok.tf b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/step1.route_table_datasource_attributes_ok.tf new file mode 100644 index 000000000..4456b0899 --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok/step1.route_table_datasource_attributes_ok.tf @@ -0,0 +1,18 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "terraform-RT" + } +} + +data "outscale_route_table" "outscale_route_table" { + filter { + name = "route_table_ids" + values = [outscale_route_table.outscale_route_table.route_table_id] + } +} diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/origin.txt b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/origin.txt new file mode 100644 index 000000000..5430b4532 --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_route_table/test_outscale_route_table_datasource_attributes_ok2.py +tf file: provider_outscale_oapi/config/outscale_route_table/config_outscale_route_table_datasource_attributes_ok2 +check file: provider_outscale_oapi/test/outscale_route_table/outscale_route_table_datasource_attributes2.txt diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/step1.outscale_route_table.check b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/step1.outscale_route_table.check new file mode 100644 index 000000000..fee5321c6 --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/step1.outscale_route_table.check @@ -0,0 +1,27 @@ +link_route_tables.# +link_route_tables.0.link_route_table_id +link_route_tables.0.main +link_route_tables.0.route_table_id +link_route_tables.0.subnet_id +net_id +route_propagating_virtual_gateways.# +route_propagating_virtual_gateways.0.virtual_gateway_id +route_table_id +routes.# +routes.0.creation_method +routes.0.destination_ip_range +routes.0.destination_service_id +routes.0.gateway_id +routes.0.nat_service_id +routes.0.net_access_point_id +routes.0.net_peering_id +routes.0.nic_id +routes.0.state +routes.0.vm_account_id +routes.0.vm_id +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/step1.route_table_datasource_attributes_ok2.tf b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/step1.route_table_datasource_attributes_ok2.tf new file mode 100644 index 000000000..53ae90ecd --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_datasource_attributes_ok2/step1.route_table_datasource_attributes_ok2.tf @@ -0,0 +1,38 @@ +resource "outscale_net" "test" { + ip_range = "172.16.0.0/16" + + tags { + key = "Name" + value = "terraform-testacc-data-source" + } +} + +resource "outscale_subnet" "test" { + ip_range = "172.16.0.0/24" + net_id = outscale_net.test.id + tags { + key = "Name" + value = "terraform-testacc-data-source" + } +} + +resource "outscale_route_table" "test" { + net_id = outscale_net.test.id + tags { + key = "Name" + value = "terraform-testacc-routetable-data-source" + } +} + +resource "outscale_route_table_link" "a" { + subnet_id = outscale_subnet.test.id + route_table_id = outscale_route_table.test.id +} + +data "outscale_route_table" "by_filter" { + filter { + name = "link_route_table_ids" + values = [outscale_route_table_link.a.id] + } + depends_on = ["outscale_route_table_link.a"] +} diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..2ba61118f --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_route_table/test_outscale_route_table_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_route_table/config_outscale_route_table_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_route_table/outscale_route_table_resource_attributes.txt diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/step1.outscale_route_table.outscale_route_table.check b/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/step1.outscale_route_table.outscale_route_table.check new file mode 100644 index 000000000..9e2363cb3 --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/step1.outscale_route_table.outscale_route_table.check @@ -0,0 +1,27 @@ +link_route_tables +#link_route_tables.0.link_route_table_id +#link_route_tables.0.main +#link_route_tables.0.route_table_id +#link_route_tables.0.subnet_id +net_id +route_propagating_virtual_gateways +#route_propagating_virtual_gateways.0.virtual_gateway_id +route_table_id +routes.# +routes.0.creation_method +routes.0.destination_ip_range +routes.0.destination_service_id +routes.0.gateway_id +routes.0.nat_service_id +routes.0.net_access_point_id +routes.0.net_peering_id +routes.0.nic_id +routes.0.state +routes.0.vm_account_id +routes.0.vm_id +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/step1.route_table_resource_attributes_ok.tf b/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/step1.route_table_resource_attributes_ok.tf new file mode 100644 index 000000000..b33b1e3e6 --- /dev/null +++ b/tests/qa_provider_oapi/route_table/TF00_route_table_resource_attributes_ok/step1.route_table_resource_attributes_ok.tf @@ -0,0 +1,12 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "terraform-route-table" + } + +} diff --git a/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..f349d6537 --- /dev/null +++ b/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_route_table_link/test_outscale_route_table_link_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_route_table_link/config_outscale_route_table_link_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_route_table_link/outscale_route_table_link_resource_attributes.txt diff --git a/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/step1.outscale_route_table_link.outscale_route_table_link.check b/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/step1.outscale_route_table_link.outscale_route_table_link.check new file mode 100644 index 000000000..05653cf11 --- /dev/null +++ b/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/step1.outscale_route_table_link.outscale_route_table_link.check @@ -0,0 +1,12 @@ +#link_route_tables.# +#link_route_tables.0.link_route_table_id +#link_route_tables.0.main +#link_route_tables.0.route_table_id +#link_route_tables.0.subnet_id +link_route_table_id +#main +route_table_id +subnet_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/step1.route_table_link_resource_attributes_ok.tf b/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/step1.route_table_link_resource_attributes_ok.tf new file mode 100644 index 000000000..ac5d5dd7b --- /dev/null +++ b/tests/qa_provider_oapi/route_table_link/TF00_route_table_link_resource_attributes_ok/step1.route_table_link_resource_attributes_ok.tf @@ -0,0 +1,21 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "terraform-RT" + } +} + +resource "outscale_subnet" "outscale_subnet" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.0.0/18" +} + +resource "outscale_route_table_link" "outscale_route_table_link" { + route_table_id = outscale_route_table.outscale_route_table.route_table_id + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} diff --git a/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..60d290707 --- /dev/null +++ b/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_route_tables/test_outscale_route_tables_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_route_tables/config_outscale_route_tables_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_route_tables/outscale_route_tables_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/step1.outscale_route_tables.outscale_route_tables.check b/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/step1.outscale_route_tables.outscale_route_tables.check new file mode 100644 index 000000000..363c0fc61 --- /dev/null +++ b/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/step1.outscale_route_tables.outscale_route_tables.check @@ -0,0 +1,53 @@ +route_tables.# +route_tables.0.link_route_tables +#route_tables.0.link_route_tables.0.link_route_table_id +#route_tables.0.link_route_tables.0.main +#route_tables.0.link_route_tables.0.route_table_id +#route_tables.0.link_route_tables.0.subnet_id +route_tables.0.net_id +route_tables.0.route_propagating_virtual_gateways +#route_tables.0.route_propagating_virtual_gateways.0.virtual_gateway_id +route_tables.0.route_table_id +route_tables.0.routes.# +route_tables.0.routes.0.creation_method +route_tables.0.routes.0.destination_ip_range +route_tables.0.routes.0.destination_service_id +route_tables.0.routes.0.gateway_id +route_tables.0.routes.0.nat_service_id +route_tables.0.routes.0.net_peering_id +route_tables.0.routes.0.nic_id +route_tables.0.routes.0.state +route_tables.0.routes.0.vm_account_id +route_tables.0.routes.0.vm_id +route_tables.0.tags.# +route_tables.0.tags.0.key +route_tables.0.tags.0.value +route_tables.1.link_route_tables +#route_tables.1.link_route_tables.0.link_route_table_id +#route_tables.1.link_route_tables.0.main +#route_tables.1.link_route_tables.0.route_table_id +#route_tables.1.link_route_tables.0.subnet_id +route_tables.1.net_id +route_tables.1.route_propagating_virtual_gateways +#route_tables.1.route_propagating_virtual_gateways.0.virtual_gateway_id +route_tables.1.route_table_id +route_tables.1.routes.# +route_tables.1.routes.0.creation_method +route_tables.1.routes.0.destination_ip_range +route_tables.1.routes.0.destination_service_id +route_tables.1.routes.0.gateway_id +route_tables.1.routes.0.nat_service_id +route_tables.1.routes.0.net_peering_id +route_tables.1.routes.0.nic_id +route_tables.1.routes.0.state +route_tables.1.routes.0.vm_account_id +route_tables.1.routes.0.vm_id +route_tables.1.tags.# +route_tables.1.tags.0.key +route_tables.1.tags.0.value +request_id +# correctives below +id +#route_table_id.0 +#route_table_id.1 +#route_table_id.# \ No newline at end of file diff --git a/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/step1.route_tables_datasource_attributes_ok.tf b/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/step1.route_tables_datasource_attributes_ok.tf new file mode 100644 index 000000000..6e13d8c02 --- /dev/null +++ b/tests/qa_provider_oapi/route_tables/TF00_route_tables_datasource_attributes_ok/step1.route_tables_datasource_attributes_ok.tf @@ -0,0 +1,26 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "RT-1" + } +} + +resource "outscale_route_table" "outscale_route_table2" { + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "RT-2" + } +} + +data "outscale_route_tables" "outscale_route_tables" { + filter { + name = "route_table_ids" + values = [outscale_route_table.outscale_route_table.route_table_id, outscale_route_table.outscale_route_table2.route_table_id] + } +} diff --git a/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..f465eebf2 --- /dev/null +++ b/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_security_group/test_outscale_security_group_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_security_group/config_outscale_security_group_datasource_std_ok +check file: provider_outscale_oapi/test/outscale_security_group/outscale_security_group_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/step1.outscale_security_group.outscale_security_group.check b/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/step1.outscale_security_group.outscale_security_group.check new file mode 100644 index 000000000..4505e6fee --- /dev/null +++ b/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/step1.outscale_security_group.outscale_security_group.check @@ -0,0 +1,32 @@ +account_id +description +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.prefix_list_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.prefix_list_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/step1.security_group_datasource_std_ok.tf b/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/step1.security_group_datasource_std_ok.tf new file mode 100644 index 000000000..60595e04e --- /dev/null +++ b/tests/qa_provider_oapi/security_group/TF00_security_group_datasource_attributes_ok/step1.security_group_datasource_std_ok.tf @@ -0,0 +1,26 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + + tags { + key = "Name" + value = "outscale_net_resource2" + } +} + +data "outscale_security_group" "outscale_security_groupd" { + filter { + name = "security_group_ids" + values = [outscale_security_group.outscale_security_group.security_group_id] + #values = [outscale_security_group.outscale_security_group.id] # test purposes only + } +} + +resource "outscale_security_group" "outscale_security_group" { + description = "test group" + security_group_name = "sg1-test-group_test-d" + net_id = outscale_net.outscale_net.net_id + tags { + key = "Name" + value = "outscale_security_group_net" + } +} diff --git a/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..6dc143e40 --- /dev/null +++ b/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_security_group/test_outscale_security_group_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_security_group/config_outscale_security_group_attributes_ok +check file: provider_outscale_oapi/test/outscale_security_group/outscale_security_group_resource_attributes.txt diff --git a/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/step1.outscale_security_group.outscale_security_group.check b/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/step1.outscale_security_group.outscale_security_group.check new file mode 100644 index 000000000..2912e1768 --- /dev/null +++ b/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/step1.outscale_security_group.outscale_security_group.check @@ -0,0 +1,31 @@ +account_id +description +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.prefix_list_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.prefix_list_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/step1.security_group_attributes_ok.tf b/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/step1.security_group_attributes_ok.tf new file mode 100644 index 000000000..c35b1f391 --- /dev/null +++ b/tests/qa_provider_oapi/security_group/TF00_security_group_resource_attributes_ok/step1.security_group_attributes_ok.tf @@ -0,0 +1,7 @@ +resource "outscale_security_group" "outscale_security_group" { + count = 1 + + description = "test group" + security_group_name = "sg1-test-group_test-r" + #net_id +} diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..93cac62c0 --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/origin.txt @@ -0,0 +1,14 @@ + +python file: provider_outscale_oapi/test//outscale_security_group_rule/test_outscale_security_group_rule_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_security_group_rule/config_outscale_security_group_rule_resource_ok +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt +tf file: provider_outscale_oapi/config/outscale_security_group_rule/config_outscale_security_group_rule_resource_ok2 +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt +tf file: provider_outscale_oapi/config/outscale_security_group_rule/config_outscale_security_group_rule_resource_ok3 +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt +tf file: provider_outscale_oapi/config/outscale_security_group_rule/config_outscale_security_group_rule_resource_ok4 +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt +check file: provider_outscale_oapi/test/outscale_security_group_rule/outscale_security_group_rule_resource_attributes.txt diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.outscale_security_group_rule.outscale_security_group_rule.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.outscale_security_group_rule.outscale_security_group_rule.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.outscale_security_group_rule.outscale_security_group_rule.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.outscale_security_group_rule.outscale_security_group_rule_https.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.outscale_security_group_rule.outscale_security_group_rule_https.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.outscale_security_group_rule.outscale_security_group_rule_https.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.security_group_rule_resource_ok.tf b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.security_group_rule_resource_ok.tf new file mode 100644 index 000000000..fafed9add --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step1.security_group_rule_resource_ok.tf @@ -0,0 +1,15 @@ +resource "outscale_security_group" "outscale_security_group" { + description = "test group" + security_group_name = "sg1-test-group_test" +} + +resource "outscale_security_group_rule" "outscale_security_group_rule" { + flow = "Inbound" + security_group_id = outscale_security_group.outscale_security_group.id + + from_port_range = "0" + to_port_range = "0" + #ip_protocol = "-1" + ip_protocol = "tcp" + ip_range = "0.0.0.0/0" +} diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.outscale_security_group_rule.outscale_security_group_rule.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.outscale_security_group_rule.outscale_security_group_rule.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.outscale_security_group_rule.outscale_security_group_rule.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.outscale_security_group_rule.outscale_security_group_rule_https.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.outscale_security_group_rule.outscale_security_group_rule_https.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.outscale_security_group_rule.outscale_security_group_rule_https.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.security_group_rule_resource_ok2.tf b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.security_group_rule_resource_ok2.tf new file mode 100644 index 000000000..752b9166b --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step2.security_group_rule_resource_ok2.tf @@ -0,0 +1,13 @@ +resource "outscale_security_group_rule" "outscale_security_group_rule" { + flow = "Inbound" + from_port_range = 22 + to_port_range = 22 + ip_protocol = "tcp" + ip_range = "46.231.147.2/32" + security_group_id = outscale_security_group.outscale_security_group.security_group_id +} + +resource "outscale_security_group" "outscale_security_group" { + description = "test group" + security_group_name = "sg1-test-group_test" +} diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.outscale_security_group_rule.outscale_security_group_rule.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.outscale_security_group_rule.outscale_security_group_rule.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.outscale_security_group_rule.outscale_security_group_rule.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.outscale_security_group_rule.outscale_security_group_rule_https.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.outscale_security_group_rule.outscale_security_group_rule_https.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.outscale_security_group_rule.outscale_security_group_rule_https.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.security_group_rule_resource_ok3.tf b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.security_group_rule_resource_ok3.tf new file mode 100644 index 000000000..5628457a4 --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step3.security_group_rule_resource_ok3.tf @@ -0,0 +1,22 @@ +resource "outscale_security_group_rule" "outscale_security_group_rule_ssh" { + flow = "Inbound" + from_port_range = 22 + to_port_range = 22 + ip_protocol = "tcp" + ip_range = "46.231.147.8/32" + security_group_id = outscale_security_group.outscale_security_group.security_group_id +} + +resource "outscale_security_group_rule" "outscale_security_group_rule_https" { + flow = "Inbound" + from_port_range = 443 + to_port_range = 443 + ip_protocol = "tcp" + ip_range = "46.231.147.8/32" + security_group_id = outscale_security_group.outscale_security_group.security_group_id +} + +resource "outscale_security_group" "outscale_security_group" { + description = "test group" + security_group_name = "sg1-test-group_test" +} diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.outscale_security_group_rule.outscale_security_group_rule.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.outscale_security_group_rule.outscale_security_group_rule.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.outscale_security_group_rule.outscale_security_group_rule.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.outscale_security_group_rule.outscale_security_group_rule_https.check b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.outscale_security_group_rule.outscale_security_group_rule_https.check new file mode 100644 index 000000000..d058a3e6a --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.outscale_security_group_rule.outscale_security_group_rule_https.check @@ -0,0 +1,34 @@ +inbound_rules.# +inbound_rules.0.from_port_range +inbound_rules.0.ip_protocol +inbound_rules.0.ip_ranges.# +inbound_rules.0.ip_ranges.0 +inbound_rules.0.service_ids.# +inbound_rules.0.security_groups_members.# +inbound_rules.0.security_groups_members.0.account_id +inbound_rules.0.security_groups_members.0.security_group_id +inbound_rules.0.security_groups_members.0.security_group_name +inbound_rules.0.to_port_range +net_id +outbound_rules.# +outbound_rules.0.from_port_range +outbound_rules.0.ip_protocol +outbound_rules.0.ip_ranges.# +outbound_rules.0.ip_ranges.0 +outbound_rules.0.service_ids.# +outbound_rules.0.security_groups_members.# +outbound_rules.0.security_groups_members.0.account_id +outbound_rules.0.security_groups_members.0.security_group_id +outbound_rules.0.security_groups_members.0.security_group_name +outbound_rules.0.to_port_range +security_group_id +security_group_name +request_id +# correctives +id +from_port_range +ip_range +to_port_range +ip_protocol +flow +to_port_range \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.security_group_rule_resource_ok4.tf b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.security_group_rule_resource_ok4.tf new file mode 100644 index 000000000..904f1c0c0 --- /dev/null +++ b/tests/qa_provider_oapi/security_group_rule/TF00_security_group_rule_resource_attributes_ok/step4.security_group_rule_resource_ok4.tf @@ -0,0 +1,22 @@ +#resource "outscale_security_group_rule" "outscale_security_group_rule_ssh" { +# flow = "Inbound" +# from_port_range = 22 +# to_port_range = 22 +# ip_protocol = "tcp" +# ip_range = "46.231.147.8/32" +# security_group_id = outscale_security_group.outscale_security_group.security_group_id +#} + +resource "outscale_security_group_rule" "outscale_security_group_rule_https" { + flow = "Inbound" + from_port_range = 443 + to_port_range = 443 + ip_protocol = "tcp" + ip_range = "46.231.147.8/32" + security_group_id = outscale_security_group.outscale_security_group.security_group_id +} + +resource "outscale_security_group" "outscale_security_group" { + description = "test group" + security_group_name = "sg1-test-group_test" +} diff --git a/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..e47faad9e --- /dev/null +++ b/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_security_groups/test_outscale_security_groups_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_security_groups/config_outscale_security_groups_datasource_std_ok +check file: provider_outscale_oapi/test/outscale_security_groups/outscale_security_groups_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/step1.outscale_security_groups.outscale_security_groups.check b/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/step1.outscale_security_groups.outscale_security_groups.check new file mode 100644 index 000000000..aef6d322c --- /dev/null +++ b/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/step1.outscale_security_groups.outscale_security_groups.check @@ -0,0 +1,62 @@ +security_groups.# +security_groups.0.account_id +security_groups.0.description +security_groups.0.inbound_rules +#security_groups.0.inbound_rules.0.from_port_range +#security_groups.0.inbound_rules.0.ip_protocol +#security_groups.0.inbound_rules.0.ip_ranges.# +#security_groups.0.inbound_rules.0.ip_ranges.0 +#security_groups.0.inbound_rules.0.prefix_list_ids.# +#security_groups.0.inbound_rules.0.security_groups_members.# +#security_groups.0.inbound_rules.0.security_groups_members.0.account_id +#security_groups.0.inbound_rules.0.security_groups_members.0.security_group_id +#security_groups.0.inbound_rules.0.security_groups_members.0.security_group_name +#security_groups.0.inbound_rules.0.to_port_range +security_groups.0.net_id +security_groups.0.outbound_rules +#security_groups.0.outbound_rules.0.from_port_range +#security_groups.0.outbound_rules.0.ip_protocol +#security_groups.0.outbound_rules.0.ip_ranges.# +#security_groups.0.outbound_rules.0.prefix_list_ids.# +#security_groups.0.outbound_rules.0.security_groups_members.# +#security_groups.0.outbound_rules.0.security_groups_members.0.account_id +#security_groups.0.outbound_rules.0.security_groups_members.0.security_group_id +#security_groups.0.outbound_rules.0.security_groups_members.0.security_group_name +#security_groups.0.outbound_rules.0.to_port_range +security_groups.0.security_group_id +security_groups.0.security_group_name +security_groups.0.tags +#security_groups.0.tags.0.key +#security_groups.0.tags.0.value +security_groups.1.account_id +security_groups.1.description +security_groups.1.inbound_rules +#security_groups.1.inbound_rules.0.from_port_range +#security_groups.1.inbound_rules.0.ip_protocol +#security_groups.1.inbound_rules.0.ip_ranges.# +#security_groups.1.inbound_rules.0.prefix_list_ids.# +#security_groups.1.inbound_rules.0.security_groups_members.# +#security_groups.1.inbound_rules.0.security_groups_members.0.account_id +#security_groups.1.inbound_rules.0.security_groups_members.0.security_group_id +#security_groups.1.inbound_rules.0.security_groups_members.0.security_group_name +#security_groups.1.inbound_rules.0.to_port_range +security_groups.1.net_id +security_groups.1.outbound_rules +#security_groups.1.outbound_rules.0.from_port_range +#security_groups.1.outbound_rules.0.ip_protocol +#security_groups.1.outbound_rules.0.ip_ranges.# +#security_groups.1.outbound_rules.0.ip_ranges.0 +#security_groups.1.outbound_rules.0.prefix_list_ids.# +#security_groups.1.outbound_rules.0.security_groups_members.# +#security_groups.1.outbound_rules.0.security_groups_members.0.account_id +#security_groups.1.outbound_rules.0.security_groups_members.0.security_group_id +#security_groups.1.outbound_rules.0.security_groups_members.0.security_group_name +#security_groups.1.outbound_rules.0.to_port_range +security_groups.1.security_group_id +security_groups.1.security_group_name +security_groups.1.tags +#security_groups.1.tags.0.key +#security_groups.1.tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/step1.security_groups_datasource_std_ok.tf b/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/step1.security_groups_datasource_std_ok.tf new file mode 100644 index 000000000..ce17b839b --- /dev/null +++ b/tests/qa_provider_oapi/security_groups/TF00_security_groups_datasource_attributes_ok/step1.security_groups_datasource_std_ok.tf @@ -0,0 +1,16 @@ +resource "outscale_security_group" "outscale_security_group" { + description = "test group" + security_group_name = "sg1-test-group_test-r" +} + +resource "outscale_security_group" "outscale_security_group2" { + description = "test group" + security_group_name = "sg1-test-group_test-r2" +} + +data "outscale_security_groups" "outscale_security_groups" { + filter { + name = "security_group_ids" + values = [outscale_security_group.outscale_security_group.security_group_id,outscale_security_group.outscale_security_group2.security_group_id] + } +} diff --git a/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..83ac0a2c8 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_snapshot/test_outscale_snapshot_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_snapshot/config_outscale_snapshot_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_snapshot/outscale_snapshot_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/step1.outscale_snapshot.outscale_snapshot.check b/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/step1.outscale_snapshot.outscale_snapshot.check new file mode 100644 index 000000000..9e9911681 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/step1.outscale_snapshot.outscale_snapshot.check @@ -0,0 +1,17 @@ +account_alias +account_id +description +permissions_to_create_volume.# +#permissions_to_create_volume.0.account_ids.# +#permissions_to_create_volume.0.global_permission +progress +snapshot_id +state +tags.# +tags.0.key +tags.0.value +volume_id +volume_size +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/step1.snapshot_datasource_attributes_ok.tf b/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/step1.snapshot_datasource_attributes_ok.tf new file mode 100644 index 000000000..4b800f5d4 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot/TF00_snapshot_datasource_attributes_ok/step1.snapshot_datasource_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 40 +} + +resource "outscale_snapshot" "outscale_snapshot" { + volume_id = outscale_volume.outscale_volume.volume_id + tags { + key = "name" + value = "Snapshot_datasource" + } + +} + +data "outscale_snapshot" "outscale_snapshot" { + filter { + name = "snapshot_ids" + values = [outscale_snapshot.outscale_snapshot.snapshot_id] + } +} diff --git a/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..b87da8066 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_snapshot/test_outscale_snapshot_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_snapshot/config_outscale_snapshot_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_snapshot/outscale_snapshot_resource_attributes.txt diff --git a/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/step1.outscale_snapshot.outscale_snapshot.check b/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/step1.outscale_snapshot.outscale_snapshot.check new file mode 100644 index 000000000..5dc212163 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/step1.outscale_snapshot.outscale_snapshot.check @@ -0,0 +1,17 @@ +account_alias +account_id +description +permissions_to_create_volume +#permissions_to_create_volume.0.account_ids +#permissions_to_create_volume.0.global_permission +progress +snapshot_id +state +tags.# +tags.0.key +tags.0.value +volume_id +volume_size +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/step1.snapshot_resource_attributes_ok.tf b/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/step1.snapshot_resource_attributes_ok.tf new file mode 100644 index 000000000..0a68f8689 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot/TF00_snapshot_resource_attributes_ok/step1.snapshot_resource_attributes_ok.tf @@ -0,0 +1,23 @@ +resource "outscale_volume" "outscale_volume_snap" { + subregion_name = format("%s%s", var.region, "a") + size = 40 +} + +resource "outscale_snapshot" "outscale_snapshot" { + volume_id = outscale_volume.outscale_volume_snap.volume_id + tags { + key = "name" + value = "Snapsho_Creation_test" + } +} + +### Tes tCopy snapshot +resource "outscale_snapshot" "outscale_snapshot_2" { +description = "Test-copy-snapshot" +source_snapshot_id = var.snapshot_id +source_region_name = var.region +tags { + key = "name" + value = "Snapsho_Copy_test" + } +} diff --git a/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..6df973782 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_snapshot_attributes/test_outscale_snapshot_attributes_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_snapshot_attributes/config_outscale_snapshot_attributes_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_snapshot_attributes/outscale_snapshot_attributes_resource_attributes.txt diff --git a/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/step1.outscale_snapshot_attributes.outscale_snapshot_attributes.check b/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/step1.outscale_snapshot_attributes.outscale_snapshot_attributes.check new file mode 100644 index 000000000..1115e619c --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/step1.outscale_snapshot_attributes.outscale_snapshot_attributes.check @@ -0,0 +1,13 @@ +snapshot_id +#permissions_to_create_volume.% +#permissions_to_create_volume.account_ids.# +#permissions_to_create_volume.account_ids.0 +#permissions_to_create_volume.global_permission +permissions_to_create_volume_additions.# +permissions_to_create_volume_additions.0.account_ids.# +permissions_to_create_volume_additions.0.account_ids.0 +permissions_to_create_volume_additions.0.global_permission +request_id +# correctives below +id +account_id \ No newline at end of file diff --git a/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/step1.snapshot_attributes_resource_attributes_ok.tf b/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/step1.snapshot_attributes_resource_attributes_ok.tf new file mode 100644 index 000000000..318a74ade --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_attributes/TF00_snapshot_attributes_resource_attributes_ok/step1.snapshot_attributes_resource_attributes_ok.tf @@ -0,0 +1,22 @@ +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 40 + #snapshot_id = "snap-439943a0" +} + +resource "outscale_snapshot" "outscale_snapshot" { + volume_id = outscale_volume.outscale_volume.volume_id +} + +resource "outscale_snapshot_attributes" "outscale_snapshot_attributes" { + snapshot_id = outscale_snapshot.outscale_snapshot.snapshot_id + + permissions_to_create_volume_additions { + account_ids = ["339215505907"] + } +} + +data "outscale_snapshot" "outscale_snapshot" { + depends_on = ["outscale_snapshot_attributes.outscale_snapshot_attributes"] + snapshot_id = outscale_snapshot.outscale_snapshot.snapshot_id +} diff --git a/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..bf2de9888 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_snapshot_copy/test_outscale_snapashot_copy_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_snapshot_copy/config_outscale_snapshot_copy_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_snapshot_copy/outscale_snapshot_copy_resource_attributes.txt diff --git a/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/step1.outscale_snapshot_copy.outscale_snapshot_copy.check b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/step1.outscale_snapshot_copy.outscale_snapshot_copy.check new file mode 100644 index 000000000..c4088aaba --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/step1.outscale_snapshot_copy.outscale_snapshot_copy.check @@ -0,0 +1,17 @@ +account_alias +account_id +description +permissions_to_create_volume +#permissions_to_create_volume.0.account_ids +#permissions_to_create_volume.0.global_permission +progress +snapshot_id +state +tags.# +tags.0.key +tags.0.value +volume_id +volume_size +request_id +# correctives below +id diff --git a/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/step1.snapshot_copy_resource_attributes_ok.tf b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/step1.snapshot_copy_resource_attributes_ok.tf new file mode 100644 index 000000000..c8d0ca7fe --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_attributes_ok/step1.snapshot_copy_resource_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_volume" "outscale_volume_snap" { + subregion_name = format("%s%s", var.region, "a") + size = 40 + snapshot_id = var.snapshot_id +} + +resource "outscale_snapshot" "outscale_snapshot" { + volume_id = outscale_volume.outscale_volume_snap.volume_id +} + +resource "outscale_snapshot" "outscale_snapshot-copy" { + description = "backup snapshot" + source_snapshot_id = outscale_snapshot.outscale_snapshot.snapshot_id + source_region_name = var.region + tags { + key = "name" + value = "Snapsho_Copy" + } + +} diff --git a/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_creation_ok/origin.txt b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_creation_ok/origin.txt new file mode 100644 index 000000000..65da47cf4 --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_creation_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_snapshot_copy/test_outscale_snapashot_copy_resource_creation_ok.py +tf file: provider_outscale_oapi/config/outscale_snapshot_copy/config_outscale_snapshot_copy_resource_creation_ok +WARNING: No check file !!! diff --git a/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_creation_ok/step1.snapshot_copy_resource_creation_ok.tf b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_creation_ok/step1.snapshot_copy_resource_creation_ok.tf new file mode 100644 index 000000000..d0025d24c --- /dev/null +++ b/tests/qa_provider_oapi/snapshot_copy/TF00_snapashot_c_resource_creation_ok/step1.snapshot_copy_resource_creation_ok.tf @@ -0,0 +1,14 @@ +resource "outscale_volume" "outscale_volume_snap" { + subregion_name = format("%s%s", var.region, "a") + size = 40 + snapshot_id = "snap-439943a0" +} + +resource "outscale_snapshot" "outscale_snapshot" { + volume_id = outscale_volume.outscale_volume_snap.volume_id +} + +resource "outscale_snapshot_copy" "outscale_snapshot_copy" { + source_region_name = outscale_volume.outscale_volume_snap.availability_zone + source_snapshot_id = outscale_snapshot.outscale_snapshot.snapshot_id +} diff --git a/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..4effdb92c --- /dev/null +++ b/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_snapshots/test_outscale_snapshots_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_snapshots/config_outscale_snapshots_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_snapshots/outscale_snapshots_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/step1.outscale_snapshots.outscale_snapshots.check b/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/step1.outscale_snapshots.outscale_snapshots.check new file mode 100644 index 000000000..1fbe58237 --- /dev/null +++ b/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/step1.outscale_snapshots.outscale_snapshots.check @@ -0,0 +1,35 @@ +snapshots.# +snapshots.0.account_alias +snapshots.0.account_id +snapshots.0.description +snapshots.0.permissions_to_create_volume.# +snapshots.0.permissions_to_create_volume.0.account_ids +snapshots.0.permissions_to_create_volume.0.global_permission +snapshots.0.progress +snapshots.0.snapshot_id +snapshots.0.state +snapshots.0.tags.# +snapshots.0.tags.0.key +snapshots.0.tags.0.value +snapshots.0.volume_id +snapshots.0.volume_size +snapshots.1.account_alias +snapshots.1.account_id +snapshots.1.description +snapshots.1.permissions_to_create_volume.# +snapshots.1.permissions_to_create_volume.0.account_ids +snapshots.1.permissions_to_create_volume.0.global_permission +snapshots.1.progress +snapshots.1.snapshot_id +snapshots.1.state +snapshots.1.tags.# +snapshots.1.tags.0.key +snapshots.1.tags.0.value +snapshots.1.volume_id +snapshots.1.volume_size +request_id +# correctives below +id +#snapshot_id.# +#snapshot_id.0 +#snapshot_id.1 \ No newline at end of file diff --git a/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/step1.snapshots_datasource_attributes_ok.tf b/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/step1.snapshots_datasource_attributes_ok.tf new file mode 100644 index 000000000..251447a85 --- /dev/null +++ b/tests/qa_provider_oapi/snapshots/TF00_snapshots_datasource_attributes_ok/step1.snapshots_datasource_attributes_ok.tf @@ -0,0 +1,27 @@ +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 10 +} + +resource "outscale_snapshot" "outscale_snapshot" { + volume_id = outscale_volume.outscale_volume.volume_id + tags { + key = "name" + value = "test snapshot 1" + } +} + +resource "outscale_snapshot" "outscale_snapshot2" { + volume_id = outscale_volume.outscale_volume.volume_id + tags { + key = "name" + value = "test snapshot 1" + } +} + +data "outscale_snapshots" "outscale_snapshots" { + filter { + name = "snapshot_ids" + values = [outscale_snapshot.outscale_snapshot.snapshot_id,outscale_snapshot.outscale_snapshot2.snapshot_id] + } +} diff --git a/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..f7124c5a4 --- /dev/null +++ b/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_subnet/test_outscale_subnet_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_subnet/config_outscale_subnet_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_subnet/outscale_subnet_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/step1.outscale_subnet.outscale_subnet.check b/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/step1.outscale_subnet.outscale_subnet.check new file mode 100644 index 000000000..4f065ccfe --- /dev/null +++ b/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/step1.outscale_subnet.outscale_subnet.check @@ -0,0 +1,12 @@ +available_ips_count +ip_range +net_id +state +subnet_id +subregion_name +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/step1.subnet_datasource_attributes_ok.tf b/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/step1.subnet_datasource_attributes_ok.tf new file mode 100644 index 000000000..c21e08d00 --- /dev/null +++ b/tests/qa_provider_oapi/subnet/TF00_subnet_datasource_attributes_ok/step1.subnet_datasource_attributes_ok.tf @@ -0,0 +1,36 @@ +resource "outscale_net" "outscale_net" { + #count = 1 + + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + #count = 1 + + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "terraform-subnet" + } +} + +data "outscale_subnet" "outscale_subnet" { + filter { + name = "subnet_ids" + values = [outscale_subnet.outscale_subnet.subnet_id] + } +} + +#resource "outscale_security_group" "outscale_security_group" { +#description = "test Private VM" +#security_group_name = "Private-sg-group" +#net_id = outscale_net.outscale_net.net_id +#} + +#resource "outscale_vm" "outscale_vm" { +# image_id = var.image_id +# subnet_id =outscale_subnet.outscale_subnet.subnet_id +# security_group_ids = [outscale_security_group.outscale_security_group.security_group_id] +#} diff --git a/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..ed0284ebb --- /dev/null +++ b/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_subnet/test_outscale_subnet_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_subnet/config_outscale_subnet_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_subnet/outscale_subnet_resource_attributes.txt diff --git a/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/step1.outscale_subnet.outscale_subnet.check b/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/step1.outscale_subnet.outscale_subnet.check new file mode 100644 index 000000000..4f065ccfe --- /dev/null +++ b/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/step1.outscale_subnet.outscale_subnet.check @@ -0,0 +1,12 @@ +available_ips_count +ip_range +net_id +state +subnet_id +subregion_name +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/step1.subnet_resource_attributes_ok.tf b/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/step1.subnet_resource_attributes_ok.tf new file mode 100644 index 000000000..89d55bddc --- /dev/null +++ b/tests/qa_provider_oapi/subnet/TF00_subnet_resource_attributes_ok/step1.subnet_resource_attributes_ok.tf @@ -0,0 +1,17 @@ +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.0.0/16" + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "terraform-subnet" + } +} + +output "outscale_subnet" { + value = outscale_subnet.outscale_subnet.subnet_id +} diff --git a/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..691a9a755 --- /dev/null +++ b/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_subnets/test_outscale_subnets_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_subnets/config_outscale_subnets_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_subnets/outscale_subnets_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/step1.outscale_subnets.outscale_subnets.check b/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/step1.outscale_subnets.outscale_subnets.check new file mode 100644 index 000000000..37946fca3 --- /dev/null +++ b/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/step1.outscale_subnets.outscale_subnets.check @@ -0,0 +1,24 @@ +subnets.# +subnets.0.available_ips_count +subnets.0.ip_range +subnets.0.net_id +subnets.0.state +subnets.0.subnet_id +subnets.0.subregion_name +subnets.0.tags.# +subnets.0.tags.0.key +subnets.0.tags.0.value +subnets.1.available_ips_count +subnets.1.ip_range +subnets.1.net_id +subnets.1.state +subnets.1.subnet_id +subnets.1.subregion_name +subnets.1.tags.# +subnets.1.tags.0.key +subnets.1.tags.0.value +request_id +# correctives below +id +#subnet_ids.# +#subnet_ids.0 \ No newline at end of file diff --git a/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/step1.subnets_datasource_attributes_ok.tf b/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/step1.subnets_datasource_attributes_ok.tf new file mode 100644 index 000000000..fc557a82c --- /dev/null +++ b/tests/qa_provider_oapi/subnets/TF00_subnets_datasource_attributes_ok/step1.subnets_datasource_attributes_ok.tf @@ -0,0 +1,32 @@ +resource "outscale_net" "outscale_net" { + + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.10.0/24" + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "subnet-tags-1" + } +} + +resource "outscale_subnet" "outscale_subnet2" { + + subregion_name = format("%s%s", var.region, "a") + ip_range = "10.0.20.0/24" + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "subnet-tags-2" + } +} +data "outscale_subnets" "outscale_subnets" { + filter { + name = "subnet_ids" + values = [outscale_subnet.outscale_subnet.subnet_id, outscale_subnet.outscale_subnet2.subnet_id] + } +} diff --git a/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..1a3443a30 --- /dev/null +++ b/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_tag/test_outscale_tag_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_tag/config_outscale_tag_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_tag/outscale_tag_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/step1.outscale_tag.outscale_tag.check b/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/step1.outscale_tag.outscale_tag.check new file mode 100644 index 000000000..2b3107107 --- /dev/null +++ b/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/step1.outscale_tag.outscale_tag.check @@ -0,0 +1,6 @@ +key +resource_id +resource_type +value +# correctives below +id diff --git a/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/step1.tag_datasource_attributes_ok.tf b/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/step1.tag_datasource_attributes_ok.tf new file mode 100644 index 000000000..9195ba84b --- /dev/null +++ b/tests/qa_provider_oapi/tag/TF00_tag_datasource_attributes_ok/step1.tag_datasource_attributes_ok.tf @@ -0,0 +1,24 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + + tags { + key = "name7" + value = "testDataSource7" + } +} + +data "outscale_tag" "outscale_tag" { + + filter { + name = "resource_ids" + values = [outscale_vm.outscale_vm.vm_id] + } + # filter { + # name = "name7" + # values = ["testDataSource7"] + #} +} + diff --git a/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..7a3c0534c --- /dev/null +++ b/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_tag/test_outscale_tag_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_tag/config_outscale_tag_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_tag/outscale_tag_resource_attributes.txt diff --git a/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/step1.outscale_tag.outscale_tag.check b/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/step1.outscale_tag.outscale_tag.check new file mode 100644 index 000000000..f12b059f9 --- /dev/null +++ b/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/step1.outscale_tag.outscale_tag.check @@ -0,0 +1,8 @@ +tags.# +tags.0.resource_type +tags.0.resource_id +tags.0.key +tags.0.value + +#correctives below +id diff --git a/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/step1.tag_resource_attributes_ok.tf b/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/step1.tag_resource_attributes_ok.tf new file mode 100644 index 000000000..68a77d4fd --- /dev/null +++ b/tests/qa_provider_oapi/tag/TF00_tag_resource_attributes_ok/step1.tag_resource_attributes_ok.tf @@ -0,0 +1,15 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_tag" "outscale_tag" { + resource_ids = [outscale_vm.outscale_vm.vm_id] + + tag { + key = "name7" + value = "testDataSource7" + } +} diff --git a/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..c7e5a736c --- /dev/null +++ b/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_tags/test_outscale_tags_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_tags/config_outscale_tags_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_tags/outscale_tags_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/step1.outscale_tags.outscale_tags.check b/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/step1.outscale_tags.outscale_tags.check new file mode 100644 index 000000000..fe5b2a180 --- /dev/null +++ b/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/step1.outscale_tags.outscale_tags.check @@ -0,0 +1,8 @@ +tags.# +tags.0.key +tags.0.resource_id +tags.0.resource_type +tags.0.value +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/step1.tags_datasource_attributes_ok.tf b/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/step1.tags_datasource_attributes_ok.tf new file mode 100644 index 000000000..750fa5d3a --- /dev/null +++ b/tests/qa_provider_oapi/tags/TF00_tags_datasource_attributes_ok/step1.tags_datasource_attributes_ok.tf @@ -0,0 +1,28 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + tags { + key = "name7" + value = "testDataSource7" + } +} + +resource "outscale_vm" "outscale_vm2" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + tags { + key = "name7" + value = "testDataSource72" + } +} + +data "outscale_tags" "outscale_tags" { + filter { + name = "resource_ids" + values = [outscale_vm.outscale_vm.vm_id, outscale_vm.outscale_vm2.vm_id] + } +} diff --git a/examples/keypair_public_test.pub b/tests/qa_provider_oapi/virtual_gateway/.gitkeep similarity index 100% rename from examples/keypair_public_test.pub rename to tests/qa_provider_oapi/virtual_gateway/.gitkeep diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/.gitkeep b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/step1.outscale_virtual_gateway.outscale_virtual_gateway.check b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/step1.outscale_virtual_gateway.outscale_virtual_gateway.check new file mode 100644 index 000000000..f6e2fde1f --- /dev/null +++ b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/step1.outscale_virtual_gateway.outscale_virtual_gateway.check @@ -0,0 +1,10 @@ +connection_type +state +virtual_gateway_id +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id + diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/step1.virtual_gateway_datasource_attributes_ok.tf b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/step1.virtual_gateway_datasource_attributes_ok.tf new file mode 100644 index 000000000..053316b9f --- /dev/null +++ b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_datasource_attributes_ok/step1.virtual_gateway_datasource_attributes_ok.tf @@ -0,0 +1,11 @@ +resource "outscale_virtual_gateway" "outscale_virtual_gateway" { +connection_type = "ipsec.1" + tags { + key = "name" + value = "test-VGW-1" + } +} + +data "outscale_virtual_gateway" "outscale_virtual_gateway" { + virtual_gateway_id = outscale_virtual_gateway.outscale_virtual_gateway.virtual_gateway_id +} \ No newline at end of file diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/.gitkeep b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..fc6ae301b --- /dev/null +++ b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/origin.txt @@ -0,0 +1,3 @@ +python file: new test +tf file: s step1.virtual_gateway_resource_attributes_ok.tf +check file: step1.outscale_virtual_gateway.outscale_virtual_gateway.check \ No newline at end of file diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/step1.outscale_virtual_gateway.outscale_virtual_gateway.check b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/step1.outscale_virtual_gateway.outscale_virtual_gateway.check new file mode 100644 index 000000000..6014228a2 --- /dev/null +++ b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/step1.outscale_virtual_gateway.outscale_virtual_gateway.check @@ -0,0 +1,9 @@ +connection_type +state +virtual_gateway_id +tags.# +tags.0.key +tags.0.value +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/step1.virtual_gateway_resource_attributes_ok.tf b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/step1.virtual_gateway_resource_attributes_ok.tf new file mode 100644 index 000000000..0d53e8f89 --- /dev/null +++ b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateway_resource_attributes_ok/step1.virtual_gateway_resource_attributes_ok.tf @@ -0,0 +1,7 @@ +resource "outscale_virtual_gateway" "outscale_virtual_gateway" { + connection_type = "ipsec.1" + tags { + key = "name" + value = "test-VGW-1" + } +} \ No newline at end of file diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/.gitkeep b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/step1.outscale_virtual_gateways.outscale_virtual_gateways.check b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/step1.outscale_virtual_gateways.outscale_virtual_gateways.check new file mode 100644 index 000000000..9799034c2 --- /dev/null +++ b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/step1.outscale_virtual_gateways.outscale_virtual_gateways.check @@ -0,0 +1,16 @@ +virtual_gateways.# +virtual_gateways.0.connection_type +virtual_gateways.0.state +virtual_gateways.0.virtual_gateway_id +virtual_gateways.0.tags.# +virtual_gateways.0.tags.0.key +virtual_gateways.0.tags.0.value +virtual_gateways.1.connection_type +virtual_gateways.1.state +virtual_gateways.1.virtual_gateway_id +virtual_gateways.1.tags.# +virtual_gateways.1.tags.0.key +virtual_gateways.1.tags.0.value +request_id +# correctives below +id diff --git a/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/step1.virtual_gateways_datasource_attributes_ok.tf b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/step1.virtual_gateways_datasource_attributes_ok.tf new file mode 100644 index 000000000..cf9eead67 --- /dev/null +++ b/tests/qa_provider_oapi/virtual_gateway/TF00_virtual_gateways_datasource_attributes_ok/step1.virtual_gateways_datasource_attributes_ok.tf @@ -0,0 +1,19 @@ +resource "outscale_virtual_gateway" "outscale_virtual_gateway" { + connection_type = "ipsec.1" + tags { + key = "name" + value = "test-VGW-1" + } +} + +resource "outscale_virtual_gateway" "outscale_virtual_gateway2" { + connection_type = "ipsec.1" + tags { + key = "name" + value = "test-VGW-2" + } +} + +data "outscale_virtual_gateways" "outscale_virtual_gateways" { + virtual_gateway_id = [ outscale_virtual_gateway.outscale_virtual_gateway.virtual_gateway_id, outscale_virtual_gateway.outscale_virtual_gateway2.virtual_gateway_id] +} \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/origin.txt b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/origin.txt new file mode 100644 index 000000000..b9ff287f9 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/origin.txt @@ -0,0 +1,5 @@ + +python file: provider_outscale_oapi/test//outscale_vm/test_outscale_vm_datasource_centos_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_vm/config_outscale_vm_datasource_centos_ok +check file: provider_outscale_oapi/test/outscale_vm/outscale_vm_datasource_centos_attributes.txt +check file: provider_outscale_oapi/test/outscale_vm/outscale_vm_resource_centos_attributes.txt diff --git a/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.outscale_vm.outscale_vm.check b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.outscale_vm.outscale_vm.check new file mode 100644 index 000000000..e24025207 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.outscale_vm.outscale_vm.check @@ -0,0 +1,77 @@ +architecture +block_device_mappings_created.# +block_device_mappings_created.0.bsu.% +block_device_mappings_created.0.bsu.delete_on_vm_deletion +block_device_mappings_created.0.bsu.link_date +block_device_mappings_created.0.bsu.state +block_device_mappings_created.0.bsu.volume_id +block_device_mappings_created.0.device_name +bsu_optimized +client_token +deletion_protection +hypervisor +image_id +is_source_dest_checked +keypair_name +launch_number +net_id +nics +#nics.# +#nics.0.account_id +#nics.0.description +#nics.0.is_source_dest_checked +#nics.0.link_nic.% +#nics.0.link_nic.delete_on_vm_deletion +#nics.0.link_nic.device_number +#nics.0.link_nic.link_nic_id +#nics.0.link_nic.state +#nics.0.link_public_ip.# +#nics.0.link_public_ip.public_dns_name +#nics.0.link_public_ip.public_ip +#nics.0.link_public_ip.public_ip_account_id +#nics.0.mac_address +#nics.0.net_id +#nics.0.nic_id +#nics.0.private_dns_name +#nics.0.private_ips.# +#nics.0.private_ips.0.is_primary +#nics.0.private_ips.0.link_public_ip.% +#nics.0.private_ips.0.link_public_ip.public_dns_name +#nics.0.private_ips.0.link_public_ip.public_ip +#nics.0.private_ips.0.link_public_ip.public_ip_account_id +#nics.0.private_ips.0.private_dns_name +#nics.0.private_ips.0.private_ip +#nics.0.security_groups.# +#nics.0.security_groups.0.security_group_id +#nics.0.security_groups.0.security_group_name +#nics.0.state +#nics.0.subnet_id +os_family +#placement.% +placement_subregion_name +placement_tenancy +private_dns_name +private_ip +product_codes.# +product_codes.0 +public_dns_name +public_ip +reservation_id +root_device_name +root_device_type +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +state_reason +subnet_id +tags.# +tags.0.key +tags.0.value +user_data +vm_id +vm_initiated_shutdown_behavior +vm_type +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.outscale_vm.outscale_vm_centos.check b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.outscale_vm.outscale_vm_centos.check new file mode 100644 index 000000000..bbe3e2459 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.outscale_vm.outscale_vm_centos.check @@ -0,0 +1,86 @@ +admin_password +architecture +block_device_mappings_created.# +block_device_mappings_created.0.bsu.% +block_device_mappings_created.0.bsu.delete_on_vm_deletion +block_device_mappings_created.0.bsu.link_date +block_device_mappings_created.0.bsu.state +block_device_mappings_created.0.bsu.volume_id +block_device_mappings_created.0.device_name +# block_device_mappings for second device of "ami-4acf7526" +#block_device_mappings.1.bsu.% +#block_device_mappings.1.bsu.delete_on_vm_deletion +#block_device_mappings.1.bsu.link_date +#block_device_mappings.1.bsu.state +#block_device_mappings.1.bsu.volume_id +#block_device_mappings.1.device_name +bsu_optimized +client_token +deletion_protection +hypervisor +image_id +is_source_dest_checked +keypair_name +launch_number +net_id +nics +#nics.# +#nics.0.account_id +#nics.0.description +#nics.0.is_source_dest_checked +#nics.0.link_nic.% +#nics.0.link_nic.delete_on_vm_deletion +#nics.0.link_nic.device_number +#nics.0.link_nic.link_nic_id +#nics.0.link_nic.state +#nics.0.link_public_ip.% +#nics.0.link_public_ip.public_dns_name +#nics.0.link_public_ip.public_ip +#nics.0.link_public_ip.public_ip_account_id +#nics.0.mac_address +#nics.0.net_id +#nics.0.nic_id +#nics.0.private_dns_name +#nics.0.private_ips.# +#nics.0.private_ips.0.is_primary +#nics.0.private_ips.0.link_public_ip.% +#nics.0.private_ips.0.link_public_ip.public_dns_name +#nics.0.private_ips.0.link_public_ip.public_ip +#nics.0.private_ips.0.link_public_ip.public_ip_account_id +#nics.0.private_ips.0.private_dns_name +#nics.0.private_ips.0.private_ip +#nics.0.security_groups.# +#nics.0.security_groups.0.security_group_id +#nics.0.security_groups.0.security_group_name +#nics.0.state +#nics.0.subnet_id +os_family +performance +#placement.% +placement_subregion_name +placement_tenancy +private_dns_name +private_ip +product_codes.# +product_codes.0 +public_dns_name +public_ip +reservation_id +root_device_name +root_device_type +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +state_reason +subnet_id +tags.# +tags.0.key +tags.0.value +user_data +vm_id +vm_initiated_shutdown_behavior +vm_type +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.vm_datasource_centos_ok.tf b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.vm_datasource_centos_ok.tf new file mode 100644 index 000000000..462b5041e --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_datasource_centos_attributes_ok/step1.vm_datasource_centos_ok.tf @@ -0,0 +1,60 @@ +resource "outscale_vm" "outscale_vm_centos" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_names = [var.security_group_name] + tags { + key = "name" + value ="test-VM-tag" + } +} + +data "outscale_vm" "outscale_vm" { + filter { + name = "vm_ids" + #values = [outscale_vm.outscale_vm_centos.id] + values = [outscale_vm.outscale_vm_centos.vm_id] + #vm_id = outscale_vm.outscale_vm_centos.vm.0.vm_id + #vm_id = outscale_vm.outscale_vm_centos.vm.0.id + } +} + +resource "outscale_vm" "outscale_vm_centos2" { + count = 2 + + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + tags { + key = "name" + value ="test-VM-tag-2" + } +} + +data "outscale_vm" "outscale_vm_centos2_0" { + filter { + name = "vm_ids" + #values = [outscale_vm.outscale_vm_centos2.0.vm_id] + values = [outscale_vm.outscale_vm_centos2.*.vm_id[0]] + } +} + +data "outscale_vm" "outscale_vm_centos2_1" { + filter { + name = "vm_ids" + #values = [outscale_vm.outscale_vm_centos2.1.vm_id] + values = [outscale_vm.outscale_vm_centos2.*.vm_id[1]] + } +} + +# TODO +# Not yet adapted to oAPI + +#output "datasource_arch" { +# value = data.outscale_vm.outscale_vm.instances_set.0.architecture +#} + +#output "datasource_network" { +# value = data.outscale_vm.outscale_vm.instances_set.0.network_interface_set.0.network_interface_id +#} diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/origin.txt b/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/origin.txt new file mode 100644 index 000000000..f8aca0829 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_vm/test_outscale_vm_resource_centos_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_vm/config_outscale_vm_resource_centos_ok +check file: provider_outscale_oapi/test/outscale_vm/outscale_vm_resource_centos_attributes.txt diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/step1.outscale_vm.outscale_vm.check b/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/step1.outscale_vm.outscale_vm.check new file mode 100644 index 000000000..ebd99f538 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/step1.outscale_vm.outscale_vm.check @@ -0,0 +1,85 @@ +admin_password +architecture +block_device_mappings_created.# +block_device_mappings_created.0.bsu.% +block_device_mappings_created.0.bsu.delete_on_vm_deletion +block_device_mappings_created.0.bsu.link_date +block_device_mappings_created.0.bsu.state +block_device_mappings_created.0.bsu.volume_id +block_device_mappings_created.0.device_name +# block_device_mappings for second device of "ami-4acf7526" +#block_device_mappings.1.bsu.% +#block_device_mappings.1.bsu.delete_on_vm_deletion +#block_device_mappings.1.bsu.link_date +#block_device_mappings.1.bsu.state +#block_device_mappings.1.bsu.volume_id +#block_device_mappings.1.device_name +bsu_optimized +client_token +deletion_protection +hypervisor +image_id +is_source_dest_checked +keypair_name +launch_number +net_id +nics.# +nics.0.account_id +nics.0.description +nics.0.is_source_dest_checked +nics.0.link_nic.% +nics.0.link_nic.delete_on_vm_deletion +nics.0.link_nic.device_number +nics.0.link_nic.link_nic_id +nics.0.link_nic.state +nics.0.link_public_ip.% +nics.0.link_public_ip.public_dns_name +nics.0.link_public_ip.public_ip +nics.0.link_public_ip.public_ip_account_id +nics.0.mac_address +nics.0.net_id +nics.0.nic_id +nics.0.private_dns_name +nics.0.private_ips.# +nics.0.private_ips.0.is_primary +nics.0.private_ips.0.link_public_ip.% +nics.0.private_ips.0.link_public_ip.public_dns_name +nics.0.private_ips.0.link_public_ip.public_ip +nics.0.private_ips.0.link_public_ip.public_ip_account_id +nics.0.private_ips.0.private_dns_name +nics.0.private_ips.0.private_ip +nics.0.security_groups.# +nics.0.security_groups.0.security_group_id +nics.0.security_groups.0.security_group_name +nics.0.state +nics.0.subnet_id +os_family +performance +#placement.% +placement_subregion_name +placement_tenancy +private_dns_name +private_ip +product_codes.# +product_codes.0 +public_dns_name +public_ip +reservation_id +root_device_name +root_device_type +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +state_reason +subnet_id +tags.# +tags.0.key +tags.0.value +user_data +vm_id +vm_initiated_shutdown_behavior +vm_type +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/step1.vm_resource_centos_ok.tf b/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/step1.vm_resource_centos_ok.tf new file mode 100644 index 000000000..c74a9c31d --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_centos_attributes_ok/step1.vm_resource_centos_ok.tf @@ -0,0 +1,129 @@ +resource "outscale_vm" "outscale_vm1" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + placement_subregion_name = format("%s%s", var.region, "a") + placement_tenancy = "default" + tags { + key = "name" + value = "outscale_vm" + } +} + +resource "outscale_vm" "outscale_vm2" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_names = [var.security_group_name] + # nok_for_test_only security_group_ids = [var.security_group_id] + placement_subregion_name = format("%s%s", var.region, "a") + placement_tenancy = "default" + tags { + key = "name" + value = "outscale_vm2" + } +} + +# next next replaces vm_attributes one +#TODO + +# vm in net + +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" + + tags { + key = "name" + value = "Terraform_net" + } +} + +resource "outscale_subnet" "outscale_subnet" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.0.0/24" + subregion_name = "eu-west-2b" + + tags { + key = "name" + value = "Terraform_subnet" + } +} + +resource "outscale_security_group" "outscale_sg" { + description = "sg for terraform tests" + security_group_name = "terraform-sg" + net_id = outscale_net.outscale_net.net_id + tags { + key = "name" + value = "outscale_sg" + } +} + +#resource "outscale_security_group_rule" "outscale_security_group_rule" { +# flow = "Inbound" +# security_group_id = outscale_security_group.outscale_sg.security_group_id +# from_port_range = "22" +# to_port_range = "22" +# ip_protocol = "tcp" +# ip_range = var.my_ip +# +# +#} + + +resource "outscale_internet_service" "outscale_internet_service" { +tags { + key = "name" + value = "outscale_internet_service" + } +} + +resource "outscale_route_table" "outscale_route_table" { + net_id = outscale_net.outscale_net.net_id + + tags { + key = "name" + value = "Terraform_RT" + } +} + +resource "outscale_route_table_link" "outscale_route_table_link" { + route_table_id = outscale_route_table.outscale_route_table.route_table_id + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +resource "outscale_internet_service_link" "outscale_internet_service_link" { + internet_service_id = outscale_internet_service.outscale_internet_service.internet_service_id + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_route" "outscale_route" { + gateway_id = outscale_internet_service.outscale_internet_service.internet_service_id + destination_ip_range = "0.0.0.0/0" + route_table_id = outscale_route_table.outscale_route_table.route_table_id +} + +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = "t2.nano" + keypair_name = var.keypair_name + security_group_ids = [outscale_security_group.outscale_sg.security_group_id] + subnet_id = outscale_subnet.outscale_subnet.subnet_id + tags { + key = "name" + value = "VM Net" + } +} + +resource "outscale_public_ip" "outscale_public_ip" { +tags { + key = "name" + value = "outscale_public_ip" + } +} + +resource "outscale_public_ip_link" "outscale_public_ip_link" { + vm_id = outscale_vm.outscale_vmnet.vm_id + public_ip = outscale_public_ip.outscale_public_ip.public_ip +} diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/.gitkeep b/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/step1.outscale_vm.outscale_vm.check b/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/step1.outscale_vm.outscale_vm.check new file mode 100644 index 000000000..c1cd05c35 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/step1.outscale_vm.outscale_vm.check @@ -0,0 +1,114 @@ +admin_password +architecture +block_device_mappings_created.# +block_device_mappings_created.0.bsu.% +block_device_mappings_created.0.bsu.delete_on_vm_deletion +block_device_mappings_created.0.bsu.link_date +block_device_mappings_created.0.bsu.state +block_device_mappings_created.0.bsu.volume_id +block_device_mappings_created.0.device_name +#block_device_mappings for second device of "ami-4acf7526" +#block_device_mappings.1.bsu.% +#block_device_mappings.1.bsu.delete_on_vm_deletion +#block_device_mappings.1.bsu.link_date +#block_device_mappings.1.bsu.state +#block_device_mappings.1.bsu.volume_id +#block_device_mappings.1.device_name +bsu_optimized +client_token +deletion_protection +hypervisor +image_id +is_source_dest_checked +keypair_name +launch_number +net_id +nics.# +nics.0.account_id +nics.0.description +nics.0.is_source_dest_checked +nics.0.link_nic.% +nics.0.link_nic.delete_on_vm_deletion +nics.0.link_nic.device_number +nics.0.link_nic.link_nic_id +nics.0.link_nic.state +nics.0.link_public_ip.% +nics.0.link_public_ip.public_dns_name +nics.0.link_public_ip.public_ip +nics.0.link_public_ip.public_ip_account_id +nics.0.mac_address +nics.0.net_id +nics.0.nic_id +nics.0.private_dns_name +nics.0.private_ips.# +nics.0.private_ips.0.is_primary +nics.0.private_ips.0.link_public_ip.% +nics.0.private_ips.0.link_public_ip.public_dns_name +nics.0.private_ips.0.link_public_ip.public_ip +nics.0.private_ips.0.link_public_ip.public_ip_account_id +nics.0.private_ips.0.private_dns_name +nics.0.private_ips.0.private_ip +nics.0.security_groups.# +nics.0.security_groups.0.security_group_id +nics.0.security_groups.0.security_group_name +nics.0.state +nics.0.subnet_id +nics.1.account_id +nics.1.description +nics.1.is_source_dest_checked +nics.1.link_nic.% +nics.1.link_nic.delete_on_vm_deletion +nics.1.link_nic.device_number +nics.1.link_nic.link_nic_id +nics.1.link_nic.state +nics.1.link_public_ip.% +nics.1.link_public_ip.public_dns_name +nics.1.link_public_ip.public_ip +nics.1.link_public_ip.public_ip_account_id +nics.1.mac_address +nics.1.net_id +nics.1.nic_id +nics.1.private_dns_name +nics.1.private_ips.# +nics.1.private_ips.0.is_primary +nics.1.private_ips.0.link_public_ip.% +nics.1.private_ips.0.link_public_ip.public_dns_name +nics.1.private_ips.0.link_public_ip.public_ip +nics.1.private_ips.0.link_public_ip.public_ip_account_id +nics.1.private_ips.0.private_dns_name +nics.1.private_ips.0.private_ip +nics.1.security_groups.# +nics.1.security_groups.0.security_group_id +nics.1.security_groups.0.security_group_name +nics.1.state +nics.1.subnet_id +os_family +performance +#placement.% +placement_subregion_name +placement_tenancy +private_dns_name +private_ip +product_codes.# +product_codes.0 +public_dns_name +public_ip +reservation_id +root_device_name +root_device_type +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +state_reason +subnet_id +tags.# +tags.0.key +tags.0.value +user_data +vm_id +vm_initiated_shutdown_behavior +vm_type +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/step1.vm_resource_private_with_multiple_NICs_ok.tf b/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/step1.vm_resource_private_with_multiple_NICs_ok.tf new file mode 100644 index 000000000..e9374c42c --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_private_with_multiple_NICs_attributes_ok/step1.vm_resource_private_with_multiple_NICs_ok.tf @@ -0,0 +1,52 @@ +## Test Private VM with multiple NICs ## + +resource "outscale_net" "outscale_net" { + ip_range = "10.0.0.0/16" +} + +resource "outscale_subnet" "outscale_subnet" { + net_id = outscale_net.outscale_net.net_id + ip_range = "10.0.0.0/24" + subregion_name = "eu-west-2a" +} + +resource "outscale_security_group" "outscale_security_group" { + description = "test vm with nic" + security_group_name = "private-sg-1" + net_id = outscale_net.outscale_net.net_id +} + +resource "outscale_security_group" "outscale_security_group2" { + description = "test vm with nic" + security_group_name = "private-sg-2" + net_id = outscale_net.outscale_net.net_id +} + + +resource "outscale_nic" "outscale_nic" { + subnet_id = outscale_subnet.outscale_subnet.subnet_id +} + +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + nics { + subnet_id = outscale_subnet.outscale_subnet.subnet_id + security_group_ids = [outscale_security_group.outscale_security_group.security_group_id] + private_ips { + private_ip ="10.0.0.123" + is_primary = true + } + device_number = "0" + delete_on_vm_deletion = true + } + nics { + nic_id =outscale_nic.outscale_nic.nic_id + device_number = "1" + } + tags { + key = "name" + value = "test-VM-with-Nics" + } + } \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/.gitkeep b/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/origin.txt b/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/origin.txt new file mode 100644 index 000000000..fdc91d6b2 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/origin.txt @@ -0,0 +1,3 @@ +python file: new test +tf file: step1.vm_resource_public_with_multiple_BDM_ok.tf +check file: step1.outscale_vm.outscale_vm.check \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/step1.outscale_vm.outscale_vm.check b/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/step1.outscale_vm.outscale_vm.check new file mode 100644 index 000000000..789a839f2 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/step1.outscale_vm.outscale_vm.check @@ -0,0 +1,85 @@ +admin_password +architecture +block_device_mappings_created.# +block_device_mappings_created.0.bsu.% +block_device_mappings_created.0.bsu.delete_on_vm_deletion +block_device_mappings_created.0.bsu.link_date +block_device_mappings_created.0.bsu.state +block_device_mappings_created.0.bsu.volume_id +block_device_mappings_created.0.device_name +block_device_mappings for second device of "ami-4acf7526" +block_device_mappings.1.bsu.% +block_device_mappings.1.bsu.delete_on_vm_deletion +block_device_mappings.1.bsu.link_date +block_device_mappings.1.bsu.state +block_device_mappings.1.bsu.volume_id +block_device_mappings.1.device_name +bsu_optimized +client_token +deletion_protection +hypervisor +image_id +is_source_dest_checked +keypair_name +launch_number +net_id +#nics.# +#nics.0.account_id +#nics.0.description +#nics.0.is_source_dest_checked +#nics.0.link_nic.% +#nics.0.link_nic.delete_on_vm_deletion +#nics.0.link_nic.device_number +#nics.0.link_nic.link_nic_id +#nics.0.link_nic.state +#nics.0.link_public_ip.% +#nics.0.link_public_ip.public_dns_name +#nics.0.link_public_ip.public_ip +#nics.0.link_public_ip.public_ip_account_id +#nics.0.mac_address +#nics.0.net_id +#nics.0.nic_id +#nics.0.private_dns_name +#nics.0.private_ips.# +#nics.0.private_ips.0.is_primary +#nics.0.private_ips.0.link_public_ip.% +#nics.0.private_ips.0.link_public_ip.public_dns_name +#nics.0.private_ips.0.link_public_ip.public_ip +#nics.0.private_ips.0.link_public_ip.public_ip_account_id +#nics.0.private_ips.0.private_dns_name +#nics.0.private_ips.0.private_ip +#nics.0.security_groups.# +#nics.0.security_groups.0.security_group_id +#nics.0.security_groups.0.security_group_name +#nics.0.state +#nics.0.subnet_id +os_family +performance +#placement.% +placement_subregion_name +placement_tenancy +private_dns_name +private_ip +product_codes.# +product_codes.0 +public_dns_name +public_ip +reservation_id +root_device_name +root_device_type +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +state_reason +subnet_id +tags.# +tags.0.key +tags.0.value +user_data +vm_id +vm_initiated_shutdown_behavior +vm_type +request_id +#correctives below +id diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/step1.vm_resource_public_with_multiple_BDM_ok.tf b/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/step1.vm_resource_public_with_multiple_BDM_ok.tf new file mode 100644 index 000000000..63e5427f6 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_public_with_BDM_attributes_ok/step1.vm_resource_public_with_multiple_BDM_ok.tf @@ -0,0 +1,29 @@ +## Test Public VM with Block Device Mapping with multiple volumes ## + +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + block_device_mappings { + device_name = "/dev/sdb" + bsu = { + volume_size=15 + volume_type = "gp2" + snapshot_id = var.snapshot_id + } + } + block_device_mappings { + device_name = "/dev/sdc" + bsu = { + volume_size=22 + volume_type = "io1" + iops = 150 + snapshot_id = var.snapshot_id + delete_on_vm_deletion = true + } + } + tags { + key = "name" + value = "VM with multiple BDM" + } +} \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/.gitkeep b/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/step1.outscale_vm.outscale_vm.check b/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/step1.outscale_vm.outscale_vm.check new file mode 100644 index 000000000..9fcf4c2d4 --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/step1.outscale_vm.outscale_vm.check @@ -0,0 +1,78 @@ +admin_password +architecture +block_device_mappings_created.# +block_device_mappings_created.0.bsu.% +block_device_mappings_created.0.bsu.delete_on_vm_deletion +block_device_mappings_created.0.bsu.link_date +block_device_mappings_created.0.bsu.state +block_device_mappings_created.0.bsu.volume_id +block_device_mappings_created.0.device_name +bsu_optimized +client_token +deletion_protection +hypervisor +image_id +is_source_dest_checked +keypair_name +launch_number +net_id +nics.# +nics.0.account_id +nics.0.description +nics.0.is_source_dest_checked +nics.0.link_nic.% +nics.0.link_nic.delete_on_vm_deletion +nics.0.link_nic.device_number +nics.0.link_nic.link_nic_id +nics.0.link_nic.state +nics.0.link_public_ip.% +nics.0.link_public_ip.public_dns_name +nics.0.link_public_ip.public_ip +nics.0.link_public_ip.public_ip_account_id +nics.0.mac_address +nics.0.net_id +nics.0.nic_id +nics.0.private_dns_name +nics.0.private_ips.# +nics.0.private_ips.0.is_primary +nics.0.private_ips.0.link_public_ip.% +nics.0.private_ips.0.link_public_ip.public_dns_name +nics.0.private_ips.0.link_public_ip.public_ip +nics.0.private_ips.0.link_public_ip.public_ip_account_id +nics.0.private_ips.0.private_dns_name +nics.0.private_ips.0.private_ip +nics.0.security_groups.# +nics.0.security_groups.0.security_group_id +nics.0.security_groups.0.security_group_name +nics.0.state +nics.0.subnet_id +os_family +performance +#placement.% +placement_subregion_name +placement_tenancy +private_dns_name +private_ip +product_codes.# +product_codes.0 +public_dns_name +public_ip +reservation_id +root_device_name +root_device_type +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +state_reason +subnet_id +tags.# +tags.0.key +tags.0.value +user_data +vm_id +vm_initiated_shutdown_behavior +vm_type +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/step1.vm_resource_with_user_data_ok.tf b/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/step1.vm_resource_with_user_data_ok.tf new file mode 100644 index 000000000..75f597d8b --- /dev/null +++ b/tests/qa_provider_oapi/vm/TF00_vm_resource_with_user_data_attributes_ok/step1.vm_resource_with_user_data_ok.tf @@ -0,0 +1,12 @@ +## Test Private VM with user_data "private_only" ## +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + user_data = "LS0tLS1CRUdJTiBPVVRTQ0FMRSBTRUNUSU9OLS0tLS0KCnByaXZhdGVfb25seT10cnVlCgotLS0tLUVORCBPVVRTQ0FMRSBTRUNUSU9OLS0tLS0=" + security_group_names = [var.security_group_name] + tags { + key = "name" + value = "test-VM-with-Nics" + } + } diff --git a/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/origin.txt b/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/origin.txt new file mode 100644 index 000000000..83c988e7f --- /dev/null +++ b/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_vm_attributes/test_outscale_vm_attributes_resource_centos_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_vm_attributes/config_outscale_vm_attributes_resource_centos_attributes_ok +check file: provider_outscale_oapi/test/outscale_vm_attributes/outscale_vm_attributes_resource_centos_attributes.txt diff --git a/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/step1.outscale_vm_attributes.outscale_vm_attributes.check b/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/step1.outscale_vm_attributes.outscale_vm_attributes.check new file mode 100644 index 000000000..cbdc6c47d --- /dev/null +++ b/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/step1.outscale_vm_attributes.outscale_vm_attributes.check @@ -0,0 +1,75 @@ +architecture +block_device_mappings.# +block_device_mappings.0.bsu.% +block_device_mappings.0.bsu.delete_on_vm_deletion +block_device_mappings.0.bsu.link_date +block_device_mappings.0.bsu.state +block_device_mappings.0.bsu.volume_id +block_device_mappings.0.device_name +bsu_optimized +client_token +deletion_protection +hypervisor +image_id +is_source_dest_checked +keypair_name +launch_number +net_id +nics.# +nics.0.account_id +nics.0.description +nics.0.is_source_dest_checked +nics.0.link_nic.% +nics.0.link_nic.delete_on_vm_deletion +nics.0.link_nic.device_number +nics.0.link_nic.link_nic_id +nics.0.link_nic.state +nics.0.link_public_ip.% +nics.0.link_public_ip.public_dns_name +nics.0.link_public_ip.public_ip +nics.0.link_public_ip.public_ip_account_id +nics.0.mac_address +nics.0.net_id +nics.0.nic_id +nics.0.private_dns_name +nics.0.private_ips.# +nics.0.private_ips.0.is_primary +nics.0.private_ips.0.link_public_ip.% +nics.0.private_ips.0.link_public_ip.public_dns_name +nics.0.private_ips.0.link_public_ip.public_ip +nics.0.private_ips.0.link_public_ip.public_ip_account_id +nics.0.private_ips.0.private_dns_name +nics.0.private_ips.0.private_ip +nics.0.security_groups.# +nics.0.security_groups.0.security_group_id +nics.0.security_groups.0.security_group_name +nics.0.state +nics.0.subnet_id +os_family +#placement.% +placement_subregion_name +placement_tenancy +private_dns_name +private_ip +product_codes.# +public_dns_name +public_ip +reservation_id +root_device_name +root_device_type +security_groups.# +security_groups.0.security_group_id +security_groups.0.security_group_name +state +state_reason +subnet_id +tags.# +tags.0.key +tags.0.value +user_data +vm_id +vm_initiated_shutdown_behavior +vm_type +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/step1.vm_attributes_resource_centos_attributes_ok.tf b/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/step1.vm_attributes_resource_centos_attributes_ok.tf new file mode 100644 index 000000000..ba07fe306 --- /dev/null +++ b/tests/qa_provider_oapi/vm_attributes/TF00_vm_attributes_resource_centos_attributes_ok/step1.vm_attributes_resource_centos_attributes_ok.tf @@ -0,0 +1,12 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + deletion_protection = true +} + +resource "outscale_vm_attributes" "outscale_vm_attributes" { + vm_id = outscale_vm.outscale_vm.vm_id + deletion_protection = false +} diff --git a/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/origin.txt b/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/origin.txt new file mode 100644 index 000000000..d1a91abdb --- /dev/null +++ b/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_vm_state/test_outscale_vm_state_datasource_centos_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_vm_state/config_outscale_vm_state_datasource_centos_attributes_ok +check file: provider_outscale_oapi/test/outscale_vm_state/outscale_vm_state_datasource_centos_attributes.txt diff --git a/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/step1.outscale_vm_state.outscale_vm_state.check b/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/step1.outscale_vm_state.outscale_vm_state.check new file mode 100644 index 000000000..40f6ddb03 --- /dev/null +++ b/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/step1.outscale_vm_state.outscale_vm_state.check @@ -0,0 +1,11 @@ +maintenance_events +#maintenance_events.0.code +#maintenance_events.0.description +#maintenance_events.0.not_after +#maintenance_events.0.not_before +subregion_name +vm_id +vm_state +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/step1.vm_state_datasource_centos_attributes_ok.tf b/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/step1.vm_state_datasource_centos_attributes_ok.tf new file mode 100644 index 000000000..2b9647a24 --- /dev/null +++ b/tests/qa_provider_oapi/vm_state/TF00_vm_state_datasource_centos_attributes_ok/step1.vm_state_datasource_centos_attributes_ok.tf @@ -0,0 +1,15 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] + #placement_subregion_name = format("%s%s", var.region, "a") + #placement_tenancy = "default" +} + +data "outscale_vm_state" "outscale_vm_state" { + filter { + name = "vm_ids" + values = [outscale_vm.outscale_vm.vm_id] + } +} diff --git a/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..48fa16b7a --- /dev/null +++ b/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_vms/test_outscale_vms_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_vms/config_outscale_vms_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_vms/outscale_vms_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/step1.outscale_vms.outscale_vms.check b/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/step1.outscale_vms.outscale_vms.check new file mode 100644 index 000000000..a68c168d8 --- /dev/null +++ b/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/step1.outscale_vms.outscale_vms.check @@ -0,0 +1,148 @@ +vms.# +vms.0.architecture +vms.0.block_device_mappings_created.# +vms.0.block_device_mappings_created.0.bsu.% +vms.0.block_device_mappings_created.0.bsu.delete_on_vm_deletion +vms.0.block_device_mappings_created.0.bsu.link_date +vms.0.block_device_mappings_created.0.bsu.state +vms.0.block_device_mappings_created.0.bsu.volume_id +vms.0.block_device_mappings_created.0.device_name +vms.0.bsu_optimized +vms.0.client_token +vms.0.deletion_protection +vms.0.hypervisor +vms.0.image_id +vms.0.is_source_dest_checked +vms.0.keypair_name +vms.0.launch_number +vms.0.net_id +vms.0.nics +#vms.0.nics.0.account_id +#vms.0.nics.0.description +#vms.0.nics.0.is_source_dest_checked +#vms.0.nics.0.link_nic.% +#vms.0.nics.0.link_nic.delete_on_vm_deletion +#vms.0.nics.0.link_nic.device_number +#vms.0.nics.0.link_nic.link_nic_id +#vms.0.nics.0.link_nic.state +#vms.0.nics.0.link_public_ip.% +#vms.0.nics.0.link_public_ip.public_dns_name +#vms.0.nics.0.link_public_ip.public_ip +#vms.0.nics.0.link_public_ip.public_ip_account_id +#vms.0.nics.0.mac_address +#vms.0.nics.0.net_id +#vms.0.nics.0.nic_id +#vms.0.nics.0.private_dns_name +#vms.0.nics.0.private_ips.# +#vms.0.nics.0.private_ips.0.is_primary +#vms.0.nics.0.private_ips.0.link_public_ip.% +#vms.0.nics.0.private_ips.0.link_public_ip.public_dns_name +#vms.0.nics.0.private_ips.0.link_public_ip.public_ip +#vms.0.nics.0.private_ips.0.link_public_ip.public_ip_account_id +#vms.0.nics.0.private_ips.0.private_dns_name +#vms.0.nics.0.private_ips.0.private_ip +#vms.0.nics.0.security_groups.# +#vms.0.nics.0.security_groups.0.security_group_id +#vms.0.nics.0.security_groups.0.security_group_name +#vms.0.nics.0.state +#vms.0.nics.0.subnet_id +vms.0.os_family +vms.0.placement_subregion_name +vms.0.placement_tenancy +vms.0.private_dns_name +vms.0.private_ip +vms.0.product_codes.# +vms.0.product_codes.0 +vms.0.public_dns_name +vms.0.public_ip +vms.0.reservation_id +vms.0.root_device_name +vms.0.root_device_type +vms.0.security_groups.# +vms.0.security_groups.0.security_group_id +vms.0.security_groups.0.security_group_name +vms.0.state +vms.0.state_reason +vms.0.subnet_id +vms.0.tags.# +vms.0.tags.0.key +vms.0.tags.0.value +vms.0.user_data +vms.0.vm_id +vms.0.vm_initiated_shutdown_behavior +vms.0.vm_type +vms.1.architecture +vms.1.block_device_mappings_created.# +vms.1.block_device_mappings_created.0.bsu.% +vms.1.block_device_mappings_created.0.bsu.delete_on_vm_deletion +vms.1.block_device_mappings_created.0.bsu.link_date +vms.1.block_device_mappings_created.0.bsu.state +vms.1.block_device_mappings_created.0.bsu.volume_id +vms.1.block_device_mappings_created.0.device_name +vms.1.bsu_optimized +vms.1.client_token +vms.1.deletion_protection +vms.1.hypervisor +vms.1.image_id +vms.1.is_source_dest_checked +vms.1.keypair_name +vms.1.launch_number +vms.1.net_id +vms.1.nics +#vms.1.nics.0.account_id +#vms.1.nics.0.description +#vms.1.nics.0.is_source_dest_checked +#vms.1.nics.0.link_nic.% +#vms.1.nics.0.link_nic.delete_on_vm_deletion +#vms.1.nics.0.link_nic.device_number +#vms.1.nics.0.link_nic.link_nic_id +#vms.1.nics.0.link_nic.state +#vms.1.nics.0.link_public_ip.% +#vms.1.nics.0.link_public_ip.public_dns_name +#vms.1.nics.0.link_public_ip.public_ip +#vms.1.nics.0.link_public_ip.public_ip_account_id +#vms.1.nics.0.mac_address +#vms.1.nics.0.net_id +#vms.1.nics.0.nic_id +#vms.1.nics.0.private_dns_name +#vms.1.nics.0.private_ips.# +#vms.1.nics.0.private_ips.0.is_primary +#vms.1.nics.0.private_ips.0.link_public_ip.% +#vms.1.nics.0.private_ips.0.link_public_ip.public_dns_name +#vms.1.nics.0.private_ips.0.link_public_ip.public_ip +#vms.1.nics.0.private_ips.0.link_public_ip.public_ip_account_id +#vms.1.nics.0.private_ips.0.private_dns_name +#vms.1.nics.0.private_ips.0.private_ip +#vms.1.nics.0.security_groups.# +#vms.1.nics.0.security_groups.0.security_group_id +#vms.1.nics.0.security_groups.0.security_group_name +#vms.1.nics.0.state +#vms.1.nics.0.subnet_id +vms.1.os_family +vms.1.placement_subregion_name +vms.1.placement_tenancy +vms.1.private_dns_name +vms.1.private_ip +vms.1.product_codes.# +vms.1.product_codes.0 +vms.1.public_dns_name +vms.1.public_ip +vms.1.reservation_id +vms.1.root_device_name +vms.1.root_device_type +vms.1.security_groups.# +vms.1.security_groups.0.security_group_id +vms.1.security_groups.0.security_group_name +vms.1.state +vms.1.state_reason +vms.1.subnet_id +vms.1.tags.# +vms.1.tags.0.key +vms.1.tags.0.value +vms.1.user_data +vms.1.vm_id +vms.1.vm_initiated_shutdown_behavior +vms.1.vm_type +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/step1.vms_datasource_attributes_ok.tf b/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/step1.vms_datasource_attributes_ok.tf new file mode 100644 index 000000000..05fd829c4 --- /dev/null +++ b/tests/qa_provider_oapi/vms/TF00_vms_datasource_attributes_ok/step1.vms_datasource_attributes_ok.tf @@ -0,0 +1,17 @@ +resource "outscale_vm" "outscale_vm_centos" { + count = 2 # plus testWebsite one already created + + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +data "outscale_vms" "outscale_vms" { + depends_on =["outscale_vm.outscale_vm_centos"] + + filter { + name = "vm_ids" + values = [outscale_vm.outscale_vm_centos.0.vm_id,outscale_vm.outscale_vm_centos.1.vm_id] + } +} diff --git a/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/origin.txt b/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/origin.txt new file mode 100644 index 000000000..6476c17ad --- /dev/null +++ b/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_vms_state/test_outscale_vms_state_datasource_centos_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_vms_state/config_outscale_vms_state_datasource_centos_attributes_ok +check file: provider_outscale_oapi/test/outscale_vms_state/outscale_vms_state_datasource_centos_attributes.txt diff --git a/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/step1.outscale_vms_state.outscale_vms_state.check b/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/step1.outscale_vms_state.outscale_vms_state.check new file mode 100644 index 000000000..942f9a9c3 --- /dev/null +++ b/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/step1.outscale_vms_state.outscale_vms_state.check @@ -0,0 +1,20 @@ +vm_states.# +vm_states.0.maintenance_events +#vm_states.0.maintenance_events.0.code +#vm_states.0.maintenance_events.0.description +#vm_states.0.maintenance_events.0.not_after +#vm_states.0.maintenance_events.0.not_before +vm_states.0.subregion_name +vm_states.0.vm_id +vm_states.0.vm_state +vm_states.1.maintenance_events +#vm_states.1.maintenance_events.0.code +#vm_states.1.maintenance_events.0.description +#vm_states.1.maintenance_events.0.not_after +#vm_states.1.maintenance_events.0.not_before +vm_states.1.subregion_name +vm_states.1.vm_id +vm_states.1.vm_state +request_id +#correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/step1.vms_state_datasource_centos_attributes_ok.tf b/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/step1.vms_state_datasource_centos_attributes_ok.tf new file mode 100644 index 000000000..99a871bcf --- /dev/null +++ b/tests/qa_provider_oapi/vms_state/TF00_vms_state_datasource_centos_attributes_ok/step1.vms_state_datasource_centos_attributes_ok.tf @@ -0,0 +1,20 @@ +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_vm" "outscale_vm2" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +data "outscale_vms_state" "outscale_vms_state" { + filter { + name = "vm_ids" + values = [outscale_vm.outscale_vm.vm_id, outscale_vm.outscale_vm2.vm_id] + } +} diff --git a/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..2a8ceb57d --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volume/test_outscale_volume_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_volume/config_outscale_volume_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_volume/outscale_volume_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/step1.outscale_volume.outscale_volume.check b/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/step1.outscale_volume.outscale_volume.check new file mode 100644 index 000000000..44f1be812 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/step1.outscale_volume.outscale_volume.check @@ -0,0 +1,19 @@ +iops +linked_volumes +#linked_volumes.0.delete_on_vm_deletion +#linked_volumes.0.device_name +#linked_volumes.0.state +#linked_volumes.0.vm_id +#linked_volumes.0.volume_id +size +snapshot_id +state +subregion_name +tags.# +#tags.0.key +#tags.0.value +volume_id +volume_type +request_id +# correctives +id diff --git a/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/step1.volume_datasource_attributes_ok.tf b/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/step1.volume_datasource_attributes_ok.tf new file mode 100644 index 000000000..9dec62d02 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_datasource_attributes_ok/step1.volume_datasource_attributes_ok.tf @@ -0,0 +1,17 @@ +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + iops = 100 + volume_type = "io1" + tags { + key ="name" + value = "test-Volume" + } +} + +data "outscale_volume" "outscale_volume" { + filter { + name = "volume_ids" + values = [outscale_volume.outscale_volume.volume_id] + } +} diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..5e36b5686 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volume/test_outscale_volume_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_volume/config_outscale_volume_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_volume/outscale_volume_resource_attributes.txt diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/step1.outscale_volume.outscale_volume.check b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/step1.outscale_volume.outscale_volume.check new file mode 100644 index 000000000..9871ddf03 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/step1.outscale_volume.outscale_volume.check @@ -0,0 +1,19 @@ +iops +linked_volumes +#linked_volumes.0.delete_on_vm_deletion +#linked_volumes.0.device_name +#linked_volumes.0.state +#linked_volumes.0.vm_id +#linked_volumes.0.volume_id +size +snapshot_id +state +subregion_name +tags.# +tags.0.key +tags.0.value +volume_id +volume_type +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/step1.volume_resource_attributes_ok.tf b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/step1.volume_resource_attributes_ok.tf new file mode 100644 index 000000000..87eef32a3 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok/step1.volume_resource_attributes_ok.tf @@ -0,0 +1,18 @@ +# Scenario: Succesfull creation of a blank volume +# Given a configuration file declaring a volume without snapshot_id +# When running terraform apply +# Then the volume is created. Can be seen in cockpit and attached to a vm. Seen as empty volume. + +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + tags { + key = "name" + value = "volume-standard" + } + +} + + + + diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/origin.txt b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/origin.txt new file mode 100644 index 000000000..b3908bbfc --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volume/test_outscale_volume_resource_attributes_ok2.py +tf file: provider_outscale_oapi/config/outscale_volume/config_outscale_volume_resource_attributes_ok2 +check file: provider_outscale_oapi/test/outscale_volume/outscale_volume_resource_attributes2.txt diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/step1.outscale_volume.outscale_volume.check b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/step1.outscale_volume.outscale_volume.check new file mode 100644 index 000000000..9871ddf03 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/step1.outscale_volume.outscale_volume.check @@ -0,0 +1,19 @@ +iops +linked_volumes +#linked_volumes.0.delete_on_vm_deletion +#linked_volumes.0.device_name +#linked_volumes.0.state +#linked_volumes.0.vm_id +#linked_volumes.0.volume_id +size +snapshot_id +state +subregion_name +tags.# +tags.0.key +tags.0.value +volume_id +volume_type +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/step1.volume_resource_attributes_ok2.tf b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/step1.volume_resource_attributes_ok2.tf new file mode 100644 index 000000000..75c24b9d8 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok2/step1.volume_resource_attributes_ok2.tf @@ -0,0 +1,16 @@ +# Scenario: Succesfull creation of a blank volume +# Given a configuration file declaring a volume without snapshot_id +# When running terraform apply +# Then the volume is created. Can be seen in cockpit and attached to a vm. Seen as empty volume. + +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + iops = 100 + volume_type = "io1" + tags { + key = "name" + value = "volume-io1" + } + +} diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/origin.txt b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/origin.txt new file mode 100644 index 000000000..ed41abdbd --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volume/test_outscale_volume_resource_attributes_ok3.py +tf file: provider_outscale_oapi/config/outscale_volume/config_outscale_volume_resource_attributes_ok3 +check file: provider_outscale_oapi/test/outscale_volume/outscale_volume_resource_attributes3.txt diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/step1.outscale_volume.outscale_volume.check b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/step1.outscale_volume.outscale_volume.check new file mode 100644 index 000000000..9871ddf03 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/step1.outscale_volume.outscale_volume.check @@ -0,0 +1,19 @@ +iops +linked_volumes +#linked_volumes.0.delete_on_vm_deletion +#linked_volumes.0.device_name +#linked_volumes.0.state +#linked_volumes.0.vm_id +#linked_volumes.0.volume_id +size +snapshot_id +state +subregion_name +tags.# +tags.0.key +tags.0.value +volume_id +volume_type +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/step1.volume_resource_attributes_ok3.tf b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/step1.volume_resource_attributes_ok3.tf new file mode 100644 index 000000000..be618cae8 --- /dev/null +++ b/tests/qa_provider_oapi/volume/TF00_volume_resource_attributes_ok3/step1.volume_resource_attributes_ok3.tf @@ -0,0 +1,16 @@ +# Scenario: Succesfull creation of a blank volume +# Given a configuration file declaring a volume without snapshot_id +# When running terraform apply +# Then the volume is created. Can be seen in cockpit and attached to a vm. Seen as empty volume. + +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + volume_type = "gp2" + snapshot_id = var.snapshot_id + tags { + key = "name" + value = "test1" + } + +} diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/origin.txt b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/origin.txt new file mode 100644 index 000000000..cb0cd6c01 --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volumes/test_outscale_volumes_datasource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_volumes/config_outscale_volumes_datasource_attributes_ok +check file: provider_outscale_oapi/test/outscale_volumes/outscale_volumes_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/step1.outscale_volumes.outscale_volumes.check b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/step1.outscale_volumes.outscale_volumes.check new file mode 100644 index 000000000..847291150 --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/step1.outscale_volumes.outscale_volumes.check @@ -0,0 +1,36 @@ +volumes.# +volumes.0.iops +volumes.0.linked_volumes +#volumes.0.linked_volumes.0.delete_on_vm_deletion +#volumes.0.linked_volumes.0.device_name +#volumes.0.linked_volumes.0.state +#volumes.0.linked_volumes.0.vm_id +#volumes.0.linked_volumes.0.volume_id +volumes.0.size +volumes.0.snapshot_id +volumes.0.state +volumes.0.subregion_name +volumes.0.tags.# +volumes.0.tags.0.key +volumes.0.tags.0.value +volumes.0.volume_id +volumes.0.volume_type +volumes.1.iops +volumes.1.linked_volumes +#volumes.1.linked_volumes.0.delete_on_vm_deletion +#volumes.1.linked_volumes.0.device_name +#volumes.1.linked_volumes.0.state +#volumes.1.linked_volumes.0.vm_id +#volumes.1.linked_volumes.0.volume_id +volumes.1.size +volumes.1.snapshot_id +volumes.1.state +volumes.1.subregion_name +volumes.1.tags.# +volumes.1.tags.0.key +volumes.1.tags.0.value +volumes.1.volume_id +volumes.1.volume_type +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/step1.volumes_datasource_attributes_ok.tf b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/step1.volumes_datasource_attributes_ok.tf new file mode 100644 index 000000000..41efabd8c --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok/step1.volumes_datasource_attributes_ok.tf @@ -0,0 +1,28 @@ +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + iops = 100 + volume_type = "io1" + tags { + key = "Name" + value = "volume-io1-1" + } +} + +resource "outscale_volume" "outscale_volume2" { + subregion_name = format("%s%s", var.region, "a") + size = 10 + iops = 100 + volume_type = "io1" + tags { + key = "Name" + value = "volume-io1-2" + } +} + +data "outscale_volumes" "outscale_volumes" { + filter { + name = "volume_ids" + values = [outscale_volume.outscale_volume.volume_id, outscale_volume.outscale_volume2.volume_id] + } +} diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/origin.txt b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/origin.txt new file mode 100644 index 000000000..67b26a214 --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volumes/test_outscale_volumes_datasource_attributes_ok2.py +tf file: provider_outscale_oapi/config/outscale_volumes/config_outscale_volumes_datasource_attributes_ok2 +check file: provider_outscale_oapi/test/outscale_volumes/outscale_volumes_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/step1.outscale_volumes.outscale_volumes.check b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/step1.outscale_volumes.outscale_volumes.check new file mode 100644 index 000000000..847291150 --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/step1.outscale_volumes.outscale_volumes.check @@ -0,0 +1,36 @@ +volumes.# +volumes.0.iops +volumes.0.linked_volumes +#volumes.0.linked_volumes.0.delete_on_vm_deletion +#volumes.0.linked_volumes.0.device_name +#volumes.0.linked_volumes.0.state +#volumes.0.linked_volumes.0.vm_id +#volumes.0.linked_volumes.0.volume_id +volumes.0.size +volumes.0.snapshot_id +volumes.0.state +volumes.0.subregion_name +volumes.0.tags.# +volumes.0.tags.0.key +volumes.0.tags.0.value +volumes.0.volume_id +volumes.0.volume_type +volumes.1.iops +volumes.1.linked_volumes +#volumes.1.linked_volumes.0.delete_on_vm_deletion +#volumes.1.linked_volumes.0.device_name +#volumes.1.linked_volumes.0.state +#volumes.1.linked_volumes.0.vm_id +#volumes.1.linked_volumes.0.volume_id +volumes.1.size +volumes.1.snapshot_id +volumes.1.state +volumes.1.subregion_name +volumes.1.tags.# +volumes.1.tags.0.key +volumes.1.tags.0.value +volumes.1.volume_id +volumes.1.volume_type +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/step1.volumes_datasource_attributes_ok2.tf b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/step1.volumes_datasource_attributes_ok2.tf new file mode 100644 index 000000000..a1165fd11 --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok2/step1.volumes_datasource_attributes_ok2.tf @@ -0,0 +1,26 @@ +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "b") + size = 12 + volume_type = "gp2" + tags { + key = "Name" + value = "volume-gp2-1" + } + +} +resource "outscale_volume" "outscale_volume2" { + subregion_name = format("%s%s", var.region, "a") + size = 13 + volume_type = "gp2" + tags { + key = "Name" + value = "volume-gp2-1" + } + +} +data "outscale_volumes" "outscale_volumes" { + filter { + name = "volume_ids" + values = [outscale_volume.outscale_volume.volume_id, outscale_volume.outscale_volume2.volume_id] + } +} diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/origin.txt b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/origin.txt new file mode 100644 index 000000000..2490f776a --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volumes/test_outscale_volumes_datasource_attributes_ok3.py +tf file: provider_outscale_oapi/config/outscale_volumes/config_outscale_volumes_datasource_attributes_ok3 +check file: provider_outscale_oapi/test/outscale_volumes/outscale_volumes_datasource_attributes.txt diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/step1.outscale_volumes.outscale_volumes.check b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/step1.outscale_volumes.outscale_volumes.check new file mode 100644 index 000000000..847291150 --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/step1.outscale_volumes.outscale_volumes.check @@ -0,0 +1,36 @@ +volumes.# +volumes.0.iops +volumes.0.linked_volumes +#volumes.0.linked_volumes.0.delete_on_vm_deletion +#volumes.0.linked_volumes.0.device_name +#volumes.0.linked_volumes.0.state +#volumes.0.linked_volumes.0.vm_id +#volumes.0.linked_volumes.0.volume_id +volumes.0.size +volumes.0.snapshot_id +volumes.0.state +volumes.0.subregion_name +volumes.0.tags.# +volumes.0.tags.0.key +volumes.0.tags.0.value +volumes.0.volume_id +volumes.0.volume_type +volumes.1.iops +volumes.1.linked_volumes +#volumes.1.linked_volumes.0.delete_on_vm_deletion +#volumes.1.linked_volumes.0.device_name +#volumes.1.linked_volumes.0.state +#volumes.1.linked_volumes.0.vm_id +#volumes.1.linked_volumes.0.volume_id +volumes.1.size +volumes.1.snapshot_id +volumes.1.state +volumes.1.subregion_name +volumes.1.tags.# +volumes.1.tags.0.key +volumes.1.tags.0.value +volumes.1.volume_id +volumes.1.volume_type +request_id +# correctives +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/step1.volumes_datasource_attributes_ok3.tf b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/step1.volumes_datasource_attributes_ok3.tf new file mode 100644 index 000000000..e2e9d4da8 --- /dev/null +++ b/tests/qa_provider_oapi/volumes/TF00_volumes_datasource_attributes_ok3/step1.volumes_datasource_attributes_ok3.tf @@ -0,0 +1,23 @@ +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 15 + volume_type = "standard" + tags { + key = "Name" + value = "volume-standard-1" + } +} +resource "outscale_volume" "outscale_volume2" { + subregion_name = format("%s%s", var.region, "a") + size = 13 + tags { + key = "Name" + value = "volume-standard-2" + } +} +data "outscale_volumes" "outscale_volumes" { + filter { + name = "volume_ids" + values = [outscale_volume.outscale_volume.volume_id, outscale_volume.outscale_volume2.volume_id] + } +} diff --git a/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/origin.txt b/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/origin.txt new file mode 100644 index 000000000..36264f64c --- /dev/null +++ b/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/origin.txt @@ -0,0 +1,4 @@ + +python file: provider_outscale_oapi/test//outscale_volumes_link/test_outscale_volumes_link_resource_attributes_ok.py +tf file: provider_outscale_oapi/config/outscale_volumes_link/config_outscale_volumes_link_resource_attributes_ok +check file: provider_outscale_oapi/test/outscale_volumes_link/outscale_volumes_link_resource_attributes.txt diff --git a/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/step1.outscale_volumes_link.outscale_volumes_link.check b/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/step1.outscale_volumes_link.outscale_volumes_link.check new file mode 100644 index 000000000..457cd71ca --- /dev/null +++ b/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/step1.outscale_volumes_link.outscale_volumes_link.check @@ -0,0 +1,8 @@ +#delete_on_vm_deletion +device_name +#state +vm_id +volume_id +request_id +# correctives below +id \ No newline at end of file diff --git a/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/step1.volumes_link_resource_attributes_ok.tf b/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/step1.volumes_link_resource_attributes_ok.tf new file mode 100644 index 000000000..a258917d4 --- /dev/null +++ b/tests/qa_provider_oapi/volumes_link/TF00_volumes_link_resource_attributes_ok/step1.volumes_link_resource_attributes_ok.tf @@ -0,0 +1,30 @@ +# Scenario: Succesfull creation of a blank volume +# Given a configuration file declaring a volume without snapshot_id +# When running terraform apply +# Then the volume is created. Can be seen in cockpit and attached to a vm. Seen as empty volume. + +resource "outscale_volume" "outscale_volume" { + subregion_name = format("%s%s", var.region, "a") + size = 40 + tags { + key = "type" + value = "standard" + } +} + +# the instance is created at the same time to get the attributes of both resources prior to perform the link + +resource "outscale_vm" "outscale_vm" { + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name + security_group_ids = [var.security_group_id] +} + +resource "outscale_volumes_link" "outscale_volumes_link" { + #device_name = "/dev/sdc" + device_name = "/dev/xvdc" + volume_id = outscale_volume.outscale_volume.id + vm_id = outscale_vm.outscale_vm.id + #vm_id = "i-ac095195" +} diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 000000000..f60f12534 --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1 @@ +pytest==5.1.3 diff --git a/tests/resources.auto.tfvars.template b/tests/resources.auto.tfvars.template new file mode 100644 index 000000000..9d35416c5 --- /dev/null +++ b/tests/resources.auto.tfvars.template @@ -0,0 +1,10 @@ +dhcp_options_set_id = "" +image_id = "" +keypair_name = "" +my_ip = "" +region = "" +security_group_id = "" +security_group_name = "" +snapshot_id = "" +vm_id = "" +vm_type = "" diff --git a/tests/test_provider_oapi.py b/tests/test_provider_oapi.py new file mode 100644 index 000000000..3ee153220 --- /dev/null +++ b/tests/test_provider_oapi.py @@ -0,0 +1,257 @@ +# -*- coding:utf-8 -*- +# pylint: disable=missing-docstring + +import logging +import os +import subprocess +import pytest + +from check import main + +ROOT_DIR = './qa_provider_oapi' + +LOG_HANDLER = logging.StreamHandler() +FORMATTER = logging.Formatter('[%(asctime)s] ' + + '[%(levelname)8s]' + + '[%(module)s.%(funcName)s():%(lineno)d]: ' + + '%(message)s', '%m/%d/%Y %H:%M:%S') +LOG_HANDLER.setFormatter(FORMATTER) +logging.basicConfig(level=logging.DEBUG, handlers=[LOG_HANDLER]) +logging.getLogger('tpd_test').setLevel(logging.DEBUG) + + +def get_tf_file(test_path, index): + tf_file = None + for tmp_file in os.listdir(test_path): + path = "{}/{}".format(test_path, tmp_file) + if tmp_file.startswith('step{}.'.format(index+1)): + if tmp_file.endswith('.tf'): + tf_file = path + return tf_file + + +def get_check_files(test_path, index): + check_files = [] + for tmp_file in os.listdir(test_path): + path = "{}/{}".format(test_path, tmp_file) + if tmp_file.startswith('step{}.'.format(index)): + if tmp_file.endswith('.check'): + check_files.append(path) + return check_files + + +class ProviderOapiMeta(type): + def __new__(cls, name, bases, attrs): + logger = logging.getLogger('tpd_test') + + def create_test_func(resource, test_name, test_path): + def func(self): + self.exec_test(test_name, test_path) + + func.__name__ = "test_{}_{}".format(resource, test_name) + return func + + for resource in os.listdir(ROOT_DIR): + path = "{}/{}".format(ROOT_DIR, resource) + if not os.path.isdir(path): + logger.warning("Unexpected file: '%s'", path) + continue + for test in os.listdir(path): + path = "{}/{}/{}".format(ROOT_DIR, resource, test) + if not os.path.isdir(path): + logger.warning("Unexpected file: '%s'", path) + continue + logger.debug("Build test: '%s'", path) + func = create_test_func(resource, test, path) + attrs[func.__name__] = func + return type.__new__(cls, name, bases, attrs) + +class TestProviderOapi(metaclass=ProviderOapiMeta): + + @classmethod + def setup_class(cls): + cls.logger = logging.getLogger('tpd_test') + cls.dump = True + cls.log = None + cls.error = False + + def setup_method(self, method): + self.log = """ +========== +Log: {} +========== + """.format(method.__name__) + #self.error = False + try: + self.run_cmd("terraform init -no-color") + stdout, _ = self.run_cmd("terraform version -no-color") + self.log += "\nVERSION:" + self.log += "\n".join(stdout.splitlines()[:2]) + self.log += "\n" + except Exception: + try: + self.teardown_method(method) + except Exception: + pass + raise + + def teardown_method(self, method): + try: + pass + #self.run_cmd("terraform destroy -force -no-color") + finally: + if self.error: + self.logger.error(self.log) + + + def exec_test(self, test_name, test_path): + try: + self.logger.debug("Start test: '%s'", test_name) + i = 0 + if os.path.exists('{}/origin.txt'.format(test_path)): + ret = open('{}/origin.txt'.format(test_path), 'r').read().find('WARNING') + if ret > 0: + pytest.skip('WARNING during test migration') + while True: + try: + tf_file = get_tf_file(test_path, i) + + if not tf_file: + break + i += 1 + self.logger.debug("Process step%d: %s", i, tf_file.split('/')[-1]) + self.log += "\n*** step {} ***\n".format(i) + + self.run_cmd("rm -f test.tf") + self.run_cmd("ln -s {} test.tf".format(tf_file)) + + tmp_file = open("test.tf") + self.log += "\nTest file:\n" + self.log += tmp_file.read() + tmp_file.close() + + self.logger.debug("Exec step%d", i) + + stdout, _ = self.run_cmd("terraform validate -no-color") + self.log += "\nTerraform validate:\n" + self.log += stdout + + stdout, _ = self.run_cmd("terraform plan -no-color") + self.log += "\nTerraform plan:\n" + self.log += stdout + + stdout, _ = self.run_cmd("terraform apply -auto-approve -no-color") + self.log += "\nTerraform apply:\n" + self.log += stdout + + stdout, _ = self.run_cmd("terraform show -no-color") + self.log += "\nTerraform show:\n" + self.log += stdout + + stdout, _ = self.run_cmd("terraform state pull") + self.log += "\nTerraform state pull:\n" + self.log += stdout + + if self.dump: + dump_file = tf_file.replace('.tf', '.dump') + tmp_file = open(dump_file, 'w') + tmp_file.write(stdout) + tmp_file.close() + + self.logger.debug("Check step%d", i) + check_file_list = get_check_files(test_path, i) + if not check_file_list: + assert False, "No check file found in test directory" + self.run_cmd("terraform state pull > ./terraformStatePull.json") + for check_file in check_file_list: + resource = '.'.join(check_file.split('/')[-1].split('.')[1:3]) + ret = main("./terraformStatePull.json", check_file, resource) + if ret: + self.log += "\nCheck File {}:\n".format(resource) + tmp_file = open(check_file) + self.log += tmp_file.read() + tmp_file.close() + self.log += "\n\nMissing in {}:\n".format(resource) + for attr in ret: + self.log += " - {}\n".format(attr) + assert not ret + + + # TODO: add a loop for 2nd exec (ame code as 1st exec...) + self.logger.debug("ReExec step%d", i) + + stdout, _ = self.run_cmd("terraform plan -no-color") + self.log += "\nTerraform (re)plan:\n" + self.log += stdout + + stdout, _ = self.run_cmd("terraform apply -auto-approve -no-color") + self.log += "\nTerraform (re)apply:\n" + self.log += stdout + + stdout, _ = self.run_cmd("terraform show -no-color") + self.log += "\nTerraform (re)show:\n" + self.log += stdout + + stdout, _ = self.run_cmd("terraform state pull") + self.log += "\nTerraform (re)state pull:\n" + self.log += stdout + + if self.dump: + dump_file = tf_file.replace('.tf', '.dump') + tmp_file = open(dump_file, 'w') + tmp_file.write(stdout) + tmp_file.close() + + self.logger.debug("ReCheck step%d", i) + check_file_list = get_check_files(test_path, i) + if not check_file_list: + assert False, "No check file found in test directory" + self.run_cmd("terraform state pull > ./terraformStatePull.json") + for check_file in check_file_list: + resource = '.'.join(check_file.split('/')[-1].split('.')[1:3]) + ret = main("./terraformStatePull.json", check_file, resource) + if ret: + self.log += "\nCheck File {}:\n".format(resource) + tmp_file = open(check_file) + self.log += tmp_file.read() + tmp_file.close() + self.log += "\n\nMissing in {}:\n".format(resource) + for attr in ret: + self.log += " - {}\n".format(attr) + assert not ret + + finally: + pass + #self.run_cmd("rm -f test.tf") + if i == 0: + assert False, "No step found in test directory" + except Exception as error: + self.error = True + raise + finally: + try: + self.run_cmd("terraform destroy -force -no-color") + finally: + self.run_cmd("rm -f test.tf") + self.run_cmd("rm -f terraform.tfstate") + + + def run_cmd(self, cmd, exp_ret_code=0): + self.logger.debug("Exec: %s", cmd) + proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + stdout, stderr = proc.communicate() + stdout = stdout.decode("utf-8") + stderr = stderr.decode("utf-8") + #if self.debug or proc.returncode != exp_ret_code: + # self.logger.debug("stdout:\n%s", stdout) + # self.logger.debug("stderr:\n%s", stderr) + if proc.returncode != exp_ret_code: + self.error = True + self.log += "\nERROR:" + self.log += "\nCMD '{}' failed".format(cmd) + self.log += "\nStdout: " + self.log += stdout + self.log += "\nStderr: " + self.log += stderr + assert proc.returncode == exp_ret_code + return (stdout, stderr) diff --git a/examples/variables.tf b/tests/variables.tf similarity index 56% rename from examples/variables.tf rename to tests/variables.tf index 336425995..82b7266f8 100644 --- a/examples/variables.tf +++ b/tests/variables.tf @@ -1,21 +1,16 @@ +# provider configuration +variable "account_id" {} variable "access_key_id" {} variable "secret_key_id" {} -variable "region" { - default = "eu-west-2" -} - -variable "ssh_privkey_filename" { - description = "The name of the file containning the private ssh key" - default = "outscale_sutKeyPair.rsa.txt" -} +variable "region" {} -variable "vm_id" {} -variable "vm_type" {} +# resources configuration +variable "dhcp_options_set_id" {} variable "image_id" {} -variable "volume_id" {} variable "keypair_name" {} +variable "my_ip" {} variable "security_group_id" {} variable "security_group_name" {} -variable "account_id" {} -variable "dhcp_options_set_id" {} variable "snapshot_id" {} +variable "vm_id" {} +variable "vm_type" {} diff --git a/utils/utils.go b/utils/utils.go index 2014b169c..0b2f6cd94 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -59,3 +59,11 @@ func StringSliceToInt32Slice(src []string) (res []int32) { } return } + +// StringSliceToFloat32Slice converts []string to []float32 ... +func StringSliceToFloat32Slice(src []string) (res []float32) { + for _, str := range src { + res = append(res, cast.ToFloat32(str)) + } + return +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/README.md b/vendor/github.com/outscale/osc-sdk-go/v2/README.md index 9b9b68a39..c3dfef42c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/README.md +++ b/vendor/github.com/outscale/osc-sdk-go/v2/README.md @@ -11,8 +11,8 @@ You can also manage your resources using the [Cockpit](https://wiki.outscale.net ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.4 -- Package version: 2.0.0-beta.3 +- API version: 1.7 +- Package version: 2.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -96,7 +96,15 @@ Class | Method | HTTP request | Description *AccountApi* | [**ResetAccountPassword**](docs/AccountApi.md#resetaccountpassword) | **Post** /ResetAccountPassword | *AccountApi* | [**SendResetPasswordEmail**](docs/AccountApi.md#sendresetpasswordemail) | **Post** /SendResetPasswordEmail | *AccountApi* | [**UpdateAccount**](docs/AccountApi.md#updateaccount) | **Post** /UpdateAccount | +*ApiAccessRuleApi* | [**CreateApiAccessRule**](docs/ApiAccessRuleApi.md#createapiaccessrule) | **Post** /CreateApiAccessRule | +*ApiAccessRuleApi* | [**DeleteApiAccessRule**](docs/ApiAccessRuleApi.md#deleteapiaccessrule) | **Post** /DeleteApiAccessRule | +*ApiAccessRuleApi* | [**ReadApiAccessRules**](docs/ApiAccessRuleApi.md#readapiaccessrules) | **Post** /ReadApiAccessRules | +*ApiAccessRuleApi* | [**UpdateApiAccessRule**](docs/ApiAccessRuleApi.md#updateapiaccessrule) | **Post** /UpdateApiAccessRule | *ApiLogApi* | [**ReadApiLogs**](docs/ApiLogApi.md#readapilogs) | **Post** /ReadApiLogs | +*CaApi* | [**CreateCa**](docs/CaApi.md#createca) | **Post** /CreateCa | +*CaApi* | [**DeleteCa**](docs/CaApi.md#deleteca) | **Post** /DeleteCa | +*CaApi* | [**ReadCas**](docs/CaApi.md#readcas) | **Post** /ReadCas | +*CaApi* | [**UpdateCa**](docs/CaApi.md#updateca) | **Post** /UpdateCa | *ClientGatewayApi* | [**CreateClientGateway**](docs/ClientGatewayApi.md#createclientgateway) | **Post** /CreateClientGateway | *ClientGatewayApi* | [**DeleteClientGateway**](docs/ClientGatewayApi.md#deleteclientgateway) | **Post** /DeleteClientGateway | *ClientGatewayApi* | [**ReadClientGateways**](docs/ClientGatewayApi.md#readclientgateways) | **Post** /ReadClientGateways | @@ -237,6 +245,7 @@ Class | Method | HTTP request | Description *VolumeApi* | [**LinkVolume**](docs/VolumeApi.md#linkvolume) | **Post** /LinkVolume | *VolumeApi* | [**ReadVolumes**](docs/VolumeApi.md#readvolumes) | **Post** /ReadVolumes | *VolumeApi* | [**UnlinkVolume**](docs/VolumeApi.md#unlinkvolume) | **Post** /UnlinkVolume | +*VolumeApi* | [**UpdateVolume**](docs/VolumeApi.md#updatevolume) | **Post** /UpdateVolume | *VpnConnectionApi* | [**CreateVpnConnection**](docs/VpnConnectionApi.md#createvpnconnection) | **Post** /CreateVpnConnection | *VpnConnectionApi* | [**CreateVpnConnectionRoute**](docs/VpnConnectionApi.md#createvpnconnectionroute) | **Post** /CreateVpnConnectionRoute | *VpnConnectionApi* | [**DeleteVpnConnection**](docs/VpnConnectionApi.md#deletevpnconnection) | **Post** /DeleteVpnConnection | @@ -253,6 +262,7 @@ Class | Method | HTTP request | Description - [AccessKeySecretKey](docs/AccessKeySecretKey.md) - [AccessLog](docs/AccessLog.md) - [Account](docs/Account.md) + - [ApiAccessRule](docs/ApiAccessRule.md) - [ApplicationStickyCookiePolicy](docs/ApplicationStickyCookiePolicy.md) - [BackendVmHealth](docs/BackendVmHealth.md) - [BlockDeviceMappingCreated](docs/BlockDeviceMappingCreated.md) @@ -262,6 +272,7 @@ Class | Method | HTTP request | Description - [BsuCreated](docs/BsuCreated.md) - [BsuToCreate](docs/BsuToCreate.md) - [BsuToUpdateVm](docs/BsuToUpdateVm.md) + - [Ca](docs/Ca.md) - [CheckAuthenticationRequest](docs/CheckAuthenticationRequest.md) - [CheckAuthenticationResponse](docs/CheckAuthenticationResponse.md) - [ClientGateway](docs/ClientGateway.md) @@ -270,6 +281,10 @@ Class | Method | HTTP request | Description - [CreateAccessKeyResponse](docs/CreateAccessKeyResponse.md) - [CreateAccountRequest](docs/CreateAccountRequest.md) - [CreateAccountResponse](docs/CreateAccountResponse.md) + - [CreateApiAccessRuleRequest](docs/CreateApiAccessRuleRequest.md) + - [CreateApiAccessRuleResponse](docs/CreateApiAccessRuleResponse.md) + - [CreateCaRequest](docs/CreateCaRequest.md) + - [CreateCaResponse](docs/CreateCaResponse.md) - [CreateClientGatewayRequest](docs/CreateClientGatewayRequest.md) - [CreateClientGatewayResponse](docs/CreateClientGatewayResponse.md) - [CreateDhcpOptionsRequest](docs/CreateDhcpOptionsRequest.md) @@ -340,6 +355,10 @@ Class | Method | HTTP request | Description - [CreateVpnConnectionRouteResponse](docs/CreateVpnConnectionRouteResponse.md) - [DeleteAccessKeyRequest](docs/DeleteAccessKeyRequest.md) - [DeleteAccessKeyResponse](docs/DeleteAccessKeyResponse.md) + - [DeleteApiAccessRuleRequest](docs/DeleteApiAccessRuleRequest.md) + - [DeleteApiAccessRuleResponse](docs/DeleteApiAccessRuleResponse.md) + - [DeleteCaRequest](docs/DeleteCaRequest.md) + - [DeleteCaResponse](docs/DeleteCaResponse.md) - [DeleteClientGatewayRequest](docs/DeleteClientGatewayRequest.md) - [DeleteClientGatewayResponse](docs/DeleteClientGatewayResponse.md) - [DeleteDhcpOptionsRequest](docs/DeleteDhcpOptionsRequest.md) @@ -415,7 +434,9 @@ Class | Method | HTTP request | Description - [ErrorResponse](docs/ErrorResponse.md) - [Errors](docs/Errors.md) - [FiltersAccessKeys](docs/FiltersAccessKeys.md) + - [FiltersApiAccessRule](docs/FiltersApiAccessRule.md) - [FiltersApiLog](docs/FiltersApiLog.md) + - [FiltersCa](docs/FiltersCa.md) - [FiltersClientGateway](docs/FiltersClientGateway.md) - [FiltersDhcpOptions](docs/FiltersDhcpOptions.md) - [FiltersDirectLink](docs/FiltersDirectLink.md) @@ -519,8 +540,12 @@ Class | Method | HTTP request | Description - [ReadAccountsResponse](docs/ReadAccountsResponse.md) - [ReadAdminPasswordRequest](docs/ReadAdminPasswordRequest.md) - [ReadAdminPasswordResponse](docs/ReadAdminPasswordResponse.md) + - [ReadApiAccessRulesRequest](docs/ReadApiAccessRulesRequest.md) + - [ReadApiAccessRulesResponse](docs/ReadApiAccessRulesResponse.md) - [ReadApiLogsRequest](docs/ReadApiLogsRequest.md) - [ReadApiLogsResponse](docs/ReadApiLogsResponse.md) + - [ReadCasRequest](docs/ReadCasRequest.md) + - [ReadCasResponse](docs/ReadCasResponse.md) - [ReadClientGatewaysRequest](docs/ReadClientGatewaysRequest.md) - [ReadClientGatewaysResponse](docs/ReadClientGatewaysResponse.md) - [ReadConsoleOutputRequest](docs/ReadConsoleOutputRequest.md) @@ -663,6 +688,10 @@ Class | Method | HTTP request | Description - [UpdateAccessKeyResponse](docs/UpdateAccessKeyResponse.md) - [UpdateAccountRequest](docs/UpdateAccountRequest.md) - [UpdateAccountResponse](docs/UpdateAccountResponse.md) + - [UpdateApiAccessRuleRequest](docs/UpdateApiAccessRuleRequest.md) + - [UpdateApiAccessRuleResponse](docs/UpdateApiAccessRuleResponse.md) + - [UpdateCaRequest](docs/UpdateCaRequest.md) + - [UpdateCaResponse](docs/UpdateCaResponse.md) - [UpdateFlexibleGpuRequest](docs/UpdateFlexibleGpuRequest.md) - [UpdateFlexibleGpuResponse](docs/UpdateFlexibleGpuResponse.md) - [UpdateImageRequest](docs/UpdateImageRequest.md) @@ -689,6 +718,8 @@ Class | Method | HTTP request | Description - [UpdateSubnetResponse](docs/UpdateSubnetResponse.md) - [UpdateVmRequest](docs/UpdateVmRequest.md) - [UpdateVmResponse](docs/UpdateVmResponse.md) + - [UpdateVolumeRequest](docs/UpdateVolumeRequest.md) + - [UpdateVolumeResponse](docs/UpdateVolumeResponse.md) - [VirtualGateway](docs/VirtualGateway.md) - [Vm](docs/Vm.md) - [VmState](docs/VmState.md) diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_access_key.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_access_key.go index c24c5c90f..bc8c39145 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_access_key.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_access_key.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type AccessKeyApiService service type ApiCreateAccessKeyRequest struct { - ctx _context.Context - ApiService *AccessKeyApiService + ctx _context.Context + ApiService *AccessKeyApiService createAccessKeyRequest *CreateAccessKeyRequest } @@ -49,7 +50,7 @@ func (r ApiCreateAccessKeyRequest) Execute() (CreateAccessKeyResponse, *_nethttp func (a *AccessKeyApiService) CreateAccessKey(ctx _context.Context) ApiCreateAccessKeyRequest { return ApiCreateAccessKeyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *AccessKeyApiService) CreateAccessKeyExecute(r ApiCreateAccessKeyRequest localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *AccessKeyApiService) CreateAccessKeyExecute(r ApiCreateAccessKeyRequest } type ApiDeleteAccessKeyRequest struct { - ctx _context.Context - ApiService *AccessKeyApiService + ctx _context.Context + ApiService *AccessKeyApiService deleteAccessKeyRequest *DeleteAccessKeyRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteAccessKeyRequest) Execute() (DeleteAccessKeyResponse, *_nethttp func (a *AccessKeyApiService) DeleteAccessKey(ctx _context.Context) ApiDeleteAccessKeyRequest { return ApiDeleteAccessKeyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *AccessKeyApiService) DeleteAccessKeyExecute(r ApiDeleteAccessKeyRequest localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *AccessKeyApiService) DeleteAccessKeyExecute(r ApiDeleteAccessKeyRequest } type ApiReadAccessKeysRequest struct { - ctx _context.Context - ApiService *AccessKeyApiService + ctx _context.Context + ApiService *AccessKeyApiService readAccessKeysRequest *ReadAccessKeysRequest } @@ -291,7 +294,7 @@ func (r ApiReadAccessKeysRequest) Execute() (ReadAccessKeysResponse, *_nethttp.R func (a *AccessKeyApiService) ReadAccessKeys(ctx _context.Context) ApiReadAccessKeysRequest { return ApiReadAccessKeysRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *AccessKeyApiService) ReadAccessKeysExecute(r ApiReadAccessKeysRequest) localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *AccessKeyApiService) ReadAccessKeysExecute(r ApiReadAccessKeysRequest) } type ApiReadSecretAccessKeyRequest struct { - ctx _context.Context - ApiService *AccessKeyApiService + ctx _context.Context + ApiService *AccessKeyApiService readSecretAccessKeyRequest *ReadSecretAccessKeyRequest } @@ -412,7 +416,7 @@ func (r ApiReadSecretAccessKeyRequest) Execute() (ReadSecretAccessKeyResponse, * func (a *AccessKeyApiService) ReadSecretAccessKey(ctx _context.Context) ApiReadSecretAccessKeyRequest { return ApiReadSecretAccessKeyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -486,6 +490,7 @@ func (a *AccessKeyApiService) ReadSecretAccessKeyExecute(r ApiReadSecretAccessKe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -511,8 +516,8 @@ func (a *AccessKeyApiService) ReadSecretAccessKeyExecute(r ApiReadSecretAccessKe } type ApiUpdateAccessKeyRequest struct { - ctx _context.Context - ApiService *AccessKeyApiService + ctx _context.Context + ApiService *AccessKeyApiService updateAccessKeyRequest *UpdateAccessKeyRequest } @@ -533,7 +538,7 @@ func (r ApiUpdateAccessKeyRequest) Execute() (UpdateAccessKeyResponse, *_nethttp func (a *AccessKeyApiService) UpdateAccessKey(ctx _context.Context) ApiUpdateAccessKeyRequest { return ApiUpdateAccessKeyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -607,6 +612,7 @@ func (a *AccessKeyApiService) UpdateAccessKeyExecute(r ApiUpdateAccessKeyRequest localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_account.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_account.go index d95f9f42d..7cdeb904f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_account.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_account.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type AccountApiService service type ApiCheckAuthenticationRequest struct { - ctx _context.Context - ApiService *AccountApiService + ctx _context.Context + ApiService *AccountApiService checkAuthenticationRequest *CheckAuthenticationRequest } @@ -49,7 +50,7 @@ func (r ApiCheckAuthenticationRequest) Execute() (CheckAuthenticationResponse, * func (a *AccountApiService) CheckAuthentication(ctx _context.Context) ApiCheckAuthenticationRequest { return ApiCheckAuthenticationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *AccountApiService) CheckAuthenticationExecute(r ApiCheckAuthenticationR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *AccountApiService) CheckAuthenticationExecute(r ApiCheckAuthenticationR } type ApiCreateAccountRequest struct { - ctx _context.Context - ApiService *AccountApiService + ctx _context.Context + ApiService *AccountApiService createAccountRequest *CreateAccountRequest } @@ -170,7 +172,7 @@ func (r ApiCreateAccountRequest) Execute() (CreateAccountResponse, *_nethttp.Res func (a *AccountApiService) CreateAccount(ctx _context.Context) ApiCreateAccountRequest { return ApiCreateAccountRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *AccountApiService) CreateAccountExecute(r ApiCreateAccountRequest) (Cre localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *AccountApiService) CreateAccountExecute(r ApiCreateAccountRequest) (Cre } type ApiReadAccountsRequest struct { - ctx _context.Context - ApiService *AccountApiService + ctx _context.Context + ApiService *AccountApiService readAccountsRequest *ReadAccountsRequest } @@ -291,7 +294,7 @@ func (r ApiReadAccountsRequest) Execute() (ReadAccountsResponse, *_nethttp.Respo func (a *AccountApiService) ReadAccounts(ctx _context.Context) ApiReadAccountsRequest { return ApiReadAccountsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *AccountApiService) ReadAccountsExecute(r ApiReadAccountsRequest) (ReadA localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *AccountApiService) ReadAccountsExecute(r ApiReadAccountsRequest) (ReadA } type ApiReadConsumptionAccountRequest struct { - ctx _context.Context - ApiService *AccountApiService + ctx _context.Context + ApiService *AccountApiService readConsumptionAccountRequest *ReadConsumptionAccountRequest } @@ -412,7 +416,7 @@ func (r ApiReadConsumptionAccountRequest) Execute() (ReadConsumptionAccountRespo func (a *AccountApiService) ReadConsumptionAccount(ctx _context.Context) ApiReadConsumptionAccountRequest { return ApiReadConsumptionAccountRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -486,6 +490,7 @@ func (a *AccountApiService) ReadConsumptionAccountExecute(r ApiReadConsumptionAc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -511,8 +516,8 @@ func (a *AccountApiService) ReadConsumptionAccountExecute(r ApiReadConsumptionAc } type ApiResetAccountPasswordRequest struct { - ctx _context.Context - ApiService *AccountApiService + ctx _context.Context + ApiService *AccountApiService resetAccountPasswordRequest *ResetAccountPasswordRequest } @@ -533,7 +538,7 @@ func (r ApiResetAccountPasswordRequest) Execute() (ResetAccountPasswordResponse, func (a *AccountApiService) ResetAccountPassword(ctx _context.Context) ApiResetAccountPasswordRequest { return ApiResetAccountPasswordRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -607,6 +612,7 @@ func (a *AccountApiService) ResetAccountPasswordExecute(r ApiResetAccountPasswor localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -632,8 +638,8 @@ func (a *AccountApiService) ResetAccountPasswordExecute(r ApiResetAccountPasswor } type ApiSendResetPasswordEmailRequest struct { - ctx _context.Context - ApiService *AccountApiService + ctx _context.Context + ApiService *AccountApiService sendResetPasswordEmailRequest *SendResetPasswordEmailRequest } @@ -654,7 +660,7 @@ func (r ApiSendResetPasswordEmailRequest) Execute() (SendResetPasswordEmailRespo func (a *AccountApiService) SendResetPasswordEmail(ctx _context.Context) ApiSendResetPasswordEmailRequest { return ApiSendResetPasswordEmailRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -728,6 +734,7 @@ func (a *AccountApiService) SendResetPasswordEmailExecute(r ApiSendResetPassword localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -753,8 +760,8 @@ func (a *AccountApiService) SendResetPasswordEmailExecute(r ApiSendResetPassword } type ApiUpdateAccountRequest struct { - ctx _context.Context - ApiService *AccountApiService + ctx _context.Context + ApiService *AccountApiService updateAccountRequest *UpdateAccountRequest } @@ -775,7 +782,7 @@ func (r ApiUpdateAccountRequest) Execute() (UpdateAccountResponse, *_nethttp.Res func (a *AccountApiService) UpdateAccount(ctx _context.Context) ApiUpdateAccountRequest { return ApiUpdateAccountRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -849,6 +856,7 @@ func (a *AccountApiService) UpdateAccountExecute(r ApiUpdateAccountRequest) (Upd localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_api_access_rule.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_api_access_rule.go new file mode 100644 index 000000000..0861489b8 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_api_access_rule.go @@ -0,0 +1,516 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +// ApiAccessRuleApiService ApiAccessRuleApi service +type ApiAccessRuleApiService service + +type ApiCreateApiAccessRuleRequest struct { + ctx _context.Context + ApiService *ApiAccessRuleApiService + createApiAccessRuleRequest *CreateApiAccessRuleRequest +} + +func (r ApiCreateApiAccessRuleRequest) CreateApiAccessRuleRequest(createApiAccessRuleRequest CreateApiAccessRuleRequest) ApiCreateApiAccessRuleRequest { + r.createApiAccessRuleRequest = &createApiAccessRuleRequest + return r +} + +func (r ApiCreateApiAccessRuleRequest) Execute() (CreateApiAccessRuleResponse, *_nethttp.Response, error) { + return r.ApiService.CreateApiAccessRuleExecute(r) +} + +/* + * CreateApiAccessRule Method for CreateApiAccessRule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateApiAccessRuleRequest + */ +func (a *ApiAccessRuleApiService) CreateApiAccessRule(ctx _context.Context) ApiCreateApiAccessRuleRequest { + return ApiCreateApiAccessRuleRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CreateApiAccessRuleResponse + */ +func (a *ApiAccessRuleApiService) CreateApiAccessRuleExecute(r ApiCreateApiAccessRuleRequest) (CreateApiAccessRuleResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CreateApiAccessRuleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAccessRuleApiService.CreateApiAccessRule") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/CreateApiAccessRule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createApiAccessRuleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteApiAccessRuleRequest struct { + ctx _context.Context + ApiService *ApiAccessRuleApiService + deleteApiAccessRuleRequest *DeleteApiAccessRuleRequest +} + +func (r ApiDeleteApiAccessRuleRequest) DeleteApiAccessRuleRequest(deleteApiAccessRuleRequest DeleteApiAccessRuleRequest) ApiDeleteApiAccessRuleRequest { + r.deleteApiAccessRuleRequest = &deleteApiAccessRuleRequest + return r +} + +func (r ApiDeleteApiAccessRuleRequest) Execute() (DeleteApiAccessRuleResponse, *_nethttp.Response, error) { + return r.ApiService.DeleteApiAccessRuleExecute(r) +} + +/* + * DeleteApiAccessRule Method for DeleteApiAccessRule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiDeleteApiAccessRuleRequest + */ +func (a *ApiAccessRuleApiService) DeleteApiAccessRule(ctx _context.Context) ApiDeleteApiAccessRuleRequest { + return ApiDeleteApiAccessRuleRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return DeleteApiAccessRuleResponse + */ +func (a *ApiAccessRuleApiService) DeleteApiAccessRuleExecute(r ApiDeleteApiAccessRuleRequest) (DeleteApiAccessRuleResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue DeleteApiAccessRuleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAccessRuleApiService.DeleteApiAccessRule") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/DeleteApiAccessRule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deleteApiAccessRuleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadApiAccessRulesRequest struct { + ctx _context.Context + ApiService *ApiAccessRuleApiService + readApiAccessRulesRequest *ReadApiAccessRulesRequest +} + +func (r ApiReadApiAccessRulesRequest) ReadApiAccessRulesRequest(readApiAccessRulesRequest ReadApiAccessRulesRequest) ApiReadApiAccessRulesRequest { + r.readApiAccessRulesRequest = &readApiAccessRulesRequest + return r +} + +func (r ApiReadApiAccessRulesRequest) Execute() (ReadApiAccessRulesResponse, *_nethttp.Response, error) { + return r.ApiService.ReadApiAccessRulesExecute(r) +} + +/* + * ReadApiAccessRules Method for ReadApiAccessRules + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiReadApiAccessRulesRequest + */ +func (a *ApiAccessRuleApiService) ReadApiAccessRules(ctx _context.Context) ApiReadApiAccessRulesRequest { + return ApiReadApiAccessRulesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ReadApiAccessRulesResponse + */ +func (a *ApiAccessRuleApiService) ReadApiAccessRulesExecute(r ApiReadApiAccessRulesRequest) (ReadApiAccessRulesResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ReadApiAccessRulesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAccessRuleApiService.ReadApiAccessRules") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ReadApiAccessRules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.readApiAccessRulesRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateApiAccessRuleRequest struct { + ctx _context.Context + ApiService *ApiAccessRuleApiService + updateApiAccessRuleRequest *UpdateApiAccessRuleRequest +} + +func (r ApiUpdateApiAccessRuleRequest) UpdateApiAccessRuleRequest(updateApiAccessRuleRequest UpdateApiAccessRuleRequest) ApiUpdateApiAccessRuleRequest { + r.updateApiAccessRuleRequest = &updateApiAccessRuleRequest + return r +} + +func (r ApiUpdateApiAccessRuleRequest) Execute() (UpdateApiAccessRuleResponse, *_nethttp.Response, error) { + return r.ApiService.UpdateApiAccessRuleExecute(r) +} + +/* + * UpdateApiAccessRule Method for UpdateApiAccessRule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiUpdateApiAccessRuleRequest + */ +func (a *ApiAccessRuleApiService) UpdateApiAccessRule(ctx _context.Context) ApiUpdateApiAccessRuleRequest { + return ApiUpdateApiAccessRuleRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return UpdateApiAccessRuleResponse + */ +func (a *ApiAccessRuleApiService) UpdateApiAccessRuleExecute(r ApiUpdateApiAccessRuleRequest) (UpdateApiAccessRuleResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue UpdateApiAccessRuleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAccessRuleApiService.UpdateApiAccessRule") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/UpdateApiAccessRule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateApiAccessRuleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_api_log.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_api_log.go index 3063e09c5..3e1c66af6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_api_log.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_api_log.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type ApiLogApiService service type ApiReadApiLogsRequest struct { - ctx _context.Context - ApiService *ApiLogApiService + ctx _context.Context + ApiService *ApiLogApiService readApiLogsRequest *ReadApiLogsRequest } @@ -49,7 +50,7 @@ func (r ApiReadApiLogsRequest) Execute() (ReadApiLogsResponse, *_nethttp.Respons func (a *ApiLogApiService) ReadApiLogs(ctx _context.Context) ApiReadApiLogsRequest { return ApiReadApiLogsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *ApiLogApiService) ReadApiLogsExecute(r ApiReadApiLogsRequest) (ReadApiL localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_ca.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_ca.go new file mode 100644 index 000000000..335ace070 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_ca.go @@ -0,0 +1,516 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +// CaApiService CaApi service +type CaApiService service + +type ApiCreateCaRequest struct { + ctx _context.Context + ApiService *CaApiService + createCaRequest *CreateCaRequest +} + +func (r ApiCreateCaRequest) CreateCaRequest(createCaRequest CreateCaRequest) ApiCreateCaRequest { + r.createCaRequest = &createCaRequest + return r +} + +func (r ApiCreateCaRequest) Execute() (CreateCaResponse, *_nethttp.Response, error) { + return r.ApiService.CreateCaExecute(r) +} + +/* + * CreateCa Method for CreateCa + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateCaRequest + */ +func (a *CaApiService) CreateCa(ctx _context.Context) ApiCreateCaRequest { + return ApiCreateCaRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CreateCaResponse + */ +func (a *CaApiService) CreateCaExecute(r ApiCreateCaRequest) (CreateCaResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CreateCaResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CaApiService.CreateCa") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/CreateCa" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createCaRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCaRequest struct { + ctx _context.Context + ApiService *CaApiService + deleteCaRequest *DeleteCaRequest +} + +func (r ApiDeleteCaRequest) DeleteCaRequest(deleteCaRequest DeleteCaRequest) ApiDeleteCaRequest { + r.deleteCaRequest = &deleteCaRequest + return r +} + +func (r ApiDeleteCaRequest) Execute() (DeleteCaResponse, *_nethttp.Response, error) { + return r.ApiService.DeleteCaExecute(r) +} + +/* + * DeleteCa Method for DeleteCa + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiDeleteCaRequest + */ +func (a *CaApiService) DeleteCa(ctx _context.Context) ApiDeleteCaRequest { + return ApiDeleteCaRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return DeleteCaResponse + */ +func (a *CaApiService) DeleteCaExecute(r ApiDeleteCaRequest) (DeleteCaResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue DeleteCaResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CaApiService.DeleteCa") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/DeleteCa" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.deleteCaRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCasRequest struct { + ctx _context.Context + ApiService *CaApiService + readCasRequest *ReadCasRequest +} + +func (r ApiReadCasRequest) ReadCasRequest(readCasRequest ReadCasRequest) ApiReadCasRequest { + r.readCasRequest = &readCasRequest + return r +} + +func (r ApiReadCasRequest) Execute() (ReadCasResponse, *_nethttp.Response, error) { + return r.ApiService.ReadCasExecute(r) +} + +/* + * ReadCas Method for ReadCas + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiReadCasRequest + */ +func (a *CaApiService) ReadCas(ctx _context.Context) ApiReadCasRequest { + return ApiReadCasRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ReadCasResponse + */ +func (a *CaApiService) ReadCasExecute(r ApiReadCasRequest) (ReadCasResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ReadCasResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CaApiService.ReadCas") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ReadCas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.readCasRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateCaRequest struct { + ctx _context.Context + ApiService *CaApiService + updateCaRequest *UpdateCaRequest +} + +func (r ApiUpdateCaRequest) UpdateCaRequest(updateCaRequest UpdateCaRequest) ApiUpdateCaRequest { + r.updateCaRequest = &updateCaRequest + return r +} + +func (r ApiUpdateCaRequest) Execute() (UpdateCaResponse, *_nethttp.Response, error) { + return r.ApiService.UpdateCaExecute(r) +} + +/* + * UpdateCa Method for UpdateCa + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiUpdateCaRequest + */ +func (a *CaApiService) UpdateCa(ctx _context.Context) ApiUpdateCaRequest { + return ApiUpdateCaRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return UpdateCaResponse + */ +func (a *CaApiService) UpdateCaExecute(r ApiUpdateCaRequest) (UpdateCaResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue UpdateCaResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CaApiService.UpdateCa") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/UpdateCa" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateCaRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_client_gateway.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_client_gateway.go index 9ae6384fe..8c2ee3da8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_client_gateway.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_client_gateway.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type ClientGatewayApiService service type ApiCreateClientGatewayRequest struct { - ctx _context.Context - ApiService *ClientGatewayApiService + ctx _context.Context + ApiService *ClientGatewayApiService createClientGatewayRequest *CreateClientGatewayRequest } @@ -49,7 +50,7 @@ func (r ApiCreateClientGatewayRequest) Execute() (CreateClientGatewayResponse, * func (a *ClientGatewayApiService) CreateClientGateway(ctx _context.Context) ApiCreateClientGatewayRequest { return ApiCreateClientGatewayRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *ClientGatewayApiService) CreateClientGatewayExecute(r ApiCreateClientGa localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *ClientGatewayApiService) CreateClientGatewayExecute(r ApiCreateClientGa } type ApiDeleteClientGatewayRequest struct { - ctx _context.Context - ApiService *ClientGatewayApiService + ctx _context.Context + ApiService *ClientGatewayApiService deleteClientGatewayRequest *DeleteClientGatewayRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteClientGatewayRequest) Execute() (DeleteClientGatewayResponse, * func (a *ClientGatewayApiService) DeleteClientGateway(ctx _context.Context) ApiDeleteClientGatewayRequest { return ApiDeleteClientGatewayRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *ClientGatewayApiService) DeleteClientGatewayExecute(r ApiDeleteClientGa localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *ClientGatewayApiService) DeleteClientGatewayExecute(r ApiDeleteClientGa } type ApiReadClientGatewaysRequest struct { - ctx _context.Context - ApiService *ClientGatewayApiService + ctx _context.Context + ApiService *ClientGatewayApiService readClientGatewaysRequest *ReadClientGatewaysRequest } @@ -291,7 +294,7 @@ func (r ApiReadClientGatewaysRequest) Execute() (ReadClientGatewaysResponse, *_n func (a *ClientGatewayApiService) ReadClientGateways(ctx _context.Context) ApiReadClientGatewaysRequest { return ApiReadClientGatewaysRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *ClientGatewayApiService) ReadClientGatewaysExecute(r ApiReadClientGatew localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_dhcp_option.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_dhcp_option.go index 438e2c01e..8e796fcb7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_dhcp_option.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_dhcp_option.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type DhcpOptionApiService service type ApiCreateDhcpOptionsRequest struct { - ctx _context.Context - ApiService *DhcpOptionApiService + ctx _context.Context + ApiService *DhcpOptionApiService createDhcpOptionsRequest *CreateDhcpOptionsRequest } @@ -49,7 +50,7 @@ func (r ApiCreateDhcpOptionsRequest) Execute() (CreateDhcpOptionsResponse, *_net func (a *DhcpOptionApiService) CreateDhcpOptions(ctx _context.Context) ApiCreateDhcpOptionsRequest { return ApiCreateDhcpOptionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *DhcpOptionApiService) CreateDhcpOptionsExecute(r ApiCreateDhcpOptionsRe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *DhcpOptionApiService) CreateDhcpOptionsExecute(r ApiCreateDhcpOptionsRe } type ApiDeleteDhcpOptionsRequest struct { - ctx _context.Context - ApiService *DhcpOptionApiService + ctx _context.Context + ApiService *DhcpOptionApiService deleteDhcpOptionsRequest *DeleteDhcpOptionsRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteDhcpOptionsRequest) Execute() (DeleteDhcpOptionsResponse, *_net func (a *DhcpOptionApiService) DeleteDhcpOptions(ctx _context.Context) ApiDeleteDhcpOptionsRequest { return ApiDeleteDhcpOptionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *DhcpOptionApiService) DeleteDhcpOptionsExecute(r ApiDeleteDhcpOptionsRe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *DhcpOptionApiService) DeleteDhcpOptionsExecute(r ApiDeleteDhcpOptionsRe } type ApiReadDhcpOptionsRequest struct { - ctx _context.Context - ApiService *DhcpOptionApiService + ctx _context.Context + ApiService *DhcpOptionApiService readDhcpOptionsRequest *ReadDhcpOptionsRequest } @@ -291,7 +294,7 @@ func (r ApiReadDhcpOptionsRequest) Execute() (ReadDhcpOptionsResponse, *_nethttp func (a *DhcpOptionApiService) ReadDhcpOptions(ctx _context.Context) ApiReadDhcpOptionsRequest { return ApiReadDhcpOptionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *DhcpOptionApiService) ReadDhcpOptionsExecute(r ApiReadDhcpOptionsReques localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link.go index 0f6c58605..10139a82e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type DirectLinkApiService service type ApiCreateDirectLinkRequest struct { - ctx _context.Context - ApiService *DirectLinkApiService + ctx _context.Context + ApiService *DirectLinkApiService createDirectLinkRequest *CreateDirectLinkRequest } @@ -49,7 +50,7 @@ func (r ApiCreateDirectLinkRequest) Execute() (CreateDirectLinkResponse, *_netht func (a *DirectLinkApiService) CreateDirectLink(ctx _context.Context) ApiCreateDirectLinkRequest { return ApiCreateDirectLinkRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *DirectLinkApiService) CreateDirectLinkExecute(r ApiCreateDirectLinkRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *DirectLinkApiService) CreateDirectLinkExecute(r ApiCreateDirectLinkRequ } type ApiDeleteDirectLinkRequest struct { - ctx _context.Context - ApiService *DirectLinkApiService + ctx _context.Context + ApiService *DirectLinkApiService deleteDirectLinkRequest *DeleteDirectLinkRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteDirectLinkRequest) Execute() (DeleteDirectLinkResponse, *_netht func (a *DirectLinkApiService) DeleteDirectLink(ctx _context.Context) ApiDeleteDirectLinkRequest { return ApiDeleteDirectLinkRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *DirectLinkApiService) DeleteDirectLinkExecute(r ApiDeleteDirectLinkRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *DirectLinkApiService) DeleteDirectLinkExecute(r ApiDeleteDirectLinkRequ } type ApiReadDirectLinksRequest struct { - ctx _context.Context - ApiService *DirectLinkApiService + ctx _context.Context + ApiService *DirectLinkApiService readDirectLinksRequest *ReadDirectLinksRequest } @@ -291,7 +294,7 @@ func (r ApiReadDirectLinksRequest) Execute() (ReadDirectLinksResponse, *_nethttp func (a *DirectLinkApiService) ReadDirectLinks(ctx _context.Context) ApiReadDirectLinksRequest { return ApiReadDirectLinksRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *DirectLinkApiService) ReadDirectLinksExecute(r ApiReadDirectLinksReques localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link_interface.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link_interface.go index d3eb2655e..8f3edf06d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link_interface.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_direct_link_interface.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type DirectLinkInterfaceApiService service type ApiCreateDirectLinkInterfaceRequest struct { - ctx _context.Context - ApiService *DirectLinkInterfaceApiService + ctx _context.Context + ApiService *DirectLinkInterfaceApiService createDirectLinkInterfaceRequest *CreateDirectLinkInterfaceRequest } @@ -49,7 +50,7 @@ func (r ApiCreateDirectLinkInterfaceRequest) Execute() (CreateDirectLinkInterfac func (a *DirectLinkInterfaceApiService) CreateDirectLinkInterface(ctx _context.Context) ApiCreateDirectLinkInterfaceRequest { return ApiCreateDirectLinkInterfaceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *DirectLinkInterfaceApiService) CreateDirectLinkInterfaceExecute(r ApiCr localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *DirectLinkInterfaceApiService) CreateDirectLinkInterfaceExecute(r ApiCr } type ApiDeleteDirectLinkInterfaceRequest struct { - ctx _context.Context - ApiService *DirectLinkInterfaceApiService + ctx _context.Context + ApiService *DirectLinkInterfaceApiService deleteDirectLinkInterfaceRequest *DeleteDirectLinkInterfaceRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteDirectLinkInterfaceRequest) Execute() (DeleteDirectLinkInterfac func (a *DirectLinkInterfaceApiService) DeleteDirectLinkInterface(ctx _context.Context) ApiDeleteDirectLinkInterfaceRequest { return ApiDeleteDirectLinkInterfaceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *DirectLinkInterfaceApiService) DeleteDirectLinkInterfaceExecute(r ApiDe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *DirectLinkInterfaceApiService) DeleteDirectLinkInterfaceExecute(r ApiDe } type ApiReadDirectLinkInterfacesRequest struct { - ctx _context.Context - ApiService *DirectLinkInterfaceApiService + ctx _context.Context + ApiService *DirectLinkInterfaceApiService readDirectLinkInterfacesRequest *ReadDirectLinkInterfacesRequest } @@ -291,7 +294,7 @@ func (r ApiReadDirectLinkInterfacesRequest) Execute() (ReadDirectLinkInterfacesR func (a *DirectLinkInterfaceApiService) ReadDirectLinkInterfaces(ctx _context.Context) ApiReadDirectLinkInterfacesRequest { return ApiReadDirectLinkInterfacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *DirectLinkInterfaceApiService) ReadDirectLinkInterfacesExecute(r ApiRea localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_flexible_gpu.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_flexible_gpu.go index 6f323c121..24188fc1a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_flexible_gpu.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_flexible_gpu.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type FlexibleGpuApiService service type ApiCreateFlexibleGpuRequest struct { - ctx _context.Context - ApiService *FlexibleGpuApiService + ctx _context.Context + ApiService *FlexibleGpuApiService createFlexibleGpuRequest *CreateFlexibleGpuRequest } @@ -49,7 +50,7 @@ func (r ApiCreateFlexibleGpuRequest) Execute() (CreateFlexibleGpuResponse, *_net func (a *FlexibleGpuApiService) CreateFlexibleGpu(ctx _context.Context) ApiCreateFlexibleGpuRequest { return ApiCreateFlexibleGpuRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *FlexibleGpuApiService) CreateFlexibleGpuExecute(r ApiCreateFlexibleGpuR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *FlexibleGpuApiService) CreateFlexibleGpuExecute(r ApiCreateFlexibleGpuR } type ApiDeleteFlexibleGpuRequest struct { - ctx _context.Context - ApiService *FlexibleGpuApiService + ctx _context.Context + ApiService *FlexibleGpuApiService deleteFlexibleGpuRequest *DeleteFlexibleGpuRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteFlexibleGpuRequest) Execute() (DeleteFlexibleGpuResponse, *_net func (a *FlexibleGpuApiService) DeleteFlexibleGpu(ctx _context.Context) ApiDeleteFlexibleGpuRequest { return ApiDeleteFlexibleGpuRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *FlexibleGpuApiService) DeleteFlexibleGpuExecute(r ApiDeleteFlexibleGpuR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *FlexibleGpuApiService) DeleteFlexibleGpuExecute(r ApiDeleteFlexibleGpuR } type ApiLinkFlexibleGpuRequest struct { - ctx _context.Context - ApiService *FlexibleGpuApiService + ctx _context.Context + ApiService *FlexibleGpuApiService linkFlexibleGpuRequest *LinkFlexibleGpuRequest } @@ -291,7 +294,7 @@ func (r ApiLinkFlexibleGpuRequest) Execute() (LinkFlexibleGpuResponse, *_nethttp func (a *FlexibleGpuApiService) LinkFlexibleGpu(ctx _context.Context) ApiLinkFlexibleGpuRequest { return ApiLinkFlexibleGpuRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *FlexibleGpuApiService) LinkFlexibleGpuExecute(r ApiLinkFlexibleGpuReque localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *FlexibleGpuApiService) LinkFlexibleGpuExecute(r ApiLinkFlexibleGpuReque } type ApiReadFlexibleGpuCatalogRequest struct { - ctx _context.Context - ApiService *FlexibleGpuApiService + ctx _context.Context + ApiService *FlexibleGpuApiService readFlexibleGpuCatalogRequest *ReadFlexibleGpuCatalogRequest } @@ -412,7 +416,7 @@ func (r ApiReadFlexibleGpuCatalogRequest) Execute() (ReadFlexibleGpuCatalogRespo func (a *FlexibleGpuApiService) ReadFlexibleGpuCatalog(ctx _context.Context) ApiReadFlexibleGpuCatalogRequest { return ApiReadFlexibleGpuCatalogRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -472,6 +476,7 @@ func (a *FlexibleGpuApiService) ReadFlexibleGpuCatalogExecute(r ApiReadFlexibleG localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -497,8 +502,8 @@ func (a *FlexibleGpuApiService) ReadFlexibleGpuCatalogExecute(r ApiReadFlexibleG } type ApiReadFlexibleGpusRequest struct { - ctx _context.Context - ApiService *FlexibleGpuApiService + ctx _context.Context + ApiService *FlexibleGpuApiService readFlexibleGpusRequest *ReadFlexibleGpusRequest } @@ -519,7 +524,7 @@ func (r ApiReadFlexibleGpusRequest) Execute() (ReadFlexibleGpusResponse, *_netht func (a *FlexibleGpuApiService) ReadFlexibleGpus(ctx _context.Context) ApiReadFlexibleGpusRequest { return ApiReadFlexibleGpusRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -593,6 +598,7 @@ func (a *FlexibleGpuApiService) ReadFlexibleGpusExecute(r ApiReadFlexibleGpusReq localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -618,8 +624,8 @@ func (a *FlexibleGpuApiService) ReadFlexibleGpusExecute(r ApiReadFlexibleGpusReq } type ApiUnlinkFlexibleGpuRequest struct { - ctx _context.Context - ApiService *FlexibleGpuApiService + ctx _context.Context + ApiService *FlexibleGpuApiService unlinkFlexibleGpuRequest *UnlinkFlexibleGpuRequest } @@ -640,7 +646,7 @@ func (r ApiUnlinkFlexibleGpuRequest) Execute() (UnlinkFlexibleGpuResponse, *_net func (a *FlexibleGpuApiService) UnlinkFlexibleGpu(ctx _context.Context) ApiUnlinkFlexibleGpuRequest { return ApiUnlinkFlexibleGpuRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -714,6 +720,7 @@ func (a *FlexibleGpuApiService) UnlinkFlexibleGpuExecute(r ApiUnlinkFlexibleGpuR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -739,8 +746,8 @@ func (a *FlexibleGpuApiService) UnlinkFlexibleGpuExecute(r ApiUnlinkFlexibleGpuR } type ApiUpdateFlexibleGpuRequest struct { - ctx _context.Context - ApiService *FlexibleGpuApiService + ctx _context.Context + ApiService *FlexibleGpuApiService updateFlexibleGpuRequest *UpdateFlexibleGpuRequest } @@ -761,7 +768,7 @@ func (r ApiUpdateFlexibleGpuRequest) Execute() (UpdateFlexibleGpuResponse, *_net func (a *FlexibleGpuApiService) UpdateFlexibleGpu(ctx _context.Context) ApiUpdateFlexibleGpuRequest { return ApiUpdateFlexibleGpuRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -835,6 +842,7 @@ func (a *FlexibleGpuApiService) UpdateFlexibleGpuExecute(r ApiUpdateFlexibleGpuR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_image.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_image.go index 832ffa208..205fd640d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_image.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_image.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type ImageApiService service type ApiCreateImageRequest struct { - ctx _context.Context - ApiService *ImageApiService + ctx _context.Context + ApiService *ImageApiService createImageRequest *CreateImageRequest } @@ -49,7 +50,7 @@ func (r ApiCreateImageRequest) Execute() (CreateImageResponse, *_nethttp.Respons func (a *ImageApiService) CreateImage(ctx _context.Context) ApiCreateImageRequest { return ApiCreateImageRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *ImageApiService) CreateImageExecute(r ApiCreateImageRequest) (CreateIma localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *ImageApiService) CreateImageExecute(r ApiCreateImageRequest) (CreateIma } type ApiCreateImageExportTaskRequest struct { - ctx _context.Context - ApiService *ImageApiService + ctx _context.Context + ApiService *ImageApiService createImageExportTaskRequest *CreateImageExportTaskRequest } @@ -199,7 +201,7 @@ func (r ApiCreateImageExportTaskRequest) Execute() (CreateImageExportTaskRespons func (a *ImageApiService) CreateImageExportTask(ctx _context.Context) ApiCreateImageExportTaskRequest { return ApiCreateImageExportTaskRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *ImageApiService) CreateImageExportTaskExecute(r ApiCreateImageExportTas localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -298,8 +301,8 @@ func (a *ImageApiService) CreateImageExportTaskExecute(r ApiCreateImageExportTas } type ApiDeleteImageRequest struct { - ctx _context.Context - ApiService *ImageApiService + ctx _context.Context + ApiService *ImageApiService deleteImageRequest *DeleteImageRequest } @@ -320,7 +323,7 @@ func (r ApiDeleteImageRequest) Execute() (DeleteImageResponse, *_nethttp.Respons func (a *ImageApiService) DeleteImage(ctx _context.Context) ApiDeleteImageRequest { return ApiDeleteImageRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -394,6 +397,7 @@ func (a *ImageApiService) DeleteImageExecute(r ApiDeleteImageRequest) (DeleteIma localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -448,8 +452,8 @@ func (a *ImageApiService) DeleteImageExecute(r ApiDeleteImageRequest) (DeleteIma } type ApiReadImageExportTasksRequest struct { - ctx _context.Context - ApiService *ImageApiService + ctx _context.Context + ApiService *ImageApiService readImageExportTasksRequest *ReadImageExportTasksRequest } @@ -470,7 +474,7 @@ func (r ApiReadImageExportTasksRequest) Execute() (ReadImageExportTasksResponse, func (a *ImageApiService) ReadImageExportTasks(ctx _context.Context) ApiReadImageExportTasksRequest { return ApiReadImageExportTasksRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -544,6 +548,7 @@ func (a *ImageApiService) ReadImageExportTasksExecute(r ApiReadImageExportTasksR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -569,8 +574,8 @@ func (a *ImageApiService) ReadImageExportTasksExecute(r ApiReadImageExportTasksR } type ApiReadImagesRequest struct { - ctx _context.Context - ApiService *ImageApiService + ctx _context.Context + ApiService *ImageApiService readImagesRequest *ReadImagesRequest } @@ -591,7 +596,7 @@ func (r ApiReadImagesRequest) Execute() (ReadImagesResponse, *_nethttp.Response, func (a *ImageApiService) ReadImages(ctx _context.Context) ApiReadImagesRequest { return ApiReadImagesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -665,6 +670,7 @@ func (a *ImageApiService) ReadImagesExecute(r ApiReadImagesRequest) (ReadImagesR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -719,8 +725,8 @@ func (a *ImageApiService) ReadImagesExecute(r ApiReadImagesRequest) (ReadImagesR } type ApiUpdateImageRequest struct { - ctx _context.Context - ApiService *ImageApiService + ctx _context.Context + ApiService *ImageApiService updateImageRequest *UpdateImageRequest } @@ -741,7 +747,7 @@ func (r ApiUpdateImageRequest) Execute() (UpdateImageResponse, *_nethttp.Respons func (a *ImageApiService) UpdateImage(ctx _context.Context) ApiUpdateImageRequest { return ApiUpdateImageRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -815,6 +821,7 @@ func (a *ImageApiService) UpdateImageExecute(r ApiUpdateImageRequest) (UpdateIma localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_internet_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_internet_service.go index 3f7dff4f5..29bf13226 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_internet_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_internet_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type InternetServiceApiService service type ApiCreateInternetServiceRequest struct { - ctx _context.Context - ApiService *InternetServiceApiService + ctx _context.Context + ApiService *InternetServiceApiService createInternetServiceRequest *CreateInternetServiceRequest } @@ -49,7 +50,7 @@ func (r ApiCreateInternetServiceRequest) Execute() (CreateInternetServiceRespons func (a *InternetServiceApiService) CreateInternetService(ctx _context.Context) ApiCreateInternetServiceRequest { return ApiCreateInternetServiceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *InternetServiceApiService) CreateInternetServiceExecute(r ApiCreateInte localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *InternetServiceApiService) CreateInternetServiceExecute(r ApiCreateInte } type ApiDeleteInternetServiceRequest struct { - ctx _context.Context - ApiService *InternetServiceApiService + ctx _context.Context + ApiService *InternetServiceApiService deleteInternetServiceRequest *DeleteInternetServiceRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteInternetServiceRequest) Execute() (DeleteInternetServiceRespons func (a *InternetServiceApiService) DeleteInternetService(ctx _context.Context) ApiDeleteInternetServiceRequest { return ApiDeleteInternetServiceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *InternetServiceApiService) DeleteInternetServiceExecute(r ApiDeleteInte localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *InternetServiceApiService) DeleteInternetServiceExecute(r ApiDeleteInte } type ApiLinkInternetServiceRequest struct { - ctx _context.Context - ApiService *InternetServiceApiService + ctx _context.Context + ApiService *InternetServiceApiService linkInternetServiceRequest *LinkInternetServiceRequest } @@ -349,7 +352,7 @@ func (r ApiLinkInternetServiceRequest) Execute() (LinkInternetServiceResponse, * func (a *InternetServiceApiService) LinkInternetService(ctx _context.Context) ApiLinkInternetServiceRequest { return ApiLinkInternetServiceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *InternetServiceApiService) LinkInternetServiceExecute(r ApiLinkInternet localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -477,8 +481,8 @@ func (a *InternetServiceApiService) LinkInternetServiceExecute(r ApiLinkInternet } type ApiReadInternetServicesRequest struct { - ctx _context.Context - ApiService *InternetServiceApiService + ctx _context.Context + ApiService *InternetServiceApiService readInternetServicesRequest *ReadInternetServicesRequest } @@ -499,7 +503,7 @@ func (r ApiReadInternetServicesRequest) Execute() (ReadInternetServicesResponse, func (a *InternetServiceApiService) ReadInternetServices(ctx _context.Context) ApiReadInternetServicesRequest { return ApiReadInternetServicesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -573,6 +577,7 @@ func (a *InternetServiceApiService) ReadInternetServicesExecute(r ApiReadInterne localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -627,8 +632,8 @@ func (a *InternetServiceApiService) ReadInternetServicesExecute(r ApiReadInterne } type ApiUnlinkInternetServiceRequest struct { - ctx _context.Context - ApiService *InternetServiceApiService + ctx _context.Context + ApiService *InternetServiceApiService unlinkInternetServiceRequest *UnlinkInternetServiceRequest } @@ -649,7 +654,7 @@ func (r ApiUnlinkInternetServiceRequest) Execute() (UnlinkInternetServiceRespons func (a *InternetServiceApiService) UnlinkInternetService(ctx _context.Context) ApiUnlinkInternetServiceRequest { return ApiUnlinkInternetServiceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -723,6 +728,7 @@ func (a *InternetServiceApiService) UnlinkInternetServiceExecute(r ApiUnlinkInte localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_keypair.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_keypair.go index b2307db8f..62956222e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_keypair.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_keypair.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type KeypairApiService service type ApiCreateKeypairRequest struct { - ctx _context.Context - ApiService *KeypairApiService + ctx _context.Context + ApiService *KeypairApiService createKeypairRequest *CreateKeypairRequest } @@ -49,7 +50,7 @@ func (r ApiCreateKeypairRequest) Execute() (CreateKeypairResponse, *_nethttp.Res func (a *KeypairApiService) CreateKeypair(ctx _context.Context) ApiCreateKeypairRequest { return ApiCreateKeypairRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *KeypairApiService) CreateKeypairExecute(r ApiCreateKeypairRequest) (Cre localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -187,8 +189,8 @@ func (a *KeypairApiService) CreateKeypairExecute(r ApiCreateKeypairRequest) (Cre } type ApiDeleteKeypairRequest struct { - ctx _context.Context - ApiService *KeypairApiService + ctx _context.Context + ApiService *KeypairApiService deleteKeypairRequest *DeleteKeypairRequest } @@ -209,7 +211,7 @@ func (r ApiDeleteKeypairRequest) Execute() (DeleteKeypairResponse, *_nethttp.Res func (a *KeypairApiService) DeleteKeypair(ctx _context.Context) ApiDeleteKeypairRequest { return ApiDeleteKeypairRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -283,6 +285,7 @@ func (a *KeypairApiService) DeleteKeypairExecute(r ApiDeleteKeypairRequest) (Del localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -337,8 +340,8 @@ func (a *KeypairApiService) DeleteKeypairExecute(r ApiDeleteKeypairRequest) (Del } type ApiReadKeypairsRequest struct { - ctx _context.Context - ApiService *KeypairApiService + ctx _context.Context + ApiService *KeypairApiService readKeypairsRequest *ReadKeypairsRequest } @@ -359,7 +362,7 @@ func (r ApiReadKeypairsRequest) Execute() (ReadKeypairsResponse, *_nethttp.Respo func (a *KeypairApiService) ReadKeypairs(ctx _context.Context) ApiReadKeypairsRequest { return ApiReadKeypairsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -433,6 +436,7 @@ func (a *KeypairApiService) ReadKeypairsExecute(r ApiReadKeypairsRequest) (ReadK localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_listener.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_listener.go index 12440cfdf..f3c69bbfc 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_listener.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_listener.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type ListenerApiService service type ApiCreateListenerRuleRequest struct { - ctx _context.Context - ApiService *ListenerApiService + ctx _context.Context + ApiService *ListenerApiService createListenerRuleRequest *CreateListenerRuleRequest } @@ -49,7 +50,7 @@ func (r ApiCreateListenerRuleRequest) Execute() (CreateListenerRuleResponse, *_n func (a *ListenerApiService) CreateListenerRule(ctx _context.Context) ApiCreateListenerRuleRequest { return ApiCreateListenerRuleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *ListenerApiService) CreateListenerRuleExecute(r ApiCreateListenerRuleRe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *ListenerApiService) CreateListenerRuleExecute(r ApiCreateListenerRuleRe } type ApiCreateLoadBalancerListenersRequest struct { - ctx _context.Context - ApiService *ListenerApiService + ctx _context.Context + ApiService *ListenerApiService createLoadBalancerListenersRequest *CreateLoadBalancerListenersRequest } @@ -170,7 +172,7 @@ func (r ApiCreateLoadBalancerListenersRequest) Execute() (CreateLoadBalancerList func (a *ListenerApiService) CreateLoadBalancerListeners(ctx _context.Context) ApiCreateLoadBalancerListenersRequest { return ApiCreateLoadBalancerListenersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *ListenerApiService) CreateLoadBalancerListenersExecute(r ApiCreateLoadB localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *ListenerApiService) CreateLoadBalancerListenersExecute(r ApiCreateLoadB } type ApiDeleteListenerRuleRequest struct { - ctx _context.Context - ApiService *ListenerApiService + ctx _context.Context + ApiService *ListenerApiService deleteListenerRuleRequest *DeleteListenerRuleRequest } @@ -291,7 +294,7 @@ func (r ApiDeleteListenerRuleRequest) Execute() (DeleteListenerRuleResponse, *_n func (a *ListenerApiService) DeleteListenerRule(ctx _context.Context) ApiDeleteListenerRuleRequest { return ApiDeleteListenerRuleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *ListenerApiService) DeleteListenerRuleExecute(r ApiDeleteListenerRuleRe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *ListenerApiService) DeleteListenerRuleExecute(r ApiDeleteListenerRuleRe } type ApiDeleteLoadBalancerListenersRequest struct { - ctx _context.Context - ApiService *ListenerApiService + ctx _context.Context + ApiService *ListenerApiService deleteLoadBalancerListenersRequest *DeleteLoadBalancerListenersRequest } @@ -412,7 +416,7 @@ func (r ApiDeleteLoadBalancerListenersRequest) Execute() (DeleteLoadBalancerList func (a *ListenerApiService) DeleteLoadBalancerListeners(ctx _context.Context) ApiDeleteLoadBalancerListenersRequest { return ApiDeleteLoadBalancerListenersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -486,6 +490,7 @@ func (a *ListenerApiService) DeleteLoadBalancerListenersExecute(r ApiDeleteLoadB localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -511,8 +516,8 @@ func (a *ListenerApiService) DeleteLoadBalancerListenersExecute(r ApiDeleteLoadB } type ApiReadListenerRulesRequest struct { - ctx _context.Context - ApiService *ListenerApiService + ctx _context.Context + ApiService *ListenerApiService readListenerRulesRequest *ReadListenerRulesRequest } @@ -533,7 +538,7 @@ func (r ApiReadListenerRulesRequest) Execute() (ReadListenerRulesResponse, *_net func (a *ListenerApiService) ReadListenerRules(ctx _context.Context) ApiReadListenerRulesRequest { return ApiReadListenerRulesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -607,6 +612,7 @@ func (a *ListenerApiService) ReadListenerRulesExecute(r ApiReadListenerRulesRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -632,8 +638,8 @@ func (a *ListenerApiService) ReadListenerRulesExecute(r ApiReadListenerRulesRequ } type ApiUpdateListenerRuleRequest struct { - ctx _context.Context - ApiService *ListenerApiService + ctx _context.Context + ApiService *ListenerApiService updateListenerRuleRequest *UpdateListenerRuleRequest } @@ -654,7 +660,7 @@ func (r ApiUpdateListenerRuleRequest) Execute() (UpdateListenerRuleResponse, *_n func (a *ListenerApiService) UpdateListenerRule(ctx _context.Context) ApiUpdateListenerRuleRequest { return ApiUpdateListenerRuleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -728,6 +734,7 @@ func (a *ListenerApiService) UpdateListenerRuleExecute(r ApiUpdateListenerRuleRe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer.go index 25bbc0633..ec9480576 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type LoadBalancerApiService service type ApiCreateLoadBalancerRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService createLoadBalancerRequest *CreateLoadBalancerRequest } @@ -49,7 +50,7 @@ func (r ApiCreateLoadBalancerRequest) Execute() (CreateLoadBalancerResponse, *_n func (a *LoadBalancerApiService) CreateLoadBalancer(ctx _context.Context) ApiCreateLoadBalancerRequest { return ApiCreateLoadBalancerRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *LoadBalancerApiService) CreateLoadBalancerExecute(r ApiCreateLoadBalanc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *LoadBalancerApiService) CreateLoadBalancerExecute(r ApiCreateLoadBalanc } type ApiCreateLoadBalancerTagsRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService createLoadBalancerTagsRequest *CreateLoadBalancerTagsRequest } @@ -170,7 +172,7 @@ func (r ApiCreateLoadBalancerTagsRequest) Execute() (CreateLoadBalancerTagsRespo func (a *LoadBalancerApiService) CreateLoadBalancerTags(ctx _context.Context) ApiCreateLoadBalancerTagsRequest { return ApiCreateLoadBalancerTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *LoadBalancerApiService) CreateLoadBalancerTagsExecute(r ApiCreateLoadBa localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *LoadBalancerApiService) CreateLoadBalancerTagsExecute(r ApiCreateLoadBa } type ApiDeleteLoadBalancerRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService deleteLoadBalancerRequest *DeleteLoadBalancerRequest } @@ -291,7 +294,7 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (DeleteLoadBalancerResponse, *_n func (a *LoadBalancerApiService) DeleteLoadBalancer(ctx _context.Context) ApiDeleteLoadBalancerRequest { return ApiDeleteLoadBalancerRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *LoadBalancerApiService) DeleteLoadBalancerExecute(r ApiDeleteLoadBalanc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *LoadBalancerApiService) DeleteLoadBalancerExecute(r ApiDeleteLoadBalanc } type ApiDeleteLoadBalancerTagsRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService deleteLoadBalancerTagsRequest *DeleteLoadBalancerTagsRequest } @@ -412,7 +416,7 @@ func (r ApiDeleteLoadBalancerTagsRequest) Execute() (DeleteLoadBalancerTagsRespo func (a *LoadBalancerApiService) DeleteLoadBalancerTags(ctx _context.Context) ApiDeleteLoadBalancerTagsRequest { return ApiDeleteLoadBalancerTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -486,6 +490,7 @@ func (a *LoadBalancerApiService) DeleteLoadBalancerTagsExecute(r ApiDeleteLoadBa localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -511,8 +516,8 @@ func (a *LoadBalancerApiService) DeleteLoadBalancerTagsExecute(r ApiDeleteLoadBa } type ApiDeregisterVmsInLoadBalancerRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService deregisterVmsInLoadBalancerRequest *DeregisterVmsInLoadBalancerRequest } @@ -533,7 +538,7 @@ func (r ApiDeregisterVmsInLoadBalancerRequest) Execute() (DeregisterVmsInLoadBal func (a *LoadBalancerApiService) DeregisterVmsInLoadBalancer(ctx _context.Context) ApiDeregisterVmsInLoadBalancerRequest { return ApiDeregisterVmsInLoadBalancerRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -607,6 +612,7 @@ func (a *LoadBalancerApiService) DeregisterVmsInLoadBalancerExecute(r ApiDeregis localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -632,8 +638,8 @@ func (a *LoadBalancerApiService) DeregisterVmsInLoadBalancerExecute(r ApiDeregis } type ApiReadLoadBalancerTagsRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService readLoadBalancerTagsRequest *ReadLoadBalancerTagsRequest } @@ -654,7 +660,7 @@ func (r ApiReadLoadBalancerTagsRequest) Execute() (ReadLoadBalancerTagsResponse, func (a *LoadBalancerApiService) ReadLoadBalancerTags(ctx _context.Context) ApiReadLoadBalancerTagsRequest { return ApiReadLoadBalancerTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -728,6 +734,7 @@ func (a *LoadBalancerApiService) ReadLoadBalancerTagsExecute(r ApiReadLoadBalanc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -753,8 +760,8 @@ func (a *LoadBalancerApiService) ReadLoadBalancerTagsExecute(r ApiReadLoadBalanc } type ApiReadLoadBalancersRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService readLoadBalancersRequest *ReadLoadBalancersRequest } @@ -775,7 +782,7 @@ func (r ApiReadLoadBalancersRequest) Execute() (ReadLoadBalancersResponse, *_net func (a *LoadBalancerApiService) ReadLoadBalancers(ctx _context.Context) ApiReadLoadBalancersRequest { return ApiReadLoadBalancersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -849,6 +856,7 @@ func (a *LoadBalancerApiService) ReadLoadBalancersExecute(r ApiReadLoadBalancers localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -874,8 +882,8 @@ func (a *LoadBalancerApiService) ReadLoadBalancersExecute(r ApiReadLoadBalancers } type ApiReadVmsHealthRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService readVmsHealthRequest *ReadVmsHealthRequest } @@ -896,7 +904,7 @@ func (r ApiReadVmsHealthRequest) Execute() (ReadVmsHealthResponse, *_nethttp.Res func (a *LoadBalancerApiService) ReadVmsHealth(ctx _context.Context) ApiReadVmsHealthRequest { return ApiReadVmsHealthRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -970,6 +978,7 @@ func (a *LoadBalancerApiService) ReadVmsHealthExecute(r ApiReadVmsHealthRequest) localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -995,8 +1004,8 @@ func (a *LoadBalancerApiService) ReadVmsHealthExecute(r ApiReadVmsHealthRequest) } type ApiRegisterVmsInLoadBalancerRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService registerVmsInLoadBalancerRequest *RegisterVmsInLoadBalancerRequest } @@ -1017,7 +1026,7 @@ func (r ApiRegisterVmsInLoadBalancerRequest) Execute() (RegisterVmsInLoadBalance func (a *LoadBalancerApiService) RegisterVmsInLoadBalancer(ctx _context.Context) ApiRegisterVmsInLoadBalancerRequest { return ApiRegisterVmsInLoadBalancerRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1091,6 +1100,7 @@ func (a *LoadBalancerApiService) RegisterVmsInLoadBalancerExecute(r ApiRegisterV localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1116,8 +1126,8 @@ func (a *LoadBalancerApiService) RegisterVmsInLoadBalancerExecute(r ApiRegisterV } type ApiUpdateLoadBalancerRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService + ctx _context.Context + ApiService *LoadBalancerApiService updateLoadBalancerRequest *UpdateLoadBalancerRequest } @@ -1138,7 +1148,7 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (UpdateLoadBalancerResponse, *_n func (a *LoadBalancerApiService) UpdateLoadBalancer(ctx _context.Context) ApiUpdateLoadBalancerRequest { return ApiUpdateLoadBalancerRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1212,6 +1222,7 @@ func (a *LoadBalancerApiService) UpdateLoadBalancerExecute(r ApiUpdateLoadBalanc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer_policy.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer_policy.go index 443422f4c..4d4129891 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer_policy.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_load_balancer_policy.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type LoadBalancerPolicyApiService service type ApiCreateLoadBalancerPolicyRequest struct { - ctx _context.Context - ApiService *LoadBalancerPolicyApiService + ctx _context.Context + ApiService *LoadBalancerPolicyApiService createLoadBalancerPolicyRequest *CreateLoadBalancerPolicyRequest } @@ -49,7 +50,7 @@ func (r ApiCreateLoadBalancerPolicyRequest) Execute() (CreateLoadBalancerPolicyR func (a *LoadBalancerPolicyApiService) CreateLoadBalancerPolicy(ctx _context.Context) ApiCreateLoadBalancerPolicyRequest { return ApiCreateLoadBalancerPolicyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *LoadBalancerPolicyApiService) CreateLoadBalancerPolicyExecute(r ApiCrea localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *LoadBalancerPolicyApiService) CreateLoadBalancerPolicyExecute(r ApiCrea } type ApiDeleteLoadBalancerPolicyRequest struct { - ctx _context.Context - ApiService *LoadBalancerPolicyApiService + ctx _context.Context + ApiService *LoadBalancerPolicyApiService deleteLoadBalancerPolicyRequest *DeleteLoadBalancerPolicyRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteLoadBalancerPolicyRequest) Execute() (DeleteLoadBalancerPolicyR func (a *LoadBalancerPolicyApiService) DeleteLoadBalancerPolicy(ctx _context.Context) ApiDeleteLoadBalancerPolicyRequest { return ApiDeleteLoadBalancerPolicyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *LoadBalancerPolicyApiService) DeleteLoadBalancerPolicyExecute(r ApiDele localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_location.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_location.go index e4ab8fbe8..2effb17c7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_location.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_location.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type LocationApiService service type ApiReadLocationsRequest struct { - ctx _context.Context - ApiService *LocationApiService + ctx _context.Context + ApiService *LocationApiService readLocationsRequest *ReadLocationsRequest } @@ -49,7 +50,7 @@ func (r ApiReadLocationsRequest) Execute() (ReadLocationsResponse, *_nethttp.Res func (a *LocationApiService) ReadLocations(ctx _context.Context) ApiReadLocationsRequest { return ApiReadLocationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -109,6 +110,7 @@ func (a *LocationApiService) ReadLocationsExecute(r ApiReadLocationsRequest) (Re localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_nat_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_nat_service.go index a3aa9a89f..c743afed8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_nat_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_nat_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type NatServiceApiService service type ApiCreateNatServiceRequest struct { - ctx _context.Context - ApiService *NatServiceApiService + ctx _context.Context + ApiService *NatServiceApiService createNatServiceRequest *CreateNatServiceRequest } @@ -49,7 +50,7 @@ func (r ApiCreateNatServiceRequest) Execute() (CreateNatServiceResponse, *_netht func (a *NatServiceApiService) CreateNatService(ctx _context.Context) ApiCreateNatServiceRequest { return ApiCreateNatServiceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *NatServiceApiService) CreateNatServiceExecute(r ApiCreateNatServiceRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *NatServiceApiService) CreateNatServiceExecute(r ApiCreateNatServiceRequ } type ApiDeleteNatServiceRequest struct { - ctx _context.Context - ApiService *NatServiceApiService + ctx _context.Context + ApiService *NatServiceApiService deleteNatServiceRequest *DeleteNatServiceRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteNatServiceRequest) Execute() (DeleteNatServiceResponse, *_netht func (a *NatServiceApiService) DeleteNatService(ctx _context.Context) ApiDeleteNatServiceRequest { return ApiDeleteNatServiceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *NatServiceApiService) DeleteNatServiceExecute(r ApiDeleteNatServiceRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *NatServiceApiService) DeleteNatServiceExecute(r ApiDeleteNatServiceRequ } type ApiReadNatServicesRequest struct { - ctx _context.Context - ApiService *NatServiceApiService + ctx _context.Context + ApiService *NatServiceApiService readNatServicesRequest *ReadNatServicesRequest } @@ -349,7 +352,7 @@ func (r ApiReadNatServicesRequest) Execute() (ReadNatServicesResponse, *_nethttp func (a *NatServiceApiService) ReadNatServices(ctx _context.Context) ApiReadNatServicesRequest { return ApiReadNatServicesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *NatServiceApiService) ReadNatServicesExecute(r ApiReadNatServicesReques localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_net.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_net.go index a6720b59b..4e21da2f3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_net.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_net.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type NetApiService service type ApiCreateNetRequest struct { - ctx _context.Context - ApiService *NetApiService + ctx _context.Context + ApiService *NetApiService createNetRequest *CreateNetRequest } @@ -49,7 +50,7 @@ func (r ApiCreateNetRequest) Execute() (CreateNetResponse, *_nethttp.Response, e func (a *NetApiService) CreateNet(ctx _context.Context) ApiCreateNetRequest { return ApiCreateNetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *NetApiService) CreateNetExecute(r ApiCreateNetRequest) (CreateNetRespon localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -187,8 +189,8 @@ func (a *NetApiService) CreateNetExecute(r ApiCreateNetRequest) (CreateNetRespon } type ApiDeleteNetRequest struct { - ctx _context.Context - ApiService *NetApiService + ctx _context.Context + ApiService *NetApiService deleteNetRequest *DeleteNetRequest } @@ -209,7 +211,7 @@ func (r ApiDeleteNetRequest) Execute() (DeleteNetResponse, *_nethttp.Response, e func (a *NetApiService) DeleteNet(ctx _context.Context) ApiDeleteNetRequest { return ApiDeleteNetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -283,6 +285,7 @@ func (a *NetApiService) DeleteNetExecute(r ApiDeleteNetRequest) (DeleteNetRespon localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -337,8 +340,8 @@ func (a *NetApiService) DeleteNetExecute(r ApiDeleteNetRequest) (DeleteNetRespon } type ApiReadNetsRequest struct { - ctx _context.Context - ApiService *NetApiService + ctx _context.Context + ApiService *NetApiService readNetsRequest *ReadNetsRequest } @@ -359,7 +362,7 @@ func (r ApiReadNetsRequest) Execute() (ReadNetsResponse, *_nethttp.Response, err func (a *NetApiService) ReadNets(ctx _context.Context) ApiReadNetsRequest { return ApiReadNetsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -433,6 +436,7 @@ func (a *NetApiService) ReadNetsExecute(r ApiReadNetsRequest) (ReadNetsResponse, localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -487,8 +491,8 @@ func (a *NetApiService) ReadNetsExecute(r ApiReadNetsRequest) (ReadNetsResponse, } type ApiUpdateNetRequest struct { - ctx _context.Context - ApiService *NetApiService + ctx _context.Context + ApiService *NetApiService updateNetRequest *UpdateNetRequest } @@ -509,7 +513,7 @@ func (r ApiUpdateNetRequest) Execute() (UpdateNetResponse, *_nethttp.Response, e func (a *NetApiService) UpdateNet(ctx _context.Context) ApiUpdateNetRequest { return ApiUpdateNetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -583,6 +587,7 @@ func (a *NetApiService) UpdateNetExecute(r ApiUpdateNetRequest) (UpdateNetRespon localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_net_access_point.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_net_access_point.go index 9aff2d9e1..44068111a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_net_access_point.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_net_access_point.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type NetAccessPointApiService service type ApiCreateNetAccessPointRequest struct { - ctx _context.Context - ApiService *NetAccessPointApiService + ctx _context.Context + ApiService *NetAccessPointApiService createNetAccessPointRequest *CreateNetAccessPointRequest } @@ -49,7 +50,7 @@ func (r ApiCreateNetAccessPointRequest) Execute() (CreateNetAccessPointResponse, func (a *NetAccessPointApiService) CreateNetAccessPoint(ctx _context.Context) ApiCreateNetAccessPointRequest { return ApiCreateNetAccessPointRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *NetAccessPointApiService) CreateNetAccessPointExecute(r ApiCreateNetAcc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *NetAccessPointApiService) CreateNetAccessPointExecute(r ApiCreateNetAcc } type ApiDeleteNetAccessPointRequest struct { - ctx _context.Context - ApiService *NetAccessPointApiService + ctx _context.Context + ApiService *NetAccessPointApiService deleteNetAccessPointRequest *DeleteNetAccessPointRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteNetAccessPointRequest) Execute() (DeleteNetAccessPointResponse, func (a *NetAccessPointApiService) DeleteNetAccessPoint(ctx _context.Context) ApiDeleteNetAccessPointRequest { return ApiDeleteNetAccessPointRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *NetAccessPointApiService) DeleteNetAccessPointExecute(r ApiDeleteNetAcc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *NetAccessPointApiService) DeleteNetAccessPointExecute(r ApiDeleteNetAcc } type ApiReadNetAccessPointServicesRequest struct { - ctx _context.Context - ApiService *NetAccessPointApiService + ctx _context.Context + ApiService *NetAccessPointApiService readNetAccessPointServicesRequest *ReadNetAccessPointServicesRequest } @@ -291,7 +294,7 @@ func (r ApiReadNetAccessPointServicesRequest) Execute() (ReadNetAccessPointServi func (a *NetAccessPointApiService) ReadNetAccessPointServices(ctx _context.Context) ApiReadNetAccessPointServicesRequest { return ApiReadNetAccessPointServicesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -351,6 +354,7 @@ func (a *NetAccessPointApiService) ReadNetAccessPointServicesExecute(r ApiReadNe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -376,8 +380,8 @@ func (a *NetAccessPointApiService) ReadNetAccessPointServicesExecute(r ApiReadNe } type ApiReadNetAccessPointsRequest struct { - ctx _context.Context - ApiService *NetAccessPointApiService + ctx _context.Context + ApiService *NetAccessPointApiService readNetAccessPointsRequest *ReadNetAccessPointsRequest } @@ -398,7 +402,7 @@ func (r ApiReadNetAccessPointsRequest) Execute() (ReadNetAccessPointsResponse, * func (a *NetAccessPointApiService) ReadNetAccessPoints(ctx _context.Context) ApiReadNetAccessPointsRequest { return ApiReadNetAccessPointsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -472,6 +476,7 @@ func (a *NetAccessPointApiService) ReadNetAccessPointsExecute(r ApiReadNetAccess localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -497,8 +502,8 @@ func (a *NetAccessPointApiService) ReadNetAccessPointsExecute(r ApiReadNetAccess } type ApiUpdateNetAccessPointRequest struct { - ctx _context.Context - ApiService *NetAccessPointApiService + ctx _context.Context + ApiService *NetAccessPointApiService updateNetAccessPointRequest *UpdateNetAccessPointRequest } @@ -519,7 +524,7 @@ func (r ApiUpdateNetAccessPointRequest) Execute() (UpdateNetAccessPointResponse, func (a *NetAccessPointApiService) UpdateNetAccessPoint(ctx _context.Context) ApiUpdateNetAccessPointRequest { return ApiUpdateNetAccessPointRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -593,6 +598,7 @@ func (a *NetAccessPointApiService) UpdateNetAccessPointExecute(r ApiUpdateNetAcc localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_net_peering.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_net_peering.go index 22f71f51c..2b1b21024 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_net_peering.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_net_peering.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type NetPeeringApiService service type ApiAcceptNetPeeringRequest struct { - ctx _context.Context - ApiService *NetPeeringApiService + ctx _context.Context + ApiService *NetPeeringApiService acceptNetPeeringRequest *AcceptNetPeeringRequest } @@ -49,7 +50,7 @@ func (r ApiAcceptNetPeeringRequest) Execute() (AcceptNetPeeringResponse, *_netht func (a *NetPeeringApiService) AcceptNetPeering(ctx _context.Context) ApiAcceptNetPeeringRequest { return ApiAcceptNetPeeringRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *NetPeeringApiService) AcceptNetPeeringExecute(r ApiAcceptNetPeeringRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -187,8 +189,8 @@ func (a *NetPeeringApiService) AcceptNetPeeringExecute(r ApiAcceptNetPeeringRequ } type ApiCreateNetPeeringRequest struct { - ctx _context.Context - ApiService *NetPeeringApiService + ctx _context.Context + ApiService *NetPeeringApiService createNetPeeringRequest *CreateNetPeeringRequest } @@ -209,7 +211,7 @@ func (r ApiCreateNetPeeringRequest) Execute() (CreateNetPeeringResponse, *_netht func (a *NetPeeringApiService) CreateNetPeering(ctx _context.Context) ApiCreateNetPeeringRequest { return ApiCreateNetPeeringRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -283,6 +285,7 @@ func (a *NetPeeringApiService) CreateNetPeeringExecute(r ApiCreateNetPeeringRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -337,8 +340,8 @@ func (a *NetPeeringApiService) CreateNetPeeringExecute(r ApiCreateNetPeeringRequ } type ApiDeleteNetPeeringRequest struct { - ctx _context.Context - ApiService *NetPeeringApiService + ctx _context.Context + ApiService *NetPeeringApiService deleteNetPeeringRequest *DeleteNetPeeringRequest } @@ -359,7 +362,7 @@ func (r ApiDeleteNetPeeringRequest) Execute() (DeleteNetPeeringResponse, *_netht func (a *NetPeeringApiService) DeleteNetPeering(ctx _context.Context) ApiDeleteNetPeeringRequest { return ApiDeleteNetPeeringRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -433,6 +436,7 @@ func (a *NetPeeringApiService) DeleteNetPeeringExecute(r ApiDeleteNetPeeringRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -497,8 +501,8 @@ func (a *NetPeeringApiService) DeleteNetPeeringExecute(r ApiDeleteNetPeeringRequ } type ApiReadNetPeeringsRequest struct { - ctx _context.Context - ApiService *NetPeeringApiService + ctx _context.Context + ApiService *NetPeeringApiService readNetPeeringsRequest *ReadNetPeeringsRequest } @@ -519,7 +523,7 @@ func (r ApiReadNetPeeringsRequest) Execute() (ReadNetPeeringsResponse, *_nethttp func (a *NetPeeringApiService) ReadNetPeerings(ctx _context.Context) ApiReadNetPeeringsRequest { return ApiReadNetPeeringsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -593,6 +597,7 @@ func (a *NetPeeringApiService) ReadNetPeeringsExecute(r ApiReadNetPeeringsReques localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -647,8 +652,8 @@ func (a *NetPeeringApiService) ReadNetPeeringsExecute(r ApiReadNetPeeringsReques } type ApiRejectNetPeeringRequest struct { - ctx _context.Context - ApiService *NetPeeringApiService + ctx _context.Context + ApiService *NetPeeringApiService rejectNetPeeringRequest *RejectNetPeeringRequest } @@ -669,7 +674,7 @@ func (r ApiRejectNetPeeringRequest) Execute() (RejectNetPeeringResponse, *_netht func (a *NetPeeringApiService) RejectNetPeering(ctx _context.Context) ApiRejectNetPeeringRequest { return ApiRejectNetPeeringRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -743,6 +748,7 @@ func (a *NetPeeringApiService) RejectNetPeeringExecute(r ApiRejectNetPeeringRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_nic.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_nic.go index d9920922a..7e76a6f97 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_nic.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_nic.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type NicApiService service type ApiCreateNicRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService createNicRequest *CreateNicRequest } @@ -49,7 +50,7 @@ func (r ApiCreateNicRequest) Execute() (CreateNicResponse, *_nethttp.Response, e func (a *NicApiService) CreateNic(ctx _context.Context) ApiCreateNicRequest { return ApiCreateNicRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *NicApiService) CreateNicExecute(r ApiCreateNicRequest) (CreateNicRespon localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *NicApiService) CreateNicExecute(r ApiCreateNicRequest) (CreateNicRespon } type ApiDeleteNicRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService deleteNicRequest *DeleteNicRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteNicRequest) Execute() (DeleteNicResponse, *_nethttp.Response, e func (a *NicApiService) DeleteNic(ctx _context.Context) ApiDeleteNicRequest { return ApiDeleteNicRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *NicApiService) DeleteNicExecute(r ApiDeleteNicRequest) (DeleteNicRespon localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *NicApiService) DeleteNicExecute(r ApiDeleteNicRequest) (DeleteNicRespon } type ApiLinkNicRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService linkNicRequest *LinkNicRequest } @@ -349,7 +352,7 @@ func (r ApiLinkNicRequest) Execute() (LinkNicResponse, *_nethttp.Response, error func (a *NicApiService) LinkNic(ctx _context.Context) ApiLinkNicRequest { return ApiLinkNicRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *NicApiService) LinkNicExecute(r ApiLinkNicRequest) (LinkNicResponse, *_ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -477,8 +481,8 @@ func (a *NicApiService) LinkNicExecute(r ApiLinkNicRequest) (LinkNicResponse, *_ } type ApiLinkPrivateIpsRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService linkPrivateIpsRequest *LinkPrivateIpsRequest } @@ -499,7 +503,7 @@ func (r ApiLinkPrivateIpsRequest) Execute() (LinkPrivateIpsResponse, *_nethttp.R func (a *NicApiService) LinkPrivateIps(ctx _context.Context) ApiLinkPrivateIpsRequest { return ApiLinkPrivateIpsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -573,6 +577,7 @@ func (a *NicApiService) LinkPrivateIpsExecute(r ApiLinkPrivateIpsRequest) (LinkP localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -627,8 +632,8 @@ func (a *NicApiService) LinkPrivateIpsExecute(r ApiLinkPrivateIpsRequest) (LinkP } type ApiReadNicsRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService readNicsRequest *ReadNicsRequest } @@ -649,7 +654,7 @@ func (r ApiReadNicsRequest) Execute() (ReadNicsResponse, *_nethttp.Response, err func (a *NicApiService) ReadNics(ctx _context.Context) ApiReadNicsRequest { return ApiReadNicsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -723,6 +728,7 @@ func (a *NicApiService) ReadNicsExecute(r ApiReadNicsRequest) (ReadNicsResponse, localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -777,8 +783,8 @@ func (a *NicApiService) ReadNicsExecute(r ApiReadNicsRequest) (ReadNicsResponse, } type ApiUnlinkNicRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService unlinkNicRequest *UnlinkNicRequest } @@ -799,7 +805,7 @@ func (r ApiUnlinkNicRequest) Execute() (UnlinkNicResponse, *_nethttp.Response, e func (a *NicApiService) UnlinkNic(ctx _context.Context) ApiUnlinkNicRequest { return ApiUnlinkNicRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -873,6 +879,7 @@ func (a *NicApiService) UnlinkNicExecute(r ApiUnlinkNicRequest) (UnlinkNicRespon localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -927,8 +934,8 @@ func (a *NicApiService) UnlinkNicExecute(r ApiUnlinkNicRequest) (UnlinkNicRespon } type ApiUnlinkPrivateIpsRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService unlinkPrivateIpsRequest *UnlinkPrivateIpsRequest } @@ -949,7 +956,7 @@ func (r ApiUnlinkPrivateIpsRequest) Execute() (UnlinkPrivateIpsResponse, *_netht func (a *NicApiService) UnlinkPrivateIps(ctx _context.Context) ApiUnlinkPrivateIpsRequest { return ApiUnlinkPrivateIpsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1023,6 +1030,7 @@ func (a *NicApiService) UnlinkPrivateIpsExecute(r ApiUnlinkPrivateIpsRequest) (U localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1077,8 +1085,8 @@ func (a *NicApiService) UnlinkPrivateIpsExecute(r ApiUnlinkPrivateIpsRequest) (U } type ApiUpdateNicRequest struct { - ctx _context.Context - ApiService *NicApiService + ctx _context.Context + ApiService *NicApiService updateNicRequest *UpdateNicRequest } @@ -1099,7 +1107,7 @@ func (r ApiUpdateNicRequest) Execute() (UpdateNicResponse, *_nethttp.Response, e func (a *NicApiService) UpdateNic(ctx _context.Context) ApiUpdateNicRequest { return ApiUpdateNicRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1173,6 +1181,7 @@ func (a *NicApiService) UpdateNicExecute(r ApiUpdateNicRequest) (UpdateNicRespon localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_product_type.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_product_type.go index 1eace1edc..8ce4bc291 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_product_type.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_product_type.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type ProductTypeApiService service type ApiReadProductTypesRequest struct { - ctx _context.Context - ApiService *ProductTypeApiService + ctx _context.Context + ApiService *ProductTypeApiService readProductTypesRequest *ReadProductTypesRequest } @@ -49,7 +50,7 @@ func (r ApiReadProductTypesRequest) Execute() (ReadProductTypesResponse, *_netht func (a *ProductTypeApiService) ReadProductTypes(ctx _context.Context) ApiReadProductTypesRequest { return ApiReadProductTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -109,6 +110,7 @@ func (a *ProductTypeApiService) ReadProductTypesExecute(r ApiReadProductTypesReq localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_public_ip.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_public_ip.go index 439097902..fa8994b67 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_public_ip.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_public_ip.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type PublicIpApiService service type ApiCreatePublicIpRequest struct { - ctx _context.Context - ApiService *PublicIpApiService + ctx _context.Context + ApiService *PublicIpApiService createPublicIpRequest *CreatePublicIpRequest } @@ -49,7 +50,7 @@ func (r ApiCreatePublicIpRequest) Execute() (CreatePublicIpResponse, *_nethttp.R func (a *PublicIpApiService) CreatePublicIp(ctx _context.Context) ApiCreatePublicIpRequest { return ApiCreatePublicIpRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *PublicIpApiService) CreatePublicIpExecute(r ApiCreatePublicIpRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *PublicIpApiService) CreatePublicIpExecute(r ApiCreatePublicIpRequest) ( } type ApiDeletePublicIpRequest struct { - ctx _context.Context - ApiService *PublicIpApiService + ctx _context.Context + ApiService *PublicIpApiService deletePublicIpRequest *DeletePublicIpRequest } @@ -199,7 +201,7 @@ func (r ApiDeletePublicIpRequest) Execute() (DeletePublicIpResponse, *_nethttp.R func (a *PublicIpApiService) DeletePublicIp(ctx _context.Context) ApiDeletePublicIpRequest { return ApiDeletePublicIpRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *PublicIpApiService) DeletePublicIpExecute(r ApiDeletePublicIpRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *PublicIpApiService) DeletePublicIpExecute(r ApiDeletePublicIpRequest) ( } type ApiLinkPublicIpRequest struct { - ctx _context.Context - ApiService *PublicIpApiService + ctx _context.Context + ApiService *PublicIpApiService linkPublicIpRequest *LinkPublicIpRequest } @@ -349,7 +352,7 @@ func (r ApiLinkPublicIpRequest) Execute() (LinkPublicIpResponse, *_nethttp.Respo func (a *PublicIpApiService) LinkPublicIp(ctx _context.Context) ApiLinkPublicIpRequest { return ApiLinkPublicIpRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *PublicIpApiService) LinkPublicIpExecute(r ApiLinkPublicIpRequest) (Link localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -477,8 +481,8 @@ func (a *PublicIpApiService) LinkPublicIpExecute(r ApiLinkPublicIpRequest) (Link } type ApiReadPublicIpRangesRequest struct { - ctx _context.Context - ApiService *PublicIpApiService + ctx _context.Context + ApiService *PublicIpApiService readPublicIpRangesRequest *ReadPublicIpRangesRequest } @@ -499,7 +503,7 @@ func (r ApiReadPublicIpRangesRequest) Execute() (ReadPublicIpRangesResponse, *_n func (a *PublicIpApiService) ReadPublicIpRanges(ctx _context.Context) ApiReadPublicIpRangesRequest { return ApiReadPublicIpRangesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -559,6 +563,7 @@ func (a *PublicIpApiService) ReadPublicIpRangesExecute(r ApiReadPublicIpRangesRe localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -584,8 +589,8 @@ func (a *PublicIpApiService) ReadPublicIpRangesExecute(r ApiReadPublicIpRangesRe } type ApiReadPublicIpsRequest struct { - ctx _context.Context - ApiService *PublicIpApiService + ctx _context.Context + ApiService *PublicIpApiService readPublicIpsRequest *ReadPublicIpsRequest } @@ -606,7 +611,7 @@ func (r ApiReadPublicIpsRequest) Execute() (ReadPublicIpsResponse, *_nethttp.Res func (a *PublicIpApiService) ReadPublicIps(ctx _context.Context) ApiReadPublicIpsRequest { return ApiReadPublicIpsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -680,6 +685,7 @@ func (a *PublicIpApiService) ReadPublicIpsExecute(r ApiReadPublicIpsRequest) (Re localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -734,8 +740,8 @@ func (a *PublicIpApiService) ReadPublicIpsExecute(r ApiReadPublicIpsRequest) (Re } type ApiUnlinkPublicIpRequest struct { - ctx _context.Context - ApiService *PublicIpApiService + ctx _context.Context + ApiService *PublicIpApiService unlinkPublicIpRequest *UnlinkPublicIpRequest } @@ -756,7 +762,7 @@ func (r ApiUnlinkPublicIpRequest) Execute() (UnlinkPublicIpResponse, *_nethttp.R func (a *PublicIpApiService) UnlinkPublicIp(ctx _context.Context) ApiUnlinkPublicIpRequest { return ApiUnlinkPublicIpRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -830,6 +836,7 @@ func (a *PublicIpApiService) UnlinkPublicIpExecute(r ApiUnlinkPublicIpRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_quota.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_quota.go index f2697ebe6..98f59b86a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_quota.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_quota.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type QuotaApiService service type ApiReadQuotasRequest struct { - ctx _context.Context - ApiService *QuotaApiService + ctx _context.Context + ApiService *QuotaApiService readQuotasRequest *ReadQuotasRequest } @@ -49,7 +50,7 @@ func (r ApiReadQuotasRequest) Execute() (ReadQuotasResponse, *_nethttp.Response, func (a *QuotaApiService) ReadQuotas(ctx _context.Context) ApiReadQuotasRequest { return ApiReadQuotasRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *QuotaApiService) ReadQuotasExecute(r ApiReadQuotasRequest) (ReadQuotasR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_region.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_region.go index 9e5234204..fa4398308 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_region.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_region.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type RegionApiService service type ApiReadRegionsRequest struct { - ctx _context.Context - ApiService *RegionApiService + ctx _context.Context + ApiService *RegionApiService readRegionsRequest *ReadRegionsRequest } @@ -49,7 +50,7 @@ func (r ApiReadRegionsRequest) Execute() (ReadRegionsResponse, *_nethttp.Respons func (a *RegionApiService) ReadRegions(ctx _context.Context) ApiReadRegionsRequest { return ApiReadRegionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *RegionApiService) ReadRegionsExecute(r ApiReadRegionsRequest) (ReadRegi localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_route.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_route.go index 8104e3975..11f7016ac 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_route.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_route.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type RouteApiService service type ApiCreateRouteRequest struct { - ctx _context.Context - ApiService *RouteApiService + ctx _context.Context + ApiService *RouteApiService createRouteRequest *CreateRouteRequest } @@ -49,7 +50,7 @@ func (r ApiCreateRouteRequest) Execute() (CreateRouteResponse, *_nethttp.Respons func (a *RouteApiService) CreateRoute(ctx _context.Context) ApiCreateRouteRequest { return ApiCreateRouteRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *RouteApiService) CreateRouteExecute(r ApiCreateRouteRequest) (CreateRou localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *RouteApiService) CreateRouteExecute(r ApiCreateRouteRequest) (CreateRou } type ApiDeleteRouteRequest struct { - ctx _context.Context - ApiService *RouteApiService + ctx _context.Context + ApiService *RouteApiService deleteRouteRequest *DeleteRouteRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteRouteRequest) Execute() (DeleteRouteResponse, *_nethttp.Respons func (a *RouteApiService) DeleteRoute(ctx _context.Context) ApiDeleteRouteRequest { return ApiDeleteRouteRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *RouteApiService) DeleteRouteExecute(r ApiDeleteRouteRequest) (DeleteRou localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *RouteApiService) DeleteRouteExecute(r ApiDeleteRouteRequest) (DeleteRou } type ApiUpdateRouteRequest struct { - ctx _context.Context - ApiService *RouteApiService + ctx _context.Context + ApiService *RouteApiService updateRouteRequest *UpdateRouteRequest } @@ -349,7 +352,7 @@ func (r ApiUpdateRouteRequest) Execute() (UpdateRouteResponse, *_nethttp.Respons func (a *RouteApiService) UpdateRoute(ctx _context.Context) ApiUpdateRouteRequest { return ApiUpdateRouteRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *RouteApiService) UpdateRouteExecute(r ApiUpdateRouteRequest) (UpdateRou localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_route_table.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_route_table.go index d09651524..766143a19 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_route_table.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_route_table.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type RouteTableApiService service type ApiCreateRouteTableRequest struct { - ctx _context.Context - ApiService *RouteTableApiService + ctx _context.Context + ApiService *RouteTableApiService createRouteTableRequest *CreateRouteTableRequest } @@ -49,7 +50,7 @@ func (r ApiCreateRouteTableRequest) Execute() (CreateRouteTableResponse, *_netht func (a *RouteTableApiService) CreateRouteTable(ctx _context.Context) ApiCreateRouteTableRequest { return ApiCreateRouteTableRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *RouteTableApiService) CreateRouteTableExecute(r ApiCreateRouteTableRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *RouteTableApiService) CreateRouteTableExecute(r ApiCreateRouteTableRequ } type ApiDeleteRouteTableRequest struct { - ctx _context.Context - ApiService *RouteTableApiService + ctx _context.Context + ApiService *RouteTableApiService deleteRouteTableRequest *DeleteRouteTableRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteRouteTableRequest) Execute() (DeleteRouteTableResponse, *_netht func (a *RouteTableApiService) DeleteRouteTable(ctx _context.Context) ApiDeleteRouteTableRequest { return ApiDeleteRouteTableRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *RouteTableApiService) DeleteRouteTableExecute(r ApiDeleteRouteTableRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *RouteTableApiService) DeleteRouteTableExecute(r ApiDeleteRouteTableRequ } type ApiLinkRouteTableRequest struct { - ctx _context.Context - ApiService *RouteTableApiService + ctx _context.Context + ApiService *RouteTableApiService linkRouteTableRequest *LinkRouteTableRequest } @@ -349,7 +352,7 @@ func (r ApiLinkRouteTableRequest) Execute() (LinkRouteTableResponse, *_nethttp.R func (a *RouteTableApiService) LinkRouteTable(ctx _context.Context) ApiLinkRouteTableRequest { return ApiLinkRouteTableRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *RouteTableApiService) LinkRouteTableExecute(r ApiLinkRouteTableRequest) localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -477,8 +481,8 @@ func (a *RouteTableApiService) LinkRouteTableExecute(r ApiLinkRouteTableRequest) } type ApiReadRouteTablesRequest struct { - ctx _context.Context - ApiService *RouteTableApiService + ctx _context.Context + ApiService *RouteTableApiService readRouteTablesRequest *ReadRouteTablesRequest } @@ -499,7 +503,7 @@ func (r ApiReadRouteTablesRequest) Execute() (ReadRouteTablesResponse, *_nethttp func (a *RouteTableApiService) ReadRouteTables(ctx _context.Context) ApiReadRouteTablesRequest { return ApiReadRouteTablesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -573,6 +577,7 @@ func (a *RouteTableApiService) ReadRouteTablesExecute(r ApiReadRouteTablesReques localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -627,8 +632,8 @@ func (a *RouteTableApiService) ReadRouteTablesExecute(r ApiReadRouteTablesReques } type ApiUnlinkRouteTableRequest struct { - ctx _context.Context - ApiService *RouteTableApiService + ctx _context.Context + ApiService *RouteTableApiService unlinkRouteTableRequest *UnlinkRouteTableRequest } @@ -649,7 +654,7 @@ func (r ApiUnlinkRouteTableRequest) Execute() (UnlinkRouteTableResponse, *_netht func (a *RouteTableApiService) UnlinkRouteTable(ctx _context.Context) ApiUnlinkRouteTableRequest { return ApiUnlinkRouteTableRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -723,6 +728,7 @@ func (a *RouteTableApiService) UnlinkRouteTableExecute(r ApiUnlinkRouteTableRequ localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group.go index cbc2d0306..00dab591d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type SecurityGroupApiService service type ApiCreateSecurityGroupRequest struct { - ctx _context.Context - ApiService *SecurityGroupApiService + ctx _context.Context + ApiService *SecurityGroupApiService createSecurityGroupRequest *CreateSecurityGroupRequest } @@ -49,7 +50,7 @@ func (r ApiCreateSecurityGroupRequest) Execute() (CreateSecurityGroupResponse, * func (a *SecurityGroupApiService) CreateSecurityGroup(ctx _context.Context) ApiCreateSecurityGroupRequest { return ApiCreateSecurityGroupRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *SecurityGroupApiService) CreateSecurityGroupExecute(r ApiCreateSecurity localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *SecurityGroupApiService) CreateSecurityGroupExecute(r ApiCreateSecurity } type ApiDeleteSecurityGroupRequest struct { - ctx _context.Context - ApiService *SecurityGroupApiService + ctx _context.Context + ApiService *SecurityGroupApiService deleteSecurityGroupRequest *DeleteSecurityGroupRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteSecurityGroupRequest) Execute() (DeleteSecurityGroupResponse, * func (a *SecurityGroupApiService) DeleteSecurityGroup(ctx _context.Context) ApiDeleteSecurityGroupRequest { return ApiDeleteSecurityGroupRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *SecurityGroupApiService) DeleteSecurityGroupExecute(r ApiDeleteSecurity localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *SecurityGroupApiService) DeleteSecurityGroupExecute(r ApiDeleteSecurity } type ApiReadSecurityGroupsRequest struct { - ctx _context.Context - ApiService *SecurityGroupApiService + ctx _context.Context + ApiService *SecurityGroupApiService readSecurityGroupsRequest *ReadSecurityGroupsRequest } @@ -349,7 +352,7 @@ func (r ApiReadSecurityGroupsRequest) Execute() (ReadSecurityGroupsResponse, *_n func (a *SecurityGroupApiService) ReadSecurityGroups(ctx _context.Context) ApiReadSecurityGroupsRequest { return ApiReadSecurityGroupsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *SecurityGroupApiService) ReadSecurityGroupsExecute(r ApiReadSecurityGro localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group_rule.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group_rule.go index c0b4235df..1758e2d82 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group_rule.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_security_group_rule.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type SecurityGroupRuleApiService service type ApiCreateSecurityGroupRuleRequest struct { - ctx _context.Context - ApiService *SecurityGroupRuleApiService + ctx _context.Context + ApiService *SecurityGroupRuleApiService createSecurityGroupRuleRequest *CreateSecurityGroupRuleRequest } @@ -49,7 +50,7 @@ func (r ApiCreateSecurityGroupRuleRequest) Execute() (CreateSecurityGroupRuleRes func (a *SecurityGroupRuleApiService) CreateSecurityGroupRule(ctx _context.Context) ApiCreateSecurityGroupRuleRequest { return ApiCreateSecurityGroupRuleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *SecurityGroupRuleApiService) CreateSecurityGroupRuleExecute(r ApiCreate localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *SecurityGroupRuleApiService) CreateSecurityGroupRuleExecute(r ApiCreate } type ApiDeleteSecurityGroupRuleRequest struct { - ctx _context.Context - ApiService *SecurityGroupRuleApiService + ctx _context.Context + ApiService *SecurityGroupRuleApiService deleteSecurityGroupRuleRequest *DeleteSecurityGroupRuleRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteSecurityGroupRuleRequest) Execute() (DeleteSecurityGroupRuleRes func (a *SecurityGroupRuleApiService) DeleteSecurityGroupRule(ctx _context.Context) ApiDeleteSecurityGroupRuleRequest { return ApiDeleteSecurityGroupRuleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *SecurityGroupRuleApiService) DeleteSecurityGroupRuleExecute(r ApiDelete localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_server_certificate.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_server_certificate.go index 2bf45f4ca..e5ce8f6e3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_server_certificate.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_server_certificate.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type ServerCertificateApiService service type ApiCreateServerCertificateRequest struct { - ctx _context.Context - ApiService *ServerCertificateApiService + ctx _context.Context + ApiService *ServerCertificateApiService createServerCertificateRequest *CreateServerCertificateRequest } @@ -49,7 +50,7 @@ func (r ApiCreateServerCertificateRequest) Execute() (CreateServerCertificateRes func (a *ServerCertificateApiService) CreateServerCertificate(ctx _context.Context) ApiCreateServerCertificateRequest { return ApiCreateServerCertificateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *ServerCertificateApiService) CreateServerCertificateExecute(r ApiCreate localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *ServerCertificateApiService) CreateServerCertificateExecute(r ApiCreate } type ApiDeleteServerCertificateRequest struct { - ctx _context.Context - ApiService *ServerCertificateApiService + ctx _context.Context + ApiService *ServerCertificateApiService deleteServerCertificateRequest *DeleteServerCertificateRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteServerCertificateRequest) Execute() (DeleteServerCertificateRes func (a *ServerCertificateApiService) DeleteServerCertificate(ctx _context.Context) ApiDeleteServerCertificateRequest { return ApiDeleteServerCertificateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *ServerCertificateApiService) DeleteServerCertificateExecute(r ApiDelete localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *ServerCertificateApiService) DeleteServerCertificateExecute(r ApiDelete } type ApiReadServerCertificatesRequest struct { - ctx _context.Context - ApiService *ServerCertificateApiService + ctx _context.Context + ApiService *ServerCertificateApiService readServerCertificatesRequest *ReadServerCertificatesRequest } @@ -291,7 +294,7 @@ func (r ApiReadServerCertificatesRequest) Execute() (ReadServerCertificatesRespo func (a *ServerCertificateApiService) ReadServerCertificates(ctx _context.Context) ApiReadServerCertificatesRequest { return ApiReadServerCertificatesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *ServerCertificateApiService) ReadServerCertificatesExecute(r ApiReadSer localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *ServerCertificateApiService) ReadServerCertificatesExecute(r ApiReadSer } type ApiUpdateServerCertificateRequest struct { - ctx _context.Context - ApiService *ServerCertificateApiService + ctx _context.Context + ApiService *ServerCertificateApiService updateServerCertificateRequest *UpdateServerCertificateRequest } @@ -412,7 +416,7 @@ func (r ApiUpdateServerCertificateRequest) Execute() (UpdateServerCertificateRes func (a *ServerCertificateApiService) UpdateServerCertificate(ctx _context.Context) ApiUpdateServerCertificateRequest { return ApiUpdateServerCertificateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -486,6 +490,7 @@ func (a *ServerCertificateApiService) UpdateServerCertificateExecute(r ApiUpdate localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_snapshot.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_snapshot.go index b70b87f10..ee7f351bd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_snapshot.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_snapshot.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type SnapshotApiService service type ApiCreateSnapshotRequest struct { - ctx _context.Context - ApiService *SnapshotApiService + ctx _context.Context + ApiService *SnapshotApiService createSnapshotRequest *CreateSnapshotRequest } @@ -49,7 +50,7 @@ func (r ApiCreateSnapshotRequest) Execute() (CreateSnapshotResponse, *_nethttp.R func (a *SnapshotApiService) CreateSnapshot(ctx _context.Context) ApiCreateSnapshotRequest { return ApiCreateSnapshotRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *SnapshotApiService) CreateSnapshotExecute(r ApiCreateSnapshotRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *SnapshotApiService) CreateSnapshotExecute(r ApiCreateSnapshotRequest) ( } type ApiCreateSnapshotExportTaskRequest struct { - ctx _context.Context - ApiService *SnapshotApiService + ctx _context.Context + ApiService *SnapshotApiService createSnapshotExportTaskRequest *CreateSnapshotExportTaskRequest } @@ -199,7 +201,7 @@ func (r ApiCreateSnapshotExportTaskRequest) Execute() (CreateSnapshotExportTaskR func (a *SnapshotApiService) CreateSnapshotExportTask(ctx _context.Context) ApiCreateSnapshotExportTaskRequest { return ApiCreateSnapshotExportTaskRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *SnapshotApiService) CreateSnapshotExportTaskExecute(r ApiCreateSnapshot localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -298,8 +301,8 @@ func (a *SnapshotApiService) CreateSnapshotExportTaskExecute(r ApiCreateSnapshot } type ApiDeleteSnapshotRequest struct { - ctx _context.Context - ApiService *SnapshotApiService + ctx _context.Context + ApiService *SnapshotApiService deleteSnapshotRequest *DeleteSnapshotRequest } @@ -320,7 +323,7 @@ func (r ApiDeleteSnapshotRequest) Execute() (DeleteSnapshotResponse, *_nethttp.R func (a *SnapshotApiService) DeleteSnapshot(ctx _context.Context) ApiDeleteSnapshotRequest { return ApiDeleteSnapshotRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -394,6 +397,7 @@ func (a *SnapshotApiService) DeleteSnapshotExecute(r ApiDeleteSnapshotRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -448,8 +452,8 @@ func (a *SnapshotApiService) DeleteSnapshotExecute(r ApiDeleteSnapshotRequest) ( } type ApiReadSnapshotExportTasksRequest struct { - ctx _context.Context - ApiService *SnapshotApiService + ctx _context.Context + ApiService *SnapshotApiService readSnapshotExportTasksRequest *ReadSnapshotExportTasksRequest } @@ -470,7 +474,7 @@ func (r ApiReadSnapshotExportTasksRequest) Execute() (ReadSnapshotExportTasksRes func (a *SnapshotApiService) ReadSnapshotExportTasks(ctx _context.Context) ApiReadSnapshotExportTasksRequest { return ApiReadSnapshotExportTasksRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -544,6 +548,7 @@ func (a *SnapshotApiService) ReadSnapshotExportTasksExecute(r ApiReadSnapshotExp localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -569,8 +574,8 @@ func (a *SnapshotApiService) ReadSnapshotExportTasksExecute(r ApiReadSnapshotExp } type ApiReadSnapshotsRequest struct { - ctx _context.Context - ApiService *SnapshotApiService + ctx _context.Context + ApiService *SnapshotApiService readSnapshotsRequest *ReadSnapshotsRequest } @@ -591,7 +596,7 @@ func (r ApiReadSnapshotsRequest) Execute() (ReadSnapshotsResponse, *_nethttp.Res func (a *SnapshotApiService) ReadSnapshots(ctx _context.Context) ApiReadSnapshotsRequest { return ApiReadSnapshotsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -665,6 +670,7 @@ func (a *SnapshotApiService) ReadSnapshotsExecute(r ApiReadSnapshotsRequest) (Re localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -719,8 +725,8 @@ func (a *SnapshotApiService) ReadSnapshotsExecute(r ApiReadSnapshotsRequest) (Re } type ApiUpdateSnapshotRequest struct { - ctx _context.Context - ApiService *SnapshotApiService + ctx _context.Context + ApiService *SnapshotApiService updateSnapshotRequest *UpdateSnapshotRequest } @@ -741,7 +747,7 @@ func (r ApiUpdateSnapshotRequest) Execute() (UpdateSnapshotResponse, *_nethttp.R func (a *SnapshotApiService) UpdateSnapshot(ctx _context.Context) ApiUpdateSnapshotRequest { return ApiUpdateSnapshotRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -815,6 +821,7 @@ func (a *SnapshotApiService) UpdateSnapshotExecute(r ApiUpdateSnapshotRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_subnet.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_subnet.go index 75cc8896f..7fa8a37b2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_subnet.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_subnet.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type SubnetApiService service type ApiCreateSubnetRequest struct { - ctx _context.Context - ApiService *SubnetApiService + ctx _context.Context + ApiService *SubnetApiService createSubnetRequest *CreateSubnetRequest } @@ -49,7 +50,7 @@ func (r ApiCreateSubnetRequest) Execute() (CreateSubnetResponse, *_nethttp.Respo func (a *SubnetApiService) CreateSubnet(ctx _context.Context) ApiCreateSubnetRequest { return ApiCreateSubnetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *SubnetApiService) CreateSubnetExecute(r ApiCreateSubnetRequest) (Create localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -187,8 +189,8 @@ func (a *SubnetApiService) CreateSubnetExecute(r ApiCreateSubnetRequest) (Create } type ApiDeleteSubnetRequest struct { - ctx _context.Context - ApiService *SubnetApiService + ctx _context.Context + ApiService *SubnetApiService deleteSubnetRequest *DeleteSubnetRequest } @@ -209,7 +211,7 @@ func (r ApiDeleteSubnetRequest) Execute() (DeleteSubnetResponse, *_nethttp.Respo func (a *SubnetApiService) DeleteSubnet(ctx _context.Context) ApiDeleteSubnetRequest { return ApiDeleteSubnetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -283,6 +285,7 @@ func (a *SubnetApiService) DeleteSubnetExecute(r ApiDeleteSubnetRequest) (Delete localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -337,8 +340,8 @@ func (a *SubnetApiService) DeleteSubnetExecute(r ApiDeleteSubnetRequest) (Delete } type ApiReadSubnetsRequest struct { - ctx _context.Context - ApiService *SubnetApiService + ctx _context.Context + ApiService *SubnetApiService readSubnetsRequest *ReadSubnetsRequest } @@ -359,7 +362,7 @@ func (r ApiReadSubnetsRequest) Execute() (ReadSubnetsResponse, *_nethttp.Respons func (a *SubnetApiService) ReadSubnets(ctx _context.Context) ApiReadSubnetsRequest { return ApiReadSubnetsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -433,6 +436,7 @@ func (a *SubnetApiService) ReadSubnetsExecute(r ApiReadSubnetsRequest) (ReadSubn localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -487,8 +491,8 @@ func (a *SubnetApiService) ReadSubnetsExecute(r ApiReadSubnetsRequest) (ReadSubn } type ApiUpdateSubnetRequest struct { - ctx _context.Context - ApiService *SubnetApiService + ctx _context.Context + ApiService *SubnetApiService updateSubnetRequest *UpdateSubnetRequest } @@ -509,7 +513,7 @@ func (r ApiUpdateSubnetRequest) Execute() (UpdateSubnetResponse, *_nethttp.Respo func (a *SubnetApiService) UpdateSubnet(ctx _context.Context) ApiUpdateSubnetRequest { return ApiUpdateSubnetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -583,6 +587,7 @@ func (a *SubnetApiService) UpdateSubnetExecute(r ApiUpdateSubnetRequest) (Update localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_subregion.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_subregion.go index 7a5d4162e..53c2cae93 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_subregion.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_subregion.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type SubregionApiService service type ApiReadSubregionsRequest struct { - ctx _context.Context - ApiService *SubregionApiService + ctx _context.Context + ApiService *SubregionApiService readSubregionsRequest *ReadSubregionsRequest } @@ -49,7 +50,7 @@ func (r ApiReadSubregionsRequest) Execute() (ReadSubregionsResponse, *_nethttp.R func (a *SubregionApiService) ReadSubregions(ctx _context.Context) ApiReadSubregionsRequest { return ApiReadSubregionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *SubregionApiService) ReadSubregionsExecute(r ApiReadSubregionsRequest) localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_tag.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_tag.go index 8d3aa813d..a59435eb6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_tag.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_tag.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type TagApiService service type ApiCreateTagsRequest struct { - ctx _context.Context - ApiService *TagApiService + ctx _context.Context + ApiService *TagApiService createTagsRequest *CreateTagsRequest } @@ -49,7 +50,7 @@ func (r ApiCreateTagsRequest) Execute() (CreateTagsResponse, *_nethttp.Response, func (a *TagApiService) CreateTags(ctx _context.Context) ApiCreateTagsRequest { return ApiCreateTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *TagApiService) CreateTagsExecute(r ApiCreateTagsRequest) (CreateTagsRes localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *TagApiService) CreateTagsExecute(r ApiCreateTagsRequest) (CreateTagsRes } type ApiDeleteTagsRequest struct { - ctx _context.Context - ApiService *TagApiService + ctx _context.Context + ApiService *TagApiService deleteTagsRequest *DeleteTagsRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteTagsRequest) Execute() (DeleteTagsResponse, *_nethttp.Response, func (a *TagApiService) DeleteTags(ctx _context.Context) ApiDeleteTagsRequest { return ApiDeleteTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *TagApiService) DeleteTagsExecute(r ApiDeleteTagsRequest) (DeleteTagsRes localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *TagApiService) DeleteTagsExecute(r ApiDeleteTagsRequest) (DeleteTagsRes } type ApiReadTagsRequest struct { - ctx _context.Context - ApiService *TagApiService + ctx _context.Context + ApiService *TagApiService readTagsRequest *ReadTagsRequest } @@ -349,7 +352,7 @@ func (r ApiReadTagsRequest) Execute() (ReadTagsResponse, *_nethttp.Response, err func (a *TagApiService) ReadTags(ctx _context.Context) ApiReadTagsRequest { return ApiReadTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *TagApiService) ReadTagsExecute(r ApiReadTagsRequest) (ReadTagsResponse, localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_task.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_task.go index 7a396f0f2..23e1f77ac 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_task.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_task.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type TaskApiService service type ApiDeleteExportTaskRequest struct { - ctx _context.Context - ApiService *TaskApiService + ctx _context.Context + ApiService *TaskApiService deleteExportTaskRequest *DeleteExportTaskRequest } @@ -49,7 +50,7 @@ func (r ApiDeleteExportTaskRequest) Execute() (DeleteExportTaskResponse, *_netht func (a *TaskApiService) DeleteExportTask(ctx _context.Context) ApiDeleteExportTaskRequest { return ApiDeleteExportTaskRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *TaskApiService) DeleteExportTaskExecute(r ApiDeleteExportTaskRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_virtual_gateway.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_virtual_gateway.go index ae41536a5..a88c0e943 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_virtual_gateway.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_virtual_gateway.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type VirtualGatewayApiService service type ApiCreateVirtualGatewayRequest struct { - ctx _context.Context - ApiService *VirtualGatewayApiService + ctx _context.Context + ApiService *VirtualGatewayApiService createVirtualGatewayRequest *CreateVirtualGatewayRequest } @@ -49,7 +50,7 @@ func (r ApiCreateVirtualGatewayRequest) Execute() (CreateVirtualGatewayResponse, func (a *VirtualGatewayApiService) CreateVirtualGateway(ctx _context.Context) ApiCreateVirtualGatewayRequest { return ApiCreateVirtualGatewayRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *VirtualGatewayApiService) CreateVirtualGatewayExecute(r ApiCreateVirtua localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *VirtualGatewayApiService) CreateVirtualGatewayExecute(r ApiCreateVirtua } type ApiDeleteVirtualGatewayRequest struct { - ctx _context.Context - ApiService *VirtualGatewayApiService + ctx _context.Context + ApiService *VirtualGatewayApiService deleteVirtualGatewayRequest *DeleteVirtualGatewayRequest } @@ -170,7 +172,7 @@ func (r ApiDeleteVirtualGatewayRequest) Execute() (DeleteVirtualGatewayResponse, func (a *VirtualGatewayApiService) DeleteVirtualGateway(ctx _context.Context) ApiDeleteVirtualGatewayRequest { return ApiDeleteVirtualGatewayRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *VirtualGatewayApiService) DeleteVirtualGatewayExecute(r ApiDeleteVirtua localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *VirtualGatewayApiService) DeleteVirtualGatewayExecute(r ApiDeleteVirtua } type ApiLinkVirtualGatewayRequest struct { - ctx _context.Context - ApiService *VirtualGatewayApiService + ctx _context.Context + ApiService *VirtualGatewayApiService linkVirtualGatewayRequest *LinkVirtualGatewayRequest } @@ -291,7 +294,7 @@ func (r ApiLinkVirtualGatewayRequest) Execute() (LinkVirtualGatewayResponse, *_n func (a *VirtualGatewayApiService) LinkVirtualGateway(ctx _context.Context) ApiLinkVirtualGatewayRequest { return ApiLinkVirtualGatewayRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *VirtualGatewayApiService) LinkVirtualGatewayExecute(r ApiLinkVirtualGat localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *VirtualGatewayApiService) LinkVirtualGatewayExecute(r ApiLinkVirtualGat } type ApiReadVirtualGatewaysRequest struct { - ctx _context.Context - ApiService *VirtualGatewayApiService + ctx _context.Context + ApiService *VirtualGatewayApiService readVirtualGatewaysRequest *ReadVirtualGatewaysRequest } @@ -412,7 +416,7 @@ func (r ApiReadVirtualGatewaysRequest) Execute() (ReadVirtualGatewaysResponse, * func (a *VirtualGatewayApiService) ReadVirtualGateways(ctx _context.Context) ApiReadVirtualGatewaysRequest { return ApiReadVirtualGatewaysRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -486,6 +490,7 @@ func (a *VirtualGatewayApiService) ReadVirtualGatewaysExecute(r ApiReadVirtualGa localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -511,8 +516,8 @@ func (a *VirtualGatewayApiService) ReadVirtualGatewaysExecute(r ApiReadVirtualGa } type ApiUnlinkVirtualGatewayRequest struct { - ctx _context.Context - ApiService *VirtualGatewayApiService + ctx _context.Context + ApiService *VirtualGatewayApiService unlinkVirtualGatewayRequest *UnlinkVirtualGatewayRequest } @@ -533,7 +538,7 @@ func (r ApiUnlinkVirtualGatewayRequest) Execute() (UnlinkVirtualGatewayResponse, func (a *VirtualGatewayApiService) UnlinkVirtualGateway(ctx _context.Context) ApiUnlinkVirtualGatewayRequest { return ApiUnlinkVirtualGatewayRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -607,6 +612,7 @@ func (a *VirtualGatewayApiService) UnlinkVirtualGatewayExecute(r ApiUnlinkVirtua localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -632,8 +638,8 @@ func (a *VirtualGatewayApiService) UnlinkVirtualGatewayExecute(r ApiUnlinkVirtua } type ApiUpdateRoutePropagationRequest struct { - ctx _context.Context - ApiService *VirtualGatewayApiService + ctx _context.Context + ApiService *VirtualGatewayApiService updateRoutePropagationRequest *UpdateRoutePropagationRequest } @@ -654,7 +660,7 @@ func (r ApiUpdateRoutePropagationRequest) Execute() (UpdateRoutePropagationRespo func (a *VirtualGatewayApiService) UpdateRoutePropagation(ctx _context.Context) ApiUpdateRoutePropagationRequest { return ApiUpdateRoutePropagationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -728,6 +734,7 @@ func (a *VirtualGatewayApiService) UpdateRoutePropagationExecute(r ApiUpdateRout localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_vm.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_vm.go index ad34da1f6..6739e6aff 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_vm.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_vm.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type VmApiService service type ApiCreateVmsRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService createVmsRequest *CreateVmsRequest } @@ -49,7 +50,7 @@ func (r ApiCreateVmsRequest) Execute() (CreateVmsResponse, *_nethttp.Response, e func (a *VmApiService) CreateVms(ctx _context.Context) ApiCreateVmsRequest { return ApiCreateVmsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *VmApiService) CreateVmsExecute(r ApiCreateVmsRequest) (CreateVmsRespons localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *VmApiService) CreateVmsExecute(r ApiCreateVmsRequest) (CreateVmsRespons } type ApiDeleteVmsRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService deleteVmsRequest *DeleteVmsRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteVmsRequest) Execute() (DeleteVmsResponse, *_nethttp.Response, e func (a *VmApiService) DeleteVms(ctx _context.Context) ApiDeleteVmsRequest { return ApiDeleteVmsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *VmApiService) DeleteVmsExecute(r ApiDeleteVmsRequest) (DeleteVmsRespons localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *VmApiService) DeleteVmsExecute(r ApiDeleteVmsRequest) (DeleteVmsRespons } type ApiReadAdminPasswordRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService readAdminPasswordRequest *ReadAdminPasswordRequest } @@ -349,7 +352,7 @@ func (r ApiReadAdminPasswordRequest) Execute() (ReadAdminPasswordResponse, *_net func (a *VmApiService) ReadAdminPassword(ctx _context.Context) ApiReadAdminPasswordRequest { return ApiReadAdminPasswordRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *VmApiService) ReadAdminPasswordExecute(r ApiReadAdminPasswordRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -477,8 +481,8 @@ func (a *VmApiService) ReadAdminPasswordExecute(r ApiReadAdminPasswordRequest) ( } type ApiReadConsoleOutputRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService readConsoleOutputRequest *ReadConsoleOutputRequest } @@ -499,7 +503,7 @@ func (r ApiReadConsoleOutputRequest) Execute() (ReadConsoleOutputResponse, *_net func (a *VmApiService) ReadConsoleOutput(ctx _context.Context) ApiReadConsoleOutputRequest { return ApiReadConsoleOutputRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -573,6 +577,7 @@ func (a *VmApiService) ReadConsoleOutputExecute(r ApiReadConsoleOutputRequest) ( localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -627,8 +632,8 @@ func (a *VmApiService) ReadConsoleOutputExecute(r ApiReadConsoleOutputRequest) ( } type ApiReadVmTypesRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService readVmTypesRequest *ReadVmTypesRequest } @@ -649,7 +654,7 @@ func (r ApiReadVmTypesRequest) Execute() (ReadVmTypesResponse, *_nethttp.Respons func (a *VmApiService) ReadVmTypes(ctx _context.Context) ApiReadVmTypesRequest { return ApiReadVmTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -709,6 +714,7 @@ func (a *VmApiService) ReadVmTypesExecute(r ApiReadVmTypesRequest) (ReadVmTypesR localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -734,8 +740,8 @@ func (a *VmApiService) ReadVmTypesExecute(r ApiReadVmTypesRequest) (ReadVmTypesR } type ApiReadVmsRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService readVmsRequest *ReadVmsRequest } @@ -756,7 +762,7 @@ func (r ApiReadVmsRequest) Execute() (ReadVmsResponse, *_nethttp.Response, error func (a *VmApiService) ReadVms(ctx _context.Context) ApiReadVmsRequest { return ApiReadVmsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -830,6 +836,7 @@ func (a *VmApiService) ReadVmsExecute(r ApiReadVmsRequest) (ReadVmsResponse, *_n localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -884,8 +891,8 @@ func (a *VmApiService) ReadVmsExecute(r ApiReadVmsRequest) (ReadVmsResponse, *_n } type ApiReadVmsStateRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService readVmsStateRequest *ReadVmsStateRequest } @@ -906,7 +913,7 @@ func (r ApiReadVmsStateRequest) Execute() (ReadVmsStateResponse, *_nethttp.Respo func (a *VmApiService) ReadVmsState(ctx _context.Context) ApiReadVmsStateRequest { return ApiReadVmsStateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -980,6 +987,7 @@ func (a *VmApiService) ReadVmsStateExecute(r ApiReadVmsStateRequest) (ReadVmsSta localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1034,8 +1042,8 @@ func (a *VmApiService) ReadVmsStateExecute(r ApiReadVmsStateRequest) (ReadVmsSta } type ApiRebootVmsRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService rebootVmsRequest *RebootVmsRequest } @@ -1056,7 +1064,7 @@ func (r ApiRebootVmsRequest) Execute() (RebootVmsResponse, *_nethttp.Response, e func (a *VmApiService) RebootVms(ctx _context.Context) ApiRebootVmsRequest { return ApiRebootVmsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1130,6 +1138,7 @@ func (a *VmApiService) RebootVmsExecute(r ApiRebootVmsRequest) (RebootVmsRespons localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1184,8 +1193,8 @@ func (a *VmApiService) RebootVmsExecute(r ApiRebootVmsRequest) (RebootVmsRespons } type ApiStartVmsRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService startVmsRequest *StartVmsRequest } @@ -1206,7 +1215,7 @@ func (r ApiStartVmsRequest) Execute() (StartVmsResponse, *_nethttp.Response, err func (a *VmApiService) StartVms(ctx _context.Context) ApiStartVmsRequest { return ApiStartVmsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1280,6 +1289,7 @@ func (a *VmApiService) StartVmsExecute(r ApiStartVmsRequest) (StartVmsResponse, localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1334,8 +1344,8 @@ func (a *VmApiService) StartVmsExecute(r ApiStartVmsRequest) (StartVmsResponse, } type ApiStopVmsRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService stopVmsRequest *StopVmsRequest } @@ -1356,7 +1366,7 @@ func (r ApiStopVmsRequest) Execute() (StopVmsResponse, *_nethttp.Response, error func (a *VmApiService) StopVms(ctx _context.Context) ApiStopVmsRequest { return ApiStopVmsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1430,6 +1440,7 @@ func (a *VmApiService) StopVmsExecute(r ApiStopVmsRequest) (StopVmsResponse, *_n localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1484,8 +1495,8 @@ func (a *VmApiService) StopVmsExecute(r ApiStopVmsRequest) (StopVmsResponse, *_n } type ApiUpdateVmRequest struct { - ctx _context.Context - ApiService *VmApiService + ctx _context.Context + ApiService *VmApiService updateVmRequest *UpdateVmRequest } @@ -1506,7 +1517,7 @@ func (r ApiUpdateVmRequest) Execute() (UpdateVmResponse, *_nethttp.Response, err func (a *VmApiService) UpdateVm(ctx _context.Context) ApiUpdateVmRequest { return ApiUpdateVmRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -1580,6 +1591,7 @@ func (a *VmApiService) UpdateVmExecute(r ApiUpdateVmRequest) (UpdateVmResponse, localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_volume.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_volume.go index ab79d87e0..7958eded6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_volume.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_volume.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type VolumeApiService service type ApiCreateVolumeRequest struct { - ctx _context.Context - ApiService *VolumeApiService + ctx _context.Context + ApiService *VolumeApiService createVolumeRequest *CreateVolumeRequest } @@ -49,7 +50,7 @@ func (r ApiCreateVolumeRequest) Execute() (CreateVolumeResponse, *_nethttp.Respo func (a *VolumeApiService) CreateVolume(ctx _context.Context) ApiCreateVolumeRequest { return ApiCreateVolumeRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *VolumeApiService) CreateVolumeExecute(r ApiCreateVolumeRequest) (Create localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -177,8 +179,8 @@ func (a *VolumeApiService) CreateVolumeExecute(r ApiCreateVolumeRequest) (Create } type ApiDeleteVolumeRequest struct { - ctx _context.Context - ApiService *VolumeApiService + ctx _context.Context + ApiService *VolumeApiService deleteVolumeRequest *DeleteVolumeRequest } @@ -199,7 +201,7 @@ func (r ApiDeleteVolumeRequest) Execute() (DeleteVolumeResponse, *_nethttp.Respo func (a *VolumeApiService) DeleteVolume(ctx _context.Context) ApiDeleteVolumeRequest { return ApiDeleteVolumeRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -273,6 +275,7 @@ func (a *VolumeApiService) DeleteVolumeExecute(r ApiDeleteVolumeRequest) (Delete localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -327,8 +330,8 @@ func (a *VolumeApiService) DeleteVolumeExecute(r ApiDeleteVolumeRequest) (Delete } type ApiLinkVolumeRequest struct { - ctx _context.Context - ApiService *VolumeApiService + ctx _context.Context + ApiService *VolumeApiService linkVolumeRequest *LinkVolumeRequest } @@ -349,7 +352,7 @@ func (r ApiLinkVolumeRequest) Execute() (LinkVolumeResponse, *_nethttp.Response, func (a *VolumeApiService) LinkVolume(ctx _context.Context) ApiLinkVolumeRequest { return ApiLinkVolumeRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -423,6 +426,7 @@ func (a *VolumeApiService) LinkVolumeExecute(r ApiLinkVolumeRequest) (LinkVolume localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -477,8 +481,8 @@ func (a *VolumeApiService) LinkVolumeExecute(r ApiLinkVolumeRequest) (LinkVolume } type ApiReadVolumesRequest struct { - ctx _context.Context - ApiService *VolumeApiService + ctx _context.Context + ApiService *VolumeApiService readVolumesRequest *ReadVolumesRequest } @@ -499,7 +503,7 @@ func (r ApiReadVolumesRequest) Execute() (ReadVolumesResponse, *_nethttp.Respons func (a *VolumeApiService) ReadVolumes(ctx _context.Context) ApiReadVolumesRequest { return ApiReadVolumesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -573,6 +577,7 @@ func (a *VolumeApiService) ReadVolumesExecute(r ApiReadVolumesRequest) (ReadVolu localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -627,8 +632,8 @@ func (a *VolumeApiService) ReadVolumesExecute(r ApiReadVolumesRequest) (ReadVolu } type ApiUnlinkVolumeRequest struct { - ctx _context.Context - ApiService *VolumeApiService + ctx _context.Context + ApiService *VolumeApiService unlinkVolumeRequest *UnlinkVolumeRequest } @@ -649,7 +654,7 @@ func (r ApiUnlinkVolumeRequest) Execute() (UnlinkVolumeResponse, *_nethttp.Respo func (a *VolumeApiService) UnlinkVolume(ctx _context.Context) ApiUnlinkVolumeRequest { return ApiUnlinkVolumeRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -723,6 +728,158 @@ func (a *VolumeApiService) UnlinkVolumeExecute(r ApiUnlinkVolumeRequest) (Unlink localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateVolumeRequest struct { + ctx _context.Context + ApiService *VolumeApiService + updateVolumeRequest *UpdateVolumeRequest +} + +func (r ApiUpdateVolumeRequest) UpdateVolumeRequest(updateVolumeRequest UpdateVolumeRequest) ApiUpdateVolumeRequest { + r.updateVolumeRequest = &updateVolumeRequest + return r +} + +func (r ApiUpdateVolumeRequest) Execute() (UpdateVolumeResponse, *_nethttp.Response, error) { + return r.ApiService.UpdateVolumeExecute(r) +} + +/* + * UpdateVolume Method for UpdateVolume + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiUpdateVolumeRequest + */ +func (a *VolumeApiService) UpdateVolume(ctx _context.Context) ApiUpdateVolumeRequest { + return ApiUpdateVolumeRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return UpdateVolumeResponse + */ +func (a *VolumeApiService) UpdateVolumeExecute(r ApiUpdateVolumeRequest) (UpdateVolumeResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue UpdateVolumeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VolumeApiService.UpdateVolume") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/UpdateVolume" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateVolumeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/api_vpn_connection.go b/vendor/github.com/outscale/osc-sdk-go/v2/api_vpn_connection.go index c17dd34dc..b4e2d0e2f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/api_vpn_connection.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/api_vpn_connection.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -12,6 +12,7 @@ package osc import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" @@ -27,8 +28,8 @@ var ( type VpnConnectionApiService service type ApiCreateVpnConnectionRequest struct { - ctx _context.Context - ApiService *VpnConnectionApiService + ctx _context.Context + ApiService *VpnConnectionApiService createVpnConnectionRequest *CreateVpnConnectionRequest } @@ -49,7 +50,7 @@ func (r ApiCreateVpnConnectionRequest) Execute() (CreateVpnConnectionResponse, * func (a *VpnConnectionApiService) CreateVpnConnection(ctx _context.Context) ApiCreateVpnConnectionRequest { return ApiCreateVpnConnectionRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -123,6 +124,7 @@ func (a *VpnConnectionApiService) CreateVpnConnectionExecute(r ApiCreateVpnConne localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -148,8 +150,8 @@ func (a *VpnConnectionApiService) CreateVpnConnectionExecute(r ApiCreateVpnConne } type ApiCreateVpnConnectionRouteRequest struct { - ctx _context.Context - ApiService *VpnConnectionApiService + ctx _context.Context + ApiService *VpnConnectionApiService createVpnConnectionRouteRequest *CreateVpnConnectionRouteRequest } @@ -170,7 +172,7 @@ func (r ApiCreateVpnConnectionRouteRequest) Execute() (CreateVpnConnectionRouteR func (a *VpnConnectionApiService) CreateVpnConnectionRoute(ctx _context.Context) ApiCreateVpnConnectionRouteRequest { return ApiCreateVpnConnectionRouteRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -244,6 +246,7 @@ func (a *VpnConnectionApiService) CreateVpnConnectionRouteExecute(r ApiCreateVpn localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -269,8 +272,8 @@ func (a *VpnConnectionApiService) CreateVpnConnectionRouteExecute(r ApiCreateVpn } type ApiDeleteVpnConnectionRequest struct { - ctx _context.Context - ApiService *VpnConnectionApiService + ctx _context.Context + ApiService *VpnConnectionApiService deleteVpnConnectionRequest *DeleteVpnConnectionRequest } @@ -291,7 +294,7 @@ func (r ApiDeleteVpnConnectionRequest) Execute() (DeleteVpnConnectionResponse, * func (a *VpnConnectionApiService) DeleteVpnConnection(ctx _context.Context) ApiDeleteVpnConnectionRequest { return ApiDeleteVpnConnectionRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -365,6 +368,7 @@ func (a *VpnConnectionApiService) DeleteVpnConnectionExecute(r ApiDeleteVpnConne localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -390,8 +394,8 @@ func (a *VpnConnectionApiService) DeleteVpnConnectionExecute(r ApiDeleteVpnConne } type ApiDeleteVpnConnectionRouteRequest struct { - ctx _context.Context - ApiService *VpnConnectionApiService + ctx _context.Context + ApiService *VpnConnectionApiService deleteVpnConnectionRouteRequest *DeleteVpnConnectionRouteRequest } @@ -412,7 +416,7 @@ func (r ApiDeleteVpnConnectionRouteRequest) Execute() (DeleteVpnConnectionRouteR func (a *VpnConnectionApiService) DeleteVpnConnectionRoute(ctx _context.Context) ApiDeleteVpnConnectionRouteRequest { return ApiDeleteVpnConnectionRouteRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -486,6 +490,7 @@ func (a *VpnConnectionApiService) DeleteVpnConnectionRouteExecute(r ApiDeleteVpn localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -511,8 +516,8 @@ func (a *VpnConnectionApiService) DeleteVpnConnectionRouteExecute(r ApiDeleteVpn } type ApiReadVpnConnectionsRequest struct { - ctx _context.Context - ApiService *VpnConnectionApiService + ctx _context.Context + ApiService *VpnConnectionApiService readVpnConnectionsRequest *ReadVpnConnectionsRequest } @@ -533,7 +538,7 @@ func (r ApiReadVpnConnectionsRequest) Execute() (ReadVpnConnectionsResponse, *_n func (a *VpnConnectionApiService) ReadVpnConnections(ctx _context.Context) ApiReadVpnConnectionsRequest { return ApiReadVpnConnectionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -607,6 +612,7 @@ func (a *VpnConnectionApiService) ReadVpnConnectionsExecute(r ApiReadVpnConnecti localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/client.go b/vendor/github.com/outscale/osc-sdk-go/v2/client.go index 65d3915c0..7a1f8329b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/client.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/client.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -33,9 +33,9 @@ import ( "time" "unicode/utf8" - "golang.org/x/oauth2" - awsv4 "github.com/aws/aws-sdk-go/aws/signer/v4" awscredentials "github.com/aws/aws-sdk-go/aws/credentials" + awsv4 "github.com/aws/aws-sdk-go/aws/signer/v4" + "golang.org/x/oauth2" ) var ( @@ -43,7 +43,7 @@ var ( xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the 3DS OUTSCALE API API v1.4 +// APIClient manages communication with the 3DS OUTSCALE API API v1.7 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -55,8 +55,12 @@ type APIClient struct { AccountApi *AccountApiService + ApiAccessRuleApi *ApiAccessRuleApiService + ApiLogApi *ApiLogApiService + CaApi *CaApiService + ClientGatewayApi *ClientGatewayApiService DhcpOptionApi *DhcpOptionApiService @@ -146,7 +150,9 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.AccessKeyApi = (*AccessKeyApiService)(&c.common) c.AccountApi = (*AccountApiService)(&c.common) + c.ApiAccessRuleApi = (*ApiAccessRuleApiService)(&c.common) c.ApiLogApi = (*ApiLogApiService)(&c.common) + c.CaApi = (*CaApiService)(&c.common) c.ClientGatewayApi = (*ClientGatewayApiService)(&c.common) c.DhcpOptionApi = (*DhcpOptionApiService)(&c.common) c.DirectLinkApi = (*DirectLinkApiService)(&c.common) @@ -271,7 +277,6 @@ func parameterToJson(obj interface{}) (string, error) { return string(jsonBuf), err } - // callAPI do the request. func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { if c.cfg.Debug { @@ -497,13 +502,13 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return nil } if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{GetActualInstance() interface{}}); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{UnmarshalJSON([]byte) error}); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err!= nil { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { return err } } else { - errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") } } else if err = json.Unmarshal(b, v); err != nil { // simple model return err diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/configuration.go b/vendor/github.com/outscale/osc-sdk-go/v2/configuration.go index 913463ffe..32bc2602a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/configuration.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/configuration.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -88,9 +88,9 @@ type ServerVariable struct { // ServerConfiguration stores the information about a server type ServerConfiguration struct { - URL string + URL string Description string - Variables map[string]ServerVariable + Variables map[string]ServerVariable } // ServerConfigurations stores multiple ServerConfiguration items @@ -111,19 +111,20 @@ type Configuration struct { // NewConfiguration returns a new Configuration object func NewConfiguration() *Configuration { cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/2.0.0-beta.3/go", - Debug: false, - Servers: ServerConfigurations{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/2.0.0/go", + Debug: false, + Servers: ServerConfigurations{ { - URL: "https://api.{region}.outscale.com/api/v1", + URL: "https://api.{region}.outscale.com/api/v1", Description: "No description provided", Variables: map[string]ServerVariable{ "region": ServerVariable{ - Description: "No description provided", + Description: "No description provided", DefaultValue: "eu-west-2", EnumValues: []string{ "cloudgouv-eu-west-1", + "cloudgouv-eu-west-2", "eu-west-2", "us-east-2", "us-west-1", @@ -132,11 +133,11 @@ func NewConfiguration() *Configuration { }, }, { - URL: "https://api.{region}.outscale.hk/api/v1", + URL: "https://api.{region}.outscale.hk/api/v1", Description: "No description provided", Variables: map[string]ServerVariable{ "region": ServerVariable{ - Description: "No description provided", + Description: "No description provided", DefaultValue: "cn-southeast-1", EnumValues: []string{ "cn-southeast-1", @@ -145,8 +146,7 @@ func NewConfiguration() *Configuration { }, }, }, - OperationServers: map[string]ServerConfigurations{ - }, + OperationServers: map[string]ServerConfigurations{}, } return cfg } diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/go.sum b/vendor/github.com/outscale/osc-sdk-go/v2/go.sum index 734252e68..f6f26bc62 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/go.sum +++ b/vendor/github.com/outscale/osc-sdk-go/v2/go.sum @@ -1,13 +1,29 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/aws/aws-sdk-go v1.34.14 h1:G0jUdSDSp63P0oo/N3c/ldo7s8mYW3Kh/GPIJ+oESVQ= +github.com/aws/aws-sdk-go v1.34.14/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc= +github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2 h1:CCH4IOTTfewWjGOlSp+zGcjutRKlBEZQ6wTn8ozI/nI= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_request.go index 33d9266e8..16e1e769f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // AcceptNetPeeringRequest struct for AcceptNetPeeringRequest type AcceptNetPeeringRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net peering connection you want to accept. NetPeeringId string `json:"NetPeeringId"` @@ -27,7 +27,7 @@ type AcceptNetPeeringRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAcceptNetPeeringRequest(netPeeringId string, ) *AcceptNetPeeringRequest { +func NewAcceptNetPeeringRequest(netPeeringId string) *AcceptNetPeeringRequest { this := AcceptNetPeeringRequest{} this.NetPeeringId = netPeeringId return &this @@ -75,7 +75,7 @@ func (o *AcceptNetPeeringRequest) SetDryRun(v bool) { // GetNetPeeringId returns the NetPeeringId field value func (o *AcceptNetPeeringRequest) GetNetPeeringId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *AcceptNetPeeringRequest) GetNetPeeringId() string { // GetNetPeeringIdOk returns a tuple with the NetPeeringId field value // and a boolean to check if the value has been set. func (o *AcceptNetPeeringRequest) GetNetPeeringIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetPeeringId, true @@ -143,5 +143,3 @@ func (v *NullableAcceptNetPeeringRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_response.go index 94ee81afb..c373ddafc 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_accept_net_peering_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // AcceptNetPeeringResponse struct for AcceptNetPeeringResponse type AcceptNetPeeringResponse struct { - NetPeering *NetPeering `json:"NetPeering,omitempty"` + NetPeering *NetPeering `json:"NetPeering,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableAcceptNetPeeringResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_accepter_net.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_accepter_net.go index e4e8106fa..7680f74e1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_accepter_net.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_accepter_net.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableAccepterNet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key.go index 2b2baf1dc..699d5c7ea 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -261,5 +261,3 @@ func (v *NullableAccessKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key_secret_key.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key_secret_key.go index 969937b91..78a83592c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key_secret_key.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_access_key_secret_key.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableAccessKeySecretKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_access_log.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_access_log.go index e12b3c50e..ef80387ee 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_access_log.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_access_log.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // AccessLog Information about access logs. type AccessLog struct { - // If `true`, access logs are enabled for your load balancer. If `false`, they are not. If you set this to `true` in your request, the `OsuBucketName` parameter is required. + // If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the `OsuBucketName` parameter is required. IsEnabled *bool `json:"IsEnabled,omitempty"` // The name of the Object Storage Unit (OSU) bucket for the access logs. OsuBucketName *string `json:"OsuBucketName,omitempty"` @@ -224,5 +224,3 @@ func (v *NullableAccessLog) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_account.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_account.go index 43ee7d97e..89befef73 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_account.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_account.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -594,5 +594,3 @@ func (v *NullableAccount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_api_access_rule.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_api_access_rule.go new file mode 100644 index 000000000..190ccf178 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_api_access_rule.go @@ -0,0 +1,263 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// ApiAccessRule Information about the API access rule. +type ApiAccessRule struct { + // The ID of the API access rule. + ApiAccessRuleId *string `json:"ApiAccessRuleId,omitempty"` + // One or more IDs of Client Certificate Authorities (CAs) used for the API access rule. + CaIds *[]string `json:"CaIds,omitempty"` + // One or more Client Certificate Common Names (CNs). + Cns *[]string `json:"Cns,omitempty"` + // The description of the API access rule. + Description *string `json:"Description,omitempty"` + // One or more IP ranges used for the API access rule, in CIDR notation (for example, 192.0.2.0/16). + IpRanges *[]string `json:"IpRanges,omitempty"` +} + +// NewApiAccessRule instantiates a new ApiAccessRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApiAccessRule() *ApiAccessRule { + this := ApiAccessRule{} + return &this +} + +// NewApiAccessRuleWithDefaults instantiates a new ApiAccessRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApiAccessRuleWithDefaults() *ApiAccessRule { + this := ApiAccessRule{} + return &this +} + +// GetApiAccessRuleId returns the ApiAccessRuleId field value if set, zero value otherwise. +func (o *ApiAccessRule) GetApiAccessRuleId() string { + if o == nil || o.ApiAccessRuleId == nil { + var ret string + return ret + } + return *o.ApiAccessRuleId +} + +// GetApiAccessRuleIdOk returns a tuple with the ApiAccessRuleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiAccessRule) GetApiAccessRuleIdOk() (*string, bool) { + if o == nil || o.ApiAccessRuleId == nil { + return nil, false + } + return o.ApiAccessRuleId, true +} + +// HasApiAccessRuleId returns a boolean if a field has been set. +func (o *ApiAccessRule) HasApiAccessRuleId() bool { + if o != nil && o.ApiAccessRuleId != nil { + return true + } + + return false +} + +// SetApiAccessRuleId gets a reference to the given string and assigns it to the ApiAccessRuleId field. +func (o *ApiAccessRule) SetApiAccessRuleId(v string) { + o.ApiAccessRuleId = &v +} + +// GetCaIds returns the CaIds field value if set, zero value otherwise. +func (o *ApiAccessRule) GetCaIds() []string { + if o == nil || o.CaIds == nil { + var ret []string + return ret + } + return *o.CaIds +} + +// GetCaIdsOk returns a tuple with the CaIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiAccessRule) GetCaIdsOk() (*[]string, bool) { + if o == nil || o.CaIds == nil { + return nil, false + } + return o.CaIds, true +} + +// HasCaIds returns a boolean if a field has been set. +func (o *ApiAccessRule) HasCaIds() bool { + if o != nil && o.CaIds != nil { + return true + } + + return false +} + +// SetCaIds gets a reference to the given []string and assigns it to the CaIds field. +func (o *ApiAccessRule) SetCaIds(v []string) { + o.CaIds = &v +} + +// GetCns returns the Cns field value if set, zero value otherwise. +func (o *ApiAccessRule) GetCns() []string { + if o == nil || o.Cns == nil { + var ret []string + return ret + } + return *o.Cns +} + +// GetCnsOk returns a tuple with the Cns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiAccessRule) GetCnsOk() (*[]string, bool) { + if o == nil || o.Cns == nil { + return nil, false + } + return o.Cns, true +} + +// HasCns returns a boolean if a field has been set. +func (o *ApiAccessRule) HasCns() bool { + if o != nil && o.Cns != nil { + return true + } + + return false +} + +// SetCns gets a reference to the given []string and assigns it to the Cns field. +func (o *ApiAccessRule) SetCns(v []string) { + o.Cns = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ApiAccessRule) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiAccessRule) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ApiAccessRule) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ApiAccessRule) SetDescription(v string) { + o.Description = &v +} + +// GetIpRanges returns the IpRanges field value if set, zero value otherwise. +func (o *ApiAccessRule) GetIpRanges() []string { + if o == nil || o.IpRanges == nil { + var ret []string + return ret + } + return *o.IpRanges +} + +// GetIpRangesOk returns a tuple with the IpRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiAccessRule) GetIpRangesOk() (*[]string, bool) { + if o == nil || o.IpRanges == nil { + return nil, false + } + return o.IpRanges, true +} + +// HasIpRanges returns a boolean if a field has been set. +func (o *ApiAccessRule) HasIpRanges() bool { + if o != nil && o.IpRanges != nil { + return true + } + + return false +} + +// SetIpRanges gets a reference to the given []string and assigns it to the IpRanges field. +func (o *ApiAccessRule) SetIpRanges(v []string) { + o.IpRanges = &v +} + +func (o ApiAccessRule) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiAccessRuleId != nil { + toSerialize["ApiAccessRuleId"] = o.ApiAccessRuleId + } + if o.CaIds != nil { + toSerialize["CaIds"] = o.CaIds + } + if o.Cns != nil { + toSerialize["Cns"] = o.Cns + } + if o.Description != nil { + toSerialize["Description"] = o.Description + } + if o.IpRanges != nil { + toSerialize["IpRanges"] = o.IpRanges + } + return json.Marshal(toSerialize) +} + +type NullableApiAccessRule struct { + value *ApiAccessRule + isSet bool +} + +func (v NullableApiAccessRule) Get() *ApiAccessRule { + return v.value +} + +func (v *NullableApiAccessRule) Set(val *ApiAccessRule) { + v.value = val + v.isSet = true +} + +func (v NullableApiAccessRule) IsSet() bool { + return v.isSet +} + +func (v *NullableApiAccessRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApiAccessRule(val *ApiAccessRule) *NullableApiAccessRule { + return &NullableApiAccessRule{value: val, isSet: true} +} + +func (v NullableApiAccessRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApiAccessRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_application_sticky_cookie_policy.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_application_sticky_cookie_policy.go index 40b5b897a..fcf9a9d58 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_application_sticky_cookie_policy.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_application_sticky_cookie_policy.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableApplicationStickyCookiePolicy) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_backend_vm_health.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_backend_vm_health.go index f8d6dd089..d9bee3ec2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_backend_vm_health.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_backend_vm_health.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableBackendVmHealth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_created.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_created.go index bbce42a01..6910698fa 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_created.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_created.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableBlockDeviceMappingCreated) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_image.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_image.go index dbe4b89d5..e414ee1a7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_image.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_image.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -186,5 +186,3 @@ func (v *NullableBlockDeviceMappingImage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_creation.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_creation.go index 79045542e..326aa44aa 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_creation.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_creation.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -223,5 +223,3 @@ func (v *NullableBlockDeviceMappingVmCreation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_update.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_update.go index c1cfd96cb..a968b54eb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_update.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_block_device_mapping_vm_update.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -223,5 +223,3 @@ func (v *NullableBlockDeviceMappingVmUpdate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_created.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_created.go index 331e63eb2..9b1a061e6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_created.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_created.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // BsuCreated Information about the created BSU volume. type BsuCreated struct { - // Set to `true` by default, which means that the volume is deleted when the VM is terminated. If set to `false`, the volume is not deleted when the VM is terminated. + // Set to true by default, which means that the volume is deleted when the VM is terminated. If set to false, the volume is not deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The time and date of attachment of the volume to the VM. LinkDate *string `json:"LinkDate,omitempty"` @@ -224,5 +224,3 @@ func (v *NullableBsuCreated) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_create.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_create.go index c5193fa8f..ee309b5a3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_create.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_create.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // BsuToCreate Information about the BSU volume to create. type BsuToCreate struct { - // Set to `true` by default, which means that the volume is deleted when the VM is terminated. If set to `false`, the volume is not deleted when the VM is terminated. + // Set to true by default, which means that the volume is deleted when the VM is terminated. If set to false, the volume is not deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. Iops *int32 `json:"Iops,omitempty"` @@ -261,5 +261,3 @@ func (v *NullableBsuToCreate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_update_vm.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_update_vm.go index a9226ba76..d9fd9a1e2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_update_vm.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_bsu_to_update_vm.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // BsuToUpdateVm Information about the BSU volume. type BsuToUpdateVm struct { - // If `true`, the volume is deleted when the VM is terminated. + // If true, the volume is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The ID of the volume. VolumeId *string `json:"VolumeId,omitempty"` @@ -150,5 +150,3 @@ func (v *NullableBsuToUpdateVm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_ca.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_ca.go new file mode 100644 index 000000000..ca53d1902 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_ca.go @@ -0,0 +1,189 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// Ca Information about the Client Certificate Authority (CA). +type Ca struct { + // The fingerprint of the CA. + CaFingerprint *string `json:"CaFingerprint,omitempty"` + // The ID of the CA. + CaId *string `json:"CaId,omitempty"` + // The description of the CA. + Description *string `json:"Description,omitempty"` +} + +// NewCa instantiates a new Ca object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCa() *Ca { + this := Ca{} + return &this +} + +// NewCaWithDefaults instantiates a new Ca object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCaWithDefaults() *Ca { + this := Ca{} + return &this +} + +// GetCaFingerprint returns the CaFingerprint field value if set, zero value otherwise. +func (o *Ca) GetCaFingerprint() string { + if o == nil || o.CaFingerprint == nil { + var ret string + return ret + } + return *o.CaFingerprint +} + +// GetCaFingerprintOk returns a tuple with the CaFingerprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Ca) GetCaFingerprintOk() (*string, bool) { + if o == nil || o.CaFingerprint == nil { + return nil, false + } + return o.CaFingerprint, true +} + +// HasCaFingerprint returns a boolean if a field has been set. +func (o *Ca) HasCaFingerprint() bool { + if o != nil && o.CaFingerprint != nil { + return true + } + + return false +} + +// SetCaFingerprint gets a reference to the given string and assigns it to the CaFingerprint field. +func (o *Ca) SetCaFingerprint(v string) { + o.CaFingerprint = &v +} + +// GetCaId returns the CaId field value if set, zero value otherwise. +func (o *Ca) GetCaId() string { + if o == nil || o.CaId == nil { + var ret string + return ret + } + return *o.CaId +} + +// GetCaIdOk returns a tuple with the CaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Ca) GetCaIdOk() (*string, bool) { + if o == nil || o.CaId == nil { + return nil, false + } + return o.CaId, true +} + +// HasCaId returns a boolean if a field has been set. +func (o *Ca) HasCaId() bool { + if o != nil && o.CaId != nil { + return true + } + + return false +} + +// SetCaId gets a reference to the given string and assigns it to the CaId field. +func (o *Ca) SetCaId(v string) { + o.CaId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Ca) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Ca) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Ca) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Ca) SetDescription(v string) { + o.Description = &v +} + +func (o Ca) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CaFingerprint != nil { + toSerialize["CaFingerprint"] = o.CaFingerprint + } + if o.CaId != nil { + toSerialize["CaId"] = o.CaId + } + if o.Description != nil { + toSerialize["Description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableCa struct { + value *Ca + isSet bool +} + +func (v NullableCa) Get() *Ca { + return v.value +} + +func (v *NullableCa) Set(val *Ca) { + v.value = val + v.isSet = true +} + +func (v NullableCa) IsSet() bool { + return v.isSet +} + +func (v *NullableCa) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCa(val *Ca) *NullableCa { + return &NullableCa{value: val, isSet: true} +} + +func (v NullableCa) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCa) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_request.go index f75bc5a99..53dcc6866 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CheckAuthenticationRequest struct for CheckAuthenticationRequest type CheckAuthenticationRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The email address of the account. Login *string `json:"Login,omitempty"` @@ -187,5 +187,3 @@ func (v *NullableCheckAuthenticationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_response.go index fdb43bd20..985ea4163 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_check_authentication_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableCheckAuthenticationResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_client_gateway.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_client_gateway.go index 5eb844319..3a4a63c25 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_client_gateway.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_client_gateway.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableClientGateway) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_consumption_entry.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_consumption_entry.go index 3f4a81c4e..30733fcac 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_consumption_entry.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_consumption_entry.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -32,7 +32,7 @@ type ConsumptionEntry struct { // The type of resource, depending on the API call. Type *string `json:"Type,omitempty"` // The consumed amount for the resource. The unit depends on the resource type. For more information, see the `Title` element. - Value *string `json:"Value,omitempty"` + Value *float64 `json:"Value,omitempty"` } // NewConsumptionEntry instantiates a new ConsumptionEntry object @@ -277,9 +277,9 @@ func (o *ConsumptionEntry) SetType(v string) { } // GetValue returns the Value field value if set, zero value otherwise. -func (o *ConsumptionEntry) GetValue() string { +func (o *ConsumptionEntry) GetValue() float64 { if o == nil || o.Value == nil { - var ret string + var ret float64 return ret } return *o.Value @@ -287,7 +287,7 @@ func (o *ConsumptionEntry) GetValue() string { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConsumptionEntry) GetValueOk() (*string, bool) { +func (o *ConsumptionEntry) GetValueOk() (*float64, bool) { if o == nil || o.Value == nil { return nil, false } @@ -303,8 +303,8 @@ func (o *ConsumptionEntry) HasValue() bool { return false } -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *ConsumptionEntry) SetValue(v string) { +// SetValue gets a reference to the given float64 and assigns it to the Value field. +func (o *ConsumptionEntry) SetValue(v float64) { o.Value = &v } @@ -372,5 +372,3 @@ func (v *NullableConsumptionEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_request.go index 6f1715db2..b0e26b881 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateAccessKeyRequest struct for CreateAccessKeyRequest type CreateAccessKeyRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The date and time at which you want the access key to expire, in ISO 8601 format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). If not specified, the access key has no expiration date. ExpirationDate *string `json:"ExpirationDate,omitempty"` @@ -150,5 +150,3 @@ func (v *NullableCreateAccessKeyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_response.go index cac0d7478..cb353733a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_access_key_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // CreateAccessKeyResponse struct for CreateAccessKeyResponse type CreateAccessKeyResponse struct { - AccessKey *AccessKeySecretKey `json:"AccessKey,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + AccessKey *AccessKeySecretKey `json:"AccessKey,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewCreateAccessKeyResponse instantiates a new CreateAccessKeyResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateAccessKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_request.go index fe9c767ed..98726bd75 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -25,7 +25,7 @@ type CreateAccountRequest struct { Country string `json:"Country"` // The ID of the customer. It must be 8 digits. CustomerId string `json:"CustomerId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The email address for the account. Email string `json:"Email"` @@ -51,7 +51,7 @@ type CreateAccountRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateAccountRequest(city string, companyName string, country string, customerId string, email string, firstName string, lastName string, zipCode string, ) *CreateAccountRequest { +func NewCreateAccountRequest(city string, companyName string, country string, customerId string, email string, firstName string, lastName string, zipCode string) *CreateAccountRequest { this := CreateAccountRequest{} this.City = city this.CompanyName = companyName @@ -74,7 +74,7 @@ func NewCreateAccountRequestWithDefaults() *CreateAccountRequest { // GetCity returns the City field value func (o *CreateAccountRequest) GetCity() string { - if o == nil { + if o == nil { var ret string return ret } @@ -85,7 +85,7 @@ func (o *CreateAccountRequest) GetCity() string { // GetCityOk returns a tuple with the City field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetCityOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.City, true @@ -98,7 +98,7 @@ func (o *CreateAccountRequest) SetCity(v string) { // GetCompanyName returns the CompanyName field value func (o *CreateAccountRequest) GetCompanyName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -109,7 +109,7 @@ func (o *CreateAccountRequest) GetCompanyName() string { // GetCompanyNameOk returns a tuple with the CompanyName field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetCompanyNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.CompanyName, true @@ -122,7 +122,7 @@ func (o *CreateAccountRequest) SetCompanyName(v string) { // GetCountry returns the Country field value func (o *CreateAccountRequest) GetCountry() string { - if o == nil { + if o == nil { var ret string return ret } @@ -133,7 +133,7 @@ func (o *CreateAccountRequest) GetCountry() string { // GetCountryOk returns a tuple with the Country field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetCountryOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Country, true @@ -146,7 +146,7 @@ func (o *CreateAccountRequest) SetCountry(v string) { // GetCustomerId returns the CustomerId field value func (o *CreateAccountRequest) GetCustomerId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -157,7 +157,7 @@ func (o *CreateAccountRequest) GetCustomerId() string { // GetCustomerIdOk returns a tuple with the CustomerId field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetCustomerIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.CustomerId, true @@ -202,7 +202,7 @@ func (o *CreateAccountRequest) SetDryRun(v bool) { // GetEmail returns the Email field value func (o *CreateAccountRequest) GetEmail() string { - if o == nil { + if o == nil { var ret string return ret } @@ -213,7 +213,7 @@ func (o *CreateAccountRequest) GetEmail() string { // GetEmailOk returns a tuple with the Email field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetEmailOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Email, true @@ -226,7 +226,7 @@ func (o *CreateAccountRequest) SetEmail(v string) { // GetFirstName returns the FirstName field value func (o *CreateAccountRequest) GetFirstName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -237,7 +237,7 @@ func (o *CreateAccountRequest) GetFirstName() string { // GetFirstNameOk returns a tuple with the FirstName field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetFirstNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FirstName, true @@ -282,7 +282,7 @@ func (o *CreateAccountRequest) SetJobTitle(v string) { // GetLastName returns the LastName field value func (o *CreateAccountRequest) GetLastName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -293,7 +293,7 @@ func (o *CreateAccountRequest) GetLastName() string { // GetLastNameOk returns a tuple with the LastName field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetLastNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LastName, true @@ -434,7 +434,7 @@ func (o *CreateAccountRequest) SetVatNumber(v string) { // GetZipCode returns the ZipCode field value func (o *CreateAccountRequest) GetZipCode() string { - if o == nil { + if o == nil { var ret string return ret } @@ -445,7 +445,7 @@ func (o *CreateAccountRequest) GetZipCode() string { // GetZipCodeOk returns a tuple with the ZipCode field value // and a boolean to check if the value has been set. func (o *CreateAccountRequest) GetZipCodeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ZipCode, true @@ -538,5 +538,3 @@ func (v *NullableCreateAccountRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_response.go index ab5a0cf1d..63d0e0850 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_account_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateAccountResponse struct for CreateAccountResponse type CreateAccountResponse struct { - Account *Account `json:"Account,omitempty"` + Account *Account `json:"Account,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateAccountResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_api_access_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_api_access_rule_request.go new file mode 100644 index 000000000..d0f3a6d01 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_api_access_rule_request.go @@ -0,0 +1,263 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// CreateApiAccessRuleRequest struct for CreateApiAccessRuleRequest +type CreateApiAccessRuleRequest struct { + // One or more IDs of Client Certificate Authorities (CAs). + CaIds *[]string `json:"CaIds,omitempty"` + // One or more Client Certificate Common Names (CNs). If this parameter is specified, you must also specify the `CaIds` parameter. + Cns *[]string `json:"Cns,omitempty"` + // A description for the API access rule. + Description *string `json:"Description,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` + // One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + IpRanges *[]string `json:"IpRanges,omitempty"` +} + +// NewCreateApiAccessRuleRequest instantiates a new CreateApiAccessRuleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateApiAccessRuleRequest() *CreateApiAccessRuleRequest { + this := CreateApiAccessRuleRequest{} + return &this +} + +// NewCreateApiAccessRuleRequestWithDefaults instantiates a new CreateApiAccessRuleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateApiAccessRuleRequestWithDefaults() *CreateApiAccessRuleRequest { + this := CreateApiAccessRuleRequest{} + return &this +} + +// GetCaIds returns the CaIds field value if set, zero value otherwise. +func (o *CreateApiAccessRuleRequest) GetCaIds() []string { + if o == nil || o.CaIds == nil { + var ret []string + return ret + } + return *o.CaIds +} + +// GetCaIdsOk returns a tuple with the CaIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateApiAccessRuleRequest) GetCaIdsOk() (*[]string, bool) { + if o == nil || o.CaIds == nil { + return nil, false + } + return o.CaIds, true +} + +// HasCaIds returns a boolean if a field has been set. +func (o *CreateApiAccessRuleRequest) HasCaIds() bool { + if o != nil && o.CaIds != nil { + return true + } + + return false +} + +// SetCaIds gets a reference to the given []string and assigns it to the CaIds field. +func (o *CreateApiAccessRuleRequest) SetCaIds(v []string) { + o.CaIds = &v +} + +// GetCns returns the Cns field value if set, zero value otherwise. +func (o *CreateApiAccessRuleRequest) GetCns() []string { + if o == nil || o.Cns == nil { + var ret []string + return ret + } + return *o.Cns +} + +// GetCnsOk returns a tuple with the Cns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateApiAccessRuleRequest) GetCnsOk() (*[]string, bool) { + if o == nil || o.Cns == nil { + return nil, false + } + return o.Cns, true +} + +// HasCns returns a boolean if a field has been set. +func (o *CreateApiAccessRuleRequest) HasCns() bool { + if o != nil && o.Cns != nil { + return true + } + + return false +} + +// SetCns gets a reference to the given []string and assigns it to the Cns field. +func (o *CreateApiAccessRuleRequest) SetCns(v []string) { + o.Cns = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateApiAccessRuleRequest) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateApiAccessRuleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateApiAccessRuleRequest) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateApiAccessRuleRequest) SetDescription(v string) { + o.Description = &v +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *CreateApiAccessRuleRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateApiAccessRuleRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *CreateApiAccessRuleRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *CreateApiAccessRuleRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +// GetIpRanges returns the IpRanges field value if set, zero value otherwise. +func (o *CreateApiAccessRuleRequest) GetIpRanges() []string { + if o == nil || o.IpRanges == nil { + var ret []string + return ret + } + return *o.IpRanges +} + +// GetIpRangesOk returns a tuple with the IpRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateApiAccessRuleRequest) GetIpRangesOk() (*[]string, bool) { + if o == nil || o.IpRanges == nil { + return nil, false + } + return o.IpRanges, true +} + +// HasIpRanges returns a boolean if a field has been set. +func (o *CreateApiAccessRuleRequest) HasIpRanges() bool { + if o != nil && o.IpRanges != nil { + return true + } + + return false +} + +// SetIpRanges gets a reference to the given []string and assigns it to the IpRanges field. +func (o *CreateApiAccessRuleRequest) SetIpRanges(v []string) { + o.IpRanges = &v +} + +func (o CreateApiAccessRuleRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CaIds != nil { + toSerialize["CaIds"] = o.CaIds + } + if o.Cns != nil { + toSerialize["Cns"] = o.Cns + } + if o.Description != nil { + toSerialize["Description"] = o.Description + } + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + if o.IpRanges != nil { + toSerialize["IpRanges"] = o.IpRanges + } + return json.Marshal(toSerialize) +} + +type NullableCreateApiAccessRuleRequest struct { + value *CreateApiAccessRuleRequest + isSet bool +} + +func (v NullableCreateApiAccessRuleRequest) Get() *CreateApiAccessRuleRequest { + return v.value +} + +func (v *NullableCreateApiAccessRuleRequest) Set(val *CreateApiAccessRuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateApiAccessRuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateApiAccessRuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateApiAccessRuleRequest(val *CreateApiAccessRuleRequest) *NullableCreateApiAccessRuleRequest { + return &NullableCreateApiAccessRuleRequest{value: val, isSet: true} +} + +func (v NullableCreateApiAccessRuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateApiAccessRuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_api_access_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_api_access_rule_response.go new file mode 100644 index 000000000..d07d88713 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_api_access_rule_response.go @@ -0,0 +1,150 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// CreateApiAccessRuleResponse struct for CreateApiAccessRuleResponse +type CreateApiAccessRuleResponse struct { + ApiAccessRule *ApiAccessRule `json:"ApiAccessRule,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewCreateApiAccessRuleResponse instantiates a new CreateApiAccessRuleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateApiAccessRuleResponse() *CreateApiAccessRuleResponse { + this := CreateApiAccessRuleResponse{} + return &this +} + +// NewCreateApiAccessRuleResponseWithDefaults instantiates a new CreateApiAccessRuleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateApiAccessRuleResponseWithDefaults() *CreateApiAccessRuleResponse { + this := CreateApiAccessRuleResponse{} + return &this +} + +// GetApiAccessRule returns the ApiAccessRule field value if set, zero value otherwise. +func (o *CreateApiAccessRuleResponse) GetApiAccessRule() ApiAccessRule { + if o == nil || o.ApiAccessRule == nil { + var ret ApiAccessRule + return ret + } + return *o.ApiAccessRule +} + +// GetApiAccessRuleOk returns a tuple with the ApiAccessRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateApiAccessRuleResponse) GetApiAccessRuleOk() (*ApiAccessRule, bool) { + if o == nil || o.ApiAccessRule == nil { + return nil, false + } + return o.ApiAccessRule, true +} + +// HasApiAccessRule returns a boolean if a field has been set. +func (o *CreateApiAccessRuleResponse) HasApiAccessRule() bool { + if o != nil && o.ApiAccessRule != nil { + return true + } + + return false +} + +// SetApiAccessRule gets a reference to the given ApiAccessRule and assigns it to the ApiAccessRule field. +func (o *CreateApiAccessRuleResponse) SetApiAccessRule(v ApiAccessRule) { + o.ApiAccessRule = &v +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *CreateApiAccessRuleResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateApiAccessRuleResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *CreateApiAccessRuleResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *CreateApiAccessRuleResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o CreateApiAccessRuleResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiAccessRule != nil { + toSerialize["ApiAccessRule"] = o.ApiAccessRule + } + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableCreateApiAccessRuleResponse struct { + value *CreateApiAccessRuleResponse + isSet bool +} + +func (v NullableCreateApiAccessRuleResponse) Get() *CreateApiAccessRuleResponse { + return v.value +} + +func (v *NullableCreateApiAccessRuleResponse) Set(val *CreateApiAccessRuleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateApiAccessRuleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateApiAccessRuleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateApiAccessRuleResponse(val *CreateApiAccessRuleResponse) *NullableCreateApiAccessRuleResponse { + return &NullableCreateApiAccessRuleResponse{value: val, isSet: true} +} + +func (v NullableCreateApiAccessRuleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateApiAccessRuleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_ca_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_ca_request.go new file mode 100644 index 000000000..7914cc39f --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_ca_request.go @@ -0,0 +1,182 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// CreateCaRequest struct for CreateCaRequest +type CreateCaRequest struct { + // The CA in PEM format. + CaPem string `json:"CaPem"` + // The description of the CA. + Description *string `json:"Description,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` +} + +// NewCreateCaRequest instantiates a new CreateCaRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateCaRequest(caPem string) *CreateCaRequest { + this := CreateCaRequest{} + this.CaPem = caPem + return &this +} + +// NewCreateCaRequestWithDefaults instantiates a new CreateCaRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateCaRequestWithDefaults() *CreateCaRequest { + this := CreateCaRequest{} + return &this +} + +// GetCaPem returns the CaPem field value +func (o *CreateCaRequest) GetCaPem() string { + if o == nil { + var ret string + return ret + } + + return o.CaPem +} + +// GetCaPemOk returns a tuple with the CaPem field value +// and a boolean to check if the value has been set. +func (o *CreateCaRequest) GetCaPemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CaPem, true +} + +// SetCaPem sets field value +func (o *CreateCaRequest) SetCaPem(v string) { + o.CaPem = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateCaRequest) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCaRequest) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateCaRequest) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateCaRequest) SetDescription(v string) { + o.Description = &v +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *CreateCaRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCaRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *CreateCaRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *CreateCaRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +func (o CreateCaRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["CaPem"] = o.CaPem + } + if o.Description != nil { + toSerialize["Description"] = o.Description + } + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + return json.Marshal(toSerialize) +} + +type NullableCreateCaRequest struct { + value *CreateCaRequest + isSet bool +} + +func (v NullableCreateCaRequest) Get() *CreateCaRequest { + return v.value +} + +func (v *NullableCreateCaRequest) Set(val *CreateCaRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateCaRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateCaRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateCaRequest(val *CreateCaRequest) *NullableCreateCaRequest { + return &NullableCreateCaRequest{value: val, isSet: true} +} + +func (v NullableCreateCaRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateCaRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_ca_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_ca_response.go new file mode 100644 index 000000000..29ccc80ef --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_ca_response.go @@ -0,0 +1,150 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// CreateCaResponse struct for CreateCaResponse +type CreateCaResponse struct { + Ca *Ca `json:"Ca,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewCreateCaResponse instantiates a new CreateCaResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateCaResponse() *CreateCaResponse { + this := CreateCaResponse{} + return &this +} + +// NewCreateCaResponseWithDefaults instantiates a new CreateCaResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateCaResponseWithDefaults() *CreateCaResponse { + this := CreateCaResponse{} + return &this +} + +// GetCa returns the Ca field value if set, zero value otherwise. +func (o *CreateCaResponse) GetCa() Ca { + if o == nil || o.Ca == nil { + var ret Ca + return ret + } + return *o.Ca +} + +// GetCaOk returns a tuple with the Ca field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCaResponse) GetCaOk() (*Ca, bool) { + if o == nil || o.Ca == nil { + return nil, false + } + return o.Ca, true +} + +// HasCa returns a boolean if a field has been set. +func (o *CreateCaResponse) HasCa() bool { + if o != nil && o.Ca != nil { + return true + } + + return false +} + +// SetCa gets a reference to the given Ca and assigns it to the Ca field. +func (o *CreateCaResponse) SetCa(v Ca) { + o.Ca = &v +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *CreateCaResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCaResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *CreateCaResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *CreateCaResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o CreateCaResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Ca != nil { + toSerialize["Ca"] = o.Ca + } + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableCreateCaResponse struct { + value *CreateCaResponse + isSet bool +} + +func (v NullableCreateCaResponse) Get() *CreateCaResponse { + return v.value +} + +func (v *NullableCreateCaResponse) Set(val *CreateCaResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateCaResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateCaResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateCaResponse(val *CreateCaResponse) *NullableCreateCaResponse { + return &NullableCreateCaResponse{value: val, isSet: true} +} + +func (v NullableCreateCaResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateCaResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_request.go index 2b5531a8e..02f03f0a0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type CreateClientGatewayRequest struct { BgpAsn int32 `json:"BgpAsn"` // The communication protocol used to establish tunnel with your client gateway (only `ipsec.1` is supported). ConnectionType string `json:"ConnectionType"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The public fixed IPv4 address of your client gateway. PublicIp string `json:"PublicIp"` @@ -31,7 +31,7 @@ type CreateClientGatewayRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateClientGatewayRequest(bgpAsn int32, connectionType string, publicIp string, ) *CreateClientGatewayRequest { +func NewCreateClientGatewayRequest(bgpAsn int32, connectionType string, publicIp string) *CreateClientGatewayRequest { this := CreateClientGatewayRequest{} this.BgpAsn = bgpAsn this.ConnectionType = connectionType @@ -49,7 +49,7 @@ func NewCreateClientGatewayRequestWithDefaults() *CreateClientGatewayRequest { // GetBgpAsn returns the BgpAsn field value func (o *CreateClientGatewayRequest) GetBgpAsn() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -60,7 +60,7 @@ func (o *CreateClientGatewayRequest) GetBgpAsn() int32 { // GetBgpAsnOk returns a tuple with the BgpAsn field value // and a boolean to check if the value has been set. func (o *CreateClientGatewayRequest) GetBgpAsnOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.BgpAsn, true @@ -73,7 +73,7 @@ func (o *CreateClientGatewayRequest) SetBgpAsn(v int32) { // GetConnectionType returns the ConnectionType field value func (o *CreateClientGatewayRequest) GetConnectionType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -84,7 +84,7 @@ func (o *CreateClientGatewayRequest) GetConnectionType() string { // GetConnectionTypeOk returns a tuple with the ConnectionType field value // and a boolean to check if the value has been set. func (o *CreateClientGatewayRequest) GetConnectionTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ConnectionType, true @@ -129,7 +129,7 @@ func (o *CreateClientGatewayRequest) SetDryRun(v bool) { // GetPublicIp returns the PublicIp field value func (o *CreateClientGatewayRequest) GetPublicIp() string { - if o == nil { + if o == nil { var ret string return ret } @@ -140,7 +140,7 @@ func (o *CreateClientGatewayRequest) GetPublicIp() string { // GetPublicIpOk returns a tuple with the PublicIp field value // and a boolean to check if the value has been set. func (o *CreateClientGatewayRequest) GetPublicIpOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PublicIp, true @@ -203,5 +203,3 @@ func (v *NullableCreateClientGatewayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_response.go index cd90ce2a0..804578fe5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_client_gateway_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateClientGatewayResponse struct for CreateClientGatewayResponse type CreateClientGatewayResponse struct { - ClientGateway *ClientGateway `json:"ClientGateway,omitempty"` + ClientGateway *ClientGateway `json:"ClientGateway,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateClientGatewayResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_request.go index 31127700a..dcd54fd1d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type CreateDhcpOptionsRequest struct { DomainName *string `json:"DomainName,omitempty"` // The IP addresses of domain name servers. If no IP addresses are specified, the `OutscaleProvidedDNS` value is set by default. DomainNameServers *[]string `json:"DomainNameServers,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The IP addresses of the Network Time Protocol (NTP) servers. NtpServers *[]string `json:"NtpServers,omitempty"` @@ -224,5 +224,3 @@ func (v *NullableCreateDhcpOptionsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_response.go index 63de11e25..408ff49a0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_dhcp_options_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateDhcpOptionsResponse struct for CreateDhcpOptionsResponse type CreateDhcpOptionsResponse struct { - DhcpOptionsSet *DhcpOptionsSet `json:"DhcpOptionsSet,omitempty"` + DhcpOptionsSet *DhcpOptionsSet `json:"DhcpOptionsSet,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateDhcpOptionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_request.go index 910283c28..c1b616ada 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,9 +18,9 @@ import ( // CreateDirectLinkInterfaceRequest struct for CreateDirectLinkInterfaceRequest type CreateDirectLinkInterfaceRequest struct { // The ID of the existing DirectLink for which you want to create the DirectLink interface. - DirectLinkId string `json:"DirectLinkId"` + DirectLinkId string `json:"DirectLinkId"` DirectLinkInterface DirectLinkInterface `json:"DirectLinkInterface"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -28,7 +28,7 @@ type CreateDirectLinkInterfaceRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateDirectLinkInterfaceRequest(directLinkId string, directLinkInterface DirectLinkInterface, ) *CreateDirectLinkInterfaceRequest { +func NewCreateDirectLinkInterfaceRequest(directLinkId string, directLinkInterface DirectLinkInterface) *CreateDirectLinkInterfaceRequest { this := CreateDirectLinkInterfaceRequest{} this.DirectLinkId = directLinkId this.DirectLinkInterface = directLinkInterface @@ -45,7 +45,7 @@ func NewCreateDirectLinkInterfaceRequestWithDefaults() *CreateDirectLinkInterfac // GetDirectLinkId returns the DirectLinkId field value func (o *CreateDirectLinkInterfaceRequest) GetDirectLinkId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -56,7 +56,7 @@ func (o *CreateDirectLinkInterfaceRequest) GetDirectLinkId() string { // GetDirectLinkIdOk returns a tuple with the DirectLinkId field value // and a boolean to check if the value has been set. func (o *CreateDirectLinkInterfaceRequest) GetDirectLinkIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DirectLinkId, true @@ -69,7 +69,7 @@ func (o *CreateDirectLinkInterfaceRequest) SetDirectLinkId(v string) { // GetDirectLinkInterface returns the DirectLinkInterface field value func (o *CreateDirectLinkInterfaceRequest) GetDirectLinkInterface() DirectLinkInterface { - if o == nil { + if o == nil { var ret DirectLinkInterface return ret } @@ -80,7 +80,7 @@ func (o *CreateDirectLinkInterfaceRequest) GetDirectLinkInterface() DirectLinkIn // GetDirectLinkInterfaceOk returns a tuple with the DirectLinkInterface field value // and a boolean to check if the value has been set. func (o *CreateDirectLinkInterfaceRequest) GetDirectLinkInterfaceOk() (*DirectLinkInterface, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DirectLinkInterface, true @@ -172,5 +172,3 @@ func (v *NullableCreateDirectLinkInterfaceRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_response.go index ff7626f43..9705a340d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_interface_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateDirectLinkInterfaceResponse struct for CreateDirectLinkInterfaceResponse type CreateDirectLinkInterfaceResponse struct { DirectLinkInterface *DirectLinkInterfaces `json:"DirectLinkInterface,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewCreateDirectLinkInterfaceResponse instantiates a new CreateDirectLinkInterfaceResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateDirectLinkInterfaceResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_request.go index 110feb5b0..1a93e5484 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type CreateDirectLinkRequest struct { Bandwidth string `json:"Bandwidth"` // The name of the DirectLink. DirectLinkName string `json:"DirectLinkName"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The code of the requested location for the DirectLink, returned by the [ReadLocations](#readlocations) method. Location string `json:"Location"` @@ -31,7 +31,7 @@ type CreateDirectLinkRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateDirectLinkRequest(bandwidth string, directLinkName string, location string, ) *CreateDirectLinkRequest { +func NewCreateDirectLinkRequest(bandwidth string, directLinkName string, location string) *CreateDirectLinkRequest { this := CreateDirectLinkRequest{} this.Bandwidth = bandwidth this.DirectLinkName = directLinkName @@ -49,7 +49,7 @@ func NewCreateDirectLinkRequestWithDefaults() *CreateDirectLinkRequest { // GetBandwidth returns the Bandwidth field value func (o *CreateDirectLinkRequest) GetBandwidth() string { - if o == nil { + if o == nil { var ret string return ret } @@ -60,7 +60,7 @@ func (o *CreateDirectLinkRequest) GetBandwidth() string { // GetBandwidthOk returns a tuple with the Bandwidth field value // and a boolean to check if the value has been set. func (o *CreateDirectLinkRequest) GetBandwidthOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Bandwidth, true @@ -73,7 +73,7 @@ func (o *CreateDirectLinkRequest) SetBandwidth(v string) { // GetDirectLinkName returns the DirectLinkName field value func (o *CreateDirectLinkRequest) GetDirectLinkName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -84,7 +84,7 @@ func (o *CreateDirectLinkRequest) GetDirectLinkName() string { // GetDirectLinkNameOk returns a tuple with the DirectLinkName field value // and a boolean to check if the value has been set. func (o *CreateDirectLinkRequest) GetDirectLinkNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DirectLinkName, true @@ -129,7 +129,7 @@ func (o *CreateDirectLinkRequest) SetDryRun(v bool) { // GetLocation returns the Location field value func (o *CreateDirectLinkRequest) GetLocation() string { - if o == nil { + if o == nil { var ret string return ret } @@ -140,7 +140,7 @@ func (o *CreateDirectLinkRequest) GetLocation() string { // GetLocationOk returns a tuple with the Location field value // and a boolean to check if the value has been set. func (o *CreateDirectLinkRequest) GetLocationOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Location, true @@ -203,5 +203,3 @@ func (v *NullableCreateDirectLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_response.go index f92105737..a1566d6eb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_direct_link_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateDirectLinkResponse struct for CreateDirectLinkResponse type CreateDirectLinkResponse struct { - DirectLink *DirectLink `json:"DirectLink,omitempty"` + DirectLink *DirectLink `json:"DirectLink,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateDirectLinkResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_request.go index 82e28082b..16a81e85b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,9 +17,9 @@ import ( // CreateFlexibleGpuRequest struct for CreateFlexibleGpuRequest type CreateFlexibleGpuRequest struct { - // If `true`, the fGPU is deleted when the VM is terminated. + // If true, the fGPU is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by [ReadFlexibleGpuCatalog](#readflexiblegpucatalog) for the specified model of fGPU). Generation *string `json:"Generation,omitempty"` @@ -33,7 +33,7 @@ type CreateFlexibleGpuRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateFlexibleGpuRequest(modelName string, subregionName string, ) *CreateFlexibleGpuRequest { +func NewCreateFlexibleGpuRequest(modelName string, subregionName string) *CreateFlexibleGpuRequest { this := CreateFlexibleGpuRequest{} var deleteOnVmDeletion bool = false this.DeleteOnVmDeletion = &deleteOnVmDeletion @@ -150,7 +150,7 @@ func (o *CreateFlexibleGpuRequest) SetGeneration(v string) { // GetModelName returns the ModelName field value func (o *CreateFlexibleGpuRequest) GetModelName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -161,7 +161,7 @@ func (o *CreateFlexibleGpuRequest) GetModelName() string { // GetModelNameOk returns a tuple with the ModelName field value // and a boolean to check if the value has been set. func (o *CreateFlexibleGpuRequest) GetModelNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ModelName, true @@ -174,7 +174,7 @@ func (o *CreateFlexibleGpuRequest) SetModelName(v string) { // GetSubregionName returns the SubregionName field value func (o *CreateFlexibleGpuRequest) GetSubregionName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -185,7 +185,7 @@ func (o *CreateFlexibleGpuRequest) GetSubregionName() string { // GetSubregionNameOk returns a tuple with the SubregionName field value // and a boolean to check if the value has been set. func (o *CreateFlexibleGpuRequest) GetSubregionNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SubregionName, true @@ -251,5 +251,3 @@ func (v *NullableCreateFlexibleGpuRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_response.go index e9e88e0f2..e941df9d8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_flexible_gpu_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateFlexibleGpuResponse struct for CreateFlexibleGpuResponse type CreateFlexibleGpuResponse struct { - FlexibleGpu *FlexibleGpu `json:"FlexibleGpu,omitempty"` + FlexibleGpu *FlexibleGpu `json:"FlexibleGpu,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateFlexibleGpuResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_request.go index f6b8253fa..16f3b8106 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,10 +17,10 @@ import ( // CreateImageExportTaskRequest struct for CreateImageExportTaskRequest type CreateImageExportTaskRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the OMI to export. - ImageId string `json:"ImageId"` + ImageId string `json:"ImageId"` OsuExport OsuExport `json:"OsuExport"` } @@ -28,7 +28,7 @@ type CreateImageExportTaskRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateImageExportTaskRequest(imageId string, osuExport OsuExport, ) *CreateImageExportTaskRequest { +func NewCreateImageExportTaskRequest(imageId string, osuExport OsuExport) *CreateImageExportTaskRequest { this := CreateImageExportTaskRequest{} this.ImageId = imageId this.OsuExport = osuExport @@ -77,7 +77,7 @@ func (o *CreateImageExportTaskRequest) SetDryRun(v bool) { // GetImageId returns the ImageId field value func (o *CreateImageExportTaskRequest) GetImageId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -88,7 +88,7 @@ func (o *CreateImageExportTaskRequest) GetImageId() string { // GetImageIdOk returns a tuple with the ImageId field value // and a boolean to check if the value has been set. func (o *CreateImageExportTaskRequest) GetImageIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ImageId, true @@ -101,7 +101,7 @@ func (o *CreateImageExportTaskRequest) SetImageId(v string) { // GetOsuExport returns the OsuExport field value func (o *CreateImageExportTaskRequest) GetOsuExport() OsuExport { - if o == nil { + if o == nil { var ret OsuExport return ret } @@ -112,7 +112,7 @@ func (o *CreateImageExportTaskRequest) GetOsuExport() OsuExport { // GetOsuExportOk returns a tuple with the OsuExport field value // and a boolean to check if the value has been set. func (o *CreateImageExportTaskRequest) GetOsuExportOk() (*OsuExport, bool) { - if o == nil { + if o == nil { return nil, false } return &o.OsuExport, true @@ -172,5 +172,3 @@ func (v *NullableCreateImageExportTaskRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_response.go index 97f4796e7..f96c84985 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_export_task_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -148,5 +148,3 @@ func (v *NullableCreateImageExportTaskResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_request.go index f1652a73b..19e22ff99 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -23,13 +23,13 @@ type CreateImageRequest struct { BlockDeviceMappings *[]BlockDeviceMappingImage `json:"BlockDeviceMappings,omitempty"` // A description for the new OMI. Description *string `json:"Description,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The pre-signed URL of the OMI manifest file, or the full path to the OMI stored in an OSU bucket. If you specify this parameter, a copy of the OMI is created in your account. FileLocation *string `json:"FileLocation,omitempty"` // A unique name for the new OMI.
Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-). ImageName *string `json:"ImageName,omitempty"` - // If `false`, the VM shuts down before creating the OMI and then reboots. If `true`, the VM does not. + // If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not. NoReboot *bool `json:"NoReboot,omitempty"` // The name of the root device. RootDeviceName *string `json:"RootDeviceName,omitempty"` @@ -483,5 +483,3 @@ func (v *NullableCreateImageRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_response.go index 819243635..ace74846d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_image_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateImageResponse struct for CreateImageResponse type CreateImageResponse struct { - Image *Image `json:"Image,omitempty"` + Image *Image `json:"Image,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateImageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_request.go index 2b52534b3..78186b35a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateInternetServiceRequest struct for CreateInternetServiceRequest type CreateInternetServiceRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -113,5 +113,3 @@ func (v *NullableCreateInternetServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_response.go index 5290f8ce4..99ed6d8c5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_internet_service_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -148,5 +148,3 @@ func (v *NullableCreateInternetServiceResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_request.go index bded5bd2a..d00d0ef12 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateKeypairRequest struct for CreateKeypairRequest type CreateKeypairRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // A unique name for the keypair, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). KeypairName string `json:"KeypairName"` @@ -29,7 +29,7 @@ type CreateKeypairRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateKeypairRequest(keypairName string, ) *CreateKeypairRequest { +func NewCreateKeypairRequest(keypairName string) *CreateKeypairRequest { this := CreateKeypairRequest{} this.KeypairName = keypairName return &this @@ -77,7 +77,7 @@ func (o *CreateKeypairRequest) SetDryRun(v bool) { // GetKeypairName returns the KeypairName field value func (o *CreateKeypairRequest) GetKeypairName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -88,7 +88,7 @@ func (o *CreateKeypairRequest) GetKeypairName() string { // GetKeypairNameOk returns a tuple with the KeypairName field value // and a boolean to check if the value has been set. func (o *CreateKeypairRequest) GetKeypairNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.KeypairName, true @@ -180,5 +180,3 @@ func (v *NullableCreateKeypairRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_response.go index 66926ac56..670071430 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_keypair_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateKeypairResponse struct for CreateKeypairResponse type CreateKeypairResponse struct { - Keypair *KeypairCreated `json:"Keypair,omitempty"` + Keypair *KeypairCreated `json:"Keypair,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateKeypairResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_request.go index 9f9508b40..b8fe40281 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,9 +17,9 @@ import ( // CreateListenerRuleRequest struct for CreateListenerRuleRequest type CreateListenerRuleRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` - Listener LoadBalancerLight `json:"Listener"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` + Listener LoadBalancerLight `json:"Listener"` ListenerRule ListenerRuleForCreation `json:"ListenerRule"` // The IDs of the backend VMs. VmIds []string `json:"VmIds"` @@ -29,7 +29,7 @@ type CreateListenerRuleRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateListenerRuleRequest(listener LoadBalancerLight, listenerRule ListenerRuleForCreation, vmIds []string, ) *CreateListenerRuleRequest { +func NewCreateListenerRuleRequest(listener LoadBalancerLight, listenerRule ListenerRuleForCreation, vmIds []string) *CreateListenerRuleRequest { this := CreateListenerRuleRequest{} this.Listener = listener this.ListenerRule = listenerRule @@ -79,7 +79,7 @@ func (o *CreateListenerRuleRequest) SetDryRun(v bool) { // GetListener returns the Listener field value func (o *CreateListenerRuleRequest) GetListener() LoadBalancerLight { - if o == nil { + if o == nil { var ret LoadBalancerLight return ret } @@ -90,7 +90,7 @@ func (o *CreateListenerRuleRequest) GetListener() LoadBalancerLight { // GetListenerOk returns a tuple with the Listener field value // and a boolean to check if the value has been set. func (o *CreateListenerRuleRequest) GetListenerOk() (*LoadBalancerLight, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Listener, true @@ -103,7 +103,7 @@ func (o *CreateListenerRuleRequest) SetListener(v LoadBalancerLight) { // GetListenerRule returns the ListenerRule field value func (o *CreateListenerRuleRequest) GetListenerRule() ListenerRuleForCreation { - if o == nil { + if o == nil { var ret ListenerRuleForCreation return ret } @@ -114,7 +114,7 @@ func (o *CreateListenerRuleRequest) GetListenerRule() ListenerRuleForCreation { // GetListenerRuleOk returns a tuple with the ListenerRule field value // and a boolean to check if the value has been set. func (o *CreateListenerRuleRequest) GetListenerRuleOk() (*ListenerRuleForCreation, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ListenerRule, true @@ -127,7 +127,7 @@ func (o *CreateListenerRuleRequest) SetListenerRule(v ListenerRuleForCreation) { // GetVmIds returns the VmIds field value func (o *CreateListenerRuleRequest) GetVmIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -138,7 +138,7 @@ func (o *CreateListenerRuleRequest) GetVmIds() []string { // GetVmIdsOk returns a tuple with the VmIds field value // and a boolean to check if the value has been set. func (o *CreateListenerRuleRequest) GetVmIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmIds, true @@ -201,5 +201,3 @@ func (v *NullableCreateListenerRuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_response.go index bd25863bd..43416ad9b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_listener_rule_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateListenerRuleResponse struct for CreateListenerRuleResponse type CreateListenerRuleResponse struct { - ListenerRule *ListenerRule `json:"ListenerRule,omitempty"` + ListenerRule *ListenerRule `json:"ListenerRule,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateListenerRuleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_request.go index ae96ef2f4..8f19c8ad1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateLoadBalancerListenersRequest struct for CreateLoadBalancerListenersRequest type CreateLoadBalancerListenersRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more listeners for the load balancer. Listeners []ListenerForCreation `json:"Listeners"` @@ -29,7 +29,7 @@ type CreateLoadBalancerListenersRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateLoadBalancerListenersRequest(listeners []ListenerForCreation, loadBalancerName string, ) *CreateLoadBalancerListenersRequest { +func NewCreateLoadBalancerListenersRequest(listeners []ListenerForCreation, loadBalancerName string) *CreateLoadBalancerListenersRequest { this := CreateLoadBalancerListenersRequest{} this.Listeners = listeners this.LoadBalancerName = loadBalancerName @@ -78,7 +78,7 @@ func (o *CreateLoadBalancerListenersRequest) SetDryRun(v bool) { // GetListeners returns the Listeners field value func (o *CreateLoadBalancerListenersRequest) GetListeners() []ListenerForCreation { - if o == nil { + if o == nil { var ret []ListenerForCreation return ret } @@ -89,7 +89,7 @@ func (o *CreateLoadBalancerListenersRequest) GetListeners() []ListenerForCreatio // GetListenersOk returns a tuple with the Listeners field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerListenersRequest) GetListenersOk() (*[]ListenerForCreation, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Listeners, true @@ -102,7 +102,7 @@ func (o *CreateLoadBalancerListenersRequest) SetListeners(v []ListenerForCreatio // GetLoadBalancerName returns the LoadBalancerName field value func (o *CreateLoadBalancerListenersRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *CreateLoadBalancerListenersRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerListenersRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -173,5 +173,3 @@ func (v *NullableCreateLoadBalancerListenersRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_response.go index 7501df03e..5bcfa5965 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_listeners_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateLoadBalancerListenersResponse struct for CreateLoadBalancerListenersResponse type CreateLoadBalancerListenersResponse struct { - LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` + LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateLoadBalancerListenersResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_request.go index 60551c7d3..215b5c1fe 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateLoadBalancerPolicyRequest struct { // The name of the application cookie used for stickiness. This parameter is required if you create a stickiness policy based on an application-generated cookie. CookieName *string `json:"CookieName,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the load balancer for which you want to create a policy. LoadBalancerName string `json:"LoadBalancerName"` @@ -33,7 +33,7 @@ type CreateLoadBalancerPolicyRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateLoadBalancerPolicyRequest(loadBalancerName string, policyName string, policyType string, ) *CreateLoadBalancerPolicyRequest { +func NewCreateLoadBalancerPolicyRequest(loadBalancerName string, policyName string, policyType string) *CreateLoadBalancerPolicyRequest { this := CreateLoadBalancerPolicyRequest{} this.LoadBalancerName = loadBalancerName this.PolicyName = policyName @@ -115,7 +115,7 @@ func (o *CreateLoadBalancerPolicyRequest) SetDryRun(v bool) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *CreateLoadBalancerPolicyRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -126,7 +126,7 @@ func (o *CreateLoadBalancerPolicyRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerPolicyRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -139,7 +139,7 @@ func (o *CreateLoadBalancerPolicyRequest) SetLoadBalancerName(v string) { // GetPolicyName returns the PolicyName field value func (o *CreateLoadBalancerPolicyRequest) GetPolicyName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -150,7 +150,7 @@ func (o *CreateLoadBalancerPolicyRequest) GetPolicyName() string { // GetPolicyNameOk returns a tuple with the PolicyName field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerPolicyRequest) GetPolicyNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PolicyName, true @@ -163,7 +163,7 @@ func (o *CreateLoadBalancerPolicyRequest) SetPolicyName(v string) { // GetPolicyType returns the PolicyType field value func (o *CreateLoadBalancerPolicyRequest) GetPolicyType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -174,7 +174,7 @@ func (o *CreateLoadBalancerPolicyRequest) GetPolicyType() string { // GetPolicyTypeOk returns a tuple with the PolicyType field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerPolicyRequest) GetPolicyTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PolicyType, true @@ -240,5 +240,3 @@ func (v *NullableCreateLoadBalancerPolicyRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_response.go index dcaba659e..2131213a6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_policy_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateLoadBalancerPolicyResponse struct for CreateLoadBalancerPolicyResponse type CreateLoadBalancerPolicyResponse struct { - LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` + LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateLoadBalancerPolicyResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_request.go index 48a51d107..6bfd14dd4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateLoadBalancerRequest struct for CreateLoadBalancerRequest type CreateLoadBalancerRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more listeners to create. Listeners []ListenerForCreation `json:"Listeners"` @@ -39,7 +39,7 @@ type CreateLoadBalancerRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateLoadBalancerRequest(listeners []ListenerForCreation, loadBalancerName string, ) *CreateLoadBalancerRequest { +func NewCreateLoadBalancerRequest(listeners []ListenerForCreation, loadBalancerName string) *CreateLoadBalancerRequest { this := CreateLoadBalancerRequest{} this.Listeners = listeners this.LoadBalancerName = loadBalancerName @@ -88,7 +88,7 @@ func (o *CreateLoadBalancerRequest) SetDryRun(v bool) { // GetListeners returns the Listeners field value func (o *CreateLoadBalancerRequest) GetListeners() []ListenerForCreation { - if o == nil { + if o == nil { var ret []ListenerForCreation return ret } @@ -99,7 +99,7 @@ func (o *CreateLoadBalancerRequest) GetListeners() []ListenerForCreation { // GetListenersOk returns a tuple with the Listeners field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerRequest) GetListenersOk() (*[]ListenerForCreation, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Listeners, true @@ -112,7 +112,7 @@ func (o *CreateLoadBalancerRequest) SetListeners(v []ListenerForCreation) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *CreateLoadBalancerRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -123,7 +123,7 @@ func (o *CreateLoadBalancerRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -358,5 +358,3 @@ func (v *NullableCreateLoadBalancerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_response.go index da425d8ee..d5c93baf1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateLoadBalancerResponse struct for CreateLoadBalancerResponse type CreateLoadBalancerResponse struct { - LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` + LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateLoadBalancerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_request.go index d733a986d..49aed024f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateLoadBalancerTagsRequest struct for CreateLoadBalancerTagsRequest type CreateLoadBalancerTagsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more load balancer names. LoadBalancerNames []string `json:"LoadBalancerNames"` @@ -29,7 +29,7 @@ type CreateLoadBalancerTagsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateLoadBalancerTagsRequest(loadBalancerNames []string, tags []ResourceTag, ) *CreateLoadBalancerTagsRequest { +func NewCreateLoadBalancerTagsRequest(loadBalancerNames []string, tags []ResourceTag) *CreateLoadBalancerTagsRequest { this := CreateLoadBalancerTagsRequest{} this.LoadBalancerNames = loadBalancerNames this.Tags = tags @@ -78,7 +78,7 @@ func (o *CreateLoadBalancerTagsRequest) SetDryRun(v bool) { // GetLoadBalancerNames returns the LoadBalancerNames field value func (o *CreateLoadBalancerTagsRequest) GetLoadBalancerNames() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -89,7 +89,7 @@ func (o *CreateLoadBalancerTagsRequest) GetLoadBalancerNames() []string { // GetLoadBalancerNamesOk returns a tuple with the LoadBalancerNames field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerTagsRequest) GetLoadBalancerNamesOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerNames, true @@ -102,7 +102,7 @@ func (o *CreateLoadBalancerTagsRequest) SetLoadBalancerNames(v []string) { // GetTags returns the Tags field value func (o *CreateLoadBalancerTagsRequest) GetTags() []ResourceTag { - if o == nil { + if o == nil { var ret []ResourceTag return ret } @@ -113,7 +113,7 @@ func (o *CreateLoadBalancerTagsRequest) GetTags() []ResourceTag { // GetTagsOk returns a tuple with the Tags field value // and a boolean to check if the value has been set. func (o *CreateLoadBalancerTagsRequest) GetTagsOk() (*[]ResourceTag, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Tags, true @@ -173,5 +173,3 @@ func (v *NullableCreateLoadBalancerTagsRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_response.go index 23b6044e9..68f8bafd7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_load_balancer_tags_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableCreateLoadBalancerTagsResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_request.go index 5845b3ba0..8ffdd957c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateNatServiceRequest struct for CreateNatServiceRequest type CreateNatServiceRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The allocation ID of the EIP to associate with the NAT service.
If the EIP is already associated with another resource, you must first disassociate it. PublicIpId string `json:"PublicIpId"` @@ -29,7 +29,7 @@ type CreateNatServiceRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateNatServiceRequest(publicIpId string, subnetId string, ) *CreateNatServiceRequest { +func NewCreateNatServiceRequest(publicIpId string, subnetId string) *CreateNatServiceRequest { this := CreateNatServiceRequest{} this.PublicIpId = publicIpId this.SubnetId = subnetId @@ -78,7 +78,7 @@ func (o *CreateNatServiceRequest) SetDryRun(v bool) { // GetPublicIpId returns the PublicIpId field value func (o *CreateNatServiceRequest) GetPublicIpId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *CreateNatServiceRequest) GetPublicIpId() string { // GetPublicIpIdOk returns a tuple with the PublicIpId field value // and a boolean to check if the value has been set. func (o *CreateNatServiceRequest) GetPublicIpIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PublicIpId, true @@ -102,7 +102,7 @@ func (o *CreateNatServiceRequest) SetPublicIpId(v string) { // GetSubnetId returns the SubnetId field value func (o *CreateNatServiceRequest) GetSubnetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *CreateNatServiceRequest) GetSubnetId() string { // GetSubnetIdOk returns a tuple with the SubnetId field value // and a boolean to check if the value has been set. func (o *CreateNatServiceRequest) GetSubnetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SubnetId, true @@ -173,5 +173,3 @@ func (v *NullableCreateNatServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_response.go index 7260dc59d..3ae59783a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nat_service_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateNatServiceResponse struct for CreateNatServiceResponse type CreateNatServiceResponse struct { - NatService *NatService `json:"NatService,omitempty"` + NatService *NatService `json:"NatService,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateNatServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_request.go index b7053320a..71a909a8f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,13 +17,13 @@ import ( // CreateNetAccessPointRequest struct for CreateNetAccessPointRequest type CreateNetAccessPointRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net. NetId string `json:"NetId"` // One or more IDs of route tables to use for the connection. RouteTableIds *[]string `json:"RouteTableIds,omitempty"` - // The prefix list name corresponding to the service (for example, `com.outscale.eu-west-2.osu` for OSU). + // The name of the service (in the format `com.outscale.region.service`). ServiceName string `json:"ServiceName"` } @@ -31,7 +31,7 @@ type CreateNetAccessPointRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateNetAccessPointRequest(netId string, serviceName string, ) *CreateNetAccessPointRequest { +func NewCreateNetAccessPointRequest(netId string, serviceName string) *CreateNetAccessPointRequest { this := CreateNetAccessPointRequest{} this.NetId = netId this.ServiceName = serviceName @@ -80,7 +80,7 @@ func (o *CreateNetAccessPointRequest) SetDryRun(v bool) { // GetNetId returns the NetId field value func (o *CreateNetAccessPointRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CreateNetAccessPointRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *CreateNetAccessPointRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -136,7 +136,7 @@ func (o *CreateNetAccessPointRequest) SetRouteTableIds(v []string) { // GetServiceName returns the ServiceName field value func (o *CreateNetAccessPointRequest) GetServiceName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -147,7 +147,7 @@ func (o *CreateNetAccessPointRequest) GetServiceName() string { // GetServiceNameOk returns a tuple with the ServiceName field value // and a boolean to check if the value has been set. func (o *CreateNetAccessPointRequest) GetServiceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ServiceName, true @@ -210,5 +210,3 @@ func (v *NullableCreateNetAccessPointRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_response.go index 9ca9916d1..21932b887 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_access_point_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateNetAccessPointResponse struct for CreateNetAccessPointResponse type CreateNetAccessPointResponse struct { - NetAccessPoint *NetAccessPoint `json:"NetAccessPoint,omitempty"` + NetAccessPoint *NetAccessPoint `json:"NetAccessPoint,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateNetAccessPointResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_request.go index 9f16649c7..4b0114463 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateNetPeeringRequest struct { // The ID of the Net you want to connect with. AccepterNetId string `json:"AccepterNetId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net you send the peering request from. SourceNetId string `json:"SourceNetId"` @@ -29,7 +29,7 @@ type CreateNetPeeringRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateNetPeeringRequest(accepterNetId string, sourceNetId string, ) *CreateNetPeeringRequest { +func NewCreateNetPeeringRequest(accepterNetId string, sourceNetId string) *CreateNetPeeringRequest { this := CreateNetPeeringRequest{} this.AccepterNetId = accepterNetId this.SourceNetId = sourceNetId @@ -46,7 +46,7 @@ func NewCreateNetPeeringRequestWithDefaults() *CreateNetPeeringRequest { // GetAccepterNetId returns the AccepterNetId field value func (o *CreateNetPeeringRequest) GetAccepterNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *CreateNetPeeringRequest) GetAccepterNetId() string { // GetAccepterNetIdOk returns a tuple with the AccepterNetId field value // and a boolean to check if the value has been set. func (o *CreateNetPeeringRequest) GetAccepterNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccepterNetId, true @@ -102,7 +102,7 @@ func (o *CreateNetPeeringRequest) SetDryRun(v bool) { // GetSourceNetId returns the SourceNetId field value func (o *CreateNetPeeringRequest) GetSourceNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *CreateNetPeeringRequest) GetSourceNetId() string { // GetSourceNetIdOk returns a tuple with the SourceNetId field value // and a boolean to check if the value has been set. func (o *CreateNetPeeringRequest) GetSourceNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SourceNetId, true @@ -173,5 +173,3 @@ func (v *NullableCreateNetPeeringRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_response.go index b9913eea0..ed173bbc9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_peering_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateNetPeeringResponse struct for CreateNetPeeringResponse type CreateNetPeeringResponse struct { - NetPeering *NetPeering `json:"NetPeering,omitempty"` + NetPeering *NetPeering `json:"NetPeering,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateNetPeeringResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_request.go index 5e5202721..b3ce39ad2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateNetRequest struct for CreateNetRequest type CreateNetRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The IP range for the Net, in CIDR notation (for example, 10.0.0.0/16). IpRange string `json:"IpRange"` @@ -29,7 +29,7 @@ type CreateNetRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateNetRequest(ipRange string, ) *CreateNetRequest { +func NewCreateNetRequest(ipRange string) *CreateNetRequest { this := CreateNetRequest{} this.IpRange = ipRange return &this @@ -77,7 +77,7 @@ func (o *CreateNetRequest) SetDryRun(v bool) { // GetIpRange returns the IpRange field value func (o *CreateNetRequest) GetIpRange() string { - if o == nil { + if o == nil { var ret string return ret } @@ -88,7 +88,7 @@ func (o *CreateNetRequest) GetIpRange() string { // GetIpRangeOk returns a tuple with the IpRange field value // and a boolean to check if the value has been set. func (o *CreateNetRequest) GetIpRangeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.IpRange, true @@ -180,5 +180,3 @@ func (v *NullableCreateNetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_response.go index 74131f17b..521624e00 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_net_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateNetResponse struct for CreateNetResponse type CreateNetResponse struct { - Net *Net `json:"Net,omitempty"` + Net *Net `json:"Net,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateNetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_request.go index be2425da3..c6d99ad7e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateNicRequest struct { // A description for the NIC. Description *string `json:"Description,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The primary private IP address for the NIC.

This IP address must be within the IP address range of the Subnet that you specify with the `SubnetId` attribute.
If you do not specify this attribute, a random private IP address is selected within the IP address range of the Subnet. PrivateIps *[]PrivateIpLight `json:"PrivateIps,omitempty"` @@ -33,7 +33,7 @@ type CreateNicRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateNicRequest(subnetId string, ) *CreateNicRequest { +func NewCreateNicRequest(subnetId string) *CreateNicRequest { this := CreateNicRequest{} this.SubnetId = subnetId return &this @@ -177,7 +177,7 @@ func (o *CreateNicRequest) SetSecurityGroupIds(v []string) { // GetSubnetId returns the SubnetId field value func (o *CreateNicRequest) GetSubnetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -188,7 +188,7 @@ func (o *CreateNicRequest) GetSubnetId() string { // GetSubnetIdOk returns a tuple with the SubnetId field value // and a boolean to check if the value has been set. func (o *CreateNicRequest) GetSubnetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SubnetId, true @@ -254,5 +254,3 @@ func (v *NullableCreateNicRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_response.go index 370e671ba..67d675e84 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_nic_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateNicResponse struct for CreateNicResponse type CreateNicResponse struct { - Nic *Nic `json:"Nic,omitempty"` + Nic *Nic `json:"Nic,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateNicResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_request.go index 4a16c24f3..28b07024e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreatePublicIpRequest struct for CreatePublicIpRequest type CreatePublicIpRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -113,5 +113,3 @@ func (v *NullableCreatePublicIpRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_response.go index 09bc8eab1..3a145c353 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_public_ip_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreatePublicIpResponse struct for CreatePublicIpResponse type CreatePublicIpResponse struct { - PublicIp *PublicIp `json:"PublicIp,omitempty"` + PublicIp *PublicIp `json:"PublicIp,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreatePublicIpResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_request.go index a3e6db342..d9e17412a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateRouteRequest struct { // The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). DestinationIpRange string `json:"DestinationIpRange"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of an Internet service or virtual gateway attached to your Net. GatewayId *string `json:"GatewayId,omitempty"` @@ -39,7 +39,7 @@ type CreateRouteRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateRouteRequest(destinationIpRange string, routeTableId string, ) *CreateRouteRequest { +func NewCreateRouteRequest(destinationIpRange string, routeTableId string) *CreateRouteRequest { this := CreateRouteRequest{} this.DestinationIpRange = destinationIpRange this.RouteTableId = routeTableId @@ -56,7 +56,7 @@ func NewCreateRouteRequestWithDefaults() *CreateRouteRequest { // GetDestinationIpRange returns the DestinationIpRange field value func (o *CreateRouteRequest) GetDestinationIpRange() string { - if o == nil { + if o == nil { var ret string return ret } @@ -67,7 +67,7 @@ func (o *CreateRouteRequest) GetDestinationIpRange() string { // GetDestinationIpRangeOk returns a tuple with the DestinationIpRange field value // and a boolean to check if the value has been set. func (o *CreateRouteRequest) GetDestinationIpRangeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationIpRange, true @@ -240,7 +240,7 @@ func (o *CreateRouteRequest) SetNicId(v string) { // GetRouteTableId returns the RouteTableId field value func (o *CreateRouteRequest) GetRouteTableId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -251,7 +251,7 @@ func (o *CreateRouteRequest) GetRouteTableId() string { // GetRouteTableIdOk returns a tuple with the RouteTableId field value // and a boolean to check if the value has been set. func (o *CreateRouteRequest) GetRouteTableIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RouteTableId, true @@ -358,5 +358,3 @@ func (v *NullableCreateRouteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_response.go index 83486505a..1224c867e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateRouteResponse struct for CreateRouteResponse type CreateRouteResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - RouteTable *RouteTable `json:"RouteTable,omitempty"` + RouteTable *RouteTable `json:"RouteTable,omitempty"` } // NewCreateRouteResponse instantiates a new CreateRouteResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateRouteResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_request.go index 4eb773706..e829a3115 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateRouteTableRequest struct for CreateRouteTableRequest type CreateRouteTableRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net for which you want to create a route table. NetId string `json:"NetId"` @@ -27,7 +27,7 @@ type CreateRouteTableRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateRouteTableRequest(netId string, ) *CreateRouteTableRequest { +func NewCreateRouteTableRequest(netId string) *CreateRouteTableRequest { this := CreateRouteTableRequest{} this.NetId = netId return &this @@ -75,7 +75,7 @@ func (o *CreateRouteTableRequest) SetDryRun(v bool) { // GetNetId returns the NetId field value func (o *CreateRouteTableRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *CreateRouteTableRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *CreateRouteTableRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -143,5 +143,3 @@ func (v *NullableCreateRouteTableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_response.go index 521cb3107..d19ba138a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_route_table_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateRouteTableResponse struct for CreateRouteTableResponse type CreateRouteTableResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - RouteTable *RouteTable `json:"RouteTable,omitempty"` + RouteTable *RouteTable `json:"RouteTable,omitempty"` } // NewCreateRouteTableResponse instantiates a new CreateRouteTableResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateRouteTableResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_request.go index 618a5acb3..1c880ae34 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateSecurityGroupRequest struct { // A description for the security group, with a maximum length of 255 [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). Description string `json:"Description"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net for the security group. NetId *string `json:"NetId,omitempty"` @@ -31,7 +31,7 @@ type CreateSecurityGroupRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateSecurityGroupRequest(description string, securityGroupName string, ) *CreateSecurityGroupRequest { +func NewCreateSecurityGroupRequest(description string, securityGroupName string) *CreateSecurityGroupRequest { this := CreateSecurityGroupRequest{} this.Description = description this.SecurityGroupName = securityGroupName @@ -48,7 +48,7 @@ func NewCreateSecurityGroupRequestWithDefaults() *CreateSecurityGroupRequest { // GetDescription returns the Description field value func (o *CreateSecurityGroupRequest) GetDescription() string { - if o == nil { + if o == nil { var ret string return ret } @@ -59,7 +59,7 @@ func (o *CreateSecurityGroupRequest) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. func (o *CreateSecurityGroupRequest) GetDescriptionOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Description, true @@ -136,7 +136,7 @@ func (o *CreateSecurityGroupRequest) SetNetId(v string) { // GetSecurityGroupName returns the SecurityGroupName field value func (o *CreateSecurityGroupRequest) GetSecurityGroupName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -147,7 +147,7 @@ func (o *CreateSecurityGroupRequest) GetSecurityGroupName() string { // GetSecurityGroupNameOk returns a tuple with the SecurityGroupName field value // and a boolean to check if the value has been set. func (o *CreateSecurityGroupRequest) GetSecurityGroupNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SecurityGroupName, true @@ -210,5 +210,3 @@ func (v *NullableCreateSecurityGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_response.go index abd80299e..9bae6c496 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateSecurityGroupResponse struct for CreateSecurityGroupResponse type CreateSecurityGroupResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty"` + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty"` } // NewCreateSecurityGroupResponse instantiates a new CreateSecurityGroupResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateSecurityGroupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_request.go index 9832f8d14..876c7c8b2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateSecurityGroupRuleRequest struct for CreateSecurityGroupRuleRequest type CreateSecurityGroupRuleRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. Flow string `json:"Flow"` @@ -43,7 +43,7 @@ type CreateSecurityGroupRuleRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateSecurityGroupRuleRequest(flow string, securityGroupId string, ) *CreateSecurityGroupRuleRequest { +func NewCreateSecurityGroupRuleRequest(flow string, securityGroupId string) *CreateSecurityGroupRuleRequest { this := CreateSecurityGroupRuleRequest{} this.Flow = flow this.SecurityGroupId = securityGroupId @@ -92,7 +92,7 @@ func (o *CreateSecurityGroupRuleRequest) SetDryRun(v bool) { // GetFlow returns the Flow field value func (o *CreateSecurityGroupRuleRequest) GetFlow() string { - if o == nil { + if o == nil { var ret string return ret } @@ -103,7 +103,7 @@ func (o *CreateSecurityGroupRuleRequest) GetFlow() string { // GetFlowOk returns a tuple with the Flow field value // and a boolean to check if the value has been set. func (o *CreateSecurityGroupRuleRequest) GetFlowOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Flow, true @@ -276,7 +276,7 @@ func (o *CreateSecurityGroupRuleRequest) SetSecurityGroupAccountIdToLink(v strin // GetSecurityGroupId returns the SecurityGroupId field value func (o *CreateSecurityGroupRuleRequest) GetSecurityGroupId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -287,7 +287,7 @@ func (o *CreateSecurityGroupRuleRequest) GetSecurityGroupId() string { // GetSecurityGroupIdOk returns a tuple with the SecurityGroupId field value // and a boolean to check if the value has been set. func (o *CreateSecurityGroupRuleRequest) GetSecurityGroupIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SecurityGroupId, true @@ -432,5 +432,3 @@ func (v *NullableCreateSecurityGroupRuleRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_response.go index cc9371e11..d8bd23c22 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_security_group_rule_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateSecurityGroupRuleResponse struct for CreateSecurityGroupRuleResponse type CreateSecurityGroupRuleResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty"` + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty"` } // NewCreateSecurityGroupRuleResponse instantiates a new CreateSecurityGroupRuleResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateSecurityGroupRuleResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_request.go index 541a87650..fbcadacca 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type CreateServerCertificateRequest struct { Body string `json:"Body"` // The PEM-encoded intermediate certification authorities. Chain *string `json:"Chain,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // A unique name for the certificate. Constraints: 1-128 alphanumeric characters, pluses (+), equals (=), commas (,), periods (.), at signs (@), minuses (-), or underscores (_). Name string `json:"Name"` @@ -35,7 +35,7 @@ type CreateServerCertificateRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateServerCertificateRequest(body string, name string, privateKey string, ) *CreateServerCertificateRequest { +func NewCreateServerCertificateRequest(body string, name string, privateKey string) *CreateServerCertificateRequest { this := CreateServerCertificateRequest{} this.Body = body this.Name = name @@ -53,7 +53,7 @@ func NewCreateServerCertificateRequestWithDefaults() *CreateServerCertificateReq // GetBody returns the Body field value func (o *CreateServerCertificateRequest) GetBody() string { - if o == nil { + if o == nil { var ret string return ret } @@ -64,7 +64,7 @@ func (o *CreateServerCertificateRequest) GetBody() string { // GetBodyOk returns a tuple with the Body field value // and a boolean to check if the value has been set. func (o *CreateServerCertificateRequest) GetBodyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Body, true @@ -141,7 +141,7 @@ func (o *CreateServerCertificateRequest) SetDryRun(v bool) { // GetName returns the Name field value func (o *CreateServerCertificateRequest) GetName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -152,7 +152,7 @@ func (o *CreateServerCertificateRequest) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *CreateServerCertificateRequest) GetNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Name, true @@ -197,7 +197,7 @@ func (o *CreateServerCertificateRequest) SetPath(v string) { // GetPrivateKey returns the PrivateKey field value func (o *CreateServerCertificateRequest) GetPrivateKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -208,7 +208,7 @@ func (o *CreateServerCertificateRequest) GetPrivateKey() string { // GetPrivateKeyOk returns a tuple with the PrivateKey field value // and a boolean to check if the value has been set. func (o *CreateServerCertificateRequest) GetPrivateKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PrivateKey, true @@ -277,5 +277,3 @@ func (v *NullableCreateServerCertificateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_response.go index 8b8362705..da09e49e5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_server_certificate_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateServerCertificateResponse struct for CreateServerCertificateResponse type CreateServerCertificateResponse struct { - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` ServerCertificate *ServerCertificate `json:"ServerCertificate,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateServerCertificateResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_request.go index e4862fcbb..eb691b51c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // CreateSnapshotExportTaskRequest struct for CreateSnapshotExportTaskRequest type CreateSnapshotExportTaskRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` OsuExport OsuExport `json:"OsuExport"` // The ID of the snapshot to export. SnapshotId string `json:"SnapshotId"` @@ -28,7 +28,7 @@ type CreateSnapshotExportTaskRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateSnapshotExportTaskRequest(osuExport OsuExport, snapshotId string, ) *CreateSnapshotExportTaskRequest { +func NewCreateSnapshotExportTaskRequest(osuExport OsuExport, snapshotId string) *CreateSnapshotExportTaskRequest { this := CreateSnapshotExportTaskRequest{} this.OsuExport = osuExport this.SnapshotId = snapshotId @@ -77,7 +77,7 @@ func (o *CreateSnapshotExportTaskRequest) SetDryRun(v bool) { // GetOsuExport returns the OsuExport field value func (o *CreateSnapshotExportTaskRequest) GetOsuExport() OsuExport { - if o == nil { + if o == nil { var ret OsuExport return ret } @@ -88,7 +88,7 @@ func (o *CreateSnapshotExportTaskRequest) GetOsuExport() OsuExport { // GetOsuExportOk returns a tuple with the OsuExport field value // and a boolean to check if the value has been set. func (o *CreateSnapshotExportTaskRequest) GetOsuExportOk() (*OsuExport, bool) { - if o == nil { + if o == nil { return nil, false } return &o.OsuExport, true @@ -101,7 +101,7 @@ func (o *CreateSnapshotExportTaskRequest) SetOsuExport(v OsuExport) { // GetSnapshotId returns the SnapshotId field value func (o *CreateSnapshotExportTaskRequest) GetSnapshotId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -112,7 +112,7 @@ func (o *CreateSnapshotExportTaskRequest) GetSnapshotId() string { // GetSnapshotIdOk returns a tuple with the SnapshotId field value // and a boolean to check if the value has been set. func (o *CreateSnapshotExportTaskRequest) GetSnapshotIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SnapshotId, true @@ -172,5 +172,3 @@ func (v *NullableCreateSnapshotExportTaskRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_response.go index 97b7fe280..cfb3dfc6d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_export_task_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateSnapshotExportTaskResponse struct for CreateSnapshotExportTaskResponse type CreateSnapshotExportTaskResponse struct { - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` SnapshotExportTask *SnapshotExportTask `json:"SnapshotExportTask,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableCreateSnapshotExportTaskResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_request.go index 6bf90d6ab..06c00bab3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateSnapshotRequest struct { // A description for the snapshot. Description *string `json:"Description,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The pre-signed URL of the snapshot you want to import from the OSU bucket. FileLocation *string `json:"FileLocation,omitempty"` @@ -335,5 +335,3 @@ func (v *NullableCreateSnapshotRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_response.go index f70f95ab7..068fc0b57 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_snapshot_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateSnapshotResponse struct for CreateSnapshotResponse type CreateSnapshotResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - Snapshot *Snapshot `json:"Snapshot,omitempty"` + Snapshot *Snapshot `json:"Snapshot,omitempty"` } // NewCreateSnapshotResponse instantiates a new CreateSnapshotResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateSnapshotResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_request.go index dacf6602b..bed2a34e9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateSubnetRequest struct for CreateSubnetRequest type CreateSubnetRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). IpRange string `json:"IpRange"` @@ -31,7 +31,7 @@ type CreateSubnetRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateSubnetRequest(ipRange string, netId string, ) *CreateSubnetRequest { +func NewCreateSubnetRequest(ipRange string, netId string) *CreateSubnetRequest { this := CreateSubnetRequest{} this.IpRange = ipRange this.NetId = netId @@ -80,7 +80,7 @@ func (o *CreateSubnetRequest) SetDryRun(v bool) { // GetIpRange returns the IpRange field value func (o *CreateSubnetRequest) GetIpRange() string { - if o == nil { + if o == nil { var ret string return ret } @@ -91,7 +91,7 @@ func (o *CreateSubnetRequest) GetIpRange() string { // GetIpRangeOk returns a tuple with the IpRange field value // and a boolean to check if the value has been set. func (o *CreateSubnetRequest) GetIpRangeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.IpRange, true @@ -104,7 +104,7 @@ func (o *CreateSubnetRequest) SetIpRange(v string) { // GetNetId returns the NetId field value func (o *CreateSubnetRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -115,7 +115,7 @@ func (o *CreateSubnetRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *CreateSubnetRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -210,5 +210,3 @@ func (v *NullableCreateSubnetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_response.go index 31c79f0ad..9360be5b4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_subnet_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateSubnetResponse struct for CreateSubnetResponse type CreateSubnetResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - Subnet *Subnet `json:"Subnet,omitempty"` + Subnet *Subnet `json:"Subnet,omitempty"` } // NewCreateSubnetResponse instantiates a new CreateSubnetResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateSubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_request.go index 71e56ac9a..5a5fc82f4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // CreateTagsRequest struct for CreateTagsRequest type CreateTagsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more resource IDs. ResourceIds []string `json:"ResourceIds"` @@ -29,7 +29,7 @@ type CreateTagsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateTagsRequest(resourceIds []string, tags []ResourceTag, ) *CreateTagsRequest { +func NewCreateTagsRequest(resourceIds []string, tags []ResourceTag) *CreateTagsRequest { this := CreateTagsRequest{} this.ResourceIds = resourceIds this.Tags = tags @@ -78,7 +78,7 @@ func (o *CreateTagsRequest) SetDryRun(v bool) { // GetResourceIds returns the ResourceIds field value func (o *CreateTagsRequest) GetResourceIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -89,7 +89,7 @@ func (o *CreateTagsRequest) GetResourceIds() []string { // GetResourceIdsOk returns a tuple with the ResourceIds field value // and a boolean to check if the value has been set. func (o *CreateTagsRequest) GetResourceIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceIds, true @@ -102,7 +102,7 @@ func (o *CreateTagsRequest) SetResourceIds(v []string) { // GetTags returns the Tags field value func (o *CreateTagsRequest) GetTags() []ResourceTag { - if o == nil { + if o == nil { var ret []ResourceTag return ret } @@ -113,7 +113,7 @@ func (o *CreateTagsRequest) GetTags() []ResourceTag { // GetTagsOk returns a tuple with the Tags field value // and a boolean to check if the value has been set. func (o *CreateTagsRequest) GetTagsOk() (*[]ResourceTag, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Tags, true @@ -173,5 +173,3 @@ func (v *NullableCreateTagsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_response.go index 55618b8ea..474e3ee30 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_tags_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableCreateTagsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_request.go index b393d6bd6..f8dd2f106 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateVirtualGatewayRequest struct { // The type of VPN connection supported by the virtual gateway (only `ipsec.1` is supported). ConnectionType string `json:"ConnectionType"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -27,7 +27,7 @@ type CreateVirtualGatewayRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateVirtualGatewayRequest(connectionType string, ) *CreateVirtualGatewayRequest { +func NewCreateVirtualGatewayRequest(connectionType string) *CreateVirtualGatewayRequest { this := CreateVirtualGatewayRequest{} this.ConnectionType = connectionType return &this @@ -43,7 +43,7 @@ func NewCreateVirtualGatewayRequestWithDefaults() *CreateVirtualGatewayRequest { // GetConnectionType returns the ConnectionType field value func (o *CreateVirtualGatewayRequest) GetConnectionType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -54,7 +54,7 @@ func (o *CreateVirtualGatewayRequest) GetConnectionType() string { // GetConnectionTypeOk returns a tuple with the ConnectionType field value // and a boolean to check if the value has been set. func (o *CreateVirtualGatewayRequest) GetConnectionTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ConnectionType, true @@ -143,5 +143,3 @@ func (v *NullableCreateVirtualGatewayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_response.go index 15b037e89..314086b27 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_virtual_gateway_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateVirtualGatewayResponse struct for CreateVirtualGatewayResponse type CreateVirtualGatewayResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - VirtualGateway *VirtualGateway `json:"VirtualGateway,omitempty"` + VirtualGateway *VirtualGateway `json:"VirtualGateway,omitempty"` } // NewCreateVirtualGatewayResponse instantiates a new CreateVirtualGatewayResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateVirtualGatewayResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_request.go index a40deeecb..d9d04855a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,15 +19,15 @@ import ( type CreateVmsRequest struct { // One or more block device mappings. BlockDeviceMappings *[]BlockDeviceMappingVmCreation `json:"BlockDeviceMappings,omitempty"` - // By default or if `true`, the VM is started on creation. If `false`, the VM is stopped on creation. + // By default or if true, the VM is started on creation. If false, the VM is stopped on creation. BootOnCreation *bool `json:"BootOnCreation,omitempty"` - // If `true`, the VM is created with optimized BSU I/O. + // If true, the VM is created with optimized BSU I/O. BsuOptimized *bool `json:"BsuOptimized,omitempty"` // A unique identifier which enables you to manage the idempotency. ClientToken *string `json:"ClientToken,omitempty"` - // If `true`, you cannot terminate the VM using Cockpit, the CLI or the API. If `false`, you can. + // If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. DeletionProtection *bool `json:"DeletionProtection,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the OMI used to create the VM. You can find the list of OMIs by calling the [ReadImages](#readimages) method. ImageId string `json:"ImageId"` @@ -39,9 +39,9 @@ type CreateVmsRequest struct { MinVmsCount *int32 `json:"MinVmsCount,omitempty"` // One or more NICs. If you specify this parameter, you must define one NIC as the primary network interface of the VM with `0` as its device number. Nics *[]NicForVmCreation `json:"Nics,omitempty"` - // The performance of the VM (`standard` \\| `high` \\| `highest`). - Performance *string `json:"Performance,omitempty"` - Placement *Placement `json:"Placement,omitempty"` + // The performance of the VM (`medium` \\| `high` \\| `highest`). + Performance *string `json:"Performance,omitempty"` + Placement *Placement `json:"Placement,omitempty"` // One or more private IP addresses of the VM. PrivateIps *[]string `json:"PrivateIps,omitempty"` // One or more IDs of security group for the VMs. @@ -62,7 +62,7 @@ type CreateVmsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateVmsRequest(imageId string, ) *CreateVmsRequest { +func NewCreateVmsRequest(imageId string) *CreateVmsRequest { this := CreateVmsRequest{} this.ImageId = imageId var performance string = "high" @@ -274,7 +274,7 @@ func (o *CreateVmsRequest) SetDryRun(v bool) { // GetImageId returns the ImageId field value func (o *CreateVmsRequest) GetImageId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -285,7 +285,7 @@ func (o *CreateVmsRequest) GetImageId() string { // GetImageIdOk returns a tuple with the ImageId field value // and a boolean to check if the value has been set. func (o *CreateVmsRequest) GetImageIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ImageId, true @@ -812,5 +812,3 @@ func (v *NullableCreateVmsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_response.go index 7a2c37ff2..eb0856391 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vms_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableCreateVmsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_request.go index 1e27b9b59..bc6fabf4a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,11 +17,11 @@ import ( // CreateVolumeRequest struct for CreateVolumeRequest type CreateVolumeRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000`. Iops *int32 `json:"Iops,omitempty"` - // The size of the volume, in gibibytes (GiB). The maximum allowed size for a volume is 14,901 GiB. This parameter is required if the volume is not created from a snapshot (`SnapshotId` unspecified). + // The size of the volume, in gibibytes (GiB). The maximum allowed size for a volume is 14901 GiB. This parameter is required if the volume is not created from a snapshot (`SnapshotId` unspecified). Size *int32 `json:"Size,omitempty"` // The ID of the snapshot from which you want to create the volume. SnapshotId *string `json:"SnapshotId,omitempty"` @@ -35,7 +35,7 @@ type CreateVolumeRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateVolumeRequest(subregionName string, ) *CreateVolumeRequest { +func NewCreateVolumeRequest(subregionName string) *CreateVolumeRequest { this := CreateVolumeRequest{} this.SubregionName = subregionName return &this @@ -179,7 +179,7 @@ func (o *CreateVolumeRequest) SetSnapshotId(v string) { // GetSubregionName returns the SubregionName field value func (o *CreateVolumeRequest) GetSubregionName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -190,7 +190,7 @@ func (o *CreateVolumeRequest) GetSubregionName() string { // GetSubregionNameOk returns a tuple with the SubregionName field value // and a boolean to check if the value has been set. func (o *CreateVolumeRequest) GetSubregionNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SubregionName, true @@ -291,5 +291,3 @@ func (v *NullableCreateVolumeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_response.go index 64e527d45..610070485 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_volume_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateVolumeResponse struct for CreateVolumeResponse type CreateVolumeResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - Volume *Volume `json:"Volume,omitempty"` + Volume *Volume `json:"Volume,omitempty"` } // NewCreateVolumeResponse instantiates a new CreateVolumeResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateVolumeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_request.go index 017c8d830..caefcc8a7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,9 +21,9 @@ type CreateVpnConnectionRequest struct { ClientGatewayId string `json:"ClientGatewayId"` // The type of VPN connection (only `ipsec.1` is supported). ConnectionType string `json:"ConnectionType"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` - // If `false`, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If `true`, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + // If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). StaticRoutesOnly *bool `json:"StaticRoutesOnly,omitempty"` // The ID of the virtual gateway. VirtualGatewayId string `json:"VirtualGatewayId"` @@ -33,7 +33,7 @@ type CreateVpnConnectionRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateVpnConnectionRequest(clientGatewayId string, connectionType string, virtualGatewayId string, ) *CreateVpnConnectionRequest { +func NewCreateVpnConnectionRequest(clientGatewayId string, connectionType string, virtualGatewayId string) *CreateVpnConnectionRequest { this := CreateVpnConnectionRequest{} this.ClientGatewayId = clientGatewayId this.ConnectionType = connectionType @@ -51,7 +51,7 @@ func NewCreateVpnConnectionRequestWithDefaults() *CreateVpnConnectionRequest { // GetClientGatewayId returns the ClientGatewayId field value func (o *CreateVpnConnectionRequest) GetClientGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -62,7 +62,7 @@ func (o *CreateVpnConnectionRequest) GetClientGatewayId() string { // GetClientGatewayIdOk returns a tuple with the ClientGatewayId field value // and a boolean to check if the value has been set. func (o *CreateVpnConnectionRequest) GetClientGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ClientGatewayId, true @@ -75,7 +75,7 @@ func (o *CreateVpnConnectionRequest) SetClientGatewayId(v string) { // GetConnectionType returns the ConnectionType field value func (o *CreateVpnConnectionRequest) GetConnectionType() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *CreateVpnConnectionRequest) GetConnectionType() string { // GetConnectionTypeOk returns a tuple with the ConnectionType field value // and a boolean to check if the value has been set. func (o *CreateVpnConnectionRequest) GetConnectionTypeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ConnectionType, true @@ -163,7 +163,7 @@ func (o *CreateVpnConnectionRequest) SetStaticRoutesOnly(v bool) { // GetVirtualGatewayId returns the VirtualGatewayId field value func (o *CreateVpnConnectionRequest) GetVirtualGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -174,7 +174,7 @@ func (o *CreateVpnConnectionRequest) GetVirtualGatewayId() string { // GetVirtualGatewayIdOk returns a tuple with the VirtualGatewayId field value // and a boolean to check if the value has been set. func (o *CreateVpnConnectionRequest) GetVirtualGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VirtualGatewayId, true @@ -240,5 +240,3 @@ func (v *NullableCreateVpnConnectionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_response.go index 1d2519375..f8ebb5cc4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // CreateVpnConnectionResponse struct for CreateVpnConnectionResponse type CreateVpnConnectionResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - VpnConnection *VpnConnection `json:"VpnConnection,omitempty"` + VpnConnection *VpnConnection `json:"VpnConnection,omitempty"` } // NewCreateVpnConnectionResponse instantiates a new CreateVpnConnectionResponse object @@ -148,5 +148,3 @@ func (v *NullableCreateVpnConnectionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_request.go index e4a95a066..e11614a85 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type CreateVpnConnectionRouteRequest struct { // The network prefix of the route, in CIDR notation (for example, 10.12.0.0/16). DestinationIpRange string `json:"DestinationIpRange"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the target VPN connection of the static route. VpnConnectionId string `json:"VpnConnectionId"` @@ -29,7 +29,7 @@ type CreateVpnConnectionRouteRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateVpnConnectionRouteRequest(destinationIpRange string, vpnConnectionId string, ) *CreateVpnConnectionRouteRequest { +func NewCreateVpnConnectionRouteRequest(destinationIpRange string, vpnConnectionId string) *CreateVpnConnectionRouteRequest { this := CreateVpnConnectionRouteRequest{} this.DestinationIpRange = destinationIpRange this.VpnConnectionId = vpnConnectionId @@ -46,7 +46,7 @@ func NewCreateVpnConnectionRouteRequestWithDefaults() *CreateVpnConnectionRouteR // GetDestinationIpRange returns the DestinationIpRange field value func (o *CreateVpnConnectionRouteRequest) GetDestinationIpRange() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *CreateVpnConnectionRouteRequest) GetDestinationIpRange() string { // GetDestinationIpRangeOk returns a tuple with the DestinationIpRange field value // and a boolean to check if the value has been set. func (o *CreateVpnConnectionRouteRequest) GetDestinationIpRangeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationIpRange, true @@ -102,7 +102,7 @@ func (o *CreateVpnConnectionRouteRequest) SetDryRun(v bool) { // GetVpnConnectionId returns the VpnConnectionId field value func (o *CreateVpnConnectionRouteRequest) GetVpnConnectionId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *CreateVpnConnectionRouteRequest) GetVpnConnectionId() string { // GetVpnConnectionIdOk returns a tuple with the VpnConnectionId field value // and a boolean to check if the value has been set. func (o *CreateVpnConnectionRouteRequest) GetVpnConnectionIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VpnConnectionId, true @@ -173,5 +173,3 @@ func (v *NullableCreateVpnConnectionRouteRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_response.go index 4a19d8633..35d6b530b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_create_vpn_connection_route_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableCreateVpnConnectionRouteResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_request.go index 1f3f145a1..e9474ff95 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeleteAccessKeyRequest struct { // The ID of the access key you want to delete. AccessKeyId string `json:"AccessKeyId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -27,7 +27,7 @@ type DeleteAccessKeyRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteAccessKeyRequest(accessKeyId string, ) *DeleteAccessKeyRequest { +func NewDeleteAccessKeyRequest(accessKeyId string) *DeleteAccessKeyRequest { this := DeleteAccessKeyRequest{} this.AccessKeyId = accessKeyId return &this @@ -43,7 +43,7 @@ func NewDeleteAccessKeyRequestWithDefaults() *DeleteAccessKeyRequest { // GetAccessKeyId returns the AccessKeyId field value func (o *DeleteAccessKeyRequest) GetAccessKeyId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -54,7 +54,7 @@ func (o *DeleteAccessKeyRequest) GetAccessKeyId() string { // GetAccessKeyIdOk returns a tuple with the AccessKeyId field value // and a boolean to check if the value has been set. func (o *DeleteAccessKeyRequest) GetAccessKeyIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccessKeyId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteAccessKeyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_response.go index 79266dc2a..4be41dbb8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_access_key_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteAccessKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_api_access_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_api_access_rule_request.go new file mode 100644 index 000000000..5ca47c419 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_api_access_rule_request.go @@ -0,0 +1,145 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// DeleteApiAccessRuleRequest struct for DeleteApiAccessRuleRequest +type DeleteApiAccessRuleRequest struct { + // The ID of the API access rule you want to delete. + ApiAccessRuleId string `json:"ApiAccessRuleId"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` +} + +// NewDeleteApiAccessRuleRequest instantiates a new DeleteApiAccessRuleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteApiAccessRuleRequest(apiAccessRuleId string) *DeleteApiAccessRuleRequest { + this := DeleteApiAccessRuleRequest{} + this.ApiAccessRuleId = apiAccessRuleId + return &this +} + +// NewDeleteApiAccessRuleRequestWithDefaults instantiates a new DeleteApiAccessRuleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteApiAccessRuleRequestWithDefaults() *DeleteApiAccessRuleRequest { + this := DeleteApiAccessRuleRequest{} + return &this +} + +// GetApiAccessRuleId returns the ApiAccessRuleId field value +func (o *DeleteApiAccessRuleRequest) GetApiAccessRuleId() string { + if o == nil { + var ret string + return ret + } + + return o.ApiAccessRuleId +} + +// GetApiAccessRuleIdOk returns a tuple with the ApiAccessRuleId field value +// and a boolean to check if the value has been set. +func (o *DeleteApiAccessRuleRequest) GetApiAccessRuleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiAccessRuleId, true +} + +// SetApiAccessRuleId sets field value +func (o *DeleteApiAccessRuleRequest) SetApiAccessRuleId(v string) { + o.ApiAccessRuleId = v +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *DeleteApiAccessRuleRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteApiAccessRuleRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *DeleteApiAccessRuleRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *DeleteApiAccessRuleRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +func (o DeleteApiAccessRuleRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["ApiAccessRuleId"] = o.ApiAccessRuleId + } + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + return json.Marshal(toSerialize) +} + +type NullableDeleteApiAccessRuleRequest struct { + value *DeleteApiAccessRuleRequest + isSet bool +} + +func (v NullableDeleteApiAccessRuleRequest) Get() *DeleteApiAccessRuleRequest { + return v.value +} + +func (v *NullableDeleteApiAccessRuleRequest) Set(val *DeleteApiAccessRuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteApiAccessRuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteApiAccessRuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteApiAccessRuleRequest(val *DeleteApiAccessRuleRequest) *NullableDeleteApiAccessRuleRequest { + return &NullableDeleteApiAccessRuleRequest{value: val, isSet: true} +} + +func (v NullableDeleteApiAccessRuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteApiAccessRuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_api_access_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_api_access_rule_response.go new file mode 100644 index 000000000..1040530cb --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_api_access_rule_response.go @@ -0,0 +1,114 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// DeleteApiAccessRuleResponse struct for DeleteApiAccessRuleResponse +type DeleteApiAccessRuleResponse struct { + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewDeleteApiAccessRuleResponse instantiates a new DeleteApiAccessRuleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteApiAccessRuleResponse() *DeleteApiAccessRuleResponse { + this := DeleteApiAccessRuleResponse{} + return &this +} + +// NewDeleteApiAccessRuleResponseWithDefaults instantiates a new DeleteApiAccessRuleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteApiAccessRuleResponseWithDefaults() *DeleteApiAccessRuleResponse { + this := DeleteApiAccessRuleResponse{} + return &this +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *DeleteApiAccessRuleResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteApiAccessRuleResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *DeleteApiAccessRuleResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *DeleteApiAccessRuleResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o DeleteApiAccessRuleResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableDeleteApiAccessRuleResponse struct { + value *DeleteApiAccessRuleResponse + isSet bool +} + +func (v NullableDeleteApiAccessRuleResponse) Get() *DeleteApiAccessRuleResponse { + return v.value +} + +func (v *NullableDeleteApiAccessRuleResponse) Set(val *DeleteApiAccessRuleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteApiAccessRuleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteApiAccessRuleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteApiAccessRuleResponse(val *DeleteApiAccessRuleResponse) *NullableDeleteApiAccessRuleResponse { + return &NullableDeleteApiAccessRuleResponse{value: val, isSet: true} +} + +func (v NullableDeleteApiAccessRuleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteApiAccessRuleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_ca_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_ca_request.go new file mode 100644 index 000000000..58f7cda02 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_ca_request.go @@ -0,0 +1,145 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// DeleteCaRequest struct for DeleteCaRequest +type DeleteCaRequest struct { + // The ID of the CA you want to delete. + CaId string `json:"CaId"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` +} + +// NewDeleteCaRequest instantiates a new DeleteCaRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteCaRequest(caId string) *DeleteCaRequest { + this := DeleteCaRequest{} + this.CaId = caId + return &this +} + +// NewDeleteCaRequestWithDefaults instantiates a new DeleteCaRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteCaRequestWithDefaults() *DeleteCaRequest { + this := DeleteCaRequest{} + return &this +} + +// GetCaId returns the CaId field value +func (o *DeleteCaRequest) GetCaId() string { + if o == nil { + var ret string + return ret + } + + return o.CaId +} + +// GetCaIdOk returns a tuple with the CaId field value +// and a boolean to check if the value has been set. +func (o *DeleteCaRequest) GetCaIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CaId, true +} + +// SetCaId sets field value +func (o *DeleteCaRequest) SetCaId(v string) { + o.CaId = v +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *DeleteCaRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteCaRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *DeleteCaRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *DeleteCaRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +func (o DeleteCaRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["CaId"] = o.CaId + } + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + return json.Marshal(toSerialize) +} + +type NullableDeleteCaRequest struct { + value *DeleteCaRequest + isSet bool +} + +func (v NullableDeleteCaRequest) Get() *DeleteCaRequest { + return v.value +} + +func (v *NullableDeleteCaRequest) Set(val *DeleteCaRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteCaRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteCaRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteCaRequest(val *DeleteCaRequest) *NullableDeleteCaRequest { + return &NullableDeleteCaRequest{value: val, isSet: true} +} + +func (v NullableDeleteCaRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteCaRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_ca_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_ca_response.go new file mode 100644 index 000000000..0d43e9dc2 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_ca_response.go @@ -0,0 +1,114 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// DeleteCaResponse struct for DeleteCaResponse +type DeleteCaResponse struct { + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewDeleteCaResponse instantiates a new DeleteCaResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteCaResponse() *DeleteCaResponse { + this := DeleteCaResponse{} + return &this +} + +// NewDeleteCaResponseWithDefaults instantiates a new DeleteCaResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteCaResponseWithDefaults() *DeleteCaResponse { + this := DeleteCaResponse{} + return &this +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *DeleteCaResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteCaResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *DeleteCaResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *DeleteCaResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o DeleteCaResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableDeleteCaResponse struct { + value *DeleteCaResponse + isSet bool +} + +func (v NullableDeleteCaResponse) Get() *DeleteCaResponse { + return v.value +} + +func (v *NullableDeleteCaResponse) Set(val *DeleteCaResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteCaResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteCaResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteCaResponse(val *DeleteCaResponse) *NullableDeleteCaResponse { + return &NullableDeleteCaResponse{value: val, isSet: true} +} + +func (v NullableDeleteCaResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteCaResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_request.go index 42e37093a..bb5cd85de 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeleteClientGatewayRequest struct { // The ID of the client gateway you want to delete. ClientGatewayId string `json:"ClientGatewayId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -27,7 +27,7 @@ type DeleteClientGatewayRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteClientGatewayRequest(clientGatewayId string, ) *DeleteClientGatewayRequest { +func NewDeleteClientGatewayRequest(clientGatewayId string) *DeleteClientGatewayRequest { this := DeleteClientGatewayRequest{} this.ClientGatewayId = clientGatewayId return &this @@ -43,7 +43,7 @@ func NewDeleteClientGatewayRequestWithDefaults() *DeleteClientGatewayRequest { // GetClientGatewayId returns the ClientGatewayId field value func (o *DeleteClientGatewayRequest) GetClientGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -54,7 +54,7 @@ func (o *DeleteClientGatewayRequest) GetClientGatewayId() string { // GetClientGatewayIdOk returns a tuple with the ClientGatewayId field value // and a boolean to check if the value has been set. func (o *DeleteClientGatewayRequest) GetClientGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ClientGatewayId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteClientGatewayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_response.go index af6fc0be6..c65b912a3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_client_gateway_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteClientGatewayResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_request.go index e20242c15..532fb6e5d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeleteDhcpOptionsRequest struct { // The ID of the DHCP options set you want to delete. DhcpOptionsSetId string `json:"DhcpOptionsSetId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -27,7 +27,7 @@ type DeleteDhcpOptionsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteDhcpOptionsRequest(dhcpOptionsSetId string, ) *DeleteDhcpOptionsRequest { +func NewDeleteDhcpOptionsRequest(dhcpOptionsSetId string) *DeleteDhcpOptionsRequest { this := DeleteDhcpOptionsRequest{} this.DhcpOptionsSetId = dhcpOptionsSetId return &this @@ -43,7 +43,7 @@ func NewDeleteDhcpOptionsRequestWithDefaults() *DeleteDhcpOptionsRequest { // GetDhcpOptionsSetId returns the DhcpOptionsSetId field value func (o *DeleteDhcpOptionsRequest) GetDhcpOptionsSetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -54,7 +54,7 @@ func (o *DeleteDhcpOptionsRequest) GetDhcpOptionsSetId() string { // GetDhcpOptionsSetIdOk returns a tuple with the DhcpOptionsSetId field value // and a boolean to check if the value has been set. func (o *DeleteDhcpOptionsRequest) GetDhcpOptionsSetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DhcpOptionsSetId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteDhcpOptionsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_response.go index d5cb60ca7..585e0aa4c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_dhcp_options_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteDhcpOptionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_request.go index 587cc0481..b81dd3966 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeleteDirectLinkInterfaceRequest struct { // The ID of the DirectLink interface you want to delete. DirectLinkInterfaceId string `json:"DirectLinkInterfaceId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -27,7 +27,7 @@ type DeleteDirectLinkInterfaceRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteDirectLinkInterfaceRequest(directLinkInterfaceId string, ) *DeleteDirectLinkInterfaceRequest { +func NewDeleteDirectLinkInterfaceRequest(directLinkInterfaceId string) *DeleteDirectLinkInterfaceRequest { this := DeleteDirectLinkInterfaceRequest{} this.DirectLinkInterfaceId = directLinkInterfaceId return &this @@ -43,7 +43,7 @@ func NewDeleteDirectLinkInterfaceRequestWithDefaults() *DeleteDirectLinkInterfac // GetDirectLinkInterfaceId returns the DirectLinkInterfaceId field value func (o *DeleteDirectLinkInterfaceRequest) GetDirectLinkInterfaceId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -54,7 +54,7 @@ func (o *DeleteDirectLinkInterfaceRequest) GetDirectLinkInterfaceId() string { // GetDirectLinkInterfaceIdOk returns a tuple with the DirectLinkInterfaceId field value // and a boolean to check if the value has been set. func (o *DeleteDirectLinkInterfaceRequest) GetDirectLinkInterfaceIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DirectLinkInterfaceId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteDirectLinkInterfaceRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_response.go index 0915d622a..7a893c696 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_interface_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteDirectLinkInterfaceResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_request.go index cda1962aa..685b9b187 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeleteDirectLinkRequest struct { // The ID of the DirectLink you want to delete. DirectLinkId string `json:"DirectLinkId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -27,7 +27,7 @@ type DeleteDirectLinkRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteDirectLinkRequest(directLinkId string, ) *DeleteDirectLinkRequest { +func NewDeleteDirectLinkRequest(directLinkId string) *DeleteDirectLinkRequest { this := DeleteDirectLinkRequest{} this.DirectLinkId = directLinkId return &this @@ -43,7 +43,7 @@ func NewDeleteDirectLinkRequestWithDefaults() *DeleteDirectLinkRequest { // GetDirectLinkId returns the DirectLinkId field value func (o *DeleteDirectLinkRequest) GetDirectLinkId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -54,7 +54,7 @@ func (o *DeleteDirectLinkRequest) GetDirectLinkId() string { // GetDirectLinkIdOk returns a tuple with the DirectLinkId field value // and a boolean to check if the value has been set. func (o *DeleteDirectLinkRequest) GetDirectLinkIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DirectLinkId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteDirectLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_response.go index dfb0acaf6..0d30a2a4d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_direct_link_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteDirectLinkResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_request.go index dab872188..b5592f7eb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteExportTaskRequest struct for DeleteExportTaskRequest type DeleteExportTaskRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the export task to delete. ExportTaskId string `json:"ExportTaskId"` @@ -27,7 +27,7 @@ type DeleteExportTaskRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteExportTaskRequest(exportTaskId string, ) *DeleteExportTaskRequest { +func NewDeleteExportTaskRequest(exportTaskId string) *DeleteExportTaskRequest { this := DeleteExportTaskRequest{} this.ExportTaskId = exportTaskId return &this @@ -75,7 +75,7 @@ func (o *DeleteExportTaskRequest) SetDryRun(v bool) { // GetExportTaskId returns the ExportTaskId field value func (o *DeleteExportTaskRequest) GetExportTaskId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteExportTaskRequest) GetExportTaskId() string { // GetExportTaskIdOk returns a tuple with the ExportTaskId field value // and a boolean to check if the value has been set. func (o *DeleteExportTaskRequest) GetExportTaskIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ExportTaskId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteExportTaskRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_response.go index b1f00bf3e..a32ef80cf 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_export_task_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteExportTaskResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_request.go index 3a7e27bca..e75ac44c1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteFlexibleGpuRequest struct for DeleteFlexibleGpuRequest type DeleteFlexibleGpuRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the fGPU you want to delete. FlexibleGpuId string `json:"FlexibleGpuId"` @@ -27,7 +27,7 @@ type DeleteFlexibleGpuRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteFlexibleGpuRequest(flexibleGpuId string, ) *DeleteFlexibleGpuRequest { +func NewDeleteFlexibleGpuRequest(flexibleGpuId string) *DeleteFlexibleGpuRequest { this := DeleteFlexibleGpuRequest{} this.FlexibleGpuId = flexibleGpuId return &this @@ -75,7 +75,7 @@ func (o *DeleteFlexibleGpuRequest) SetDryRun(v bool) { // GetFlexibleGpuId returns the FlexibleGpuId field value func (o *DeleteFlexibleGpuRequest) GetFlexibleGpuId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteFlexibleGpuRequest) GetFlexibleGpuId() string { // GetFlexibleGpuIdOk returns a tuple with the FlexibleGpuId field value // and a boolean to check if the value has been set. func (o *DeleteFlexibleGpuRequest) GetFlexibleGpuIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FlexibleGpuId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteFlexibleGpuRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_response.go index 3b5d3e1b5..4cd3be322 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_flexible_gpu_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteFlexibleGpuResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_request.go index 71e0d2d0b..4561eec58 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteImageRequest struct for DeleteImageRequest type DeleteImageRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the OMI you want to delete. ImageId string `json:"ImageId"` @@ -27,7 +27,7 @@ type DeleteImageRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteImageRequest(imageId string, ) *DeleteImageRequest { +func NewDeleteImageRequest(imageId string) *DeleteImageRequest { this := DeleteImageRequest{} this.ImageId = imageId return &this @@ -75,7 +75,7 @@ func (o *DeleteImageRequest) SetDryRun(v bool) { // GetImageId returns the ImageId field value func (o *DeleteImageRequest) GetImageId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteImageRequest) GetImageId() string { // GetImageIdOk returns a tuple with the ImageId field value // and a boolean to check if the value has been set. func (o *DeleteImageRequest) GetImageIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ImageId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteImageRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_response.go index aac8817f8..a1debf427 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_image_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteImageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_request.go index 69d943e6b..e130c460a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteInternetServiceRequest struct for DeleteInternetServiceRequest type DeleteInternetServiceRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Internet service you want to delete. InternetServiceId string `json:"InternetServiceId"` @@ -27,7 +27,7 @@ type DeleteInternetServiceRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteInternetServiceRequest(internetServiceId string, ) *DeleteInternetServiceRequest { +func NewDeleteInternetServiceRequest(internetServiceId string) *DeleteInternetServiceRequest { this := DeleteInternetServiceRequest{} this.InternetServiceId = internetServiceId return &this @@ -75,7 +75,7 @@ func (o *DeleteInternetServiceRequest) SetDryRun(v bool) { // GetInternetServiceId returns the InternetServiceId field value func (o *DeleteInternetServiceRequest) GetInternetServiceId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteInternetServiceRequest) GetInternetServiceId() string { // GetInternetServiceIdOk returns a tuple with the InternetServiceId field value // and a boolean to check if the value has been set. func (o *DeleteInternetServiceRequest) GetInternetServiceIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.InternetServiceId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteInternetServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_response.go index 8a97311b2..a2885c8d0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_internet_service_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteInternetServiceResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_request.go index 80db45937..3a0d8b34a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteKeypairRequest struct for DeleteKeypairRequest type DeleteKeypairRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the keypair you want to delete. KeypairName string `json:"KeypairName"` @@ -27,7 +27,7 @@ type DeleteKeypairRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteKeypairRequest(keypairName string, ) *DeleteKeypairRequest { +func NewDeleteKeypairRequest(keypairName string) *DeleteKeypairRequest { this := DeleteKeypairRequest{} this.KeypairName = keypairName return &this @@ -75,7 +75,7 @@ func (o *DeleteKeypairRequest) SetDryRun(v bool) { // GetKeypairName returns the KeypairName field value func (o *DeleteKeypairRequest) GetKeypairName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteKeypairRequest) GetKeypairName() string { // GetKeypairNameOk returns a tuple with the KeypairName field value // and a boolean to check if the value has been set. func (o *DeleteKeypairRequest) GetKeypairNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.KeypairName, true @@ -143,5 +143,3 @@ func (v *NullableDeleteKeypairRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_response.go index a4aa5367a..f9657ab69 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_keypair_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteKeypairResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_request.go index 03d303cf2..f1b625c23 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteListenerRuleRequest struct for DeleteListenerRuleRequest type DeleteListenerRuleRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the rule you want to delete. ListenerRuleName string `json:"ListenerRuleName"` @@ -27,7 +27,7 @@ type DeleteListenerRuleRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteListenerRuleRequest(listenerRuleName string, ) *DeleteListenerRuleRequest { +func NewDeleteListenerRuleRequest(listenerRuleName string) *DeleteListenerRuleRequest { this := DeleteListenerRuleRequest{} this.ListenerRuleName = listenerRuleName return &this @@ -75,7 +75,7 @@ func (o *DeleteListenerRuleRequest) SetDryRun(v bool) { // GetListenerRuleName returns the ListenerRuleName field value func (o *DeleteListenerRuleRequest) GetListenerRuleName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteListenerRuleRequest) GetListenerRuleName() string { // GetListenerRuleNameOk returns a tuple with the ListenerRuleName field value // and a boolean to check if the value has been set. func (o *DeleteListenerRuleRequest) GetListenerRuleNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ListenerRuleName, true @@ -143,5 +143,3 @@ func (v *NullableDeleteListenerRuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_response.go index 07095ae17..0ff4d564f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_listener_rule_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteListenerRuleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_request.go index b624d38a5..006be3d63 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteLoadBalancerListenersRequest struct for DeleteLoadBalancerListenersRequest type DeleteLoadBalancerListenersRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the load balancer for which you want to delete listeners. LoadBalancerName string `json:"LoadBalancerName"` @@ -29,7 +29,7 @@ type DeleteLoadBalancerListenersRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteLoadBalancerListenersRequest(loadBalancerName string, loadBalancerPorts []int32, ) *DeleteLoadBalancerListenersRequest { +func NewDeleteLoadBalancerListenersRequest(loadBalancerName string, loadBalancerPorts []int32) *DeleteLoadBalancerListenersRequest { this := DeleteLoadBalancerListenersRequest{} this.LoadBalancerName = loadBalancerName this.LoadBalancerPorts = loadBalancerPorts @@ -78,7 +78,7 @@ func (o *DeleteLoadBalancerListenersRequest) SetDryRun(v bool) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *DeleteLoadBalancerListenersRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *DeleteLoadBalancerListenersRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *DeleteLoadBalancerListenersRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -102,7 +102,7 @@ func (o *DeleteLoadBalancerListenersRequest) SetLoadBalancerName(v string) { // GetLoadBalancerPorts returns the LoadBalancerPorts field value func (o *DeleteLoadBalancerListenersRequest) GetLoadBalancerPorts() []int32 { - if o == nil { + if o == nil { var ret []int32 return ret } @@ -113,7 +113,7 @@ func (o *DeleteLoadBalancerListenersRequest) GetLoadBalancerPorts() []int32 { // GetLoadBalancerPortsOk returns a tuple with the LoadBalancerPorts field value // and a boolean to check if the value has been set. func (o *DeleteLoadBalancerListenersRequest) GetLoadBalancerPortsOk() (*[]int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerPorts, true @@ -173,5 +173,3 @@ func (v *NullableDeleteLoadBalancerListenersRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_response.go index c8b2549ab..91778089b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_listeners_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteLoadBalancerListenersResponse struct for DeleteLoadBalancerListenersResponse type DeleteLoadBalancerListenersResponse struct { - LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` + LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableDeleteLoadBalancerListenersResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_request.go index fc3d7e011..d76b85aa2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteLoadBalancerPolicyRequest struct for DeleteLoadBalancerPolicyRequest type DeleteLoadBalancerPolicyRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the load balancer for which you want to delete a policy. LoadBalancerName string `json:"LoadBalancerName"` @@ -29,7 +29,7 @@ type DeleteLoadBalancerPolicyRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteLoadBalancerPolicyRequest(loadBalancerName string, policyName string, ) *DeleteLoadBalancerPolicyRequest { +func NewDeleteLoadBalancerPolicyRequest(loadBalancerName string, policyName string) *DeleteLoadBalancerPolicyRequest { this := DeleteLoadBalancerPolicyRequest{} this.LoadBalancerName = loadBalancerName this.PolicyName = policyName @@ -78,7 +78,7 @@ func (o *DeleteLoadBalancerPolicyRequest) SetDryRun(v bool) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *DeleteLoadBalancerPolicyRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *DeleteLoadBalancerPolicyRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *DeleteLoadBalancerPolicyRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -102,7 +102,7 @@ func (o *DeleteLoadBalancerPolicyRequest) SetLoadBalancerName(v string) { // GetPolicyName returns the PolicyName field value func (o *DeleteLoadBalancerPolicyRequest) GetPolicyName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *DeleteLoadBalancerPolicyRequest) GetPolicyName() string { // GetPolicyNameOk returns a tuple with the PolicyName field value // and a boolean to check if the value has been set. func (o *DeleteLoadBalancerPolicyRequest) GetPolicyNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PolicyName, true @@ -173,5 +173,3 @@ func (v *NullableDeleteLoadBalancerPolicyRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_response.go index 3a29ed42e..e52f11e86 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_policy_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteLoadBalancerPolicyResponse struct for DeleteLoadBalancerPolicyResponse type DeleteLoadBalancerPolicyResponse struct { - LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` + LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableDeleteLoadBalancerPolicyResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_request.go index 1b85ccdfa..1d68830a5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteLoadBalancerRequest struct for DeleteLoadBalancerRequest type DeleteLoadBalancerRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the load balancer you want to delete. LoadBalancerName string `json:"LoadBalancerName"` @@ -27,7 +27,7 @@ type DeleteLoadBalancerRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteLoadBalancerRequest(loadBalancerName string, ) *DeleteLoadBalancerRequest { +func NewDeleteLoadBalancerRequest(loadBalancerName string) *DeleteLoadBalancerRequest { this := DeleteLoadBalancerRequest{} this.LoadBalancerName = loadBalancerName return &this @@ -75,7 +75,7 @@ func (o *DeleteLoadBalancerRequest) SetDryRun(v bool) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *DeleteLoadBalancerRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteLoadBalancerRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *DeleteLoadBalancerRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -143,5 +143,3 @@ func (v *NullableDeleteLoadBalancerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_response.go index 8c4ee1dba..7140032a0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteLoadBalancerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_request.go index 9b5226d68..9536a608e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteLoadBalancerTagsRequest struct for DeleteLoadBalancerTagsRequest type DeleteLoadBalancerTagsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more load balancer names. LoadBalancerNames []string `json:"LoadBalancerNames"` @@ -29,7 +29,7 @@ type DeleteLoadBalancerTagsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteLoadBalancerTagsRequest(loadBalancerNames []string, tags []ResourceLoadBalancerTag, ) *DeleteLoadBalancerTagsRequest { +func NewDeleteLoadBalancerTagsRequest(loadBalancerNames []string, tags []ResourceLoadBalancerTag) *DeleteLoadBalancerTagsRequest { this := DeleteLoadBalancerTagsRequest{} this.LoadBalancerNames = loadBalancerNames this.Tags = tags @@ -78,7 +78,7 @@ func (o *DeleteLoadBalancerTagsRequest) SetDryRun(v bool) { // GetLoadBalancerNames returns the LoadBalancerNames field value func (o *DeleteLoadBalancerTagsRequest) GetLoadBalancerNames() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -89,7 +89,7 @@ func (o *DeleteLoadBalancerTagsRequest) GetLoadBalancerNames() []string { // GetLoadBalancerNamesOk returns a tuple with the LoadBalancerNames field value // and a boolean to check if the value has been set. func (o *DeleteLoadBalancerTagsRequest) GetLoadBalancerNamesOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerNames, true @@ -102,7 +102,7 @@ func (o *DeleteLoadBalancerTagsRequest) SetLoadBalancerNames(v []string) { // GetTags returns the Tags field value func (o *DeleteLoadBalancerTagsRequest) GetTags() []ResourceLoadBalancerTag { - if o == nil { + if o == nil { var ret []ResourceLoadBalancerTag return ret } @@ -113,7 +113,7 @@ func (o *DeleteLoadBalancerTagsRequest) GetTags() []ResourceLoadBalancerTag { // GetTagsOk returns a tuple with the Tags field value // and a boolean to check if the value has been set. func (o *DeleteLoadBalancerTagsRequest) GetTagsOk() (*[]ResourceLoadBalancerTag, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Tags, true @@ -173,5 +173,3 @@ func (v *NullableDeleteLoadBalancerTagsRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_response.go index 21bef0ce0..305fdb89e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_load_balancer_tags_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteLoadBalancerTagsResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_request.go index 4f32a45e8..098728a5e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteNatServiceRequest struct for DeleteNatServiceRequest type DeleteNatServiceRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the NAT service you want to delete. NatServiceId string `json:"NatServiceId"` @@ -27,7 +27,7 @@ type DeleteNatServiceRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteNatServiceRequest(natServiceId string, ) *DeleteNatServiceRequest { +func NewDeleteNatServiceRequest(natServiceId string) *DeleteNatServiceRequest { this := DeleteNatServiceRequest{} this.NatServiceId = natServiceId return &this @@ -75,7 +75,7 @@ func (o *DeleteNatServiceRequest) SetDryRun(v bool) { // GetNatServiceId returns the NatServiceId field value func (o *DeleteNatServiceRequest) GetNatServiceId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteNatServiceRequest) GetNatServiceId() string { // GetNatServiceIdOk returns a tuple with the NatServiceId field value // and a boolean to check if the value has been set. func (o *DeleteNatServiceRequest) GetNatServiceIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NatServiceId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteNatServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_response.go index 34e9add70..7de4012cc 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nat_service_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteNatServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_request.go index ba3175e3a..ba275634a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteNetAccessPointRequest struct for DeleteNetAccessPointRequest type DeleteNetAccessPointRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net access point. NetAccessPointId string `json:"NetAccessPointId"` @@ -27,7 +27,7 @@ type DeleteNetAccessPointRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteNetAccessPointRequest(netAccessPointId string, ) *DeleteNetAccessPointRequest { +func NewDeleteNetAccessPointRequest(netAccessPointId string) *DeleteNetAccessPointRequest { this := DeleteNetAccessPointRequest{} this.NetAccessPointId = netAccessPointId return &this @@ -75,7 +75,7 @@ func (o *DeleteNetAccessPointRequest) SetDryRun(v bool) { // GetNetAccessPointId returns the NetAccessPointId field value func (o *DeleteNetAccessPointRequest) GetNetAccessPointId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteNetAccessPointRequest) GetNetAccessPointId() string { // GetNetAccessPointIdOk returns a tuple with the NetAccessPointId field value // and a boolean to check if the value has been set. func (o *DeleteNetAccessPointRequest) GetNetAccessPointIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetAccessPointId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteNetAccessPointRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_response.go index 2845b91d6..a7cefe66b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_access_point_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteNetAccessPointResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_request.go index b11cd8bf5..aeaf3ed30 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteNetPeeringRequest struct for DeleteNetPeeringRequest type DeleteNetPeeringRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net peering connection you want to delete. NetPeeringId string `json:"NetPeeringId"` @@ -27,7 +27,7 @@ type DeleteNetPeeringRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteNetPeeringRequest(netPeeringId string, ) *DeleteNetPeeringRequest { +func NewDeleteNetPeeringRequest(netPeeringId string) *DeleteNetPeeringRequest { this := DeleteNetPeeringRequest{} this.NetPeeringId = netPeeringId return &this @@ -75,7 +75,7 @@ func (o *DeleteNetPeeringRequest) SetDryRun(v bool) { // GetNetPeeringId returns the NetPeeringId field value func (o *DeleteNetPeeringRequest) GetNetPeeringId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteNetPeeringRequest) GetNetPeeringId() string { // GetNetPeeringIdOk returns a tuple with the NetPeeringId field value // and a boolean to check if the value has been set. func (o *DeleteNetPeeringRequest) GetNetPeeringIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetPeeringId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteNetPeeringRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_response.go index 8a01aa155..80e997720 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_peering_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteNetPeeringResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_request.go index b0acd78c6..7801d319f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteNetRequest struct for DeleteNetRequest type DeleteNetRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net you want to delete. NetId string `json:"NetId"` @@ -27,7 +27,7 @@ type DeleteNetRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteNetRequest(netId string, ) *DeleteNetRequest { +func NewDeleteNetRequest(netId string) *DeleteNetRequest { this := DeleteNetRequest{} this.NetId = netId return &this @@ -75,7 +75,7 @@ func (o *DeleteNetRequest) SetDryRun(v bool) { // GetNetId returns the NetId field value func (o *DeleteNetRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteNetRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *DeleteNetRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteNetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_response.go index 2b3780f52..bf15f352c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_net_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteNetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_request.go index 4114e415f..b10e82a87 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteNicRequest struct for DeleteNicRequest type DeleteNicRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the NIC you want to delete. NicId string `json:"NicId"` @@ -27,7 +27,7 @@ type DeleteNicRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteNicRequest(nicId string, ) *DeleteNicRequest { +func NewDeleteNicRequest(nicId string) *DeleteNicRequest { this := DeleteNicRequest{} this.NicId = nicId return &this @@ -75,7 +75,7 @@ func (o *DeleteNicRequest) SetDryRun(v bool) { // GetNicId returns the NicId field value func (o *DeleteNicRequest) GetNicId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteNicRequest) GetNicId() string { // GetNicIdOk returns a tuple with the NicId field value // and a boolean to check if the value has been set. func (o *DeleteNicRequest) GetNicIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NicId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteNicRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_response.go index 5fb84e07a..85c78e008 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_nic_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteNicResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_request.go index 6d0831b33..8ac20d468 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeletePublicIpRequest struct for DeletePublicIpRequest type DeletePublicIpRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The EIP. In the public Cloud, this parameter is required. PublicIp *string `json:"PublicIp,omitempty"` @@ -187,5 +187,3 @@ func (v *NullableDeletePublicIpRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_response.go index b434b074f..87a7a1edb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_public_ip_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeletePublicIpResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_request.go index a62a65437..3869c70b4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeleteRouteRequest struct { // The exact IP range for the route. DestinationIpRange string `json:"DestinationIpRange"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the route table from which you want to delete a route. RouteTableId string `json:"RouteTableId"` @@ -29,7 +29,7 @@ type DeleteRouteRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteRouteRequest(destinationIpRange string, routeTableId string, ) *DeleteRouteRequest { +func NewDeleteRouteRequest(destinationIpRange string, routeTableId string) *DeleteRouteRequest { this := DeleteRouteRequest{} this.DestinationIpRange = destinationIpRange this.RouteTableId = routeTableId @@ -46,7 +46,7 @@ func NewDeleteRouteRequestWithDefaults() *DeleteRouteRequest { // GetDestinationIpRange returns the DestinationIpRange field value func (o *DeleteRouteRequest) GetDestinationIpRange() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *DeleteRouteRequest) GetDestinationIpRange() string { // GetDestinationIpRangeOk returns a tuple with the DestinationIpRange field value // and a boolean to check if the value has been set. func (o *DeleteRouteRequest) GetDestinationIpRangeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationIpRange, true @@ -102,7 +102,7 @@ func (o *DeleteRouteRequest) SetDryRun(v bool) { // GetRouteTableId returns the RouteTableId field value func (o *DeleteRouteRequest) GetRouteTableId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *DeleteRouteRequest) GetRouteTableId() string { // GetRouteTableIdOk returns a tuple with the RouteTableId field value // and a boolean to check if the value has been set. func (o *DeleteRouteRequest) GetRouteTableIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RouteTableId, true @@ -173,5 +173,3 @@ func (v *NullableDeleteRouteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_response.go index 30b21d4e0..1166b5e98 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // DeleteRouteResponse struct for DeleteRouteResponse type DeleteRouteResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - RouteTable *RouteTable `json:"RouteTable,omitempty"` + RouteTable *RouteTable `json:"RouteTable,omitempty"` } // NewDeleteRouteResponse instantiates a new DeleteRouteResponse object @@ -148,5 +148,3 @@ func (v *NullableDeleteRouteResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_request.go index c595a05be..622a3b4ef 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteRouteTableRequest struct for DeleteRouteTableRequest type DeleteRouteTableRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the route table you want to delete. RouteTableId string `json:"RouteTableId"` @@ -27,7 +27,7 @@ type DeleteRouteTableRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteRouteTableRequest(routeTableId string, ) *DeleteRouteTableRequest { +func NewDeleteRouteTableRequest(routeTableId string) *DeleteRouteTableRequest { this := DeleteRouteTableRequest{} this.RouteTableId = routeTableId return &this @@ -75,7 +75,7 @@ func (o *DeleteRouteTableRequest) SetDryRun(v bool) { // GetRouteTableId returns the RouteTableId field value func (o *DeleteRouteTableRequest) GetRouteTableId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteRouteTableRequest) GetRouteTableId() string { // GetRouteTableIdOk returns a tuple with the RouteTableId field value // and a boolean to check if the value has been set. func (o *DeleteRouteTableRequest) GetRouteTableIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RouteTableId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteRouteTableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_response.go index 9c92a0f4e..cb63fa295 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_route_table_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteRouteTableResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_request.go index 5777ee03a..a78c41b16 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteSecurityGroupRequest struct for DeleteSecurityGroupRequest type DeleteSecurityGroupRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the security group you want to delete. SecurityGroupId *string `json:"SecurityGroupId,omitempty"` @@ -187,5 +187,3 @@ func (v *NullableDeleteSecurityGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_response.go index f6a9294f1..be49a81ac 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteSecurityGroupResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_request.go index 5e5bb542c..54e05bfbf 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteSecurityGroupRuleRequest struct for DeleteSecurityGroupRuleRequest type DeleteSecurityGroupRuleRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The direction of the flow: `Inbound` or `Outbound`. You can specify `Outbound` for Nets only. Flow string `json:"Flow"` @@ -43,7 +43,7 @@ type DeleteSecurityGroupRuleRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteSecurityGroupRuleRequest(flow string, securityGroupId string, ) *DeleteSecurityGroupRuleRequest { +func NewDeleteSecurityGroupRuleRequest(flow string, securityGroupId string) *DeleteSecurityGroupRuleRequest { this := DeleteSecurityGroupRuleRequest{} this.Flow = flow this.SecurityGroupId = securityGroupId @@ -92,7 +92,7 @@ func (o *DeleteSecurityGroupRuleRequest) SetDryRun(v bool) { // GetFlow returns the Flow field value func (o *DeleteSecurityGroupRuleRequest) GetFlow() string { - if o == nil { + if o == nil { var ret string return ret } @@ -103,7 +103,7 @@ func (o *DeleteSecurityGroupRuleRequest) GetFlow() string { // GetFlowOk returns a tuple with the Flow field value // and a boolean to check if the value has been set. func (o *DeleteSecurityGroupRuleRequest) GetFlowOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Flow, true @@ -276,7 +276,7 @@ func (o *DeleteSecurityGroupRuleRequest) SetSecurityGroupAccountIdToUnlink(v str // GetSecurityGroupId returns the SecurityGroupId field value func (o *DeleteSecurityGroupRuleRequest) GetSecurityGroupId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -287,7 +287,7 @@ func (o *DeleteSecurityGroupRuleRequest) GetSecurityGroupId() string { // GetSecurityGroupIdOk returns a tuple with the SecurityGroupId field value // and a boolean to check if the value has been set. func (o *DeleteSecurityGroupRuleRequest) GetSecurityGroupIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SecurityGroupId, true @@ -432,5 +432,3 @@ func (v *NullableDeleteSecurityGroupRuleRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_response.go index e85cd92d3..72111e125 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_security_group_rule_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // DeleteSecurityGroupRuleResponse struct for DeleteSecurityGroupRuleResponse type DeleteSecurityGroupRuleResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty"` + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty"` } // NewDeleteSecurityGroupRuleResponse instantiates a new DeleteSecurityGroupRuleResponse object @@ -148,5 +148,3 @@ func (v *NullableDeleteSecurityGroupRuleResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_request.go index 37fb65eac..4675a3caa 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteServerCertificateRequest struct for DeleteServerCertificateRequest type DeleteServerCertificateRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the server certificate you want to delete. Name string `json:"Name"` @@ -27,7 +27,7 @@ type DeleteServerCertificateRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteServerCertificateRequest(name string, ) *DeleteServerCertificateRequest { +func NewDeleteServerCertificateRequest(name string) *DeleteServerCertificateRequest { this := DeleteServerCertificateRequest{} this.Name = name return &this @@ -75,7 +75,7 @@ func (o *DeleteServerCertificateRequest) SetDryRun(v bool) { // GetName returns the Name field value func (o *DeleteServerCertificateRequest) GetName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteServerCertificateRequest) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *DeleteServerCertificateRequest) GetNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Name, true @@ -143,5 +143,3 @@ func (v *NullableDeleteServerCertificateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_response.go index dca75fae3..0ace78d23 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_server_certificate_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteServerCertificateResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_request.go index 4d532c972..0b9ade728 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteSnapshotRequest struct for DeleteSnapshotRequest type DeleteSnapshotRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the snapshot you want to delete. SnapshotId string `json:"SnapshotId"` @@ -27,7 +27,7 @@ type DeleteSnapshotRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteSnapshotRequest(snapshotId string, ) *DeleteSnapshotRequest { +func NewDeleteSnapshotRequest(snapshotId string) *DeleteSnapshotRequest { this := DeleteSnapshotRequest{} this.SnapshotId = snapshotId return &this @@ -75,7 +75,7 @@ func (o *DeleteSnapshotRequest) SetDryRun(v bool) { // GetSnapshotId returns the SnapshotId field value func (o *DeleteSnapshotRequest) GetSnapshotId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteSnapshotRequest) GetSnapshotId() string { // GetSnapshotIdOk returns a tuple with the SnapshotId field value // and a boolean to check if the value has been set. func (o *DeleteSnapshotRequest) GetSnapshotIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SnapshotId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteSnapshotRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_response.go index 849dae470..757b80f23 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_snapshot_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteSnapshotResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_request.go index 2d0c6fb57..7766f9b2a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteSubnetRequest struct for DeleteSubnetRequest type DeleteSubnetRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Subnet you want to delete. SubnetId string `json:"SubnetId"` @@ -27,7 +27,7 @@ type DeleteSubnetRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteSubnetRequest(subnetId string, ) *DeleteSubnetRequest { +func NewDeleteSubnetRequest(subnetId string) *DeleteSubnetRequest { this := DeleteSubnetRequest{} this.SubnetId = subnetId return &this @@ -75,7 +75,7 @@ func (o *DeleteSubnetRequest) SetDryRun(v bool) { // GetSubnetId returns the SubnetId field value func (o *DeleteSubnetRequest) GetSubnetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteSubnetRequest) GetSubnetId() string { // GetSubnetIdOk returns a tuple with the SubnetId field value // and a boolean to check if the value has been set. func (o *DeleteSubnetRequest) GetSubnetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SubnetId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteSubnetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_response.go index 7fba3f2c6..7102fd5f2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_subnet_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteSubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_request.go index e279f16aa..4e65ca2c8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteTagsRequest struct for DeleteTagsRequest type DeleteTagsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more resource IDs. ResourceIds []string `json:"ResourceIds"` @@ -29,7 +29,7 @@ type DeleteTagsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteTagsRequest(resourceIds []string, tags []ResourceTag, ) *DeleteTagsRequest { +func NewDeleteTagsRequest(resourceIds []string, tags []ResourceTag) *DeleteTagsRequest { this := DeleteTagsRequest{} this.ResourceIds = resourceIds this.Tags = tags @@ -78,7 +78,7 @@ func (o *DeleteTagsRequest) SetDryRun(v bool) { // GetResourceIds returns the ResourceIds field value func (o *DeleteTagsRequest) GetResourceIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -89,7 +89,7 @@ func (o *DeleteTagsRequest) GetResourceIds() []string { // GetResourceIdsOk returns a tuple with the ResourceIds field value // and a boolean to check if the value has been set. func (o *DeleteTagsRequest) GetResourceIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ResourceIds, true @@ -102,7 +102,7 @@ func (o *DeleteTagsRequest) SetResourceIds(v []string) { // GetTags returns the Tags field value func (o *DeleteTagsRequest) GetTags() []ResourceTag { - if o == nil { + if o == nil { var ret []ResourceTag return ret } @@ -113,7 +113,7 @@ func (o *DeleteTagsRequest) GetTags() []ResourceTag { // GetTagsOk returns a tuple with the Tags field value // and a boolean to check if the value has been set. func (o *DeleteTagsRequest) GetTagsOk() (*[]ResourceTag, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Tags, true @@ -173,5 +173,3 @@ func (v *NullableDeleteTagsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_response.go index 102c29005..db38d2ac8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_tags_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteTagsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_request.go index f9df71653..f82e67d0b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteVirtualGatewayRequest struct for DeleteVirtualGatewayRequest type DeleteVirtualGatewayRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the virtual gateway you want to delete. VirtualGatewayId string `json:"VirtualGatewayId"` @@ -27,7 +27,7 @@ type DeleteVirtualGatewayRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteVirtualGatewayRequest(virtualGatewayId string, ) *DeleteVirtualGatewayRequest { +func NewDeleteVirtualGatewayRequest(virtualGatewayId string) *DeleteVirtualGatewayRequest { this := DeleteVirtualGatewayRequest{} this.VirtualGatewayId = virtualGatewayId return &this @@ -75,7 +75,7 @@ func (o *DeleteVirtualGatewayRequest) SetDryRun(v bool) { // GetVirtualGatewayId returns the VirtualGatewayId field value func (o *DeleteVirtualGatewayRequest) GetVirtualGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteVirtualGatewayRequest) GetVirtualGatewayId() string { // GetVirtualGatewayIdOk returns a tuple with the VirtualGatewayId field value // and a boolean to check if the value has been set. func (o *DeleteVirtualGatewayRequest) GetVirtualGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VirtualGatewayId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteVirtualGatewayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_response.go index 1b543a9c4..3faaa21fa 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_virtual_gateway_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteVirtualGatewayResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_request.go index 8655440ef..f98437234 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteVmsRequest struct for DeleteVmsRequest type DeleteVmsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more IDs of VMs. VmIds []string `json:"VmIds"` @@ -27,7 +27,7 @@ type DeleteVmsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteVmsRequest(vmIds []string, ) *DeleteVmsRequest { +func NewDeleteVmsRequest(vmIds []string) *DeleteVmsRequest { this := DeleteVmsRequest{} this.VmIds = vmIds return &this @@ -75,7 +75,7 @@ func (o *DeleteVmsRequest) SetDryRun(v bool) { // GetVmIds returns the VmIds field value func (o *DeleteVmsRequest) GetVmIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -86,7 +86,7 @@ func (o *DeleteVmsRequest) GetVmIds() []string { // GetVmIdsOk returns a tuple with the VmIds field value // and a boolean to check if the value has been set. func (o *DeleteVmsRequest) GetVmIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmIds, true @@ -143,5 +143,3 @@ func (v *NullableDeleteVmsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_response.go index a9eb9985b..e13980396 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vms_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableDeleteVmsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_request.go index fa7bb8a5d..7266ab600 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteVolumeRequest struct for DeleteVolumeRequest type DeleteVolumeRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the volume you want to delete. VolumeId string `json:"VolumeId"` @@ -27,7 +27,7 @@ type DeleteVolumeRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteVolumeRequest(volumeId string, ) *DeleteVolumeRequest { +func NewDeleteVolumeRequest(volumeId string) *DeleteVolumeRequest { this := DeleteVolumeRequest{} this.VolumeId = volumeId return &this @@ -75,7 +75,7 @@ func (o *DeleteVolumeRequest) SetDryRun(v bool) { // GetVolumeId returns the VolumeId field value func (o *DeleteVolumeRequest) GetVolumeId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteVolumeRequest) GetVolumeId() string { // GetVolumeIdOk returns a tuple with the VolumeId field value // and a boolean to check if the value has been set. func (o *DeleteVolumeRequest) GetVolumeIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VolumeId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteVolumeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_response.go index 828b46fdb..19970cf22 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_volume_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteVolumeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_request.go index b9b25df60..bf39d92dd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // DeleteVpnConnectionRequest struct for DeleteVpnConnectionRequest type DeleteVpnConnectionRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the VPN connection you want to delete. VpnConnectionId string `json:"VpnConnectionId"` @@ -27,7 +27,7 @@ type DeleteVpnConnectionRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteVpnConnectionRequest(vpnConnectionId string, ) *DeleteVpnConnectionRequest { +func NewDeleteVpnConnectionRequest(vpnConnectionId string) *DeleteVpnConnectionRequest { this := DeleteVpnConnectionRequest{} this.VpnConnectionId = vpnConnectionId return &this @@ -75,7 +75,7 @@ func (o *DeleteVpnConnectionRequest) SetDryRun(v bool) { // GetVpnConnectionId returns the VpnConnectionId field value func (o *DeleteVpnConnectionRequest) GetVpnConnectionId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *DeleteVpnConnectionRequest) GetVpnConnectionId() string { // GetVpnConnectionIdOk returns a tuple with the VpnConnectionId field value // and a boolean to check if the value has been set. func (o *DeleteVpnConnectionRequest) GetVpnConnectionIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VpnConnectionId, true @@ -143,5 +143,3 @@ func (v *NullableDeleteVpnConnectionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_response.go index 5c46b6879..5fa3576f0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteVpnConnectionResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_request.go index dda8b4c1e..7e9cebe11 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeleteVpnConnectionRouteRequest struct { // The network prefix of the route to delete, in CIDR notation (for example, 10.12.0.0/16). DestinationIpRange string `json:"DestinationIpRange"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the target VPN connection of the static route to delete. VpnConnectionId string `json:"VpnConnectionId"` @@ -29,7 +29,7 @@ type DeleteVpnConnectionRouteRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteVpnConnectionRouteRequest(destinationIpRange string, vpnConnectionId string, ) *DeleteVpnConnectionRouteRequest { +func NewDeleteVpnConnectionRouteRequest(destinationIpRange string, vpnConnectionId string) *DeleteVpnConnectionRouteRequest { this := DeleteVpnConnectionRouteRequest{} this.DestinationIpRange = destinationIpRange this.VpnConnectionId = vpnConnectionId @@ -46,7 +46,7 @@ func NewDeleteVpnConnectionRouteRequestWithDefaults() *DeleteVpnConnectionRouteR // GetDestinationIpRange returns the DestinationIpRange field value func (o *DeleteVpnConnectionRouteRequest) GetDestinationIpRange() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *DeleteVpnConnectionRouteRequest) GetDestinationIpRange() string { // GetDestinationIpRangeOk returns a tuple with the DestinationIpRange field value // and a boolean to check if the value has been set. func (o *DeleteVpnConnectionRouteRequest) GetDestinationIpRangeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationIpRange, true @@ -102,7 +102,7 @@ func (o *DeleteVpnConnectionRouteRequest) SetDryRun(v bool) { // GetVpnConnectionId returns the VpnConnectionId field value func (o *DeleteVpnConnectionRouteRequest) GetVpnConnectionId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *DeleteVpnConnectionRouteRequest) GetVpnConnectionId() string { // GetVpnConnectionIdOk returns a tuple with the VpnConnectionId field value // and a boolean to check if the value has been set. func (o *DeleteVpnConnectionRouteRequest) GetVpnConnectionIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VpnConnectionId, true @@ -173,5 +173,3 @@ func (v *NullableDeleteVpnConnectionRouteRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_response.go index fff3bb85f..cd1e0754b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_delete_vpn_connection_route_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeleteVpnConnectionRouteResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_request.go index 2371f93d6..35dd4b8a2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type DeregisterVmsInLoadBalancerRequest struct { // One or more IDs of back-end VMs. BackendVmIds []string `json:"BackendVmIds"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the load balancer. LoadBalancerName string `json:"LoadBalancerName"` @@ -29,7 +29,7 @@ type DeregisterVmsInLoadBalancerRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeregisterVmsInLoadBalancerRequest(backendVmIds []string, loadBalancerName string, ) *DeregisterVmsInLoadBalancerRequest { +func NewDeregisterVmsInLoadBalancerRequest(backendVmIds []string, loadBalancerName string) *DeregisterVmsInLoadBalancerRequest { this := DeregisterVmsInLoadBalancerRequest{} this.BackendVmIds = backendVmIds this.LoadBalancerName = loadBalancerName @@ -46,7 +46,7 @@ func NewDeregisterVmsInLoadBalancerRequestWithDefaults() *DeregisterVmsInLoadBal // GetBackendVmIds returns the BackendVmIds field value func (o *DeregisterVmsInLoadBalancerRequest) GetBackendVmIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -57,7 +57,7 @@ func (o *DeregisterVmsInLoadBalancerRequest) GetBackendVmIds() []string { // GetBackendVmIdsOk returns a tuple with the BackendVmIds field value // and a boolean to check if the value has been set. func (o *DeregisterVmsInLoadBalancerRequest) GetBackendVmIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.BackendVmIds, true @@ -102,7 +102,7 @@ func (o *DeregisterVmsInLoadBalancerRequest) SetDryRun(v bool) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *DeregisterVmsInLoadBalancerRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *DeregisterVmsInLoadBalancerRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *DeregisterVmsInLoadBalancerRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -173,5 +173,3 @@ func (v *NullableDeregisterVmsInLoadBalancerRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_response.go index 1f068d3e5..7a38a756b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_deregister_vms_in_load_balancer_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableDeregisterVmsInLoadBalancerResponse) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_dhcp_options_set.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_dhcp_options_set.go index 3220ff2d1..85a557fd2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_dhcp_options_set.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_dhcp_options_set.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,10 +17,8 @@ import ( // DhcpOptionsSet Information about the DHCP options set. type DhcpOptionsSet struct { - // If `true`, the DHCP options set is a default one. If `false`, it is not. + // If true, the DHCP options set is a default one. If false, it is not. Default *bool `json:"Default,omitempty"` - // The name of the DHCP options set. - DhcpOptionsName *string `json:"DhcpOptionsName,omitempty"` // The ID of the DHCP options set. DhcpOptionsSetId *string `json:"DhcpOptionsSetId,omitempty"` // The domain name. @@ -82,38 +80,6 @@ func (o *DhcpOptionsSet) SetDefault(v bool) { o.Default = &v } -// GetDhcpOptionsName returns the DhcpOptionsName field value if set, zero value otherwise. -func (o *DhcpOptionsSet) GetDhcpOptionsName() string { - if o == nil || o.DhcpOptionsName == nil { - var ret string - return ret - } - return *o.DhcpOptionsName -} - -// GetDhcpOptionsNameOk returns a tuple with the DhcpOptionsName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DhcpOptionsSet) GetDhcpOptionsNameOk() (*string, bool) { - if o == nil || o.DhcpOptionsName == nil { - return nil, false - } - return o.DhcpOptionsName, true -} - -// HasDhcpOptionsName returns a boolean if a field has been set. -func (o *DhcpOptionsSet) HasDhcpOptionsName() bool { - if o != nil && o.DhcpOptionsName != nil { - return true - } - - return false -} - -// SetDhcpOptionsName gets a reference to the given string and assigns it to the DhcpOptionsName field. -func (o *DhcpOptionsSet) SetDhcpOptionsName(v string) { - o.DhcpOptionsName = &v -} - // GetDhcpOptionsSetId returns the DhcpOptionsSetId field value if set, zero value otherwise. func (o *DhcpOptionsSet) GetDhcpOptionsSetId() string { if o == nil || o.DhcpOptionsSetId == nil { @@ -279,9 +245,6 @@ func (o DhcpOptionsSet) MarshalJSON() ([]byte, error) { if o.Default != nil { toSerialize["Default"] = o.Default } - if o.DhcpOptionsName != nil { - toSerialize["DhcpOptionsName"] = o.DhcpOptionsName - } if o.DhcpOptionsSetId != nil { toSerialize["DhcpOptionsSetId"] = o.DhcpOptionsSetId } @@ -335,5 +298,3 @@ func (v *NullableDhcpOptionsSet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link.go index 4aaeabe69..4af27838e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -335,5 +335,3 @@ func (v *NullableDirectLink) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interface.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interface.go index 5b2c87815..5ade0dcd0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interface.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interface.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -37,7 +37,7 @@ type DirectLinkInterface struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDirectLinkInterface(bgpAsn int32, directLinkInterfaceName string, virtualGatewayId string, vlan int32, ) *DirectLinkInterface { +func NewDirectLinkInterface(bgpAsn int32, directLinkInterfaceName string, virtualGatewayId string, vlan int32) *DirectLinkInterface { this := DirectLinkInterface{} this.BgpAsn = bgpAsn this.DirectLinkInterfaceName = directLinkInterfaceName @@ -56,7 +56,7 @@ func NewDirectLinkInterfaceWithDefaults() *DirectLinkInterface { // GetBgpAsn returns the BgpAsn field value func (o *DirectLinkInterface) GetBgpAsn() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -67,7 +67,7 @@ func (o *DirectLinkInterface) GetBgpAsn() int32 { // GetBgpAsnOk returns a tuple with the BgpAsn field value // and a boolean to check if the value has been set. func (o *DirectLinkInterface) GetBgpAsnOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.BgpAsn, true @@ -144,7 +144,7 @@ func (o *DirectLinkInterface) SetClientPrivateIp(v string) { // GetDirectLinkInterfaceName returns the DirectLinkInterfaceName field value func (o *DirectLinkInterface) GetDirectLinkInterfaceName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *DirectLinkInterface) GetDirectLinkInterfaceName() string { // GetDirectLinkInterfaceNameOk returns a tuple with the DirectLinkInterfaceName field value // and a boolean to check if the value has been set. func (o *DirectLinkInterface) GetDirectLinkInterfaceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DirectLinkInterfaceName, true @@ -200,7 +200,7 @@ func (o *DirectLinkInterface) SetOutscalePrivateIp(v string) { // GetVirtualGatewayId returns the VirtualGatewayId field value func (o *DirectLinkInterface) GetVirtualGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -211,7 +211,7 @@ func (o *DirectLinkInterface) GetVirtualGatewayId() string { // GetVirtualGatewayIdOk returns a tuple with the VirtualGatewayId field value // and a boolean to check if the value has been set. func (o *DirectLinkInterface) GetVirtualGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VirtualGatewayId, true @@ -224,7 +224,7 @@ func (o *DirectLinkInterface) SetVirtualGatewayId(v string) { // GetVlan returns the Vlan field value func (o *DirectLinkInterface) GetVlan() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -235,7 +235,7 @@ func (o *DirectLinkInterface) GetVlan() int32 { // GetVlanOk returns a tuple with the Vlan field value // and a boolean to check if the value has been set. func (o *DirectLinkInterface) GetVlanOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Vlan, true @@ -307,5 +307,3 @@ func (v *NullableDirectLinkInterface) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interfaces.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interfaces.go index 0ca4c33c6..fb1f1ff05 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interfaces.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_direct_link_interfaces.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -557,5 +557,3 @@ func (v *NullableDirectLinkInterfaces) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_error_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_error_response.go index 3ee98d8b5..9b3c43644 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_error_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_error_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ErrorResponse struct for ErrorResponse type ErrorResponse struct { // One or more errors. - Errors *[]Errors `json:"Errors,omitempty"` + Errors *[]Errors `json:"Errors,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_errors.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_errors.go index 31dde1053..8a2d10999 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_errors.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_errors.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableErrors) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_access_keys.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_access_keys.go index 13b08e328..8dca6f539 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_access_keys.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_access_keys.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableFiltersAccessKeys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_api_access_rule.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_api_access_rule.go new file mode 100644 index 000000000..e0c095149 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_api_access_rule.go @@ -0,0 +1,263 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// FiltersApiAccessRule One or more filters. +type FiltersApiAccessRule struct { + // One or more IDs of API access rules. + ApiAccessRuleIds *[]string `json:"ApiAccessRuleIds,omitempty"` + // One or more IDs of Client Certificate Authorities (CAs). + CaIds *[]string `json:"CaIds,omitempty"` + // One or more Client Certificate Common Names (CNs). + Cns *[]string `json:"Cns,omitempty"` + // One or more descriptions of API access rules. + Descriptions *[]string `json:"Descriptions,omitempty"` + // One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + IpRanges *[]string `json:"IpRanges,omitempty"` +} + +// NewFiltersApiAccessRule instantiates a new FiltersApiAccessRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFiltersApiAccessRule() *FiltersApiAccessRule { + this := FiltersApiAccessRule{} + return &this +} + +// NewFiltersApiAccessRuleWithDefaults instantiates a new FiltersApiAccessRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFiltersApiAccessRuleWithDefaults() *FiltersApiAccessRule { + this := FiltersApiAccessRule{} + return &this +} + +// GetApiAccessRuleIds returns the ApiAccessRuleIds field value if set, zero value otherwise. +func (o *FiltersApiAccessRule) GetApiAccessRuleIds() []string { + if o == nil || o.ApiAccessRuleIds == nil { + var ret []string + return ret + } + return *o.ApiAccessRuleIds +} + +// GetApiAccessRuleIdsOk returns a tuple with the ApiAccessRuleIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersApiAccessRule) GetApiAccessRuleIdsOk() (*[]string, bool) { + if o == nil || o.ApiAccessRuleIds == nil { + return nil, false + } + return o.ApiAccessRuleIds, true +} + +// HasApiAccessRuleIds returns a boolean if a field has been set. +func (o *FiltersApiAccessRule) HasApiAccessRuleIds() bool { + if o != nil && o.ApiAccessRuleIds != nil { + return true + } + + return false +} + +// SetApiAccessRuleIds gets a reference to the given []string and assigns it to the ApiAccessRuleIds field. +func (o *FiltersApiAccessRule) SetApiAccessRuleIds(v []string) { + o.ApiAccessRuleIds = &v +} + +// GetCaIds returns the CaIds field value if set, zero value otherwise. +func (o *FiltersApiAccessRule) GetCaIds() []string { + if o == nil || o.CaIds == nil { + var ret []string + return ret + } + return *o.CaIds +} + +// GetCaIdsOk returns a tuple with the CaIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersApiAccessRule) GetCaIdsOk() (*[]string, bool) { + if o == nil || o.CaIds == nil { + return nil, false + } + return o.CaIds, true +} + +// HasCaIds returns a boolean if a field has been set. +func (o *FiltersApiAccessRule) HasCaIds() bool { + if o != nil && o.CaIds != nil { + return true + } + + return false +} + +// SetCaIds gets a reference to the given []string and assigns it to the CaIds field. +func (o *FiltersApiAccessRule) SetCaIds(v []string) { + o.CaIds = &v +} + +// GetCns returns the Cns field value if set, zero value otherwise. +func (o *FiltersApiAccessRule) GetCns() []string { + if o == nil || o.Cns == nil { + var ret []string + return ret + } + return *o.Cns +} + +// GetCnsOk returns a tuple with the Cns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersApiAccessRule) GetCnsOk() (*[]string, bool) { + if o == nil || o.Cns == nil { + return nil, false + } + return o.Cns, true +} + +// HasCns returns a boolean if a field has been set. +func (o *FiltersApiAccessRule) HasCns() bool { + if o != nil && o.Cns != nil { + return true + } + + return false +} + +// SetCns gets a reference to the given []string and assigns it to the Cns field. +func (o *FiltersApiAccessRule) SetCns(v []string) { + o.Cns = &v +} + +// GetDescriptions returns the Descriptions field value if set, zero value otherwise. +func (o *FiltersApiAccessRule) GetDescriptions() []string { + if o == nil || o.Descriptions == nil { + var ret []string + return ret + } + return *o.Descriptions +} + +// GetDescriptionsOk returns a tuple with the Descriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersApiAccessRule) GetDescriptionsOk() (*[]string, bool) { + if o == nil || o.Descriptions == nil { + return nil, false + } + return o.Descriptions, true +} + +// HasDescriptions returns a boolean if a field has been set. +func (o *FiltersApiAccessRule) HasDescriptions() bool { + if o != nil && o.Descriptions != nil { + return true + } + + return false +} + +// SetDescriptions gets a reference to the given []string and assigns it to the Descriptions field. +func (o *FiltersApiAccessRule) SetDescriptions(v []string) { + o.Descriptions = &v +} + +// GetIpRanges returns the IpRanges field value if set, zero value otherwise. +func (o *FiltersApiAccessRule) GetIpRanges() []string { + if o == nil || o.IpRanges == nil { + var ret []string + return ret + } + return *o.IpRanges +} + +// GetIpRangesOk returns a tuple with the IpRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersApiAccessRule) GetIpRangesOk() (*[]string, bool) { + if o == nil || o.IpRanges == nil { + return nil, false + } + return o.IpRanges, true +} + +// HasIpRanges returns a boolean if a field has been set. +func (o *FiltersApiAccessRule) HasIpRanges() bool { + if o != nil && o.IpRanges != nil { + return true + } + + return false +} + +// SetIpRanges gets a reference to the given []string and assigns it to the IpRanges field. +func (o *FiltersApiAccessRule) SetIpRanges(v []string) { + o.IpRanges = &v +} + +func (o FiltersApiAccessRule) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiAccessRuleIds != nil { + toSerialize["ApiAccessRuleIds"] = o.ApiAccessRuleIds + } + if o.CaIds != nil { + toSerialize["CaIds"] = o.CaIds + } + if o.Cns != nil { + toSerialize["Cns"] = o.Cns + } + if o.Descriptions != nil { + toSerialize["Descriptions"] = o.Descriptions + } + if o.IpRanges != nil { + toSerialize["IpRanges"] = o.IpRanges + } + return json.Marshal(toSerialize) +} + +type NullableFiltersApiAccessRule struct { + value *FiltersApiAccessRule + isSet bool +} + +func (v NullableFiltersApiAccessRule) Get() *FiltersApiAccessRule { + return v.value +} + +func (v *NullableFiltersApiAccessRule) Set(val *FiltersApiAccessRule) { + v.value = val + v.isSet = true +} + +func (v NullableFiltersApiAccessRule) IsSet() bool { + return v.isSet +} + +func (v *NullableFiltersApiAccessRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFiltersApiAccessRule(val *FiltersApiAccessRule) *NullableFiltersApiAccessRule { + return &NullableFiltersApiAccessRule{value: val, isSet: true} +} + +func (v NullableFiltersApiAccessRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFiltersApiAccessRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_api_log.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_api_log.go index 182b10bac..b6f00c006 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_api_log.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_api_log.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -409,5 +409,3 @@ func (v *NullableFiltersApiLog) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_ca.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_ca.go new file mode 100644 index 000000000..a244512fe --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_ca.go @@ -0,0 +1,189 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// FiltersCa One or more filters. +type FiltersCa struct { + // The fingerprints of the CAs. + CaFingerprints *[]string `json:"CaFingerprints,omitempty"` + // The IDs of the CAs. + CaIds *[]string `json:"CaIds,omitempty"` + // The descriptions of the CAs. + Descriptions *[]string `json:"Descriptions,omitempty"` +} + +// NewFiltersCa instantiates a new FiltersCa object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFiltersCa() *FiltersCa { + this := FiltersCa{} + return &this +} + +// NewFiltersCaWithDefaults instantiates a new FiltersCa object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFiltersCaWithDefaults() *FiltersCa { + this := FiltersCa{} + return &this +} + +// GetCaFingerprints returns the CaFingerprints field value if set, zero value otherwise. +func (o *FiltersCa) GetCaFingerprints() []string { + if o == nil || o.CaFingerprints == nil { + var ret []string + return ret + } + return *o.CaFingerprints +} + +// GetCaFingerprintsOk returns a tuple with the CaFingerprints field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersCa) GetCaFingerprintsOk() (*[]string, bool) { + if o == nil || o.CaFingerprints == nil { + return nil, false + } + return o.CaFingerprints, true +} + +// HasCaFingerprints returns a boolean if a field has been set. +func (o *FiltersCa) HasCaFingerprints() bool { + if o != nil && o.CaFingerprints != nil { + return true + } + + return false +} + +// SetCaFingerprints gets a reference to the given []string and assigns it to the CaFingerprints field. +func (o *FiltersCa) SetCaFingerprints(v []string) { + o.CaFingerprints = &v +} + +// GetCaIds returns the CaIds field value if set, zero value otherwise. +func (o *FiltersCa) GetCaIds() []string { + if o == nil || o.CaIds == nil { + var ret []string + return ret + } + return *o.CaIds +} + +// GetCaIdsOk returns a tuple with the CaIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersCa) GetCaIdsOk() (*[]string, bool) { + if o == nil || o.CaIds == nil { + return nil, false + } + return o.CaIds, true +} + +// HasCaIds returns a boolean if a field has been set. +func (o *FiltersCa) HasCaIds() bool { + if o != nil && o.CaIds != nil { + return true + } + + return false +} + +// SetCaIds gets a reference to the given []string and assigns it to the CaIds field. +func (o *FiltersCa) SetCaIds(v []string) { + o.CaIds = &v +} + +// GetDescriptions returns the Descriptions field value if set, zero value otherwise. +func (o *FiltersCa) GetDescriptions() []string { + if o == nil || o.Descriptions == nil { + var ret []string + return ret + } + return *o.Descriptions +} + +// GetDescriptionsOk returns a tuple with the Descriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersCa) GetDescriptionsOk() (*[]string, bool) { + if o == nil || o.Descriptions == nil { + return nil, false + } + return o.Descriptions, true +} + +// HasDescriptions returns a boolean if a field has been set. +func (o *FiltersCa) HasDescriptions() bool { + if o != nil && o.Descriptions != nil { + return true + } + + return false +} + +// SetDescriptions gets a reference to the given []string and assigns it to the Descriptions field. +func (o *FiltersCa) SetDescriptions(v []string) { + o.Descriptions = &v +} + +func (o FiltersCa) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CaFingerprints != nil { + toSerialize["CaFingerprints"] = o.CaFingerprints + } + if o.CaIds != nil { + toSerialize["CaIds"] = o.CaIds + } + if o.Descriptions != nil { + toSerialize["Descriptions"] = o.Descriptions + } + return json.Marshal(toSerialize) +} + +type NullableFiltersCa struct { + value *FiltersCa + isSet bool +} + +func (v NullableFiltersCa) Get() *FiltersCa { + return v.value +} + +func (v *NullableFiltersCa) Set(val *FiltersCa) { + v.value = val + v.isSet = true +} + +func (v NullableFiltersCa) IsSet() bool { + return v.isSet +} + +func (v *NullableFiltersCa) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFiltersCa(val *FiltersCa) *NullableFiltersCa { + return &NullableFiltersCa{value: val, isSet: true} +} + +func (v NullableFiltersCa) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFiltersCa) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_client_gateway.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_client_gateway.go index 2dbd1bb33..cb9b1695f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_client_gateway.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_client_gateway.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -372,5 +372,3 @@ func (v *NullableFiltersClientGateway) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_dhcp_options.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_dhcp_options.go index 9465740d9..177cd0da0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_dhcp_options.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_dhcp_options.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // FiltersDhcpOptions One or more filters. type FiltersDhcpOptions struct { - // If `true`, lists all default DHCP options set. If `false`, lists all non-default DHCP options set. + // If true, lists all default DHCP options set. If false, lists all non-default DHCP options set. Default *bool `json:"Default,omitempty"` // The IDs of the DHCP options sets. DhcpOptionsSetIds *[]string `json:"DhcpOptionsSetIds,omitempty"` @@ -372,5 +372,3 @@ func (v *NullableFiltersDhcpOptions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link.go index 7cec0b1b7..b5b50d3e9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableFiltersDirectLink) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link_interface.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link_interface.go index b1dfe1bdd..45e03358d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link_interface.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_direct_link_interface.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableFiltersDirectLinkInterface) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_export_task.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_export_task.go index 41968323f..b97bbe24a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_export_task.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_export_task.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableFiltersExportTask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_flexible_gpu.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_flexible_gpu.go index a8789a0f1..de456d90c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_flexible_gpu.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_flexible_gpu.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -335,5 +335,3 @@ func (v *NullableFiltersFlexibleGpu) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_image.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_image.go index 220b83596..176f3639f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_image.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_image.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -43,7 +43,7 @@ type FiltersImage struct { ImageNames *[]string `json:"ImageNames,omitempty"` // The account IDs of the users who have launch permissions for the OMIs. PermissionsToLaunchAccountIds *[]string `json:"PermissionsToLaunchAccountIds,omitempty"` - // If `true`, lists all public OMIs. If `false`, lists all private OMIs. + // If true, lists all public OMIs. If false, lists all private OMIs. PermissionsToLaunchGlobalPermission *bool `json:"PermissionsToLaunchGlobalPermission,omitempty"` // The device names of the root devices (for example, `/dev/sda1`). RootDeviceNames *[]string `json:"RootDeviceNames,omitempty"` @@ -853,5 +853,3 @@ func (v *NullableFiltersImage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_internet_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_internet_service.go index 735b09344..65733c7f5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_internet_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_internet_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableFiltersInternetService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_keypair.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_keypair.go index d4e2f0cc3..0a3a4a557 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_keypair.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_keypair.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableFiltersKeypair) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_listener_rule.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_listener_rule.go index f5b00d814..b3e1ae5f0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_listener_rule.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_listener_rule.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableFiltersListenerRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_load_balancer.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_load_balancer.go index d514924f6..11e20e8fe 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_load_balancer.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_load_balancer.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableFiltersLoadBalancer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nat_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nat_service.go index 5ba25b28b..ff0e7a1c8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nat_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nat_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -335,5 +335,3 @@ func (v *NullableFiltersNatService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net.go index 6628710eb..bc2bbec4f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type FiltersNet struct { DhcpOptionsSetIds *[]string `json:"DhcpOptionsSetIds,omitempty"` // The IP ranges for the Nets, in CIDR notation (for example, 10.0.0.0/16). IpRanges *[]string `json:"IpRanges,omitempty"` - // If `true`, the Net used is the default one. + // If true, the Net used is the default one. IsDefault *bool `json:"IsDefault,omitempty"` // The IDs of the Nets. NetIds *[]string `json:"NetIds,omitempty"` @@ -372,5 +372,3 @@ func (v *NullableFiltersNet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_access_point.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_access_point.go index f29457af7..5538b5560 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_access_point.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_access_point.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type FiltersNetAccessPoint struct { NetAccessPointIds *[]string `json:"NetAccessPointIds,omitempty"` // The IDs of the Nets. NetIds *[]string `json:"NetIds,omitempty"` - // The names of the prefix lists corresponding to the services. For more information, see [DescribePrefixLists](#describeprefixlists) + // The names of the services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). ServiceNames *[]string `json:"ServiceNames,omitempty"` // The states of the Net access points (`pending` \\| `available` \\| `deleting` \\| `deleted`). States *[]string `json:"States,omitempty"` @@ -335,5 +335,3 @@ func (v *NullableFiltersNetAccessPoint) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_peering.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_peering.go index 8ec795dd1..3881158ea 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_peering.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_net_peering.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -520,5 +520,3 @@ func (v *NullableFiltersNetPeering) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nic.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nic.go index 1a4e9966b..65e19d376 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nic.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_nic.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,16 +17,62 @@ import ( // FiltersNic One or more filters. type FiltersNic struct { + // The descriptions of the NICs. + Descriptions *[]string `json:"Descriptions,omitempty"` + // Whether the source/destination checking is enabled (true) or disabled (false). + IsSourceDestCheck *bool `json:"IsSourceDestCheck,omitempty"` + // Whether the NICs are deleted when the VMs they are attached to are terminated. + LinkNicDeleteOnVmDeletion *bool `json:"LinkNicDeleteOnVmDeletion,omitempty"` // The device numbers the NICs are attached to. - LinkNicSortNumbers *[]int32 `json:"LinkNicSortNumbers,omitempty"` + LinkNicDeviceNumbers *[]int32 `json:"LinkNicDeviceNumbers,omitempty"` + // The attachment IDs of the NICs. + LinkNicLinkNicIds *[]string `json:"LinkNicLinkNicIds,omitempty"` + // The states of the attachments. + LinkNicStates *[]string `json:"LinkNicStates,omitempty"` + // The account IDs of the owners of the VMs the NICs are attached to. + LinkNicVmAccountIds *[]string `json:"LinkNicVmAccountIds,omitempty"` // The IDs of the VMs the NICs are attached to. LinkNicVmIds *[]string `json:"LinkNicVmIds,omitempty"` + // The account IDs of the owners of the EIPs associated with the NICs. + LinkPublicIpAccountIds *[]string `json:"LinkPublicIpAccountIds,omitempty"` + // The association IDs returned when the EIPs were associated with the FNIs. + LinkPublicIpLinkPublicIpIds *[]string `json:"LinkPublicIpLinkPublicIpIds,omitempty"` + // The allocation IDs returned when the EIPs were allocated to their accounts. + LinkPublicIpPublicIpIds *[]string `json:"LinkPublicIpPublicIpIds,omitempty"` + // The EIPs associated with the NICs. + LinkPublicIpPublicIps *[]string `json:"LinkPublicIpPublicIps,omitempty"` + // The Media Access Control (MAC) addresses of the NICs. + MacAddresses *[]string `json:"MacAddresses,omitempty"` + // The IDs of the Nets where the NICs are located. + NetIds *[]string `json:"NetIds,omitempty"` // The IDs of the NICs. NicIds *[]string `json:"NicIds,omitempty"` + // The private DNS names associated with the primary private IP addresses. + PrivateDnsNames *[]string `json:"PrivateDnsNames,omitempty"` + // The account IDs of the owner of the EIPs associated with the private IP addresses. + PrivateIpsLinkPublicIpAccountIds *[]string `json:"PrivateIpsLinkPublicIpAccountIds,omitempty"` + // The EIPs associated with the private IP addresses. + PrivateIpsLinkPublicIpPublicIps *[]string `json:"PrivateIpsLinkPublicIpPublicIps,omitempty"` + // The primary private IP addresses of the NICs. + PrivateIpsPrimaryIp *bool `json:"PrivateIpsPrimaryIp,omitempty"` // The private IP addresses of the NICs. PrivateIpsPrivateIps *[]string `json:"PrivateIpsPrivateIps,omitempty"` + // The IDs of the security groups associated with the NICs. + SecurityGroupIds *[]string `json:"SecurityGroupIds,omitempty"` + // The names of the security groups associated with the NICs. + SecurityGroupNames *[]string `json:"SecurityGroupNames,omitempty"` + // The states of the NICs. + States *[]string `json:"States,omitempty"` // The IDs of the Subnets for the NICs. SubnetIds *[]string `json:"SubnetIds,omitempty"` + // The Subregions where the NICs are located. + SubregionNames *[]string `json:"SubregionNames,omitempty"` + // The keys of the tags associated with the NICs. + TagKeys *[]string `json:"TagKeys,omitempty"` + // The values of the tags associated with the NICs. + TagValues *[]string `json:"TagValues,omitempty"` + // The key/value combination of the tags associated with the NICs, in the following format: \"Filters\":{\"Tags\":[\"TAGKEY=TAGVALUE\"]}. + Tags *[]string `json:"Tags,omitempty"` } // NewFiltersNic instantiates a new FiltersNic object @@ -46,36 +92,228 @@ func NewFiltersNicWithDefaults() *FiltersNic { return &this } -// GetLinkNicSortNumbers returns the LinkNicSortNumbers field value if set, zero value otherwise. -func (o *FiltersNic) GetLinkNicSortNumbers() []int32 { - if o == nil || o.LinkNicSortNumbers == nil { +// GetDescriptions returns the Descriptions field value if set, zero value otherwise. +func (o *FiltersNic) GetDescriptions() []string { + if o == nil || o.Descriptions == nil { + var ret []string + return ret + } + return *o.Descriptions +} + +// GetDescriptionsOk returns a tuple with the Descriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetDescriptionsOk() (*[]string, bool) { + if o == nil || o.Descriptions == nil { + return nil, false + } + return o.Descriptions, true +} + +// HasDescriptions returns a boolean if a field has been set. +func (o *FiltersNic) HasDescriptions() bool { + if o != nil && o.Descriptions != nil { + return true + } + + return false +} + +// SetDescriptions gets a reference to the given []string and assigns it to the Descriptions field. +func (o *FiltersNic) SetDescriptions(v []string) { + o.Descriptions = &v +} + +// GetIsSourceDestCheck returns the IsSourceDestCheck field value if set, zero value otherwise. +func (o *FiltersNic) GetIsSourceDestCheck() bool { + if o == nil || o.IsSourceDestCheck == nil { + var ret bool + return ret + } + return *o.IsSourceDestCheck +} + +// GetIsSourceDestCheckOk returns a tuple with the IsSourceDestCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetIsSourceDestCheckOk() (*bool, bool) { + if o == nil || o.IsSourceDestCheck == nil { + return nil, false + } + return o.IsSourceDestCheck, true +} + +// HasIsSourceDestCheck returns a boolean if a field has been set. +func (o *FiltersNic) HasIsSourceDestCheck() bool { + if o != nil && o.IsSourceDestCheck != nil { + return true + } + + return false +} + +// SetIsSourceDestCheck gets a reference to the given bool and assigns it to the IsSourceDestCheck field. +func (o *FiltersNic) SetIsSourceDestCheck(v bool) { + o.IsSourceDestCheck = &v +} + +// GetLinkNicDeleteOnVmDeletion returns the LinkNicDeleteOnVmDeletion field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkNicDeleteOnVmDeletion() bool { + if o == nil || o.LinkNicDeleteOnVmDeletion == nil { + var ret bool + return ret + } + return *o.LinkNicDeleteOnVmDeletion +} + +// GetLinkNicDeleteOnVmDeletionOk returns a tuple with the LinkNicDeleteOnVmDeletion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkNicDeleteOnVmDeletionOk() (*bool, bool) { + if o == nil || o.LinkNicDeleteOnVmDeletion == nil { + return nil, false + } + return o.LinkNicDeleteOnVmDeletion, true +} + +// HasLinkNicDeleteOnVmDeletion returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkNicDeleteOnVmDeletion() bool { + if o != nil && o.LinkNicDeleteOnVmDeletion != nil { + return true + } + + return false +} + +// SetLinkNicDeleteOnVmDeletion gets a reference to the given bool and assigns it to the LinkNicDeleteOnVmDeletion field. +func (o *FiltersNic) SetLinkNicDeleteOnVmDeletion(v bool) { + o.LinkNicDeleteOnVmDeletion = &v +} + +// GetLinkNicDeviceNumbers returns the LinkNicDeviceNumbers field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkNicDeviceNumbers() []int32 { + if o == nil || o.LinkNicDeviceNumbers == nil { var ret []int32 return ret } - return *o.LinkNicSortNumbers + return *o.LinkNicDeviceNumbers } -// GetLinkNicSortNumbersOk returns a tuple with the LinkNicSortNumbers field value if set, nil otherwise +// GetLinkNicDeviceNumbersOk returns a tuple with the LinkNicDeviceNumbers field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FiltersNic) GetLinkNicSortNumbersOk() (*[]int32, bool) { - if o == nil || o.LinkNicSortNumbers == nil { +func (o *FiltersNic) GetLinkNicDeviceNumbersOk() (*[]int32, bool) { + if o == nil || o.LinkNicDeviceNumbers == nil { return nil, false } - return o.LinkNicSortNumbers, true + return o.LinkNicDeviceNumbers, true } -// HasLinkNicSortNumbers returns a boolean if a field has been set. -func (o *FiltersNic) HasLinkNicSortNumbers() bool { - if o != nil && o.LinkNicSortNumbers != nil { +// HasLinkNicDeviceNumbers returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkNicDeviceNumbers() bool { + if o != nil && o.LinkNicDeviceNumbers != nil { return true } return false } -// SetLinkNicSortNumbers gets a reference to the given []int32 and assigns it to the LinkNicSortNumbers field. -func (o *FiltersNic) SetLinkNicSortNumbers(v []int32) { - o.LinkNicSortNumbers = &v +// SetLinkNicDeviceNumbers gets a reference to the given []int32 and assigns it to the LinkNicDeviceNumbers field. +func (o *FiltersNic) SetLinkNicDeviceNumbers(v []int32) { + o.LinkNicDeviceNumbers = &v +} + +// GetLinkNicLinkNicIds returns the LinkNicLinkNicIds field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkNicLinkNicIds() []string { + if o == nil || o.LinkNicLinkNicIds == nil { + var ret []string + return ret + } + return *o.LinkNicLinkNicIds +} + +// GetLinkNicLinkNicIdsOk returns a tuple with the LinkNicLinkNicIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkNicLinkNicIdsOk() (*[]string, bool) { + if o == nil || o.LinkNicLinkNicIds == nil { + return nil, false + } + return o.LinkNicLinkNicIds, true +} + +// HasLinkNicLinkNicIds returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkNicLinkNicIds() bool { + if o != nil && o.LinkNicLinkNicIds != nil { + return true + } + + return false +} + +// SetLinkNicLinkNicIds gets a reference to the given []string and assigns it to the LinkNicLinkNicIds field. +func (o *FiltersNic) SetLinkNicLinkNicIds(v []string) { + o.LinkNicLinkNicIds = &v +} + +// GetLinkNicStates returns the LinkNicStates field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkNicStates() []string { + if o == nil || o.LinkNicStates == nil { + var ret []string + return ret + } + return *o.LinkNicStates +} + +// GetLinkNicStatesOk returns a tuple with the LinkNicStates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkNicStatesOk() (*[]string, bool) { + if o == nil || o.LinkNicStates == nil { + return nil, false + } + return o.LinkNicStates, true +} + +// HasLinkNicStates returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkNicStates() bool { + if o != nil && o.LinkNicStates != nil { + return true + } + + return false +} + +// SetLinkNicStates gets a reference to the given []string and assigns it to the LinkNicStates field. +func (o *FiltersNic) SetLinkNicStates(v []string) { + o.LinkNicStates = &v +} + +// GetLinkNicVmAccountIds returns the LinkNicVmAccountIds field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkNicVmAccountIds() []string { + if o == nil || o.LinkNicVmAccountIds == nil { + var ret []string + return ret + } + return *o.LinkNicVmAccountIds +} + +// GetLinkNicVmAccountIdsOk returns a tuple with the LinkNicVmAccountIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkNicVmAccountIdsOk() (*[]string, bool) { + if o == nil || o.LinkNicVmAccountIds == nil { + return nil, false + } + return o.LinkNicVmAccountIds, true +} + +// HasLinkNicVmAccountIds returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkNicVmAccountIds() bool { + if o != nil && o.LinkNicVmAccountIds != nil { + return true + } + + return false +} + +// SetLinkNicVmAccountIds gets a reference to the given []string and assigns it to the LinkNicVmAccountIds field. +func (o *FiltersNic) SetLinkNicVmAccountIds(v []string) { + o.LinkNicVmAccountIds = &v } // GetLinkNicVmIds returns the LinkNicVmIds field value if set, zero value otherwise. @@ -110,6 +348,198 @@ func (o *FiltersNic) SetLinkNicVmIds(v []string) { o.LinkNicVmIds = &v } +// GetLinkPublicIpAccountIds returns the LinkPublicIpAccountIds field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkPublicIpAccountIds() []string { + if o == nil || o.LinkPublicIpAccountIds == nil { + var ret []string + return ret + } + return *o.LinkPublicIpAccountIds +} + +// GetLinkPublicIpAccountIdsOk returns a tuple with the LinkPublicIpAccountIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkPublicIpAccountIdsOk() (*[]string, bool) { + if o == nil || o.LinkPublicIpAccountIds == nil { + return nil, false + } + return o.LinkPublicIpAccountIds, true +} + +// HasLinkPublicIpAccountIds returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkPublicIpAccountIds() bool { + if o != nil && o.LinkPublicIpAccountIds != nil { + return true + } + + return false +} + +// SetLinkPublicIpAccountIds gets a reference to the given []string and assigns it to the LinkPublicIpAccountIds field. +func (o *FiltersNic) SetLinkPublicIpAccountIds(v []string) { + o.LinkPublicIpAccountIds = &v +} + +// GetLinkPublicIpLinkPublicIpIds returns the LinkPublicIpLinkPublicIpIds field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkPublicIpLinkPublicIpIds() []string { + if o == nil || o.LinkPublicIpLinkPublicIpIds == nil { + var ret []string + return ret + } + return *o.LinkPublicIpLinkPublicIpIds +} + +// GetLinkPublicIpLinkPublicIpIdsOk returns a tuple with the LinkPublicIpLinkPublicIpIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkPublicIpLinkPublicIpIdsOk() (*[]string, bool) { + if o == nil || o.LinkPublicIpLinkPublicIpIds == nil { + return nil, false + } + return o.LinkPublicIpLinkPublicIpIds, true +} + +// HasLinkPublicIpLinkPublicIpIds returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkPublicIpLinkPublicIpIds() bool { + if o != nil && o.LinkPublicIpLinkPublicIpIds != nil { + return true + } + + return false +} + +// SetLinkPublicIpLinkPublicIpIds gets a reference to the given []string and assigns it to the LinkPublicIpLinkPublicIpIds field. +func (o *FiltersNic) SetLinkPublicIpLinkPublicIpIds(v []string) { + o.LinkPublicIpLinkPublicIpIds = &v +} + +// GetLinkPublicIpPublicIpIds returns the LinkPublicIpPublicIpIds field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkPublicIpPublicIpIds() []string { + if o == nil || o.LinkPublicIpPublicIpIds == nil { + var ret []string + return ret + } + return *o.LinkPublicIpPublicIpIds +} + +// GetLinkPublicIpPublicIpIdsOk returns a tuple with the LinkPublicIpPublicIpIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkPublicIpPublicIpIdsOk() (*[]string, bool) { + if o == nil || o.LinkPublicIpPublicIpIds == nil { + return nil, false + } + return o.LinkPublicIpPublicIpIds, true +} + +// HasLinkPublicIpPublicIpIds returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkPublicIpPublicIpIds() bool { + if o != nil && o.LinkPublicIpPublicIpIds != nil { + return true + } + + return false +} + +// SetLinkPublicIpPublicIpIds gets a reference to the given []string and assigns it to the LinkPublicIpPublicIpIds field. +func (o *FiltersNic) SetLinkPublicIpPublicIpIds(v []string) { + o.LinkPublicIpPublicIpIds = &v +} + +// GetLinkPublicIpPublicIps returns the LinkPublicIpPublicIps field value if set, zero value otherwise. +func (o *FiltersNic) GetLinkPublicIpPublicIps() []string { + if o == nil || o.LinkPublicIpPublicIps == nil { + var ret []string + return ret + } + return *o.LinkPublicIpPublicIps +} + +// GetLinkPublicIpPublicIpsOk returns a tuple with the LinkPublicIpPublicIps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetLinkPublicIpPublicIpsOk() (*[]string, bool) { + if o == nil || o.LinkPublicIpPublicIps == nil { + return nil, false + } + return o.LinkPublicIpPublicIps, true +} + +// HasLinkPublicIpPublicIps returns a boolean if a field has been set. +func (o *FiltersNic) HasLinkPublicIpPublicIps() bool { + if o != nil && o.LinkPublicIpPublicIps != nil { + return true + } + + return false +} + +// SetLinkPublicIpPublicIps gets a reference to the given []string and assigns it to the LinkPublicIpPublicIps field. +func (o *FiltersNic) SetLinkPublicIpPublicIps(v []string) { + o.LinkPublicIpPublicIps = &v +} + +// GetMacAddresses returns the MacAddresses field value if set, zero value otherwise. +func (o *FiltersNic) GetMacAddresses() []string { + if o == nil || o.MacAddresses == nil { + var ret []string + return ret + } + return *o.MacAddresses +} + +// GetMacAddressesOk returns a tuple with the MacAddresses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetMacAddressesOk() (*[]string, bool) { + if o == nil || o.MacAddresses == nil { + return nil, false + } + return o.MacAddresses, true +} + +// HasMacAddresses returns a boolean if a field has been set. +func (o *FiltersNic) HasMacAddresses() bool { + if o != nil && o.MacAddresses != nil { + return true + } + + return false +} + +// SetMacAddresses gets a reference to the given []string and assigns it to the MacAddresses field. +func (o *FiltersNic) SetMacAddresses(v []string) { + o.MacAddresses = &v +} + +// GetNetIds returns the NetIds field value if set, zero value otherwise. +func (o *FiltersNic) GetNetIds() []string { + if o == nil || o.NetIds == nil { + var ret []string + return ret + } + return *o.NetIds +} + +// GetNetIdsOk returns a tuple with the NetIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetNetIdsOk() (*[]string, bool) { + if o == nil || o.NetIds == nil { + return nil, false + } + return o.NetIds, true +} + +// HasNetIds returns a boolean if a field has been set. +func (o *FiltersNic) HasNetIds() bool { + if o != nil && o.NetIds != nil { + return true + } + + return false +} + +// SetNetIds gets a reference to the given []string and assigns it to the NetIds field. +func (o *FiltersNic) SetNetIds(v []string) { + o.NetIds = &v +} + // GetNicIds returns the NicIds field value if set, zero value otherwise. func (o *FiltersNic) GetNicIds() []string { if o == nil || o.NicIds == nil { @@ -142,6 +572,134 @@ func (o *FiltersNic) SetNicIds(v []string) { o.NicIds = &v } +// GetPrivateDnsNames returns the PrivateDnsNames field value if set, zero value otherwise. +func (o *FiltersNic) GetPrivateDnsNames() []string { + if o == nil || o.PrivateDnsNames == nil { + var ret []string + return ret + } + return *o.PrivateDnsNames +} + +// GetPrivateDnsNamesOk returns a tuple with the PrivateDnsNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetPrivateDnsNamesOk() (*[]string, bool) { + if o == nil || o.PrivateDnsNames == nil { + return nil, false + } + return o.PrivateDnsNames, true +} + +// HasPrivateDnsNames returns a boolean if a field has been set. +func (o *FiltersNic) HasPrivateDnsNames() bool { + if o != nil && o.PrivateDnsNames != nil { + return true + } + + return false +} + +// SetPrivateDnsNames gets a reference to the given []string and assigns it to the PrivateDnsNames field. +func (o *FiltersNic) SetPrivateDnsNames(v []string) { + o.PrivateDnsNames = &v +} + +// GetPrivateIpsLinkPublicIpAccountIds returns the PrivateIpsLinkPublicIpAccountIds field value if set, zero value otherwise. +func (o *FiltersNic) GetPrivateIpsLinkPublicIpAccountIds() []string { + if o == nil || o.PrivateIpsLinkPublicIpAccountIds == nil { + var ret []string + return ret + } + return *o.PrivateIpsLinkPublicIpAccountIds +} + +// GetPrivateIpsLinkPublicIpAccountIdsOk returns a tuple with the PrivateIpsLinkPublicIpAccountIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetPrivateIpsLinkPublicIpAccountIdsOk() (*[]string, bool) { + if o == nil || o.PrivateIpsLinkPublicIpAccountIds == nil { + return nil, false + } + return o.PrivateIpsLinkPublicIpAccountIds, true +} + +// HasPrivateIpsLinkPublicIpAccountIds returns a boolean if a field has been set. +func (o *FiltersNic) HasPrivateIpsLinkPublicIpAccountIds() bool { + if o != nil && o.PrivateIpsLinkPublicIpAccountIds != nil { + return true + } + + return false +} + +// SetPrivateIpsLinkPublicIpAccountIds gets a reference to the given []string and assigns it to the PrivateIpsLinkPublicIpAccountIds field. +func (o *FiltersNic) SetPrivateIpsLinkPublicIpAccountIds(v []string) { + o.PrivateIpsLinkPublicIpAccountIds = &v +} + +// GetPrivateIpsLinkPublicIpPublicIps returns the PrivateIpsLinkPublicIpPublicIps field value if set, zero value otherwise. +func (o *FiltersNic) GetPrivateIpsLinkPublicIpPublicIps() []string { + if o == nil || o.PrivateIpsLinkPublicIpPublicIps == nil { + var ret []string + return ret + } + return *o.PrivateIpsLinkPublicIpPublicIps +} + +// GetPrivateIpsLinkPublicIpPublicIpsOk returns a tuple with the PrivateIpsLinkPublicIpPublicIps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetPrivateIpsLinkPublicIpPublicIpsOk() (*[]string, bool) { + if o == nil || o.PrivateIpsLinkPublicIpPublicIps == nil { + return nil, false + } + return o.PrivateIpsLinkPublicIpPublicIps, true +} + +// HasPrivateIpsLinkPublicIpPublicIps returns a boolean if a field has been set. +func (o *FiltersNic) HasPrivateIpsLinkPublicIpPublicIps() bool { + if o != nil && o.PrivateIpsLinkPublicIpPublicIps != nil { + return true + } + + return false +} + +// SetPrivateIpsLinkPublicIpPublicIps gets a reference to the given []string and assigns it to the PrivateIpsLinkPublicIpPublicIps field. +func (o *FiltersNic) SetPrivateIpsLinkPublicIpPublicIps(v []string) { + o.PrivateIpsLinkPublicIpPublicIps = &v +} + +// GetPrivateIpsPrimaryIp returns the PrivateIpsPrimaryIp field value if set, zero value otherwise. +func (o *FiltersNic) GetPrivateIpsPrimaryIp() bool { + if o == nil || o.PrivateIpsPrimaryIp == nil { + var ret bool + return ret + } + return *o.PrivateIpsPrimaryIp +} + +// GetPrivateIpsPrimaryIpOk returns a tuple with the PrivateIpsPrimaryIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetPrivateIpsPrimaryIpOk() (*bool, bool) { + if o == nil || o.PrivateIpsPrimaryIp == nil { + return nil, false + } + return o.PrivateIpsPrimaryIp, true +} + +// HasPrivateIpsPrimaryIp returns a boolean if a field has been set. +func (o *FiltersNic) HasPrivateIpsPrimaryIp() bool { + if o != nil && o.PrivateIpsPrimaryIp != nil { + return true + } + + return false +} + +// SetPrivateIpsPrimaryIp gets a reference to the given bool and assigns it to the PrivateIpsPrimaryIp field. +func (o *FiltersNic) SetPrivateIpsPrimaryIp(v bool) { + o.PrivateIpsPrimaryIp = &v +} + // GetPrivateIpsPrivateIps returns the PrivateIpsPrivateIps field value if set, zero value otherwise. func (o *FiltersNic) GetPrivateIpsPrivateIps() []string { if o == nil || o.PrivateIpsPrivateIps == nil { @@ -174,6 +732,102 @@ func (o *FiltersNic) SetPrivateIpsPrivateIps(v []string) { o.PrivateIpsPrivateIps = &v } +// GetSecurityGroupIds returns the SecurityGroupIds field value if set, zero value otherwise. +func (o *FiltersNic) GetSecurityGroupIds() []string { + if o == nil || o.SecurityGroupIds == nil { + var ret []string + return ret + } + return *o.SecurityGroupIds +} + +// GetSecurityGroupIdsOk returns a tuple with the SecurityGroupIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetSecurityGroupIdsOk() (*[]string, bool) { + if o == nil || o.SecurityGroupIds == nil { + return nil, false + } + return o.SecurityGroupIds, true +} + +// HasSecurityGroupIds returns a boolean if a field has been set. +func (o *FiltersNic) HasSecurityGroupIds() bool { + if o != nil && o.SecurityGroupIds != nil { + return true + } + + return false +} + +// SetSecurityGroupIds gets a reference to the given []string and assigns it to the SecurityGroupIds field. +func (o *FiltersNic) SetSecurityGroupIds(v []string) { + o.SecurityGroupIds = &v +} + +// GetSecurityGroupNames returns the SecurityGroupNames field value if set, zero value otherwise. +func (o *FiltersNic) GetSecurityGroupNames() []string { + if o == nil || o.SecurityGroupNames == nil { + var ret []string + return ret + } + return *o.SecurityGroupNames +} + +// GetSecurityGroupNamesOk returns a tuple with the SecurityGroupNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetSecurityGroupNamesOk() (*[]string, bool) { + if o == nil || o.SecurityGroupNames == nil { + return nil, false + } + return o.SecurityGroupNames, true +} + +// HasSecurityGroupNames returns a boolean if a field has been set. +func (o *FiltersNic) HasSecurityGroupNames() bool { + if o != nil && o.SecurityGroupNames != nil { + return true + } + + return false +} + +// SetSecurityGroupNames gets a reference to the given []string and assigns it to the SecurityGroupNames field. +func (o *FiltersNic) SetSecurityGroupNames(v []string) { + o.SecurityGroupNames = &v +} + +// GetStates returns the States field value if set, zero value otherwise. +func (o *FiltersNic) GetStates() []string { + if o == nil || o.States == nil { + var ret []string + return ret + } + return *o.States +} + +// GetStatesOk returns a tuple with the States field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetStatesOk() (*[]string, bool) { + if o == nil || o.States == nil { + return nil, false + } + return o.States, true +} + +// HasStates returns a boolean if a field has been set. +func (o *FiltersNic) HasStates() bool { + if o != nil && o.States != nil { + return true + } + + return false +} + +// SetStates gets a reference to the given []string and assigns it to the States field. +func (o *FiltersNic) SetStates(v []string) { + o.States = &v +} + // GetSubnetIds returns the SubnetIds field value if set, zero value otherwise. func (o *FiltersNic) GetSubnetIds() []string { if o == nil || o.SubnetIds == nil { @@ -206,23 +860,220 @@ func (o *FiltersNic) SetSubnetIds(v []string) { o.SubnetIds = &v } +// GetSubregionNames returns the SubregionNames field value if set, zero value otherwise. +func (o *FiltersNic) GetSubregionNames() []string { + if o == nil || o.SubregionNames == nil { + var ret []string + return ret + } + return *o.SubregionNames +} + +// GetSubregionNamesOk returns a tuple with the SubregionNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetSubregionNamesOk() (*[]string, bool) { + if o == nil || o.SubregionNames == nil { + return nil, false + } + return o.SubregionNames, true +} + +// HasSubregionNames returns a boolean if a field has been set. +func (o *FiltersNic) HasSubregionNames() bool { + if o != nil && o.SubregionNames != nil { + return true + } + + return false +} + +// SetSubregionNames gets a reference to the given []string and assigns it to the SubregionNames field. +func (o *FiltersNic) SetSubregionNames(v []string) { + o.SubregionNames = &v +} + +// GetTagKeys returns the TagKeys field value if set, zero value otherwise. +func (o *FiltersNic) GetTagKeys() []string { + if o == nil || o.TagKeys == nil { + var ret []string + return ret + } + return *o.TagKeys +} + +// GetTagKeysOk returns a tuple with the TagKeys field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetTagKeysOk() (*[]string, bool) { + if o == nil || o.TagKeys == nil { + return nil, false + } + return o.TagKeys, true +} + +// HasTagKeys returns a boolean if a field has been set. +func (o *FiltersNic) HasTagKeys() bool { + if o != nil && o.TagKeys != nil { + return true + } + + return false +} + +// SetTagKeys gets a reference to the given []string and assigns it to the TagKeys field. +func (o *FiltersNic) SetTagKeys(v []string) { + o.TagKeys = &v +} + +// GetTagValues returns the TagValues field value if set, zero value otherwise. +func (o *FiltersNic) GetTagValues() []string { + if o == nil || o.TagValues == nil { + var ret []string + return ret + } + return *o.TagValues +} + +// GetTagValuesOk returns a tuple with the TagValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetTagValuesOk() (*[]string, bool) { + if o == nil || o.TagValues == nil { + return nil, false + } + return o.TagValues, true +} + +// HasTagValues returns a boolean if a field has been set. +func (o *FiltersNic) HasTagValues() bool { + if o != nil && o.TagValues != nil { + return true + } + + return false +} + +// SetTagValues gets a reference to the given []string and assigns it to the TagValues field. +func (o *FiltersNic) SetTagValues(v []string) { + o.TagValues = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FiltersNic) GetTags() []string { + if o == nil || o.Tags == nil { + var ret []string + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersNic) GetTagsOk() (*[]string, bool) { + if o == nil || o.Tags == nil { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FiltersNic) HasTags() bool { + if o != nil && o.Tags != nil { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *FiltersNic) SetTags(v []string) { + o.Tags = &v +} + func (o FiltersNic) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if o.LinkNicSortNumbers != nil { - toSerialize["LinkNicSortNumbers"] = o.LinkNicSortNumbers + if o.Descriptions != nil { + toSerialize["Descriptions"] = o.Descriptions + } + if o.IsSourceDestCheck != nil { + toSerialize["IsSourceDestCheck"] = o.IsSourceDestCheck + } + if o.LinkNicDeleteOnVmDeletion != nil { + toSerialize["LinkNicDeleteOnVmDeletion"] = o.LinkNicDeleteOnVmDeletion + } + if o.LinkNicDeviceNumbers != nil { + toSerialize["LinkNicDeviceNumbers"] = o.LinkNicDeviceNumbers + } + if o.LinkNicLinkNicIds != nil { + toSerialize["LinkNicLinkNicIds"] = o.LinkNicLinkNicIds + } + if o.LinkNicStates != nil { + toSerialize["LinkNicStates"] = o.LinkNicStates + } + if o.LinkNicVmAccountIds != nil { + toSerialize["LinkNicVmAccountIds"] = o.LinkNicVmAccountIds } if o.LinkNicVmIds != nil { toSerialize["LinkNicVmIds"] = o.LinkNicVmIds } + if o.LinkPublicIpAccountIds != nil { + toSerialize["LinkPublicIpAccountIds"] = o.LinkPublicIpAccountIds + } + if o.LinkPublicIpLinkPublicIpIds != nil { + toSerialize["LinkPublicIpLinkPublicIpIds"] = o.LinkPublicIpLinkPublicIpIds + } + if o.LinkPublicIpPublicIpIds != nil { + toSerialize["LinkPublicIpPublicIpIds"] = o.LinkPublicIpPublicIpIds + } + if o.LinkPublicIpPublicIps != nil { + toSerialize["LinkPublicIpPublicIps"] = o.LinkPublicIpPublicIps + } + if o.MacAddresses != nil { + toSerialize["MacAddresses"] = o.MacAddresses + } + if o.NetIds != nil { + toSerialize["NetIds"] = o.NetIds + } if o.NicIds != nil { toSerialize["NicIds"] = o.NicIds } + if o.PrivateDnsNames != nil { + toSerialize["PrivateDnsNames"] = o.PrivateDnsNames + } + if o.PrivateIpsLinkPublicIpAccountIds != nil { + toSerialize["PrivateIpsLinkPublicIpAccountIds"] = o.PrivateIpsLinkPublicIpAccountIds + } + if o.PrivateIpsLinkPublicIpPublicIps != nil { + toSerialize["PrivateIpsLinkPublicIpPublicIps"] = o.PrivateIpsLinkPublicIpPublicIps + } + if o.PrivateIpsPrimaryIp != nil { + toSerialize["PrivateIpsPrimaryIp"] = o.PrivateIpsPrimaryIp + } if o.PrivateIpsPrivateIps != nil { toSerialize["PrivateIpsPrivateIps"] = o.PrivateIpsPrivateIps } + if o.SecurityGroupIds != nil { + toSerialize["SecurityGroupIds"] = o.SecurityGroupIds + } + if o.SecurityGroupNames != nil { + toSerialize["SecurityGroupNames"] = o.SecurityGroupNames + } + if o.States != nil { + toSerialize["States"] = o.States + } if o.SubnetIds != nil { toSerialize["SubnetIds"] = o.SubnetIds } + if o.SubregionNames != nil { + toSerialize["SubregionNames"] = o.SubregionNames + } + if o.TagKeys != nil { + toSerialize["TagKeys"] = o.TagKeys + } + if o.TagValues != nil { + toSerialize["TagValues"] = o.TagValues + } + if o.Tags != nil { + toSerialize["Tags"] = o.Tags + } return json.Marshal(toSerialize) } @@ -261,5 +1112,3 @@ func (v *NullableFiltersNic) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_product_type.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_product_type.go index 7b864a317..c1f718e07 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_product_type.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_product_type.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableFiltersProductType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_public_ip.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_public_ip.go index bf36a2b57..62e9b5008 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_public_ip.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_public_ip.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -483,5 +483,3 @@ func (v *NullableFiltersPublicIp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_quota.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_quota.go index bb8137206..989c32746 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_quota.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_quota.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableFiltersQuota) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_route_table.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_route_table.go index 8bfebe042..628a9c7c3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_route_table.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_route_table.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type FiltersRouteTable struct { LinkRouteTableIds *[]string `json:"LinkRouteTableIds,omitempty"` // The IDs of the associations between the route tables and the Subnets. LinkRouteTableLinkRouteTableIds *[]string `json:"LinkRouteTableLinkRouteTableIds,omitempty"` - // If `true`, the route tables are the main ones for their Nets. + // If true, the route tables are the main ones for their Nets. LinkRouteTableMain *bool `json:"LinkRouteTableMain,omitempty"` // The IDs of the Subnets involved in the associations. LinkSubnetIds *[]string `json:"LinkSubnetIds,omitempty"` @@ -705,5 +705,3 @@ func (v *NullableFiltersRouteTable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_security_group.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_security_group.go index 97bfffa7a..d114da35b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_security_group.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_security_group.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,8 +19,38 @@ import ( type FiltersSecurityGroup struct { // The account IDs of the owners of the security groups. AccountIds *[]string `json:"AccountIds,omitempty"` + // The descriptions of the security groups. + Descriptions *[]string `json:"Descriptions,omitempty"` + // The account IDs that have been granted permissions. + InboundRuleAccountIds *[]string `json:"InboundRuleAccountIds,omitempty"` + // The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + InboundRuleFromPortRanges *[]int32 `json:"InboundRuleFromPortRanges,omitempty"` + // The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + InboundRuleIpRanges *[]string `json:"InboundRuleIpRanges,omitempty"` + // The IP protocols for the permissions (`tcp` \\| `udp` \\| `icmp`, or a protocol number, or `-1` for all protocols). + InboundRuleProtocols *[]string `json:"InboundRuleProtocols,omitempty"` + // The IDs of the security groups that have been granted permissions. + InboundRuleSecurityGroupIds *[]string `json:"InboundRuleSecurityGroupIds,omitempty"` + // The names of the security groups that have been granted permissions. + InboundRuleSecurityGroupNames *[]string `json:"InboundRuleSecurityGroupNames,omitempty"` + // The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + InboundRuleToPortRanges *[]int32 `json:"InboundRuleToPortRanges,omitempty"` // The IDs of the Nets specified when the security groups were created. NetIds *[]string `json:"NetIds,omitempty"` + // The account IDs that have been granted permissions. + OutboundRuleAccountIds *[]string `json:"OutboundRuleAccountIds,omitempty"` + // The beginnings of the port ranges for the TCP and UDP protocols, or the ICMP type numbers. + OutboundRuleFromPortRanges *[]int32 `json:"OutboundRuleFromPortRanges,omitempty"` + // The IP ranges that have been granted permissions, in CIDR notation (for example, 10.0.0.0/24). + OutboundRuleIpRanges *[]string `json:"OutboundRuleIpRanges,omitempty"` + // The IP protocols for the permissions (`tcp` \\| `udp` \\| `icmp`, or a protocol number, or `-1` for all protocols). + OutboundRuleProtocols *[]string `json:"OutboundRuleProtocols,omitempty"` + // The IDs of the security groups that have been granted permissions. + OutboundRuleSecurityGroupIds *[]string `json:"OutboundRuleSecurityGroupIds,omitempty"` + // The names of the security groups that have been granted permissions. + OutboundRuleSecurityGroupNames *[]string `json:"OutboundRuleSecurityGroupNames,omitempty"` + // The ends of the port ranges for the TCP and UDP protocols, or the ICMP codes. + OutboundRuleToPortRanges *[]int32 `json:"OutboundRuleToPortRanges,omitempty"` // The IDs of the security groups. SecurityGroupIds *[]string `json:"SecurityGroupIds,omitempty"` // The names of the security groups. @@ -82,6 +112,262 @@ func (o *FiltersSecurityGroup) SetAccountIds(v []string) { o.AccountIds = &v } +// GetDescriptions returns the Descriptions field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetDescriptions() []string { + if o == nil || o.Descriptions == nil { + var ret []string + return ret + } + return *o.Descriptions +} + +// GetDescriptionsOk returns a tuple with the Descriptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetDescriptionsOk() (*[]string, bool) { + if o == nil || o.Descriptions == nil { + return nil, false + } + return o.Descriptions, true +} + +// HasDescriptions returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasDescriptions() bool { + if o != nil && o.Descriptions != nil { + return true + } + + return false +} + +// SetDescriptions gets a reference to the given []string and assigns it to the Descriptions field. +func (o *FiltersSecurityGroup) SetDescriptions(v []string) { + o.Descriptions = &v +} + +// GetInboundRuleAccountIds returns the InboundRuleAccountIds field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetInboundRuleAccountIds() []string { + if o == nil || o.InboundRuleAccountIds == nil { + var ret []string + return ret + } + return *o.InboundRuleAccountIds +} + +// GetInboundRuleAccountIdsOk returns a tuple with the InboundRuleAccountIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetInboundRuleAccountIdsOk() (*[]string, bool) { + if o == nil || o.InboundRuleAccountIds == nil { + return nil, false + } + return o.InboundRuleAccountIds, true +} + +// HasInboundRuleAccountIds returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasInboundRuleAccountIds() bool { + if o != nil && o.InboundRuleAccountIds != nil { + return true + } + + return false +} + +// SetInboundRuleAccountIds gets a reference to the given []string and assigns it to the InboundRuleAccountIds field. +func (o *FiltersSecurityGroup) SetInboundRuleAccountIds(v []string) { + o.InboundRuleAccountIds = &v +} + +// GetInboundRuleFromPortRanges returns the InboundRuleFromPortRanges field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetInboundRuleFromPortRanges() []int32 { + if o == nil || o.InboundRuleFromPortRanges == nil { + var ret []int32 + return ret + } + return *o.InboundRuleFromPortRanges +} + +// GetInboundRuleFromPortRangesOk returns a tuple with the InboundRuleFromPortRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetInboundRuleFromPortRangesOk() (*[]int32, bool) { + if o == nil || o.InboundRuleFromPortRanges == nil { + return nil, false + } + return o.InboundRuleFromPortRanges, true +} + +// HasInboundRuleFromPortRanges returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasInboundRuleFromPortRanges() bool { + if o != nil && o.InboundRuleFromPortRanges != nil { + return true + } + + return false +} + +// SetInboundRuleFromPortRanges gets a reference to the given []int32 and assigns it to the InboundRuleFromPortRanges field. +func (o *FiltersSecurityGroup) SetInboundRuleFromPortRanges(v []int32) { + o.InboundRuleFromPortRanges = &v +} + +// GetInboundRuleIpRanges returns the InboundRuleIpRanges field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetInboundRuleIpRanges() []string { + if o == nil || o.InboundRuleIpRanges == nil { + var ret []string + return ret + } + return *o.InboundRuleIpRanges +} + +// GetInboundRuleIpRangesOk returns a tuple with the InboundRuleIpRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetInboundRuleIpRangesOk() (*[]string, bool) { + if o == nil || o.InboundRuleIpRanges == nil { + return nil, false + } + return o.InboundRuleIpRanges, true +} + +// HasInboundRuleIpRanges returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasInboundRuleIpRanges() bool { + if o != nil && o.InboundRuleIpRanges != nil { + return true + } + + return false +} + +// SetInboundRuleIpRanges gets a reference to the given []string and assigns it to the InboundRuleIpRanges field. +func (o *FiltersSecurityGroup) SetInboundRuleIpRanges(v []string) { + o.InboundRuleIpRanges = &v +} + +// GetInboundRuleProtocols returns the InboundRuleProtocols field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetInboundRuleProtocols() []string { + if o == nil || o.InboundRuleProtocols == nil { + var ret []string + return ret + } + return *o.InboundRuleProtocols +} + +// GetInboundRuleProtocolsOk returns a tuple with the InboundRuleProtocols field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetInboundRuleProtocolsOk() (*[]string, bool) { + if o == nil || o.InboundRuleProtocols == nil { + return nil, false + } + return o.InboundRuleProtocols, true +} + +// HasInboundRuleProtocols returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasInboundRuleProtocols() bool { + if o != nil && o.InboundRuleProtocols != nil { + return true + } + + return false +} + +// SetInboundRuleProtocols gets a reference to the given []string and assigns it to the InboundRuleProtocols field. +func (o *FiltersSecurityGroup) SetInboundRuleProtocols(v []string) { + o.InboundRuleProtocols = &v +} + +// GetInboundRuleSecurityGroupIds returns the InboundRuleSecurityGroupIds field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetInboundRuleSecurityGroupIds() []string { + if o == nil || o.InboundRuleSecurityGroupIds == nil { + var ret []string + return ret + } + return *o.InboundRuleSecurityGroupIds +} + +// GetInboundRuleSecurityGroupIdsOk returns a tuple with the InboundRuleSecurityGroupIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetInboundRuleSecurityGroupIdsOk() (*[]string, bool) { + if o == nil || o.InboundRuleSecurityGroupIds == nil { + return nil, false + } + return o.InboundRuleSecurityGroupIds, true +} + +// HasInboundRuleSecurityGroupIds returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasInboundRuleSecurityGroupIds() bool { + if o != nil && o.InboundRuleSecurityGroupIds != nil { + return true + } + + return false +} + +// SetInboundRuleSecurityGroupIds gets a reference to the given []string and assigns it to the InboundRuleSecurityGroupIds field. +func (o *FiltersSecurityGroup) SetInboundRuleSecurityGroupIds(v []string) { + o.InboundRuleSecurityGroupIds = &v +} + +// GetInboundRuleSecurityGroupNames returns the InboundRuleSecurityGroupNames field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetInboundRuleSecurityGroupNames() []string { + if o == nil || o.InboundRuleSecurityGroupNames == nil { + var ret []string + return ret + } + return *o.InboundRuleSecurityGroupNames +} + +// GetInboundRuleSecurityGroupNamesOk returns a tuple with the InboundRuleSecurityGroupNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetInboundRuleSecurityGroupNamesOk() (*[]string, bool) { + if o == nil || o.InboundRuleSecurityGroupNames == nil { + return nil, false + } + return o.InboundRuleSecurityGroupNames, true +} + +// HasInboundRuleSecurityGroupNames returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasInboundRuleSecurityGroupNames() bool { + if o != nil && o.InboundRuleSecurityGroupNames != nil { + return true + } + + return false +} + +// SetInboundRuleSecurityGroupNames gets a reference to the given []string and assigns it to the InboundRuleSecurityGroupNames field. +func (o *FiltersSecurityGroup) SetInboundRuleSecurityGroupNames(v []string) { + o.InboundRuleSecurityGroupNames = &v +} + +// GetInboundRuleToPortRanges returns the InboundRuleToPortRanges field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetInboundRuleToPortRanges() []int32 { + if o == nil || o.InboundRuleToPortRanges == nil { + var ret []int32 + return ret + } + return *o.InboundRuleToPortRanges +} + +// GetInboundRuleToPortRangesOk returns a tuple with the InboundRuleToPortRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetInboundRuleToPortRangesOk() (*[]int32, bool) { + if o == nil || o.InboundRuleToPortRanges == nil { + return nil, false + } + return o.InboundRuleToPortRanges, true +} + +// HasInboundRuleToPortRanges returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasInboundRuleToPortRanges() bool { + if o != nil && o.InboundRuleToPortRanges != nil { + return true + } + + return false +} + +// SetInboundRuleToPortRanges gets a reference to the given []int32 and assigns it to the InboundRuleToPortRanges field. +func (o *FiltersSecurityGroup) SetInboundRuleToPortRanges(v []int32) { + o.InboundRuleToPortRanges = &v +} + // GetNetIds returns the NetIds field value if set, zero value otherwise. func (o *FiltersSecurityGroup) GetNetIds() []string { if o == nil || o.NetIds == nil { @@ -114,6 +400,230 @@ func (o *FiltersSecurityGroup) SetNetIds(v []string) { o.NetIds = &v } +// GetOutboundRuleAccountIds returns the OutboundRuleAccountIds field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetOutboundRuleAccountIds() []string { + if o == nil || o.OutboundRuleAccountIds == nil { + var ret []string + return ret + } + return *o.OutboundRuleAccountIds +} + +// GetOutboundRuleAccountIdsOk returns a tuple with the OutboundRuleAccountIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetOutboundRuleAccountIdsOk() (*[]string, bool) { + if o == nil || o.OutboundRuleAccountIds == nil { + return nil, false + } + return o.OutboundRuleAccountIds, true +} + +// HasOutboundRuleAccountIds returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasOutboundRuleAccountIds() bool { + if o != nil && o.OutboundRuleAccountIds != nil { + return true + } + + return false +} + +// SetOutboundRuleAccountIds gets a reference to the given []string and assigns it to the OutboundRuleAccountIds field. +func (o *FiltersSecurityGroup) SetOutboundRuleAccountIds(v []string) { + o.OutboundRuleAccountIds = &v +} + +// GetOutboundRuleFromPortRanges returns the OutboundRuleFromPortRanges field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetOutboundRuleFromPortRanges() []int32 { + if o == nil || o.OutboundRuleFromPortRanges == nil { + var ret []int32 + return ret + } + return *o.OutboundRuleFromPortRanges +} + +// GetOutboundRuleFromPortRangesOk returns a tuple with the OutboundRuleFromPortRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetOutboundRuleFromPortRangesOk() (*[]int32, bool) { + if o == nil || o.OutboundRuleFromPortRanges == nil { + return nil, false + } + return o.OutboundRuleFromPortRanges, true +} + +// HasOutboundRuleFromPortRanges returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasOutboundRuleFromPortRanges() bool { + if o != nil && o.OutboundRuleFromPortRanges != nil { + return true + } + + return false +} + +// SetOutboundRuleFromPortRanges gets a reference to the given []int32 and assigns it to the OutboundRuleFromPortRanges field. +func (o *FiltersSecurityGroup) SetOutboundRuleFromPortRanges(v []int32) { + o.OutboundRuleFromPortRanges = &v +} + +// GetOutboundRuleIpRanges returns the OutboundRuleIpRanges field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetOutboundRuleIpRanges() []string { + if o == nil || o.OutboundRuleIpRanges == nil { + var ret []string + return ret + } + return *o.OutboundRuleIpRanges +} + +// GetOutboundRuleIpRangesOk returns a tuple with the OutboundRuleIpRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetOutboundRuleIpRangesOk() (*[]string, bool) { + if o == nil || o.OutboundRuleIpRanges == nil { + return nil, false + } + return o.OutboundRuleIpRanges, true +} + +// HasOutboundRuleIpRanges returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasOutboundRuleIpRanges() bool { + if o != nil && o.OutboundRuleIpRanges != nil { + return true + } + + return false +} + +// SetOutboundRuleIpRanges gets a reference to the given []string and assigns it to the OutboundRuleIpRanges field. +func (o *FiltersSecurityGroup) SetOutboundRuleIpRanges(v []string) { + o.OutboundRuleIpRanges = &v +} + +// GetOutboundRuleProtocols returns the OutboundRuleProtocols field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetOutboundRuleProtocols() []string { + if o == nil || o.OutboundRuleProtocols == nil { + var ret []string + return ret + } + return *o.OutboundRuleProtocols +} + +// GetOutboundRuleProtocolsOk returns a tuple with the OutboundRuleProtocols field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetOutboundRuleProtocolsOk() (*[]string, bool) { + if o == nil || o.OutboundRuleProtocols == nil { + return nil, false + } + return o.OutboundRuleProtocols, true +} + +// HasOutboundRuleProtocols returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasOutboundRuleProtocols() bool { + if o != nil && o.OutboundRuleProtocols != nil { + return true + } + + return false +} + +// SetOutboundRuleProtocols gets a reference to the given []string and assigns it to the OutboundRuleProtocols field. +func (o *FiltersSecurityGroup) SetOutboundRuleProtocols(v []string) { + o.OutboundRuleProtocols = &v +} + +// GetOutboundRuleSecurityGroupIds returns the OutboundRuleSecurityGroupIds field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetOutboundRuleSecurityGroupIds() []string { + if o == nil || o.OutboundRuleSecurityGroupIds == nil { + var ret []string + return ret + } + return *o.OutboundRuleSecurityGroupIds +} + +// GetOutboundRuleSecurityGroupIdsOk returns a tuple with the OutboundRuleSecurityGroupIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetOutboundRuleSecurityGroupIdsOk() (*[]string, bool) { + if o == nil || o.OutboundRuleSecurityGroupIds == nil { + return nil, false + } + return o.OutboundRuleSecurityGroupIds, true +} + +// HasOutboundRuleSecurityGroupIds returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasOutboundRuleSecurityGroupIds() bool { + if o != nil && o.OutboundRuleSecurityGroupIds != nil { + return true + } + + return false +} + +// SetOutboundRuleSecurityGroupIds gets a reference to the given []string and assigns it to the OutboundRuleSecurityGroupIds field. +func (o *FiltersSecurityGroup) SetOutboundRuleSecurityGroupIds(v []string) { + o.OutboundRuleSecurityGroupIds = &v +} + +// GetOutboundRuleSecurityGroupNames returns the OutboundRuleSecurityGroupNames field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetOutboundRuleSecurityGroupNames() []string { + if o == nil || o.OutboundRuleSecurityGroupNames == nil { + var ret []string + return ret + } + return *o.OutboundRuleSecurityGroupNames +} + +// GetOutboundRuleSecurityGroupNamesOk returns a tuple with the OutboundRuleSecurityGroupNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetOutboundRuleSecurityGroupNamesOk() (*[]string, bool) { + if o == nil || o.OutboundRuleSecurityGroupNames == nil { + return nil, false + } + return o.OutboundRuleSecurityGroupNames, true +} + +// HasOutboundRuleSecurityGroupNames returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasOutboundRuleSecurityGroupNames() bool { + if o != nil && o.OutboundRuleSecurityGroupNames != nil { + return true + } + + return false +} + +// SetOutboundRuleSecurityGroupNames gets a reference to the given []string and assigns it to the OutboundRuleSecurityGroupNames field. +func (o *FiltersSecurityGroup) SetOutboundRuleSecurityGroupNames(v []string) { + o.OutboundRuleSecurityGroupNames = &v +} + +// GetOutboundRuleToPortRanges returns the OutboundRuleToPortRanges field value if set, zero value otherwise. +func (o *FiltersSecurityGroup) GetOutboundRuleToPortRanges() []int32 { + if o == nil || o.OutboundRuleToPortRanges == nil { + var ret []int32 + return ret + } + return *o.OutboundRuleToPortRanges +} + +// GetOutboundRuleToPortRangesOk returns a tuple with the OutboundRuleToPortRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FiltersSecurityGroup) GetOutboundRuleToPortRangesOk() (*[]int32, bool) { + if o == nil || o.OutboundRuleToPortRanges == nil { + return nil, false + } + return o.OutboundRuleToPortRanges, true +} + +// HasOutboundRuleToPortRanges returns a boolean if a field has been set. +func (o *FiltersSecurityGroup) HasOutboundRuleToPortRanges() bool { + if o != nil && o.OutboundRuleToPortRanges != nil { + return true + } + + return false +} + +// SetOutboundRuleToPortRanges gets a reference to the given []int32 and assigns it to the OutboundRuleToPortRanges field. +func (o *FiltersSecurityGroup) SetOutboundRuleToPortRanges(v []int32) { + o.OutboundRuleToPortRanges = &v +} + // GetSecurityGroupIds returns the SecurityGroupIds field value if set, zero value otherwise. func (o *FiltersSecurityGroup) GetSecurityGroupIds() []string { if o == nil || o.SecurityGroupIds == nil { @@ -279,9 +789,54 @@ func (o FiltersSecurityGroup) MarshalJSON() ([]byte, error) { if o.AccountIds != nil { toSerialize["AccountIds"] = o.AccountIds } + if o.Descriptions != nil { + toSerialize["Descriptions"] = o.Descriptions + } + if o.InboundRuleAccountIds != nil { + toSerialize["InboundRuleAccountIds"] = o.InboundRuleAccountIds + } + if o.InboundRuleFromPortRanges != nil { + toSerialize["InboundRuleFromPortRanges"] = o.InboundRuleFromPortRanges + } + if o.InboundRuleIpRanges != nil { + toSerialize["InboundRuleIpRanges"] = o.InboundRuleIpRanges + } + if o.InboundRuleProtocols != nil { + toSerialize["InboundRuleProtocols"] = o.InboundRuleProtocols + } + if o.InboundRuleSecurityGroupIds != nil { + toSerialize["InboundRuleSecurityGroupIds"] = o.InboundRuleSecurityGroupIds + } + if o.InboundRuleSecurityGroupNames != nil { + toSerialize["InboundRuleSecurityGroupNames"] = o.InboundRuleSecurityGroupNames + } + if o.InboundRuleToPortRanges != nil { + toSerialize["InboundRuleToPortRanges"] = o.InboundRuleToPortRanges + } if o.NetIds != nil { toSerialize["NetIds"] = o.NetIds } + if o.OutboundRuleAccountIds != nil { + toSerialize["OutboundRuleAccountIds"] = o.OutboundRuleAccountIds + } + if o.OutboundRuleFromPortRanges != nil { + toSerialize["OutboundRuleFromPortRanges"] = o.OutboundRuleFromPortRanges + } + if o.OutboundRuleIpRanges != nil { + toSerialize["OutboundRuleIpRanges"] = o.OutboundRuleIpRanges + } + if o.OutboundRuleProtocols != nil { + toSerialize["OutboundRuleProtocols"] = o.OutboundRuleProtocols + } + if o.OutboundRuleSecurityGroupIds != nil { + toSerialize["OutboundRuleSecurityGroupIds"] = o.OutboundRuleSecurityGroupIds + } + if o.OutboundRuleSecurityGroupNames != nil { + toSerialize["OutboundRuleSecurityGroupNames"] = o.OutboundRuleSecurityGroupNames + } + if o.OutboundRuleToPortRanges != nil { + toSerialize["OutboundRuleToPortRanges"] = o.OutboundRuleToPortRanges + } if o.SecurityGroupIds != nil { toSerialize["SecurityGroupIds"] = o.SecurityGroupIds } @@ -335,5 +890,3 @@ func (v *NullableFiltersSecurityGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_server_certificate.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_server_certificate.go index 761cd658e..918a0ff65 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_server_certificate.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_server_certificate.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableFiltersServerCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_service.go index addeb30cb..9f6878b81 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type FiltersService struct { // The IDs of the services. ServiceIds *[]string `json:"ServiceIds,omitempty"` - // The names of the prefix lists, which identify the 3DS OUTSCALE services they are associated with. + // The names of the services. ServiceNames *[]string `json:"ServiceNames,omitempty"` } @@ -150,5 +150,3 @@ func (v *NullableFiltersService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_snapshot.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_snapshot.go index dce35987c..75d89e048 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_snapshot.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_snapshot.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -25,7 +25,7 @@ type FiltersSnapshot struct { Descriptions *[]string `json:"Descriptions,omitempty"` // The account IDs of one or more users who have permissions to create volumes. PermissionsToCreateVolumeAccountIds *[]string `json:"PermissionsToCreateVolumeAccountIds,omitempty"` - // If `true`, lists all public volumes. If `false`, lists all private volumes. + // If true, lists all public volumes. If false, lists all private volumes. PermissionsToCreateVolumeGlobalPermission *bool `json:"PermissionsToCreateVolumeGlobalPermission,omitempty"` // The progresses of the snapshots, as a percentage. Progresses *[]int32 `json:"Progresses,omitempty"` @@ -557,5 +557,3 @@ func (v *NullableFiltersSnapshot) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subnet.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subnet.go index 145230b23..f38d04684 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subnet.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subnet.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -409,5 +409,3 @@ func (v *NullableFiltersSubnet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subregion.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subregion.go index 193edf109..b4aba761e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subregion.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_subregion.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableFiltersSubregion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_tag.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_tag.go index b37f890ff..f7eba6d06 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_tag.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_tag.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableFiltersTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_virtual_gateway.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_virtual_gateway.go index ca917350e..6ba24c401 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_virtual_gateway.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_virtual_gateway.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -372,5 +372,3 @@ func (v *NullableFiltersVirtualGateway) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm.go index 711f7644a..b40fc2076 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableFiltersVm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm_type.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm_type.go index 1a560a4b7..a6b2c0121 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm_type.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vm_type.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableFiltersVmType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vms_state.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vms_state.go index c045914cb..30c7b907b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vms_state.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vms_state.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableFiltersVmsState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_volume.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_volume.go index 3683b0df6..b6b1f9d05 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_volume.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_volume.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -43,7 +43,7 @@ type FiltersVolume struct { VolumeIds *[]string `json:"VolumeIds,omitempty"` // The sizes of the volumes, in gibibytes (GiB). VolumeSizes *[]int32 `json:"VolumeSizes,omitempty"` - // The states of the volumes (`creating` \\| `available` \\| `in-use` \\| `deleting` \\| `error`). + // The states of the volumes (`creating` \\| `available` \\| `in-use` \\| `updating` \\| `deleting` \\| `error`). VolumeStates *[]string `json:"VolumeStates,omitempty"` // The types of the volumes (`standard` \\| `gp2` \\| `io1`). VolumeTypes *[]string `json:"VolumeTypes,omitempty"` @@ -631,5 +631,3 @@ func (v *NullableFiltersVolume) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vpn_connection.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vpn_connection.go index e9077b29c..c6ddff61c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vpn_connection.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_filters_vpn_connection.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -27,7 +27,7 @@ type FiltersVpnConnection struct { RouteDestinationIpRanges *[]string `json:"RouteDestinationIpRanges,omitempty"` // The states of the VPN connections (`pending` \\| `available` \\| `deleting` \\| `deleted`). States *[]string `json:"States,omitempty"` - // If `false`, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If `true`, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + // If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). StaticRoutesOnly *bool `json:"StaticRoutesOnly,omitempty"` // The keys of the tags associated with the VPN connections. TagKeys *[]string `json:"TagKeys,omitempty"` @@ -483,5 +483,3 @@ func (v *NullableFiltersVpnConnection) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu.go index 9d9fd4c6e..254a90367 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // FlexibleGpu Information about the flexible GPU (fGPU). type FlexibleGpu struct { - // If `true`, the fGPU is deleted when the VM is terminated. + // If true, the fGPU is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The ID of the fGPU. FlexibleGpuId *string `json:"FlexibleGpuId,omitempty"` @@ -335,5 +335,3 @@ func (v *NullableFlexibleGpu) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu_catalog.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu_catalog.go index ee183a911..06f9e3aba 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu_catalog.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_flexible_gpu_catalog.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -261,5 +261,3 @@ func (v *NullableFlexibleGpuCatalog) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_health_check.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_health_check.go index f9191b083..1839bf2a8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_health_check.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_health_check.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -37,7 +37,7 @@ type HealthCheck struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewHealthCheck(checkInterval int32, healthyThreshold int32, port int32, protocol string, timeout int32, unhealthyThreshold int32, ) *HealthCheck { +func NewHealthCheck(checkInterval int32, healthyThreshold int32, port int32, protocol string, timeout int32, unhealthyThreshold int32) *HealthCheck { this := HealthCheck{} this.CheckInterval = checkInterval this.HealthyThreshold = healthyThreshold @@ -58,7 +58,7 @@ func NewHealthCheckWithDefaults() *HealthCheck { // GetCheckInterval returns the CheckInterval field value func (o *HealthCheck) GetCheckInterval() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -69,7 +69,7 @@ func (o *HealthCheck) GetCheckInterval() int32 { // GetCheckIntervalOk returns a tuple with the CheckInterval field value // and a boolean to check if the value has been set. func (o *HealthCheck) GetCheckIntervalOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.CheckInterval, true @@ -82,7 +82,7 @@ func (o *HealthCheck) SetCheckInterval(v int32) { // GetHealthyThreshold returns the HealthyThreshold field value func (o *HealthCheck) GetHealthyThreshold() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -93,7 +93,7 @@ func (o *HealthCheck) GetHealthyThreshold() int32 { // GetHealthyThresholdOk returns a tuple with the HealthyThreshold field value // and a boolean to check if the value has been set. func (o *HealthCheck) GetHealthyThresholdOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.HealthyThreshold, true @@ -138,7 +138,7 @@ func (o *HealthCheck) SetPath(v string) { // GetPort returns the Port field value func (o *HealthCheck) GetPort() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -149,7 +149,7 @@ func (o *HealthCheck) GetPort() int32 { // GetPortOk returns a tuple with the Port field value // and a boolean to check if the value has been set. func (o *HealthCheck) GetPortOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Port, true @@ -162,7 +162,7 @@ func (o *HealthCheck) SetPort(v int32) { // GetProtocol returns the Protocol field value func (o *HealthCheck) GetProtocol() string { - if o == nil { + if o == nil { var ret string return ret } @@ -173,7 +173,7 @@ func (o *HealthCheck) GetProtocol() string { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. func (o *HealthCheck) GetProtocolOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Protocol, true @@ -186,7 +186,7 @@ func (o *HealthCheck) SetProtocol(v string) { // GetTimeout returns the Timeout field value func (o *HealthCheck) GetTimeout() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -197,7 +197,7 @@ func (o *HealthCheck) GetTimeout() int32 { // GetTimeoutOk returns a tuple with the Timeout field value // and a boolean to check if the value has been set. func (o *HealthCheck) GetTimeoutOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Timeout, true @@ -210,7 +210,7 @@ func (o *HealthCheck) SetTimeout(v int32) { // GetUnhealthyThreshold returns the UnhealthyThreshold field value func (o *HealthCheck) GetUnhealthyThreshold() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -221,7 +221,7 @@ func (o *HealthCheck) GetUnhealthyThreshold() int32 { // GetUnhealthyThresholdOk returns a tuple with the UnhealthyThreshold field value // and a boolean to check if the value has been set. func (o *HealthCheck) GetUnhealthyThresholdOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.UnhealthyThreshold, true @@ -293,5 +293,3 @@ func (v *NullableHealthCheck) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_image.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_image.go index af8ab9ae4..c8e6f02da 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_image.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_image.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -36,7 +36,7 @@ type Image struct { // The name of the OMI. ImageName *string `json:"ImageName,omitempty"` // The type of the OMI. - ImageType *string `json:"ImageType,omitempty"` + ImageType *string `json:"ImageType,omitempty"` PermissionsToLaunch *PermissionsOnResource `json:"PermissionsToLaunch,omitempty"` // The product code associated with the OMI (`0001` Linux/Unix \\| `0002` Windows \\| `0004` Linux/Oracle \\| `0005` Windows 10). ProductCodes *[]string `json:"ProductCodes,omitempty"` @@ -45,7 +45,7 @@ type Image struct { // The type of root device used by the OMI (always `bsu`). RootDeviceType *string `json:"RootDeviceType,omitempty"` // The state of the OMI (`pending` \\| `available` \\| `failed`). - State *string `json:"State,omitempty"` + State *string `json:"State,omitempty"` StateComment *StateComment `json:"StateComment,omitempty"` // One or more tags associated with the OMI. Tags *[]ResourceTag `json:"Tags,omitempty"` @@ -703,5 +703,3 @@ func (v *NullableImage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_image_export_task.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_image_export_task.go index 21166f830..01748f322 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_image_export_task.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_image_export_task.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -20,7 +20,7 @@ type ImageExportTask struct { // If the OMI export task fails, an error message appears. Comment *string `json:"Comment,omitempty"` // The ID of the OMI to be exported. - ImageId *string `json:"ImageId,omitempty"` + ImageId *string `json:"ImageId,omitempty"` OsuExport *OsuExport `json:"OsuExport,omitempty"` // The progress of the OMI export task, as a percentage. Progress *int32 `json:"Progress,omitempty"` @@ -334,5 +334,3 @@ func (v *NullableImageExportTask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_internet_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_internet_service.go index 83f6e2671..de1d5c5f4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_internet_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_internet_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableInternetService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair.go index 3612b3a54..bf89d8b82 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableKeypair) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair_created.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair_created.go index 093a38201..52c339d74 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair_created.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_keypair_created.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableKeypairCreated) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_request.go index 305ec05fc..f14774a49 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkFlexibleGpuRequest struct for LinkFlexibleGpuRequest type LinkFlexibleGpuRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the fGPU you want to attach. FlexibleGpuId string `json:"FlexibleGpuId"` @@ -29,7 +29,7 @@ type LinkFlexibleGpuRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLinkFlexibleGpuRequest(flexibleGpuId string, vmId string, ) *LinkFlexibleGpuRequest { +func NewLinkFlexibleGpuRequest(flexibleGpuId string, vmId string) *LinkFlexibleGpuRequest { this := LinkFlexibleGpuRequest{} this.FlexibleGpuId = flexibleGpuId this.VmId = vmId @@ -78,7 +78,7 @@ func (o *LinkFlexibleGpuRequest) SetDryRun(v bool) { // GetFlexibleGpuId returns the FlexibleGpuId field value func (o *LinkFlexibleGpuRequest) GetFlexibleGpuId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *LinkFlexibleGpuRequest) GetFlexibleGpuId() string { // GetFlexibleGpuIdOk returns a tuple with the FlexibleGpuId field value // and a boolean to check if the value has been set. func (o *LinkFlexibleGpuRequest) GetFlexibleGpuIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FlexibleGpuId, true @@ -102,7 +102,7 @@ func (o *LinkFlexibleGpuRequest) SetFlexibleGpuId(v string) { // GetVmId returns the VmId field value func (o *LinkFlexibleGpuRequest) GetVmId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *LinkFlexibleGpuRequest) GetVmId() string { // GetVmIdOk returns a tuple with the VmId field value // and a boolean to check if the value has been set. func (o *LinkFlexibleGpuRequest) GetVmIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmId, true @@ -173,5 +173,3 @@ func (v *NullableLinkFlexibleGpuRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_response.go index 65698f4fc..b8b61cd6c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_flexible_gpu_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableLinkFlexibleGpuResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_request.go index b5ab55547..7f61b0869 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkInternetServiceRequest struct for LinkInternetServiceRequest type LinkInternetServiceRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Internet service you want to attach. InternetServiceId string `json:"InternetServiceId"` @@ -29,7 +29,7 @@ type LinkInternetServiceRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLinkInternetServiceRequest(internetServiceId string, netId string, ) *LinkInternetServiceRequest { +func NewLinkInternetServiceRequest(internetServiceId string, netId string) *LinkInternetServiceRequest { this := LinkInternetServiceRequest{} this.InternetServiceId = internetServiceId this.NetId = netId @@ -78,7 +78,7 @@ func (o *LinkInternetServiceRequest) SetDryRun(v bool) { // GetInternetServiceId returns the InternetServiceId field value func (o *LinkInternetServiceRequest) GetInternetServiceId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *LinkInternetServiceRequest) GetInternetServiceId() string { // GetInternetServiceIdOk returns a tuple with the InternetServiceId field value // and a boolean to check if the value has been set. func (o *LinkInternetServiceRequest) GetInternetServiceIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.InternetServiceId, true @@ -102,7 +102,7 @@ func (o *LinkInternetServiceRequest) SetInternetServiceId(v string) { // GetNetId returns the NetId field value func (o *LinkInternetServiceRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *LinkInternetServiceRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *LinkInternetServiceRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -173,5 +173,3 @@ func (v *NullableLinkInternetServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_response.go index 55474405c..1fad17bb5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_internet_service_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableLinkInternetServiceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic.go index cb483b1dd..238757963 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkNic Information about the NIC attachment. type LinkNic struct { - // If `true`, the volume is deleted when the VM is terminated. + // If true, the volume is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The device index for the NIC attachment (between 1 and 7, both included). DeviceNumber *int32 `json:"DeviceNumber,omitempty"` @@ -298,5 +298,3 @@ func (v *NullableLinkNic) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_light.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_light.go index e92571f17..10410ef3b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_light.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_light.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkNicLight Information about the network interface card (NIC). type LinkNicLight struct { - // If `true`, the volume is deleted when the VM is terminated. + // If true, the volume is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The device index for the NIC attachment (between 1 and 7, both included). DeviceNumber *int32 `json:"DeviceNumber,omitempty"` @@ -224,5 +224,3 @@ func (v *NullableLinkNicLight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_request.go index 1b261c01b..a28016f58 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type LinkNicRequest struct { // The index of the VM device for the NIC attachment (between 1 and 7, both included). DeviceNumber int32 `json:"DeviceNumber"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the NIC you want to attach. NicId string `json:"NicId"` @@ -31,7 +31,7 @@ type LinkNicRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLinkNicRequest(deviceNumber int32, nicId string, vmId string, ) *LinkNicRequest { +func NewLinkNicRequest(deviceNumber int32, nicId string, vmId string) *LinkNicRequest { this := LinkNicRequest{} this.DeviceNumber = deviceNumber this.NicId = nicId @@ -49,7 +49,7 @@ func NewLinkNicRequestWithDefaults() *LinkNicRequest { // GetDeviceNumber returns the DeviceNumber field value func (o *LinkNicRequest) GetDeviceNumber() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -60,7 +60,7 @@ func (o *LinkNicRequest) GetDeviceNumber() int32 { // GetDeviceNumberOk returns a tuple with the DeviceNumber field value // and a boolean to check if the value has been set. func (o *LinkNicRequest) GetDeviceNumberOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DeviceNumber, true @@ -105,7 +105,7 @@ func (o *LinkNicRequest) SetDryRun(v bool) { // GetNicId returns the NicId field value func (o *LinkNicRequest) GetNicId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -116,7 +116,7 @@ func (o *LinkNicRequest) GetNicId() string { // GetNicIdOk returns a tuple with the NicId field value // and a boolean to check if the value has been set. func (o *LinkNicRequest) GetNicIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NicId, true @@ -129,7 +129,7 @@ func (o *LinkNicRequest) SetNicId(v string) { // GetVmId returns the VmId field value func (o *LinkNicRequest) GetVmId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -140,7 +140,7 @@ func (o *LinkNicRequest) GetVmId() string { // GetVmIdOk returns a tuple with the VmId field value // and a boolean to check if the value has been set. func (o *LinkNicRequest) GetVmIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmId, true @@ -203,5 +203,3 @@ func (v *NullableLinkNicRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_response.go index 22c3d4e66..f213c3cb6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // LinkNicResponse struct for LinkNicResponse type LinkNicResponse struct { // The ID of the NIC attachment. - LinkNicId *string `json:"LinkNicId,omitempty"` + LinkNicId *string `json:"LinkNicId,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableLinkNicResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_to_update.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_to_update.go index f013a45ed..6856c28e6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_to_update.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_nic_to_update.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkNicToUpdate Information about the NIC attachment. If you are modifying the `DeleteOnVmDeletion` attribute, you must specify the ID of the NIC attachment. type LinkNicToUpdate struct { - // If `true`, the NIC is deleted when the VM is terminated. + // If true, the NIC is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The ID of the NIC attachment. LinkNicId *string `json:"LinkNicId,omitempty"` @@ -150,5 +150,3 @@ func (v *NullableLinkNicToUpdate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_request.go index e80f933a7..bb2577dc0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,9 +17,9 @@ import ( // LinkPrivateIpsRequest struct for LinkPrivateIpsRequest type LinkPrivateIpsRequest struct { - // If `true`, allows an IP address that is already assigned to another NIC in the same Subnet to be assigned to the NIC you specified. + // If true, allows an IP address that is already assigned to another NIC in the same Subnet to be assigned to the NIC you specified. AllowRelink *bool `json:"AllowRelink,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the NIC. NicId string `json:"NicId"` @@ -33,7 +33,7 @@ type LinkPrivateIpsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLinkPrivateIpsRequest(nicId string, ) *LinkPrivateIpsRequest { +func NewLinkPrivateIpsRequest(nicId string) *LinkPrivateIpsRequest { this := LinkPrivateIpsRequest{} this.NicId = nicId return &this @@ -113,7 +113,7 @@ func (o *LinkPrivateIpsRequest) SetDryRun(v bool) { // GetNicId returns the NicId field value func (o *LinkPrivateIpsRequest) GetNicId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -124,7 +124,7 @@ func (o *LinkPrivateIpsRequest) GetNicId() string { // GetNicIdOk returns a tuple with the NicId field value // and a boolean to check if the value has been set. func (o *LinkPrivateIpsRequest) GetNicIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NicId, true @@ -254,5 +254,3 @@ func (v *NullableLinkPrivateIpsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_response.go index 5277585de..5a9acb036 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_private_ips_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableLinkPrivateIpsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip.go index 30b31e1b8..ef2e39cb5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -261,5 +261,3 @@ func (v *NullableLinkPublicIp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_light_for_vm.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_light_for_vm.go index 858c6cd97..bba348c71 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_light_for_vm.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_light_for_vm.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableLinkPublicIpLightForVm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_request.go index e2fc86d3e..3b378f00d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,9 +17,9 @@ import ( // LinkPublicIpRequest struct for LinkPublicIpRequest type LinkPublicIpRequest struct { - // - If `true`, allows the EIP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC.
- If `false`, prevents the EIP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC.

(By default, `true` in the public Cloud, `false` in a Net.) + // - If true, allows the EIP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC.
- If false, prevents the EIP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC.

(By default, true in the public Cloud, false in a Net.) AllowRelink *bool `json:"AllowRelink,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // (Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the `VmId` parameter instead. You cannot specify both parameters at the same time. NicId *string `json:"NicId,omitempty"` @@ -335,5 +335,3 @@ func (v *NullableLinkPublicIpRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_response.go index 46cefe06c..58dfe3d38 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_public_ip_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // LinkPublicIpResponse struct for LinkPublicIpResponse type LinkPublicIpResponse struct { // (Net only) The ID representing the association of the EIP with the VM or the NIC. - LinkPublicIpId *string `json:"LinkPublicIpId,omitempty"` + LinkPublicIpId *string `json:"LinkPublicIpId,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableLinkPublicIpResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table.go index fc60fbebb..026a3ca43 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type LinkRouteTable struct { // The ID of the association between the route table and the Subnet. LinkRouteTableId *string `json:"LinkRouteTableId,omitempty"` - // If `true`, the route table is the main one. + // If true, the route table is the main one. Main *bool `json:"Main,omitempty"` // The ID of the route table. RouteTableId *string `json:"RouteTableId,omitempty"` @@ -224,5 +224,3 @@ func (v *NullableLinkRouteTable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_request.go index edd19ecf8..0d6964984 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkRouteTableRequest struct for LinkRouteTableRequest type LinkRouteTableRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the route table. RouteTableId string `json:"RouteTableId"` @@ -29,7 +29,7 @@ type LinkRouteTableRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLinkRouteTableRequest(routeTableId string, subnetId string, ) *LinkRouteTableRequest { +func NewLinkRouteTableRequest(routeTableId string, subnetId string) *LinkRouteTableRequest { this := LinkRouteTableRequest{} this.RouteTableId = routeTableId this.SubnetId = subnetId @@ -78,7 +78,7 @@ func (o *LinkRouteTableRequest) SetDryRun(v bool) { // GetRouteTableId returns the RouteTableId field value func (o *LinkRouteTableRequest) GetRouteTableId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *LinkRouteTableRequest) GetRouteTableId() string { // GetRouteTableIdOk returns a tuple with the RouteTableId field value // and a boolean to check if the value has been set. func (o *LinkRouteTableRequest) GetRouteTableIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RouteTableId, true @@ -102,7 +102,7 @@ func (o *LinkRouteTableRequest) SetRouteTableId(v string) { // GetSubnetId returns the SubnetId field value func (o *LinkRouteTableRequest) GetSubnetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *LinkRouteTableRequest) GetSubnetId() string { // GetSubnetIdOk returns a tuple with the SubnetId field value // and a boolean to check if the value has been set. func (o *LinkRouteTableRequest) GetSubnetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SubnetId, true @@ -173,5 +173,3 @@ func (v *NullableLinkRouteTableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_response.go index 14c0dbc31..d1393f0d2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_route_table_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,8 +18,8 @@ import ( // LinkRouteTableResponse struct for LinkRouteTableResponse type LinkRouteTableResponse struct { // The ID of the association between the route table and the Subnet. - LinkRouteTableId *string `json:"LinkRouteTableId,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + LinkRouteTableId *string `json:"LinkRouteTableId,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewLinkRouteTableResponse instantiates a new LinkRouteTableResponse object @@ -149,5 +149,3 @@ func (v *NullableLinkRouteTableResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_request.go index c345e9bc7..e5e78073c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkVirtualGatewayRequest struct for LinkVirtualGatewayRequest type LinkVirtualGatewayRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net to which you want to attach the virtual gateway. NetId string `json:"NetId"` @@ -29,7 +29,7 @@ type LinkVirtualGatewayRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLinkVirtualGatewayRequest(netId string, virtualGatewayId string, ) *LinkVirtualGatewayRequest { +func NewLinkVirtualGatewayRequest(netId string, virtualGatewayId string) *LinkVirtualGatewayRequest { this := LinkVirtualGatewayRequest{} this.NetId = netId this.VirtualGatewayId = virtualGatewayId @@ -78,7 +78,7 @@ func (o *LinkVirtualGatewayRequest) SetDryRun(v bool) { // GetNetId returns the NetId field value func (o *LinkVirtualGatewayRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *LinkVirtualGatewayRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *LinkVirtualGatewayRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -102,7 +102,7 @@ func (o *LinkVirtualGatewayRequest) SetNetId(v string) { // GetVirtualGatewayId returns the VirtualGatewayId field value func (o *LinkVirtualGatewayRequest) GetVirtualGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *LinkVirtualGatewayRequest) GetVirtualGatewayId() string { // GetVirtualGatewayIdOk returns a tuple with the VirtualGatewayId field value // and a boolean to check if the value has been set. func (o *LinkVirtualGatewayRequest) GetVirtualGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VirtualGatewayId, true @@ -173,5 +173,3 @@ func (v *NullableLinkVirtualGatewayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_response.go index 029cd0534..1cf7640ee 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_virtual_gateway_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // LinkVirtualGatewayResponse struct for LinkVirtualGatewayResponse type LinkVirtualGatewayResponse struct { NetToVirtualGatewayLink *NetToVirtualGatewayLink `json:"NetToVirtualGatewayLink,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewLinkVirtualGatewayResponse instantiates a new LinkVirtualGatewayResponse object @@ -148,5 +148,3 @@ func (v *NullableLinkVirtualGatewayResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_request.go index 3073f479a..a683d6549 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type LinkVolumeRequest struct { // The name of the device. DeviceName string `json:"DeviceName"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the VM you want to attach the volume to. VmId string `json:"VmId"` @@ -31,7 +31,7 @@ type LinkVolumeRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLinkVolumeRequest(deviceName string, vmId string, volumeId string, ) *LinkVolumeRequest { +func NewLinkVolumeRequest(deviceName string, vmId string, volumeId string) *LinkVolumeRequest { this := LinkVolumeRequest{} this.DeviceName = deviceName this.VmId = vmId @@ -49,7 +49,7 @@ func NewLinkVolumeRequestWithDefaults() *LinkVolumeRequest { // GetDeviceName returns the DeviceName field value func (o *LinkVolumeRequest) GetDeviceName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -60,7 +60,7 @@ func (o *LinkVolumeRequest) GetDeviceName() string { // GetDeviceNameOk returns a tuple with the DeviceName field value // and a boolean to check if the value has been set. func (o *LinkVolumeRequest) GetDeviceNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DeviceName, true @@ -105,7 +105,7 @@ func (o *LinkVolumeRequest) SetDryRun(v bool) { // GetVmId returns the VmId field value func (o *LinkVolumeRequest) GetVmId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -116,7 +116,7 @@ func (o *LinkVolumeRequest) GetVmId() string { // GetVmIdOk returns a tuple with the VmId field value // and a boolean to check if the value has been set. func (o *LinkVolumeRequest) GetVmIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmId, true @@ -129,7 +129,7 @@ func (o *LinkVolumeRequest) SetVmId(v string) { // GetVolumeId returns the VolumeId field value func (o *LinkVolumeRequest) GetVolumeId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -140,7 +140,7 @@ func (o *LinkVolumeRequest) GetVolumeId() string { // GetVolumeIdOk returns a tuple with the VolumeId field value // and a boolean to check if the value has been set. func (o *LinkVolumeRequest) GetVolumeIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VolumeId, true @@ -203,5 +203,3 @@ func (v *NullableLinkVolumeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_response.go index 0b2bfc2b0..1432a8757 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_link_volume_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableLinkVolumeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_linked_volume.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_linked_volume.go index 40b03507e..0be5861ed 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_linked_volume.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_linked_volume.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // LinkedVolume Information about volume attachment. type LinkedVolume struct { - // If `true`, the volume is deleted when the VM is terminated. + // If true, the volume is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The name of the device. DeviceName *string `json:"DeviceName,omitempty"` @@ -261,5 +261,3 @@ func (v *NullableLinkedVolume) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener.go index 0bfc4733e..648dcc31e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -27,7 +27,7 @@ type Listener struct { LoadBalancerProtocol *string `json:"LoadBalancerProtocol,omitempty"` // The names of the policies. If there are no policies enabled, the list is empty. PolicyNames *[]string `json:"PolicyNames,omitempty"` - // The ID of the server certificate. + // The Outscale Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > Outscale Resource Names (ORNs)](https://wiki.outscale.net/display/EN/Resource+Identifiers#ResourceIdentifiers-ORNFormat). ServerCertificateId *string `json:"ServerCertificateId,omitempty"` } @@ -298,5 +298,3 @@ func (v *NullableListener) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_for_creation.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_for_creation.go index 6d463290f..afefe0e30 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_for_creation.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_for_creation.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -25,7 +25,7 @@ type ListenerForCreation struct { LoadBalancerPort int32 `json:"LoadBalancerPort"` // The routing protocol (`HTTP` \\| `HTTPS` \\| `TCP` \\| `SSL` \\| `UDP`). LoadBalancerProtocol string `json:"LoadBalancerProtocol"` - // The ID of the server certificate. + // The Outscale Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > Outscale Resource Names (ORNs)](https://wiki.outscale.net/display/EN/Resource+Identifiers#ResourceIdentifiers-ORNFormat). ServerCertificateId *string `json:"ServerCertificateId,omitempty"` } @@ -33,7 +33,7 @@ type ListenerForCreation struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewListenerForCreation(backendPort int32, loadBalancerPort int32, loadBalancerProtocol string, ) *ListenerForCreation { +func NewListenerForCreation(backendPort int32, loadBalancerPort int32, loadBalancerProtocol string) *ListenerForCreation { this := ListenerForCreation{} this.BackendPort = backendPort this.LoadBalancerPort = loadBalancerPort @@ -51,7 +51,7 @@ func NewListenerForCreationWithDefaults() *ListenerForCreation { // GetBackendPort returns the BackendPort field value func (o *ListenerForCreation) GetBackendPort() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -62,7 +62,7 @@ func (o *ListenerForCreation) GetBackendPort() int32 { // GetBackendPortOk returns a tuple with the BackendPort field value // and a boolean to check if the value has been set. func (o *ListenerForCreation) GetBackendPortOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.BackendPort, true @@ -107,7 +107,7 @@ func (o *ListenerForCreation) SetBackendProtocol(v string) { // GetLoadBalancerPort returns the LoadBalancerPort field value func (o *ListenerForCreation) GetLoadBalancerPort() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -118,7 +118,7 @@ func (o *ListenerForCreation) GetLoadBalancerPort() int32 { // GetLoadBalancerPortOk returns a tuple with the LoadBalancerPort field value // and a boolean to check if the value has been set. func (o *ListenerForCreation) GetLoadBalancerPortOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerPort, true @@ -131,7 +131,7 @@ func (o *ListenerForCreation) SetLoadBalancerPort(v int32) { // GetLoadBalancerProtocol returns the LoadBalancerProtocol field value func (o *ListenerForCreation) GetLoadBalancerProtocol() string { - if o == nil { + if o == nil { var ret string return ret } @@ -142,7 +142,7 @@ func (o *ListenerForCreation) GetLoadBalancerProtocol() string { // GetLoadBalancerProtocolOk returns a tuple with the LoadBalancerProtocol field value // and a boolean to check if the value has been set. func (o *ListenerForCreation) GetLoadBalancerProtocolOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerProtocol, true @@ -240,5 +240,3 @@ func (v *NullableListenerForCreation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule.go index fb4f42245..846fe9334 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -372,5 +372,3 @@ func (v *NullableListenerRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule_for_creation.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule_for_creation.go index b688826e0..18a35f027 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule_for_creation.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_listener_rule_for_creation.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,12 +19,10 @@ import ( type ListenerRuleForCreation struct { // The type of action for the rule (always `forward`). Action *string `json:"Action,omitempty"` - // A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. + // A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. HostNamePattern *string `json:"HostNamePattern,omitempty"` - // The ID of the listener. - ListenerRuleId *string `json:"ListenerRuleId,omitempty"` // A human-readable name for the listener rule. - ListenerRuleName *string `json:"ListenerRuleName,omitempty"` + ListenerRuleName string `json:"ListenerRuleName"` // A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~\"'@:+?]. PathPattern *string `json:"PathPattern,omitempty"` // The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned. @@ -35,8 +33,9 @@ type ListenerRuleForCreation struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewListenerRuleForCreation(priority int32, ) *ListenerRuleForCreation { +func NewListenerRuleForCreation(listenerRuleName string, priority int32) *ListenerRuleForCreation { this := ListenerRuleForCreation{} + this.ListenerRuleName = listenerRuleName this.Priority = priority return &this } @@ -113,68 +112,28 @@ func (o *ListenerRuleForCreation) SetHostNamePattern(v string) { o.HostNamePattern = &v } -// GetListenerRuleId returns the ListenerRuleId field value if set, zero value otherwise. -func (o *ListenerRuleForCreation) GetListenerRuleId() string { - if o == nil || o.ListenerRuleId == nil { - var ret string - return ret - } - return *o.ListenerRuleId -} - -// GetListenerRuleIdOk returns a tuple with the ListenerRuleId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ListenerRuleForCreation) GetListenerRuleIdOk() (*string, bool) { - if o == nil || o.ListenerRuleId == nil { - return nil, false - } - return o.ListenerRuleId, true -} - -// HasListenerRuleId returns a boolean if a field has been set. -func (o *ListenerRuleForCreation) HasListenerRuleId() bool { - if o != nil && o.ListenerRuleId != nil { - return true - } - - return false -} - -// SetListenerRuleId gets a reference to the given string and assigns it to the ListenerRuleId field. -func (o *ListenerRuleForCreation) SetListenerRuleId(v string) { - o.ListenerRuleId = &v -} - -// GetListenerRuleName returns the ListenerRuleName field value if set, zero value otherwise. +// GetListenerRuleName returns the ListenerRuleName field value func (o *ListenerRuleForCreation) GetListenerRuleName() string { - if o == nil || o.ListenerRuleName == nil { + if o == nil { var ret string return ret } - return *o.ListenerRuleName + + return o.ListenerRuleName } -// GetListenerRuleNameOk returns a tuple with the ListenerRuleName field value if set, nil otherwise +// GetListenerRuleNameOk returns a tuple with the ListenerRuleName field value // and a boolean to check if the value has been set. func (o *ListenerRuleForCreation) GetListenerRuleNameOk() (*string, bool) { - if o == nil || o.ListenerRuleName == nil { + if o == nil { return nil, false } - return o.ListenerRuleName, true -} - -// HasListenerRuleName returns a boolean if a field has been set. -func (o *ListenerRuleForCreation) HasListenerRuleName() bool { - if o != nil && o.ListenerRuleName != nil { - return true - } - - return false + return &o.ListenerRuleName, true } -// SetListenerRuleName gets a reference to the given string and assigns it to the ListenerRuleName field. +// SetListenerRuleName sets field value func (o *ListenerRuleForCreation) SetListenerRuleName(v string) { - o.ListenerRuleName = &v + o.ListenerRuleName = v } // GetPathPattern returns the PathPattern field value if set, zero value otherwise. @@ -211,7 +170,7 @@ func (o *ListenerRuleForCreation) SetPathPattern(v string) { // GetPriority returns the Priority field value func (o *ListenerRuleForCreation) GetPriority() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -222,7 +181,7 @@ func (o *ListenerRuleForCreation) GetPriority() int32 { // GetPriorityOk returns a tuple with the Priority field value // and a boolean to check if the value has been set. func (o *ListenerRuleForCreation) GetPriorityOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Priority, true @@ -241,10 +200,7 @@ func (o ListenerRuleForCreation) MarshalJSON() ([]byte, error) { if o.HostNamePattern != nil { toSerialize["HostNamePattern"] = o.HostNamePattern } - if o.ListenerRuleId != nil { - toSerialize["ListenerRuleId"] = o.ListenerRuleId - } - if o.ListenerRuleName != nil { + if true { toSerialize["ListenerRuleName"] = o.ListenerRuleName } if o.PathPattern != nil { @@ -291,5 +247,3 @@ func (v *NullableListenerRuleForCreation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer.go index 269bd2d43..20e12fd33 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -23,7 +23,7 @@ type LoadBalancer struct { // One or more IDs of back-end VMs for the load balancer. BackendVmIds *[]string `json:"BackendVmIds,omitempty"` // The DNS name of the load balancer. - DnsName *string `json:"DnsName,omitempty"` + DnsName *string `json:"DnsName,omitempty"` HealthCheck *HealthCheck `json:"HealthCheck,omitempty"` // The listeners for the load balancer. Listeners *[]Listener `json:"Listeners,omitempty"` @@ -36,7 +36,7 @@ type LoadBalancer struct { // The ID of the Net for the load balancer. NetId *string `json:"NetId,omitempty"` // One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. - SecurityGroups *[]string `json:"SecurityGroups,omitempty"` + SecurityGroups *[]string `json:"SecurityGroups,omitempty"` SourceSecurityGroup *SourceSecurityGroup `json:"SourceSecurityGroup,omitempty"` // The IDs of the Subnets for the load balancer. Subnets *[]string `json:"Subnets,omitempty"` @@ -628,5 +628,3 @@ func (v *NullableLoadBalancer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_light.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_light.go index 2a809b33d..00aa04749 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_light.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_light.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -27,7 +27,7 @@ type LoadBalancerLight struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLoadBalancerLight(loadBalancerName string, loadBalancerPort int32, ) *LoadBalancerLight { +func NewLoadBalancerLight(loadBalancerName string, loadBalancerPort int32) *LoadBalancerLight { this := LoadBalancerLight{} this.LoadBalancerName = loadBalancerName this.LoadBalancerPort = loadBalancerPort @@ -44,7 +44,7 @@ func NewLoadBalancerLightWithDefaults() *LoadBalancerLight { // GetLoadBalancerName returns the LoadBalancerName field value func (o *LoadBalancerLight) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -55,7 +55,7 @@ func (o *LoadBalancerLight) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *LoadBalancerLight) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -68,7 +68,7 @@ func (o *LoadBalancerLight) SetLoadBalancerName(v string) { // GetLoadBalancerPort returns the LoadBalancerPort field value func (o *LoadBalancerLight) GetLoadBalancerPort() int32 { - if o == nil { + if o == nil { var ret int32 return ret } @@ -79,7 +79,7 @@ func (o *LoadBalancerLight) GetLoadBalancerPort() int32 { // GetLoadBalancerPortOk returns a tuple with the LoadBalancerPort field value // and a boolean to check if the value has been set. func (o *LoadBalancerLight) GetLoadBalancerPortOk() (*int32, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerPort, true @@ -136,5 +136,3 @@ func (v *NullableLoadBalancerLight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_sticky_cookie_policy.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_sticky_cookie_policy.go index 7462a6488..e82344955 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_sticky_cookie_policy.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_sticky_cookie_policy.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableLoadBalancerStickyCookiePolicy) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_tag.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_tag.go index 6ccdbc547..b1a6ae63d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_tag.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_load_balancer_tag.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableLoadBalancerTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_location.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_location.go index e84377fd2..44dd348b8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_location.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_location.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableLocation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_log.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_log.go index 67085789e..561b2c01f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_log.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_log.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -668,5 +668,3 @@ func (v *NullableLog) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_maintenance_event.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_maintenance_event.go index 3ff8dab3d..b42f4a058 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_maintenance_event.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_maintenance_event.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableMaintenanceEvent) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_nat_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_nat_service.go index dc6801447..22eb65610 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_nat_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_nat_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableNatService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_net.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_net.go index 05c14e33a..225f9e76d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_net.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_net.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableNet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_access_point.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_access_point.go index 317cf3a9a..8346aa468 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_access_point.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_access_point.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -23,7 +23,7 @@ type NetAccessPoint struct { NetId *string `json:"NetId,omitempty"` // The ID of the route tables associated with the Net access point. RouteTableIds *[]string `json:"RouteTableIds,omitempty"` - // The name of the prefix list corresponding to the service with which the Net access point is associated. + // The name of the service with which the Net access point is associated. ServiceName *string `json:"ServiceName,omitempty"` // The state of the Net access point (`pending` \\| `available` \\| `deleting` \\| `deleted`). State *string `json:"State,omitempty"` @@ -298,5 +298,3 @@ func (v *NullableNetAccessPoint) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering.go index 934e0c7f5..c03e12d05 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,9 +19,9 @@ import ( type NetPeering struct { AccepterNet *AccepterNet `json:"AccepterNet,omitempty"` // The ID of the Net peering connection. - NetPeeringId *string `json:"NetPeeringId,omitempty"` - SourceNet *SourceNet `json:"SourceNet,omitempty"` - State *NetPeeringState `json:"State,omitempty"` + NetPeeringId *string `json:"NetPeeringId,omitempty"` + SourceNet *SourceNet `json:"SourceNet,omitempty"` + State *NetPeeringState `json:"State,omitempty"` // One or more tags associated with the Net peering connection. Tags *[]ResourceTag `json:"Tags,omitempty"` } @@ -258,5 +258,3 @@ func (v *NullableNetPeering) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering_state.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering_state.go index aa1e41ab6..9f4c0e54d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering_state.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_peering_state.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableNetPeeringState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_to_virtual_gateway_link.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_to_virtual_gateway_link.go index 451b93851..bd0555d5a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_net_to_virtual_gateway_link.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_net_to_virtual_gateway_link.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableNetToVirtualGatewayLink) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_nic.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_nic.go index 84ecb354f..453c79b1c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_nic.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_nic.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,10 +21,10 @@ type Nic struct { AccountId *string `json:"AccountId,omitempty"` // The description of the NIC. Description *string `json:"Description,omitempty"` - // (Net only) If `true`, the source/destination check is enabled. If `false`, it is disabled. This value must be `false` for a NAT VM to perform network address translation (NAT) in a Net. - IsSourceDestChecked *bool `json:"IsSourceDestChecked,omitempty"` - LinkNic *LinkNic `json:"LinkNic,omitempty"` - LinkPublicIp *LinkPublicIp `json:"LinkPublicIp,omitempty"` + // (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + IsSourceDestChecked *bool `json:"IsSourceDestChecked,omitempty"` + LinkNic *LinkNic `json:"LinkNic,omitempty"` + LinkPublicIp *LinkPublicIp `json:"LinkPublicIp,omitempty"` // The Media Access Control (MAC) address of the NIC. MacAddress *string `json:"MacAddress,omitempty"` // The ID of the Net for the NIC. @@ -629,5 +629,3 @@ func (v *NullableNic) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_for_vm_creation.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_for_vm_creation.go index acca3878c..ffa38090f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_for_vm_creation.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_for_vm_creation.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // NicForVmCreation Information about the network interface card (NIC) when creating a virtual machine (VM). type NicForVmCreation struct { - // If `true`, the NIC is deleted when the VM is terminated. You can specify `true` only if you create a NIC when creating a VM. + // If true, the NIC is deleted when the VM is terminated. You can specify true only if you create a NIC when creating a VM. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` // The description of the NIC, if you are creating a NIC when creating the VM. Description *string `json:"Description,omitempty"` @@ -372,5 +372,3 @@ func (v *NullableNicForVmCreation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_light.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_light.go index bc8dd8362..bbca06426 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_light.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_nic_light.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,10 +21,10 @@ type NicLight struct { AccountId *string `json:"AccountId,omitempty"` // The description of the NIC. Description *string `json:"Description,omitempty"` - // (Net only) If `true`, the source/destination check is enabled. If `false`, it is disabled. This value must be `false` for a NAT VM to perform network address translation (NAT) in a Net. - IsSourceDestChecked *bool `json:"IsSourceDestChecked,omitempty"` - LinkNic *LinkNicLight `json:"LinkNic,omitempty"` - LinkPublicIp *LinkPublicIpLightForVm `json:"LinkPublicIp,omitempty"` + // (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. + IsSourceDestChecked *bool `json:"IsSourceDestChecked,omitempty"` + LinkNic *LinkNicLight `json:"LinkNic,omitempty"` + LinkPublicIp *LinkPublicIpLightForVm `json:"LinkPublicIp,omitempty"` // The Media Access Control (MAC) address of the NIC. MacAddress *string `json:"MacAddress,omitempty"` // The ID of the Net for the NIC. @@ -555,5 +555,3 @@ func (v *NullableNicLight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_api_key.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_api_key.go index aad11fec3..21903e7ca 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_api_key.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_api_key.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableOsuApiKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_export.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_export.go index b200eeffb..79745b1dd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_export.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_osu_export.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,8 +18,8 @@ import ( // OsuExport Information about the OSU export. type OsuExport struct { // The format of the export disk (`qcow2` \\| `raw`). - DiskImageFormat string `json:"DiskImageFormat"` - OsuApiKey *OsuApiKey `json:"OsuApiKey,omitempty"` + DiskImageFormat string `json:"DiskImageFormat"` + OsuApiKey *OsuApiKey `json:"OsuApiKey,omitempty"` // The name of the OSU bucket where you want to export the object. OsuBucket string `json:"OsuBucket"` // The URL of the manifest file. @@ -32,7 +32,7 @@ type OsuExport struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewOsuExport(diskImageFormat string, osuBucket string, ) *OsuExport { +func NewOsuExport(diskImageFormat string, osuBucket string) *OsuExport { this := OsuExport{} this.DiskImageFormat = diskImageFormat this.OsuBucket = osuBucket @@ -49,7 +49,7 @@ func NewOsuExportWithDefaults() *OsuExport { // GetDiskImageFormat returns the DiskImageFormat field value func (o *OsuExport) GetDiskImageFormat() string { - if o == nil { + if o == nil { var ret string return ret } @@ -60,7 +60,7 @@ func (o *OsuExport) GetDiskImageFormat() string { // GetDiskImageFormatOk returns a tuple with the DiskImageFormat field value // and a boolean to check if the value has been set. func (o *OsuExport) GetDiskImageFormatOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DiskImageFormat, true @@ -105,7 +105,7 @@ func (o *OsuExport) SetOsuApiKey(v OsuApiKey) { // GetOsuBucket returns the OsuBucket field value func (o *OsuExport) GetOsuBucket() string { - if o == nil { + if o == nil { var ret string return ret } @@ -116,7 +116,7 @@ func (o *OsuExport) GetOsuBucket() string { // GetOsuBucketOk returns a tuple with the OsuBucket field value // and a boolean to check if the value has been set. func (o *OsuExport) GetOsuBucketOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.OsuBucket, true @@ -246,5 +246,3 @@ func (v *NullableOsuExport) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource.go index ded1383f8..b8cbb539f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type PermissionsOnResource struct { // The account ID of one or more users who have permissions for the resource. AccountIds *[]string `json:"AccountIds,omitempty"` - // If `true`, the resource is public. If `false`, the resource is private. + // If true, the resource is public. If false, the resource is private. GlobalPermission *bool `json:"GlobalPermission,omitempty"` } @@ -150,5 +150,3 @@ func (v *NullablePermissionsOnResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource_creation.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource_creation.go index 2d62148f6..8ee1c1721 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource_creation.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_permissions_on_resource_creation.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // PermissionsOnResourceCreation Information about the permissions for the resource. type PermissionsOnResourceCreation struct { Additions *PermissionsOnResource `json:"Additions,omitempty"` - Removals *PermissionsOnResource `json:"Removals,omitempty"` + Removals *PermissionsOnResource `json:"Removals,omitempty"` } // NewPermissionsOnResourceCreation instantiates a new PermissionsOnResourceCreation object @@ -148,5 +148,3 @@ func (v *NullablePermissionsOnResourceCreation) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_placement.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_placement.go index d6862e04f..bd7263478 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_placement.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_placement.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullablePlacement) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip.go index 00ad32a21..052ed48b1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // PrivateIp Information about the private IP. type PrivateIp struct { - // If `true`, the IP address is the primary private IP address of the NIC. - IsPrimary *bool `json:"IsPrimary,omitempty"` + // If true, the IP address is the primary private IP address of the NIC. + IsPrimary *bool `json:"IsPrimary,omitempty"` LinkPublicIp *LinkPublicIp `json:"LinkPublicIp,omitempty"` // The name of the private DNS. PrivateDnsName *string `json:"PrivateDnsName,omitempty"` @@ -223,5 +223,3 @@ func (v *NullablePrivateIp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light.go index 4937ac730..5c4e09da7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // PrivateIpLight Information about the private IP. type PrivateIpLight struct { - // If `true`, the IP address is the primary private IP address of the NIC. + // If true, the IP address is the primary private IP address of the NIC. IsPrimary *bool `json:"IsPrimary,omitempty"` // The private IP address of the NIC. PrivateIp *string `json:"PrivateIp,omitempty"` @@ -150,5 +150,3 @@ func (v *NullablePrivateIpLight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light_for_vm.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light_for_vm.go index 74b9ef788..7cf2d4e8b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light_for_vm.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_private_ip_light_for_vm.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // PrivateIpLightForVm Information about the private IP of the NIC. type PrivateIpLightForVm struct { - // If `true`, the IP address is the primary private IP address of the NIC. - IsPrimary *bool `json:"IsPrimary,omitempty"` + // If true, the IP address is the primary private IP address of the NIC. + IsPrimary *bool `json:"IsPrimary,omitempty"` LinkPublicIp *LinkPublicIpLightForVm `json:"LinkPublicIp,omitempty"` // The name of the private DNS. PrivateDnsName *string `json:"PrivateDnsName,omitempty"` @@ -223,5 +223,3 @@ func (v *NullablePrivateIpLightForVm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_product_type.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_product_type.go index 257385f84..926e4559c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_product_type.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_product_type.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableProductType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip.go index f812e563e..be28a30a2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -372,5 +372,3 @@ func (v *NullablePublicIp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip_light.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip_light.go index ef70c71d5..273786c9f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip_light.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_public_ip_light.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullablePublicIpLight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_quota.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_quota.go index 8ba973474..416faab73 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_quota.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_quota.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -335,5 +335,3 @@ func (v *NullableQuota) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_quota_types.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_quota_types.go index c427647e9..f8538eef3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_quota_types.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_quota_types.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableQuotaTypes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_request.go index c21d4389f..77a36c492 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadAccessKeysRequest struct for ReadAccessKeysRequest type ReadAccessKeysRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersAccessKeys `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadAccessKeysRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_response.go index 57c89cdc8..24955ccd8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_access_keys_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadAccessKeysResponse struct for ReadAccessKeysResponse type ReadAccessKeysResponse struct { // A list of access keys. - AccessKeys *[]AccessKey `json:"AccessKeys,omitempty"` + AccessKeys *[]AccessKey `json:"AccessKeys,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadAccessKeysResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_request.go index 534cfb2e8..fb4147d3c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadAccountsRequest struct for ReadAccountsRequest type ReadAccountsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -113,5 +113,3 @@ func (v *NullableReadAccountsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_response.go index c2075120f..4a83d85fd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_accounts_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadAccountsResponse struct for ReadAccountsResponse type ReadAccountsResponse struct { // The list of the accounts. - Accounts *[]Account `json:"Accounts,omitempty"` + Accounts *[]Account `json:"Accounts,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadAccountsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_request.go index 0ba44b0c0..90adf3306 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadAdminPasswordRequest struct for ReadAdminPasswordRequest type ReadAdminPasswordRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the VM. VmId string `json:"VmId"` @@ -27,7 +27,7 @@ type ReadAdminPasswordRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReadAdminPasswordRequest(vmId string, ) *ReadAdminPasswordRequest { +func NewReadAdminPasswordRequest(vmId string) *ReadAdminPasswordRequest { this := ReadAdminPasswordRequest{} this.VmId = vmId return &this @@ -75,7 +75,7 @@ func (o *ReadAdminPasswordRequest) SetDryRun(v bool) { // GetVmId returns the VmId field value func (o *ReadAdminPasswordRequest) GetVmId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *ReadAdminPasswordRequest) GetVmId() string { // GetVmIdOk returns a tuple with the VmId field value // and a boolean to check if the value has been set. func (o *ReadAdminPasswordRequest) GetVmIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmId, true @@ -143,5 +143,3 @@ func (v *NullableReadAdminPasswordRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_response.go index ffd2278e4..b7777e3b3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_admin_password_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadAdminPasswordResponse struct for ReadAdminPasswordResponse type ReadAdminPasswordResponse struct { // The password of the VM. After the first boot, returns an empty string. - AdminPassword *string `json:"AdminPassword,omitempty"` + AdminPassword *string `json:"AdminPassword,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` // The ID of the VM. VmId *string `json:"VmId,omitempty"` @@ -186,5 +186,3 @@ func (v *NullableReadAdminPasswordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_access_rules_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_access_rules_request.go new file mode 100644 index 000000000..c084befb3 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_access_rules_request.go @@ -0,0 +1,151 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// ReadApiAccessRulesRequest struct for ReadApiAccessRulesRequest +type ReadApiAccessRulesRequest struct { + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` + Filters *FiltersApiAccessRule `json:"Filters,omitempty"` +} + +// NewReadApiAccessRulesRequest instantiates a new ReadApiAccessRulesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadApiAccessRulesRequest() *ReadApiAccessRulesRequest { + this := ReadApiAccessRulesRequest{} + return &this +} + +// NewReadApiAccessRulesRequestWithDefaults instantiates a new ReadApiAccessRulesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadApiAccessRulesRequestWithDefaults() *ReadApiAccessRulesRequest { + this := ReadApiAccessRulesRequest{} + return &this +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *ReadApiAccessRulesRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadApiAccessRulesRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *ReadApiAccessRulesRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *ReadApiAccessRulesRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *ReadApiAccessRulesRequest) GetFilters() FiltersApiAccessRule { + if o == nil || o.Filters == nil { + var ret FiltersApiAccessRule + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadApiAccessRulesRequest) GetFiltersOk() (*FiltersApiAccessRule, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *ReadApiAccessRulesRequest) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given FiltersApiAccessRule and assigns it to the Filters field. +func (o *ReadApiAccessRulesRequest) SetFilters(v FiltersApiAccessRule) { + o.Filters = &v +} + +func (o ReadApiAccessRulesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + if o.Filters != nil { + toSerialize["Filters"] = o.Filters + } + return json.Marshal(toSerialize) +} + +type NullableReadApiAccessRulesRequest struct { + value *ReadApiAccessRulesRequest + isSet bool +} + +func (v NullableReadApiAccessRulesRequest) Get() *ReadApiAccessRulesRequest { + return v.value +} + +func (v *NullableReadApiAccessRulesRequest) Set(val *ReadApiAccessRulesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReadApiAccessRulesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReadApiAccessRulesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadApiAccessRulesRequest(val *ReadApiAccessRulesRequest) *NullableReadApiAccessRulesRequest { + return &NullableReadApiAccessRulesRequest{value: val, isSet: true} +} + +func (v NullableReadApiAccessRulesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadApiAccessRulesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_access_rules_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_access_rules_response.go new file mode 100644 index 000000000..5874ca976 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_access_rules_response.go @@ -0,0 +1,151 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// ReadApiAccessRulesResponse struct for ReadApiAccessRulesResponse +type ReadApiAccessRulesResponse struct { + // A list of API access rules. + ApiAccessRules *[]ApiAccessRule `json:"ApiAccessRules,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewReadApiAccessRulesResponse instantiates a new ReadApiAccessRulesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadApiAccessRulesResponse() *ReadApiAccessRulesResponse { + this := ReadApiAccessRulesResponse{} + return &this +} + +// NewReadApiAccessRulesResponseWithDefaults instantiates a new ReadApiAccessRulesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadApiAccessRulesResponseWithDefaults() *ReadApiAccessRulesResponse { + this := ReadApiAccessRulesResponse{} + return &this +} + +// GetApiAccessRules returns the ApiAccessRules field value if set, zero value otherwise. +func (o *ReadApiAccessRulesResponse) GetApiAccessRules() []ApiAccessRule { + if o == nil || o.ApiAccessRules == nil { + var ret []ApiAccessRule + return ret + } + return *o.ApiAccessRules +} + +// GetApiAccessRulesOk returns a tuple with the ApiAccessRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadApiAccessRulesResponse) GetApiAccessRulesOk() (*[]ApiAccessRule, bool) { + if o == nil || o.ApiAccessRules == nil { + return nil, false + } + return o.ApiAccessRules, true +} + +// HasApiAccessRules returns a boolean if a field has been set. +func (o *ReadApiAccessRulesResponse) HasApiAccessRules() bool { + if o != nil && o.ApiAccessRules != nil { + return true + } + + return false +} + +// SetApiAccessRules gets a reference to the given []ApiAccessRule and assigns it to the ApiAccessRules field. +func (o *ReadApiAccessRulesResponse) SetApiAccessRules(v []ApiAccessRule) { + o.ApiAccessRules = &v +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *ReadApiAccessRulesResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadApiAccessRulesResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *ReadApiAccessRulesResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *ReadApiAccessRulesResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o ReadApiAccessRulesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiAccessRules != nil { + toSerialize["ApiAccessRules"] = o.ApiAccessRules + } + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableReadApiAccessRulesResponse struct { + value *ReadApiAccessRulesResponse + isSet bool +} + +func (v NullableReadApiAccessRulesResponse) Get() *ReadApiAccessRulesResponse { + return v.value +} + +func (v *NullableReadApiAccessRulesResponse) Set(val *ReadApiAccessRulesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReadApiAccessRulesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReadApiAccessRulesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadApiAccessRulesResponse(val *ReadApiAccessRulesResponse) *NullableReadApiAccessRulesResponse { + return &NullableReadApiAccessRulesResponse{value: val, isSet: true} +} + +func (v NullableReadApiAccessRulesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadApiAccessRulesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_request.go index 58d5eb897..f8c60c651 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,14 +17,14 @@ import ( // ReadApiLogsRequest struct for ReadApiLogsRequest type ReadApiLogsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersApiLog `json:"Filters,omitempty"` // The token to request the next page of results. NextPageToken *string `json:"NextPageToken,omitempty"` // The maximum number of items returned in a single page. By default, 100. ResultsPerPage *int32 `json:"ResultsPerPage,omitempty"` - With *With `json:"With,omitempty"` + With *With `json:"With,omitempty"` } // NewReadApiLogsRequest instantiates a new ReadApiLogsRequest object @@ -259,5 +259,3 @@ func (v *NullableReadApiLogsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_response.go index f4d315c87..b778cfca6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_api_logs_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -20,7 +20,7 @@ type ReadApiLogsResponse struct { // Information displayed in one or more API logs. Logs *[]Log `json:"Logs,omitempty"` // The token to request the next page of results. - NextPageToken *string `json:"NextPageToken,omitempty"` + NextPageToken *string `json:"NextPageToken,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -186,5 +186,3 @@ func (v *NullableReadApiLogsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_cas_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_cas_request.go new file mode 100644 index 000000000..3e74b0298 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_cas_request.go @@ -0,0 +1,151 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// ReadCasRequest struct for ReadCasRequest +type ReadCasRequest struct { + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` + Filters *FiltersCa `json:"Filters,omitempty"` +} + +// NewReadCasRequest instantiates a new ReadCasRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadCasRequest() *ReadCasRequest { + this := ReadCasRequest{} + return &this +} + +// NewReadCasRequestWithDefaults instantiates a new ReadCasRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadCasRequestWithDefaults() *ReadCasRequest { + this := ReadCasRequest{} + return &this +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *ReadCasRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadCasRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *ReadCasRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *ReadCasRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *ReadCasRequest) GetFilters() FiltersCa { + if o == nil || o.Filters == nil { + var ret FiltersCa + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadCasRequest) GetFiltersOk() (*FiltersCa, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *ReadCasRequest) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given FiltersCa and assigns it to the Filters field. +func (o *ReadCasRequest) SetFilters(v FiltersCa) { + o.Filters = &v +} + +func (o ReadCasRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + if o.Filters != nil { + toSerialize["Filters"] = o.Filters + } + return json.Marshal(toSerialize) +} + +type NullableReadCasRequest struct { + value *ReadCasRequest + isSet bool +} + +func (v NullableReadCasRequest) Get() *ReadCasRequest { + return v.value +} + +func (v *NullableReadCasRequest) Set(val *ReadCasRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReadCasRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReadCasRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadCasRequest(val *ReadCasRequest) *NullableReadCasRequest { + return &NullableReadCasRequest{value: val, isSet: true} +} + +func (v NullableReadCasRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadCasRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_cas_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_cas_response.go new file mode 100644 index 000000000..3ff929b4c --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_cas_response.go @@ -0,0 +1,151 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// ReadCasResponse struct for ReadCasResponse +type ReadCasResponse struct { + // Information about one or more CAs. + Cas *[]Ca `json:"Cas,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewReadCasResponse instantiates a new ReadCasResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadCasResponse() *ReadCasResponse { + this := ReadCasResponse{} + return &this +} + +// NewReadCasResponseWithDefaults instantiates a new ReadCasResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadCasResponseWithDefaults() *ReadCasResponse { + this := ReadCasResponse{} + return &this +} + +// GetCas returns the Cas field value if set, zero value otherwise. +func (o *ReadCasResponse) GetCas() []Ca { + if o == nil || o.Cas == nil { + var ret []Ca + return ret + } + return *o.Cas +} + +// GetCasOk returns a tuple with the Cas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadCasResponse) GetCasOk() (*[]Ca, bool) { + if o == nil || o.Cas == nil { + return nil, false + } + return o.Cas, true +} + +// HasCas returns a boolean if a field has been set. +func (o *ReadCasResponse) HasCas() bool { + if o != nil && o.Cas != nil { + return true + } + + return false +} + +// SetCas gets a reference to the given []Ca and assigns it to the Cas field. +func (o *ReadCasResponse) SetCas(v []Ca) { + o.Cas = &v +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *ReadCasResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadCasResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *ReadCasResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *ReadCasResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o ReadCasResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Cas != nil { + toSerialize["Cas"] = o.Cas + } + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableReadCasResponse struct { + value *ReadCasResponse + isSet bool +} + +func (v NullableReadCasResponse) Get() *ReadCasResponse { + return v.value +} + +func (v *NullableReadCasResponse) Set(val *ReadCasResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReadCasResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReadCasResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadCasResponse(val *ReadCasResponse) *NullableReadCasResponse { + return &NullableReadCasResponse{value: val, isSet: true} +} + +func (v NullableReadCasResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadCasResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_request.go index c1bc33fac..594b79b32 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadClientGatewaysRequest struct for ReadClientGatewaysRequest type ReadClientGatewaysRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersClientGateway `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadClientGatewaysRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_response.go index 1ff6aa675..099b0004f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_client_gateways_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadClientGatewaysResponse struct for ReadClientGatewaysResponse type ReadClientGatewaysResponse struct { // Information about one or more client gateways. - ClientGateways *[]ClientGateway `json:"ClientGateways,omitempty"` + ClientGateways *[]ClientGateway `json:"ClientGateways,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadClientGatewaysResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_request.go index 7e3e305d8..9d0b583a2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadConsoleOutputRequest struct for ReadConsoleOutputRequest type ReadConsoleOutputRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the VM. VmId string `json:"VmId"` @@ -27,7 +27,7 @@ type ReadConsoleOutputRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReadConsoleOutputRequest(vmId string, ) *ReadConsoleOutputRequest { +func NewReadConsoleOutputRequest(vmId string) *ReadConsoleOutputRequest { this := ReadConsoleOutputRequest{} this.VmId = vmId return &this @@ -75,7 +75,7 @@ func (o *ReadConsoleOutputRequest) SetDryRun(v bool) { // GetVmId returns the VmId field value func (o *ReadConsoleOutputRequest) GetVmId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *ReadConsoleOutputRequest) GetVmId() string { // GetVmIdOk returns a tuple with the VmId field value // and a boolean to check if the value has been set. func (o *ReadConsoleOutputRequest) GetVmIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmId, true @@ -143,5 +143,3 @@ func (v *NullableReadConsoleOutputRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_response.go index 08322e33a..048930550 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_console_output_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadConsoleOutputResponse struct for ReadConsoleOutputResponse type ReadConsoleOutputResponse struct { // The Base64-encoded output of the console. If a command line tool is used, the output is decoded by the tool. - ConsoleOutput *string `json:"ConsoleOutput,omitempty"` + ConsoleOutput *string `json:"ConsoleOutput,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` // The ID of the VM. VmId *string `json:"VmId,omitempty"` @@ -186,5 +186,3 @@ func (v *NullableReadConsoleOutputResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_request.go index 140c6fdc4..c1e047e89 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadConsumptionAccountRequest struct for ReadConsumptionAccountRequest type ReadConsumptionAccountRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The beginning of the time period, in ISO 8601 date-time format (for example, `2017-06-14` or `2017-06-14T00:00:00Z`). FromDate string `json:"FromDate"` @@ -29,7 +29,7 @@ type ReadConsumptionAccountRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReadConsumptionAccountRequest(fromDate string, toDate string, ) *ReadConsumptionAccountRequest { +func NewReadConsumptionAccountRequest(fromDate string, toDate string) *ReadConsumptionAccountRequest { this := ReadConsumptionAccountRequest{} this.FromDate = fromDate this.ToDate = toDate @@ -78,7 +78,7 @@ func (o *ReadConsumptionAccountRequest) SetDryRun(v bool) { // GetFromDate returns the FromDate field value func (o *ReadConsumptionAccountRequest) GetFromDate() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *ReadConsumptionAccountRequest) GetFromDate() string { // GetFromDateOk returns a tuple with the FromDate field value // and a boolean to check if the value has been set. func (o *ReadConsumptionAccountRequest) GetFromDateOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FromDate, true @@ -102,7 +102,7 @@ func (o *ReadConsumptionAccountRequest) SetFromDate(v string) { // GetToDate returns the ToDate field value func (o *ReadConsumptionAccountRequest) GetToDate() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *ReadConsumptionAccountRequest) GetToDate() string { // GetToDateOk returns a tuple with the ToDate field value // and a boolean to check if the value has been set. func (o *ReadConsumptionAccountRequest) GetToDateOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ToDate, true @@ -173,5 +173,3 @@ func (v *NullableReadConsumptionAccountRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_response.go index 0ff5a7d2f..9d1f9cf2a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_consumption_account_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadConsumptionAccountResponse struct { // Information about the resources consumed during the specified time period. ConsumptionEntries *[]ConsumptionEntry `json:"ConsumptionEntries,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadConsumptionAccountResponse instantiates a new ReadConsumptionAccountResponse object @@ -149,5 +149,3 @@ func (v *NullableReadConsumptionAccountResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_request.go index 6ea45e5e2..c4e902a06 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadDhcpOptionsRequest struct for ReadDhcpOptionsRequest type ReadDhcpOptionsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersDhcpOptions `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadDhcpOptionsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_response.go index 4cab2e825..be7bcdc40 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_dhcp_options_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadDhcpOptionsResponse struct { // Information about one or more DHCP options sets. DhcpOptionsSets *[]DhcpOptionsSet `json:"DhcpOptionsSets,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadDhcpOptionsResponse instantiates a new ReadDhcpOptionsResponse object @@ -149,5 +149,3 @@ func (v *NullableReadDhcpOptionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_request.go index 3e81fcc70..54746b399 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadDirectLinkInterfacesRequest struct for ReadDirectLinkInterfacesRequest type ReadDirectLinkInterfacesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersDirectLinkInterface `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadDirectLinkInterfacesRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_response.go index 5bd51d01a..996fbeb82 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_link_interfaces_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadDirectLinkInterfacesResponse struct { // Information about one or more DirectLink interfaces. DirectLinkInterfaces *[]DirectLinkInterfaces `json:"DirectLinkInterfaces,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadDirectLinkInterfacesResponse instantiates a new ReadDirectLinkInterfacesResponse object @@ -149,5 +149,3 @@ func (v *NullableReadDirectLinkInterfacesResponse) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_request.go index 05d65c7d3..e97da5d10 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadDirectLinksRequest struct for ReadDirectLinksRequest type ReadDirectLinksRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersDirectLink `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadDirectLinksRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_response.go index 52ead4e2f..1e5dbaeb8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_direct_links_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadDirectLinksResponse struct for ReadDirectLinksResponse type ReadDirectLinksResponse struct { // Information about one or more DirectLinks. - DirectLinks *[]DirectLink `json:"DirectLinks,omitempty"` + DirectLinks *[]DirectLink `json:"DirectLinks,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadDirectLinksResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_request.go index 6bd8c9fd5..36d7fa74f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadFlexibleGpuCatalogRequest struct for ReadFlexibleGpuCatalogRequest type ReadFlexibleGpuCatalogRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -113,5 +113,3 @@ func (v *NullableReadFlexibleGpuCatalogRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_response.go index 6ecddabf3..93a058a48 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpu_catalog_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadFlexibleGpuCatalogResponse struct { // Information about one or more fGPUs available in the public catalog. FlexibleGpuCatalog *[]FlexibleGpuCatalog `json:"FlexibleGpuCatalog,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadFlexibleGpuCatalogResponse instantiates a new ReadFlexibleGpuCatalogResponse object @@ -149,5 +149,3 @@ func (v *NullableReadFlexibleGpuCatalogResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_request.go index 79c9c492b..388459df6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadFlexibleGpusRequest struct for ReadFlexibleGpusRequest type ReadFlexibleGpusRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersFlexibleGpu `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadFlexibleGpusRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_response.go index 72a25b19b..d22a6cb34 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_flexible_gpus_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadFlexibleGpusResponse struct for ReadFlexibleGpusResponse type ReadFlexibleGpusResponse struct { // Information about one or more fGPUs. - FlexibleGpus *[]FlexibleGpu `json:"FlexibleGpus,omitempty"` + FlexibleGpus *[]FlexibleGpu `json:"FlexibleGpus,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadFlexibleGpusResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_request.go index 8e293f315..ea6dd5811 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadImageExportTasksRequest struct for ReadImageExportTasksRequest type ReadImageExportTasksRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersExportTask `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadImageExportTasksRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_response.go index 992f212ef..de6640ef7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_image_export_tasks_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadImageExportTasksResponse struct { // Information about one or more image export tasks. ImageExportTasks *[]ImageExportTask `json:"ImageExportTasks,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadImageExportTasksResponse instantiates a new ReadImageExportTasksResponse object @@ -149,5 +149,3 @@ func (v *NullableReadImageExportTasksResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_request.go index 2a4b56602..4a047d7a9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadImagesRequest struct for ReadImagesRequest type ReadImagesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersImage `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadImagesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_response.go index a499536ae..cabf67d2a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_images_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadImagesResponse struct for ReadImagesResponse type ReadImagesResponse struct { // Information about one or more OMIs. - Images *[]Image `json:"Images,omitempty"` + Images *[]Image `json:"Images,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadImagesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_request.go index 0935fbff7..4a23d2c58 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadInternetServicesRequest struct for ReadInternetServicesRequest type ReadInternetServicesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersInternetService `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadInternetServicesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_response.go index b4a974120..48898702b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_internet_services_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadInternetServicesResponse struct { // Information about one or more Internet services. InternetServices *[]InternetService `json:"InternetServices,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadInternetServicesResponse instantiates a new ReadInternetServicesResponse object @@ -149,5 +149,3 @@ func (v *NullableReadInternetServicesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_request.go index aa62b8754..233b96f15 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadKeypairsRequest struct for ReadKeypairsRequest type ReadKeypairsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersKeypair `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadKeypairsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_response.go index 44ac6f2f6..6b2ccef85 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_keypairs_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadKeypairsResponse struct for ReadKeypairsResponse type ReadKeypairsResponse struct { // Information about one or more keypairs. - Keypairs *[]Keypair `json:"Keypairs,omitempty"` + Keypairs *[]Keypair `json:"Keypairs,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadKeypairsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_request.go index 1cbee21a1..b9d84240e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadListenerRulesRequest struct for ReadListenerRulesRequest type ReadListenerRulesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersListenerRule `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadListenerRulesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_response.go index ec476cda6..a7e128df2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_listener_rules_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadListenerRulesResponse struct for ReadListenerRulesResponse type ReadListenerRulesResponse struct { // The list of the rules to describe. - ListenerRules *[]ListenerRule `json:"ListenerRules,omitempty"` + ListenerRules *[]ListenerRule `json:"ListenerRules,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadListenerRulesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_request.go index 79ca2fffd..71eaaa329 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadLoadBalancerTagsRequest struct for ReadLoadBalancerTagsRequest type ReadLoadBalancerTagsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more load balancer names. LoadBalancerNames []string `json:"LoadBalancerNames"` @@ -27,7 +27,7 @@ type ReadLoadBalancerTagsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReadLoadBalancerTagsRequest(loadBalancerNames []string, ) *ReadLoadBalancerTagsRequest { +func NewReadLoadBalancerTagsRequest(loadBalancerNames []string) *ReadLoadBalancerTagsRequest { this := ReadLoadBalancerTagsRequest{} this.LoadBalancerNames = loadBalancerNames return &this @@ -75,7 +75,7 @@ func (o *ReadLoadBalancerTagsRequest) SetDryRun(v bool) { // GetLoadBalancerNames returns the LoadBalancerNames field value func (o *ReadLoadBalancerTagsRequest) GetLoadBalancerNames() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -86,7 +86,7 @@ func (o *ReadLoadBalancerTagsRequest) GetLoadBalancerNames() []string { // GetLoadBalancerNamesOk returns a tuple with the LoadBalancerNames field value // and a boolean to check if the value has been set. func (o *ReadLoadBalancerTagsRequest) GetLoadBalancerNamesOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerNames, true @@ -143,5 +143,3 @@ func (v *NullableReadLoadBalancerTagsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_response.go index b044343f2..b7c63dd53 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancer_tags_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadLoadBalancerTagsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_request.go index 06863a7a5..cf6c01c9c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadLoadBalancersRequest struct for ReadLoadBalancersRequest type ReadLoadBalancersRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersLoadBalancer `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadLoadBalancersRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_response.go index e3ddb2d4f..461c9ef42 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_load_balancers_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadLoadBalancersResponse struct for ReadLoadBalancersResponse type ReadLoadBalancersResponse struct { // Information about one or more load balancers. - LoadBalancers *[]LoadBalancer `json:"LoadBalancers,omitempty"` + LoadBalancers *[]LoadBalancer `json:"LoadBalancers,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadLoadBalancersResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_request.go index d2a4ab555..9e221ef57 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadLocationsRequest struct for ReadLocationsRequest type ReadLocationsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -113,5 +113,3 @@ func (v *NullableReadLocationsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_response.go index f1db049cc..eb50a25b0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_locations_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadLocationsResponse struct for ReadLocationsResponse type ReadLocationsResponse struct { // Information about one or more locations. - Locations *[]Location `json:"Locations,omitempty"` + Locations *[]Location `json:"Locations,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadLocationsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_request.go index e47d936a2..721a74d42 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadNatServicesRequest struct for ReadNatServicesRequest type ReadNatServicesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersNatService `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNatServicesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_response.go index 999ab8d21..0341ccfd2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nat_services_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadNatServicesResponse struct for ReadNatServicesResponse type ReadNatServicesResponse struct { // Information about one or more NAT services. - NatServices *[]NatService `json:"NatServices,omitempty"` + NatServices *[]NatService `json:"NatServices,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNatServicesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_request.go index e85456458..c7f803ac0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadNetAccessPointServicesRequest struct for ReadNetAccessPointServicesRequest type ReadNetAccessPointServicesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersService `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNetAccessPointServicesRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_response.go index 7b74b76f8..2b263eccd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_point_services_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadNetAccessPointServicesResponse) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_request.go index 6fb8220db..2a2d8db1a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadNetAccessPointsRequest struct for ReadNetAccessPointsRequest type ReadNetAccessPointsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersNetAccessPoint `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNetAccessPointsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_response.go index b39fb6ecc..8967b7203 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_access_points_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadNetAccessPointsResponse struct { // One or more Net access points. NetAccessPoints *[]NetAccessPoint `json:"NetAccessPoints,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadNetAccessPointsResponse instantiates a new ReadNetAccessPointsResponse object @@ -149,5 +149,3 @@ func (v *NullableReadNetAccessPointsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_request.go index e35cc8ca3..c9ebd78c5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadNetPeeringsRequest struct for ReadNetPeeringsRequest type ReadNetPeeringsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersNetPeering `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNetPeeringsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_response.go index 42ca287a2..34fbddc70 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_net_peerings_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadNetPeeringsResponse struct for ReadNetPeeringsResponse type ReadNetPeeringsResponse struct { // Information about one or more Net peering connections. - NetPeerings *[]NetPeering `json:"NetPeerings,omitempty"` + NetPeerings *[]NetPeering `json:"NetPeerings,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNetPeeringsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_request.go index 3771bb78e..21aaeebb7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadNetsRequest struct for ReadNetsRequest type ReadNetsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersNet `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNetsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_response.go index 8c7babf71..5ff916ef8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nets_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadNetsResponse struct for ReadNetsResponse type ReadNetsResponse struct { // Information about the described Nets. - Nets *[]Net `json:"Nets,omitempty"` + Nets *[]Net `json:"Nets,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNetsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_request.go index 51ad0f960..98fcd2dbf 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadNicsRequest struct for ReadNicsRequest type ReadNicsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersNic `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNicsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_response.go index 49c510ead..b97296858 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_nics_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadNicsResponse struct for ReadNicsResponse type ReadNicsResponse struct { // Information about one or more NICs. - Nics *[]Nic `json:"Nics,omitempty"` + Nics *[]Nic `json:"Nics,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadNicsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_request.go index 523f5a3bb..cf0d8690a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadProductTypesRequest struct for ReadProductTypesRequest type ReadProductTypesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersProductType `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadProductTypesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_response.go index 161f312df..75e5cbb2a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_product_types_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadProductTypesResponse struct for ReadProductTypesResponse type ReadProductTypesResponse struct { // Information about one or more product types. - ProductTypes *[]ProductType `json:"ProductTypes,omitempty"` + ProductTypes *[]ProductType `json:"ProductTypes,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadProductTypesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_request.go index e69aee529..f66c9cfb4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadPublicIpRangesRequest struct for ReadPublicIpRangesRequest type ReadPublicIpRangesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -113,5 +113,3 @@ func (v *NullableReadPublicIpRangesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_response.go index 697b83e5a..d53631ee6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ip_ranges_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadPublicIpRangesResponse struct for ReadPublicIpRangesResponse type ReadPublicIpRangesResponse struct { // The list of public IPv4 addresses used in the Region, in CIDR notation. - PublicIps *[]string `json:"PublicIps,omitempty"` + PublicIps *[]string `json:"PublicIps,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadPublicIpRangesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_request.go index 4973a8a4a..11c893e28 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadPublicIpsRequest struct for ReadPublicIpsRequest type ReadPublicIpsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersPublicIp `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadPublicIpsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_response.go index 186f8bc00..ad8fa6ef3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_public_ips_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadPublicIpsResponse struct for ReadPublicIpsResponse type ReadPublicIpsResponse struct { // Information about one or more EIPs. - PublicIps *[]PublicIp `json:"PublicIps,omitempty"` + PublicIps *[]PublicIp `json:"PublicIps,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadPublicIpsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_request.go index 5836016a8..c358f17f5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadQuotasRequest struct for ReadQuotasRequest type ReadQuotasRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersQuota `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadQuotasRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_response.go index a6112d053..25b1760b5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_quotas_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadQuotasResponse struct for ReadQuotasResponse type ReadQuotasResponse struct { // Information about one or more quotas. - QuotaTypes *[]QuotaTypes `json:"QuotaTypes,omitempty"` + QuotaTypes *[]QuotaTypes `json:"QuotaTypes,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadQuotasResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_request.go index 4b14bf9d2..1825f585b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ReadRegionsRequest struct for ReadRegionsRequest type ReadRegionsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -113,5 +113,3 @@ func (v *NullableReadRegionsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_response.go index d48c6e246..a883a9b4f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_regions_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // ReadRegionsResponse struct for ReadRegionsResponse type ReadRegionsResponse struct { // Information about one or more Regions. - Regions *[]Region `json:"Regions,omitempty"` + Regions *[]Region `json:"Regions,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadRegionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_request.go index 82a7183d6..14eeffb54 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadRouteTablesRequest struct for ReadRouteTablesRequest type ReadRouteTablesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersRouteTable `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadRouteTablesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_response.go index afffc2852..735f26038 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_route_tables_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadRouteTablesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_request.go index 1c1d048f1..d235022e1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadSecretAccessKeyRequest struct { // The ID of the access key. AccessKeyId string `json:"AccessKeyId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` } @@ -27,7 +27,7 @@ type ReadSecretAccessKeyRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReadSecretAccessKeyRequest(accessKeyId string, ) *ReadSecretAccessKeyRequest { +func NewReadSecretAccessKeyRequest(accessKeyId string) *ReadSecretAccessKeyRequest { this := ReadSecretAccessKeyRequest{} this.AccessKeyId = accessKeyId return &this @@ -43,7 +43,7 @@ func NewReadSecretAccessKeyRequestWithDefaults() *ReadSecretAccessKeyRequest { // GetAccessKeyId returns the AccessKeyId field value func (o *ReadSecretAccessKeyRequest) GetAccessKeyId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -54,7 +54,7 @@ func (o *ReadSecretAccessKeyRequest) GetAccessKeyId() string { // GetAccessKeyIdOk returns a tuple with the AccessKeyId field value // and a boolean to check if the value has been set. func (o *ReadSecretAccessKeyRequest) GetAccessKeyIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccessKeyId, true @@ -143,5 +143,3 @@ func (v *NullableReadSecretAccessKeyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_response.go index 079aee2e1..e71a0af7e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_secret_access_key_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadSecretAccessKeyResponse struct for ReadSecretAccessKeyResponse type ReadSecretAccessKeyResponse struct { - AccessKey *AccessKeySecretKey `json:"AccessKey,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + AccessKey *AccessKeySecretKey `json:"AccessKey,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadSecretAccessKeyResponse instantiates a new ReadSecretAccessKeyResponse object @@ -148,5 +148,3 @@ func (v *NullableReadSecretAccessKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_request.go index 3eb5ae982..7bd933f23 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadSecurityGroupsRequest struct for ReadSecurityGroupsRequest type ReadSecurityGroupsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersSecurityGroup `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadSecurityGroupsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_response.go index b8f14fad7..764af0bec 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_security_groups_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadSecurityGroupsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_request.go index 73011ca6a..7e0783456 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadServerCertificatesRequest struct for ReadServerCertificatesRequest type ReadServerCertificatesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersServerCertificate `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadServerCertificatesRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_response.go index cf00b3b60..03748215f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_server_certificates_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadServerCertificatesResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_request.go index bceb0ec6a..9c45aff68 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadSnapshotExportTasksRequest struct for ReadSnapshotExportTasksRequest type ReadSnapshotExportTasksRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersExportTask `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadSnapshotExportTasksRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_response.go index 358c26d95..5ef6d34c9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshot_export_tasks_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadSnapshotExportTasksResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_request.go index 7e7f124ca..5474dd2f0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadSnapshotsRequest struct for ReadSnapshotsRequest type ReadSnapshotsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersSnapshot `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadSnapshotsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_response.go index f2d16cb8f..70bc2fdb4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_snapshots_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadSnapshotsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_request.go index 73987d441..3b61a48fe 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadSubnetsRequest struct for ReadSubnetsRequest type ReadSubnetsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersSubnet `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadSubnetsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_response.go index 3c64ac4dd..768fa8c92 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subnets_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadSubnetsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_request.go index 9e0ecb7a5..f41778d33 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadSubregionsRequest struct for ReadSubregionsRequest type ReadSubregionsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersSubregion `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadSubregionsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_response.go index f66b70027..d430763e8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_subregions_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadSubregionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_request.go index ca756084f..a590ae5cb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadTagsRequest struct for ReadTagsRequest type ReadTagsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersTag `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadTagsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_response.go index cfbc6d3a5..dfda067c9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_tags_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadTagsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_request.go index e8acb6ad1..2203f4611 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadVirtualGatewaysRequest struct for ReadVirtualGatewaysRequest type ReadVirtualGatewaysRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersVirtualGateway `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadVirtualGatewaysRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_response.go index fc6ac46e5..6a85150f7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_virtual_gateways_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadVirtualGatewaysResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_request.go index 06f803c8b..762d29698 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadVmTypesRequest struct for ReadVmTypesRequest type ReadVmTypesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersVmType `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadVmTypesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_response.go index 6010ab950..d027feda6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vm_types_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadVmTypesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_request.go index c6881b211..9fcc905c5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadVmsHealthRequest struct { // One or more IDs of back-end VMs. BackendVmIds *[]string `json:"BackendVmIds,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the load balancer. LoadBalancerName string `json:"LoadBalancerName"` @@ -29,7 +29,7 @@ type ReadVmsHealthRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReadVmsHealthRequest(loadBalancerName string, ) *ReadVmsHealthRequest { +func NewReadVmsHealthRequest(loadBalancerName string) *ReadVmsHealthRequest { this := ReadVmsHealthRequest{} this.LoadBalancerName = loadBalancerName return &this @@ -109,7 +109,7 @@ func (o *ReadVmsHealthRequest) SetDryRun(v bool) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *ReadVmsHealthRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -120,7 +120,7 @@ func (o *ReadVmsHealthRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *ReadVmsHealthRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -180,5 +180,3 @@ func (v *NullableReadVmsHealthRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_response.go index fccdc7199..45e9882f9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_health_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type ReadVmsHealthResponse struct { // Information about the health of one or more back-end VMs. BackendVmHealth *[]BackendVmHealth `json:"BackendVmHealth,omitempty"` - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } // NewReadVmsHealthResponse instantiates a new ReadVmsHealthResponse object @@ -149,5 +149,3 @@ func (v *NullableReadVmsHealthResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_request.go index c9db87462..635a04fcb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadVmsRequest struct for ReadVmsRequest type ReadVmsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersVm `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadVmsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_response.go index 48d573766..0a56d8be6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadVmsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_request.go index 55d11b7cc..7ccf5eaad 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,10 +17,10 @@ import ( // ReadVmsStateRequest struct for ReadVmsStateRequest type ReadVmsStateRequest struct { - // If `true`, includes the status of all VMs. By default or if set to `false`, only includes the status of running VMs. + // If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs. AllVms *bool `json:"AllVms,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersVmsState `json:"Filters,omitempty"` } @@ -186,5 +186,3 @@ func (v *NullableReadVmsStateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_response.go index e063b489b..567fa5127 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vms_state_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadVmsStateResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_request.go index f773cd723..009b0fce0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadVolumesRequest struct for ReadVolumesRequest type ReadVolumesRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersVolume `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadVolumesRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_response.go index 055e64f34..3f44572a5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_volumes_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadVolumesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_request.go index d63ac5e95..e8452c984 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // ReadVpnConnectionsRequest struct for ReadVpnConnectionsRequest type ReadVpnConnectionsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` Filters *FiltersVpnConnection `json:"Filters,omitempty"` } @@ -149,5 +149,3 @@ func (v *NullableReadVpnConnectionsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_response.go index 4f39290cf..f7161fff5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_read_vpn_connections_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableReadVpnConnectionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_request.go index 6efbbb14b..a3b3cf9b5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // RebootVmsRequest struct for RebootVmsRequest type RebootVmsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more IDs of the VMs you want to reboot. VmIds []string `json:"VmIds"` @@ -27,7 +27,7 @@ type RebootVmsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRebootVmsRequest(vmIds []string, ) *RebootVmsRequest { +func NewRebootVmsRequest(vmIds []string) *RebootVmsRequest { this := RebootVmsRequest{} this.VmIds = vmIds return &this @@ -75,7 +75,7 @@ func (o *RebootVmsRequest) SetDryRun(v bool) { // GetVmIds returns the VmIds field value func (o *RebootVmsRequest) GetVmIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -86,7 +86,7 @@ func (o *RebootVmsRequest) GetVmIds() []string { // GetVmIdsOk returns a tuple with the VmIds field value // and a boolean to check if the value has been set. func (o *RebootVmsRequest) GetVmIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmIds, true @@ -143,5 +143,3 @@ func (v *NullableRebootVmsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_response.go index fd9e1871c..a973eea2f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_reboot_vms_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableRebootVmsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_region.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_region.go index 0ae1ac42c..360ffe6b5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_region.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_region.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableRegion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_request.go index 775e0412a..f71803215 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type RegisterVmsInLoadBalancerRequest struct { // One or more IDs of back-end VMs.
Specifying the same ID several times has no effect as each back-end VM has equal weight. BackendVmIds []string `json:"BackendVmIds"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the load balancer. LoadBalancerName string `json:"LoadBalancerName"` @@ -29,7 +29,7 @@ type RegisterVmsInLoadBalancerRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRegisterVmsInLoadBalancerRequest(backendVmIds []string, loadBalancerName string, ) *RegisterVmsInLoadBalancerRequest { +func NewRegisterVmsInLoadBalancerRequest(backendVmIds []string, loadBalancerName string) *RegisterVmsInLoadBalancerRequest { this := RegisterVmsInLoadBalancerRequest{} this.BackendVmIds = backendVmIds this.LoadBalancerName = loadBalancerName @@ -46,7 +46,7 @@ func NewRegisterVmsInLoadBalancerRequestWithDefaults() *RegisterVmsInLoadBalance // GetBackendVmIds returns the BackendVmIds field value func (o *RegisterVmsInLoadBalancerRequest) GetBackendVmIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -57,7 +57,7 @@ func (o *RegisterVmsInLoadBalancerRequest) GetBackendVmIds() []string { // GetBackendVmIdsOk returns a tuple with the BackendVmIds field value // and a boolean to check if the value has been set. func (o *RegisterVmsInLoadBalancerRequest) GetBackendVmIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.BackendVmIds, true @@ -102,7 +102,7 @@ func (o *RegisterVmsInLoadBalancerRequest) SetDryRun(v bool) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *RegisterVmsInLoadBalancerRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *RegisterVmsInLoadBalancerRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *RegisterVmsInLoadBalancerRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -173,5 +173,3 @@ func (v *NullableRegisterVmsInLoadBalancerRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_response.go index 3685cbd1a..456efec31 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_register_vms_in_load_balancer_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableRegisterVmsInLoadBalancerResponse) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_request.go index 7b9033f7b..fa6cd6a70 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // RejectNetPeeringRequest struct for RejectNetPeeringRequest type RejectNetPeeringRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net peering connection you want to reject. NetPeeringId string `json:"NetPeeringId"` @@ -27,7 +27,7 @@ type RejectNetPeeringRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRejectNetPeeringRequest(netPeeringId string, ) *RejectNetPeeringRequest { +func NewRejectNetPeeringRequest(netPeeringId string) *RejectNetPeeringRequest { this := RejectNetPeeringRequest{} this.NetPeeringId = netPeeringId return &this @@ -75,7 +75,7 @@ func (o *RejectNetPeeringRequest) SetDryRun(v bool) { // GetNetPeeringId returns the NetPeeringId field value func (o *RejectNetPeeringRequest) GetNetPeeringId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *RejectNetPeeringRequest) GetNetPeeringId() string { // GetNetPeeringIdOk returns a tuple with the NetPeeringId field value // and a boolean to check if the value has been set. func (o *RejectNetPeeringRequest) GetNetPeeringIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetPeeringId, true @@ -143,5 +143,3 @@ func (v *NullableRejectNetPeeringRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_response.go index 07dd5b382..ecd698881 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_reject_net_peering_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableRejectNetPeeringResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_request.go index 55f27ce92..92160a4b1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // ResetAccountPasswordRequest struct for ResetAccountPasswordRequest type ResetAccountPasswordRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The new password for the account. Password string `json:"Password"` @@ -29,7 +29,7 @@ type ResetAccountPasswordRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewResetAccountPasswordRequest(password string, token string, ) *ResetAccountPasswordRequest { +func NewResetAccountPasswordRequest(password string, token string) *ResetAccountPasswordRequest { this := ResetAccountPasswordRequest{} this.Password = password this.Token = token @@ -78,7 +78,7 @@ func (o *ResetAccountPasswordRequest) SetDryRun(v bool) { // GetPassword returns the Password field value func (o *ResetAccountPasswordRequest) GetPassword() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *ResetAccountPasswordRequest) GetPassword() string { // GetPasswordOk returns a tuple with the Password field value // and a boolean to check if the value has been set. func (o *ResetAccountPasswordRequest) GetPasswordOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Password, true @@ -102,7 +102,7 @@ func (o *ResetAccountPasswordRequest) SetPassword(v string) { // GetToken returns the Token field value func (o *ResetAccountPasswordRequest) GetToken() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *ResetAccountPasswordRequest) GetToken() string { // GetTokenOk returns a tuple with the Token field value // and a boolean to check if the value has been set. func (o *ResetAccountPasswordRequest) GetTokenOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Token, true @@ -173,5 +173,3 @@ func (v *NullableResetAccountPasswordRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_response.go index f1a9a183e..30216f75c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_reset_account_password_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableResetAccountPasswordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_load_balancer_tag.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_load_balancer_tag.go index 90a7845a5..e31332175 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_load_balancer_tag.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_load_balancer_tag.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableResourceLoadBalancerTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_tag.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_tag.go index a58520284..6e0eaa56a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_tag.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_resource_tag.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -27,7 +27,7 @@ type ResourceTag struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewResourceTag(key string, value string, ) *ResourceTag { +func NewResourceTag(key string, value string) *ResourceTag { this := ResourceTag{} this.Key = key this.Value = value @@ -44,7 +44,7 @@ func NewResourceTagWithDefaults() *ResourceTag { // GetKey returns the Key field value func (o *ResourceTag) GetKey() string { - if o == nil { + if o == nil { var ret string return ret } @@ -55,7 +55,7 @@ func (o *ResourceTag) GetKey() string { // GetKeyOk returns a tuple with the Key field value // and a boolean to check if the value has been set. func (o *ResourceTag) GetKeyOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Key, true @@ -68,7 +68,7 @@ func (o *ResourceTag) SetKey(v string) { // GetValue returns the Value field value func (o *ResourceTag) GetValue() string { - if o == nil { + if o == nil { var ret string return ret } @@ -79,7 +79,7 @@ func (o *ResourceTag) GetValue() string { // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. func (o *ResourceTag) GetValueOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Value, true @@ -136,5 +136,3 @@ func (v *NullableResourceTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_response_context.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_response_context.go index 6036365aa..e1325d04b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_response_context.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_response_context.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableResponseContext) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_route.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_route.go index 09185c2ba..507f92cb3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_route.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_route.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -483,5 +483,3 @@ func (v *NullableRoute) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_route_light.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_route_light.go index 1530efe27..1c27491b2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_route_light.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_route_light.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableRouteLight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_route_propagating_virtual_gateway.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_route_propagating_virtual_gateway.go index 34f194319..e1423d0a5 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_route_propagating_virtual_gateway.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_route_propagating_virtual_gateway.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -113,5 +113,3 @@ func (v *NullableRoutePropagatingVirtualGateway) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_route_table.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_route_table.go index 922de88ab..dbfaf13bb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_route_table.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_route_table.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableRouteTable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group.go index e2312fe63..fd2debe2c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -372,5 +372,3 @@ func (v *NullableSecurityGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_light.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_light.go index 3fb3f5564..0c5c0d5c1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_light.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_light.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableSecurityGroupLight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_rule.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_rule.go index 641274b2c..dcc82d8b6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_rule.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_group_rule.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -298,5 +298,3 @@ func (v *NullableSecurityGroupRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_groups_member.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_groups_member.go index d8728c46e..571b5f169 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_security_groups_member.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_security_groups_member.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableSecurityGroupsMember) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_request.go index 48aace9b7..084a0103e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // SendResetPasswordEmailRequest struct for SendResetPasswordEmailRequest type SendResetPasswordEmailRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The email address provided for the account. Email string `json:"Email"` @@ -27,7 +27,7 @@ type SendResetPasswordEmailRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSendResetPasswordEmailRequest(email string, ) *SendResetPasswordEmailRequest { +func NewSendResetPasswordEmailRequest(email string) *SendResetPasswordEmailRequest { this := SendResetPasswordEmailRequest{} this.Email = email return &this @@ -75,7 +75,7 @@ func (o *SendResetPasswordEmailRequest) SetDryRun(v bool) { // GetEmail returns the Email field value func (o *SendResetPasswordEmailRequest) GetEmail() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *SendResetPasswordEmailRequest) GetEmail() string { // GetEmailOk returns a tuple with the Email field value // and a boolean to check if the value has been set. func (o *SendResetPasswordEmailRequest) GetEmailOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Email, true @@ -143,5 +143,3 @@ func (v *NullableSendResetPasswordEmailRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_response.go index 0c16c20de..37bcf9c9f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_send_reset_password_email_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableSendResetPasswordEmailResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_server_certificate.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_server_certificate.go index 3258f031e..9359a29b0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_server_certificate.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_server_certificate.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -261,5 +261,3 @@ func (v *NullableServerCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_service.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_service.go index 8f758c6d2..41144794a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_service.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_service.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type Service struct { IpRanges *[]string `json:"IpRanges,omitempty"` // The ID of the service. ServiceId *string `json:"ServiceId,omitempty"` - // The name of the prefix list, which identifies the 3DS OUTSCALE service it is associated with. + // The name of the service. ServiceName *string `json:"ServiceName,omitempty"` } @@ -187,5 +187,3 @@ func (v *NullableService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot.go index 8d1858a56..a791ed147 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -22,7 +22,7 @@ type Snapshot struct { // The account ID of the owner of the snapshot. AccountId *string `json:"AccountId,omitempty"` // The description of the snapshot. - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty"` PermissionsToCreateVolume *PermissionsOnResource `json:"PermissionsToCreateVolume,omitempty"` // The progress of the snapshot, as a percentage. Progress *int32 `json:"Progress,omitempty"` @@ -445,5 +445,3 @@ func (v *NullableSnapshot) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot_export_task.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot_export_task.go index 4d66c3aa9..96239d345 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot_export_task.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_snapshot_export_task.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // SnapshotExportTask Information about the snapshot export task. type SnapshotExportTask struct { // If the snapshot export task fails, an error message appears. - Comment *string `json:"Comment,omitempty"` + Comment *string `json:"Comment,omitempty"` OsuExport *OsuExport `json:"OsuExport,omitempty"` // The progress of the snapshot export task, as a percentage. Progress *int32 `json:"Progress,omitempty"` @@ -334,5 +334,3 @@ func (v *NullableSnapshotExportTask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_source_net.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_source_net.go index 41bc49f79..c3f98775f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_source_net.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_source_net.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableSourceNet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_source_security_group.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_source_security_group.go index 6fbfc34c8..ac8605aa9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_source_security_group.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_source_security_group.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableSourceSecurityGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_request.go index a23e69959..19d702158 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // StartVmsRequest struct for StartVmsRequest type StartVmsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // One or more IDs of VMs. VmIds []string `json:"VmIds"` @@ -27,7 +27,7 @@ type StartVmsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewStartVmsRequest(vmIds []string, ) *StartVmsRequest { +func NewStartVmsRequest(vmIds []string) *StartVmsRequest { this := StartVmsRequest{} this.VmIds = vmIds return &this @@ -75,7 +75,7 @@ func (o *StartVmsRequest) SetDryRun(v bool) { // GetVmIds returns the VmIds field value func (o *StartVmsRequest) GetVmIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -86,7 +86,7 @@ func (o *StartVmsRequest) GetVmIds() []string { // GetVmIdsOk returns a tuple with the VmIds field value // and a boolean to check if the value has been set. func (o *StartVmsRequest) GetVmIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmIds, true @@ -143,5 +143,3 @@ func (v *NullableStartVmsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_response.go index 3a3656744..0fa3756f9 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_start_vms_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableStartVmsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_state_comment.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_state_comment.go index b5935ac22..21ebf166d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_state_comment.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_state_comment.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -150,5 +150,3 @@ func (v *NullableStateComment) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_request.go index 17d70586c..86c9e91f1 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // StopVmsRequest struct for StopVmsRequest type StopVmsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // Forces the VM to stop. ForceStop *bool `json:"ForceStop,omitempty"` @@ -29,7 +29,7 @@ type StopVmsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewStopVmsRequest(vmIds []string, ) *StopVmsRequest { +func NewStopVmsRequest(vmIds []string) *StopVmsRequest { this := StopVmsRequest{} this.VmIds = vmIds return &this @@ -109,7 +109,7 @@ func (o *StopVmsRequest) SetForceStop(v bool) { // GetVmIds returns the VmIds field value func (o *StopVmsRequest) GetVmIds() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -120,7 +120,7 @@ func (o *StopVmsRequest) GetVmIds() []string { // GetVmIdsOk returns a tuple with the VmIds field value // and a boolean to check if the value has been set. func (o *StopVmsRequest) GetVmIdsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmIds, true @@ -180,5 +180,3 @@ func (v *NullableStopVmsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_response.go index 623468f91..7d1545874 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_stop_vms_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -149,5 +149,3 @@ func (v *NullableStopVmsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_subnet.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_subnet.go index bad5b2973..266c6424e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_subnet.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_subnet.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,7 +21,7 @@ type Subnet struct { AvailableIpsCount *int32 `json:"AvailableIpsCount,omitempty"` // The IP range in the Subnet, in CIDR notation (for example, 10.0.0.0/16). IpRange *string `json:"IpRange,omitempty"` - // If `true`, a public IP address is assigned to the network interface cards (NICs) created in the specified Subnet. + // If true, a public IP address is assigned to the network interface cards (NICs) created in the specified Subnet. MapPublicIpOnLaunch *bool `json:"MapPublicIpOnLaunch,omitempty"` // The ID of the Net in which the Subnet is. NetId *string `json:"NetId,omitempty"` @@ -372,5 +372,3 @@ func (v *NullableSubnet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_subregion.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_subregion.go index 8d5c2f70e..0b6404520 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_subregion.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_subregion.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableSubregion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_tag.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_tag.go index eead23b03..7dbaf2cd6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_tag.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_tag.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_request.go index 8ab8c344e..22c11dd9d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkFlexibleGpuRequest struct for UnlinkFlexibleGpuRequest type UnlinkFlexibleGpuRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the fGPU you want to detach from your VM. FlexibleGpuId string `json:"FlexibleGpuId"` @@ -27,7 +27,7 @@ type UnlinkFlexibleGpuRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUnlinkFlexibleGpuRequest(flexibleGpuId string, ) *UnlinkFlexibleGpuRequest { +func NewUnlinkFlexibleGpuRequest(flexibleGpuId string) *UnlinkFlexibleGpuRequest { this := UnlinkFlexibleGpuRequest{} this.FlexibleGpuId = flexibleGpuId return &this @@ -75,7 +75,7 @@ func (o *UnlinkFlexibleGpuRequest) SetDryRun(v bool) { // GetFlexibleGpuId returns the FlexibleGpuId field value func (o *UnlinkFlexibleGpuRequest) GetFlexibleGpuId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *UnlinkFlexibleGpuRequest) GetFlexibleGpuId() string { // GetFlexibleGpuIdOk returns a tuple with the FlexibleGpuId field value // and a boolean to check if the value has been set. func (o *UnlinkFlexibleGpuRequest) GetFlexibleGpuIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FlexibleGpuId, true @@ -143,5 +143,3 @@ func (v *NullableUnlinkFlexibleGpuRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_response.go index 6ce8e77fd..d8731ef46 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_flexible_gpu_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkFlexibleGpuResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_request.go index 587655775..4df7f3c1c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkInternetServiceRequest struct for UnlinkInternetServiceRequest type UnlinkInternetServiceRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Internet service you want to detach. InternetServiceId string `json:"InternetServiceId"` @@ -29,7 +29,7 @@ type UnlinkInternetServiceRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUnlinkInternetServiceRequest(internetServiceId string, netId string, ) *UnlinkInternetServiceRequest { +func NewUnlinkInternetServiceRequest(internetServiceId string, netId string) *UnlinkInternetServiceRequest { this := UnlinkInternetServiceRequest{} this.InternetServiceId = internetServiceId this.NetId = netId @@ -78,7 +78,7 @@ func (o *UnlinkInternetServiceRequest) SetDryRun(v bool) { // GetInternetServiceId returns the InternetServiceId field value func (o *UnlinkInternetServiceRequest) GetInternetServiceId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *UnlinkInternetServiceRequest) GetInternetServiceId() string { // GetInternetServiceIdOk returns a tuple with the InternetServiceId field value // and a boolean to check if the value has been set. func (o *UnlinkInternetServiceRequest) GetInternetServiceIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.InternetServiceId, true @@ -102,7 +102,7 @@ func (o *UnlinkInternetServiceRequest) SetInternetServiceId(v string) { // GetNetId returns the NetId field value func (o *UnlinkInternetServiceRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *UnlinkInternetServiceRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *UnlinkInternetServiceRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -173,5 +173,3 @@ func (v *NullableUnlinkInternetServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_response.go index 6aaa04487..a6d83f71a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_internet_service_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkInternetServiceResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_request.go index 25cba08b4..72c7bce5c 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkNicRequest struct for UnlinkNicRequest type UnlinkNicRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the attachment operation. LinkNicId string `json:"LinkNicId"` @@ -27,7 +27,7 @@ type UnlinkNicRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUnlinkNicRequest(linkNicId string, ) *UnlinkNicRequest { +func NewUnlinkNicRequest(linkNicId string) *UnlinkNicRequest { this := UnlinkNicRequest{} this.LinkNicId = linkNicId return &this @@ -75,7 +75,7 @@ func (o *UnlinkNicRequest) SetDryRun(v bool) { // GetLinkNicId returns the LinkNicId field value func (o *UnlinkNicRequest) GetLinkNicId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *UnlinkNicRequest) GetLinkNicId() string { // GetLinkNicIdOk returns a tuple with the LinkNicId field value // and a boolean to check if the value has been set. func (o *UnlinkNicRequest) GetLinkNicIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LinkNicId, true @@ -143,5 +143,3 @@ func (v *NullableUnlinkNicRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_response.go index 125a33c6f..a1ab90f05 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_nic_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkNicResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_request.go index 5a37f794d..e47564236 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkPrivateIpsRequest struct for UnlinkPrivateIpsRequest type UnlinkPrivateIpsRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the NIC. NicId string `json:"NicId"` @@ -29,7 +29,7 @@ type UnlinkPrivateIpsRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUnlinkPrivateIpsRequest(nicId string, privateIps []string, ) *UnlinkPrivateIpsRequest { +func NewUnlinkPrivateIpsRequest(nicId string, privateIps []string) *UnlinkPrivateIpsRequest { this := UnlinkPrivateIpsRequest{} this.NicId = nicId this.PrivateIps = privateIps @@ -78,7 +78,7 @@ func (o *UnlinkPrivateIpsRequest) SetDryRun(v bool) { // GetNicId returns the NicId field value func (o *UnlinkPrivateIpsRequest) GetNicId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *UnlinkPrivateIpsRequest) GetNicId() string { // GetNicIdOk returns a tuple with the NicId field value // and a boolean to check if the value has been set. func (o *UnlinkPrivateIpsRequest) GetNicIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NicId, true @@ -102,7 +102,7 @@ func (o *UnlinkPrivateIpsRequest) SetNicId(v string) { // GetPrivateIps returns the PrivateIps field value func (o *UnlinkPrivateIpsRequest) GetPrivateIps() []string { - if o == nil { + if o == nil { var ret []string return ret } @@ -113,7 +113,7 @@ func (o *UnlinkPrivateIpsRequest) GetPrivateIps() []string { // GetPrivateIpsOk returns a tuple with the PrivateIps field value // and a boolean to check if the value has been set. func (o *UnlinkPrivateIpsRequest) GetPrivateIpsOk() (*[]string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PrivateIps, true @@ -173,5 +173,3 @@ func (v *NullableUnlinkPrivateIpsRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_response.go index 4cb3e3c99..8da97d30b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_private_ips_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkPrivateIpsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_request.go index 025e8b123..92b559dad 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkPublicIpRequest struct for UnlinkPublicIpRequest type UnlinkPublicIpRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // (Required in a Net) The ID representing the association of the EIP with the VM or the NIC. LinkPublicIpId *string `json:"LinkPublicIpId,omitempty"` @@ -187,5 +187,3 @@ func (v *NullableUnlinkPublicIpRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_response.go index dc895c712..42b290fd4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_public_ip_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkPublicIpResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_request.go index 082fd6349..f9ec888c8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkRouteTableRequest struct for UnlinkRouteTableRequest type UnlinkRouteTableRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the association between the route table and the Subnet. LinkRouteTableId string `json:"LinkRouteTableId"` @@ -27,7 +27,7 @@ type UnlinkRouteTableRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUnlinkRouteTableRequest(linkRouteTableId string, ) *UnlinkRouteTableRequest { +func NewUnlinkRouteTableRequest(linkRouteTableId string) *UnlinkRouteTableRequest { this := UnlinkRouteTableRequest{} this.LinkRouteTableId = linkRouteTableId return &this @@ -75,7 +75,7 @@ func (o *UnlinkRouteTableRequest) SetDryRun(v bool) { // GetLinkRouteTableId returns the LinkRouteTableId field value func (o *UnlinkRouteTableRequest) GetLinkRouteTableId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -86,7 +86,7 @@ func (o *UnlinkRouteTableRequest) GetLinkRouteTableId() string { // GetLinkRouteTableIdOk returns a tuple with the LinkRouteTableId field value // and a boolean to check if the value has been set. func (o *UnlinkRouteTableRequest) GetLinkRouteTableIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LinkRouteTableId, true @@ -143,5 +143,3 @@ func (v *NullableUnlinkRouteTableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_response.go index c9147275e..3ab4f6cad 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_route_table_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkRouteTableResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_request.go index e3f6ed87a..d12f88b0d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkVirtualGatewayRequest struct for UnlinkVirtualGatewayRequest type UnlinkVirtualGatewayRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net from which you want to detach the virtual gateway. NetId string `json:"NetId"` @@ -29,7 +29,7 @@ type UnlinkVirtualGatewayRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUnlinkVirtualGatewayRequest(netId string, virtualGatewayId string, ) *UnlinkVirtualGatewayRequest { +func NewUnlinkVirtualGatewayRequest(netId string, virtualGatewayId string) *UnlinkVirtualGatewayRequest { this := UnlinkVirtualGatewayRequest{} this.NetId = netId this.VirtualGatewayId = virtualGatewayId @@ -78,7 +78,7 @@ func (o *UnlinkVirtualGatewayRequest) SetDryRun(v bool) { // GetNetId returns the NetId field value func (o *UnlinkVirtualGatewayRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -89,7 +89,7 @@ func (o *UnlinkVirtualGatewayRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *UnlinkVirtualGatewayRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -102,7 +102,7 @@ func (o *UnlinkVirtualGatewayRequest) SetNetId(v string) { // GetVirtualGatewayId returns the VirtualGatewayId field value func (o *UnlinkVirtualGatewayRequest) GetVirtualGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *UnlinkVirtualGatewayRequest) GetVirtualGatewayId() string { // GetVirtualGatewayIdOk returns a tuple with the VirtualGatewayId field value // and a boolean to check if the value has been set. func (o *UnlinkVirtualGatewayRequest) GetVirtualGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VirtualGatewayId, true @@ -173,5 +173,3 @@ func (v *NullableUnlinkVirtualGatewayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_response.go index dbed4a440..25188cdfd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_virtual_gateway_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkVirtualGatewayResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_request.go index 9a2d3a4ef..e731b5c31 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UnlinkVolumeRequest struct for UnlinkVolumeRequest type UnlinkVolumeRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // Forces the detachment of the volume in case of previous failure. Important: This action may damage your data or file systems. ForceUnlink *bool `json:"ForceUnlink,omitempty"` @@ -29,7 +29,7 @@ type UnlinkVolumeRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUnlinkVolumeRequest(volumeId string, ) *UnlinkVolumeRequest { +func NewUnlinkVolumeRequest(volumeId string) *UnlinkVolumeRequest { this := UnlinkVolumeRequest{} this.VolumeId = volumeId return &this @@ -109,7 +109,7 @@ func (o *UnlinkVolumeRequest) SetForceUnlink(v bool) { // GetVolumeId returns the VolumeId field value func (o *UnlinkVolumeRequest) GetVolumeId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -120,7 +120,7 @@ func (o *UnlinkVolumeRequest) GetVolumeId() string { // GetVolumeIdOk returns a tuple with the VolumeId field value // and a boolean to check if the value has been set. func (o *UnlinkVolumeRequest) GetVolumeIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VolumeId, true @@ -180,5 +180,3 @@ func (v *NullableUnlinkVolumeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_response.go index b8783e8ea..3b051368d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_unlink_volume_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -112,5 +112,3 @@ func (v *NullableUnlinkVolumeResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_request.go index a9da2fca4..b27414a21 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type UpdateAccessKeyRequest struct { // The ID of the access key. AccessKeyId string `json:"AccessKeyId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The new state for the access key (`ACTIVE` \\| `INACTIVE`). State string `json:"State"` @@ -29,7 +29,7 @@ type UpdateAccessKeyRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateAccessKeyRequest(accessKeyId string, state string, ) *UpdateAccessKeyRequest { +func NewUpdateAccessKeyRequest(accessKeyId string, state string) *UpdateAccessKeyRequest { this := UpdateAccessKeyRequest{} this.AccessKeyId = accessKeyId this.State = state @@ -46,7 +46,7 @@ func NewUpdateAccessKeyRequestWithDefaults() *UpdateAccessKeyRequest { // GetAccessKeyId returns the AccessKeyId field value func (o *UpdateAccessKeyRequest) GetAccessKeyId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *UpdateAccessKeyRequest) GetAccessKeyId() string { // GetAccessKeyIdOk returns a tuple with the AccessKeyId field value // and a boolean to check if the value has been set. func (o *UpdateAccessKeyRequest) GetAccessKeyIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.AccessKeyId, true @@ -102,7 +102,7 @@ func (o *UpdateAccessKeyRequest) SetDryRun(v bool) { // GetState returns the State field value func (o *UpdateAccessKeyRequest) GetState() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *UpdateAccessKeyRequest) GetState() string { // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. func (o *UpdateAccessKeyRequest) GetStateOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.State, true @@ -173,5 +173,3 @@ func (v *NullableUpdateAccessKeyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_response.go index 7d4fd1896..2172bc101 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_access_key_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateAccessKeyResponse struct for UpdateAccessKeyResponse type UpdateAccessKeyResponse struct { - AccessKey *AccessKey `json:"AccessKey,omitempty"` + AccessKey *AccessKey `json:"AccessKey,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateAccessKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_request.go index 05e059e11..03804424d 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -23,7 +23,7 @@ type UpdateAccountRequest struct { CompanyName *string `json:"CompanyName,omitempty"` // The new country of the account owner. Country *string `json:"Country,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The new email address for the account. Email *string `json:"Email,omitempty"` @@ -557,5 +557,3 @@ func (v *NullableUpdateAccountRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_response.go index 212ce1b7e..36b8d418b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_account_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateAccountResponse struct for UpdateAccountResponse type UpdateAccountResponse struct { - Account *Account `json:"Account,omitempty"` + Account *Account `json:"Account,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateAccountResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_api_access_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_api_access_rule_request.go new file mode 100644 index 000000000..c2e8a9220 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_api_access_rule_request.go @@ -0,0 +1,293 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// UpdateApiAccessRuleRequest struct for UpdateApiAccessRuleRequest +type UpdateApiAccessRuleRequest struct { + // The ID of the API access rule you want to update. + ApiAccessRuleId string `json:"ApiAccessRuleId"` + // One or more IDs of Client Certificate Authorities (CAs). + CaIds *[]string `json:"CaIds,omitempty"` + // One or more Client Certificate Common Names (CNs). + Cns *[]string `json:"Cns,omitempty"` + // A new description for the API access rule. + Description *string `json:"Description,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` + // One or more IP ranges, in CIDR notation (for example, 192.0.2.0/16). + IpRanges *[]string `json:"IpRanges,omitempty"` +} + +// NewUpdateApiAccessRuleRequest instantiates a new UpdateApiAccessRuleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateApiAccessRuleRequest(apiAccessRuleId string) *UpdateApiAccessRuleRequest { + this := UpdateApiAccessRuleRequest{} + this.ApiAccessRuleId = apiAccessRuleId + return &this +} + +// NewUpdateApiAccessRuleRequestWithDefaults instantiates a new UpdateApiAccessRuleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateApiAccessRuleRequestWithDefaults() *UpdateApiAccessRuleRequest { + this := UpdateApiAccessRuleRequest{} + return &this +} + +// GetApiAccessRuleId returns the ApiAccessRuleId field value +func (o *UpdateApiAccessRuleRequest) GetApiAccessRuleId() string { + if o == nil { + var ret string + return ret + } + + return o.ApiAccessRuleId +} + +// GetApiAccessRuleIdOk returns a tuple with the ApiAccessRuleId field value +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleRequest) GetApiAccessRuleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiAccessRuleId, true +} + +// SetApiAccessRuleId sets field value +func (o *UpdateApiAccessRuleRequest) SetApiAccessRuleId(v string) { + o.ApiAccessRuleId = v +} + +// GetCaIds returns the CaIds field value if set, zero value otherwise. +func (o *UpdateApiAccessRuleRequest) GetCaIds() []string { + if o == nil || o.CaIds == nil { + var ret []string + return ret + } + return *o.CaIds +} + +// GetCaIdsOk returns a tuple with the CaIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleRequest) GetCaIdsOk() (*[]string, bool) { + if o == nil || o.CaIds == nil { + return nil, false + } + return o.CaIds, true +} + +// HasCaIds returns a boolean if a field has been set. +func (o *UpdateApiAccessRuleRequest) HasCaIds() bool { + if o != nil && o.CaIds != nil { + return true + } + + return false +} + +// SetCaIds gets a reference to the given []string and assigns it to the CaIds field. +func (o *UpdateApiAccessRuleRequest) SetCaIds(v []string) { + o.CaIds = &v +} + +// GetCns returns the Cns field value if set, zero value otherwise. +func (o *UpdateApiAccessRuleRequest) GetCns() []string { + if o == nil || o.Cns == nil { + var ret []string + return ret + } + return *o.Cns +} + +// GetCnsOk returns a tuple with the Cns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleRequest) GetCnsOk() (*[]string, bool) { + if o == nil || o.Cns == nil { + return nil, false + } + return o.Cns, true +} + +// HasCns returns a boolean if a field has been set. +func (o *UpdateApiAccessRuleRequest) HasCns() bool { + if o != nil && o.Cns != nil { + return true + } + + return false +} + +// SetCns gets a reference to the given []string and assigns it to the Cns field. +func (o *UpdateApiAccessRuleRequest) SetCns(v []string) { + o.Cns = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateApiAccessRuleRequest) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateApiAccessRuleRequest) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateApiAccessRuleRequest) SetDescription(v string) { + o.Description = &v +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *UpdateApiAccessRuleRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *UpdateApiAccessRuleRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *UpdateApiAccessRuleRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +// GetIpRanges returns the IpRanges field value if set, zero value otherwise. +func (o *UpdateApiAccessRuleRequest) GetIpRanges() []string { + if o == nil || o.IpRanges == nil { + var ret []string + return ret + } + return *o.IpRanges +} + +// GetIpRangesOk returns a tuple with the IpRanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleRequest) GetIpRangesOk() (*[]string, bool) { + if o == nil || o.IpRanges == nil { + return nil, false + } + return o.IpRanges, true +} + +// HasIpRanges returns a boolean if a field has been set. +func (o *UpdateApiAccessRuleRequest) HasIpRanges() bool { + if o != nil && o.IpRanges != nil { + return true + } + + return false +} + +// SetIpRanges gets a reference to the given []string and assigns it to the IpRanges field. +func (o *UpdateApiAccessRuleRequest) SetIpRanges(v []string) { + o.IpRanges = &v +} + +func (o UpdateApiAccessRuleRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["ApiAccessRuleId"] = o.ApiAccessRuleId + } + if o.CaIds != nil { + toSerialize["CaIds"] = o.CaIds + } + if o.Cns != nil { + toSerialize["Cns"] = o.Cns + } + if o.Description != nil { + toSerialize["Description"] = o.Description + } + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + if o.IpRanges != nil { + toSerialize["IpRanges"] = o.IpRanges + } + return json.Marshal(toSerialize) +} + +type NullableUpdateApiAccessRuleRequest struct { + value *UpdateApiAccessRuleRequest + isSet bool +} + +func (v NullableUpdateApiAccessRuleRequest) Get() *UpdateApiAccessRuleRequest { + return v.value +} + +func (v *NullableUpdateApiAccessRuleRequest) Set(val *UpdateApiAccessRuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateApiAccessRuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateApiAccessRuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateApiAccessRuleRequest(val *UpdateApiAccessRuleRequest) *NullableUpdateApiAccessRuleRequest { + return &NullableUpdateApiAccessRuleRequest{value: val, isSet: true} +} + +func (v NullableUpdateApiAccessRuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateApiAccessRuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_api_access_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_api_access_rule_response.go new file mode 100644 index 000000000..df59d0d58 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_api_access_rule_response.go @@ -0,0 +1,150 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// UpdateApiAccessRuleResponse struct for UpdateApiAccessRuleResponse +type UpdateApiAccessRuleResponse struct { + ApiAccessRule *ApiAccessRule `json:"ApiAccessRule,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewUpdateApiAccessRuleResponse instantiates a new UpdateApiAccessRuleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateApiAccessRuleResponse() *UpdateApiAccessRuleResponse { + this := UpdateApiAccessRuleResponse{} + return &this +} + +// NewUpdateApiAccessRuleResponseWithDefaults instantiates a new UpdateApiAccessRuleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateApiAccessRuleResponseWithDefaults() *UpdateApiAccessRuleResponse { + this := UpdateApiAccessRuleResponse{} + return &this +} + +// GetApiAccessRule returns the ApiAccessRule field value if set, zero value otherwise. +func (o *UpdateApiAccessRuleResponse) GetApiAccessRule() ApiAccessRule { + if o == nil || o.ApiAccessRule == nil { + var ret ApiAccessRule + return ret + } + return *o.ApiAccessRule +} + +// GetApiAccessRuleOk returns a tuple with the ApiAccessRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleResponse) GetApiAccessRuleOk() (*ApiAccessRule, bool) { + if o == nil || o.ApiAccessRule == nil { + return nil, false + } + return o.ApiAccessRule, true +} + +// HasApiAccessRule returns a boolean if a field has been set. +func (o *UpdateApiAccessRuleResponse) HasApiAccessRule() bool { + if o != nil && o.ApiAccessRule != nil { + return true + } + + return false +} + +// SetApiAccessRule gets a reference to the given ApiAccessRule and assigns it to the ApiAccessRule field. +func (o *UpdateApiAccessRuleResponse) SetApiAccessRule(v ApiAccessRule) { + o.ApiAccessRule = &v +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *UpdateApiAccessRuleResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateApiAccessRuleResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *UpdateApiAccessRuleResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *UpdateApiAccessRuleResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o UpdateApiAccessRuleResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiAccessRule != nil { + toSerialize["ApiAccessRule"] = o.ApiAccessRule + } + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableUpdateApiAccessRuleResponse struct { + value *UpdateApiAccessRuleResponse + isSet bool +} + +func (v NullableUpdateApiAccessRuleResponse) Get() *UpdateApiAccessRuleResponse { + return v.value +} + +func (v *NullableUpdateApiAccessRuleResponse) Set(val *UpdateApiAccessRuleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateApiAccessRuleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateApiAccessRuleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateApiAccessRuleResponse(val *UpdateApiAccessRuleResponse) *NullableUpdateApiAccessRuleResponse { + return &NullableUpdateApiAccessRuleResponse{value: val, isSet: true} +} + +func (v NullableUpdateApiAccessRuleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateApiAccessRuleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_ca_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_ca_request.go new file mode 100644 index 000000000..33ca83044 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_ca_request.go @@ -0,0 +1,182 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// UpdateCaRequest struct for UpdateCaRequest +type UpdateCaRequest struct { + // The ID of the CA. + CaId string `json:"CaId"` + // The description of the CA. + Description *string `json:"Description,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` +} + +// NewUpdateCaRequest instantiates a new UpdateCaRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateCaRequest(caId string) *UpdateCaRequest { + this := UpdateCaRequest{} + this.CaId = caId + return &this +} + +// NewUpdateCaRequestWithDefaults instantiates a new UpdateCaRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateCaRequestWithDefaults() *UpdateCaRequest { + this := UpdateCaRequest{} + return &this +} + +// GetCaId returns the CaId field value +func (o *UpdateCaRequest) GetCaId() string { + if o == nil { + var ret string + return ret + } + + return o.CaId +} + +// GetCaIdOk returns a tuple with the CaId field value +// and a boolean to check if the value has been set. +func (o *UpdateCaRequest) GetCaIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CaId, true +} + +// SetCaId sets field value +func (o *UpdateCaRequest) SetCaId(v string) { + o.CaId = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateCaRequest) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateCaRequest) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateCaRequest) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateCaRequest) SetDescription(v string) { + o.Description = &v +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *UpdateCaRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateCaRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *UpdateCaRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *UpdateCaRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +func (o UpdateCaRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["CaId"] = o.CaId + } + if o.Description != nil { + toSerialize["Description"] = o.Description + } + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + return json.Marshal(toSerialize) +} + +type NullableUpdateCaRequest struct { + value *UpdateCaRequest + isSet bool +} + +func (v NullableUpdateCaRequest) Get() *UpdateCaRequest { + return v.value +} + +func (v *NullableUpdateCaRequest) Set(val *UpdateCaRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateCaRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateCaRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateCaRequest(val *UpdateCaRequest) *NullableUpdateCaRequest { + return &NullableUpdateCaRequest{value: val, isSet: true} +} + +func (v NullableUpdateCaRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateCaRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_ca_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_ca_response.go new file mode 100644 index 000000000..22f07d5db --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_ca_response.go @@ -0,0 +1,150 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// UpdateCaResponse struct for UpdateCaResponse +type UpdateCaResponse struct { + Ca *Ca `json:"Ca,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` +} + +// NewUpdateCaResponse instantiates a new UpdateCaResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateCaResponse() *UpdateCaResponse { + this := UpdateCaResponse{} + return &this +} + +// NewUpdateCaResponseWithDefaults instantiates a new UpdateCaResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateCaResponseWithDefaults() *UpdateCaResponse { + this := UpdateCaResponse{} + return &this +} + +// GetCa returns the Ca field value if set, zero value otherwise. +func (o *UpdateCaResponse) GetCa() Ca { + if o == nil || o.Ca == nil { + var ret Ca + return ret + } + return *o.Ca +} + +// GetCaOk returns a tuple with the Ca field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateCaResponse) GetCaOk() (*Ca, bool) { + if o == nil || o.Ca == nil { + return nil, false + } + return o.Ca, true +} + +// HasCa returns a boolean if a field has been set. +func (o *UpdateCaResponse) HasCa() bool { + if o != nil && o.Ca != nil { + return true + } + + return false +} + +// SetCa gets a reference to the given Ca and assigns it to the Ca field. +func (o *UpdateCaResponse) SetCa(v Ca) { + o.Ca = &v +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *UpdateCaResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateCaResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *UpdateCaResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *UpdateCaResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +func (o UpdateCaResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Ca != nil { + toSerialize["Ca"] = o.Ca + } + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + return json.Marshal(toSerialize) +} + +type NullableUpdateCaResponse struct { + value *UpdateCaResponse + isSet bool +} + +func (v NullableUpdateCaResponse) Get() *UpdateCaResponse { + return v.value +} + +func (v *NullableUpdateCaResponse) Set(val *UpdateCaResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateCaResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateCaResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateCaResponse(val *UpdateCaResponse) *NullableUpdateCaResponse { + return &NullableUpdateCaResponse{value: val, isSet: true} +} + +func (v NullableUpdateCaResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateCaResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_request.go index 0a188c405..0a5c3e147 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,9 +17,9 @@ import ( // UpdateFlexibleGpuRequest struct for UpdateFlexibleGpuRequest type UpdateFlexibleGpuRequest struct { - // If `true`, the fGPU is deleted when the VM is terminated. + // If true, the fGPU is deleted when the VM is terminated. DeleteOnVmDeletion *bool `json:"DeleteOnVmDeletion,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the fGPU you want to modify. FlexibleGpuId string `json:"FlexibleGpuId"` @@ -29,7 +29,7 @@ type UpdateFlexibleGpuRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateFlexibleGpuRequest(flexibleGpuId string, ) *UpdateFlexibleGpuRequest { +func NewUpdateFlexibleGpuRequest(flexibleGpuId string) *UpdateFlexibleGpuRequest { this := UpdateFlexibleGpuRequest{} this.FlexibleGpuId = flexibleGpuId return &this @@ -109,7 +109,7 @@ func (o *UpdateFlexibleGpuRequest) SetDryRun(v bool) { // GetFlexibleGpuId returns the FlexibleGpuId field value func (o *UpdateFlexibleGpuRequest) GetFlexibleGpuId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -120,7 +120,7 @@ func (o *UpdateFlexibleGpuRequest) GetFlexibleGpuId() string { // GetFlexibleGpuIdOk returns a tuple with the FlexibleGpuId field value // and a boolean to check if the value has been set. func (o *UpdateFlexibleGpuRequest) GetFlexibleGpuIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.FlexibleGpuId, true @@ -180,5 +180,3 @@ func (v *NullableUpdateFlexibleGpuRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_response.go index 581a00755..bb4921bb7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_flexible_gpu_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateFlexibleGpuResponse struct for UpdateFlexibleGpuResponse type UpdateFlexibleGpuResponse struct { - FlexibleGpu *FlexibleGpu `json:"FlexibleGpu,omitempty"` + FlexibleGpu *FlexibleGpu `json:"FlexibleGpu,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateFlexibleGpuResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_request.go index f04ffd202..8eee6ac4e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,10 +17,10 @@ import ( // UpdateImageRequest struct for UpdateImageRequest type UpdateImageRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the OMI you want to modify. - ImageId string `json:"ImageId"` + ImageId string `json:"ImageId"` PermissionsToLaunch PermissionsOnResourceCreation `json:"PermissionsToLaunch"` } @@ -28,7 +28,7 @@ type UpdateImageRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateImageRequest(imageId string, permissionsToLaunch PermissionsOnResourceCreation, ) *UpdateImageRequest { +func NewUpdateImageRequest(imageId string, permissionsToLaunch PermissionsOnResourceCreation) *UpdateImageRequest { this := UpdateImageRequest{} this.ImageId = imageId this.PermissionsToLaunch = permissionsToLaunch @@ -77,7 +77,7 @@ func (o *UpdateImageRequest) SetDryRun(v bool) { // GetImageId returns the ImageId field value func (o *UpdateImageRequest) GetImageId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -88,7 +88,7 @@ func (o *UpdateImageRequest) GetImageId() string { // GetImageIdOk returns a tuple with the ImageId field value // and a boolean to check if the value has been set. func (o *UpdateImageRequest) GetImageIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ImageId, true @@ -101,7 +101,7 @@ func (o *UpdateImageRequest) SetImageId(v string) { // GetPermissionsToLaunch returns the PermissionsToLaunch field value func (o *UpdateImageRequest) GetPermissionsToLaunch() PermissionsOnResourceCreation { - if o == nil { + if o == nil { var ret PermissionsOnResourceCreation return ret } @@ -112,7 +112,7 @@ func (o *UpdateImageRequest) GetPermissionsToLaunch() PermissionsOnResourceCreat // GetPermissionsToLaunchOk returns a tuple with the PermissionsToLaunch field value // and a boolean to check if the value has been set. func (o *UpdateImageRequest) GetPermissionsToLaunchOk() (*PermissionsOnResourceCreation, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PermissionsToLaunch, true @@ -172,5 +172,3 @@ func (v *NullableUpdateImageRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_response.go index c011f5c70..28901644a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_image_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateImageResponse struct for UpdateImageResponse type UpdateImageResponse struct { - Image *Image `json:"Image,omitempty"` + Image *Image `json:"Image,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateImageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_request.go index 7cfd488e4..72dab3bee 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateListenerRuleRequest struct for UpdateListenerRuleRequest type UpdateListenerRuleRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?]. HostPattern *string `json:"HostPattern,omitempty"` @@ -31,7 +31,7 @@ type UpdateListenerRuleRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateListenerRuleRequest(listenerRuleName string, ) *UpdateListenerRuleRequest { +func NewUpdateListenerRuleRequest(listenerRuleName string) *UpdateListenerRuleRequest { this := UpdateListenerRuleRequest{} this.ListenerRuleName = listenerRuleName return &this @@ -111,7 +111,7 @@ func (o *UpdateListenerRuleRequest) SetHostPattern(v string) { // GetListenerRuleName returns the ListenerRuleName field value func (o *UpdateListenerRuleRequest) GetListenerRuleName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -122,7 +122,7 @@ func (o *UpdateListenerRuleRequest) GetListenerRuleName() string { // GetListenerRuleNameOk returns a tuple with the ListenerRuleName field value // and a boolean to check if the value has been set. func (o *UpdateListenerRuleRequest) GetListenerRuleNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.ListenerRuleName, true @@ -217,5 +217,3 @@ func (v *NullableUpdateListenerRuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_response.go index 53fe80c20..8bfe12d3f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_listener_rule_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateListenerRuleResponse struct for UpdateListenerRuleResponse type UpdateListenerRuleResponse struct { - ListenerRule *ListenerRule `json:"ListenerRule,omitempty"` + ListenerRule *ListenerRule `json:"ListenerRule,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateListenerRuleResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_request.go index fce59010e..fabf03b6b 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,8 +18,8 @@ import ( // UpdateLoadBalancerRequest struct for UpdateLoadBalancerRequest type UpdateLoadBalancerRequest struct { AccessLog *AccessLog `json:"AccessLog,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` HealthCheck *HealthCheck `json:"HealthCheck,omitempty"` // The name of the load balancer. LoadBalancerName string `json:"LoadBalancerName"` @@ -27,7 +27,7 @@ type UpdateLoadBalancerRequest struct { LoadBalancerPort *int32 `json:"LoadBalancerPort,omitempty"` // The list of policy names (must contain all the policies to be enabled). PolicyNames *[]string `json:"PolicyNames,omitempty"` - // The Outscale Resource Name (ORN) of the SSL certificate. + // The Outscale Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > Outscale Resource Names (ORNs)](https://wiki.outscale.net/display/EN/Resource+Identifiers#ResourceIdentifiers-ORNFormat). ServerCertificateId *string `json:"ServerCertificateId,omitempty"` } @@ -35,7 +35,7 @@ type UpdateLoadBalancerRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateLoadBalancerRequest(loadBalancerName string, ) *UpdateLoadBalancerRequest { +func NewUpdateLoadBalancerRequest(loadBalancerName string) *UpdateLoadBalancerRequest { this := UpdateLoadBalancerRequest{} this.LoadBalancerName = loadBalancerName return &this @@ -147,7 +147,7 @@ func (o *UpdateLoadBalancerRequest) SetHealthCheck(v HealthCheck) { // GetLoadBalancerName returns the LoadBalancerName field value func (o *UpdateLoadBalancerRequest) GetLoadBalancerName() string { - if o == nil { + if o == nil { var ret string return ret } @@ -158,7 +158,7 @@ func (o *UpdateLoadBalancerRequest) GetLoadBalancerName() string { // GetLoadBalancerNameOk returns a tuple with the LoadBalancerName field value // and a boolean to check if the value has been set. func (o *UpdateLoadBalancerRequest) GetLoadBalancerNameOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.LoadBalancerName, true @@ -326,5 +326,3 @@ func (v *NullableUpdateLoadBalancerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_response.go index 5477bfdeb..04d30da57 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_load_balancer_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateLoadBalancerResponse struct for UpdateLoadBalancerResponse type UpdateLoadBalancerResponse struct { - LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` + LoadBalancer *LoadBalancer `json:"LoadBalancer,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateLoadBalancerResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_request.go index 57311f42b..1234f4292 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type UpdateNetAccessPointRequest struct { // One or more IDs of route tables to associate with the specified Net access point. AddRouteTableIds *[]string `json:"AddRouteTableIds,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net access point. NetAccessPointId string `json:"NetAccessPointId"` @@ -31,7 +31,7 @@ type UpdateNetAccessPointRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateNetAccessPointRequest(netAccessPointId string, ) *UpdateNetAccessPointRequest { +func NewUpdateNetAccessPointRequest(netAccessPointId string) *UpdateNetAccessPointRequest { this := UpdateNetAccessPointRequest{} this.NetAccessPointId = netAccessPointId return &this @@ -111,7 +111,7 @@ func (o *UpdateNetAccessPointRequest) SetDryRun(v bool) { // GetNetAccessPointId returns the NetAccessPointId field value func (o *UpdateNetAccessPointRequest) GetNetAccessPointId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -122,7 +122,7 @@ func (o *UpdateNetAccessPointRequest) GetNetAccessPointId() string { // GetNetAccessPointIdOk returns a tuple with the NetAccessPointId field value // and a boolean to check if the value has been set. func (o *UpdateNetAccessPointRequest) GetNetAccessPointIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetAccessPointId, true @@ -217,5 +217,3 @@ func (v *NullableUpdateNetAccessPointRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_response.go index 1bf034ff7..0dd82189e 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_access_point_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateNetAccessPointResponse struct for UpdateNetAccessPointResponse type UpdateNetAccessPointResponse struct { - NetAccessPoint *NetAccessPoint `json:"NetAccessPoint,omitempty"` + NetAccessPoint *NetAccessPoint `json:"NetAccessPoint,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateNetAccessPointResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_request.go index 50e4f0402..1f529bf41 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type UpdateNetRequest struct { // The ID of the DHCP options set (or `default` if you want to associate the default one). DhcpOptionsSetId string `json:"DhcpOptionsSetId"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of the Net. NetId string `json:"NetId"` @@ -29,7 +29,7 @@ type UpdateNetRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateNetRequest(dhcpOptionsSetId string, netId string, ) *UpdateNetRequest { +func NewUpdateNetRequest(dhcpOptionsSetId string, netId string) *UpdateNetRequest { this := UpdateNetRequest{} this.DhcpOptionsSetId = dhcpOptionsSetId this.NetId = netId @@ -46,7 +46,7 @@ func NewUpdateNetRequestWithDefaults() *UpdateNetRequest { // GetDhcpOptionsSetId returns the DhcpOptionsSetId field value func (o *UpdateNetRequest) GetDhcpOptionsSetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -57,7 +57,7 @@ func (o *UpdateNetRequest) GetDhcpOptionsSetId() string { // GetDhcpOptionsSetIdOk returns a tuple with the DhcpOptionsSetId field value // and a boolean to check if the value has been set. func (o *UpdateNetRequest) GetDhcpOptionsSetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DhcpOptionsSetId, true @@ -102,7 +102,7 @@ func (o *UpdateNetRequest) SetDryRun(v bool) { // GetNetId returns the NetId field value func (o *UpdateNetRequest) GetNetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *UpdateNetRequest) GetNetId() string { // GetNetIdOk returns a tuple with the NetId field value // and a boolean to check if the value has been set. func (o *UpdateNetRequest) GetNetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NetId, true @@ -173,5 +173,3 @@ func (v *NullableUpdateNetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_response.go index d82077ff3..1bf3f5026 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_net_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateNetResponse struct for UpdateNetResponse type UpdateNetResponse struct { - Net *Net `json:"Net,omitempty"` + Net *Net `json:"Net,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateNetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_request.go index 062c102b6..157b5b0fb 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,8 +19,8 @@ import ( type UpdateNicRequest struct { // A new description for the NIC. Description *string `json:"Description,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` LinkNic *LinkNicToUpdate `json:"LinkNic,omitempty"` // The ID of the NIC you want to modify. NicId string `json:"NicId"` @@ -32,7 +32,7 @@ type UpdateNicRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateNicRequest(nicId string, ) *UpdateNicRequest { +func NewUpdateNicRequest(nicId string) *UpdateNicRequest { this := UpdateNicRequest{} this.NicId = nicId return &this @@ -144,7 +144,7 @@ func (o *UpdateNicRequest) SetLinkNic(v LinkNicToUpdate) { // GetNicId returns the NicId field value func (o *UpdateNicRequest) GetNicId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -155,7 +155,7 @@ func (o *UpdateNicRequest) GetNicId() string { // GetNicIdOk returns a tuple with the NicId field value // and a boolean to check if the value has been set. func (o *UpdateNicRequest) GetNicIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.NicId, true @@ -253,5 +253,3 @@ func (v *NullableUpdateNicRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_response.go index 7728f04a7..66c8f96d8 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_nic_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateNicResponse struct for UpdateNicResponse type UpdateNicResponse struct { - Nic *Nic `json:"Nic,omitempty"` + Nic *Nic `json:"Nic,omitempty"` ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateNicResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_request.go index 6319138b7..c99237ddd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,9 +17,9 @@ import ( // UpdateRoutePropagationRequest struct for UpdateRoutePropagationRequest type UpdateRoutePropagationRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` - // If `true`, a virtual gateway can propagate routes to a specified route table of a Net. If `false`, the propagation is disabled. + // If true, a virtual gateway can propagate routes to a specified route table of a Net. If false, the propagation is disabled. Enable bool `json:"Enable"` // The ID of the route table. RouteTableId string `json:"RouteTableId"` @@ -31,7 +31,7 @@ type UpdateRoutePropagationRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateRoutePropagationRequest(enable bool, routeTableId string, virtualGatewayId string, ) *UpdateRoutePropagationRequest { +func NewUpdateRoutePropagationRequest(enable bool, routeTableId string, virtualGatewayId string) *UpdateRoutePropagationRequest { this := UpdateRoutePropagationRequest{} this.Enable = enable this.RouteTableId = routeTableId @@ -81,7 +81,7 @@ func (o *UpdateRoutePropagationRequest) SetDryRun(v bool) { // GetEnable returns the Enable field value func (o *UpdateRoutePropagationRequest) GetEnable() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -92,7 +92,7 @@ func (o *UpdateRoutePropagationRequest) GetEnable() bool { // GetEnableOk returns a tuple with the Enable field value // and a boolean to check if the value has been set. func (o *UpdateRoutePropagationRequest) GetEnableOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.Enable, true @@ -105,7 +105,7 @@ func (o *UpdateRoutePropagationRequest) SetEnable(v bool) { // GetRouteTableId returns the RouteTableId field value func (o *UpdateRoutePropagationRequest) GetRouteTableId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -116,7 +116,7 @@ func (o *UpdateRoutePropagationRequest) GetRouteTableId() string { // GetRouteTableIdOk returns a tuple with the RouteTableId field value // and a boolean to check if the value has been set. func (o *UpdateRoutePropagationRequest) GetRouteTableIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RouteTableId, true @@ -129,7 +129,7 @@ func (o *UpdateRoutePropagationRequest) SetRouteTableId(v string) { // GetVirtualGatewayId returns the VirtualGatewayId field value func (o *UpdateRoutePropagationRequest) GetVirtualGatewayId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -140,7 +140,7 @@ func (o *UpdateRoutePropagationRequest) GetVirtualGatewayId() string { // GetVirtualGatewayIdOk returns a tuple with the VirtualGatewayId field value // and a boolean to check if the value has been set. func (o *UpdateRoutePropagationRequest) GetVirtualGatewayIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VirtualGatewayId, true @@ -203,5 +203,3 @@ func (v *NullableUpdateRoutePropagationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_response.go index 1f8d5c7a5..0edf977e2 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_propagation_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // UpdateRoutePropagationResponse struct for UpdateRoutePropagationResponse type UpdateRoutePropagationResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - RouteTable *RouteTable `json:"RouteTable,omitempty"` + RouteTable *RouteTable `json:"RouteTable,omitempty"` } // NewUpdateRoutePropagationResponse instantiates a new UpdateRoutePropagationResponse object @@ -148,5 +148,3 @@ func (v *NullableUpdateRoutePropagationResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_request.go index cc5a831b2..5f2a4b9c6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,7 +19,7 @@ import ( type UpdateRouteRequest struct { // The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24). DestinationIpRange string `json:"DestinationIpRange"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The ID of an Internet service or virtual gateway attached to your Net. GatewayId *string `json:"GatewayId,omitempty"` @@ -39,7 +39,7 @@ type UpdateRouteRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateRouteRequest(destinationIpRange string, routeTableId string, ) *UpdateRouteRequest { +func NewUpdateRouteRequest(destinationIpRange string, routeTableId string) *UpdateRouteRequest { this := UpdateRouteRequest{} this.DestinationIpRange = destinationIpRange this.RouteTableId = routeTableId @@ -56,7 +56,7 @@ func NewUpdateRouteRequestWithDefaults() *UpdateRouteRequest { // GetDestinationIpRange returns the DestinationIpRange field value func (o *UpdateRouteRequest) GetDestinationIpRange() string { - if o == nil { + if o == nil { var ret string return ret } @@ -67,7 +67,7 @@ func (o *UpdateRouteRequest) GetDestinationIpRange() string { // GetDestinationIpRangeOk returns a tuple with the DestinationIpRange field value // and a boolean to check if the value has been set. func (o *UpdateRouteRequest) GetDestinationIpRangeOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.DestinationIpRange, true @@ -240,7 +240,7 @@ func (o *UpdateRouteRequest) SetNicId(v string) { // GetRouteTableId returns the RouteTableId field value func (o *UpdateRouteRequest) GetRouteTableId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -251,7 +251,7 @@ func (o *UpdateRouteRequest) GetRouteTableId() string { // GetRouteTableIdOk returns a tuple with the RouteTableId field value // and a boolean to check if the value has been set. func (o *UpdateRouteRequest) GetRouteTableIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.RouteTableId, true @@ -358,5 +358,3 @@ func (v *NullableUpdateRouteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_response.go index 25a3001d3..db733a084 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_route_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // UpdateRouteResponse struct for UpdateRouteResponse type UpdateRouteResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - RouteTable *RouteTable `json:"RouteTable,omitempty"` + RouteTable *RouteTable `json:"RouteTable,omitempty"` } // NewUpdateRouteResponse instantiates a new UpdateRouteResponse object @@ -148,5 +148,3 @@ func (v *NullableUpdateRouteResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_request.go index 1b30943e7..6582b65b0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,10 +17,10 @@ import ( // UpdateServerCertificateRequest struct for UpdateServerCertificateRequest type UpdateServerCertificateRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` // The name of the server certificate you want to modify. - Name *string `json:"Name,omitempty"` + Name string `json:"Name"` // A new name for the server certificate. NewName *string `json:"NewName,omitempty"` // A new path for the server certificate. @@ -31,8 +31,9 @@ type UpdateServerCertificateRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateServerCertificateRequest() *UpdateServerCertificateRequest { +func NewUpdateServerCertificateRequest(name string) *UpdateServerCertificateRequest { this := UpdateServerCertificateRequest{} + this.Name = name return &this } @@ -76,36 +77,28 @@ func (o *UpdateServerCertificateRequest) SetDryRun(v bool) { o.DryRun = &v } -// GetName returns the Name field value if set, zero value otherwise. +// GetName returns the Name field value func (o *UpdateServerCertificateRequest) GetName() string { - if o == nil || o.Name == nil { + if o == nil { var ret string return ret } - return *o.Name + + return o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *UpdateServerCertificateRequest) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { + if o == nil { return nil, false } - return o.Name, true + return &o.Name, true } -// HasName returns a boolean if a field has been set. -func (o *UpdateServerCertificateRequest) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. +// SetName sets field value func (o *UpdateServerCertificateRequest) SetName(v string) { - o.Name = &v + o.Name = v } // GetNewName returns the NewName field value if set, zero value otherwise. @@ -177,7 +170,7 @@ func (o UpdateServerCertificateRequest) MarshalJSON() ([]byte, error) { if o.DryRun != nil { toSerialize["DryRun"] = o.DryRun } - if o.Name != nil { + if true { toSerialize["Name"] = o.Name } if o.NewName != nil { @@ -224,5 +217,3 @@ func (v *NullableUpdateServerCertificateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_response.go index 2c254da5d..90ece253a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_server_certificate_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,7 +17,7 @@ import ( // UpdateServerCertificateResponse struct for UpdateServerCertificateResponse type UpdateServerCertificateResponse struct { - ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` ServerCertificate *ServerCertificate `json:"ServerCertificate,omitempty"` } @@ -148,5 +148,3 @@ func (v *NullableUpdateServerCertificateResponse) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_request.go index 831321938..cf34edd14 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,8 +17,8 @@ import ( // UpdateSnapshotRequest struct for UpdateSnapshotRequest type UpdateSnapshotRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. - DryRun *bool `json:"DryRun,omitempty"` + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` PermissionsToCreateVolume PermissionsOnResourceCreation `json:"PermissionsToCreateVolume"` // The ID of the snapshot. SnapshotId string `json:"SnapshotId"` @@ -28,7 +28,7 @@ type UpdateSnapshotRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateSnapshotRequest(permissionsToCreateVolume PermissionsOnResourceCreation, snapshotId string, ) *UpdateSnapshotRequest { +func NewUpdateSnapshotRequest(permissionsToCreateVolume PermissionsOnResourceCreation, snapshotId string) *UpdateSnapshotRequest { this := UpdateSnapshotRequest{} this.PermissionsToCreateVolume = permissionsToCreateVolume this.SnapshotId = snapshotId @@ -77,7 +77,7 @@ func (o *UpdateSnapshotRequest) SetDryRun(v bool) { // GetPermissionsToCreateVolume returns the PermissionsToCreateVolume field value func (o *UpdateSnapshotRequest) GetPermissionsToCreateVolume() PermissionsOnResourceCreation { - if o == nil { + if o == nil { var ret PermissionsOnResourceCreation return ret } @@ -88,7 +88,7 @@ func (o *UpdateSnapshotRequest) GetPermissionsToCreateVolume() PermissionsOnReso // GetPermissionsToCreateVolumeOk returns a tuple with the PermissionsToCreateVolume field value // and a boolean to check if the value has been set. func (o *UpdateSnapshotRequest) GetPermissionsToCreateVolumeOk() (*PermissionsOnResourceCreation, bool) { - if o == nil { + if o == nil { return nil, false } return &o.PermissionsToCreateVolume, true @@ -101,7 +101,7 @@ func (o *UpdateSnapshotRequest) SetPermissionsToCreateVolume(v PermissionsOnReso // GetSnapshotId returns the SnapshotId field value func (o *UpdateSnapshotRequest) GetSnapshotId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -112,7 +112,7 @@ func (o *UpdateSnapshotRequest) GetSnapshotId() string { // GetSnapshotIdOk returns a tuple with the SnapshotId field value // and a boolean to check if the value has been set. func (o *UpdateSnapshotRequest) GetSnapshotIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SnapshotId, true @@ -172,5 +172,3 @@ func (v *NullableUpdateSnapshotRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_response.go index 46294db26..f0674fa84 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_snapshot_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // UpdateSnapshotResponse struct for UpdateSnapshotResponse type UpdateSnapshotResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - Snapshot *Snapshot `json:"Snapshot,omitempty"` + Snapshot *Snapshot `json:"Snapshot,omitempty"` } // NewUpdateSnapshotResponse instantiates a new UpdateSnapshotResponse object @@ -148,5 +148,3 @@ func (v *NullableUpdateSnapshotResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_request.go index 568e5b9e0..59bba1e1f 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,9 +17,9 @@ import ( // UpdateSubnetRequest struct for UpdateSubnetRequest type UpdateSubnetRequest struct { - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` - // If `true`, a public IP address is assigned to the network interface cards (NICs) created in the specified Subnet. + // If true, a public IP address is assigned to the network interface cards (NICs) created in the specified Subnet. MapPublicIpOnLaunch bool `json:"MapPublicIpOnLaunch"` // The ID of the Subnet. SubnetId string `json:"SubnetId"` @@ -29,7 +29,7 @@ type UpdateSubnetRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateSubnetRequest(mapPublicIpOnLaunch bool, subnetId string, ) *UpdateSubnetRequest { +func NewUpdateSubnetRequest(mapPublicIpOnLaunch bool, subnetId string) *UpdateSubnetRequest { this := UpdateSubnetRequest{} this.MapPublicIpOnLaunch = mapPublicIpOnLaunch this.SubnetId = subnetId @@ -78,7 +78,7 @@ func (o *UpdateSubnetRequest) SetDryRun(v bool) { // GetMapPublicIpOnLaunch returns the MapPublicIpOnLaunch field value func (o *UpdateSubnetRequest) GetMapPublicIpOnLaunch() bool { - if o == nil { + if o == nil { var ret bool return ret } @@ -89,7 +89,7 @@ func (o *UpdateSubnetRequest) GetMapPublicIpOnLaunch() bool { // GetMapPublicIpOnLaunchOk returns a tuple with the MapPublicIpOnLaunch field value // and a boolean to check if the value has been set. func (o *UpdateSubnetRequest) GetMapPublicIpOnLaunchOk() (*bool, bool) { - if o == nil { + if o == nil { return nil, false } return &o.MapPublicIpOnLaunch, true @@ -102,7 +102,7 @@ func (o *UpdateSubnetRequest) SetMapPublicIpOnLaunch(v bool) { // GetSubnetId returns the SubnetId field value func (o *UpdateSubnetRequest) GetSubnetId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -113,7 +113,7 @@ func (o *UpdateSubnetRequest) GetSubnetId() string { // GetSubnetIdOk returns a tuple with the SubnetId field value // and a boolean to check if the value has been set. func (o *UpdateSubnetRequest) GetSubnetIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.SubnetId, true @@ -173,5 +173,3 @@ func (v *NullableUpdateSubnetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_response.go index 99ae5e011..b9d601e46 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_subnet_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // UpdateSubnetResponse struct for UpdateSubnetResponse type UpdateSubnetResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - Subnet *Subnet `json:"Subnet,omitempty"` + Subnet *Subnet `json:"Subnet,omitempty"` } // NewUpdateSubnetResponse instantiates a new UpdateSubnetResponse object @@ -148,5 +148,3 @@ func (v *NullableUpdateSubnetResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_request.go index 8bc363b79..5eef64fe6 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_request.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_request.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -19,17 +19,17 @@ import ( type UpdateVmRequest struct { // One or more block device mappings of the VM. BlockDeviceMappings *[]BlockDeviceMappingVmUpdate `json:"BlockDeviceMappings,omitempty"` - // If `true`, the VM is optimized for BSU I/O. + // If true, the VM is optimized for BSU I/O. BsuOptimized *bool `json:"BsuOptimized,omitempty"` - // If `true`, you cannot terminate the VM using Cockpit, the CLI or the API. If `false`, you can. + // If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. DeletionProtection *bool `json:"DeletionProtection,omitempty"` - // If `true`, checks whether you have the required permissions to perform the action. + // If true, checks whether you have the required permissions to perform the action. DryRun *bool `json:"DryRun,omitempty"` - // (Net only) If `true`, the source/destination check is enabled. If `false`, it is disabled. This value must be `false` for a NAT VM to perform network address translation (NAT) in a Net. + // (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. IsSourceDestChecked *bool `json:"IsSourceDestChecked,omitempty"` // The name of the keypair.
To complete the replacement, manually replace the old public key with the new public key in the ~/.ssh/authorized_keys file located in the VM. Restart the VM to apply the change. KeypairName *string `json:"KeypairName,omitempty"` - // The performance of the VM (`standard` \\| `high` \\| `highest`). + // The performance of the VM (`medium` \\| `high` \\| `highest`). Performance *string `json:"Performance,omitempty"` // One or more IDs of security groups for the VM. SecurityGroupIds *[]string `json:"SecurityGroupIds,omitempty"` @@ -47,7 +47,7 @@ type UpdateVmRequest struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateVmRequest(vmId string, ) *UpdateVmRequest { +func NewUpdateVmRequest(vmId string) *UpdateVmRequest { this := UpdateVmRequest{} this.VmId = vmId return &this @@ -351,7 +351,7 @@ func (o *UpdateVmRequest) SetUserData(v string) { // GetVmId returns the VmId field value func (o *UpdateVmRequest) GetVmId() string { - if o == nil { + if o == nil { var ret string return ret } @@ -362,7 +362,7 @@ func (o *UpdateVmRequest) GetVmId() string { // GetVmIdOk returns a tuple with the VmId field value // and a boolean to check if the value has been set. func (o *UpdateVmRequest) GetVmIdOk() (*string, bool) { - if o == nil { + if o == nil { return nil, false } return &o.VmId, true @@ -513,5 +513,3 @@ func (v *NullableUpdateVmRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_response.go index 715485d4d..d2562b135 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_vm_response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -18,7 +18,7 @@ import ( // UpdateVmResponse struct for UpdateVmResponse type UpdateVmResponse struct { ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` - Vm *Vm `json:"Vm,omitempty"` + Vm *Vm `json:"Vm,omitempty"` } // NewUpdateVmResponse instantiates a new UpdateVmResponse object @@ -148,5 +148,3 @@ func (v *NullableUpdateVmResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_volume_request.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_volume_request.go new file mode 100644 index 000000000..f4737ac9a --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_volume_request.go @@ -0,0 +1,182 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// UpdateVolumeRequest struct for UpdateVolumeRequest +type UpdateVolumeRequest struct { + // If true, checks whether you have the required permissions to perform the action. + DryRun *bool `json:"DryRun,omitempty"` + // The new size of the volume, in gibibytes (GiB). This value must be equal to or greater than the current size of the volume. + Size *int32 `json:"Size,omitempty"` + // The ID of the volume you want to update. + VolumeId string `json:"VolumeId"` +} + +// NewUpdateVolumeRequest instantiates a new UpdateVolumeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateVolumeRequest(volumeId string) *UpdateVolumeRequest { + this := UpdateVolumeRequest{} + this.VolumeId = volumeId + return &this +} + +// NewUpdateVolumeRequestWithDefaults instantiates a new UpdateVolumeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateVolumeRequestWithDefaults() *UpdateVolumeRequest { + this := UpdateVolumeRequest{} + return &this +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *UpdateVolumeRequest) GetDryRun() bool { + if o == nil || o.DryRun == nil { + var ret bool + return ret + } + return *o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateVolumeRequest) GetDryRunOk() (*bool, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *UpdateVolumeRequest) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given bool and assigns it to the DryRun field. +func (o *UpdateVolumeRequest) SetDryRun(v bool) { + o.DryRun = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *UpdateVolumeRequest) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateVolumeRequest) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *UpdateVolumeRequest) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *UpdateVolumeRequest) SetSize(v int32) { + o.Size = &v +} + +// GetVolumeId returns the VolumeId field value +func (o *UpdateVolumeRequest) GetVolumeId() string { + if o == nil { + var ret string + return ret + } + + return o.VolumeId +} + +// GetVolumeIdOk returns a tuple with the VolumeId field value +// and a boolean to check if the value has been set. +func (o *UpdateVolumeRequest) GetVolumeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VolumeId, true +} + +// SetVolumeId sets field value +func (o *UpdateVolumeRequest) SetVolumeId(v string) { + o.VolumeId = v +} + +func (o UpdateVolumeRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DryRun != nil { + toSerialize["DryRun"] = o.DryRun + } + if o.Size != nil { + toSerialize["Size"] = o.Size + } + if true { + toSerialize["VolumeId"] = o.VolumeId + } + return json.Marshal(toSerialize) +} + +type NullableUpdateVolumeRequest struct { + value *UpdateVolumeRequest + isSet bool +} + +func (v NullableUpdateVolumeRequest) Get() *UpdateVolumeRequest { + return v.value +} + +func (v *NullableUpdateVolumeRequest) Set(val *UpdateVolumeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateVolumeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateVolumeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateVolumeRequest(val *UpdateVolumeRequest) *NullableUpdateVolumeRequest { + return &NullableUpdateVolumeRequest{value: val, isSet: true} +} + +func (v NullableUpdateVolumeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateVolumeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_update_volume_response.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_volume_response.go new file mode 100644 index 000000000..931b5ad07 --- /dev/null +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_update_volume_response.go @@ -0,0 +1,150 @@ +/* + * 3DS OUTSCALE API + * + * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. + * + * API version: 1.7 + * Contact: support@outscale.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package osc + +import ( + "encoding/json" +) + +// UpdateVolumeResponse struct for UpdateVolumeResponse +type UpdateVolumeResponse struct { + ResponseContext *ResponseContext `json:"ResponseContext,omitempty"` + Volume *Volume `json:"Volume,omitempty"` +} + +// NewUpdateVolumeResponse instantiates a new UpdateVolumeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateVolumeResponse() *UpdateVolumeResponse { + this := UpdateVolumeResponse{} + return &this +} + +// NewUpdateVolumeResponseWithDefaults instantiates a new UpdateVolumeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateVolumeResponseWithDefaults() *UpdateVolumeResponse { + this := UpdateVolumeResponse{} + return &this +} + +// GetResponseContext returns the ResponseContext field value if set, zero value otherwise. +func (o *UpdateVolumeResponse) GetResponseContext() ResponseContext { + if o == nil || o.ResponseContext == nil { + var ret ResponseContext + return ret + } + return *o.ResponseContext +} + +// GetResponseContextOk returns a tuple with the ResponseContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateVolumeResponse) GetResponseContextOk() (*ResponseContext, bool) { + if o == nil || o.ResponseContext == nil { + return nil, false + } + return o.ResponseContext, true +} + +// HasResponseContext returns a boolean if a field has been set. +func (o *UpdateVolumeResponse) HasResponseContext() bool { + if o != nil && o.ResponseContext != nil { + return true + } + + return false +} + +// SetResponseContext gets a reference to the given ResponseContext and assigns it to the ResponseContext field. +func (o *UpdateVolumeResponse) SetResponseContext(v ResponseContext) { + o.ResponseContext = &v +} + +// GetVolume returns the Volume field value if set, zero value otherwise. +func (o *UpdateVolumeResponse) GetVolume() Volume { + if o == nil || o.Volume == nil { + var ret Volume + return ret + } + return *o.Volume +} + +// GetVolumeOk returns a tuple with the Volume field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateVolumeResponse) GetVolumeOk() (*Volume, bool) { + if o == nil || o.Volume == nil { + return nil, false + } + return o.Volume, true +} + +// HasVolume returns a boolean if a field has been set. +func (o *UpdateVolumeResponse) HasVolume() bool { + if o != nil && o.Volume != nil { + return true + } + + return false +} + +// SetVolume gets a reference to the given Volume and assigns it to the Volume field. +func (o *UpdateVolumeResponse) SetVolume(v Volume) { + o.Volume = &v +} + +func (o UpdateVolumeResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ResponseContext != nil { + toSerialize["ResponseContext"] = o.ResponseContext + } + if o.Volume != nil { + toSerialize["Volume"] = o.Volume + } + return json.Marshal(toSerialize) +} + +type NullableUpdateVolumeResponse struct { + value *UpdateVolumeResponse + isSet bool +} + +func (v NullableUpdateVolumeResponse) Get() *UpdateVolumeResponse { + return v.value +} + +func (v *NullableUpdateVolumeResponse) Set(val *UpdateVolumeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateVolumeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateVolumeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateVolumeResponse(val *UpdateVolumeResponse) *NullableUpdateVolumeResponse { + return &NullableUpdateVolumeResponse{value: val, isSet: true} +} + +func (v NullableUpdateVolumeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateVolumeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_virtual_gateway.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_virtual_gateway.go index 40b2cd4e5..7a7dd0589 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_virtual_gateway.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_virtual_gateway.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -261,5 +261,3 @@ func (v *NullableVirtualGateway) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm.go index da82c8698..55591417a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -21,17 +21,17 @@ type Vm struct { Architecture *string `json:"Architecture,omitempty"` // The block device mapping of the VM. BlockDeviceMappings *[]BlockDeviceMappingCreated `json:"BlockDeviceMappings,omitempty"` - // If `true`, the VM is optimized for BSU I/O. + // If true, the VM is optimized for BSU I/O. BsuOptimized *bool `json:"BsuOptimized,omitempty"` // The idempotency token provided when launching the VM. ClientToken *string `json:"ClientToken,omitempty"` - // If `true`, you cannot terminate the VM using Cockpit, the CLI or the API. If `false`, you can. + // If true, you cannot terminate the VM using Cockpit, the CLI or the API. If false, you can. DeletionProtection *bool `json:"DeletionProtection,omitempty"` // The hypervisor type of the VMs (`ovm` \\| `xen`). Hypervisor *string `json:"Hypervisor,omitempty"` // The ID of the OMI used to create the VM. ImageId *string `json:"ImageId,omitempty"` - // (Net only) If `true`, the source/destination check is enabled. If `false`, it is disabled. This value must be `false` for a NAT VM to perform network address translation (NAT) in a Net. + // (Net only) If true, the source/destination check is enabled. If false, it is disabled. This value must be false for a NAT VM to perform network address translation (NAT) in a Net. IsSourceDestChecked *bool `json:"IsSourceDestChecked,omitempty"` // The name of the keypair used when launching the VM. KeypairName *string `json:"KeypairName,omitempty"` @@ -39,13 +39,13 @@ type Vm struct { LaunchNumber *int32 `json:"LaunchNumber,omitempty"` // The ID of the Net in which the VM is running. NetId *string `json:"NetId,omitempty"` - // The network interface cards (NICs) the VMs are attached to. + // (Net only) The network interface cards (NICs) the VMs are attached to. Nics *[]NicLight `json:"Nics,omitempty"` // Indicates the operating system (OS) of the VM. OsFamily *string `json:"OsFamily,omitempty"` - // The performance of the VM (`standard` \\| `high` \\| `highest`). - Performance *string `json:"Performance,omitempty"` - Placement *Placement `json:"Placement,omitempty"` + // The performance of the VM (`medium` \\| `high` \\| `highest`). + Performance *string `json:"Performance,omitempty"` + Placement *Placement `json:"Placement,omitempty"` // The name of the private DNS. PrivateDnsName *string `json:"PrivateDnsName,omitempty"` // The primary private IP address of the VM. @@ -1259,5 +1259,3 @@ func (v *NullableVm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_state.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_state.go index c4626eacd..b9c4366bd 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_state.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_state.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -187,5 +187,3 @@ func (v *NullableVmState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_states.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_states.go index f14a8ba11..d69106b9a 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_states.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_states.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -224,5 +224,3 @@ func (v *NullableVmStates) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_type.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_type.go index 2e71a7304..ead245781 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_type.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_vm_type.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -335,5 +335,3 @@ func (v *NullableVmType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_volume.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_volume.go index ef88c0581..9941122b4 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_volume.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_volume.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -25,7 +25,7 @@ type Volume struct { Size *int32 `json:"Size,omitempty"` // The snapshot from which the volume was created. SnapshotId *string `json:"SnapshotId,omitempty"` - // The state of the volume (`creating` \\| `available` \\| `in-use` \\| `deleting` \\| `error`). + // The state of the volume (`creating` \\| `available` \\| `in-use` \\| `updating` \\| `deleting` \\| `error`). State *string `json:"State,omitempty"` // The Subregion in which the volume was created. SubregionName *string `json:"SubregionName,omitempty"` @@ -409,5 +409,3 @@ func (v *NullableVolume) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_vpn_connection.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_vpn_connection.go index dcb4f97ba..cc0e85df3 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_vpn_connection.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_vpn_connection.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -27,7 +27,7 @@ type VpnConnection struct { Routes *[]RouteLight `json:"Routes,omitempty"` // The state of the VPN connection (`pending` \\| `available` \\| `deleting` \\| `deleted`). State *string `json:"State,omitempty"` - // If `false`, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If `true`, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). + // If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](#createvpnconnectionroute) and [DeleteVpnConnectionRoute](#deletevpnconnectionroute). StaticRoutesOnly *bool `json:"StaticRoutesOnly,omitempty"` // One or more tags associated with the VPN connection. Tags *[]ResourceTag `json:"Tags,omitempty"` @@ -409,5 +409,3 @@ func (v *NullableVpnConnection) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/model_with.go b/vendor/github.com/outscale/osc-sdk-go/v2/model_with.go index 54da2d2a2..a186cfee7 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/model_with.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/model_with.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -17,37 +17,37 @@ import ( // With The information to be displayed in the API logs to retrieve. type With struct { - // If set to `true`, the account ID is displayed in the logs. + // If set to true, the account ID is displayed in the logs. AccountId *bool `json:"AccountId,omitempty"` - // If set to `true`, the duration of the call is displayed each log. + // If set to true, the duration of the call is displayed each log. CallDuration *bool `json:"CallDuration,omitempty"` - // If set to `true`, the API key used for the query is displayed each log. + // If set to true, the API key used for the query is displayed each log. QueryAccessKey *bool `json:"QueryAccessKey,omitempty"` - // If set to `true`, the name of the API service used by the call is displayed in each log (`oapi` \\| `fcu` \\| `lbu` \\| `directlink` \\| `eim` \\| `icu`). + // If set to true, the name of the API service used by the call is displayed in each log (`oapi` \\| `fcu` \\| `lbu` \\| `directlink` \\| `eim` \\| `icu`). QueryApiName *bool `json:"QueryApiName,omitempty"` - // If set to `true`, the version of the API service used by the call is displayed in each log. + // If set to true, the version of the API service used by the call is displayed in each log. QueryApiVersion *bool `json:"QueryApiVersion,omitempty"` - // If set to `true`, the name of the call is displayed in each log. + // If set to true, the name of the call is displayed in each log. QueryCallName *bool `json:"QueryCallName,omitempty"` - // If set to `true`, the date of the call is displayed in each log. + // If set to true, the date of the call is displayed in each log. QueryDate *bool `json:"QueryDate,omitempty"` - // If set to `true`, the query header RAW is displayed in each log. + // If set to true, the query header RAW is displayed in each log. QueryHeaderRaw *bool `json:"QueryHeaderRaw,omitempty"` - // If set to `true`, the query header size is displayed in each log. + // If set to true, the query header size is displayed in each log. QueryHeaderSize *bool `json:"QueryHeaderSize,omitempty"` - // If set to `true`, the IP address used to make to query is displayed in each log. + // If set to true, the IP address used to make to query is displayed in each log. QueryIpAddress *bool `json:"QueryIpAddress,omitempty"` - // If set to `true`, the query payload raw is displayed in each log. + // If set to true, the query payload raw is displayed in each log. QueryPayloadRaw *bool `json:"QueryPayloadRaw,omitempty"` - // If set to `true`, the query payload size is displayed in each log. + // If set to true, the query payload size is displayed in each log. QueryPayloadSize *bool `json:"QueryPayloadSize,omitempty"` - // If set to `true`, the user agent used to make the HTTP request is displayed in each log. + // If set to true, the user agent used to make the HTTP request is displayed in each log. QueryUserAgent *bool `json:"QueryUserAgent,omitempty"` - // By default ot if set to `true`, the ID of the call is displayed in each log. + // By default ot if set to true, the ID of the call is displayed in each log. RequestId *bool `json:"RequestId,omitempty"` - // If set to `true`, the size of the response (in bytes) is displayed in each log. + // If set to true, the size of the response (in bytes) is displayed in each log. ResponseSize *bool `json:"ResponseSize,omitempty"` - // If set to `true`, the HTTP code provided by the response is displayed in each log. + // If set to true, the HTTP code provided by the response is displayed in each log. ResponseStatusCode *bool `json:"ResponseStatusCode,omitempty"` } @@ -668,5 +668,3 @@ func (v *NullableWith) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/response.go b/vendor/github.com/outscale/osc-sdk-go/v2/response.go index a1d2c8f8d..15c2bc618 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/response.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/response.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ diff --git a/vendor/github.com/outscale/osc-sdk-go/v2/utils.go b/vendor/github.com/outscale/osc-sdk-go/v2/utils.go index 9e633e47a..b5c86acd0 100644 --- a/vendor/github.com/outscale/osc-sdk-go/v2/utils.go +++ b/vendor/github.com/outscale/osc-sdk-go/v2/utils.go @@ -3,7 +3,7 @@ * * Welcome to the 3DS OUTSCALE's API documentation.

The 3DS OUTSCALE API enables you to manage your resources in the 3DS OUTSCALE Cloud. This documentation describes the different actions available along with code examples.

Note that the 3DS OUTSCALE Cloud is compatible with Amazon Web Services (AWS) APIs, but some resources have different names in AWS than in the 3DS OUTSCALE API. You can find a list of the differences [here](https://wiki.outscale.net/display/EN/3DS+OUTSCALE+APIs+Reference).

You can also manage your resources using the [Cockpit](https://wiki.outscale.net/display/EN/About+Cockpit) web interface. * - * API version: 1.4 + * API version: 1.7 * Contact: support@outscale.com */ @@ -76,7 +76,6 @@ func (v *NullableBool) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableInt struct { value *int isSet bool @@ -113,7 +112,6 @@ func (v *NullableInt) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableInt32 struct { value *int32 isSet bool @@ -150,7 +148,6 @@ func (v *NullableInt32) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableInt64 struct { value *int64 isSet bool @@ -187,7 +184,6 @@ func (v *NullableInt64) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableFloat32 struct { value *float32 isSet bool @@ -224,7 +220,6 @@ func (v *NullableFloat32) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableFloat64 struct { value *float64 isSet bool @@ -261,7 +256,6 @@ func (v *NullableFloat64) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableString struct { value *string isSet bool @@ -298,7 +292,6 @@ func (v *NullableString) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableTime struct { value *time.Time isSet bool diff --git a/vendor/modules.txt b/vendor/modules.txt index 37ad076f9..b4fdbb9d2 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -218,7 +218,7 @@ github.com/mitchellh/reflectwalk github.com/oklog/run # github.com/openlyinc/pointy v1.1.2 github.com/openlyinc/pointy -# github.com/outscale/osc-sdk-go/v2 v2.0.0-beta.3 +# github.com/outscale/osc-sdk-go/v2 v2.0.0 github.com/outscale/osc-sdk-go/v2 # github.com/posener/complete v1.2.1 github.com/posener/complete diff --git a/website/docs/d/flexible_gpu.html.markdown b/website/docs/d/flexible_gpu.html.markdown new file mode 100644 index 000000000..9a648f407 --- /dev/null +++ b/website/docs/d/flexible_gpu.html.markdown @@ -0,0 +1,50 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_flexible_gpu" +sidebar_current: "outscale-flexible-gpu" +description: |- + [Provides information about a specific flexible GPU.] +--- + +# outscale_flexible_gpu Data Source + +Provides information about a specific flexible GPU. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#3ds-outscale-api-flexiblegpu). + +## Example Usage + +``` +data "outscale_flexible_gpu" "flexible_gpu01" { + filter { + name = "flexible_gpu_ids" + values = ["fgpu-12345678"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filter` - One or more filters. + * `delete_on_vm_deletion` - (Optional) Indicates whether the fGPU is deleted when terminating the VM. + * `flexible_gpu_ids` - (Optional) One or more IDs of fGPUs. + * `generations` - (Optional) The processor generations that the fGPUs are compatible with. + * `model_names` - (Optional) One or more models of fGPUs. For more information, see [About Flexible GPUs](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). + * `states` - (Optional) The states of the fGPUs (`allocated` \| `attaching` \| `attached` \| `detaching`). + * `subregion_names` - (Optional) The Subregions where the fGPUs are located. + * `vm_ids` - (Optional) One or more IDs of VMs. + +## Attribute Reference + +The following attributes are exported: + +* `flexible_gpus` - Information about one or more fGPUs. + * `delete_on_vm_deletion` - If true, the fGPU is deleted when the VM is terminated. + * `flexible_gpu_id` - The ID of the fGPU. + * `generation` - The compatible processor generation. + * `model_name` - The model of fGPU. For more information, see [About Flexible GPUs](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). + * `state` - The state of the fGPU (`allocated` \| `attaching` \| `attached` \| `detaching`). + * `subregion_name` - The Subregion where the fGPU is located. + * `vm_id` - The ID of the VM the fGPU is attached to, if any. diff --git a/website/docs/d/flexible_gpu_catalog.html.markdown b/website/docs/d/flexible_gpu_catalog.html.markdown new file mode 100644 index 000000000..0898910e6 --- /dev/null +++ b/website/docs/d/flexible_gpu_catalog.html.markdown @@ -0,0 +1,36 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_flexible_gpu_catalog" +sidebar_current: "outscale-flexible-gpu-catalog" +description: |- + [Provides information about a specific flexible GPU catalog.] +--- + +# outscale_flexible_gpu_catalog Data Source + +Provides information about a specific flexible GPU catalog. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#readflexiblegpucatalog). + +## Example Usage + +```hcl +data "outscale_flexible_gpu_catalog" "flexible_gpu_catalog01" { + +} +``` + +## Argument Reference + +No argument is supported. + +## Attribute Reference + +The following attributes are exported: + +* `flexible_gpu_catalog` - Information about one or more fGPUs available in the public catalog. + * `generations` - The generations of VMs that the fGPU is compatible with. + * `max_cpu` - The maximum number of VM vCores that the fGPU is compatible with. + * `max_ram` - The maximum amount of VM memory that the fGPU is compatible with. + * `model_name` - The model of fGPU. + * `v_ram` - The amount of video RAM (VRAM) of the fGPU. diff --git a/website/docs/d/flexible_gpus.html.markdown b/website/docs/d/flexible_gpus.html.markdown new file mode 100644 index 000000000..d6a32256d --- /dev/null +++ b/website/docs/d/flexible_gpus.html.markdown @@ -0,0 +1,50 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_flexible_gpus" +sidebar_current: "outscale-flexible-gpus" +description: |- + [Provides information about flexible GPUs.] +--- + +# outscale_flexible_gpus Data Source + +Provides information about flexible GPUs. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#3ds-outscale-api-flexiblegpu). + +## Example Usage + +``` +data "outscale_flexible_gpus" "flexible_gpus01" { + filter { + name = "fgpu_ids" + values = ["fgpu-12345678", "fgpu-12345679"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filter` - One or more filters. + * `delete_on_vm_deletion` - (Optional) Indicates whether the fGPU is deleted when terminating the VM. + * `flexible_gpu_ids` - (Optional) One or more IDs of fGPUs. + * `generations` - (Optional) The processor generations that the fGPUs are compatible with. + * `model_names` - (Optional) One or more models of fGPUs. For more information, see [About Flexible GPUs](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). + * `states` - (Optional) The states of the fGPUs (`allocated` \| `attaching` \| `attached` \| `detaching`). + * `subregion_names` - (Optional) The Subregions where the fGPUs are located. + * `vm_ids` - (Optional) One or more IDs of VMs. + +## Attribute Reference + +The following attributes are exported: + +* `flexible_gpus` - Information about one or more fGPUs. + * `delete_on_vm_deletion` - If true, the fGPU is deleted when the VM is terminated. + * `flexible_gpu_id` - The ID of the fGPU. + * `generation` - The compatible processor generation. + * `model_name` - The model of fGPU. For more information, see [About Flexible GPUs](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). + * `state` - The state of the fGPU (`allocated` \| `attaching` \| `attached` \| `detaching`). + * `subregion_name` - The Subregion where the fGPU is located. + * `vm_id` - The ID of the VM the fGPU is attached to, if any. diff --git a/website/docs/d/load_balancer.html.markdown b/website/docs/d/load_balancer.html.markdown index 4938a95c3..d5e3af571 100644 --- a/website/docs/d/load_balancer.html.markdown +++ b/website/docs/d/load_balancer.html.markdown @@ -50,16 +50,16 @@ The following attributes are exported: * `healthy_threshold` - The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). * `path` - The path for HTTP or HTTPS requests. * `port` - The port number (between `1` and `65535`, both included). - * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `timeout` - The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). * `unhealthy_threshold` - The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). * `listeners` - The listeners for the load balancer. * `backend_port` - The port on which the back-end VM is listening (between `1` and `65535`, both included). - * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `load_balancer_port` - The port on which the load balancer is listening (between 1 and `65535`, both included). - * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `policy_names` - The names of the policies. If there are no policies enabled, the list is empty. - * `server_certificate_id` - The ID of the server certificate. + * `server_certificate_id` - The OUTSCALE Resource Name (ORN) of the server certificate. * `load_balancer_name` - The name of the load balancer. * `load_balancer_sticky_cookie_policies` - The policies defined for the load balancer. * `policy_name` - The name of the stickiness policy. diff --git a/website/docs/d/load_balancers.html.markdown b/website/docs/d/load_balancers.html.markdown index d274d997f..8a0624e70 100644 --- a/website/docs/d/load_balancers.html.markdown +++ b/website/docs/d/load_balancers.html.markdown @@ -50,16 +50,16 @@ The following attributes are exported: * `healthy_threshold` - The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). * `path` - The path for HTTP or HTTPS requests. * `port` - The port number (between `1` and `65535`, both included). - * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `timeout` - The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). * `unhealthy_threshold` - The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). * `listeners` - The listeners for the load balancer. * `backend_port` - The port on which the back-end VM is listening (between `1` and `65535`, both included). - * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `load_balancer_port` - The port on which the load balancer is listening (between 1 and `65535`, both included). - * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `policy_names` - The names of the policies. If there are no policies enabled, the list is empty. - * `server_certificate_id` - The ID of the server certificate. + * `server_certificate_id` - The OUTSCALE Resource Name (ORN) of the server certificate. * `load_balancer_name` - The name of the load balancer. * `load_balancer_sticky_cookie_policies` - The policies defined for the load balancer. * `policy_name` - The name of the stickiness policy. diff --git a/website/docs/d/net_access_point.html.markdown b/website/docs/d/net_access_point.html.markdown new file mode 100644 index 000000000..09e81c990 --- /dev/null +++ b/website/docs/d/net_access_point.html.markdown @@ -0,0 +1,68 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_net_access_point" +sidebar_current: "outscale-net-access-point" +description: |- + [Provides information about a specific Net access point.] +--- + +# outscale_net_access_point Data Source + +Provides information about a specific Net access point. +For more information on this resource, see the [User Guide](https://wiki.outscale.internal/display/EN/About+VPC+Endpoints). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#3ds-outscale-api-netaccesspoint). + +## Example Usage + +### List a Net access point + +```hcl +data "outscale_net_access_point" "net_access_point01" { + filter { + name = "net_access_point_ids" + values = ["vpce-12345678"] + } +} +``` + +### List a Net access point according to its Net and state + +```hcl +data "outscale_net_access_point" "net_access_point02" { + filter { + name = "net_ids" + values = ["vpc-12345678"] + } + filter { + name = "states" + values = ["available"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filter` - One or more filters. + * `net_access_point_ids` - (Optional) The IDs of the Net access points. + * `net_ids` - (Optional) The IDs of the Nets. + * `service_names` - (Optional) The names of the services. For more information, see [ReadNetAccessPointServices](https://docs.outscale.com/api#readnetaccesspointservices). + * `states` - (Optional) The states of the Net access points (`pending` \| `available` \| `deleting` \| `deleted`). + * `tag_keys` - (Optional) The keys of the tags associated with the Net access points. + * `tag_values` - (Optional) The values of the tags associated with the Net access points. + * `tags` - (Optional) The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + +## Attribute Reference + +The following attributes are exported: + +* `net_access_points` - One or more Net access points. + * `net_access_point_id` - The ID of the Net access point. + * `net_id` - The ID of the Net with which the Net access point is associated. + * `route_table_ids` - The ID of the route tables associated with the Net access point. + * `service_name` - The name of the service with which the Net access point is associated. + * `state` - The state of the Net access point (`pending` \| `available` \| `deleting` \| `deleted`). + * `tags` - One or more tags associated with the Net access point. + * `key` - The key of the tag, with a minimum of 1 character. + * `value` - The value of the tag, between 0 and 255 characters. diff --git a/website/docs/d/net_access_point_services.html.markdown b/website/docs/d/net_access_point_services.html.markdown new file mode 100644 index 000000000..ffd0b459d --- /dev/null +++ b/website/docs/d/net_access_point_services.html.markdown @@ -0,0 +1,61 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_net_access_point_services" +sidebar_current: "outscale-net-access-point-services" +description: |- + [Provides information about Net access point services.] +--- + +# outscale_net_access_point_services Data Source + +Provides information about Net access point services. +For more information on this resource, see the [User Guide](https://wiki.outscale.internal/display/EN/About+VPC+Endpoints). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#3ds-outscale-api-netaccesspoint). + +## Example Usage + +### List all services available to create Net access points + +```hcl +data "outscale_net_access_point_services" "all-services" { +} +``` + +### List one or more services according to their service IDs + +```hcl +data "outscale_net_access_point_services" "services01" { + filter { + name = "service_ids" + values = ["pl-12345678","pl-12345679"] + } +} +``` + +### List one or more services according to their service names + +```hcl +data "outscale_net_access_point_services" "services02" { + filter { + name = "service_names" + values = ["com.outscale.eu-west-2.api"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filter` - One or more filters. + * `service_ids` - (Optional) The IDs of the services. + * `service_names` - (Optional) The names of the services. + +## Attribute Reference + +The following attributes are exported: + +* `services` - The names of the services you can use for Net access points. + * `ip_ranges` - The list of network prefixes used by the service, in CIDR notation. + * `service_id` - The ID of the service. + * `service_name` - The name of the service. diff --git a/website/docs/d/net_access_points.html.markdown b/website/docs/d/net_access_points.html.markdown new file mode 100644 index 000000000..6ced9f05f --- /dev/null +++ b/website/docs/d/net_access_points.html.markdown @@ -0,0 +1,68 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_net_access_points" +sidebar_current: "outscale-net-access-points" +description: |- + [Provides information about Net access points.] +--- + +# outscale_net_access_points Data Source + +Provides information about Net access points. +For more information on this resource, see the [User Guide](https://wiki.outscale.internal/display/EN/About+VPC+Endpoints). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#3ds-outscale-api-netaccesspoint). + +## Example Usage + +### List Net access points + +```hcl +data "outscale_net_access_points" "net_access_points01" { + filter { + name = "net_access_point_ids" + values = ["vpce-12345678","vpce-12345679"] + } +} +``` + +### List Net access points according to their Net and state + +```hcl +data "outscale_net_access_points" "net_access_points02" { + filter { + name = "net_ids" + values = ["vpc-12345678"] + } + filter { + name = "states" + values = ["available"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filter` - One or more filters. + * `net_access_point_ids` - (Optional) The IDs of the Net access points. + * `net_ids` - (Optional) The IDs of the Nets. + * `service_names` - (Optional) The names of the services. For more information, see [ReadNetAccessPointServices](https://docs.outscale.com/api#readnetaccesspointservices). + * `states` - (Optional) The states of the Net access points (`pending` \| `available` \| `deleting` \| `deleted`). + * `tag_keys` - (Optional) The keys of the tags associated with the Net access points. + * `tag_values` - (Optional) The values of the tags associated with the Net access points. + * `tags` - (Optional) The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + +## Attribute Reference + +The following attributes are exported: + +* `net_access_points` - One or more Net access points. + * `net_access_point_id` - The ID of the Net access point. + * `net_id` - The ID of the Net with which the Net access point is associated. + * `route_table_ids` - The ID of the route tables associated with the Net access point. + * `service_name` - The name of the service with which the Net access point is associated. + * `state` - The state of the Net access point (`pending` \| `available` \| `deleting` \| `deleted`). + * `tags` - One or more tags associated with the Net access point. + * `key` - The key of the tag, with a minimum of 1 character. + * `value` - The value of the tag, between 0 and 255 characters. diff --git a/website/docs/d/regions.html.markdown b/website/docs/d/regions.html.markdown new file mode 100644 index 000000000..20cef9df8 --- /dev/null +++ b/website/docs/d/regions.html.markdown @@ -0,0 +1,33 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_regions" +sidebar_current: "outscale-regions" +description: |- + [Provides information about Regions.] +--- + +# outscale_regions Data Source + +Provides information about Regions. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Regions%2C+Endpoints%2C+and+Availability+Zones). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#readregions). + +## Example Usage + +```hcl +data "outscale_regions" "all_regions" { + +} +``` + +## Argument Reference + +No argument is supported. + +## Attribute Reference + +The following attributes are exported: + +* `regions` - Information about one or more Regions. + * `endpoint` - The hostname of the gateway to access the Region. + * `region_name` - The administrative name of the Region. diff --git a/website/docs/d/subregions.html.markdown b/website/docs/d/subregions.html.markdown new file mode 100644 index 000000000..8d595b18b --- /dev/null +++ b/website/docs/d/subregions.html.markdown @@ -0,0 +1,59 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_subregions" +sidebar_current: "outscale-subregions" +description: |- + [Provides information about subregions.] +--- + +# outscale_subregions Data Source + +Provides information about subregions. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Regions%2C+Endpoints%2C+and+Availability+Zones). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#readsubregions). + +## Example Usage + +### List a specific Subregion in the current Region + +```hcl +data "outscale_subregions" "subregions01" { + filter { + name = "subregion_names" + values = ["eu-west-2a"] + } +} +``` + +### List two specific Subregions in the current Region + +```hcl +data "outscale_subregions" "subregions02" { + filter { + name = "subregion_names" + values = ["eu-west-2a", "eu-west-2b"] + } +} +``` +### List all accessible Subregions in the current Region + +```hcl +data "outscale_subregions" "all-subregions" { +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filter` - One or more filters. + * `subregion_names` - (Optional) The names of the Subregions. + +## Attribute Reference + +The following attributes are exported: + +* `subregions` - Information about one or more Subregions. + * `region_name` - The name of the Region containing the Subregion. + * `state` - The state of the Subregion (`available` \| `information` \| `impaired` \| `unavailable`). + * `subregion_name` - The name of the Subregion. diff --git a/website/docs/d/vm.html.markdown b/website/docs/d/vm.html.markdown index 0f2a68a7d..839d43e3f 100644 --- a/website/docs/d/vm.html.markdown +++ b/website/docs/d/vm.html.markdown @@ -41,6 +41,7 @@ The following arguments are supported: The following attributes are exported: * `vms` - Information about one or more VMs. + * `admin_password` - (Windows VM only) The administrator password of the VM. This password is encrypted with the keypair of the VM and encoded in Base64. You need to wait about 10 minutes after launching the VM to be able to retrieve this attribute. Once the password is ready, this attribute will appear in the Terraform state after the next refresh or apply command. Note also that after the first reboot of the VM, this attribute can no longer be retrieved. For more information on how to use this password to connect to the VM, see [Accessing a Windows Instance](https://wiki.outscale.net/display/EN/Accessing+a+Windows+Instance). * `architecture` - The architecture of the VM (`i386` \| `x86_64`). * `block_device_mappings_created` - The block device mapping of the VM. * `bsu` - Information about the created BSU volume. diff --git a/website/docs/d/vm_types.html.markdown b/website/docs/d/vm_types.html.markdown new file mode 100644 index 000000000..f8b9b57be --- /dev/null +++ b/website/docs/d/vm_types.html.markdown @@ -0,0 +1,66 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_vm_types" +sidebar_current: "outscale-vm-types" +description: |- + [Provides information about VM types.] +--- + +# outscale_vm_types Data Source + +Provides information about VM types. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/Instance+Types). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#readvmtypes). + +## Example Usage + +### All types of VM +```hcl +data "outscale_vm_types" "all_vm_types" { +} +``` + +### VMs optimized for Block Storage Unit (BSU) +```hcl +data "outscale_vm_types" "vm_types01" { + filter { + name = "bsu_optimized" + values = [true] + } +} +``` + +### Specific type of VM +```hcl +data "outscale_vm_types" "vm_types02" { + filter { + name = "vm_type_names" + values = ["m3.large"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following: + * `bsu_optimized` - (Optional) Indicates whether the VM is optimized for BSU I/O. + * `memory_sizes` - (Optional) The amounts of memory, in gibibytes (GiB). + * `vcore_counts` - (Optional) The numbers of vCores. + * `vm_type_names` - (Optional) The names of the VM types. For more information, see [Instance Types](https://wiki.outscale.net/display/EN/Instance+Types). + * `volume_counts` - (Optional) The maximum number of ephemeral storage disks. + * `volume_sizes` - (Optional) The size of one ephemeral storage disk, in gibibytes (GiB). + +## Attribute Reference + +The following attributes are exported: + +* `vm_types` - Information about one or more VM types. + * `bsu_optimized` - Indicates whether the VM is optimized for BSU I/O. + * `max_private_ips` - The maximum number of private IP addresses per network interface card (NIC). + * `memory_size` - The amount of memory, in gibibytes. + * `vcore_count` - The number of vCores. + * `vm_type_name` - The name of the VM type. + * `volume_count` - The maximum number of ephemeral storage disks. + * `volume_size` - The size of one ephemeral storage disk, in gibibytes (GiB). diff --git a/website/docs/d/vms.html.markdown b/website/docs/d/vms.html.markdown index 6af8efa1a..c363ecd76 100644 --- a/website/docs/d/vms.html.markdown +++ b/website/docs/d/vms.html.markdown @@ -41,6 +41,7 @@ The following arguments are supported: The following attributes are exported: * `vms` - Information about one or more VMs. + * `admin_password` - (Windows VM only) The administrator password of the VM. This password is encrypted with the keypair of the VM and encoded in Base64. You need to wait about 10 minutes after launching the VM to be able to retrieve this attribute. Once the password is ready, this attribute will appear in the Terraform state after the next refresh or apply command. Note also that after the first reboot of the VM, this attribute can no longer be retrieved. For more information on how to use this password to connect to the VM, see [Accessing a Windows Instance](https://wiki.outscale.net/display/EN/Accessing+a+Windows+Instance). * `architecture` - The architecture of the VM (`i386` \| `x86_64`). * `block_device_mappings_created` - The block device mapping of the VM. * `bsu` - Information about the created BSU volume. diff --git a/website/docs/d/vms_state.html.markdown b/website/docs/d/vms_state.html.markdown deleted file mode 100644 index 9b04884a4..000000000 --- a/website/docs/d/vms_state.html.markdown +++ /dev/null @@ -1,51 +0,0 @@ ---- -layout: "outscale" -page_title: "3DS OUTSCALE: outscale_vm_state" -sidebar_current: "outscale-vm-state" -description: |- - [Provides information about VM states.] ---- - -# outscale_vm_states Data Source - -Provides information about VM states. -For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Instance+Lifecycle). -For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#readvmsstate). - -## Example Usage - -```hcl - -data "outscale_vm_states" "vm_states01" { - filter { - name = "vm_ids" - values = ["i-12345678", "i-12345679"] - } -} - - -``` - -## Argument Reference - -The following arguments are supported: - -* `all_vms` - (Optional) If `true`, includes the status of all VMs. By default or if set to `false`, only includes the status of running VMs. -* `filter` - One or more filters. - * `subregion_names` - (Optional) The names of the Subregions of the VMs. - * `vm_ids` - (Optional) One or more IDs of VMs. - * `vm_states` - (Optional) The states of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). - -## Attribute Reference - -The following attributes are exported: - -* `vm_states` - Information about one or more VM states. - * `maintenance_events` - One or more scheduled events associated with the VM. - * `code` - The code of the event (`system-reboot` \| `system-maintenance`). - * `description` - The description of the event. - * `not_after` - The latest scheduled end time for the event. - * `not_before` - The earliest scheduled start time for the event. - * `subregion_name` - The name of the Subregion of the VM. - * `vm_id` - The ID of the VM. - * `vm_state` - The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index 959ca575f..b4cda761b 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown @@ -14,8 +14,9 @@ The provider is based on our 3DS OUTSCALE API. For more information, see [APIs R The provider needs to be configured with the proper credentials before it can be used. --> **Note:** Since the release of Terraform 0.13, provider declaration has changed. For more information, see our [README](https://github.com/outscale-dev/terraform-provider-outscale#using-the-provider) and the [Terraform documentation](https://www.terraform.io/docs/configuration/provider-requirements.html). +~> **Important:** Since the release of Terraform 0.13, provider declaration has changed. For more information, see our [README](https://github.com/outscale-dev/terraform-provider-outscale#using-the-provider) and the [Terraform documentation](https://www.terraform.io/docs/configuration/provider-requirements.html). +-> **Note:** To configure a proxy, see our [README](https://github.com/outscale-dev/terraform-provider-outscale#configuring-the-proxy-on-linuxmac-os-if-any). ## Example @@ -23,9 +24,9 @@ The provider needs to be configured with the proper credentials before it can be provider "outscale" { access_key_id = var.access_key_id secret_key_id = var.secret_key_id - region = "cn-southeast-1" + region = "eu-west-2" endpoints { - api = "api.cn-southeast-1.outscale.hk" + api = "api.eu-west-2.outscale.com" } x509_cert_path = "/tmp/client-certificate.pem" x509_key_path = "/tmp/key.pem" diff --git a/website/docs/r/flexible_gpu.html.markdown b/website/docs/r/flexible_gpu.html.markdown new file mode 100644 index 000000000..3d590784e --- /dev/null +++ b/website/docs/r/flexible_gpu.html.markdown @@ -0,0 +1,58 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_flexible_gpu" +sidebar_current: "outscale-flexible-gpu" +description: |- + [Manages a flexible GPU.] +--- + +# outscale_flexible_gpu Resource + +Manages a flexible GPU. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#3ds-outscale-api-flexiblegpu). + +## Example Usage + +### Create a flexible GPU + +```hcl +resource "outscale_flexible_gpu" "flexible_gpu01" { + model_name = var.model_name + generation = "v4" + subregion_name = "${var.region}a" + delete_on_vm_deletion = true +} +``` + +## Argument Reference + +The following arguments are supported: + +* `delete_on_vm_deletion` - (Optional) If true, the fGPU is deleted when the VM is terminated. +* `generation` - (Optional) The processor generation that the fGPU must be compatible with. If not specified, the oldest possible processor generation is selected (as provided by [ReadFlexibleGpuCatalog](https://docs.outscale.com/api#readflexiblegpucatalog) for the specified model of fGPU). +* `model_name` - (Required) The model of fGPU you want to allocate. For more information, see [About Flexible GPUs](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). +* `subregion_name` - (Required) The Subregion in which you want to create the fGPU. + +## Attribute Reference + +The following attributes are exported: + +* `flexible_gpu` - Information about the flexible GPU (fGPU). + * `delete_on_vm_deletion` - If true, the fGPU is deleted when the VM is terminated. + * `flexible_gpu_id` - The ID of the fGPU. + * `generation` - The compatible processor generation. + * `model_name` - The model of fGPU. For more information, see [About Flexible GPUs](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). + * `state` - The state of the fGPU (`allocated` \| `attaching` \| `attached` \| `detaching`). + * `subregion_name` - The Subregion where the fGPU is located. + * `vm_id` - The ID of the VM the fGPU is attached to, if any. + +## Import + +A flexible GPU can be imported using its ID. For example: + +``` + +terraform import outscale_flexible_gpu.imported_fgpu fgpu-12345678 + +``` \ No newline at end of file diff --git a/website/docs/r/flexible_gpu_link.html.markdown b/website/docs/r/flexible_gpu_link.html.markdown new file mode 100644 index 000000000..6c9b29dae --- /dev/null +++ b/website/docs/r/flexible_gpu_link.html.markdown @@ -0,0 +1,62 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_flexible_gpu_link" +sidebar_current: "outscale-flexible-gpu-link" +description: |- + [Manages a flexible GPU link.] +--- + +# outscale_flexible_gpu_link Resource + +Manages a flexible GPU link. When linking a flexible GPU to a VM, the VM will automatically be stopped and started again. +For more information on this resource, see the [User Guide](https://wiki.outscale.net/display/EN/About+Flexible+GPUs). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#linkflexiblegpu). + +## Example Usage + +### Required resources + +```hcl +resource "outscale_vm" "vm01" { + image_id = ami-12345678 + vm_type = t2.small + keypair_name = var.keypair_name + placement_subregion_name = "eu-west-2a" +} +resource "outscale_flexible_gpu" "flexible_gpu01" { + model_name = var.model_name + generation = "v4" + subregion_name = "eu-west-2a" + delete_on_vm_deletion = true +} +``` + +### Create a flexible GPU link + +```hcl +resource "outscale_flexible_gpu_link" "link_fgpu01" { + flexible_gpu_id = outscale_flexible_gpu.flexible_gpu01.flexible_gpu_id + vm_id = outscale_vm.vm01.vm_id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `flexible_gpu_id` - (Required) The ID of the fGPU you want to attach. +* `vm_id` - (Required) The ID of the VM you want to attach the fGPU to. + +## Attribute Reference + +No attribute is exported. + +## Import + +A flexible GPU link can be imported using the flexible GPU ID. For example: + +``` + +terraform import outscale_flexible_gpu_link.imported_link_fgpu fgpu-12345678 + +``` \ No newline at end of file diff --git a/website/docs/r/load_balancer.html.markdown b/website/docs/r/load_balancer.html.markdown index e88075b32..970a837a7 100644 --- a/website/docs/r/load_balancer.html.markdown +++ b/website/docs/r/load_balancer.html.markdown @@ -147,10 +147,10 @@ The following arguments are supported: * `listeners` - (Required) One or more listeners to create. * `backend_port` - (Optional) The port on which the back-end VM is listening (between `1` and `65535`, both included). - * `backend_protocol` - (Optional) The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). - * `load_balancer_port` - (Optional) The port on which the load balancer is listening (between `1` and `65535`, both included). - * `load_balancer_protocol` - (Optional) The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). - * `server_certificate_id` - (Optional) The ID of the server certificate. + * `backend_protocol` - (Optional) The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * `load_balancer_port` - (Optional) The port on which the load balancer is listening (between `1` and `65535`, both included). This parameter is required if you want to update the server certificate. + * `load_balancer_protocol` - (Optional) The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). + * `server_certificate_id` - (Optional) The OUTSCALE Resource Name (ORN) of the server certificate. If this parameter is specified, you must also specify the `load_balancer_port` parameter. * `load_balancer_name` - (Required) The unique name of the load balancer (32 alphanumeric or hyphen characters maximum, but cannot start or end with a hyphen). * `load_balancer_type` - (Optional) The type of load balancer: `internet-facing` or `internal`. Use this parameter only for load balancers in a Net. * `security_groups` - (Optional) (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer. @@ -180,16 +180,16 @@ The following attributes are exported: * `healthy_threshold` - The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). * `path` - The path for HTTP or HTTPS requests. * `port` - The port number (between `1` and `65535`, both included). - * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `timeout` - The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). * `unhealthy_threshold` - The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). * `listeners` - The listeners for the load balancer. * `backend_port` - The port on which the back-end VM is listening (between `1` and `65535`, both included). - * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `load_balancer_port` - The port on which the load balancer is listening (between 1 and `65535`, both included). - * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `policy_names` - The names of the policies. If there are no policies enabled, the list is empty. - * `server_certificate_id` - The ID of the server certificate. + * `server_certificate_id` - The OUTSCALE Resource Name (ORN) of the server certificate. * `load_balancer_name` - The name of the load balancer. * `load_balancer_sticky_cookie_policies` - The policies defined for the load balancer. * `policy_name` - The name of the stickiness policy. diff --git a/website/docs/r/load_balancer_attributes.html.markdown b/website/docs/r/load_balancer_attributes.html.markdown index b754cbca1..80dbbbe42 100644 --- a/website/docs/r/load_balancer_attributes.html.markdown +++ b/website/docs/r/load_balancer_attributes.html.markdown @@ -50,7 +50,7 @@ For more information on this resource actions, see the [API documentation](https # Update health check resource "outscale_load_balancer_attributes" "attributes01" { - load_balancer_name = outscale_load_balancer.load_balancer01.load_balancer_id + load_balancer_name = outscale_load_balancer.load_balancer01.id health_check { healthy_threshold = 10 check_interval = 30 @@ -65,7 +65,7 @@ resource "outscale_load_balancer_attributes" "attributes01" { # Update access log resource "outscale_load_balancer_attributes" "attributes02" { - load_balancer_name = outscale_load_balancer.load_balancer01.load_balancer_id + load_balancer_name = outscale_load_balancer.load_balancer01.id access_log { publication_interval = 5 is_enabled = true @@ -77,7 +77,7 @@ resource "outscale_load_balancer_attributes" "attributes02" { # Update policies resource "outscale_load_balancer_attributes" "attributes03" { - load_balancer_name = outscale_load_balancer.load_balancer01.load_balancer_id + load_balancer_name = outscale_load_balancer.load_balancer01.id load_balancer_port = 80 policy_names = ["policy-name-01"] } @@ -85,7 +85,7 @@ resource "outscale_load_balancer_attributes" "attributes03" { # Update SSL certificate resource "outscale_load_balancer_attributes" "attributes04" { - load_balancer_name = outscale_load_balancer.load_balancer01.load_balancer_id + load_balancer_name = outscale_load_balancer.load_balancer01.id load_balancer_port = 8080 server_certificate_id = "arn:aws:iam::012345678910:server-certificate/MyCertificates/Certificate" } @@ -106,7 +106,7 @@ The following arguments are supported: * `healthy_threshold` - (Optional) The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). * `path` - (Optional) The path for HTTP or HTTPS requests. * `port` - (Optional) The port number (between `1` and `65535`, both included). - * `protocol` - (Optional) The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `protocol` - (Optional) The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `timeout` - (Optional) The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). * `unhealthy_threshold` - (Optional) The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). * `load_balancer_name` - (Required) The name of the load balancer. @@ -134,22 +134,22 @@ The following attributes are exported: * `healthy_threshold` - The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). * `path` - The path for HTTP or HTTPS requests. * `port` - The port number (between `1` and `65535`, both included). - * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `timeout` - The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). * `unhealthy_threshold` - The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). * `listeners` - The listeners for the load balancer. * `backend_port` - The port on which the back-end VM is listening (between `1` and `65535`, both included). - * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `load_balancer_port` - The port on which the load balancer is listening (between 1 and `65535`, both included). - * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `policy_names` - The names of the policies. If there are no policies enabled, the list is empty. - * `server_certificate_id` - The ID of the server certificate. + * `server_certificate_id` - The OUTSCALE Resource Name (ORN) of the server certificate. * `load_balancer_name` - The name of the load balancer. * `load_balancer_sticky_cookie_policies` - The policies defined for the load balancer. * `policy_name` - The name of the stickiness policy. * `load_balancer_type` - The type of load balancer. Valid only for load balancers in a Net.
-If `LoadBalancerType` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP address.
-If `LoadBalancerType` is `internal`, the load balancer has a public DNS name that resolves to a private IP address. +If `load_balancer_type` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP address.
+If `load_balancer_type` is `internal`, the load balancer has a public DNS name that resolves to a private IP address. * `net_id` - The ID of the Net for the load balancer. * `security_groups` - One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. * `source_security_group` - Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
@@ -160,5 +160,4 @@ To only allow traffic from load balancers, add a security group rule that specif * `subregion_names` - One or more names of Subregions for the load balancer. * `tags` - One or more tags associated with the load balancer. * `key` - The key of the tag, with a minimum of 1 character. - * `value` - The value of the tag, between 0 and 255 characters. - + * `value` - The value of the tag, between 0 and 255 characters. \ No newline at end of file diff --git a/website/docs/r/load_balancer_policy.html.markdown b/website/docs/r/load_balancer_policy.html.markdown index 74df8bac7..b573fd1e0 100644 --- a/website/docs/r/load_balancer_policy.html.markdown +++ b/website/docs/r/load_balancer_policy.html.markdown @@ -85,16 +85,16 @@ The following attributes are exported: * `healthy_threshold` - The number of consecutive successful pings before considering the VM as healthy (between `2` and `10` both included). * `path` - The path for HTTP or HTTPS requests. * `port` - The port number (between `1` and `65535`, both included). - * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `protocol` - The protocol for the URL of the VM (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `timeout` - The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between `2` and `60` both included). * `unhealthy_threshold` - The number of consecutive failed pings before considering the VM as unhealthy (between `2` and `10` both included). * `listeners` - The listeners for the load balancer. * `backend_port` - The port on which the back-end VM is listening (between `1` and `65535`, both included). - * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `backend_protocol` - The protocol for routing traffic to back-end VMs (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `load_balancer_port` - The port on which the load balancer is listening (between 1 and `65535`, both included). - * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL` \| `UDP`). + * `load_balancer_protocol` - The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`). * `policy_names` - The names of the policies. If there are no policies enabled, the list is empty. - * `server_certificate_id` - The ID of the server certificate. + * `server_certificate_id` - The OUTSCALE Resource Name (ORN) of the server certificate. * `load_balancer_name` - The name of the load balancer. * `load_balancer_sticky_cookie_policies` - The policies defined for the load balancer. * `policy_name` - The name of the stickiness policy. diff --git a/website/docs/r/net_access_point.html.markdown b/website/docs/r/net_access_point.html.markdown new file mode 100644 index 000000000..4ab6d8624 --- /dev/null +++ b/website/docs/r/net_access_point.html.markdown @@ -0,0 +1,70 @@ +--- +layout: "outscale" +page_title: "3DS OUTSCALE: outscale_net_access_point" +sidebar_current: "outscale-net-access-point" +description: |- + [Manages a Net access point.] +--- + +# outscale_net_access_point Resource + +Manages a Net access point. +For more information on this resource, see the [User Guide](https://wiki.outscale.internal/display/EN/About+VPC+Endpoints). +For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#3ds-outscale-api-netaccesspoint). + +## Example Usage + +```hcl +#resource "outscale_net" "net01" { +# ip_range = "10.0.0.0/16" +#} + +#resource "outscale_route_table" "route_table01" { +# net_id = outscale_net.net01.net_id +#} + +resource "outscale_net_access_point" "net_access_point01" { + net_id = outscale_net.net01.net_id + route_table_ids = [outscale_route_table.route_table01.route_table_id] + service_name = "com.outscale.eu-west-2.api" + tags { + key = "name" + value = "terraform-net-access-point" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `net_id` - (Required) The ID of the Net. +* `route_table_ids` - (Optional) One or more IDs of route tables to use for the connection. +* `service_name` - (Required) The name of the service (in the format `com.outscale.region.service`). +* `tags` - A tag to add to this resource. You can specify this argument several times. + * `key` - The key of the tag, with a minimum of 1 character. + * `value` - The value of the tag, between 0 and 255 characters. + +## Attribute Reference + +The following attributes are exported: + +* `net_access_point` - Information about the Net access point. + * `net_access_point_id` - The ID of the Net access point. + * `net_id` - The ID of the Net with which the Net access point is associated. + * `route_table_ids` - The ID of the route tables associated with the Net access point. + * `service_name` - The name of the service with which the Net access point is associated. + * `state` - The state of the Net access point (`pending` \| `available` \| `deleting` \| `deleted`). + * `tags` - One or more tags associated with the Net access point. + * `key` - The key of the tag, with a minimum of 1 character. + * `value` - The value of the tag, between 0 and 255 characters. + +## Import + +A Net access point can be imported using its ID. For example: + +``` + +$ terraform import outscale_net_access_point.ImportedNetAccessPoint vpce-87654321 + +``` \ No newline at end of file diff --git a/website/docs/r/nic_link.html.markdown b/website/docs/r/nic_link.html.markdown index 1c9cdd678..65e75c6b9 100644 --- a/website/docs/r/nic_link.html.markdown +++ b/website/docs/r/nic_link.html.markdown @@ -58,4 +58,14 @@ The following arguments are supported: The following attributes are exported: -* `link_nic_id` - The ID of the NIC attachment. \ No newline at end of file +* `link_nic_id` - The ID of the NIC attachment. + +## Import + +A NIC link can be imported using the NIC ID. For example: + +``` + +$ terraform import outscale_nic_link.ImportedNicLink eni-12345678 + +``` \ No newline at end of file diff --git a/website/docs/r/snapshot.html.markdown b/website/docs/r/snapshot.html.markdown index d4b43bb61..4a6a070c8 100644 --- a/website/docs/r/snapshot.html.markdown +++ b/website/docs/r/snapshot.html.markdown @@ -44,7 +44,7 @@ The following arguments are supported: * `description` - (Optional) A description for the snapshot. * `file_location` - (Optional) The pre-signed URL of the snapshot you want to import from the OSU bucket. -* `snapshot_size` - (Optional) The size of the snapshot created in your account, in bytes. This size must be exactly the same as the source snapshot one. +* `snapshot_size` - (Optional) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot. * `source_region_name` - (Optional) The name of the source Region, which must be the same as the Region of your account. * `source_snapshot_id` - (Optional) The ID of the snapshot you want to copy. * `volume_id` - (Optional) The ID of the volume you want to create a snapshot of. @@ -70,4 +70,4 @@ The following attributes are exported: * `key` - The key of the tag, with a minimum of 1 character. * `value` - The value of the tag, between 0 and 255 characters. * `volume_id` - The ID of the volume used to create the snapshot. - * `volume_size` - The size of the volume used to create the snapshot, in gibibytes (GiB). + * `volume_size` - The size of the volume used to create the snapshot, in gibibytes (GiB). \ No newline at end of file diff --git a/website/docs/r/vm.html.markdown b/website/docs/r/vm.html.markdown index 3a4e947f7..230c7605b 100644 --- a/website/docs/r/vm.html.markdown +++ b/website/docs/r/vm.html.markdown @@ -167,14 +167,11 @@ For more information about volume types, see [Volume Types and IOPS](https://wik * `device_name` - (Optional) The name of the device. * `no_device` - (Optional) Removes the device which is included in the block device mapping of the OMI. * `virtual_device_name` - (Optional) The name of the virtual device (ephemeralN). -* `boot_on_creation` - (Optional) By default or if `true`, the VM is started on creation. If `false`, the VM is stopped on creation. -* `bsu_optimized` - (Optional) If `true`, the VM is created with optimized BSU I/O. +* `bsu_optimized` - (Optional) If `true`, the VM is created with optimized BSU I/O. Updating this parameter will trigger a stop/start of the VM. * `client_token` - (Optional) A unique identifier which enables you to manage the idempotency. * `deletion_protection` - (Optional) If `true`, you cannot terminate the VM using Cockpit, the CLI or the API. If `false`, you can. * `image_id` - (Required) The ID of the OMI used to create the VM. You can find the list of OMIs by calling the [ReadImages](https://docs.outscale.com/api#readimages) method. * `keypair_name` - (Optional) The name of the keypair. -* `max_vms_count` - (Optional) The maximum number of VMs you want to create. If all the VMs cannot be created, the largest possible number of VMs above MinVmsCount is created. -* `min_vms_count` - (Optional) The minimum number of VMs you want to create. If this number of VMs cannot be created, no VMs are created. * `nics` - (Optional) One or more NICs. If you specify this parameter, you must define one NIC as the primary network interface of the VM with `0` as its device number. * `delete_on_vm_deletion` - (Optional) If `true`, the NIC is deleted when the VM is terminated. You can specify `true` only if you create a NIC when creating a VM. * `description` - (Optional) The description of the NIC, if you are creating a NIC when creating the VM. @@ -186,16 +183,16 @@ For more information about volume types, see [Volume Types and IOPS](https://wik * `secondary_private_ip_count` - (Optional) The number of secondary private IP addresses, if you create a NIC when creating a VM. This parameter cannot be specified if you specified more than one private IP address in the `private_ips` parameter. * `security_group_ids` - (Optional) One or more IDs of security groups for the NIC, if you acreate a NIC when creating a VM. * `subnet_id` - (Optional) The ID of the Subnet for the NIC, if you create a NIC when creating a VM. -* `performance` - (Optional) The performance of the VM (`medium` \| `high` \| `highest`). +* `performance` - (Optional) The performance of the VM (`medium` \| `high` \| `highest`). Updating this parameter will trigger a stop/start of the VM. * `placement_subregion_name` - (Optional) The name of the Subregion where the VM is placed. * `placement_tenancy` - (Optional) The tenancy of the VM (`default` | `dedicated`). * `private_ips` - (Optional) One or more private IP addresses of the VM. * `security_group_ids` - (Optional) One or more IDs of security group for the VMs. * `security_group_names` - (Optional) One or more names of security groups for the VMs. * `subnet_id` - (Optional) The ID of the Subnet in which you want to create the VM. -* `user_data` - (Optional) Data or script used to add a specific configuration to the VM. It must be base64-encoded, either directly or using the [base64encode](https://www.terraform.io/docs/configuration/functions/base64encode.html) Terraform function. For multiline strings, use a [heredoc syntax](https://www.terraform.io/docs/configuration/expressions.html#string-literals). +* `user_data` - (Optional) Data or script used to add a specific configuration to the VM. It must be base64-encoded, either directly or using the [base64encode](https://www.terraform.io/docs/configuration/functions/base64encode.html) Terraform function. For multiline strings, use a [heredoc syntax](https://www.terraform.io/docs/configuration/expressions.html#string-literals). Updating this parameter will trigger a stop/start of the VM. * `vm_initiated_shutdown_behavior` - (Optional) The VM behavior when you stop it. By default or if set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. -* `vm_type` - (Optional) The type of VM (`t2.small` by default).
+* `vm_type` - (Optional) The type of VM (`t2.small` by default). Updating this parameter will trigger a stop/start of the VM.
For more information, see [Instance Types](https://wiki.outscale.net/display/EN/Instance+Types). * `tags` - One or more tags to add to this resource. * `key` - The key of the tag, with a minimum of 1 character. @@ -206,6 +203,7 @@ For more information, see [Instance Types](https://wiki.outscale.net/display/EN/ The following attributes are exported: * `vms` - Information about one or more created VMs. + * `admin_password` - (Windows VM only) The administrator password of the VM. This password is encrypted with the keypair of the VM and encoded in Base64. You need to wait about 10 minutes after launching the VM to be able to retrieve this attribute. Once the password is ready, this attribute will appear in the Terraform state after the next refresh or apply command. Note also that after the first reboot of the VM, this attribute can no longer be retrieved. For more information on how to use this password to connect to the VM, see [Accessing a Windows Instance](https://wiki.outscale.net/display/EN/Accessing+a+Windows+Instance). * `architecture` - The architecture of the VM (`i386` \| `x86_64`). * `block_device_mappings_created` - The block device mapping of the VM. * `bsu` - Information about the created BSU volume. diff --git a/website/outscale.erb b/website/outscale.erb index 32ea41f07..30799b0db 100644 --- a/website/outscale.erb +++ b/website/outscale.erb @@ -31,6 +31,18 @@ dhcp_options +
  • + flexible_gpu_catalog +
  • + +
  • + flexible_gpu +
  • + +
  • + flexible_gpus +
  • +
  • image
  • @@ -75,6 +87,18 @@ load_balancers +
  • + net_access_point +
  • + +
  • + net_access_points +
  • + +
  • + net_access_point_services +
  • +
  • nat_service
  • @@ -119,6 +143,10 @@ public_ips +
  • + regions +
  • +
  • route_table
  • @@ -151,6 +179,10 @@ subnets +
  • + subregions +
  • +
  • virtual_gateway
  • @@ -159,6 +191,10 @@ virtual_gateways +
  • + vm_types +
  • +
  • vm_state
  • @@ -209,6 +245,14 @@ dhcp_option +
  • + flexible_gpu_link +
  • + +
  • + flexible_gpu +
  • +
  • image_launch_permission
  • @@ -253,6 +297,11 @@ nat_service +
  • + net_access_point +
  • + +
  • net_attributes