Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4cc801a7f3 | |||
| 4eff763519 | |||
|
|
2733834fc9 |
352 changed files with 62879 additions and 4 deletions
24
.copywrite.hcl
Normal file
24
.copywrite.hcl
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# NOTE: This file is for HashiCorp specific licensing automation and can be deleted after creating a new repo with this template.
|
||||
schema_version = 1
|
||||
|
||||
project {
|
||||
license = "Apache-2.0"
|
||||
copyright_year = 2025
|
||||
|
||||
header_ignore = [
|
||||
# internal catalog metadata (prose)
|
||||
"META.d/**/*.yaml",
|
||||
|
||||
# examples used within documentation (prose)
|
||||
"examples/**",
|
||||
|
||||
# GitHub issue template configuration
|
||||
".github/ISSUE_TEMPLATE/*.yml",
|
||||
|
||||
# golangci-lint tooling configuration
|
||||
".golangci.yml",
|
||||
|
||||
# GoReleaser tooling configuration
|
||||
".goreleaser.yml",
|
||||
]
|
||||
}
|
||||
2
.github/actions/build/action.yaml
vendored
2
.github/actions/build/action.yaml
vendored
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
name: Build
|
||||
description: "Build pipeline"
|
||||
inputs:
|
||||
|
|
|
|||
2
.github/docs/contribution-guide/resource.go
vendored
2
.github/docs/contribution-guide/resource.go
vendored
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright (c) STACKIT
|
||||
|
||||
package foo
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright (c) STACKIT
|
||||
|
||||
package utils
|
||||
|
||||
import (
|
||||
|
|
|
|||
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
|
|
@ -8,7 +8,7 @@ on:
|
|||
- main
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.24"
|
||||
GO_VERSION: "1.25"
|
||||
CODE_COVERAGE_FILE_NAME: "coverage.out" # must be the same as in Makefile
|
||||
CODE_COVERAGE_ARTIFACT_NAME: "code-coverage"
|
||||
|
||||
|
|
@ -33,6 +33,17 @@ jobs:
|
|||
- name: "Ensure docs are up-to-date"
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: ./scripts/check-docs.sh
|
||||
continue-on-error: true
|
||||
|
||||
- name: "Run go mod tidy"
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: go mod tidy
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9
|
||||
with:
|
||||
version: v2.7
|
||||
args: --config=golang-ci.yaml --allow-parallel-runners --timeout=5m
|
||||
|
||||
- name: Lint
|
||||
run: make lint
|
||||
|
|
@ -40,7 +51,6 @@ jobs:
|
|||
- name: Test
|
||||
run: make test
|
||||
|
||||
|
||||
- name: Archive code coverage results
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
124
.github/workflows/publish.yaml
vendored
Normal file
124
.github/workflows/publish.yaml
vendored
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
name: Publish
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- 'v0.*'
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.25"
|
||||
CODE_COVERAGE_FILE_NAME: "coverage.out" # must be the same as in Makefile
|
||||
CODE_COVERAGE_ARTIFACT_NAME: "code-coverage"
|
||||
|
||||
jobs:
|
||||
config:
|
||||
name: Check GoReleaser config
|
||||
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Check GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
args: check
|
||||
|
||||
publish:
|
||||
name: "Publish provider"
|
||||
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
|
||||
needs: config
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read # Required to identify workflow run.
|
||||
checks: write # Required to add status summary.
|
||||
contents: read # Required to checkout repository.
|
||||
pull-requests: write # Required to add PR comment.
|
||||
steps:
|
||||
- name: Install needed tools
|
||||
run: |
|
||||
apt-get -y -qq update
|
||||
apt-get -y -qq install jq python3 python3-pip python-is-python3 s3cmd git make wget
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Go ${{ env.GO_VERSION }}
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- name: Install go tools
|
||||
run: |
|
||||
go install golang.org/x/tools/cmd/goimports@latest
|
||||
go install github.com/hashicorp/terraform-plugin-codegen-framework/cmd/tfplugingen-framework@latest
|
||||
go install github.com/hashicorp/terraform-plugin-codegen-openapi/cmd/tfplugingen-openapi@latest
|
||||
|
||||
- uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: 'temurin' # See 'Supported distributions' for available options
|
||||
java-version: '21'
|
||||
|
||||
- name: Run build pkg directory
|
||||
run: |
|
||||
go run cmd/main.go build
|
||||
|
||||
- name: Set up s3cfg
|
||||
run: |
|
||||
cat <<'EOF' >> ~/.s3cfg
|
||||
[default]
|
||||
host_base = https://object.storage.eu01.onstackit.cloud
|
||||
host_bucket = https://%(bucket).object.storage.eu01.onstackit.cloud
|
||||
check_ssl_certificate = False
|
||||
access_key = ${{ secrets.S3_ACCESS_KEY }}
|
||||
secret_key = ${{ secrets.S3_SECRET_KEY }}
|
||||
EOF
|
||||
|
||||
- name: Import GPG key
|
||||
run: |
|
||||
gpg --import private.key
|
||||
|
||||
- name: Run GoReleaser
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
id: goreleaser
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
args: release --skip publish --clean --snapshot
|
||||
|
||||
- name: Run GoReleaser
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
id: goreleaser
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
args: release --skip publish --clean
|
||||
|
||||
- name: Prepare key file
|
||||
run: |
|
||||
echo $(echo ${{ secrets.KEY_FILE_B64 }} | base64 -d) >public_key.pem
|
||||
|
||||
- name: Prepare provider directory structure
|
||||
run: |
|
||||
VERSION=$(jq -r .version < dist/metadata.json)
|
||||
go run cmd/main.go \
|
||||
publish \
|
||||
--namespace=mhenselin \
|
||||
--providerName=stackitprivatepreview \
|
||||
--repoName=terraform-provider-stackitprivatepreview \
|
||||
--domain=tfregistry.sysops.stackit.rocks \
|
||||
--gpgFingerprint=${{ secrets.GPG_FINGERPRINT }} \
|
||||
--gpgPubKeyFile=public_key.pem \
|
||||
--version=${VERSION}
|
||||
|
||||
- name: Publish provider to S3
|
||||
run: |
|
||||
set -e
|
||||
cd release/
|
||||
s3cmd put --recursive v1 s3://terraform-provider-privatepreview/
|
||||
s3cmd put --recursive .well-known s3://terraform-provider-privatepreview/
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) HashiCorp, Inc.
|
||||
# Copyright (c) STACKIT
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
# Visit https://goreleaser.com for documentation on how to customize this
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -25,7 +25,7 @@ generate-docs:
|
|||
@$(SCRIPTS_BASE)/tfplugindocs.sh
|
||||
|
||||
build:
|
||||
@go build -o bin/terraform-provider-stackit
|
||||
@go build -o bin/terraform-provider-stackitalpha
|
||||
|
||||
fmt:
|
||||
@gofmt -s -w .
|
||||
|
|
|
|||
46
docs/data-sources/sqlserverflexalpha_user.md
Normal file
46
docs/data-sources/sqlserverflexalpha_user.md
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
||||
page_title: "stackitprivatepreview_sqlserverflexalpha_user Data Source - stackitprivatepreview"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
SQLServer Flex user data source schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackitprivatepreview_sqlserverflexalpha_user (Data Source)
|
||||
|
||||
SQLServer Flex user data source schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```terraform
|
||||
# Copyright (c) STACKIT
|
||||
|
||||
data "stackitprivatepreview_sqlserverflexalpha_user" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
user_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
```
|
||||
|
||||
<!-- schema generated by tfplugindocs -->
|
||||
## Schema
|
||||
|
||||
### Required
|
||||
|
||||
- `instance_id` (String) ID of the SQLServer Flex instance.
|
||||
- `project_id` (String) STACKIT project ID to which the instance is associated.
|
||||
- `user_id` (Number) User ID.
|
||||
|
||||
### Optional
|
||||
|
||||
- `region` (String) The resource region. If not defined, the provider region is used.
|
||||
|
||||
### Read-Only
|
||||
|
||||
- `default_database` (String)
|
||||
- `host` (String)
|
||||
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`region`,`instance_id`,`user_id`".
|
||||
- `port` (Number)
|
||||
- `roles` (Set of String) Database access levels for the user.
|
||||
- `status` (String)
|
||||
- `username` (String) Username of the SQLServer Flex instance.
|
||||
86
docs/index.md
Normal file
86
docs/index.md
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
---
|
||||
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
||||
page_title: "stackitprivatepreview Provider"
|
||||
description: |-
|
||||
|
||||
---
|
||||
|
||||
# stackitprivatepreview Provider
|
||||
|
||||
|
||||
|
||||
## Example Usage
|
||||
|
||||
```terraform
|
||||
# Copyright (c) STACKIT
|
||||
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
}
|
||||
|
||||
# Authentication
|
||||
|
||||
# Token flow (scheduled for deprecation and will be removed on December 17, 2025)
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
service_account_token = var.service_account_token
|
||||
}
|
||||
|
||||
# Key flow
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
service_account_key = var.service_account_key
|
||||
private_key = var.private_key
|
||||
}
|
||||
|
||||
# Key flow (using path)
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
service_account_key_path = var.service_account_key_path
|
||||
private_key_path = var.private_key_path
|
||||
}
|
||||
```
|
||||
|
||||
<!-- schema generated by tfplugindocs -->
|
||||
## Schema
|
||||
|
||||
### Optional
|
||||
|
||||
- `authorization_custom_endpoint` (String) Custom endpoint for the Membership service
|
||||
- `cdn_custom_endpoint` (String) Custom endpoint for the CDN service
|
||||
- `credentials_path` (String) Path of JSON from where the credentials are read. Takes precedence over the env var `STACKIT_CREDENTIALS_PATH`. Default value is `~/.stackit/credentials.json`.
|
||||
- `default_region` (String) Region will be used as the default location for regional services. Not all services require a region, some are global
|
||||
- `dns_custom_endpoint` (String) Custom endpoint for the DNS service
|
||||
- `enable_beta_resources` (Boolean) Enable beta resources. Default is false.
|
||||
- `experiments` (List of String) Enables experiments. These are unstable features without official support. More information can be found in the README. Available Experiments: iam, routing-tables, network
|
||||
- `git_custom_endpoint` (String) Custom endpoint for the Git service
|
||||
- `iaas_custom_endpoint` (String) Custom endpoint for the IaaS service
|
||||
- `kms_custom_endpoint` (String) Custom endpoint for the KMS service
|
||||
- `loadbalancer_custom_endpoint` (String) Custom endpoint for the Load Balancer service
|
||||
- `logme_custom_endpoint` (String) Custom endpoint for the LogMe service
|
||||
- `mariadb_custom_endpoint` (String) Custom endpoint for the MariaDB service
|
||||
- `modelserving_custom_endpoint` (String) Custom endpoint for the AI Model Serving service
|
||||
- `mongodbflex_custom_endpoint` (String) Custom endpoint for the MongoDB Flex service
|
||||
- `objectstorage_custom_endpoint` (String) Custom endpoint for the Object Storage service
|
||||
- `observability_custom_endpoint` (String) Custom endpoint for the Observability service
|
||||
- `opensearch_custom_endpoint` (String) Custom endpoint for the OpenSearch service
|
||||
- `postgresflex_custom_endpoint` (String) Custom endpoint for the PostgresFlex service
|
||||
- `private_key` (String) Private RSA key used for authentication, relevant for the key flow. It takes precedence over the private key that is included in the service account key.
|
||||
- `private_key_path` (String) Path for the private RSA key used for authentication, relevant for the key flow. It takes precedence over the private key that is included in the service account key.
|
||||
- `rabbitmq_custom_endpoint` (String) Custom endpoint for the RabbitMQ service
|
||||
- `redis_custom_endpoint` (String) Custom endpoint for the Redis service
|
||||
- `region` (String, Deprecated) Region will be used as the default location for regional services. Not all services require a region, some are global
|
||||
- `resourcemanager_custom_endpoint` (String) Custom endpoint for the Resource Manager service
|
||||
- `scf_custom_endpoint` (String) Custom endpoint for the Cloud Foundry (SCF) service
|
||||
- `secretsmanager_custom_endpoint` (String) Custom endpoint for the Secrets Manager service
|
||||
- `server_backup_custom_endpoint` (String) Custom endpoint for the Server Backup service
|
||||
- `server_update_custom_endpoint` (String) Custom endpoint for the Server Update service
|
||||
- `service_account_custom_endpoint` (String) Custom endpoint for the Service Account service
|
||||
- `service_account_email` (String, Deprecated) Service account email. It can also be set using the environment variable STACKIT_SERVICE_ACCOUNT_EMAIL. It is required if you want to use the resource manager project resource.
|
||||
- `service_account_key` (String) Service account key used for authentication. If set, the key flow will be used to authenticate all operations.
|
||||
- `service_account_key_path` (String) Path for the service account key used for authentication. If set, the key flow will be used to authenticate all operations.
|
||||
- `service_account_token` (String, Deprecated) Token used for authentication. If set, the token flow will be used to authenticate all operations.
|
||||
- `service_enablement_custom_endpoint` (String) Custom endpoint for the Service Enablement API
|
||||
- `ske_custom_endpoint` (String) Custom endpoint for the Kubernetes Engine (SKE) service
|
||||
- `sqlserverflex_custom_endpoint` (String) Custom endpoint for the SQL Server Flex service
|
||||
- `token_custom_endpoint` (String) Custom endpoint for the token API, which is used to request access tokens when using the key flow
|
||||
106
docs/resources/postgresflexalpha_instance.md
Normal file
106
docs/resources/postgresflexalpha_instance.md
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
---
|
||||
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
||||
page_title: "stackitprivatepreview_postgresflexalpha_instance Resource - stackitprivatepreview"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
Postgres Flex instance resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackitprivatepreview_postgresflexalpha_instance (Resource)
|
||||
|
||||
Postgres Flex instance resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```terraform
|
||||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitprivatepreview_postgresflexalpha_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
||||
backup_schedule = "00 00 * * *"
|
||||
flavor = {
|
||||
cpu = 2
|
||||
ram = 4
|
||||
}
|
||||
replicas = 3
|
||||
storage = {
|
||||
class = "class"
|
||||
size = 5
|
||||
}
|
||||
version = 14
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing postgresflex instance
|
||||
import {
|
||||
to = stackitprivatepreview_postgresflexalpha_instance.import-example
|
||||
id = "${var.project_id},${var.region},${var.postgres_instance_id}"
|
||||
}
|
||||
```
|
||||
|
||||
<!-- schema generated by tfplugindocs -->
|
||||
## Schema
|
||||
|
||||
### Required
|
||||
|
||||
- `acl` (List of String) The Access Control List (ACL) for the PostgresFlex instance.
|
||||
- `backup_schedule` (String)
|
||||
- `encryption` (Attributes) The encryption block. (see [below for nested schema](#nestedatt--encryption))
|
||||
- `flavor` (Attributes) (see [below for nested schema](#nestedatt--flavor))
|
||||
- `name` (String) Instance name.
|
||||
- `network` (Attributes) (see [below for nested schema](#nestedatt--network))
|
||||
- `project_id` (String) STACKIT project ID to which the instance is associated.
|
||||
- `replicas` (Number)
|
||||
- `storage` (Attributes) (see [below for nested schema](#nestedatt--storage))
|
||||
- `version` (String)
|
||||
|
||||
### Optional
|
||||
|
||||
- `region` (String) The resource region. If not defined, the provider region is used.
|
||||
|
||||
### Read-Only
|
||||
|
||||
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`instance_id`".
|
||||
- `instance_id` (String) ID of the PostgresFlex instance.
|
||||
|
||||
<a id="nestedatt--encryption"></a>
|
||||
### Nested Schema for `encryption`
|
||||
|
||||
Required:
|
||||
|
||||
- `key_id` (String) Key ID of the encryption key.
|
||||
- `key_ring_id` (String)
|
||||
- `key_version` (String)
|
||||
- `service_account` (String)
|
||||
|
||||
|
||||
<a id="nestedatt--flavor"></a>
|
||||
### Nested Schema for `flavor`
|
||||
|
||||
Required:
|
||||
|
||||
- `cpu` (Number)
|
||||
- `ram` (Number)
|
||||
|
||||
Read-Only:
|
||||
|
||||
- `description` (String)
|
||||
- `id` (String)
|
||||
|
||||
|
||||
<a id="nestedatt--network"></a>
|
||||
### Nested Schema for `network`
|
||||
|
||||
Required:
|
||||
|
||||
- `access_scope` (String)
|
||||
|
||||
|
||||
<a id="nestedatt--storage"></a>
|
||||
### Nested Schema for `storage`
|
||||
|
||||
Required:
|
||||
|
||||
- `class` (String)
|
||||
- `size` (Number)
|
||||
54
docs/resources/sqlserverflexalpha_user.md
Normal file
54
docs/resources/sqlserverflexalpha_user.md
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
||||
page_title: "stackitprivatepreview_sqlserverflexalpha_user Resource - stackitprivatepreview"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
SQLServer Flex user resource schema. Must have a region specified in the provider configuration.
|
||||
---
|
||||
|
||||
# stackitprivatepreview_sqlserverflexalpha_user (Resource)
|
||||
|
||||
SQLServer Flex user resource schema. Must have a `region` specified in the provider configuration.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```terraform
|
||||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitprivatepreview_sqlserverflexalpha_user" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
username = "username"
|
||||
roles = ["role"]
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing sqlserverflex user
|
||||
import {
|
||||
to = stackitprivatepreview_sqlserverflexalpha_user.import-example
|
||||
id = "${var.project_id},${var.region},${var.sql_instance_id},${var.sql_user_id}"
|
||||
}
|
||||
```
|
||||
|
||||
<!-- schema generated by tfplugindocs -->
|
||||
## Schema
|
||||
|
||||
### Required
|
||||
|
||||
- `instance_id` (String) ID of the SQLServer Flex instance.
|
||||
- `project_id` (String) STACKIT project ID to which the instance is associated.
|
||||
- `roles` (Set of String) Database access levels for the user. The values for the default roles are: `##STACKIT_DatabaseManager##`, `##STACKIT_LoginManager##`, `##STACKIT_ProcessManager##`, `##STACKIT_ServerManager##`, `##STACKIT_SQLAgentManager##`, `##STACKIT_SQLAgentUser##`
|
||||
- `username` (String) Username of the SQLServer Flex instance.
|
||||
|
||||
### Optional
|
||||
|
||||
- `region` (String)
|
||||
|
||||
### Read-Only
|
||||
|
||||
- `default_database` (String)
|
||||
- `host` (String)
|
||||
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`instance_id`,`user_id`".
|
||||
- `password` (String, Sensitive) Password of the user account.
|
||||
- `port` (Number)
|
||||
- `status` (String)
|
||||
- `user_id` (String) User ID.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
data "stackitprivatepreview_postgresflexalpha_database" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
data "stackitprivatepreview_postgresflexalpha_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
data "stackitprivatepreview_postgresflexalpha_user" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
user_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
data "stackitprivatepreview_sqlserverflexalpha_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
data "stackitprivatepreview_sqlserverflexalpha_user" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
user_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
28
examples/provider/provider.tf
Normal file
28
examples/provider/provider.tf
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
}
|
||||
|
||||
# Authentication
|
||||
|
||||
# Token flow (scheduled for deprecation and will be removed on December 17, 2025)
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
service_account_token = var.service_account_token
|
||||
}
|
||||
|
||||
# Key flow
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
service_account_key = var.service_account_key
|
||||
private_key = var.private_key
|
||||
}
|
||||
|
||||
# Key flow (using path)
|
||||
provider "stackitprivatepreview" {
|
||||
default_region = "eu01"
|
||||
service_account_key_path = var.service_account_key_path
|
||||
private_key_path = var.private_key_path
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitprivatepreview_postgresflexalpha_database" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "mydb"
|
||||
owner = "myusername"
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing postgresflex database
|
||||
import {
|
||||
to = stackitprivatepreview_postgresflexalpha_database.import-example
|
||||
id = "${var.project_id},${var.region},${var.postgres_instance_id},${var.postgres_database_id}"
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitprivatepreview_postgresflexalpha_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
||||
backup_schedule = "00 00 * * *"
|
||||
flavor = {
|
||||
cpu = 2
|
||||
ram = 4
|
||||
}
|
||||
replicas = 3
|
||||
storage = {
|
||||
class = "class"
|
||||
size = 5
|
||||
}
|
||||
version = 14
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing postgresflex instance
|
||||
import {
|
||||
to = stackitprivatepreview_postgresflexalpha_instance.import-example
|
||||
id = "${var.project_id},${var.region},${var.postgres_instance_id}"
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitprivatepreview_postgresflexalpha_user" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
username = "username"
|
||||
roles = ["role"]
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing postgresflex user
|
||||
import {
|
||||
to = stackitprivatepreview_postgresflexalpha_user.import-example
|
||||
id = "${var.project_id},${var.region},${var.postgres_instance_id},${var.user_id}"
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitprivatepreview_sqlserverflexalpha_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
||||
backup_schedule = "00 00 * * *"
|
||||
flavor = {
|
||||
cpu = 4
|
||||
ram = 16
|
||||
}
|
||||
storage = {
|
||||
class = "class"
|
||||
size = 5
|
||||
}
|
||||
version = 2022
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing sqlserverflex instance
|
||||
import {
|
||||
to = stackitprivatepreview_sqlserverflexalpha_instance.import-example
|
||||
id = "${var.project_id},${var.region},${var.sql_instance_id}"
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitprivatepreview_sqlserverflexalpha_user" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
username = "username"
|
||||
roles = ["role"]
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing sqlserverflex user
|
||||
import {
|
||||
to = stackitprivatepreview_sqlserverflexalpha_user.import-example
|
||||
id = "${var.project_id},${var.region},${var.sql_instance_id},${var.sql_user_id}"
|
||||
}
|
||||
156
go.mod
Normal file
156
go.mod
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
module github.com/stackitcloud/terraform-provider-stackit
|
||||
|
||||
go 1.24.0
|
||||
|
||||
require (
|
||||
github.com/google/go-cmp v0.7.0
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/gorilla/mux v1.8.1
|
||||
github.com/hashicorp/terraform-plugin-framework v1.17.0
|
||||
github.com/hashicorp/terraform-plugin-framework-validators v0.19.0
|
||||
github.com/hashicorp/terraform-plugin-go v0.29.0
|
||||
github.com/hashicorp/terraform-plugin-log v0.10.0
|
||||
github.com/hashicorp/terraform-plugin-testing v1.14.0
|
||||
github.com/stackitcloud/stackit-sdk-go/core v0.20.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.6.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/git v0.8.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.21-alpha
|
||||
github.com/stackitcloud/stackit-sdk-go/services/kms v1.0.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.6.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/modelserving v0.6.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.2
|
||||
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.4.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/observability v0.15.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.2.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/redis v0.25.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.18.2
|
||||
github.com/stackitcloud/stackit-sdk-go/services/scf v0.2.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.13.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.2
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serverupdate v1.2.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.1
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.2.2
|
||||
github.com/stackitcloud/stackit-sdk-go/services/ske v1.4.0
|
||||
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.3.3
|
||||
github.com/teambition/rrule-go v1.8.2
|
||||
golang.org/x/mod v0.31.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
|
||||
github.com/BurntSushi/toml v1.2.1 // indirect
|
||||
github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect
|
||||
github.com/Masterminds/goutils v1.1.1 // indirect
|
||||
github.com/Masterminds/semver/v3 v3.2.0 // indirect
|
||||
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
|
||||
github.com/armon/go-radix v1.0.0 // indirect
|
||||
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
|
||||
github.com/bgentry/speakeasy v0.1.0 // indirect
|
||||
github.com/bmatcuk/doublestar/v4 v4.9.1 // indirect
|
||||
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 // indirect
|
||||
github.com/cli/go-gh/v2 v2.11.2 // indirect
|
||||
github.com/cli/safeexec v1.0.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.5.4 // indirect
|
||||
github.com/go-openapi/errors v0.20.2 // indirect
|
||||
github.com/go-openapi/strfmt v0.21.3 // indirect
|
||||
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
|
||||
github.com/google/go-github/v45 v45.2.0 // indirect
|
||||
github.com/google/go-github/v53 v53.0.0 // indirect
|
||||
github.com/google/go-querystring v1.1.0 // indirect
|
||||
github.com/hashicorp/cli v1.1.7 // indirect
|
||||
github.com/hashicorp/copywrite v0.22.0 // indirect
|
||||
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
|
||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
||||
github.com/hashicorp/terraform-plugin-docs v0.24.0 // indirect
|
||||
github.com/huandu/xstrings v1.3.3 // indirect
|
||||
github.com/imdario/mergo v0.3.15 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.0.1 // indirect
|
||||
github.com/jedib0t/go-pretty v4.3.0+incompatible // indirect
|
||||
github.com/jedib0t/go-pretty/v6 v6.4.6 // indirect
|
||||
github.com/joho/godotenv v1.3.0 // indirect
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
||||
github.com/knadh/koanf v1.5.0 // indirect
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||
github.com/mergestat/timediff v0.0.3 // indirect
|
||||
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
|
||||
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
||||
github.com/oklog/ulid v1.3.1 // indirect
|
||||
github.com/posener/complete v1.2.3 // indirect
|
||||
github.com/rivo/uniseg v0.4.7 // indirect
|
||||
github.com/samber/lo v1.37.0 // indirect
|
||||
github.com/shopspring/decimal v1.3.1 // indirect
|
||||
github.com/spf13/cast v1.5.0 // indirect
|
||||
github.com/spf13/cobra v1.6.1 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/thanhpk/randstr v1.0.4 // indirect
|
||||
github.com/yuin/goldmark v1.7.7 // indirect
|
||||
github.com/yuin/goldmark-meta v1.1.0 // indirect
|
||||
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
|
||||
go.mongodb.org/mongo-driver v1.10.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
|
||||
golang.org/x/oauth2 v0.30.0 // indirect
|
||||
golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc // indirect
|
||||
golang.org/x/term v0.38.0 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/ProtonMail/go-crypto v1.1.6 // indirect
|
||||
github.com/agext/levenshtein v1.2.2 // indirect
|
||||
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
|
||||
github.com/cloudflare/circl v1.6.1 // indirect
|
||||
github.com/fatih/color v1.18.0 // indirect
|
||||
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
|
||||
github.com/golang/protobuf v1.5.4 // indirect
|
||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
|
||||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
||||
github.com/hashicorp/go-cty v1.5.0 // indirect
|
||||
github.com/hashicorp/go-hclog v1.6.3 // indirect
|
||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||
github.com/hashicorp/go-plugin v1.7.0 // indirect
|
||||
github.com/hashicorp/go-uuid v1.0.3 // indirect
|
||||
github.com/hashicorp/go-version v1.7.0 // indirect
|
||||
github.com/hashicorp/hc-install v0.9.2 // indirect
|
||||
github.com/hashicorp/hcl/v2 v2.24.0 // indirect
|
||||
github.com/hashicorp/logutils v1.0.0 // indirect
|
||||
github.com/hashicorp/terraform-exec v0.24.0 // indirect
|
||||
github.com/hashicorp/terraform-json v0.27.2 // indirect
|
||||
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.1 // indirect
|
||||
github.com/hashicorp/terraform-registry-address v0.4.0 // indirect
|
||||
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
|
||||
github.com/hashicorp/yamux v0.1.2 // indirect
|
||||
github.com/mattn/go-colorable v0.1.14 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mitchellh/copystructure v1.2.0 // indirect
|
||||
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
|
||||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
|
||||
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
||||
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
||||
github.com/oklog/run v1.2.0 // indirect
|
||||
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.9.0
|
||||
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
|
||||
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
|
||||
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
|
||||
github.com/zclconf/go-cty v1.17.0 // indirect
|
||||
golang.org/x/crypto v0.46.0 // indirect
|
||||
golang.org/x/net v0.48.0 // indirect
|
||||
golang.org/x/sync v0.19.0 // indirect
|
||||
golang.org/x/sys v0.39.0 // indirect
|
||||
golang.org/x/text v0.32.0 // indirect
|
||||
golang.org/x/tools v0.40.0 // indirect
|
||||
google.golang.org/appengine v1.6.8 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
|
||||
google.golang.org/grpc v1.75.1 // indirect
|
||||
google.golang.org/protobuf v1.36.9 // indirect
|
||||
)
|
||||
|
||||
tool golang.org/x/tools/cmd/goimports
|
||||
808
go.sum
Normal file
808
go.sum
Normal file
|
|
@ -0,0 +1,808 @@
|
|||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
|
||||
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
|
||||
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
|
||||
github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkkhIiSjQ=
|
||||
github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
|
||||
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
|
||||
github.com/Kunde21/markdownfmt/v3 v3.1.0 h1:KiZu9LKs+wFFBQKhrZJrFZwtLnCCWJahL+S+E/3VnM0=
|
||||
github.com/Kunde21/markdownfmt/v3 v3.1.0/go.mod h1:tPXN1RTyOzJwhfHoon9wUr4HGYmWgVxSQN6VBJDkrVc=
|
||||
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
|
||||
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
|
||||
github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g=
|
||||
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
|
||||
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
|
||||
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
|
||||
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
|
||||
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
|
||||
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
|
||||
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g=
|
||||
github.com/ProtonMail/go-crypto v1.1.6 h1:ZcV+Ropw6Qn0AX9brlQLAUXfqLBc7Bl+f/DmNxpLfdw=
|
||||
github.com/ProtonMail/go-crypto v1.1.6/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE=
|
||||
github.com/agext/levenshtein v1.2.2 h1:0S/Yg6LYmFJ5stwQeRp6EeOcCbj7xiqQSdNelsXvaqE=
|
||||
github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
|
||||
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec=
|
||||
github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=
|
||||
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
|
||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
|
||||
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
|
||||
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
||||
github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI=
|
||||
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
||||
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg=
|
||||
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
|
||||
github.com/aws/aws-sdk-go-v2 v1.9.2/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.8.3/go.mod h1:4AEiLtAb8kLs7vgw2ZV3p2VZ1+hBavOc84hqxVNpCyw=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.4.3/go.mod h1:FNNC6nQZQUuyhq5aE5c7ata8o9e4ECGmS4lAXC7o1mQ=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.6.0/go.mod h1:gqlclDEZp4aqJOancXK6TN24aKhT0W0Ae9MHk3wzTMM=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.2.4/go.mod h1:ZcBrrI3zBKlhGFNYWvju0I3TR93I7YIgAfy82Fh4lcQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/appconfig v1.4.2/go.mod h1:FZ3HkCe+b10uFZZkFdvf98LHW21k49W8o8J366lqVKY=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.2/go.mod h1:72HRZDLMtmVQiLG2tLfQcaWLCssELvGl+Zf2WVxMmR8=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.4.2/go.mod h1:NBvT9R1MEF+Ud6ApJKM0G+IkPchKS7p7c2YPKwHmBOk=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.7.2/go.mod h1:8EzeIqfWt2wWT4rJVu3f21TfrhJ8AEMzVybRNSb/b4g=
|
||||
github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E=
|
||||
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
||||
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||
github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
|
||||
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
||||
github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc=
|
||||
github.com/bmatcuk/doublestar/v4 v4.6.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
|
||||
github.com/bmatcuk/doublestar/v4 v4.9.1 h1:X8jg9rRZmJd4yRy7ZeNDRnM+T3ZfHv15JiBJ/avrEXE=
|
||||
github.com/bmatcuk/doublestar/v4 v4.9.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
|
||||
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 h1:yaYcGQ7yEIGbsJfW/9z7v1sLiZg/5rSNNXwmMct5XaE=
|
||||
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0/go.mod h1:amcvPQMrRkWNdueWOjPytGL25xQGzox7425qMgzo+Vo=
|
||||
github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw=
|
||||
github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c=
|
||||
github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
|
||||
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/cli/go-gh/v2 v2.11.2 h1:oad1+sESTPNTiTvh3I3t8UmxuovNDxhwLzeMHk45Q9w=
|
||||
github.com/cli/go-gh/v2 v2.11.2/go.mod h1:vVFhi3TfjseIW26ED9itAR8gQK0aVThTm8sYrsZ5QTI=
|
||||
github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI=
|
||||
github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I=
|
||||
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
|
||||
github.com/cloudflare/circl v1.6.1 h1:zqIqSPIndyBh1bjLVVDHMPpVKqp8Su/V+6MeDzzQBQ0=
|
||||
github.com/cloudflare/circl v1.6.1/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs=
|
||||
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
|
||||
github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s=
|
||||
github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
||||
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
|
||||
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
|
||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
||||
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
|
||||
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
|
||||
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
|
||||
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic=
|
||||
github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UNbRM=
|
||||
github.com/go-git/go-billy/v5 v5.6.2/go.mod h1:rcFC2rAsp/erv7CMz9GczHcuD0D32fWzH+MJAU+jaUU=
|
||||
github.com/go-git/go-git/v5 v5.14.0 h1:/MD3lCrGjCen5WfEAzKg00MJJffKhC8gzS80ycmCi60=
|
||||
github.com/go-git/go-git/v5 v5.14.0/go.mod h1:Z5Xhoia5PcWA3NF8vRLURn9E5FRhSl7dGj9ItW3Wk5k=
|
||||
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
|
||||
github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc=
|
||||
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
|
||||
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
||||
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
||||
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
|
||||
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||
github.com/go-openapi/errors v0.20.2 h1:dxy7PGTqEh94zj2E3h1cUmQQWiM1+aeCROfAr02EmK8=
|
||||
github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M=
|
||||
github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o=
|
||||
github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg=
|
||||
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||
github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
|
||||
github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68=
|
||||
github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
||||
github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo=
|
||||
github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
||||
github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo=
|
||||
github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ=
|
||||
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
|
||||
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
|
||||
github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
|
||||
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
||||
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
||||
github.com/google/go-github/v45 v45.2.0 h1:5oRLszbrkvxDDqBCNj2hjDZMKmvexaZ1xw/FCD+K3FI=
|
||||
github.com/google/go-github/v45 v45.2.0/go.mod h1:FObaZJEDSTa/WGCzZ2Z3eoCDXWJKMenWWTrd8jrta28=
|
||||
github.com/google/go-github/v53 v53.0.0 h1:T1RyHbSnpHYnoF0ZYKiIPSgPtuJ8G6vgc0MKodXsQDQ=
|
||||
github.com/google/go-github/v53 v53.0.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao=
|
||||
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
|
||||
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
|
||||
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
|
||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/hashicorp/cli v1.1.7 h1:/fZJ+hNdwfTSfsxMBa9WWMlfjUZbX8/LnUxgAd7lCVU=
|
||||
github.com/hashicorp/cli v1.1.7/go.mod h1:e6Mfpga9OCT1vqzFuoGZiiF/KaG9CbUfO5s3ghU3YgU=
|
||||
github.com/hashicorp/consul/api v1.13.0/go.mod h1:ZlVrynguJKcYr54zGaDbaL3fOvKC9m72FhPvA8T35KQ=
|
||||
github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms=
|
||||
github.com/hashicorp/copywrite v0.22.0 h1:mqjMrgP3VptS7aLbu2l39rtznoK+BhphHst6i7HiTAo=
|
||||
github.com/hashicorp/copywrite v0.22.0/go.mod h1:FqvGJt2+yoYDpVYgFSdg3R2iyhkCVaBmPMhfso0MR2k=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
|
||||
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU=
|
||||
github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
|
||||
github.com/hashicorp/go-cty v1.5.0 h1:EkQ/v+dDNUqnuVpmS5fPqyY71NXVgT5gf32+57xY8g0=
|
||||
github.com/hashicorp/go-cty v1.5.0/go.mod h1:lFUCG5kd8exDobgSfyj4ONE/dc822kiYMguVKdHGMLM=
|
||||
github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI=
|
||||
github.com/hashicorp/go-hclog v0.8.0/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
|
||||
github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
|
||||
github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
|
||||
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
|
||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
||||
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
|
||||
github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA=
|
||||
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
|
||||
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
|
||||
github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY=
|
||||
github.com/hashicorp/go-plugin v1.7.0 h1:YghfQH/0QmPNc/AZMTFE3ac8fipZyZECHdDPshfk+mA=
|
||||
github.com/hashicorp/go-plugin v1.7.0/go.mod h1:BExt6KEaIYx804z8k4gRzRLEvxKVb+kn0NMcihqOqb8=
|
||||
github.com/hashicorp/go-retryablehttp v0.5.4/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
|
||||
github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU=
|
||||
github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk=
|
||||
github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8=
|
||||
github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8=
|
||||
github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
|
||||
github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A=
|
||||
github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
|
||||
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
|
||||
github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
||||
github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY=
|
||||
github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/hc-install v0.9.2 h1:v80EtNX4fCVHqzL9Lg/2xkp62bbvQMnvPQ0G+OmtO24=
|
||||
github.com/hashicorp/hc-install v0.9.2/go.mod h1:XUqBQNnuT4RsxoxiM9ZaUk0NX8hi2h+Lb6/c0OZnC/I=
|
||||
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
|
||||
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
|
||||
github.com/hashicorp/hcl/v2 v2.24.0 h1:2QJdZ454DSsYGoaE6QheQZjtKZSUs9Nh2izTWiwQxvE=
|
||||
github.com/hashicorp/hcl/v2 v2.24.0/go.mod h1:oGoO1FIQYfn/AgyOhlg9qLC6/nOJPX3qGbkZpYAcqfM=
|
||||
github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=
|
||||
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
||||
github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc=
|
||||
github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE=
|
||||
github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4=
|
||||
github.com/hashicorp/terraform-exec v0.24.0 h1:mL0xlk9H5g2bn0pPF6JQZk5YlByqSqrO5VoaNtAf8OE=
|
||||
github.com/hashicorp/terraform-exec v0.24.0/go.mod h1:lluc/rDYfAhYdslLJQg3J0oDqo88oGQAdHR+wDqFvo4=
|
||||
github.com/hashicorp/terraform-json v0.27.2 h1:BwGuzM6iUPqf9JYM/Z4AF1OJ5VVJEEzoKST/tRDBJKU=
|
||||
github.com/hashicorp/terraform-json v0.27.2/go.mod h1:GzPLJ1PLdUG5xL6xn1OXWIjteQRT2CNT9o/6A9mi9hE=
|
||||
github.com/hashicorp/terraform-plugin-docs v0.24.0 h1:YNZYd+8cpYclQyXbl1EEngbld8w7/LPOm99GD5nikIU=
|
||||
github.com/hashicorp/terraform-plugin-docs v0.24.0/go.mod h1:YLg+7LEwVmRuJc0EuCw0SPLxuQXw5mW8iJ5ml/kvi+o=
|
||||
github.com/hashicorp/terraform-plugin-framework v1.17.0 h1:JdX50CFrYcYFY31gkmitAEAzLKoBgsK+iaJjDC8OexY=
|
||||
github.com/hashicorp/terraform-plugin-framework v1.17.0/go.mod h1:4OUXKdHNosX+ys6rLgVlgklfxN3WHR5VHSOABeS/BM0=
|
||||
github.com/hashicorp/terraform-plugin-framework-validators v0.19.0 h1:Zz3iGgzxe/1XBkooZCewS0nJAaCFPFPHdNJd8FgE4Ow=
|
||||
github.com/hashicorp/terraform-plugin-framework-validators v0.19.0/go.mod h1:GBKTNGbGVJohU03dZ7U8wHqc2zYnMUawgCN+gC0itLc=
|
||||
github.com/hashicorp/terraform-plugin-go v0.29.0 h1:1nXKl/nSpaYIUBU1IG/EsDOX0vv+9JxAltQyDMpq5mU=
|
||||
github.com/hashicorp/terraform-plugin-go v0.29.0/go.mod h1:vYZbIyvxyy0FWSmDHChCqKvI40cFTDGSb3D8D70i9GM=
|
||||
github.com/hashicorp/terraform-plugin-log v0.10.0 h1:eu2kW6/QBVdN4P3Ju2WiB2W3ObjkAsyfBsL3Wh1fj3g=
|
||||
github.com/hashicorp/terraform-plugin-log v0.10.0/go.mod h1:/9RR5Cv2aAbrqcTSdNmY1NRHP4E3ekrXRGjqORpXyB0=
|
||||
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.1 h1:mlAq/OrMlg04IuJT7NpefI1wwtdpWudnEmjuQs04t/4=
|
||||
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.1/go.mod h1:GQhpKVvvuwzD79e8/NZ+xzj+ZpWovdPAe8nfV/skwNU=
|
||||
github.com/hashicorp/terraform-plugin-testing v1.14.0 h1:5t4VKrjOJ0rg0sVuSJ86dz5K7PHsMO6OKrHFzDBerWA=
|
||||
github.com/hashicorp/terraform-plugin-testing v1.14.0/go.mod h1:1qfWkecyYe1Do2EEOK/5/WnTyvC8wQucUkkhiGLg5nk=
|
||||
github.com/hashicorp/terraform-registry-address v0.4.0 h1:S1yCGomj30Sao4l5BMPjTGZmCNzuv7/GDTDX99E9gTk=
|
||||
github.com/hashicorp/terraform-registry-address v0.4.0/go.mod h1:LRS1Ay0+mAiRkUyltGT+UHWkIqTFvigGn/LbMshfflE=
|
||||
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
|
||||
github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc=
|
||||
github.com/hashicorp/vault/api v1.0.4/go.mod h1:gDcqh3WGcR1cpF5AJz/B1UFheUEneMoIospckxBxk6Q=
|
||||
github.com/hashicorp/vault/sdk v0.1.13/go.mod h1:B+hVj7TpuQY1Y/GPbCpffmgd+tSEwvhkWnjtSYCaS2M=
|
||||
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
|
||||
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
|
||||
github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8=
|
||||
github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns=
|
||||
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68=
|
||||
github.com/hjson/hjson-go/v4 v4.0.0/go.mod h1:KaYt3bTw3zhBjYqnXkYywcYctk0A2nxeEFTse3rH13E=
|
||||
github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4=
|
||||
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
|
||||
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
|
||||
github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM=
|
||||
github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
|
||||
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
|
||||
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
|
||||
github.com/jedib0t/go-pretty v4.3.0+incompatible h1:CGs8AVhEKg/n9YbUenWmNStRW2PHJzaeDodcfvRAbIo=
|
||||
github.com/jedib0t/go-pretty v4.3.0+incompatible/go.mod h1:XemHduiw8R651AF9Pt4FwCTKeG3oo7hrHJAoznj9nag=
|
||||
github.com/jedib0t/go-pretty/v6 v6.4.6 h1:v6aG9h6Uby3IusSSEjHaZNXpHFhzqMmjXcPq1Rjl9Jw=
|
||||
github.com/jedib0t/go-pretty/v6 v6.4.6/go.mod h1:Ndk3ase2CkQbXLLNf5QDHoYb6J9WtVfmHZu9n8rk2xs=
|
||||
github.com/jhump/protoreflect v1.17.0 h1:qOEr613fac2lOuTgWN4tPAtLL7fUSbuJL5X5XumQh94=
|
||||
github.com/jhump/protoreflect v1.17.0/go.mod h1:h9+vUUL38jiBzck8ck+6G/aeMX8Z4QUY/NiJPwPNi+8=
|
||||
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
|
||||
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
|
||||
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
|
||||
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
|
||||
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
|
||||
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
||||
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
||||
github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=
|
||||
github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
|
||||
github.com/knadh/koanf v1.5.0 h1:q2TSd/3Pyc/5yP9ldIrSdIz26MCcyNQzW0pEAugLPNs=
|
||||
github.com/knadh/koanf v1.5.0/go.mod h1:Hgyjp4y8v44hpZtPzs7JZfRAW5AhN7KfZcwv1RYggDs=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
||||
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
||||
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
||||
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
||||
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
|
||||
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
|
||||
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
||||
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
|
||||
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
||||
github.com/mergestat/timediff v0.0.3 h1:ucCNh4/ZrTPjFZ081PccNbhx9spymCJkFxSzgVuPU+Y=
|
||||
github.com/mergestat/timediff v0.0.3/go.mod h1:yvMUaRu2oetc+9IbPLYBJviz6sA7xz8OXMDfhBl7YSI=
|
||||
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
|
||||
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=
|
||||
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
|
||||
github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
|
||||
github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI=
|
||||
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
|
||||
github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
|
||||
github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
|
||||
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
|
||||
github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=
|
||||
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
|
||||
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||
github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
||||
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
||||
github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU=
|
||||
github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8=
|
||||
github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
|
||||
github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0=
|
||||
github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0=
|
||||
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
|
||||
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||
github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
|
||||
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
|
||||
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
|
||||
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
|
||||
github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnuG+zWp9L0Uk=
|
||||
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
|
||||
github.com/oklog/run v1.2.0 h1:O8x3yXwah4A73hJdlrwo/2X6J62gE5qTMusH0dvz60E=
|
||||
github.com/oklog/run v1.2.0/go.mod h1:mgDbKRSwPhJfesJ4PntqFUbKQRZ50NgmZTSPlFA0YFk=
|
||||
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
|
||||
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
|
||||
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE=
|
||||
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
|
||||
github.com/pjbgf/sha1cd v0.3.2 h1:a9wb0bp1oC2TGwStyn0Umc/IGKQnEgF0vVaZ8QF8eo4=
|
||||
github.com/pjbgf/sha1cd v0.3.2/go.mod h1:zQWigSxVmsHEZow5qaLtPYxpcKMMQpa09ixqBxuCS6A=
|
||||
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||
github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo=
|
||||
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
|
||||
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
|
||||
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
|
||||
github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
|
||||
github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
|
||||
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
|
||||
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
|
||||
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
|
||||
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
|
||||
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
|
||||
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
|
||||
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
||||
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
||||
github.com/rhnvrm/simples3 v0.6.1/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
|
||||
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
||||
github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
||||
github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc=
|
||||
github.com/samber/lo v1.37.0 h1:XjVcB8g6tgUp8rsPsJ2CvhClfImrpL04YpQHXeHPhRw=
|
||||
github.com/samber/lo v1.37.0/go.mod h1:9vaz2O4o8oOnK23pd2TrXufcbdbJIa3b6cstBWKpopA=
|
||||
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
|
||||
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
|
||||
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
|
||||
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
||||
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
||||
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
|
||||
github.com/skeema/knownhosts v1.3.1 h1:X2osQ+RAjK76shCbvhHHHVl3ZlgDm8apHEHFqRjnBY8=
|
||||
github.com/skeema/knownhosts v1.3.1/go.mod h1:r7KTdC8l4uxWRyK2TpQZ/1o5HaSzh06ePQNxPwTcfiY=
|
||||
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
||||
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
||||
github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=
|
||||
github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY=
|
||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M=
|
||||
github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.9.0 h1:7ZKd3b+E/R4TEVShLTXxx5FrsuDuJBOyuVOuKTMa4mo=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.9.0/go.mod h1:/FoXa6hF77Gv8brrvLBCKa5ie1Xy9xn39yfHwaln9Tw=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.6.0 h1:Q+qIdejeMsYMkbtVoI9BpGlKGdSVFRBhH/zj44SP8TM=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.6.0/go.mod h1:YGadfhuy8yoseczTxF7vN4t9ES2WxGQr0Pug14ii7y4=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.1 h1:CnhAMLql0MNmAeq4roQKN8OpSKX4FSgTU6Eu6detB4I=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.1/go.mod h1:7Bx85knfNSBxulPdJUFuBePXNee3cO+sOTYnUG6M+iQ=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/git v0.8.0 h1:/weT7P5Uwy1Qlhw0NidqtQBlbbb/dQehweDV/I9ShXg=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/git v0.8.0/go.mod h1:AXFfYBJZIW1o0W0zZEb/proQMhMsb3Nn5E1htS8NDPE=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0 h1:U/x0tc487X9msMS5yZYjrBAAKrCx87Trmt0kh8JiARA=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0/go.mod h1:6+5+RCDfU7eQN3+/SGdOtx7Bq9dEa2FrHz/jflgY1M4=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.21-alpha h1:m1jq6a8dbUe+suFuUNdHmM/cSehpGLUtDbK1CqLqydg=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.21-alpha/go.mod h1:Nu1b5Phsv8plgZ51+fkxPVsU91ZJ5Ayz+cthilxdmQ8=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/kms v1.0.0 h1:zxoOv7Fu+FmdsvTKiKkbmLItrMKfL+QoVtz9ReEF30E=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/kms v1.0.0/go.mod h1:KEPVoO21pC4bjy5l0nyhjUJ0+uVwVWb+k2TYrzJ8xYw=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.6.0 h1:q33ZaCBVEBUsnMDxYyuJKtJvGcE5nKgvuPed3s8zXNI=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.6.0/go.mod h1:20QOZ3rBC9wTGgzXzLz9M6YheX0VaxWE0/JI+s8On7k=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.1 h1:hv5WrRU9rN6Jx4OwdOGJRyaQrfA9p1tzEoQK6/CDyoA=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.1/go.mod h1:ivt8lvnAoBZsde2jSAuicyn6RgTmHvvNAJ3whaUbAD4=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.1 h1:Db/ebOL2vbpIeh5XB2Ews2B9Lj5DJlMWIEJh60FfZ4Y=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.1/go.mod h1:8jdN4v2euK3f9gfdzbRi8e4nBJ8g/Q5YF9aPB4M4fCQ=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/modelserving v0.6.0 h1:JZI+3sLVAtTFk4QJ/ao2bAumzBq+iV6dUvDoIrOKTcw=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/modelserving v0.6.0/go.mod h1:DvNLTENxoJEQ8AwUvcVBoWqVtdZNS4vEJppTKfvfeec=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.2 h1:BQ+qAkVS/aGHepE/+gVsvSg1sRkPOyIUI/jkCyUOrWg=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.2/go.mod h1:oc8Mpwl7O6EZwG0YxfhOzNCJwNQBWK5rFh764OtxoMY=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.4.0 h1:g3yNDUc3JydAikezUrI9bQ4nuMJpVeAQ35jOFfFmq1U=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.4.0/go.mod h1:foslkEiICdtHR3v0A/i/Rgo6EP9MMula9XNC9luNOgw=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/observability v0.15.0 h1:MA5i1ScjXLWe5CYeFCLHeZzNS1AH4mbx1kUyiVbxKjI=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/observability v0.15.0/go.mod h1:tJEOi6L0le4yQZPGwalup/PZ13gqs1aCQDqlUs2cYW0=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.1 h1:50n87uZn0EvSP9hJGLqd3Wm2hfqbyh7BMGGCk7axgqA=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.1/go.mod h1:jfguuSPa56Z5Bzs/Xg/CI37XzPo5Zn5lzC5LhfuT8Qc=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.2.1 h1:K8vXele3U6b5urcSIpq21EkVblWfPDY3eMPSuQ48TkI=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.2.1/go.mod h1:hyhw+I19NtjKmRLcUkY4boaTxnYSPFGbpn4RxvGqH2s=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.1 h1:ALrDCBih8Fu8e6530KdOjuH0iMxOLntO381BbKFlTFY=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.1/go.mod h1:+qGWSehoV0Js3FalgvT/bOgPj+UqW4I7lP5s8uAxP+o=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/redis v0.25.1 h1:8uPt82Ez34OYMOijjEYxB1zUW6kiybkt6veQKl0AL68=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/redis v0.25.1/go.mod h1:1Y2GEICmZDt+kr8aGnBx/sjYVAIYHmtfC8xYi9oxNEE=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.18.2 h1:VDIXOvRNmSYMeF0qQ2+w4/ez04YutVDz73hSMuuOJ54=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.18.2/go.mod h1:9zyEzPL4DnmU/SHq+SuMWTSO5BPxM1Z4g8Fp28n00ds=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/scf v0.2.1 h1:OdofRB6uj6lwN/TXLVHVrEOwNMG34MlFNwkiHD+eOts=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/scf v0.2.1/go.mod h1:5p7Xi8jadpJNDYr0t+07DXS104/RJLfhhA1r6P7PlGs=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.13.1 h1:WKFzlHllql3JsVcAq+Y1m5pSMkvwp1qH3Vf2N7i8CPg=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.13.1/go.mod h1:WGMFtGugBmUxI+nibI7eUZIQk4AGlDvwqX+m17W1y5w=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.2 h1:tfKC4Z6Uah9AQZrtCn/ytqOgc//ChQRfJ6ozxovgads=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.2/go.mod h1:wV7/BUV3BCLq5+E1bHXrKKt/eOPVdWgLArWLAq7rZ/U=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serverupdate v1.2.1 h1:hcHX2n5pUsOcv2PPPbSJph1fQ/I6P7g7781T1f1ycEI=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serverupdate v1.2.1/go.mod h1:jZwTg3wU4/UxgNJ7TKlFZ3dTIlnfvppnW8kJTc4UXy8=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.1 h1:crKlHl7QVF97A8CTBK3PBtVpO9c/7qwFvRJi5UN/F7Y=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.1/go.mod h1:QCrAW/Rmf+styT25ke8cUV6hDHpdKNmAY14kkJ3+Fd8=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.2.2 h1:s2iag/Gc4tuQH7x5I0n4mQWVhpfl/cj+SVNAFAB5ck0=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.2.2/go.mod h1:DFEamKVoOjm/rjMwzfZK0Zg/hwsSkXOibdA4HcC6swk=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/ske v1.4.0 h1:V6RFvybDeJvvmT3g7/BZodF0gozz3TEpahbpiTftbeY=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/ske v1.4.0/go.mod h1:xRBgpJ8P5Nf1T5tD0tGAeNg1FNQzx5VF7qqOXt2Fp3s=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.3.3 h1:TFefEGGxvcI7euqyosbLS/zSEOy+3JMGOirW3vNj/84=
|
||||
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.3.3/go.mod h1:Jsry+gfhuXv2P0ldfa48BaL605NhDjdQMgaoV8czlbo=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
|
||||
github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
||||
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/teambition/rrule-go v1.8.2 h1:lIjpjvWTj9fFUZCmuoVDrKVOtdiyzbzc93qTmRVe/J8=
|
||||
github.com/teambition/rrule-go v1.8.2/go.mod h1:Ieq5AbrKGciP1V//Wq8ktsTXwSwJHDD5mD/wLBGl3p4=
|
||||
github.com/thanhpk/randstr v1.0.4 h1:IN78qu/bR+My+gHCvMEXhR/i5oriVHcTB/BJJIRTsNo=
|
||||
github.com/thanhpk/randstr v1.0.4/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U=
|
||||
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
|
||||
github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
|
||||
github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI=
|
||||
github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
|
||||
github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8=
|
||||
github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok=
|
||||
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
|
||||
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
|
||||
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
|
||||
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
|
||||
github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
|
||||
github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g=
|
||||
github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8=
|
||||
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
github.com/yuin/goldmark v1.7.7 h1:5m9rrB1sW3JUMToKFQfb+FGt1U7r57IHu5GrYrG2nqU=
|
||||
github.com/yuin/goldmark v1.7.7/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
|
||||
github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc=
|
||||
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
|
||||
github.com/zclconf/go-cty v1.17.0 h1:seZvECve6XX4tmnvRzWtJNHdscMtYEx5R7bnnVyd/d0=
|
||||
github.com/zclconf/go-cty v1.17.0/go.mod h1:wqFzcImaLTI6A5HfsRwB0nj5n0MRZFwmey8YoFPPs3U=
|
||||
github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo=
|
||||
github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM=
|
||||
go.abhg.dev/goldmark/frontmatter v0.2.0 h1:P8kPG0YkL12+aYk2yU3xHv4tcXzeVnN+gU0tJ5JnxRw=
|
||||
go.abhg.dev/goldmark/frontmatter v0.2.0/go.mod h1:XqrEkZuM57djk7zrlRUB02x8I5J0px76YjkOzhB4YlU=
|
||||
go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A=
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g=
|
||||
go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY=
|
||||
go.mongodb.org/mongo-driver v1.10.0 h1:UtV6N5k14upNp4LTduX0QCufG124fSu25Wz9tu94GLg=
|
||||
go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8=
|
||||
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
|
||||
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
|
||||
go.opentelemetry.io/otel v1.37.0 h1:9zhNfelUvx0KBfu/gb+ZgeAfAgtWrfHJZcAqFC228wQ=
|
||||
go.opentelemetry.io/otel v1.37.0/go.mod h1:ehE/umFRLnuLa/vSccNq9oS1ErUlkkK71gMcN34UG8I=
|
||||
go.opentelemetry.io/otel/metric v1.37.0 h1:mvwbQS5m0tbmqML4NqK+e3aDiO02vsf/WgbsdpcPoZE=
|
||||
go.opentelemetry.io/otel/metric v1.37.0/go.mod h1:04wGrZurHYKOc+RKeye86GwKiTb9FKm1WHtO+4EVr2E=
|
||||
go.opentelemetry.io/otel/sdk v1.37.0 h1:ItB0QUqnjesGRvNcmAcU0LyvkVyGJ2xftD29bWdDvKI=
|
||||
go.opentelemetry.io/otel/sdk v1.37.0/go.mod h1:VredYzxUvuo2q3WRcDnKDjbdvmO0sCzOvVAiY+yUkAg=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.37.0 h1:90lI228XrB9jCMuSdA0673aubgRobVZFhbjxHHspCPc=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.37.0/go.mod h1:cNen4ZWfiD37l5NhS+Keb5RXVWZWpRE+9WyVCpbo5ps=
|
||||
go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mxVK7z4=
|
||||
go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0=
|
||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
|
||||
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
|
||||
golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
|
||||
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
|
||||
golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU=
|
||||
golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 h1:3MTrJm4PyNL9NBqvYDSj3DHl46qQakyfqfWo4jgfaEM=
|
||||
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE=
|
||||
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME=
|
||||
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI=
|
||||
golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
||||
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8=
|
||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
||||
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
|
||||
golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
|
||||
golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE=
|
||||
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
|
||||
golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
|
||||
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
|
||||
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc h1:bH6xUXay0AIFMElXG2rQ4uiE+7ncwtiOdPfYK1NK2XA=
|
||||
golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc/go.mod h1:hKdjCMrbv9skySur+Nek8Hd0uJ0GuxJIoIX2payrIdQ=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||
golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q=
|
||||
golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
|
||||
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
|
||||
golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA=
|
||||
golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk=
|
||||
gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
|
||||
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1:pFyd6EwwL2TqFf8emdthzeX+gZE1ElRq3iM8pui4KBY=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
|
||||
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
|
||||
google.golang.org/grpc v1.75.1 h1:/ODCNEuf9VghjgO3rqLcfg8fiOP0nSluljWFlDxELLI=
|
||||
google.golang.org/grpc v1.75.1/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw=
|
||||
google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
|
||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||
gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
|
||||
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
|
||||
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
|
||||
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
||||
97
golang-ci.yaml
Normal file
97
golang-ci.yaml
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
# This file contains all available configuration options
|
||||
# with their default values.
|
||||
|
||||
# options for analysis running
|
||||
run:
|
||||
# default concurrency is a available CPU number
|
||||
concurrency: 4
|
||||
|
||||
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
||||
timeout: 5m
|
||||
linters-settings:
|
||||
goimports:
|
||||
# put imports beginning with prefix after 3rd-party packages;
|
||||
# it's a comma-separated list of prefixes
|
||||
local-prefixes: github.com/freiheit-com/nmww
|
||||
depguard:
|
||||
rules:
|
||||
main:
|
||||
list-mode: lax # Everything is allowed unless it is denied
|
||||
deny:
|
||||
- pkg: "github.com/stretchr/testify"
|
||||
desc: Do not use a testing framework
|
||||
misspell:
|
||||
# Correct spellings using locale preferences for US or UK.
|
||||
# Default is to use a neutral variety of English.
|
||||
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
|
||||
locale: US
|
||||
golint:
|
||||
min-confidence: 0.8
|
||||
gosec:
|
||||
excludes:
|
||||
# Suppressions: (see https://github.com/securego/gosec#available-rules for details)
|
||||
- G104 # "Audit errors not checked" -> which we don't need and is a badly implemented version of errcheck
|
||||
- G102 # "Bind to all interfaces" -> since this is normal in k8s
|
||||
- G304 # "File path provided as taint input" -> too many false positives
|
||||
- G307 # "Deferring unsafe method "Close" on type "io.ReadCloser" -> false positive when calling defer resp.Body.Close()
|
||||
nakedret:
|
||||
max-func-lines: 0
|
||||
revive:
|
||||
ignore-generated-header: true
|
||||
severity: error
|
||||
# https://github.com/mgechev/revive
|
||||
rules:
|
||||
- name: errorf
|
||||
- name: context-as-argument
|
||||
- name: error-return
|
||||
- name: increment-decrement
|
||||
- name: indent-error-flow
|
||||
- name: superfluous-else
|
||||
- name: unused-parameter
|
||||
- name: unreachable-code
|
||||
- name: atomic
|
||||
- name: empty-lines
|
||||
- name: early-return
|
||||
gocritic:
|
||||
enabled-tags:
|
||||
- performance
|
||||
- style
|
||||
- experimental
|
||||
disabled-checks:
|
||||
- wrapperFunc
|
||||
- typeDefFirst
|
||||
- ifElseChain
|
||||
- dupImport # https://github.com/go-critic/go-critic/issues/845
|
||||
linters:
|
||||
enable:
|
||||
# https://golangci-lint.run/usage/linters/
|
||||
# default linters
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- typecheck
|
||||
- unused
|
||||
# additional linters
|
||||
- errorlint
|
||||
- gochecknoinits
|
||||
- gocritic
|
||||
- gofmt
|
||||
- goimports
|
||||
- gosec
|
||||
- misspell
|
||||
- nakedret
|
||||
- revive
|
||||
- depguard
|
||||
- bodyclose
|
||||
- sqlclosecheck
|
||||
- wastedassign
|
||||
- forcetypeassert
|
||||
- errcheck
|
||||
disable:
|
||||
- noctx # false positive: finds errors with http.NewRequest that dont make sense
|
||||
- unparam # false positives
|
||||
issues:
|
||||
exclude-use-default: false
|
||||
30
main.go
Normal file
30
main.go
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// Copyright (c) STACKIT
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"flag"
|
||||
"log"
|
||||
|
||||
"github.com/hashicorp/terraform-plugin-framework/providerserver"
|
||||
"github.com/stackitcloud/terraform-provider-stackit/stackit"
|
||||
)
|
||||
|
||||
var (
|
||||
// goreleaser configuration will override this value
|
||||
version string = "dev"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var debug bool
|
||||
flag.BoolVar(&debug, "debug", false, "allows debugging the provider")
|
||||
flag.Parse()
|
||||
err := providerserver.Serve(context.Background(), stackit.New(version), providerserver.ServeOpts{
|
||||
Address: "registry.terraform.io/stackitcloud/stackit",
|
||||
Debug: debug,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatal(err.Error())
|
||||
}
|
||||
}
|
||||
1
pkg/postgresflexalpha/.openapi-generator/VERSION
Normal file
1
pkg/postgresflexalpha/.openapi-generator/VERSION
Normal file
|
|
@ -0,0 +1 @@
|
|||
6.6.0
|
||||
6257
pkg/postgresflexalpha/api_default.go
Normal file
6257
pkg/postgresflexalpha/api_default.go
Normal file
File diff suppressed because it is too large
Load diff
1571
pkg/postgresflexalpha/api_default_test.go
Normal file
1571
pkg/postgresflexalpha/api_default_test.go
Normal file
File diff suppressed because it is too large
Load diff
631
pkg/postgresflexalpha/client.go
Normal file
631
pkg/postgresflexalpha/client.go
Normal file
|
|
@ -0,0 +1,631 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"net/http/httputil"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/stackitcloud/stackit-sdk-go/core/auth"
|
||||
"github.com/stackitcloud/stackit-sdk-go/core/config"
|
||||
)
|
||||
|
||||
var (
|
||||
jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`)
|
||||
xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`)
|
||||
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
|
||||
queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
|
||||
)
|
||||
|
||||
// APIClient manages communication with the PostgreSQL Flex API API v3alpha1
|
||||
// In most cases there should be only one, shared, APIClient.
|
||||
type APIClient struct {
|
||||
cfg *config.Configuration
|
||||
common service // Reuse a single struct instead of allocating one for each service on the heap.
|
||||
defaultApi *DefaultApiService
|
||||
}
|
||||
|
||||
type service struct {
|
||||
client DefaultApi
|
||||
}
|
||||
|
||||
// NewAPIClient creates a new API client.
|
||||
// Optionally receives configuration options
|
||||
func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) {
|
||||
cfg := NewConfiguration()
|
||||
|
||||
for _, option := range opts {
|
||||
err := option(cfg)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("configuring the client: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
err := config.ConfigureRegion(cfg)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("configuring region: %w", err)
|
||||
}
|
||||
|
||||
if cfg.HTTPClient == nil {
|
||||
cfg.HTTPClient = &http.Client{}
|
||||
}
|
||||
|
||||
authRoundTripper, err := auth.SetupAuth(cfg)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("setting up authentication: %w", err)
|
||||
}
|
||||
|
||||
roundTripper := authRoundTripper
|
||||
if cfg.Middleware != nil {
|
||||
roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...)
|
||||
}
|
||||
|
||||
cfg.HTTPClient.Transport = roundTripper
|
||||
|
||||
c := &APIClient{}
|
||||
c.cfg = cfg
|
||||
c.common.client = c
|
||||
c.defaultApi = (*DefaultApiService)(&c.common)
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
||||
func atoi(in string) (int, error) {
|
||||
return strconv.Atoi(in)
|
||||
}
|
||||
|
||||
// selectHeaderContentType select a content type from the available list.
|
||||
func selectHeaderContentType(contentTypes []string) string {
|
||||
if len(contentTypes) == 0 {
|
||||
return ""
|
||||
}
|
||||
if contains(contentTypes, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
return contentTypes[0] // use the first content type specified in 'consumes'
|
||||
}
|
||||
|
||||
// selectHeaderAccept join all accept types and return
|
||||
func selectHeaderAccept(accepts []string) string {
|
||||
if len(accepts) == 0 {
|
||||
return ""
|
||||
}
|
||||
|
||||
if contains(accepts, "application/json") {
|
||||
return "application/json"
|
||||
}
|
||||
|
||||
return strings.Join(accepts, ",")
|
||||
}
|
||||
|
||||
// contains is a case insensitive match, finding needle in a haystack
|
||||
func contains(haystack []string, needle string) bool {
|
||||
for _, a := range haystack {
|
||||
if strings.EqualFold(a, needle) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Verify optional parameters are of the correct type.
|
||||
func typeCheckParameter(obj interface{}, expected string, name string) error {
|
||||
// Make sure there is an object.
|
||||
if obj == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Check the type is as expected.
|
||||
if reflect.TypeOf(obj).String() != expected {
|
||||
return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func ParameterValueToString(obj interface{}, key string) string {
|
||||
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
|
||||
return fmt.Sprintf("%v", obj)
|
||||
}
|
||||
var param, ok = obj.(MappedNullable)
|
||||
if !ok {
|
||||
return ""
|
||||
}
|
||||
dataMap, err := param.ToMap()
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("%v", dataMap[key])
|
||||
}
|
||||
|
||||
// parameterAddToHeaderOrQuery adds the provided object to the request header or url query
|
||||
// supporting deep object syntax
|
||||
func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) {
|
||||
var v = reflect.ValueOf(obj)
|
||||
var value = ""
|
||||
if v == reflect.ValueOf(nil) {
|
||||
value = "null"
|
||||
} else {
|
||||
switch v.Kind() {
|
||||
case reflect.Invalid:
|
||||
value = "invalid"
|
||||
|
||||
case reflect.Struct:
|
||||
if t, ok := obj.(MappedNullable); ok {
|
||||
dataMap, err := t.ToMap()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType)
|
||||
return
|
||||
}
|
||||
if t, ok := obj.(time.Time); ok {
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType)
|
||||
return
|
||||
}
|
||||
value = v.Type().String() + " value"
|
||||
case reflect.Slice:
|
||||
var indValue = reflect.ValueOf(obj)
|
||||
if indValue == reflect.ValueOf(nil) {
|
||||
return
|
||||
}
|
||||
var lenIndValue = indValue.Len()
|
||||
for i := 0; i < lenIndValue; i++ {
|
||||
var arrayValue = indValue.Index(i)
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Map:
|
||||
var indValue = reflect.ValueOf(obj)
|
||||
if indValue == reflect.ValueOf(nil) {
|
||||
return
|
||||
}
|
||||
iter := indValue.MapRange()
|
||||
for iter.Next() {
|
||||
k, v := iter.Key(), iter.Value()
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Interface:
|
||||
fallthrough
|
||||
case reflect.Ptr:
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType)
|
||||
return
|
||||
|
||||
case reflect.Int, reflect.Int8, reflect.Int16,
|
||||
reflect.Int32, reflect.Int64:
|
||||
value = strconv.FormatInt(v.Int(), 10)
|
||||
case reflect.Uint, reflect.Uint8, reflect.Uint16,
|
||||
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
|
||||
value = strconv.FormatUint(v.Uint(), 10)
|
||||
case reflect.Float32, reflect.Float64:
|
||||
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
|
||||
case reflect.Bool:
|
||||
value = strconv.FormatBool(v.Bool())
|
||||
case reflect.String:
|
||||
value = v.String()
|
||||
default:
|
||||
value = v.Type().String() + " value"
|
||||
}
|
||||
}
|
||||
|
||||
switch valuesMap := headerOrQueryParams.(type) {
|
||||
case url.Values:
|
||||
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
|
||||
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
|
||||
} else {
|
||||
valuesMap.Add(keyPrefix, value)
|
||||
}
|
||||
break
|
||||
case map[string]string:
|
||||
valuesMap[keyPrefix] = value
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// helper for converting interface{} parameters to json strings
|
||||
func parameterToJson(obj interface{}) (string, error) {
|
||||
jsonBuf, err := json.Marshal(obj)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(jsonBuf), err
|
||||
}
|
||||
|
||||
// callAPI do the request.
|
||||
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpRequestOut(request, true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
|
||||
resp, err := c.cfg.HTTPClient.Do(request)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpResponse(resp, true)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// Allow modification of underlying config for alternate implementations and testing
|
||||
// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
|
||||
func (c *APIClient) GetConfig() *config.Configuration {
|
||||
return c.cfg
|
||||
}
|
||||
|
||||
type formFile struct {
|
||||
fileBytes []byte
|
||||
fileName string
|
||||
formFileName string
|
||||
}
|
||||
|
||||
// prepareRequest build the request
|
||||
func (c *APIClient) prepareRequest(
|
||||
ctx context.Context,
|
||||
path string, method string,
|
||||
postBody interface{},
|
||||
headerParams map[string]string,
|
||||
queryParams url.Values,
|
||||
formParams url.Values,
|
||||
formFiles []formFile) (localVarRequest *http.Request, err error) {
|
||||
|
||||
var body *bytes.Buffer
|
||||
|
||||
// Detect postBody type and post.
|
||||
if !IsNil(postBody) {
|
||||
contentType := headerParams["Content-Type"]
|
||||
if contentType == "" {
|
||||
contentType = detectContentType(postBody)
|
||||
headerParams["Content-Type"] = contentType
|
||||
}
|
||||
|
||||
body, err = setBody(postBody, contentType)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// add form parameters and file if available.
|
||||
if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) {
|
||||
if body != nil {
|
||||
return nil, fmt.Errorf("cannot specify postBody and multipart form at the same time.")
|
||||
}
|
||||
body = &bytes.Buffer{}
|
||||
w := multipart.NewWriter(body)
|
||||
|
||||
for k, v := range formParams {
|
||||
for _, iv := range v {
|
||||
if strings.HasPrefix(k, "@") { // file
|
||||
err = addFile(w, k[1:], iv)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
} else { // form value
|
||||
w.WriteField(k, iv)
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, formFile := range formFiles {
|
||||
if len(formFile.fileBytes) > 0 && formFile.fileName != "" {
|
||||
w.Boundary()
|
||||
part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_, err = part.Write(formFile.fileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set the Boundary in the Content-Type
|
||||
headerParams["Content-Type"] = w.FormDataContentType()
|
||||
|
||||
// Set Content-Length
|
||||
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
|
||||
w.Close()
|
||||
}
|
||||
|
||||
if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 {
|
||||
if body != nil {
|
||||
return nil, fmt.Errorf("cannot specify postBody and x-www-form-urlencoded form at the same time.")
|
||||
}
|
||||
body = &bytes.Buffer{}
|
||||
body.WriteString(formParams.Encode())
|
||||
// Set Content-Length
|
||||
headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
|
||||
}
|
||||
|
||||
// Setup path and query parameters
|
||||
url, err := url.Parse(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Override request host, if applicable
|
||||
if c.cfg.Host != "" {
|
||||
url.Host = c.cfg.Host
|
||||
}
|
||||
|
||||
// Override request scheme, if applicable
|
||||
if c.cfg.Scheme != "" {
|
||||
url.Scheme = c.cfg.Scheme
|
||||
}
|
||||
|
||||
// Adding Query Param
|
||||
query := url.Query()
|
||||
for k, v := range queryParams {
|
||||
for _, iv := range v {
|
||||
query.Add(k, iv)
|
||||
}
|
||||
}
|
||||
|
||||
// Encode the parameters.
|
||||
url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string {
|
||||
pieces := strings.Split(s, "=")
|
||||
pieces[0] = queryDescape.Replace(pieces[0])
|
||||
return strings.Join(pieces, "=")
|
||||
})
|
||||
|
||||
// Generate a new request
|
||||
if body != nil {
|
||||
localVarRequest, err = http.NewRequest(method, url.String(), body)
|
||||
} else {
|
||||
localVarRequest, err = http.NewRequest(method, url.String(), nil)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// add header parameters, if any
|
||||
if len(headerParams) > 0 {
|
||||
headers := http.Header{}
|
||||
for h, v := range headerParams {
|
||||
headers[h] = []string{v}
|
||||
}
|
||||
localVarRequest.Header = headers
|
||||
}
|
||||
|
||||
// Add the user agent to the request.
|
||||
localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
|
||||
|
||||
if ctx != nil {
|
||||
// add context to the request
|
||||
localVarRequest = localVarRequest.WithContext(ctx)
|
||||
|
||||
// Walk through any authentication.
|
||||
|
||||
}
|
||||
|
||||
for header, value := range c.cfg.DefaultHeader {
|
||||
localVarRequest.Header.Add(header, value)
|
||||
}
|
||||
return localVarRequest, nil
|
||||
}
|
||||
|
||||
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
||||
if len(b) == 0 {
|
||||
return nil
|
||||
}
|
||||
if s, ok := v.(*string); ok {
|
||||
*s = string(b)
|
||||
return nil
|
||||
}
|
||||
if f, ok := v.(*os.File); ok {
|
||||
f, err = os.CreateTemp("", "HttpClientFile")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = f.Write(b)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = f.Seek(0, io.SeekStart)
|
||||
return
|
||||
}
|
||||
if f, ok := v.(**os.File); ok {
|
||||
*f, err = os.CreateTemp("", "HttpClientFile")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = (*f).Write(b)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, err = (*f).Seek(0, io.SeekStart)
|
||||
return
|
||||
}
|
||||
if xmlCheck.MatchString(contentType) {
|
||||
if err = xml.Unmarshal(b, v); err != nil {
|
||||
return 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 {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined")
|
||||
}
|
||||
} else if err = json.Unmarshal(b, v); err != nil { // simple model
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("undefined response type")
|
||||
}
|
||||
|
||||
// Add a file to the multipart request
|
||||
func addFile(w *multipart.Writer, fieldName, path string) error {
|
||||
file, err := os.Open(filepath.Clean(path))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = file.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
part, err := w.CreateFormFile(fieldName, filepath.Base(path))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = io.Copy(part, file)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// A wrapper for strict JSON decoding
|
||||
func newStrictDecoder(data []byte) *json.Decoder {
|
||||
dec := json.NewDecoder(bytes.NewBuffer(data))
|
||||
dec.DisallowUnknownFields()
|
||||
return dec
|
||||
}
|
||||
|
||||
// Set request body from an interface{}
|
||||
func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
|
||||
if bodyBuf == nil {
|
||||
bodyBuf = &bytes.Buffer{}
|
||||
}
|
||||
|
||||
if reader, ok := body.(io.Reader); ok {
|
||||
_, err = bodyBuf.ReadFrom(reader)
|
||||
} else if fp, ok := body.(*os.File); ok {
|
||||
_, err = bodyBuf.ReadFrom(fp)
|
||||
} else if b, ok := body.([]byte); ok {
|
||||
_, err = bodyBuf.Write(b)
|
||||
} else if s, ok := body.(string); ok {
|
||||
_, err = bodyBuf.WriteString(s)
|
||||
} else if s, ok := body.(*string); ok {
|
||||
_, err = bodyBuf.WriteString(*s)
|
||||
} else if jsonCheck.MatchString(contentType) {
|
||||
err = json.NewEncoder(bodyBuf).Encode(body)
|
||||
} else if xmlCheck.MatchString(contentType) {
|
||||
err = xml.NewEncoder(bodyBuf).Encode(body)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if bodyBuf.Len() == 0 {
|
||||
err = fmt.Errorf("invalid body type %s", contentType)
|
||||
return nil, err
|
||||
}
|
||||
return bodyBuf, nil
|
||||
}
|
||||
|
||||
// detectContentType method is used to figure out `Request.Body` content type for request header
|
||||
func detectContentType(body interface{}) string {
|
||||
contentType := "text/plain; charset=utf-8"
|
||||
kind := reflect.TypeOf(body).Kind()
|
||||
|
||||
switch kind {
|
||||
case reflect.Struct, reflect.Map, reflect.Ptr:
|
||||
contentType = "application/json; charset=utf-8"
|
||||
case reflect.String:
|
||||
contentType = "text/plain; charset=utf-8"
|
||||
default:
|
||||
if b, ok := body.([]byte); ok {
|
||||
contentType = http.DetectContentType(b)
|
||||
} else if kind == reflect.Slice {
|
||||
contentType = "application/json; charset=utf-8"
|
||||
}
|
||||
}
|
||||
|
||||
return contentType
|
||||
}
|
||||
|
||||
// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
|
||||
type cacheControl map[string]string
|
||||
|
||||
func parseCacheControl(headers http.Header) cacheControl {
|
||||
cc := cacheControl{}
|
||||
ccHeader := headers.Get("Cache-Control")
|
||||
for _, part := range strings.Split(ccHeader, ",") {
|
||||
part = strings.Trim(part, " ")
|
||||
if part == "" {
|
||||
continue
|
||||
}
|
||||
if strings.ContainsRune(part, '=') {
|
||||
keyval := strings.Split(part, "=")
|
||||
cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
|
||||
} else {
|
||||
cc[part] = ""
|
||||
}
|
||||
}
|
||||
return cc
|
||||
}
|
||||
|
||||
// CacheExpires helper function to determine remaining time before repeating a request.
|
||||
func CacheExpires(r *http.Response) time.Time {
|
||||
// Figure out when the cache expires.
|
||||
var expires time.Time
|
||||
now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
|
||||
if err != nil {
|
||||
return time.Now()
|
||||
}
|
||||
respCacheControl := parseCacheControl(r.Header)
|
||||
|
||||
if maxAge, ok := respCacheControl["max-age"]; ok {
|
||||
lifetime, err := time.ParseDuration(maxAge + "s")
|
||||
if err != nil {
|
||||
expires = now
|
||||
} else {
|
||||
expires = now.Add(lifetime)
|
||||
}
|
||||
} else {
|
||||
expiresHeader := r.Header.Get("Expires")
|
||||
if expiresHeader != "" {
|
||||
expires, err = time.Parse(time.RFC1123, expiresHeader)
|
||||
if err != nil {
|
||||
expires = now
|
||||
}
|
||||
}
|
||||
}
|
||||
return expires
|
||||
}
|
||||
|
||||
func strlen(s string) int {
|
||||
return utf8.RuneCountInString(s)
|
||||
}
|
||||
41
pkg/postgresflexalpha/configuration.go
Normal file
41
pkg/postgresflexalpha/configuration.go
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"github.com/stackitcloud/stackit-sdk-go/core/config"
|
||||
)
|
||||
|
||||
// NewConfiguration returns a new Configuration object
|
||||
func NewConfiguration() *config.Configuration {
|
||||
cfg := &config.Configuration{
|
||||
DefaultHeader: make(map[string]string),
|
||||
UserAgent: "stackit-sdk-go/postgresflexalpha",
|
||||
Debug: false,
|
||||
Servers: config.ServerConfigurations{
|
||||
{
|
||||
URL: "https://postgres-flex-service.api.{region}stackit.cloud",
|
||||
Description: "No description provided",
|
||||
Variables: map[string]config.ServerVariable{
|
||||
"region": {
|
||||
Description: "No description provided",
|
||||
DefaultValue: "eu01.",
|
||||
EnumValues: []string{
|
||||
"eu01.",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
OperationServers: map[string]config.ServerConfigurations{},
|
||||
}
|
||||
return cfg
|
||||
}
|
||||
139
pkg/postgresflexalpha/model_backup_sort.go
Normal file
139
pkg/postgresflexalpha/model_backup_sort.go
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// BackupSort the model 'BackupSort'
|
||||
type BackupSort string
|
||||
|
||||
// List of backup.sort
|
||||
const (
|
||||
BACKUPSORT_COMPLETION_TIME_DESC BackupSort = "completion_time.desc"
|
||||
BACKUPSORT_COMPLETION_TIME_ASC BackupSort = "completion_time.asc"
|
||||
BACKUPSORT_END_TIME_DESC BackupSort = "end_time.desc"
|
||||
BACKUPSORT_END_TIME_ASC BackupSort = "end_time.asc"
|
||||
BACKUPSORT_INDEX_DESC BackupSort = "index.desc"
|
||||
BACKUPSORT_INDEX_ASC BackupSort = "index.asc"
|
||||
BACKUPSORT_NAME_DESC BackupSort = "name.desc"
|
||||
BACKUPSORT_NAME_ASC BackupSort = "name.asc"
|
||||
BACKUPSORT_RETAINED_UNTIL_DESC BackupSort = "retained_until.desc"
|
||||
BACKUPSORT_RETAINED_UNTIL_ASC BackupSort = "retained_until.asc"
|
||||
BACKUPSORT_SIZE_DESC BackupSort = "size.desc"
|
||||
BACKUPSORT_SIZE_ASC BackupSort = "size.asc"
|
||||
BACKUPSORT_TYPE_DESC BackupSort = "type.desc"
|
||||
BACKUPSORT_TYPE_ASC BackupSort = "type.asc"
|
||||
)
|
||||
|
||||
// All allowed values of BackupSort enum
|
||||
var AllowedBackupSortEnumValues = []BackupSort{
|
||||
"completion_time.desc",
|
||||
"completion_time.asc",
|
||||
"end_time.desc",
|
||||
"end_time.asc",
|
||||
"index.desc",
|
||||
"index.asc",
|
||||
"name.desc",
|
||||
"name.asc",
|
||||
"retained_until.desc",
|
||||
"retained_until.asc",
|
||||
"size.desc",
|
||||
"size.asc",
|
||||
"type.desc",
|
||||
"type.asc",
|
||||
}
|
||||
|
||||
func (v *BackupSort) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Allow unmarshalling zero value for testing purposes
|
||||
var zeroValue string
|
||||
if value == zeroValue {
|
||||
return nil
|
||||
}
|
||||
enumTypeValue := BackupSort(value)
|
||||
for _, existing := range AllowedBackupSortEnumValues {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid BackupSort", value)
|
||||
}
|
||||
|
||||
// NewBackupSortFromValue returns a pointer to a valid BackupSort
|
||||
// for the value passed as argument, or an error if the value passed is not allowed by the enum
|
||||
func NewBackupSortFromValue(v string) (*BackupSort, error) {
|
||||
ev := BackupSort(v)
|
||||
if ev.IsValid() {
|
||||
return &ev, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("invalid value '%v' for BackupSort: valid values are %v", v, AllowedBackupSortEnumValues)
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid return true if the value is valid for the enum, false otherwise
|
||||
func (v BackupSort) IsValid() bool {
|
||||
for _, existing := range AllowedBackupSortEnumValues {
|
||||
if existing == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Ptr returns reference to backup.sort value
|
||||
func (v BackupSort) Ptr() *BackupSort {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableBackupSort struct {
|
||||
value *BackupSort
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableBackupSort) Get() *BackupSort {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableBackupSort) Set(val *BackupSort) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableBackupSort) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableBackupSort) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableBackupSort(val *BackupSort) *NullableBackupSort {
|
||||
return &NullableBackupSort{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableBackupSort) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableBackupSort) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_backup_sort_test.go
Normal file
11
pkg/postgresflexalpha/model_backup_sort_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
176
pkg/postgresflexalpha/model_create_database_request_payload.go
Normal file
176
pkg/postgresflexalpha/model_create_database_request_payload.go
Normal file
|
|
@ -0,0 +1,176 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the CreateDatabaseRequestPayload type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &CreateDatabaseRequestPayload{}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateDatabaseRequestPayloadGetNameAttributeType = *string
|
||||
|
||||
func getCreateDatabaseRequestPayloadGetNameAttributeTypeOk(arg CreateDatabaseRequestPayloadGetNameAttributeType) (ret CreateDatabaseRequestPayloadGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateDatabaseRequestPayloadGetNameAttributeType(arg *CreateDatabaseRequestPayloadGetNameAttributeType, val CreateDatabaseRequestPayloadGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateDatabaseRequestPayloadGetNameArgType = string
|
||||
type CreateDatabaseRequestPayloadGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for owner
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateDatabaseRequestPayloadGetOwnerAttributeType = *string
|
||||
|
||||
func getCreateDatabaseRequestPayloadGetOwnerAttributeTypeOk(arg CreateDatabaseRequestPayloadGetOwnerAttributeType) (ret CreateDatabaseRequestPayloadGetOwnerRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateDatabaseRequestPayloadGetOwnerAttributeType(arg *CreateDatabaseRequestPayloadGetOwnerAttributeType, val CreateDatabaseRequestPayloadGetOwnerRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateDatabaseRequestPayloadGetOwnerArgType = string
|
||||
type CreateDatabaseRequestPayloadGetOwnerRetType = string
|
||||
|
||||
// CreateDatabaseRequestPayload struct for CreateDatabaseRequestPayload
|
||||
type CreateDatabaseRequestPayload struct {
|
||||
// The name of the database.
|
||||
// REQUIRED
|
||||
Name CreateDatabaseRequestPayloadGetNameAttributeType `json:"name" required:"true"`
|
||||
// The owner of the database.
|
||||
Owner CreateDatabaseRequestPayloadGetOwnerAttributeType `json:"owner,omitempty"`
|
||||
}
|
||||
|
||||
type _CreateDatabaseRequestPayload CreateDatabaseRequestPayload
|
||||
|
||||
// NewCreateDatabaseRequestPayload instantiates a new CreateDatabaseRequestPayload 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 NewCreateDatabaseRequestPayload(name CreateDatabaseRequestPayloadGetNameArgType) *CreateDatabaseRequestPayload {
|
||||
this := CreateDatabaseRequestPayload{}
|
||||
setCreateDatabaseRequestPayloadGetNameAttributeType(&this.Name, name)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateDatabaseRequestPayloadWithDefaults instantiates a new CreateDatabaseRequestPayload 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 NewCreateDatabaseRequestPayloadWithDefaults() *CreateDatabaseRequestPayload {
|
||||
this := CreateDatabaseRequestPayload{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *CreateDatabaseRequestPayload) GetName() (ret CreateDatabaseRequestPayloadGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateDatabaseRequestPayload) GetNameOk() (ret CreateDatabaseRequestPayloadGetNameRetType, ok bool) {
|
||||
return getCreateDatabaseRequestPayloadGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *CreateDatabaseRequestPayload) SetName(v CreateDatabaseRequestPayloadGetNameRetType) {
|
||||
setCreateDatabaseRequestPayloadGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetOwner returns the Owner field value if set, zero value otherwise.
|
||||
func (o *CreateDatabaseRequestPayload) GetOwner() (res CreateDatabaseRequestPayloadGetOwnerRetType) {
|
||||
res, _ = o.GetOwnerOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateDatabaseRequestPayload) GetOwnerOk() (ret CreateDatabaseRequestPayloadGetOwnerRetType, ok bool) {
|
||||
return getCreateDatabaseRequestPayloadGetOwnerAttributeTypeOk(o.Owner)
|
||||
}
|
||||
|
||||
// HasOwner returns a boolean if a field has been set.
|
||||
func (o *CreateDatabaseRequestPayload) HasOwner() bool {
|
||||
_, ok := o.GetOwnerOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetOwner gets a reference to the given string and assigns it to the Owner field.
|
||||
func (o *CreateDatabaseRequestPayload) SetOwner(v CreateDatabaseRequestPayloadGetOwnerRetType) {
|
||||
setCreateDatabaseRequestPayloadGetOwnerAttributeType(&o.Owner, v)
|
||||
}
|
||||
|
||||
func (o CreateDatabaseRequestPayload) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getCreateDatabaseRequestPayloadGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getCreateDatabaseRequestPayloadGetOwnerAttributeTypeOk(o.Owner); ok {
|
||||
toSerialize["Owner"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableCreateDatabaseRequestPayload struct {
|
||||
value *CreateDatabaseRequestPayload
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateDatabaseRequestPayload) Get() *CreateDatabaseRequestPayload {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateDatabaseRequestPayload) Set(val *CreateDatabaseRequestPayload) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateDatabaseRequestPayload) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateDatabaseRequestPayload) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateDatabaseRequestPayload(val *CreateDatabaseRequestPayload) *NullableCreateDatabaseRequestPayload {
|
||||
return &NullableCreateDatabaseRequestPayload{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateDatabaseRequestPayload) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateDatabaseRequestPayload) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
126
pkg/postgresflexalpha/model_create_database_response.go
Normal file
126
pkg/postgresflexalpha/model_create_database_response.go
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the CreateDatabaseResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &CreateDatabaseResponse{}
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type CreateDatabaseResponseGetIdAttributeType = *int64
|
||||
type CreateDatabaseResponseGetIdArgType = int64
|
||||
type CreateDatabaseResponseGetIdRetType = int64
|
||||
|
||||
func getCreateDatabaseResponseGetIdAttributeTypeOk(arg CreateDatabaseResponseGetIdAttributeType) (ret CreateDatabaseResponseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateDatabaseResponseGetIdAttributeType(arg *CreateDatabaseResponseGetIdAttributeType, val CreateDatabaseResponseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// CreateDatabaseResponse struct for CreateDatabaseResponse
|
||||
type CreateDatabaseResponse struct {
|
||||
// The id of the database.
|
||||
// REQUIRED
|
||||
Id CreateDatabaseResponseGetIdAttributeType `json:"id" required:"true"`
|
||||
}
|
||||
|
||||
type _CreateDatabaseResponse CreateDatabaseResponse
|
||||
|
||||
// NewCreateDatabaseResponse instantiates a new CreateDatabaseResponse 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 NewCreateDatabaseResponse(id CreateDatabaseResponseGetIdArgType) *CreateDatabaseResponse {
|
||||
this := CreateDatabaseResponse{}
|
||||
setCreateDatabaseResponseGetIdAttributeType(&this.Id, id)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateDatabaseResponseWithDefaults instantiates a new CreateDatabaseResponse 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 NewCreateDatabaseResponseWithDefaults() *CreateDatabaseResponse {
|
||||
this := CreateDatabaseResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *CreateDatabaseResponse) GetId() (ret CreateDatabaseResponseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateDatabaseResponse) GetIdOk() (ret CreateDatabaseResponseGetIdRetType, ok bool) {
|
||||
return getCreateDatabaseResponseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *CreateDatabaseResponse) SetId(v CreateDatabaseResponseGetIdRetType) {
|
||||
setCreateDatabaseResponseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
func (o CreateDatabaseResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getCreateDatabaseResponseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableCreateDatabaseResponse struct {
|
||||
value *CreateDatabaseResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateDatabaseResponse) Get() *CreateDatabaseResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateDatabaseResponse) Set(val *CreateDatabaseResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateDatabaseResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateDatabaseResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateDatabaseResponse(val *CreateDatabaseResponse) *NullableCreateDatabaseResponse {
|
||||
return &NullableCreateDatabaseResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateDatabaseResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateDatabaseResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_create_database_response_test.go
Normal file
11
pkg/postgresflexalpha/model_create_database_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
531
pkg/postgresflexalpha/model_create_instance_request_payload.go
Normal file
531
pkg/postgresflexalpha/model_create_instance_request_payload.go
Normal file
|
|
@ -0,0 +1,531 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the CreateInstanceRequestPayload type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &CreateInstanceRequestPayload{}
|
||||
|
||||
/*
|
||||
types and functions for acl
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type CreateInstanceRequestPayloadGetAclAttributeType = *[]string
|
||||
type CreateInstanceRequestPayloadGetAclArgType = []string
|
||||
type CreateInstanceRequestPayloadGetAclRetType = []string
|
||||
|
||||
func getCreateInstanceRequestPayloadGetAclAttributeTypeOk(arg CreateInstanceRequestPayloadGetAclAttributeType) (ret CreateInstanceRequestPayloadGetAclRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetAclAttributeType(arg *CreateInstanceRequestPayloadGetAclAttributeType, val CreateInstanceRequestPayloadGetAclRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for backupSchedule
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateInstanceRequestPayloadGetBackupScheduleAttributeType = *string
|
||||
|
||||
func getCreateInstanceRequestPayloadGetBackupScheduleAttributeTypeOk(arg CreateInstanceRequestPayloadGetBackupScheduleAttributeType) (ret CreateInstanceRequestPayloadGetBackupScheduleRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetBackupScheduleAttributeType(arg *CreateInstanceRequestPayloadGetBackupScheduleAttributeType, val CreateInstanceRequestPayloadGetBackupScheduleRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateInstanceRequestPayloadGetBackupScheduleArgType = string
|
||||
type CreateInstanceRequestPayloadGetBackupScheduleRetType = string
|
||||
|
||||
/*
|
||||
types and functions for encryption
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type CreateInstanceRequestPayloadGetEncryptionAttributeType = *InstanceEncryption
|
||||
type CreateInstanceRequestPayloadGetEncryptionArgType = InstanceEncryption
|
||||
type CreateInstanceRequestPayloadGetEncryptionRetType = InstanceEncryption
|
||||
|
||||
func getCreateInstanceRequestPayloadGetEncryptionAttributeTypeOk(arg CreateInstanceRequestPayloadGetEncryptionAttributeType) (ret CreateInstanceRequestPayloadGetEncryptionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetEncryptionAttributeType(arg *CreateInstanceRequestPayloadGetEncryptionAttributeType, val CreateInstanceRequestPayloadGetEncryptionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for flavorId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateInstanceRequestPayloadGetFlavorIdAttributeType = *string
|
||||
|
||||
func getCreateInstanceRequestPayloadGetFlavorIdAttributeTypeOk(arg CreateInstanceRequestPayloadGetFlavorIdAttributeType) (ret CreateInstanceRequestPayloadGetFlavorIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetFlavorIdAttributeType(arg *CreateInstanceRequestPayloadGetFlavorIdAttributeType, val CreateInstanceRequestPayloadGetFlavorIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateInstanceRequestPayloadGetFlavorIdArgType = string
|
||||
type CreateInstanceRequestPayloadGetFlavorIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateInstanceRequestPayloadGetNameAttributeType = *string
|
||||
|
||||
func getCreateInstanceRequestPayloadGetNameAttributeTypeOk(arg CreateInstanceRequestPayloadGetNameAttributeType) (ret CreateInstanceRequestPayloadGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetNameAttributeType(arg *CreateInstanceRequestPayloadGetNameAttributeType, val CreateInstanceRequestPayloadGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateInstanceRequestPayloadGetNameArgType = string
|
||||
type CreateInstanceRequestPayloadGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for network
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type CreateInstanceRequestPayloadGetNetworkAttributeType = *InstanceNetwork
|
||||
type CreateInstanceRequestPayloadGetNetworkArgType = InstanceNetwork
|
||||
type CreateInstanceRequestPayloadGetNetworkRetType = InstanceNetwork
|
||||
|
||||
func getCreateInstanceRequestPayloadGetNetworkAttributeTypeOk(arg CreateInstanceRequestPayloadGetNetworkAttributeType) (ret CreateInstanceRequestPayloadGetNetworkRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetNetworkAttributeType(arg *CreateInstanceRequestPayloadGetNetworkAttributeType, val CreateInstanceRequestPayloadGetNetworkRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for replicas
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type CreateInstanceRequestPayloadGetReplicasAttributeType = *Replicas
|
||||
type CreateInstanceRequestPayloadGetReplicasArgType = Replicas
|
||||
type CreateInstanceRequestPayloadGetReplicasRetType = Replicas
|
||||
|
||||
func getCreateInstanceRequestPayloadGetReplicasAttributeTypeOk(arg CreateInstanceRequestPayloadGetReplicasAttributeType) (ret CreateInstanceRequestPayloadGetReplicasRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetReplicasAttributeType(arg *CreateInstanceRequestPayloadGetReplicasAttributeType, val CreateInstanceRequestPayloadGetReplicasRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for retentionDays
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type CreateInstanceRequestPayloadGetRetentionDaysAttributeType = *int64
|
||||
type CreateInstanceRequestPayloadGetRetentionDaysArgType = int64
|
||||
type CreateInstanceRequestPayloadGetRetentionDaysRetType = int64
|
||||
|
||||
func getCreateInstanceRequestPayloadGetRetentionDaysAttributeTypeOk(arg CreateInstanceRequestPayloadGetRetentionDaysAttributeType) (ret CreateInstanceRequestPayloadGetRetentionDaysRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetRetentionDaysAttributeType(arg *CreateInstanceRequestPayloadGetRetentionDaysAttributeType, val CreateInstanceRequestPayloadGetRetentionDaysRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for storage
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type CreateInstanceRequestPayloadGetStorageAttributeType = *StorageCreate
|
||||
type CreateInstanceRequestPayloadGetStorageArgType = StorageCreate
|
||||
type CreateInstanceRequestPayloadGetStorageRetType = StorageCreate
|
||||
|
||||
func getCreateInstanceRequestPayloadGetStorageAttributeTypeOk(arg CreateInstanceRequestPayloadGetStorageAttributeType) (ret CreateInstanceRequestPayloadGetStorageRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetStorageAttributeType(arg *CreateInstanceRequestPayloadGetStorageAttributeType, val CreateInstanceRequestPayloadGetStorageRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for version
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateInstanceRequestPayloadGetVersionAttributeType = *string
|
||||
|
||||
func getCreateInstanceRequestPayloadGetVersionAttributeTypeOk(arg CreateInstanceRequestPayloadGetVersionAttributeType) (ret CreateInstanceRequestPayloadGetVersionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceRequestPayloadGetVersionAttributeType(arg *CreateInstanceRequestPayloadGetVersionAttributeType, val CreateInstanceRequestPayloadGetVersionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateInstanceRequestPayloadGetVersionArgType = string
|
||||
type CreateInstanceRequestPayloadGetVersionRetType = string
|
||||
|
||||
// CreateInstanceRequestPayload struct for CreateInstanceRequestPayload
|
||||
type CreateInstanceRequestPayload struct {
|
||||
// List of IPV4 cidr.
|
||||
// REQUIRED
|
||||
Acl CreateInstanceRequestPayloadGetAclAttributeType `json:"acl" required:"true"`
|
||||
// The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.
|
||||
// REQUIRED
|
||||
BackupSchedule CreateInstanceRequestPayloadGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"`
|
||||
Encryption CreateInstanceRequestPayloadGetEncryptionAttributeType `json:"encryption,omitempty"`
|
||||
// The id of the instance flavor.
|
||||
// REQUIRED
|
||||
FlavorId CreateInstanceRequestPayloadGetFlavorIdAttributeType `json:"flavorId" required:"true"`
|
||||
// The name of the instance.
|
||||
// REQUIRED
|
||||
Name CreateInstanceRequestPayloadGetNameAttributeType `json:"name" required:"true"`
|
||||
Network CreateInstanceRequestPayloadGetNetworkAttributeType `json:"network,omitempty"`
|
||||
// REQUIRED
|
||||
Replicas CreateInstanceRequestPayloadGetReplicasAttributeType `json:"replicas" required:"true"`
|
||||
// How long backups are retained. The value can only be between 32 and 365 days.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
RetentionDays CreateInstanceRequestPayloadGetRetentionDaysAttributeType `json:"retentionDays" required:"true"`
|
||||
// REQUIRED
|
||||
Storage CreateInstanceRequestPayloadGetStorageAttributeType `json:"storage" required:"true"`
|
||||
// The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3alpha1#tag/Version) for supported version parameters.
|
||||
// REQUIRED
|
||||
Version CreateInstanceRequestPayloadGetVersionAttributeType `json:"version" required:"true"`
|
||||
}
|
||||
|
||||
type _CreateInstanceRequestPayload CreateInstanceRequestPayload
|
||||
|
||||
// NewCreateInstanceRequestPayload instantiates a new CreateInstanceRequestPayload 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 NewCreateInstanceRequestPayload(acl CreateInstanceRequestPayloadGetAclArgType, backupSchedule CreateInstanceRequestPayloadGetBackupScheduleArgType, flavorId CreateInstanceRequestPayloadGetFlavorIdArgType, name CreateInstanceRequestPayloadGetNameArgType, replicas CreateInstanceRequestPayloadGetReplicasArgType, retentionDays CreateInstanceRequestPayloadGetRetentionDaysArgType, storage CreateInstanceRequestPayloadGetStorageArgType, version CreateInstanceRequestPayloadGetVersionArgType) *CreateInstanceRequestPayload {
|
||||
this := CreateInstanceRequestPayload{}
|
||||
setCreateInstanceRequestPayloadGetAclAttributeType(&this.Acl, acl)
|
||||
setCreateInstanceRequestPayloadGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule)
|
||||
setCreateInstanceRequestPayloadGetFlavorIdAttributeType(&this.FlavorId, flavorId)
|
||||
setCreateInstanceRequestPayloadGetNameAttributeType(&this.Name, name)
|
||||
setCreateInstanceRequestPayloadGetReplicasAttributeType(&this.Replicas, replicas)
|
||||
setCreateInstanceRequestPayloadGetRetentionDaysAttributeType(&this.RetentionDays, retentionDays)
|
||||
setCreateInstanceRequestPayloadGetStorageAttributeType(&this.Storage, storage)
|
||||
setCreateInstanceRequestPayloadGetVersionAttributeType(&this.Version, version)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateInstanceRequestPayloadWithDefaults instantiates a new CreateInstanceRequestPayload 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 NewCreateInstanceRequestPayloadWithDefaults() *CreateInstanceRequestPayload {
|
||||
this := CreateInstanceRequestPayload{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAcl returns the Acl field value
|
||||
func (o *CreateInstanceRequestPayload) GetAcl() (ret CreateInstanceRequestPayloadGetAclRetType) {
|
||||
ret, _ = o.GetAclOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetAclOk returns a tuple with the Acl field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetAclOk() (ret CreateInstanceRequestPayloadGetAclRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetAclAttributeTypeOk(o.Acl)
|
||||
}
|
||||
|
||||
// SetAcl sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetAcl(v CreateInstanceRequestPayloadGetAclRetType) {
|
||||
setCreateInstanceRequestPayloadGetAclAttributeType(&o.Acl, v)
|
||||
}
|
||||
|
||||
// GetBackupSchedule returns the BackupSchedule field value
|
||||
func (o *CreateInstanceRequestPayload) GetBackupSchedule() (ret CreateInstanceRequestPayloadGetBackupScheduleRetType) {
|
||||
ret, _ = o.GetBackupScheduleOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetBackupScheduleOk returns a tuple with the BackupSchedule field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetBackupScheduleOk() (ret CreateInstanceRequestPayloadGetBackupScheduleRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule)
|
||||
}
|
||||
|
||||
// SetBackupSchedule sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetBackupSchedule(v CreateInstanceRequestPayloadGetBackupScheduleRetType) {
|
||||
setCreateInstanceRequestPayloadGetBackupScheduleAttributeType(&o.BackupSchedule, v)
|
||||
}
|
||||
|
||||
// GetEncryption returns the Encryption field value if set, zero value otherwise.
|
||||
func (o *CreateInstanceRequestPayload) GetEncryption() (res CreateInstanceRequestPayloadGetEncryptionRetType) {
|
||||
res, _ = o.GetEncryptionOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncryptionOk returns a tuple with the Encryption field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetEncryptionOk() (ret CreateInstanceRequestPayloadGetEncryptionRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetEncryptionAttributeTypeOk(o.Encryption)
|
||||
}
|
||||
|
||||
// HasEncryption returns a boolean if a field has been set.
|
||||
func (o *CreateInstanceRequestPayload) HasEncryption() bool {
|
||||
_, ok := o.GetEncryptionOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetEncryption gets a reference to the given InstanceEncryption and assigns it to the Encryption field.
|
||||
func (o *CreateInstanceRequestPayload) SetEncryption(v CreateInstanceRequestPayloadGetEncryptionRetType) {
|
||||
setCreateInstanceRequestPayloadGetEncryptionAttributeType(&o.Encryption, v)
|
||||
}
|
||||
|
||||
// GetFlavorId returns the FlavorId field value
|
||||
func (o *CreateInstanceRequestPayload) GetFlavorId() (ret CreateInstanceRequestPayloadGetFlavorIdRetType) {
|
||||
ret, _ = o.GetFlavorIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetFlavorIdOk returns a tuple with the FlavorId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetFlavorIdOk() (ret CreateInstanceRequestPayloadGetFlavorIdRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetFlavorIdAttributeTypeOk(o.FlavorId)
|
||||
}
|
||||
|
||||
// SetFlavorId sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetFlavorId(v CreateInstanceRequestPayloadGetFlavorIdRetType) {
|
||||
setCreateInstanceRequestPayloadGetFlavorIdAttributeType(&o.FlavorId, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *CreateInstanceRequestPayload) GetName() (ret CreateInstanceRequestPayloadGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetNameOk() (ret CreateInstanceRequestPayloadGetNameRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetName(v CreateInstanceRequestPayloadGetNameRetType) {
|
||||
setCreateInstanceRequestPayloadGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetNetwork returns the Network field value if set, zero value otherwise.
|
||||
func (o *CreateInstanceRequestPayload) GetNetwork() (res CreateInstanceRequestPayloadGetNetworkRetType) {
|
||||
res, _ = o.GetNetworkOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetNetworkOk() (ret CreateInstanceRequestPayloadGetNetworkRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetNetworkAttributeTypeOk(o.Network)
|
||||
}
|
||||
|
||||
// HasNetwork returns a boolean if a field has been set.
|
||||
func (o *CreateInstanceRequestPayload) HasNetwork() bool {
|
||||
_, ok := o.GetNetworkOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetNetwork gets a reference to the given InstanceNetwork and assigns it to the Network field.
|
||||
func (o *CreateInstanceRequestPayload) SetNetwork(v CreateInstanceRequestPayloadGetNetworkRetType) {
|
||||
setCreateInstanceRequestPayloadGetNetworkAttributeType(&o.Network, v)
|
||||
}
|
||||
|
||||
// GetReplicas returns the Replicas field value
|
||||
func (o *CreateInstanceRequestPayload) GetReplicas() (ret CreateInstanceRequestPayloadGetReplicasRetType) {
|
||||
ret, _ = o.GetReplicasOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetReplicasOk returns a tuple with the Replicas field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetReplicasOk() (ret CreateInstanceRequestPayloadGetReplicasRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetReplicasAttributeTypeOk(o.Replicas)
|
||||
}
|
||||
|
||||
// SetReplicas sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetReplicas(v CreateInstanceRequestPayloadGetReplicasRetType) {
|
||||
setCreateInstanceRequestPayloadGetReplicasAttributeType(&o.Replicas, v)
|
||||
}
|
||||
|
||||
// GetRetentionDays returns the RetentionDays field value
|
||||
func (o *CreateInstanceRequestPayload) GetRetentionDays() (ret CreateInstanceRequestPayloadGetRetentionDaysRetType) {
|
||||
ret, _ = o.GetRetentionDaysOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRetentionDaysOk returns a tuple with the RetentionDays field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetRetentionDaysOk() (ret CreateInstanceRequestPayloadGetRetentionDaysRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays)
|
||||
}
|
||||
|
||||
// SetRetentionDays sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetRetentionDays(v CreateInstanceRequestPayloadGetRetentionDaysRetType) {
|
||||
setCreateInstanceRequestPayloadGetRetentionDaysAttributeType(&o.RetentionDays, v)
|
||||
}
|
||||
|
||||
// GetStorage returns the Storage field value
|
||||
func (o *CreateInstanceRequestPayload) GetStorage() (ret CreateInstanceRequestPayloadGetStorageRetType) {
|
||||
ret, _ = o.GetStorageOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStorageOk returns a tuple with the Storage field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetStorageOk() (ret CreateInstanceRequestPayloadGetStorageRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetStorageAttributeTypeOk(o.Storage)
|
||||
}
|
||||
|
||||
// SetStorage sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetStorage(v CreateInstanceRequestPayloadGetStorageRetType) {
|
||||
setCreateInstanceRequestPayloadGetStorageAttributeType(&o.Storage, v)
|
||||
}
|
||||
|
||||
// GetVersion returns the Version field value
|
||||
func (o *CreateInstanceRequestPayload) GetVersion() (ret CreateInstanceRequestPayloadGetVersionRetType) {
|
||||
ret, _ = o.GetVersionOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetVersionOk returns a tuple with the Version field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceRequestPayload) GetVersionOk() (ret CreateInstanceRequestPayloadGetVersionRetType, ok bool) {
|
||||
return getCreateInstanceRequestPayloadGetVersionAttributeTypeOk(o.Version)
|
||||
}
|
||||
|
||||
// SetVersion sets field value
|
||||
func (o *CreateInstanceRequestPayload) SetVersion(v CreateInstanceRequestPayloadGetVersionRetType) {
|
||||
setCreateInstanceRequestPayloadGetVersionAttributeType(&o.Version, v)
|
||||
}
|
||||
|
||||
func (o CreateInstanceRequestPayload) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetAclAttributeTypeOk(o.Acl); ok {
|
||||
toSerialize["Acl"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok {
|
||||
toSerialize["BackupSchedule"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetEncryptionAttributeTypeOk(o.Encryption); ok {
|
||||
toSerialize["Encryption"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetFlavorIdAttributeTypeOk(o.FlavorId); ok {
|
||||
toSerialize["FlavorId"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetNetworkAttributeTypeOk(o.Network); ok {
|
||||
toSerialize["Network"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetReplicasAttributeTypeOk(o.Replicas); ok {
|
||||
toSerialize["Replicas"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays); ok {
|
||||
toSerialize["RetentionDays"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetStorageAttributeTypeOk(o.Storage); ok {
|
||||
toSerialize["Storage"] = val
|
||||
}
|
||||
if val, ok := getCreateInstanceRequestPayloadGetVersionAttributeTypeOk(o.Version); ok {
|
||||
toSerialize["Version"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableCreateInstanceRequestPayload struct {
|
||||
value *CreateInstanceRequestPayload
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateInstanceRequestPayload) Get() *CreateInstanceRequestPayload {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateInstanceRequestPayload) Set(val *CreateInstanceRequestPayload) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateInstanceRequestPayload) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateInstanceRequestPayload) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateInstanceRequestPayload(val *CreateInstanceRequestPayload) *NullableCreateInstanceRequestPayload {
|
||||
return &NullableCreateInstanceRequestPayload{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateInstanceRequestPayload) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateInstanceRequestPayload) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
127
pkg/postgresflexalpha/model_create_instance_response.go
Normal file
127
pkg/postgresflexalpha/model_create_instance_response.go
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the CreateInstanceResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &CreateInstanceResponse{}
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateInstanceResponseGetIdAttributeType = *string
|
||||
|
||||
func getCreateInstanceResponseGetIdAttributeTypeOk(arg CreateInstanceResponseGetIdAttributeType) (ret CreateInstanceResponseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateInstanceResponseGetIdAttributeType(arg *CreateInstanceResponseGetIdAttributeType, val CreateInstanceResponseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateInstanceResponseGetIdArgType = string
|
||||
type CreateInstanceResponseGetIdRetType = string
|
||||
|
||||
// CreateInstanceResponse struct for CreateInstanceResponse
|
||||
type CreateInstanceResponse struct {
|
||||
// The ID of the instance.
|
||||
// REQUIRED
|
||||
Id CreateInstanceResponseGetIdAttributeType `json:"id" required:"true"`
|
||||
}
|
||||
|
||||
type _CreateInstanceResponse CreateInstanceResponse
|
||||
|
||||
// NewCreateInstanceResponse instantiates a new CreateInstanceResponse 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 NewCreateInstanceResponse(id CreateInstanceResponseGetIdArgType) *CreateInstanceResponse {
|
||||
this := CreateInstanceResponse{}
|
||||
setCreateInstanceResponseGetIdAttributeType(&this.Id, id)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateInstanceResponseWithDefaults instantiates a new CreateInstanceResponse 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 NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse {
|
||||
this := CreateInstanceResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *CreateInstanceResponse) GetId() (ret CreateInstanceResponseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateInstanceResponse) GetIdOk() (ret CreateInstanceResponseGetIdRetType, ok bool) {
|
||||
return getCreateInstanceResponseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *CreateInstanceResponse) SetId(v CreateInstanceResponseGetIdRetType) {
|
||||
setCreateInstanceResponseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getCreateInstanceResponseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableCreateInstanceResponse struct {
|
||||
value *CreateInstanceResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateInstanceResponse) Get() *CreateInstanceResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateInstanceResponse) Set(val *CreateInstanceResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateInstanceResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateInstanceResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateInstanceResponse(val *CreateInstanceResponse) *NullableCreateInstanceResponse {
|
||||
return &NullableCreateInstanceResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateInstanceResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateInstanceResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_create_instance_response_test.go
Normal file
11
pkg/postgresflexalpha/model_create_instance_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
175
pkg/postgresflexalpha/model_create_user_request_payload.go
Normal file
175
pkg/postgresflexalpha/model_create_user_request_payload.go
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the CreateUserRequestPayload type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &CreateUserRequestPayload{}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateUserRequestPayloadGetNameAttributeType = *string
|
||||
|
||||
func getCreateUserRequestPayloadGetNameAttributeTypeOk(arg CreateUserRequestPayloadGetNameAttributeType) (ret CreateUserRequestPayloadGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateUserRequestPayloadGetNameAttributeType(arg *CreateUserRequestPayloadGetNameAttributeType, val CreateUserRequestPayloadGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateUserRequestPayloadGetNameArgType = string
|
||||
type CreateUserRequestPayloadGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for roles
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type CreateUserRequestPayloadGetRolesAttributeType = *[]UserRole
|
||||
type CreateUserRequestPayloadGetRolesArgType = []UserRole
|
||||
type CreateUserRequestPayloadGetRolesRetType = []UserRole
|
||||
|
||||
func getCreateUserRequestPayloadGetRolesAttributeTypeOk(arg CreateUserRequestPayloadGetRolesAttributeType) (ret CreateUserRequestPayloadGetRolesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateUserRequestPayloadGetRolesAttributeType(arg *CreateUserRequestPayloadGetRolesAttributeType, val CreateUserRequestPayloadGetRolesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// CreateUserRequestPayload struct for CreateUserRequestPayload
|
||||
type CreateUserRequestPayload struct {
|
||||
// The name of the user.
|
||||
// REQUIRED
|
||||
Name CreateUserRequestPayloadGetNameAttributeType `json:"name" required:"true"`
|
||||
// A list containing the user roles for the instance.
|
||||
Roles CreateUserRequestPayloadGetRolesAttributeType `json:"roles,omitempty"`
|
||||
}
|
||||
|
||||
type _CreateUserRequestPayload CreateUserRequestPayload
|
||||
|
||||
// NewCreateUserRequestPayload instantiates a new CreateUserRequestPayload 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 NewCreateUserRequestPayload(name CreateUserRequestPayloadGetNameArgType) *CreateUserRequestPayload {
|
||||
this := CreateUserRequestPayload{}
|
||||
setCreateUserRequestPayloadGetNameAttributeType(&this.Name, name)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateUserRequestPayloadWithDefaults instantiates a new CreateUserRequestPayload 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 NewCreateUserRequestPayloadWithDefaults() *CreateUserRequestPayload {
|
||||
this := CreateUserRequestPayload{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *CreateUserRequestPayload) GetName() (ret CreateUserRequestPayloadGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateUserRequestPayload) GetNameOk() (ret CreateUserRequestPayloadGetNameRetType, ok bool) {
|
||||
return getCreateUserRequestPayloadGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *CreateUserRequestPayload) SetName(v CreateUserRequestPayloadGetNameRetType) {
|
||||
setCreateUserRequestPayloadGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetRoles returns the Roles field value if set, zero value otherwise.
|
||||
func (o *CreateUserRequestPayload) GetRoles() (res CreateUserRequestPayloadGetRolesRetType) {
|
||||
res, _ = o.GetRolesOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateUserRequestPayload) GetRolesOk() (ret CreateUserRequestPayloadGetRolesRetType, ok bool) {
|
||||
return getCreateUserRequestPayloadGetRolesAttributeTypeOk(o.Roles)
|
||||
}
|
||||
|
||||
// HasRoles returns a boolean if a field has been set.
|
||||
func (o *CreateUserRequestPayload) HasRoles() bool {
|
||||
_, ok := o.GetRolesOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetRoles gets a reference to the given []UserRole and assigns it to the Roles field.
|
||||
func (o *CreateUserRequestPayload) SetRoles(v CreateUserRequestPayloadGetRolesRetType) {
|
||||
setCreateUserRequestPayloadGetRolesAttributeType(&o.Roles, v)
|
||||
}
|
||||
|
||||
func (o CreateUserRequestPayload) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getCreateUserRequestPayloadGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getCreateUserRequestPayloadGetRolesAttributeTypeOk(o.Roles); ok {
|
||||
toSerialize["Roles"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableCreateUserRequestPayload struct {
|
||||
value *CreateUserRequestPayload
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateUserRequestPayload) Get() *CreateUserRequestPayload {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateUserRequestPayload) Set(val *CreateUserRequestPayload) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateUserRequestPayload) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateUserRequestPayload) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateUserRequestPayload(val *CreateUserRequestPayload) *NullableCreateUserRequestPayload {
|
||||
return &NullableCreateUserRequestPayload{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateUserRequestPayload) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateUserRequestPayload) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
306
pkg/postgresflexalpha/model_create_user_response.go
Normal file
306
pkg/postgresflexalpha/model_create_user_response.go
Normal file
|
|
@ -0,0 +1,306 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the CreateUserResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &CreateUserResponse{}
|
||||
|
||||
/*
|
||||
types and functions for connectionString
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateUserResponseGetConnectionStringAttributeType = *string
|
||||
|
||||
func getCreateUserResponseGetConnectionStringAttributeTypeOk(arg CreateUserResponseGetConnectionStringAttributeType) (ret CreateUserResponseGetConnectionStringRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateUserResponseGetConnectionStringAttributeType(arg *CreateUserResponseGetConnectionStringAttributeType, val CreateUserResponseGetConnectionStringRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateUserResponseGetConnectionStringArgType = string
|
||||
type CreateUserResponseGetConnectionStringRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type CreateUserResponseGetIdAttributeType = *int64
|
||||
type CreateUserResponseGetIdArgType = int64
|
||||
type CreateUserResponseGetIdRetType = int64
|
||||
|
||||
func getCreateUserResponseGetIdAttributeTypeOk(arg CreateUserResponseGetIdAttributeType) (ret CreateUserResponseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateUserResponseGetIdAttributeType(arg *CreateUserResponseGetIdAttributeType, val CreateUserResponseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateUserResponseGetNameAttributeType = *string
|
||||
|
||||
func getCreateUserResponseGetNameAttributeTypeOk(arg CreateUserResponseGetNameAttributeType) (ret CreateUserResponseGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateUserResponseGetNameAttributeType(arg *CreateUserResponseGetNameAttributeType, val CreateUserResponseGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateUserResponseGetNameArgType = string
|
||||
type CreateUserResponseGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for password
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateUserResponseGetPasswordAttributeType = *string
|
||||
|
||||
func getCreateUserResponseGetPasswordAttributeTypeOk(arg CreateUserResponseGetPasswordAttributeType) (ret CreateUserResponseGetPasswordRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateUserResponseGetPasswordAttributeType(arg *CreateUserResponseGetPasswordAttributeType, val CreateUserResponseGetPasswordRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateUserResponseGetPasswordArgType = string
|
||||
type CreateUserResponseGetPasswordRetType = string
|
||||
|
||||
/*
|
||||
types and functions for status
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type CreateUserResponseGetStatusAttributeType = *string
|
||||
|
||||
func getCreateUserResponseGetStatusAttributeTypeOk(arg CreateUserResponseGetStatusAttributeType) (ret CreateUserResponseGetStatusRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setCreateUserResponseGetStatusAttributeType(arg *CreateUserResponseGetStatusAttributeType, val CreateUserResponseGetStatusRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type CreateUserResponseGetStatusArgType = string
|
||||
type CreateUserResponseGetStatusRetType = string
|
||||
|
||||
// CreateUserResponse struct for CreateUserResponse
|
||||
type CreateUserResponse struct {
|
||||
// The connection string for the user to the instance.
|
||||
// REQUIRED
|
||||
ConnectionString CreateUserResponseGetConnectionStringAttributeType `json:"connectionString" required:"true"`
|
||||
// The ID of the user.
|
||||
// REQUIRED
|
||||
Id CreateUserResponseGetIdAttributeType `json:"id" required:"true"`
|
||||
// The name of the user.
|
||||
// REQUIRED
|
||||
Name CreateUserResponseGetNameAttributeType `json:"name" required:"true"`
|
||||
// The password for the user.
|
||||
// REQUIRED
|
||||
Password CreateUserResponseGetPasswordAttributeType `json:"password" required:"true"`
|
||||
// The current status of the user.
|
||||
// REQUIRED
|
||||
Status CreateUserResponseGetStatusAttributeType `json:"status" required:"true"`
|
||||
}
|
||||
|
||||
type _CreateUserResponse CreateUserResponse
|
||||
|
||||
// NewCreateUserResponse instantiates a new CreateUserResponse 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 NewCreateUserResponse(connectionString CreateUserResponseGetConnectionStringArgType, id CreateUserResponseGetIdArgType, name CreateUserResponseGetNameArgType, password CreateUserResponseGetPasswordArgType, status CreateUserResponseGetStatusArgType) *CreateUserResponse {
|
||||
this := CreateUserResponse{}
|
||||
setCreateUserResponseGetConnectionStringAttributeType(&this.ConnectionString, connectionString)
|
||||
setCreateUserResponseGetIdAttributeType(&this.Id, id)
|
||||
setCreateUserResponseGetNameAttributeType(&this.Name, name)
|
||||
setCreateUserResponseGetPasswordAttributeType(&this.Password, password)
|
||||
setCreateUserResponseGetStatusAttributeType(&this.Status, status)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewCreateUserResponseWithDefaults instantiates a new CreateUserResponse 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 NewCreateUserResponseWithDefaults() *CreateUserResponse {
|
||||
this := CreateUserResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetConnectionString returns the ConnectionString field value
|
||||
func (o *CreateUserResponse) GetConnectionString() (ret CreateUserResponseGetConnectionStringRetType) {
|
||||
ret, _ = o.GetConnectionStringOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetConnectionStringOk returns a tuple with the ConnectionString field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateUserResponse) GetConnectionStringOk() (ret CreateUserResponseGetConnectionStringRetType, ok bool) {
|
||||
return getCreateUserResponseGetConnectionStringAttributeTypeOk(o.ConnectionString)
|
||||
}
|
||||
|
||||
// SetConnectionString sets field value
|
||||
func (o *CreateUserResponse) SetConnectionString(v CreateUserResponseGetConnectionStringRetType) {
|
||||
setCreateUserResponseGetConnectionStringAttributeType(&o.ConnectionString, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *CreateUserResponse) GetId() (ret CreateUserResponseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateUserResponse) GetIdOk() (ret CreateUserResponseGetIdRetType, ok bool) {
|
||||
return getCreateUserResponseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *CreateUserResponse) SetId(v CreateUserResponseGetIdRetType) {
|
||||
setCreateUserResponseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *CreateUserResponse) GetName() (ret CreateUserResponseGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateUserResponse) GetNameOk() (ret CreateUserResponseGetNameRetType, ok bool) {
|
||||
return getCreateUserResponseGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *CreateUserResponse) SetName(v CreateUserResponseGetNameRetType) {
|
||||
setCreateUserResponseGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetPassword returns the Password field value
|
||||
func (o *CreateUserResponse) GetPassword() (ret CreateUserResponseGetPasswordRetType) {
|
||||
ret, _ = o.GetPasswordOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPasswordOk returns a tuple with the Password field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateUserResponse) GetPasswordOk() (ret CreateUserResponseGetPasswordRetType, ok bool) {
|
||||
return getCreateUserResponseGetPasswordAttributeTypeOk(o.Password)
|
||||
}
|
||||
|
||||
// SetPassword sets field value
|
||||
func (o *CreateUserResponse) SetPassword(v CreateUserResponseGetPasswordRetType) {
|
||||
setCreateUserResponseGetPasswordAttributeType(&o.Password, v)
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value
|
||||
func (o *CreateUserResponse) GetStatus() (ret CreateUserResponseGetStatusRetType) {
|
||||
ret, _ = o.GetStatusOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *CreateUserResponse) GetStatusOk() (ret CreateUserResponseGetStatusRetType, ok bool) {
|
||||
return getCreateUserResponseGetStatusAttributeTypeOk(o.Status)
|
||||
}
|
||||
|
||||
// SetStatus sets field value
|
||||
func (o *CreateUserResponse) SetStatus(v CreateUserResponseGetStatusRetType) {
|
||||
setCreateUserResponseGetStatusAttributeType(&o.Status, v)
|
||||
}
|
||||
|
||||
func (o CreateUserResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getCreateUserResponseGetConnectionStringAttributeTypeOk(o.ConnectionString); ok {
|
||||
toSerialize["ConnectionString"] = val
|
||||
}
|
||||
if val, ok := getCreateUserResponseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getCreateUserResponseGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getCreateUserResponseGetPasswordAttributeTypeOk(o.Password); ok {
|
||||
toSerialize["Password"] = val
|
||||
}
|
||||
if val, ok := getCreateUserResponseGetStatusAttributeTypeOk(o.Status); ok {
|
||||
toSerialize["Status"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableCreateUserResponse struct {
|
||||
value *CreateUserResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableCreateUserResponse) Get() *CreateUserResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableCreateUserResponse) Set(val *CreateUserResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableCreateUserResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableCreateUserResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableCreateUserResponse(val *CreateUserResponse) *NullableCreateUserResponse {
|
||||
return &NullableCreateUserResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableCreateUserResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableCreateUserResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_create_user_response_test.go
Normal file
11
pkg/postgresflexalpha/model_create_user_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
171
pkg/postgresflexalpha/model_database_roles.go
Normal file
171
pkg/postgresflexalpha/model_database_roles.go
Normal file
|
|
@ -0,0 +1,171 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the DatabaseRoles type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &DatabaseRoles{}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type DatabaseRolesGetNameAttributeType = *string
|
||||
|
||||
func getDatabaseRolesGetNameAttributeTypeOk(arg DatabaseRolesGetNameAttributeType) (ret DatabaseRolesGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDatabaseRolesGetNameAttributeType(arg *DatabaseRolesGetNameAttributeType, val DatabaseRolesGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type DatabaseRolesGetNameArgType = string
|
||||
type DatabaseRolesGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for roles
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type DatabaseRolesGetRolesAttributeType = *[]string
|
||||
type DatabaseRolesGetRolesArgType = []string
|
||||
type DatabaseRolesGetRolesRetType = []string
|
||||
|
||||
func getDatabaseRolesGetRolesAttributeTypeOk(arg DatabaseRolesGetRolesAttributeType) (ret DatabaseRolesGetRolesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setDatabaseRolesGetRolesAttributeType(arg *DatabaseRolesGetRolesAttributeType, val DatabaseRolesGetRolesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// DatabaseRoles The name and the roles for a database for a user.
|
||||
type DatabaseRoles struct {
|
||||
// The name of the database.
|
||||
// REQUIRED
|
||||
Name DatabaseRolesGetNameAttributeType `json:"name" required:"true"`
|
||||
// The name and the roles for a database
|
||||
// REQUIRED
|
||||
Roles DatabaseRolesGetRolesAttributeType `json:"roles" required:"true"`
|
||||
}
|
||||
|
||||
type _DatabaseRoles DatabaseRoles
|
||||
|
||||
// NewDatabaseRoles instantiates a new DatabaseRoles 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 NewDatabaseRoles(name DatabaseRolesGetNameArgType, roles DatabaseRolesGetRolesArgType) *DatabaseRoles {
|
||||
this := DatabaseRoles{}
|
||||
setDatabaseRolesGetNameAttributeType(&this.Name, name)
|
||||
setDatabaseRolesGetRolesAttributeType(&this.Roles, roles)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewDatabaseRolesWithDefaults instantiates a new DatabaseRoles 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 NewDatabaseRolesWithDefaults() *DatabaseRoles {
|
||||
this := DatabaseRoles{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *DatabaseRoles) GetName() (ret DatabaseRolesGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DatabaseRoles) GetNameOk() (ret DatabaseRolesGetNameRetType, ok bool) {
|
||||
return getDatabaseRolesGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *DatabaseRoles) SetName(v DatabaseRolesGetNameRetType) {
|
||||
setDatabaseRolesGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetRoles returns the Roles field value
|
||||
func (o *DatabaseRoles) GetRoles() (ret DatabaseRolesGetRolesRetType) {
|
||||
ret, _ = o.GetRolesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRolesOk returns a tuple with the Roles field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *DatabaseRoles) GetRolesOk() (ret DatabaseRolesGetRolesRetType, ok bool) {
|
||||
return getDatabaseRolesGetRolesAttributeTypeOk(o.Roles)
|
||||
}
|
||||
|
||||
// SetRoles sets field value
|
||||
func (o *DatabaseRoles) SetRoles(v DatabaseRolesGetRolesRetType) {
|
||||
setDatabaseRolesGetRolesAttributeType(&o.Roles, v)
|
||||
}
|
||||
|
||||
func (o DatabaseRoles) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getDatabaseRolesGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getDatabaseRolesGetRolesAttributeTypeOk(o.Roles); ok {
|
||||
toSerialize["Roles"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableDatabaseRoles struct {
|
||||
value *DatabaseRoles
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDatabaseRoles) Get() *DatabaseRoles {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseRoles) Set(val *DatabaseRoles) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDatabaseRoles) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseRoles) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDatabaseRoles(val *DatabaseRoles) *NullableDatabaseRoles {
|
||||
return &NullableDatabaseRoles{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDatabaseRoles) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseRoles) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_database_roles_test.go
Normal file
11
pkg/postgresflexalpha/model_database_roles_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
131
pkg/postgresflexalpha/model_database_sort.go
Normal file
131
pkg/postgresflexalpha/model_database_sort.go
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// DatabaseSort the model 'DatabaseSort'
|
||||
type DatabaseSort string
|
||||
|
||||
// List of database.sort
|
||||
const (
|
||||
DATABASESORT_CREATED_AT_DESC DatabaseSort = "created_at.desc"
|
||||
DATABASESORT_CREATED_AT_ASC DatabaseSort = "created_at.asc"
|
||||
DATABASESORT_DATABASE_ID_DESC DatabaseSort = "database_id.desc"
|
||||
DATABASESORT_DATABASE_ID_ASC DatabaseSort = "database_id.asc"
|
||||
DATABASESORT_DATABASE_NAME_DESC DatabaseSort = "database_name.desc"
|
||||
DATABASESORT_DATABASE_NAME_ASC DatabaseSort = "database_name.asc"
|
||||
DATABASESORT_DATABASE_OWNER_DESC DatabaseSort = "database_owner.desc"
|
||||
DATABASESORT_DATABASE_OWNER_ASC DatabaseSort = "database_owner.asc"
|
||||
DATABASESORT_INDEX_ASC DatabaseSort = "index.asc"
|
||||
DATABASESORT_INDEX_DESC DatabaseSort = "index.desc"
|
||||
)
|
||||
|
||||
// All allowed values of DatabaseSort enum
|
||||
var AllowedDatabaseSortEnumValues = []DatabaseSort{
|
||||
"created_at.desc",
|
||||
"created_at.asc",
|
||||
"database_id.desc",
|
||||
"database_id.asc",
|
||||
"database_name.desc",
|
||||
"database_name.asc",
|
||||
"database_owner.desc",
|
||||
"database_owner.asc",
|
||||
"index.asc",
|
||||
"index.desc",
|
||||
}
|
||||
|
||||
func (v *DatabaseSort) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Allow unmarshalling zero value for testing purposes
|
||||
var zeroValue string
|
||||
if value == zeroValue {
|
||||
return nil
|
||||
}
|
||||
enumTypeValue := DatabaseSort(value)
|
||||
for _, existing := range AllowedDatabaseSortEnumValues {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid DatabaseSort", value)
|
||||
}
|
||||
|
||||
// NewDatabaseSortFromValue returns a pointer to a valid DatabaseSort
|
||||
// for the value passed as argument, or an error if the value passed is not allowed by the enum
|
||||
func NewDatabaseSortFromValue(v string) (*DatabaseSort, error) {
|
||||
ev := DatabaseSort(v)
|
||||
if ev.IsValid() {
|
||||
return &ev, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("invalid value '%v' for DatabaseSort: valid values are %v", v, AllowedDatabaseSortEnumValues)
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid return true if the value is valid for the enum, false otherwise
|
||||
func (v DatabaseSort) IsValid() bool {
|
||||
for _, existing := range AllowedDatabaseSortEnumValues {
|
||||
if existing == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Ptr returns reference to database.sort value
|
||||
func (v DatabaseSort) Ptr() *DatabaseSort {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableDatabaseSort struct {
|
||||
value *DatabaseSort
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableDatabaseSort) Get() *DatabaseSort {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseSort) Set(val *DatabaseSort) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableDatabaseSort) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseSort) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableDatabaseSort(val *DatabaseSort) *NullableDatabaseSort {
|
||||
return &NullableDatabaseSort{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableDatabaseSort) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableDatabaseSort) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_database_sort_test.go
Normal file
11
pkg/postgresflexalpha/model_database_sort_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
262
pkg/postgresflexalpha/model_error.go
Normal file
262
pkg/postgresflexalpha/model_error.go
Normal file
|
|
@ -0,0 +1,262 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the Error type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &Error{}
|
||||
|
||||
/*
|
||||
types and functions for code
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type ErrorGetCodeAttributeType = *int64
|
||||
type ErrorGetCodeArgType = int64
|
||||
type ErrorGetCodeRetType = int64
|
||||
|
||||
func getErrorGetCodeAttributeTypeOk(arg ErrorGetCodeAttributeType) (ret ErrorGetCodeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setErrorGetCodeAttributeType(arg *ErrorGetCodeAttributeType, val ErrorGetCodeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for message
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ErrorGetMessageAttributeType = *string
|
||||
|
||||
func getErrorGetMessageAttributeTypeOk(arg ErrorGetMessageAttributeType) (ret ErrorGetMessageRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setErrorGetMessageAttributeType(arg *ErrorGetMessageAttributeType, val ErrorGetMessageRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ErrorGetMessageArgType = string
|
||||
type ErrorGetMessageRetType = string
|
||||
|
||||
/*
|
||||
types and functions for traceId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ErrorGetTraceIdAttributeType = *string
|
||||
|
||||
func getErrorGetTraceIdAttributeTypeOk(arg ErrorGetTraceIdAttributeType) (ret ErrorGetTraceIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setErrorGetTraceIdAttributeType(arg *ErrorGetTraceIdAttributeType, val ErrorGetTraceIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ErrorGetTraceIdArgType = string
|
||||
type ErrorGetTraceIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for type
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ErrorGetTypeAttributeType = *string
|
||||
|
||||
func getErrorGetTypeAttributeTypeOk(arg ErrorGetTypeAttributeType) (ret ErrorGetTypeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setErrorGetTypeAttributeType(arg *ErrorGetTypeAttributeType, val ErrorGetTypeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ErrorGetTypeArgType = string
|
||||
type ErrorGetTypeRetType = string
|
||||
|
||||
// Error struct for Error
|
||||
type Error struct {
|
||||
// The http error code of the error.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
Code ErrorGetCodeAttributeType `json:"code" required:"true"`
|
||||
// More detailed information about the error.
|
||||
// REQUIRED
|
||||
Message ErrorGetMessageAttributeType `json:"message" required:"true"`
|
||||
// The trace id of the request.
|
||||
// REQUIRED
|
||||
TraceId ErrorGetTraceIdAttributeType `json:"traceId" required:"true"`
|
||||
// Describes in which state the api was when the error happened.
|
||||
// REQUIRED
|
||||
Type ErrorGetTypeAttributeType `json:"type" required:"true"`
|
||||
}
|
||||
|
||||
type _Error Error
|
||||
|
||||
// NewError instantiates a new Error 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 NewError(code ErrorGetCodeArgType, message ErrorGetMessageArgType, traceId ErrorGetTraceIdArgType, types ErrorGetTypeArgType) *Error {
|
||||
this := Error{}
|
||||
setErrorGetCodeAttributeType(&this.Code, code)
|
||||
setErrorGetMessageAttributeType(&this.Message, message)
|
||||
setErrorGetTraceIdAttributeType(&this.TraceId, traceId)
|
||||
setErrorGetTypeAttributeType(&this.Type, types)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error {
|
||||
this := Error{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCode returns the Code field value
|
||||
func (o *Error) GetCode() (ret ErrorGetCodeRetType) {
|
||||
ret, _ = o.GetCodeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCodeOk returns a tuple with the Code field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Error) GetCodeOk() (ret ErrorGetCodeRetType, ok bool) {
|
||||
return getErrorGetCodeAttributeTypeOk(o.Code)
|
||||
}
|
||||
|
||||
// SetCode sets field value
|
||||
func (o *Error) SetCode(v ErrorGetCodeRetType) {
|
||||
setErrorGetCodeAttributeType(&o.Code, v)
|
||||
}
|
||||
|
||||
// GetMessage returns the Message field value
|
||||
func (o *Error) GetMessage() (ret ErrorGetMessageRetType) {
|
||||
ret, _ = o.GetMessageOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMessageOk returns a tuple with the Message field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Error) GetMessageOk() (ret ErrorGetMessageRetType, ok bool) {
|
||||
return getErrorGetMessageAttributeTypeOk(o.Message)
|
||||
}
|
||||
|
||||
// SetMessage sets field value
|
||||
func (o *Error) SetMessage(v ErrorGetMessageRetType) {
|
||||
setErrorGetMessageAttributeType(&o.Message, v)
|
||||
}
|
||||
|
||||
// GetTraceId returns the TraceId field value
|
||||
func (o *Error) GetTraceId() (ret ErrorGetTraceIdRetType) {
|
||||
ret, _ = o.GetTraceIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetTraceIdOk returns a tuple with the TraceId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Error) GetTraceIdOk() (ret ErrorGetTraceIdRetType, ok bool) {
|
||||
return getErrorGetTraceIdAttributeTypeOk(o.TraceId)
|
||||
}
|
||||
|
||||
// SetTraceId sets field value
|
||||
func (o *Error) SetTraceId(v ErrorGetTraceIdRetType) {
|
||||
setErrorGetTraceIdAttributeType(&o.TraceId, v)
|
||||
}
|
||||
|
||||
// GetType returns the Type field value
|
||||
func (o *Error) GetType() (ret ErrorGetTypeRetType) {
|
||||
ret, _ = o.GetTypeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetTypeOk returns a tuple with the Type field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Error) GetTypeOk() (ret ErrorGetTypeRetType, ok bool) {
|
||||
return getErrorGetTypeAttributeTypeOk(o.Type)
|
||||
}
|
||||
|
||||
// SetType sets field value
|
||||
func (o *Error) SetType(v ErrorGetTypeRetType) {
|
||||
setErrorGetTypeAttributeType(&o.Type, v)
|
||||
}
|
||||
|
||||
func (o Error) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getErrorGetCodeAttributeTypeOk(o.Code); ok {
|
||||
toSerialize["Code"] = val
|
||||
}
|
||||
if val, ok := getErrorGetMessageAttributeTypeOk(o.Message); ok {
|
||||
toSerialize["Message"] = val
|
||||
}
|
||||
if val, ok := getErrorGetTraceIdAttributeTypeOk(o.TraceId); ok {
|
||||
toSerialize["TraceId"] = val
|
||||
}
|
||||
if val, ok := getErrorGetTypeAttributeTypeOk(o.Type); ok {
|
||||
toSerialize["Type"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableError struct {
|
||||
value *Error
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableError) Get() *Error {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableError) Set(val *Error) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableError) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableError) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableError(val *Error) *NullableError {
|
||||
return &NullableError{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableError) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableError) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_error_test.go
Normal file
11
pkg/postgresflexalpha/model_error_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
147
pkg/postgresflexalpha/model_flavor_sort.go
Normal file
147
pkg/postgresflexalpha/model_flavor_sort.go
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// FlavorSort the model 'FlavorSort'
|
||||
type FlavorSort string
|
||||
|
||||
// List of flavor.sort
|
||||
const (
|
||||
FLAVORSORT_INDEX_DESC FlavorSort = "index.desc"
|
||||
FLAVORSORT_INDEX_ASC FlavorSort = "index.asc"
|
||||
FLAVORSORT_CPU_DESC FlavorSort = "cpu.desc"
|
||||
FLAVORSORT_CPU_ASC FlavorSort = "cpu.asc"
|
||||
FLAVORSORT_FLAVOR_DESCRIPTION_ASC FlavorSort = "flavor_description.asc"
|
||||
FLAVORSORT_FLAVOR_DESCRIPTION_DESC FlavorSort = "flavor_description.desc"
|
||||
FLAVORSORT_ID_DESC FlavorSort = "id.desc"
|
||||
FLAVORSORT_ID_ASC FlavorSort = "id.asc"
|
||||
FLAVORSORT_SIZE_MAX_DESC FlavorSort = "size_max.desc"
|
||||
FLAVORSORT_SIZE_MAX_ASC FlavorSort = "size_max.asc"
|
||||
FLAVORSORT_RAM_DESC FlavorSort = "ram.desc"
|
||||
FLAVORSORT_RAM_ASC FlavorSort = "ram.asc"
|
||||
FLAVORSORT_SIZE_MIN_DESC FlavorSort = "size_min.desc"
|
||||
FLAVORSORT_SIZE_MIN_ASC FlavorSort = "size_min.asc"
|
||||
FLAVORSORT_STORAGE_CLASS_ASC FlavorSort = "storage_class.asc"
|
||||
FLAVORSORT_STORAGE_CLASS_DESC FlavorSort = "storage_class.desc"
|
||||
FLAVORSORT_NODE_TYPE_ASC FlavorSort = "node_type.asc"
|
||||
FLAVORSORT_NODE_TYPE_DESC FlavorSort = "node_type.desc"
|
||||
)
|
||||
|
||||
// All allowed values of FlavorSort enum
|
||||
var AllowedFlavorSortEnumValues = []FlavorSort{
|
||||
"index.desc",
|
||||
"index.asc",
|
||||
"cpu.desc",
|
||||
"cpu.asc",
|
||||
"flavor_description.asc",
|
||||
"flavor_description.desc",
|
||||
"id.desc",
|
||||
"id.asc",
|
||||
"size_max.desc",
|
||||
"size_max.asc",
|
||||
"ram.desc",
|
||||
"ram.asc",
|
||||
"size_min.desc",
|
||||
"size_min.asc",
|
||||
"storage_class.asc",
|
||||
"storage_class.desc",
|
||||
"node_type.asc",
|
||||
"node_type.desc",
|
||||
}
|
||||
|
||||
func (v *FlavorSort) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Allow unmarshalling zero value for testing purposes
|
||||
var zeroValue string
|
||||
if value == zeroValue {
|
||||
return nil
|
||||
}
|
||||
enumTypeValue := FlavorSort(value)
|
||||
for _, existing := range AllowedFlavorSortEnumValues {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid FlavorSort", value)
|
||||
}
|
||||
|
||||
// NewFlavorSortFromValue returns a pointer to a valid FlavorSort
|
||||
// for the value passed as argument, or an error if the value passed is not allowed by the enum
|
||||
func NewFlavorSortFromValue(v string) (*FlavorSort, error) {
|
||||
ev := FlavorSort(v)
|
||||
if ev.IsValid() {
|
||||
return &ev, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("invalid value '%v' for FlavorSort: valid values are %v", v, AllowedFlavorSortEnumValues)
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid return true if the value is valid for the enum, false otherwise
|
||||
func (v FlavorSort) IsValid() bool {
|
||||
for _, existing := range AllowedFlavorSortEnumValues {
|
||||
if existing == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Ptr returns reference to flavor.sort value
|
||||
func (v FlavorSort) Ptr() *FlavorSort {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableFlavorSort struct {
|
||||
value *FlavorSort
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableFlavorSort) Get() *FlavorSort {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableFlavorSort) Set(val *FlavorSort) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableFlavorSort) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableFlavorSort) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableFlavorSort(val *FlavorSort) *NullableFlavorSort {
|
||||
return &NullableFlavorSort{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableFlavorSort) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableFlavorSort) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_flavor_sort_test.go
Normal file
11
pkg/postgresflexalpha/model_flavor_sort_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
|
@ -0,0 +1,214 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the FlavorStorageClassesStorageClass type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &FlavorStorageClassesStorageClass{}
|
||||
|
||||
/*
|
||||
types and functions for class
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type FlavorStorageClassesStorageClassGetClassAttributeType = *string
|
||||
|
||||
func getFlavorStorageClassesStorageClassGetClassAttributeTypeOk(arg FlavorStorageClassesStorageClassGetClassAttributeType) (ret FlavorStorageClassesStorageClassGetClassRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setFlavorStorageClassesStorageClassGetClassAttributeType(arg *FlavorStorageClassesStorageClassGetClassAttributeType, val FlavorStorageClassesStorageClassGetClassRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type FlavorStorageClassesStorageClassGetClassArgType = string
|
||||
type FlavorStorageClassesStorageClassGetClassRetType = string
|
||||
|
||||
/*
|
||||
types and functions for maxIoPerSec
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType = *int64
|
||||
type FlavorStorageClassesStorageClassGetMaxIoPerSecArgType = int64
|
||||
type FlavorStorageClassesStorageClassGetMaxIoPerSecRetType = int64
|
||||
|
||||
func getFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeTypeOk(arg FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType) (ret FlavorStorageClassesStorageClassGetMaxIoPerSecRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType(arg *FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType, val FlavorStorageClassesStorageClassGetMaxIoPerSecRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for maxThroughInMb
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType = *int64
|
||||
type FlavorStorageClassesStorageClassGetMaxThroughInMbArgType = int64
|
||||
type FlavorStorageClassesStorageClassGetMaxThroughInMbRetType = int64
|
||||
|
||||
func getFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeTypeOk(arg FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType) (ret FlavorStorageClassesStorageClassGetMaxThroughInMbRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType(arg *FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType, val FlavorStorageClassesStorageClassGetMaxThroughInMbRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// FlavorStorageClassesStorageClass a storageClass defines how efficient the storage can work
|
||||
type FlavorStorageClassesStorageClass struct {
|
||||
// REQUIRED
|
||||
Class FlavorStorageClassesStorageClassGetClassAttributeType `json:"class" required:"true"`
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
MaxIoPerSec FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType `json:"maxIoPerSec" required:"true"`
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
MaxThroughInMb FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType `json:"maxThroughInMb" required:"true"`
|
||||
}
|
||||
|
||||
type _FlavorStorageClassesStorageClass FlavorStorageClassesStorageClass
|
||||
|
||||
// NewFlavorStorageClassesStorageClass instantiates a new FlavorStorageClassesStorageClass 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 NewFlavorStorageClassesStorageClass(class FlavorStorageClassesStorageClassGetClassArgType, maxIoPerSec FlavorStorageClassesStorageClassGetMaxIoPerSecArgType, maxThroughInMb FlavorStorageClassesStorageClassGetMaxThroughInMbArgType) *FlavorStorageClassesStorageClass {
|
||||
this := FlavorStorageClassesStorageClass{}
|
||||
setFlavorStorageClassesStorageClassGetClassAttributeType(&this.Class, class)
|
||||
setFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType(&this.MaxIoPerSec, maxIoPerSec)
|
||||
setFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType(&this.MaxThroughInMb, maxThroughInMb)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewFlavorStorageClassesStorageClassWithDefaults instantiates a new FlavorStorageClassesStorageClass 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 NewFlavorStorageClassesStorageClassWithDefaults() *FlavorStorageClassesStorageClass {
|
||||
this := FlavorStorageClassesStorageClass{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetClass returns the Class field value
|
||||
func (o *FlavorStorageClassesStorageClass) GetClass() (ret FlavorStorageClassesStorageClassGetClassRetType) {
|
||||
ret, _ = o.GetClassOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetClassOk returns a tuple with the Class field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FlavorStorageClassesStorageClass) GetClassOk() (ret FlavorStorageClassesStorageClassGetClassRetType, ok bool) {
|
||||
return getFlavorStorageClassesStorageClassGetClassAttributeTypeOk(o.Class)
|
||||
}
|
||||
|
||||
// SetClass sets field value
|
||||
func (o *FlavorStorageClassesStorageClass) SetClass(v FlavorStorageClassesStorageClassGetClassRetType) {
|
||||
setFlavorStorageClassesStorageClassGetClassAttributeType(&o.Class, v)
|
||||
}
|
||||
|
||||
// GetMaxIoPerSec returns the MaxIoPerSec field value
|
||||
func (o *FlavorStorageClassesStorageClass) GetMaxIoPerSec() (ret FlavorStorageClassesStorageClassGetMaxIoPerSecRetType) {
|
||||
ret, _ = o.GetMaxIoPerSecOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMaxIoPerSecOk returns a tuple with the MaxIoPerSec field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FlavorStorageClassesStorageClass) GetMaxIoPerSecOk() (ret FlavorStorageClassesStorageClassGetMaxIoPerSecRetType, ok bool) {
|
||||
return getFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeTypeOk(o.MaxIoPerSec)
|
||||
}
|
||||
|
||||
// SetMaxIoPerSec sets field value
|
||||
func (o *FlavorStorageClassesStorageClass) SetMaxIoPerSec(v FlavorStorageClassesStorageClassGetMaxIoPerSecRetType) {
|
||||
setFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType(&o.MaxIoPerSec, v)
|
||||
}
|
||||
|
||||
// GetMaxThroughInMb returns the MaxThroughInMb field value
|
||||
func (o *FlavorStorageClassesStorageClass) GetMaxThroughInMb() (ret FlavorStorageClassesStorageClassGetMaxThroughInMbRetType) {
|
||||
ret, _ = o.GetMaxThroughInMbOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMaxThroughInMbOk returns a tuple with the MaxThroughInMb field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FlavorStorageClassesStorageClass) GetMaxThroughInMbOk() (ret FlavorStorageClassesStorageClassGetMaxThroughInMbRetType, ok bool) {
|
||||
return getFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeTypeOk(o.MaxThroughInMb)
|
||||
}
|
||||
|
||||
// SetMaxThroughInMb sets field value
|
||||
func (o *FlavorStorageClassesStorageClass) SetMaxThroughInMb(v FlavorStorageClassesStorageClassGetMaxThroughInMbRetType) {
|
||||
setFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType(&o.MaxThroughInMb, v)
|
||||
}
|
||||
|
||||
func (o FlavorStorageClassesStorageClass) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getFlavorStorageClassesStorageClassGetClassAttributeTypeOk(o.Class); ok {
|
||||
toSerialize["Class"] = val
|
||||
}
|
||||
if val, ok := getFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeTypeOk(o.MaxIoPerSec); ok {
|
||||
toSerialize["MaxIoPerSec"] = val
|
||||
}
|
||||
if val, ok := getFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeTypeOk(o.MaxThroughInMb); ok {
|
||||
toSerialize["MaxThroughInMb"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableFlavorStorageClassesStorageClass struct {
|
||||
value *FlavorStorageClassesStorageClass
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableFlavorStorageClassesStorageClass) Get() *FlavorStorageClassesStorageClass {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableFlavorStorageClassesStorageClass) Set(val *FlavorStorageClassesStorageClass) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableFlavorStorageClassesStorageClass) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableFlavorStorageClassesStorageClass) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableFlavorStorageClassesStorageClass(val *FlavorStorageClassesStorageClass) *NullableFlavorStorageClassesStorageClass {
|
||||
return &NullableFlavorStorageClassesStorageClass{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableFlavorStorageClassesStorageClass) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableFlavorStorageClassesStorageClass) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
350
pkg/postgresflexalpha/model_get_backup_response.go
Normal file
350
pkg/postgresflexalpha/model_get_backup_response.go
Normal file
|
|
@ -0,0 +1,350 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the GetBackupResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetBackupResponse{}
|
||||
|
||||
/*
|
||||
types and functions for completionTime
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetBackupResponseGetCompletionTimeAttributeType = *string
|
||||
|
||||
func getGetBackupResponseGetCompletionTimeAttributeTypeOk(arg GetBackupResponseGetCompletionTimeAttributeType) (ret GetBackupResponseGetCompletionTimeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetBackupResponseGetCompletionTimeAttributeType(arg *GetBackupResponseGetCompletionTimeAttributeType, val GetBackupResponseGetCompletionTimeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetBackupResponseGetCompletionTimeArgType = string
|
||||
type GetBackupResponseGetCompletionTimeRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type GetBackupResponseGetIdAttributeType = *int64
|
||||
type GetBackupResponseGetIdArgType = int64
|
||||
type GetBackupResponseGetIdRetType = int64
|
||||
|
||||
func getGetBackupResponseGetIdAttributeTypeOk(arg GetBackupResponseGetIdAttributeType) (ret GetBackupResponseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetBackupResponseGetIdAttributeType(arg *GetBackupResponseGetIdAttributeType, val GetBackupResponseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetBackupResponseGetNameAttributeType = *string
|
||||
|
||||
func getGetBackupResponseGetNameAttributeTypeOk(arg GetBackupResponseGetNameAttributeType) (ret GetBackupResponseGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetBackupResponseGetNameAttributeType(arg *GetBackupResponseGetNameAttributeType, val GetBackupResponseGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetBackupResponseGetNameArgType = string
|
||||
type GetBackupResponseGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for retainedUntil
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetBackupResponseGetRetainedUntilAttributeType = *string
|
||||
|
||||
func getGetBackupResponseGetRetainedUntilAttributeTypeOk(arg GetBackupResponseGetRetainedUntilAttributeType) (ret GetBackupResponseGetRetainedUntilRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetBackupResponseGetRetainedUntilAttributeType(arg *GetBackupResponseGetRetainedUntilAttributeType, val GetBackupResponseGetRetainedUntilRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetBackupResponseGetRetainedUntilArgType = string
|
||||
type GetBackupResponseGetRetainedUntilRetType = string
|
||||
|
||||
/*
|
||||
types and functions for size
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type GetBackupResponseGetSizeAttributeType = *int64
|
||||
type GetBackupResponseGetSizeArgType = int64
|
||||
type GetBackupResponseGetSizeRetType = int64
|
||||
|
||||
func getGetBackupResponseGetSizeAttributeTypeOk(arg GetBackupResponseGetSizeAttributeType) (ret GetBackupResponseGetSizeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetBackupResponseGetSizeAttributeType(arg *GetBackupResponseGetSizeAttributeType, val GetBackupResponseGetSizeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for type
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetBackupResponseGetTypeAttributeType = *string
|
||||
|
||||
func getGetBackupResponseGetTypeAttributeTypeOk(arg GetBackupResponseGetTypeAttributeType) (ret GetBackupResponseGetTypeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetBackupResponseGetTypeAttributeType(arg *GetBackupResponseGetTypeAttributeType, val GetBackupResponseGetTypeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetBackupResponseGetTypeArgType = string
|
||||
type GetBackupResponseGetTypeRetType = string
|
||||
|
||||
// GetBackupResponse struct for GetBackupResponse
|
||||
type GetBackupResponse struct {
|
||||
// The time when the backup was completed in RFC3339 format.
|
||||
// REQUIRED
|
||||
CompletionTime GetBackupResponseGetCompletionTimeAttributeType `json:"completionTime" required:"true"`
|
||||
// The ID of the backup.
|
||||
// REQUIRED
|
||||
Id GetBackupResponseGetIdAttributeType `json:"id" required:"true"`
|
||||
// The name of the backup.
|
||||
// REQUIRED
|
||||
Name GetBackupResponseGetNameAttributeType `json:"name" required:"true"`
|
||||
// The time until the backup will be retained.
|
||||
// REQUIRED
|
||||
RetainedUntil GetBackupResponseGetRetainedUntilAttributeType `json:"retainedUntil" required:"true"`
|
||||
// The size of the backup in bytes.
|
||||
// REQUIRED
|
||||
Size GetBackupResponseGetSizeAttributeType `json:"size" required:"true"`
|
||||
// The type of the backup, which can be automated or manual triggered.
|
||||
// REQUIRED
|
||||
Type GetBackupResponseGetTypeAttributeType `json:"type" required:"true"`
|
||||
}
|
||||
|
||||
type _GetBackupResponse GetBackupResponse
|
||||
|
||||
// NewGetBackupResponse instantiates a new GetBackupResponse 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 NewGetBackupResponse(completionTime GetBackupResponseGetCompletionTimeArgType, id GetBackupResponseGetIdArgType, name GetBackupResponseGetNameArgType, retainedUntil GetBackupResponseGetRetainedUntilArgType, size GetBackupResponseGetSizeArgType, types GetBackupResponseGetTypeArgType) *GetBackupResponse {
|
||||
this := GetBackupResponse{}
|
||||
setGetBackupResponseGetCompletionTimeAttributeType(&this.CompletionTime, completionTime)
|
||||
setGetBackupResponseGetIdAttributeType(&this.Id, id)
|
||||
setGetBackupResponseGetNameAttributeType(&this.Name, name)
|
||||
setGetBackupResponseGetRetainedUntilAttributeType(&this.RetainedUntil, retainedUntil)
|
||||
setGetBackupResponseGetSizeAttributeType(&this.Size, size)
|
||||
setGetBackupResponseGetTypeAttributeType(&this.Type, types)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetBackupResponseWithDefaults instantiates a new GetBackupResponse 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 NewGetBackupResponseWithDefaults() *GetBackupResponse {
|
||||
this := GetBackupResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCompletionTime returns the CompletionTime field value
|
||||
func (o *GetBackupResponse) GetCompletionTime() (ret GetBackupResponseGetCompletionTimeRetType) {
|
||||
ret, _ = o.GetCompletionTimeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCompletionTimeOk returns a tuple with the CompletionTime field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetBackupResponse) GetCompletionTimeOk() (ret GetBackupResponseGetCompletionTimeRetType, ok bool) {
|
||||
return getGetBackupResponseGetCompletionTimeAttributeTypeOk(o.CompletionTime)
|
||||
}
|
||||
|
||||
// SetCompletionTime sets field value
|
||||
func (o *GetBackupResponse) SetCompletionTime(v GetBackupResponseGetCompletionTimeRetType) {
|
||||
setGetBackupResponseGetCompletionTimeAttributeType(&o.CompletionTime, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *GetBackupResponse) GetId() (ret GetBackupResponseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetBackupResponse) GetIdOk() (ret GetBackupResponseGetIdRetType, ok bool) {
|
||||
return getGetBackupResponseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *GetBackupResponse) SetId(v GetBackupResponseGetIdRetType) {
|
||||
setGetBackupResponseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *GetBackupResponse) GetName() (ret GetBackupResponseGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetBackupResponse) GetNameOk() (ret GetBackupResponseGetNameRetType, ok bool) {
|
||||
return getGetBackupResponseGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *GetBackupResponse) SetName(v GetBackupResponseGetNameRetType) {
|
||||
setGetBackupResponseGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetRetainedUntil returns the RetainedUntil field value
|
||||
func (o *GetBackupResponse) GetRetainedUntil() (ret GetBackupResponseGetRetainedUntilRetType) {
|
||||
ret, _ = o.GetRetainedUntilOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRetainedUntilOk returns a tuple with the RetainedUntil field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetBackupResponse) GetRetainedUntilOk() (ret GetBackupResponseGetRetainedUntilRetType, ok bool) {
|
||||
return getGetBackupResponseGetRetainedUntilAttributeTypeOk(o.RetainedUntil)
|
||||
}
|
||||
|
||||
// SetRetainedUntil sets field value
|
||||
func (o *GetBackupResponse) SetRetainedUntil(v GetBackupResponseGetRetainedUntilRetType) {
|
||||
setGetBackupResponseGetRetainedUntilAttributeType(&o.RetainedUntil, v)
|
||||
}
|
||||
|
||||
// GetSize returns the Size field value
|
||||
func (o *GetBackupResponse) GetSize() (ret GetBackupResponseGetSizeRetType) {
|
||||
ret, _ = o.GetSizeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetSizeOk returns a tuple with the Size field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetBackupResponse) GetSizeOk() (ret GetBackupResponseGetSizeRetType, ok bool) {
|
||||
return getGetBackupResponseGetSizeAttributeTypeOk(o.Size)
|
||||
}
|
||||
|
||||
// SetSize sets field value
|
||||
func (o *GetBackupResponse) SetSize(v GetBackupResponseGetSizeRetType) {
|
||||
setGetBackupResponseGetSizeAttributeType(&o.Size, v)
|
||||
}
|
||||
|
||||
// GetType returns the Type field value
|
||||
func (o *GetBackupResponse) GetType() (ret GetBackupResponseGetTypeRetType) {
|
||||
ret, _ = o.GetTypeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetTypeOk returns a tuple with the Type field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetBackupResponse) GetTypeOk() (ret GetBackupResponseGetTypeRetType, ok bool) {
|
||||
return getGetBackupResponseGetTypeAttributeTypeOk(o.Type)
|
||||
}
|
||||
|
||||
// SetType sets field value
|
||||
func (o *GetBackupResponse) SetType(v GetBackupResponseGetTypeRetType) {
|
||||
setGetBackupResponseGetTypeAttributeType(&o.Type, v)
|
||||
}
|
||||
|
||||
func (o GetBackupResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetBackupResponseGetCompletionTimeAttributeTypeOk(o.CompletionTime); ok {
|
||||
toSerialize["CompletionTime"] = val
|
||||
}
|
||||
if val, ok := getGetBackupResponseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getGetBackupResponseGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getGetBackupResponseGetRetainedUntilAttributeTypeOk(o.RetainedUntil); ok {
|
||||
toSerialize["RetainedUntil"] = val
|
||||
}
|
||||
if val, ok := getGetBackupResponseGetSizeAttributeTypeOk(o.Size); ok {
|
||||
toSerialize["Size"] = val
|
||||
}
|
||||
if val, ok := getGetBackupResponseGetTypeAttributeTypeOk(o.Type); ok {
|
||||
toSerialize["Type"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetBackupResponse struct {
|
||||
value *GetBackupResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetBackupResponse) Get() *GetBackupResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetBackupResponse) Set(val *GetBackupResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetBackupResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetBackupResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetBackupResponse(val *GetBackupResponse) *NullableGetBackupResponse {
|
||||
return &NullableGetBackupResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetBackupResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetBackupResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_get_backup_response_test.go
Normal file
11
pkg/postgresflexalpha/model_get_backup_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
126
pkg/postgresflexalpha/model_get_collations_response.go
Normal file
126
pkg/postgresflexalpha/model_get_collations_response.go
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the GetCollationsResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetCollationsResponse{}
|
||||
|
||||
/*
|
||||
types and functions for collations
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type GetCollationsResponseGetCollationsAttributeType = *[]string
|
||||
type GetCollationsResponseGetCollationsArgType = []string
|
||||
type GetCollationsResponseGetCollationsRetType = []string
|
||||
|
||||
func getGetCollationsResponseGetCollationsAttributeTypeOk(arg GetCollationsResponseGetCollationsAttributeType) (ret GetCollationsResponseGetCollationsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetCollationsResponseGetCollationsAttributeType(arg *GetCollationsResponseGetCollationsAttributeType, val GetCollationsResponseGetCollationsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// GetCollationsResponse struct for GetCollationsResponse
|
||||
type GetCollationsResponse struct {
|
||||
// List of collations available for the instance.
|
||||
// REQUIRED
|
||||
Collations GetCollationsResponseGetCollationsAttributeType `json:"collations" required:"true"`
|
||||
}
|
||||
|
||||
type _GetCollationsResponse GetCollationsResponse
|
||||
|
||||
// NewGetCollationsResponse instantiates a new GetCollationsResponse 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 NewGetCollationsResponse(collations GetCollationsResponseGetCollationsArgType) *GetCollationsResponse {
|
||||
this := GetCollationsResponse{}
|
||||
setGetCollationsResponseGetCollationsAttributeType(&this.Collations, collations)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetCollationsResponseWithDefaults instantiates a new GetCollationsResponse 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 NewGetCollationsResponseWithDefaults() *GetCollationsResponse {
|
||||
this := GetCollationsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCollations returns the Collations field value
|
||||
func (o *GetCollationsResponse) GetCollations() (ret GetCollationsResponseGetCollationsRetType) {
|
||||
ret, _ = o.GetCollationsOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCollationsOk returns a tuple with the Collations field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetCollationsResponse) GetCollationsOk() (ret GetCollationsResponseGetCollationsRetType, ok bool) {
|
||||
return getGetCollationsResponseGetCollationsAttributeTypeOk(o.Collations)
|
||||
}
|
||||
|
||||
// SetCollations sets field value
|
||||
func (o *GetCollationsResponse) SetCollations(v GetCollationsResponseGetCollationsRetType) {
|
||||
setGetCollationsResponseGetCollationsAttributeType(&o.Collations, v)
|
||||
}
|
||||
|
||||
func (o GetCollationsResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetCollationsResponseGetCollationsAttributeTypeOk(o.Collations); ok {
|
||||
toSerialize["Collations"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetCollationsResponse struct {
|
||||
value *GetCollationsResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetCollationsResponse) Get() *GetCollationsResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetCollationsResponse) Set(val *GetCollationsResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetCollationsResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetCollationsResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetCollationsResponse(val *GetCollationsResponse) *NullableGetCollationsResponse {
|
||||
return &NullableGetCollationsResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetCollationsResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetCollationsResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_get_collations_response_test.go
Normal file
11
pkg/postgresflexalpha/model_get_collations_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
169
pkg/postgresflexalpha/model_get_flavors_response.go
Normal file
169
pkg/postgresflexalpha/model_get_flavors_response.go
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the GetFlavorsResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetFlavorsResponse{}
|
||||
|
||||
/*
|
||||
types and functions for flavors
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type GetFlavorsResponseGetFlavorsAttributeType = *[]ListFlavors
|
||||
type GetFlavorsResponseGetFlavorsArgType = []ListFlavors
|
||||
type GetFlavorsResponseGetFlavorsRetType = []ListFlavors
|
||||
|
||||
func getGetFlavorsResponseGetFlavorsAttributeTypeOk(arg GetFlavorsResponseGetFlavorsAttributeType) (ret GetFlavorsResponseGetFlavorsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetFlavorsResponseGetFlavorsAttributeType(arg *GetFlavorsResponseGetFlavorsAttributeType, val GetFlavorsResponseGetFlavorsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for pagination
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type GetFlavorsResponseGetPaginationAttributeType = *Pagination
|
||||
type GetFlavorsResponseGetPaginationArgType = Pagination
|
||||
type GetFlavorsResponseGetPaginationRetType = Pagination
|
||||
|
||||
func getGetFlavorsResponseGetPaginationAttributeTypeOk(arg GetFlavorsResponseGetPaginationAttributeType) (ret GetFlavorsResponseGetPaginationRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetFlavorsResponseGetPaginationAttributeType(arg *GetFlavorsResponseGetPaginationAttributeType, val GetFlavorsResponseGetPaginationRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// GetFlavorsResponse struct for GetFlavorsResponse
|
||||
type GetFlavorsResponse struct {
|
||||
// List of flavors available for the project.
|
||||
// REQUIRED
|
||||
Flavors GetFlavorsResponseGetFlavorsAttributeType `json:"flavors" required:"true"`
|
||||
// REQUIRED
|
||||
Pagination GetFlavorsResponseGetPaginationAttributeType `json:"pagination" required:"true"`
|
||||
}
|
||||
|
||||
type _GetFlavorsResponse GetFlavorsResponse
|
||||
|
||||
// NewGetFlavorsResponse instantiates a new GetFlavorsResponse 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 NewGetFlavorsResponse(flavors GetFlavorsResponseGetFlavorsArgType, pagination GetFlavorsResponseGetPaginationArgType) *GetFlavorsResponse {
|
||||
this := GetFlavorsResponse{}
|
||||
setGetFlavorsResponseGetFlavorsAttributeType(&this.Flavors, flavors)
|
||||
setGetFlavorsResponseGetPaginationAttributeType(&this.Pagination, pagination)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetFlavorsResponseWithDefaults instantiates a new GetFlavorsResponse 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 NewGetFlavorsResponseWithDefaults() *GetFlavorsResponse {
|
||||
this := GetFlavorsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetFlavors returns the Flavors field value
|
||||
func (o *GetFlavorsResponse) GetFlavors() (ret GetFlavorsResponseGetFlavorsRetType) {
|
||||
ret, _ = o.GetFlavorsOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetFlavorsOk returns a tuple with the Flavors field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetFlavorsResponse) GetFlavorsOk() (ret GetFlavorsResponseGetFlavorsRetType, ok bool) {
|
||||
return getGetFlavorsResponseGetFlavorsAttributeTypeOk(o.Flavors)
|
||||
}
|
||||
|
||||
// SetFlavors sets field value
|
||||
func (o *GetFlavorsResponse) SetFlavors(v GetFlavorsResponseGetFlavorsRetType) {
|
||||
setGetFlavorsResponseGetFlavorsAttributeType(&o.Flavors, v)
|
||||
}
|
||||
|
||||
// GetPagination returns the Pagination field value
|
||||
func (o *GetFlavorsResponse) GetPagination() (ret GetFlavorsResponseGetPaginationRetType) {
|
||||
ret, _ = o.GetPaginationOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPaginationOk returns a tuple with the Pagination field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetFlavorsResponse) GetPaginationOk() (ret GetFlavorsResponseGetPaginationRetType, ok bool) {
|
||||
return getGetFlavorsResponseGetPaginationAttributeTypeOk(o.Pagination)
|
||||
}
|
||||
|
||||
// SetPagination sets field value
|
||||
func (o *GetFlavorsResponse) SetPagination(v GetFlavorsResponseGetPaginationRetType) {
|
||||
setGetFlavorsResponseGetPaginationAttributeType(&o.Pagination, v)
|
||||
}
|
||||
|
||||
func (o GetFlavorsResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetFlavorsResponseGetFlavorsAttributeTypeOk(o.Flavors); ok {
|
||||
toSerialize["Flavors"] = val
|
||||
}
|
||||
if val, ok := getGetFlavorsResponseGetPaginationAttributeTypeOk(o.Pagination); ok {
|
||||
toSerialize["Pagination"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetFlavorsResponse struct {
|
||||
value *GetFlavorsResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetFlavorsResponse) Get() *GetFlavorsResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetFlavorsResponse) Set(val *GetFlavorsResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetFlavorsResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetFlavorsResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetFlavorsResponse(val *GetFlavorsResponse) *NullableGetFlavorsResponse {
|
||||
return &NullableGetFlavorsResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetFlavorsResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetFlavorsResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_get_flavors_response_test.go
Normal file
11
pkg/postgresflexalpha/model_get_flavors_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
569
pkg/postgresflexalpha/model_get_instance_response.go
Normal file
569
pkg/postgresflexalpha/model_get_instance_response.go
Normal file
|
|
@ -0,0 +1,569 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the GetInstanceResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetInstanceResponse{}
|
||||
|
||||
/*
|
||||
types and functions for acl
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type GetInstanceResponseGetAclAttributeType = *[]string
|
||||
type GetInstanceResponseGetAclArgType = []string
|
||||
type GetInstanceResponseGetAclRetType = []string
|
||||
|
||||
func getGetInstanceResponseGetAclAttributeTypeOk(arg GetInstanceResponseGetAclAttributeType) (ret GetInstanceResponseGetAclRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetAclAttributeType(arg *GetInstanceResponseGetAclAttributeType, val GetInstanceResponseGetAclRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for backupSchedule
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetBackupScheduleAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetBackupScheduleAttributeTypeOk(arg GetInstanceResponseGetBackupScheduleAttributeType) (ret GetInstanceResponseGetBackupScheduleRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetBackupScheduleAttributeType(arg *GetInstanceResponseGetBackupScheduleAttributeType, val GetInstanceResponseGetBackupScheduleRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetBackupScheduleArgType = string
|
||||
type GetInstanceResponseGetBackupScheduleRetType = string
|
||||
|
||||
/*
|
||||
types and functions for flavorId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetFlavorIdAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetFlavorIdAttributeTypeOk(arg GetInstanceResponseGetFlavorIdAttributeType) (ret GetInstanceResponseGetFlavorIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetFlavorIdAttributeType(arg *GetInstanceResponseGetFlavorIdAttributeType, val GetInstanceResponseGetFlavorIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetFlavorIdArgType = string
|
||||
type GetInstanceResponseGetFlavorIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetIdAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetIdAttributeTypeOk(arg GetInstanceResponseGetIdAttributeType) (ret GetInstanceResponseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetIdAttributeType(arg *GetInstanceResponseGetIdAttributeType, val GetInstanceResponseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetIdArgType = string
|
||||
type GetInstanceResponseGetIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for isDeletable
|
||||
*/
|
||||
|
||||
// isBoolean
|
||||
type GetInstanceResponsegetIsDeletableAttributeType = *bool
|
||||
type GetInstanceResponsegetIsDeletableArgType = bool
|
||||
type GetInstanceResponsegetIsDeletableRetType = bool
|
||||
|
||||
func getGetInstanceResponsegetIsDeletableAttributeTypeOk(arg GetInstanceResponsegetIsDeletableAttributeType) (ret GetInstanceResponsegetIsDeletableRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponsegetIsDeletableAttributeType(arg *GetInstanceResponsegetIsDeletableAttributeType, val GetInstanceResponsegetIsDeletableRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetNameAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetNameAttributeTypeOk(arg GetInstanceResponseGetNameAttributeType) (ret GetInstanceResponseGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetNameAttributeType(arg *GetInstanceResponseGetNameAttributeType, val GetInstanceResponseGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetNameArgType = string
|
||||
type GetInstanceResponseGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for replicas
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type GetInstanceResponseGetReplicasAttributeType = *Replicas
|
||||
type GetInstanceResponseGetReplicasArgType = Replicas
|
||||
type GetInstanceResponseGetReplicasRetType = Replicas
|
||||
|
||||
func getGetInstanceResponseGetReplicasAttributeTypeOk(arg GetInstanceResponseGetReplicasAttributeType) (ret GetInstanceResponseGetReplicasRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetReplicasAttributeType(arg *GetInstanceResponseGetReplicasAttributeType, val GetInstanceResponseGetReplicasRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for retentionDays
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type GetInstanceResponseGetRetentionDaysAttributeType = *int64
|
||||
type GetInstanceResponseGetRetentionDaysArgType = int64
|
||||
type GetInstanceResponseGetRetentionDaysRetType = int64
|
||||
|
||||
func getGetInstanceResponseGetRetentionDaysAttributeTypeOk(arg GetInstanceResponseGetRetentionDaysAttributeType) (ret GetInstanceResponseGetRetentionDaysRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetRetentionDaysAttributeType(arg *GetInstanceResponseGetRetentionDaysAttributeType, val GetInstanceResponseGetRetentionDaysRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for status
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type GetInstanceResponseGetStatusAttributeType = *Status
|
||||
type GetInstanceResponseGetStatusArgType = Status
|
||||
type GetInstanceResponseGetStatusRetType = Status
|
||||
|
||||
func getGetInstanceResponseGetStatusAttributeTypeOk(arg GetInstanceResponseGetStatusAttributeType) (ret GetInstanceResponseGetStatusRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetStatusAttributeType(arg *GetInstanceResponseGetStatusAttributeType, val GetInstanceResponseGetStatusRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for storage
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type GetInstanceResponseGetStorageAttributeType = *Storage
|
||||
type GetInstanceResponseGetStorageArgType = Storage
|
||||
type GetInstanceResponseGetStorageRetType = Storage
|
||||
|
||||
func getGetInstanceResponseGetStorageAttributeTypeOk(arg GetInstanceResponseGetStorageAttributeType) (ret GetInstanceResponseGetStorageRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetStorageAttributeType(arg *GetInstanceResponseGetStorageAttributeType, val GetInstanceResponseGetStorageRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for version
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetInstanceResponseGetVersionAttributeType = *string
|
||||
|
||||
func getGetInstanceResponseGetVersionAttributeTypeOk(arg GetInstanceResponseGetVersionAttributeType) (ret GetInstanceResponseGetVersionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetInstanceResponseGetVersionAttributeType(arg *GetInstanceResponseGetVersionAttributeType, val GetInstanceResponseGetVersionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetInstanceResponseGetVersionArgType = string
|
||||
type GetInstanceResponseGetVersionRetType = string
|
||||
|
||||
// GetInstanceResponse struct for GetInstanceResponse
|
||||
type GetInstanceResponse struct {
|
||||
// List of IPV4 cidr.
|
||||
// REQUIRED
|
||||
Acl GetInstanceResponseGetAclAttributeType `json:"acl" required:"true"`
|
||||
// The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.
|
||||
// REQUIRED
|
||||
BackupSchedule GetInstanceResponseGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"`
|
||||
// The id of the instance flavor.
|
||||
// REQUIRED
|
||||
FlavorId GetInstanceResponseGetFlavorIdAttributeType `json:"flavorId" required:"true"`
|
||||
// The ID of the instance.
|
||||
// REQUIRED
|
||||
Id GetInstanceResponseGetIdAttributeType `json:"id" required:"true"`
|
||||
// Whether the instance can be deleted or not.
|
||||
// REQUIRED
|
||||
IsDeletable GetInstanceResponsegetIsDeletableAttributeType `json:"isDeletable" required:"true"`
|
||||
// The name of the instance.
|
||||
// REQUIRED
|
||||
Name GetInstanceResponseGetNameAttributeType `json:"name" required:"true"`
|
||||
// REQUIRED
|
||||
Replicas GetInstanceResponseGetReplicasAttributeType `json:"replicas" required:"true"`
|
||||
// How long backups are retained. The value can only be between 32 and 365 days.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
RetentionDays GetInstanceResponseGetRetentionDaysAttributeType `json:"retentionDays" required:"true"`
|
||||
// REQUIRED
|
||||
Status GetInstanceResponseGetStatusAttributeType `json:"status" required:"true"`
|
||||
// REQUIRED
|
||||
Storage GetInstanceResponseGetStorageAttributeType `json:"storage" required:"true"`
|
||||
// The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3alpha1#tag/Version) for supported version parameters.
|
||||
// REQUIRED
|
||||
Version GetInstanceResponseGetVersionAttributeType `json:"version" required:"true"`
|
||||
}
|
||||
|
||||
type _GetInstanceResponse GetInstanceResponse
|
||||
|
||||
// NewGetInstanceResponse instantiates a new GetInstanceResponse 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 NewGetInstanceResponse(acl GetInstanceResponseGetAclArgType, backupSchedule GetInstanceResponseGetBackupScheduleArgType, flavorId GetInstanceResponseGetFlavorIdArgType, id GetInstanceResponseGetIdArgType, isDeletable GetInstanceResponsegetIsDeletableArgType, name GetInstanceResponseGetNameArgType, replicas GetInstanceResponseGetReplicasArgType, retentionDays GetInstanceResponseGetRetentionDaysArgType, status GetInstanceResponseGetStatusArgType, storage GetInstanceResponseGetStorageArgType, version GetInstanceResponseGetVersionArgType) *GetInstanceResponse {
|
||||
this := GetInstanceResponse{}
|
||||
setGetInstanceResponseGetAclAttributeType(&this.Acl, acl)
|
||||
setGetInstanceResponseGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule)
|
||||
setGetInstanceResponseGetFlavorIdAttributeType(&this.FlavorId, flavorId)
|
||||
setGetInstanceResponseGetIdAttributeType(&this.Id, id)
|
||||
setGetInstanceResponsegetIsDeletableAttributeType(&this.IsDeletable, isDeletable)
|
||||
setGetInstanceResponseGetNameAttributeType(&this.Name, name)
|
||||
setGetInstanceResponseGetReplicasAttributeType(&this.Replicas, replicas)
|
||||
setGetInstanceResponseGetRetentionDaysAttributeType(&this.RetentionDays, retentionDays)
|
||||
setGetInstanceResponseGetStatusAttributeType(&this.Status, status)
|
||||
setGetInstanceResponseGetStorageAttributeType(&this.Storage, storage)
|
||||
setGetInstanceResponseGetVersionAttributeType(&this.Version, version)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetInstanceResponseWithDefaults instantiates a new GetInstanceResponse 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 NewGetInstanceResponseWithDefaults() *GetInstanceResponse {
|
||||
this := GetInstanceResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAcl returns the Acl field value
|
||||
func (o *GetInstanceResponse) GetAcl() (ret GetInstanceResponseGetAclRetType) {
|
||||
ret, _ = o.GetAclOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetAclOk returns a tuple with the Acl field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetAclOk() (ret GetInstanceResponseGetAclRetType, ok bool) {
|
||||
return getGetInstanceResponseGetAclAttributeTypeOk(o.Acl)
|
||||
}
|
||||
|
||||
// SetAcl sets field value
|
||||
func (o *GetInstanceResponse) SetAcl(v GetInstanceResponseGetAclRetType) {
|
||||
setGetInstanceResponseGetAclAttributeType(&o.Acl, v)
|
||||
}
|
||||
|
||||
// GetBackupSchedule returns the BackupSchedule field value
|
||||
func (o *GetInstanceResponse) GetBackupSchedule() (ret GetInstanceResponseGetBackupScheduleRetType) {
|
||||
ret, _ = o.GetBackupScheduleOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetBackupScheduleOk returns a tuple with the BackupSchedule field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetBackupScheduleOk() (ret GetInstanceResponseGetBackupScheduleRetType, ok bool) {
|
||||
return getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule)
|
||||
}
|
||||
|
||||
// SetBackupSchedule sets field value
|
||||
func (o *GetInstanceResponse) SetBackupSchedule(v GetInstanceResponseGetBackupScheduleRetType) {
|
||||
setGetInstanceResponseGetBackupScheduleAttributeType(&o.BackupSchedule, v)
|
||||
}
|
||||
|
||||
// GetFlavorId returns the FlavorId field value
|
||||
func (o *GetInstanceResponse) GetFlavorId() (ret GetInstanceResponseGetFlavorIdRetType) {
|
||||
ret, _ = o.GetFlavorIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetFlavorIdOk returns a tuple with the FlavorId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetFlavorIdOk() (ret GetInstanceResponseGetFlavorIdRetType, ok bool) {
|
||||
return getGetInstanceResponseGetFlavorIdAttributeTypeOk(o.FlavorId)
|
||||
}
|
||||
|
||||
// SetFlavorId sets field value
|
||||
func (o *GetInstanceResponse) SetFlavorId(v GetInstanceResponseGetFlavorIdRetType) {
|
||||
setGetInstanceResponseGetFlavorIdAttributeType(&o.FlavorId, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *GetInstanceResponse) GetId() (ret GetInstanceResponseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetIdOk() (ret GetInstanceResponseGetIdRetType, ok bool) {
|
||||
return getGetInstanceResponseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *GetInstanceResponse) SetId(v GetInstanceResponseGetIdRetType) {
|
||||
setGetInstanceResponseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetIsDeletable returns the IsDeletable field value
|
||||
func (o *GetInstanceResponse) GetIsDeletable() (ret GetInstanceResponsegetIsDeletableRetType) {
|
||||
ret, _ = o.GetIsDeletableOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIsDeletableOk returns a tuple with the IsDeletable field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetIsDeletableOk() (ret GetInstanceResponsegetIsDeletableRetType, ok bool) {
|
||||
return getGetInstanceResponsegetIsDeletableAttributeTypeOk(o.IsDeletable)
|
||||
}
|
||||
|
||||
// SetIsDeletable sets field value
|
||||
func (o *GetInstanceResponse) SetIsDeletable(v GetInstanceResponsegetIsDeletableRetType) {
|
||||
setGetInstanceResponsegetIsDeletableAttributeType(&o.IsDeletable, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *GetInstanceResponse) GetName() (ret GetInstanceResponseGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetNameOk() (ret GetInstanceResponseGetNameRetType, ok bool) {
|
||||
return getGetInstanceResponseGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *GetInstanceResponse) SetName(v GetInstanceResponseGetNameRetType) {
|
||||
setGetInstanceResponseGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetReplicas returns the Replicas field value
|
||||
func (o *GetInstanceResponse) GetReplicas() (ret GetInstanceResponseGetReplicasRetType) {
|
||||
ret, _ = o.GetReplicasOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetReplicasOk returns a tuple with the Replicas field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetReplicasOk() (ret GetInstanceResponseGetReplicasRetType, ok bool) {
|
||||
return getGetInstanceResponseGetReplicasAttributeTypeOk(o.Replicas)
|
||||
}
|
||||
|
||||
// SetReplicas sets field value
|
||||
func (o *GetInstanceResponse) SetReplicas(v GetInstanceResponseGetReplicasRetType) {
|
||||
setGetInstanceResponseGetReplicasAttributeType(&o.Replicas, v)
|
||||
}
|
||||
|
||||
// GetRetentionDays returns the RetentionDays field value
|
||||
func (o *GetInstanceResponse) GetRetentionDays() (ret GetInstanceResponseGetRetentionDaysRetType) {
|
||||
ret, _ = o.GetRetentionDaysOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRetentionDaysOk returns a tuple with the RetentionDays field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetRetentionDaysOk() (ret GetInstanceResponseGetRetentionDaysRetType, ok bool) {
|
||||
return getGetInstanceResponseGetRetentionDaysAttributeTypeOk(o.RetentionDays)
|
||||
}
|
||||
|
||||
// SetRetentionDays sets field value
|
||||
func (o *GetInstanceResponse) SetRetentionDays(v GetInstanceResponseGetRetentionDaysRetType) {
|
||||
setGetInstanceResponseGetRetentionDaysAttributeType(&o.RetentionDays, v)
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value
|
||||
func (o *GetInstanceResponse) GetStatus() (ret GetInstanceResponseGetStatusRetType) {
|
||||
ret, _ = o.GetStatusOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetStatusOk() (ret GetInstanceResponseGetStatusRetType, ok bool) {
|
||||
return getGetInstanceResponseGetStatusAttributeTypeOk(o.Status)
|
||||
}
|
||||
|
||||
// SetStatus sets field value
|
||||
func (o *GetInstanceResponse) SetStatus(v GetInstanceResponseGetStatusRetType) {
|
||||
setGetInstanceResponseGetStatusAttributeType(&o.Status, v)
|
||||
}
|
||||
|
||||
// GetStorage returns the Storage field value
|
||||
func (o *GetInstanceResponse) GetStorage() (ret GetInstanceResponseGetStorageRetType) {
|
||||
ret, _ = o.GetStorageOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStorageOk returns a tuple with the Storage field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetStorageOk() (ret GetInstanceResponseGetStorageRetType, ok bool) {
|
||||
return getGetInstanceResponseGetStorageAttributeTypeOk(o.Storage)
|
||||
}
|
||||
|
||||
// SetStorage sets field value
|
||||
func (o *GetInstanceResponse) SetStorage(v GetInstanceResponseGetStorageRetType) {
|
||||
setGetInstanceResponseGetStorageAttributeType(&o.Storage, v)
|
||||
}
|
||||
|
||||
// GetVersion returns the Version field value
|
||||
func (o *GetInstanceResponse) GetVersion() (ret GetInstanceResponseGetVersionRetType) {
|
||||
ret, _ = o.GetVersionOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetVersionOk returns a tuple with the Version field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetInstanceResponse) GetVersionOk() (ret GetInstanceResponseGetVersionRetType, ok bool) {
|
||||
return getGetInstanceResponseGetVersionAttributeTypeOk(o.Version)
|
||||
}
|
||||
|
||||
// SetVersion sets field value
|
||||
func (o *GetInstanceResponse) SetVersion(v GetInstanceResponseGetVersionRetType) {
|
||||
setGetInstanceResponseGetVersionAttributeType(&o.Version, v)
|
||||
}
|
||||
|
||||
func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetInstanceResponseGetAclAttributeTypeOk(o.Acl); ok {
|
||||
toSerialize["Acl"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok {
|
||||
toSerialize["BackupSchedule"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetFlavorIdAttributeTypeOk(o.FlavorId); ok {
|
||||
toSerialize["FlavorId"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponsegetIsDeletableAttributeTypeOk(o.IsDeletable); ok {
|
||||
toSerialize["IsDeletable"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetReplicasAttributeTypeOk(o.Replicas); ok {
|
||||
toSerialize["Replicas"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetRetentionDaysAttributeTypeOk(o.RetentionDays); ok {
|
||||
toSerialize["RetentionDays"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetStatusAttributeTypeOk(o.Status); ok {
|
||||
toSerialize["Status"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetStorageAttributeTypeOk(o.Storage); ok {
|
||||
toSerialize["Storage"] = val
|
||||
}
|
||||
if val, ok := getGetInstanceResponseGetVersionAttributeTypeOk(o.Version); ok {
|
||||
toSerialize["Version"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetInstanceResponse struct {
|
||||
value *GetInstanceResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetInstanceResponse) Get() *GetInstanceResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetInstanceResponse) Set(val *GetInstanceResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetInstanceResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetInstanceResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetInstanceResponse(val *GetInstanceResponse) *NullableGetInstanceResponse {
|
||||
return &NullableGetInstanceResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetInstanceResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetInstanceResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_get_instance_response_test.go
Normal file
11
pkg/postgresflexalpha/model_get_instance_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
395
pkg/postgresflexalpha/model_get_user_response.go
Normal file
395
pkg/postgresflexalpha/model_get_user_response.go
Normal file
|
|
@ -0,0 +1,395 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the GetUserResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetUserResponse{}
|
||||
|
||||
/*
|
||||
types and functions for connectionString
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetUserResponseGetConnectionStringAttributeType = *string
|
||||
|
||||
func getGetUserResponseGetConnectionStringAttributeTypeOk(arg GetUserResponseGetConnectionStringAttributeType) (ret GetUserResponseGetConnectionStringRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetUserResponseGetConnectionStringAttributeType(arg *GetUserResponseGetConnectionStringAttributeType, val GetUserResponseGetConnectionStringRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetUserResponseGetConnectionStringArgType = string
|
||||
type GetUserResponseGetConnectionStringRetType = string
|
||||
|
||||
/*
|
||||
types and functions for host
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetUserResponseGetHostAttributeType = *string
|
||||
|
||||
func getGetUserResponseGetHostAttributeTypeOk(arg GetUserResponseGetHostAttributeType) (ret GetUserResponseGetHostRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetUserResponseGetHostAttributeType(arg *GetUserResponseGetHostAttributeType, val GetUserResponseGetHostRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetUserResponseGetHostArgType = string
|
||||
type GetUserResponseGetHostRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type GetUserResponseGetIdAttributeType = *int64
|
||||
type GetUserResponseGetIdArgType = int64
|
||||
type GetUserResponseGetIdRetType = int64
|
||||
|
||||
func getGetUserResponseGetIdAttributeTypeOk(arg GetUserResponseGetIdAttributeType) (ret GetUserResponseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetUserResponseGetIdAttributeType(arg *GetUserResponseGetIdAttributeType, val GetUserResponseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetUserResponseGetNameAttributeType = *string
|
||||
|
||||
func getGetUserResponseGetNameAttributeTypeOk(arg GetUserResponseGetNameAttributeType) (ret GetUserResponseGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetUserResponseGetNameAttributeType(arg *GetUserResponseGetNameAttributeType, val GetUserResponseGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetUserResponseGetNameArgType = string
|
||||
type GetUserResponseGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for port
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type GetUserResponseGetPortAttributeType = *int64
|
||||
type GetUserResponseGetPortArgType = int64
|
||||
type GetUserResponseGetPortRetType = int64
|
||||
|
||||
func getGetUserResponseGetPortAttributeTypeOk(arg GetUserResponseGetPortAttributeType) (ret GetUserResponseGetPortRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetUserResponseGetPortAttributeType(arg *GetUserResponseGetPortAttributeType, val GetUserResponseGetPortRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for roles
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type GetUserResponseGetRolesAttributeType = *[]UserRole
|
||||
type GetUserResponseGetRolesArgType = []UserRole
|
||||
type GetUserResponseGetRolesRetType = []UserRole
|
||||
|
||||
func getGetUserResponseGetRolesAttributeTypeOk(arg GetUserResponseGetRolesAttributeType) (ret GetUserResponseGetRolesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetUserResponseGetRolesAttributeType(arg *GetUserResponseGetRolesAttributeType, val GetUserResponseGetRolesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for status
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type GetUserResponseGetStatusAttributeType = *string
|
||||
|
||||
func getGetUserResponseGetStatusAttributeTypeOk(arg GetUserResponseGetStatusAttributeType) (ret GetUserResponseGetStatusRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetUserResponseGetStatusAttributeType(arg *GetUserResponseGetStatusAttributeType, val GetUserResponseGetStatusRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type GetUserResponseGetStatusArgType = string
|
||||
type GetUserResponseGetStatusRetType = string
|
||||
|
||||
// GetUserResponse struct for GetUserResponse
|
||||
type GetUserResponse struct {
|
||||
// The connection string for the user to the instance.
|
||||
// REQUIRED
|
||||
ConnectionString GetUserResponseGetConnectionStringAttributeType `json:"connectionString" required:"true"`
|
||||
// The host of the instance in which the user belongs to.
|
||||
// REQUIRED
|
||||
Host GetUserResponseGetHostAttributeType `json:"host" required:"true"`
|
||||
// The ID of the user.
|
||||
// REQUIRED
|
||||
Id GetUserResponseGetIdAttributeType `json:"id" required:"true"`
|
||||
// The name of the user.
|
||||
// REQUIRED
|
||||
Name GetUserResponseGetNameAttributeType `json:"name" required:"true"`
|
||||
// The port of the instance in which the user belongs to.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
Port GetUserResponseGetPortAttributeType `json:"port" required:"true"`
|
||||
// A list of user roles.
|
||||
// REQUIRED
|
||||
Roles GetUserResponseGetRolesAttributeType `json:"roles" required:"true"`
|
||||
// The current status of the user.
|
||||
// REQUIRED
|
||||
Status GetUserResponseGetStatusAttributeType `json:"status" required:"true"`
|
||||
}
|
||||
|
||||
type _GetUserResponse GetUserResponse
|
||||
|
||||
// NewGetUserResponse instantiates a new GetUserResponse 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 NewGetUserResponse(connectionString GetUserResponseGetConnectionStringArgType, host GetUserResponseGetHostArgType, id GetUserResponseGetIdArgType, name GetUserResponseGetNameArgType, port GetUserResponseGetPortArgType, roles GetUserResponseGetRolesArgType, status GetUserResponseGetStatusArgType) *GetUserResponse {
|
||||
this := GetUserResponse{}
|
||||
setGetUserResponseGetConnectionStringAttributeType(&this.ConnectionString, connectionString)
|
||||
setGetUserResponseGetHostAttributeType(&this.Host, host)
|
||||
setGetUserResponseGetIdAttributeType(&this.Id, id)
|
||||
setGetUserResponseGetNameAttributeType(&this.Name, name)
|
||||
setGetUserResponseGetPortAttributeType(&this.Port, port)
|
||||
setGetUserResponseGetRolesAttributeType(&this.Roles, roles)
|
||||
setGetUserResponseGetStatusAttributeType(&this.Status, status)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetUserResponseWithDefaults instantiates a new GetUserResponse 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 NewGetUserResponseWithDefaults() *GetUserResponse {
|
||||
this := GetUserResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetConnectionString returns the ConnectionString field value
|
||||
func (o *GetUserResponse) GetConnectionString() (ret GetUserResponseGetConnectionStringRetType) {
|
||||
ret, _ = o.GetConnectionStringOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetConnectionStringOk returns a tuple with the ConnectionString field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetUserResponse) GetConnectionStringOk() (ret GetUserResponseGetConnectionStringRetType, ok bool) {
|
||||
return getGetUserResponseGetConnectionStringAttributeTypeOk(o.ConnectionString)
|
||||
}
|
||||
|
||||
// SetConnectionString sets field value
|
||||
func (o *GetUserResponse) SetConnectionString(v GetUserResponseGetConnectionStringRetType) {
|
||||
setGetUserResponseGetConnectionStringAttributeType(&o.ConnectionString, v)
|
||||
}
|
||||
|
||||
// GetHost returns the Host field value
|
||||
func (o *GetUserResponse) GetHost() (ret GetUserResponseGetHostRetType) {
|
||||
ret, _ = o.GetHostOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetHostOk returns a tuple with the Host field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetUserResponse) GetHostOk() (ret GetUserResponseGetHostRetType, ok bool) {
|
||||
return getGetUserResponseGetHostAttributeTypeOk(o.Host)
|
||||
}
|
||||
|
||||
// SetHost sets field value
|
||||
func (o *GetUserResponse) SetHost(v GetUserResponseGetHostRetType) {
|
||||
setGetUserResponseGetHostAttributeType(&o.Host, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *GetUserResponse) GetId() (ret GetUserResponseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetUserResponse) GetIdOk() (ret GetUserResponseGetIdRetType, ok bool) {
|
||||
return getGetUserResponseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *GetUserResponse) SetId(v GetUserResponseGetIdRetType) {
|
||||
setGetUserResponseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *GetUserResponse) GetName() (ret GetUserResponseGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetUserResponse) GetNameOk() (ret GetUserResponseGetNameRetType, ok bool) {
|
||||
return getGetUserResponseGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *GetUserResponse) SetName(v GetUserResponseGetNameRetType) {
|
||||
setGetUserResponseGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetPort returns the Port field value
|
||||
func (o *GetUserResponse) GetPort() (ret GetUserResponseGetPortRetType) {
|
||||
ret, _ = o.GetPortOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPortOk returns a tuple with the Port field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetUserResponse) GetPortOk() (ret GetUserResponseGetPortRetType, ok bool) {
|
||||
return getGetUserResponseGetPortAttributeTypeOk(o.Port)
|
||||
}
|
||||
|
||||
// SetPort sets field value
|
||||
func (o *GetUserResponse) SetPort(v GetUserResponseGetPortRetType) {
|
||||
setGetUserResponseGetPortAttributeType(&o.Port, v)
|
||||
}
|
||||
|
||||
// GetRoles returns the Roles field value
|
||||
func (o *GetUserResponse) GetRoles() (ret GetUserResponseGetRolesRetType) {
|
||||
ret, _ = o.GetRolesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRolesOk returns a tuple with the Roles field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetUserResponse) GetRolesOk() (ret GetUserResponseGetRolesRetType, ok bool) {
|
||||
return getGetUserResponseGetRolesAttributeTypeOk(o.Roles)
|
||||
}
|
||||
|
||||
// SetRoles sets field value
|
||||
func (o *GetUserResponse) SetRoles(v GetUserResponseGetRolesRetType) {
|
||||
setGetUserResponseGetRolesAttributeType(&o.Roles, v)
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value
|
||||
func (o *GetUserResponse) GetStatus() (ret GetUserResponseGetStatusRetType) {
|
||||
ret, _ = o.GetStatusOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetUserResponse) GetStatusOk() (ret GetUserResponseGetStatusRetType, ok bool) {
|
||||
return getGetUserResponseGetStatusAttributeTypeOk(o.Status)
|
||||
}
|
||||
|
||||
// SetStatus sets field value
|
||||
func (o *GetUserResponse) SetStatus(v GetUserResponseGetStatusRetType) {
|
||||
setGetUserResponseGetStatusAttributeType(&o.Status, v)
|
||||
}
|
||||
|
||||
func (o GetUserResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetUserResponseGetConnectionStringAttributeTypeOk(o.ConnectionString); ok {
|
||||
toSerialize["ConnectionString"] = val
|
||||
}
|
||||
if val, ok := getGetUserResponseGetHostAttributeTypeOk(o.Host); ok {
|
||||
toSerialize["Host"] = val
|
||||
}
|
||||
if val, ok := getGetUserResponseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getGetUserResponseGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getGetUserResponseGetPortAttributeTypeOk(o.Port); ok {
|
||||
toSerialize["Port"] = val
|
||||
}
|
||||
if val, ok := getGetUserResponseGetRolesAttributeTypeOk(o.Roles); ok {
|
||||
toSerialize["Roles"] = val
|
||||
}
|
||||
if val, ok := getGetUserResponseGetStatusAttributeTypeOk(o.Status); ok {
|
||||
toSerialize["Status"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetUserResponse struct {
|
||||
value *GetUserResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetUserResponse) Get() *GetUserResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetUserResponse) Set(val *GetUserResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetUserResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetUserResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetUserResponse(val *GetUserResponse) *NullableGetUserResponse {
|
||||
return &NullableGetUserResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetUserResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetUserResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_get_user_response_test.go
Normal file
11
pkg/postgresflexalpha/model_get_user_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
126
pkg/postgresflexalpha/model_get_versions_response.go
Normal file
126
pkg/postgresflexalpha/model_get_versions_response.go
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the GetVersionsResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &GetVersionsResponse{}
|
||||
|
||||
/*
|
||||
types and functions for versions
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type GetVersionsResponseGetVersionsAttributeType = *[]Version
|
||||
type GetVersionsResponseGetVersionsArgType = []Version
|
||||
type GetVersionsResponseGetVersionsRetType = []Version
|
||||
|
||||
func getGetVersionsResponseGetVersionsAttributeTypeOk(arg GetVersionsResponseGetVersionsAttributeType) (ret GetVersionsResponseGetVersionsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setGetVersionsResponseGetVersionsAttributeType(arg *GetVersionsResponseGetVersionsAttributeType, val GetVersionsResponseGetVersionsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// GetVersionsResponse struct for GetVersionsResponse
|
||||
type GetVersionsResponse struct {
|
||||
// A list containing available postgres versions.
|
||||
// REQUIRED
|
||||
Versions GetVersionsResponseGetVersionsAttributeType `json:"versions" required:"true"`
|
||||
}
|
||||
|
||||
type _GetVersionsResponse GetVersionsResponse
|
||||
|
||||
// NewGetVersionsResponse instantiates a new GetVersionsResponse 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 NewGetVersionsResponse(versions GetVersionsResponseGetVersionsArgType) *GetVersionsResponse {
|
||||
this := GetVersionsResponse{}
|
||||
setGetVersionsResponseGetVersionsAttributeType(&this.Versions, versions)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGetVersionsResponseWithDefaults instantiates a new GetVersionsResponse 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 NewGetVersionsResponseWithDefaults() *GetVersionsResponse {
|
||||
this := GetVersionsResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetVersions returns the Versions field value
|
||||
func (o *GetVersionsResponse) GetVersions() (ret GetVersionsResponseGetVersionsRetType) {
|
||||
ret, _ = o.GetVersionsOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetVersionsOk returns a tuple with the Versions field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GetVersionsResponse) GetVersionsOk() (ret GetVersionsResponseGetVersionsRetType, ok bool) {
|
||||
return getGetVersionsResponseGetVersionsAttributeTypeOk(o.Versions)
|
||||
}
|
||||
|
||||
// SetVersions sets field value
|
||||
func (o *GetVersionsResponse) SetVersions(v GetVersionsResponseGetVersionsRetType) {
|
||||
setGetVersionsResponseGetVersionsAttributeType(&o.Versions, v)
|
||||
}
|
||||
|
||||
func (o GetVersionsResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getGetVersionsResponseGetVersionsAttributeTypeOk(o.Versions); ok {
|
||||
toSerialize["Versions"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableGetVersionsResponse struct {
|
||||
value *GetVersionsResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableGetVersionsResponse) Get() *GetVersionsResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableGetVersionsResponse) Set(val *GetVersionsResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableGetVersionsResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableGetVersionsResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableGetVersionsResponse(val *GetVersionsResponse) *NullableGetVersionsResponse {
|
||||
return &NullableGetVersionsResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableGetVersionsResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableGetVersionsResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_get_versions_response_test.go
Normal file
11
pkg/postgresflexalpha/model_get_versions_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
261
pkg/postgresflexalpha/model_instance_encryption.go
Normal file
261
pkg/postgresflexalpha/model_instance_encryption.go
Normal file
|
|
@ -0,0 +1,261 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the InstanceEncryption type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &InstanceEncryption{}
|
||||
|
||||
/*
|
||||
types and functions for kekKeyId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type InstanceEncryptionGetKekKeyIdAttributeType = *string
|
||||
|
||||
func getInstanceEncryptionGetKekKeyIdAttributeTypeOk(arg InstanceEncryptionGetKekKeyIdAttributeType) (ret InstanceEncryptionGetKekKeyIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setInstanceEncryptionGetKekKeyIdAttributeType(arg *InstanceEncryptionGetKekKeyIdAttributeType, val InstanceEncryptionGetKekKeyIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type InstanceEncryptionGetKekKeyIdArgType = string
|
||||
type InstanceEncryptionGetKekKeyIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for kekKeyRingId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type InstanceEncryptionGetKekKeyRingIdAttributeType = *string
|
||||
|
||||
func getInstanceEncryptionGetKekKeyRingIdAttributeTypeOk(arg InstanceEncryptionGetKekKeyRingIdAttributeType) (ret InstanceEncryptionGetKekKeyRingIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setInstanceEncryptionGetKekKeyRingIdAttributeType(arg *InstanceEncryptionGetKekKeyRingIdAttributeType, val InstanceEncryptionGetKekKeyRingIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type InstanceEncryptionGetKekKeyRingIdArgType = string
|
||||
type InstanceEncryptionGetKekKeyRingIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for kekKeyVersion
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type InstanceEncryptionGetKekKeyVersionAttributeType = *string
|
||||
|
||||
func getInstanceEncryptionGetKekKeyVersionAttributeTypeOk(arg InstanceEncryptionGetKekKeyVersionAttributeType) (ret InstanceEncryptionGetKekKeyVersionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setInstanceEncryptionGetKekKeyVersionAttributeType(arg *InstanceEncryptionGetKekKeyVersionAttributeType, val InstanceEncryptionGetKekKeyVersionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type InstanceEncryptionGetKekKeyVersionArgType = string
|
||||
type InstanceEncryptionGetKekKeyVersionRetType = string
|
||||
|
||||
/*
|
||||
types and functions for serviceAccount
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type InstanceEncryptionGetServiceAccountAttributeType = *string
|
||||
|
||||
func getInstanceEncryptionGetServiceAccountAttributeTypeOk(arg InstanceEncryptionGetServiceAccountAttributeType) (ret InstanceEncryptionGetServiceAccountRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setInstanceEncryptionGetServiceAccountAttributeType(arg *InstanceEncryptionGetServiceAccountAttributeType, val InstanceEncryptionGetServiceAccountRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type InstanceEncryptionGetServiceAccountArgType = string
|
||||
type InstanceEncryptionGetServiceAccountRetType = string
|
||||
|
||||
// InstanceEncryption The configuration for instance's volume and backup storage encryption. ⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.
|
||||
type InstanceEncryption struct {
|
||||
// The encryption-key key identifier
|
||||
// REQUIRED
|
||||
KekKeyId InstanceEncryptionGetKekKeyIdAttributeType `json:"kekKeyId" required:"true"`
|
||||
// The encryption-key keyring identifier
|
||||
// REQUIRED
|
||||
KekKeyRingId InstanceEncryptionGetKekKeyRingIdAttributeType `json:"kekKeyRingId" required:"true"`
|
||||
// The encryption-key version
|
||||
// REQUIRED
|
||||
KekKeyVersion InstanceEncryptionGetKekKeyVersionAttributeType `json:"kekKeyVersion" required:"true"`
|
||||
// REQUIRED
|
||||
ServiceAccount InstanceEncryptionGetServiceAccountAttributeType `json:"serviceAccount" required:"true"`
|
||||
}
|
||||
|
||||
type _InstanceEncryption InstanceEncryption
|
||||
|
||||
// NewInstanceEncryption instantiates a new InstanceEncryption 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 NewInstanceEncryption(kekKeyId InstanceEncryptionGetKekKeyIdArgType, kekKeyRingId InstanceEncryptionGetKekKeyRingIdArgType, kekKeyVersion InstanceEncryptionGetKekKeyVersionArgType, serviceAccount InstanceEncryptionGetServiceAccountArgType) *InstanceEncryption {
|
||||
this := InstanceEncryption{}
|
||||
setInstanceEncryptionGetKekKeyIdAttributeType(&this.KekKeyId, kekKeyId)
|
||||
setInstanceEncryptionGetKekKeyRingIdAttributeType(&this.KekKeyRingId, kekKeyRingId)
|
||||
setInstanceEncryptionGetKekKeyVersionAttributeType(&this.KekKeyVersion, kekKeyVersion)
|
||||
setInstanceEncryptionGetServiceAccountAttributeType(&this.ServiceAccount, serviceAccount)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewInstanceEncryptionWithDefaults instantiates a new InstanceEncryption 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 NewInstanceEncryptionWithDefaults() *InstanceEncryption {
|
||||
this := InstanceEncryption{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetKekKeyId returns the KekKeyId field value
|
||||
func (o *InstanceEncryption) GetKekKeyId() (ret InstanceEncryptionGetKekKeyIdRetType) {
|
||||
ret, _ = o.GetKekKeyIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetKekKeyIdOk returns a tuple with the KekKeyId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstanceEncryption) GetKekKeyIdOk() (ret InstanceEncryptionGetKekKeyIdRetType, ok bool) {
|
||||
return getInstanceEncryptionGetKekKeyIdAttributeTypeOk(o.KekKeyId)
|
||||
}
|
||||
|
||||
// SetKekKeyId sets field value
|
||||
func (o *InstanceEncryption) SetKekKeyId(v InstanceEncryptionGetKekKeyIdRetType) {
|
||||
setInstanceEncryptionGetKekKeyIdAttributeType(&o.KekKeyId, v)
|
||||
}
|
||||
|
||||
// GetKekKeyRingId returns the KekKeyRingId field value
|
||||
func (o *InstanceEncryption) GetKekKeyRingId() (ret InstanceEncryptionGetKekKeyRingIdRetType) {
|
||||
ret, _ = o.GetKekKeyRingIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetKekKeyRingIdOk returns a tuple with the KekKeyRingId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstanceEncryption) GetKekKeyRingIdOk() (ret InstanceEncryptionGetKekKeyRingIdRetType, ok bool) {
|
||||
return getInstanceEncryptionGetKekKeyRingIdAttributeTypeOk(o.KekKeyRingId)
|
||||
}
|
||||
|
||||
// SetKekKeyRingId sets field value
|
||||
func (o *InstanceEncryption) SetKekKeyRingId(v InstanceEncryptionGetKekKeyRingIdRetType) {
|
||||
setInstanceEncryptionGetKekKeyRingIdAttributeType(&o.KekKeyRingId, v)
|
||||
}
|
||||
|
||||
// GetKekKeyVersion returns the KekKeyVersion field value
|
||||
func (o *InstanceEncryption) GetKekKeyVersion() (ret InstanceEncryptionGetKekKeyVersionRetType) {
|
||||
ret, _ = o.GetKekKeyVersionOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetKekKeyVersionOk returns a tuple with the KekKeyVersion field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstanceEncryption) GetKekKeyVersionOk() (ret InstanceEncryptionGetKekKeyVersionRetType, ok bool) {
|
||||
return getInstanceEncryptionGetKekKeyVersionAttributeTypeOk(o.KekKeyVersion)
|
||||
}
|
||||
|
||||
// SetKekKeyVersion sets field value
|
||||
func (o *InstanceEncryption) SetKekKeyVersion(v InstanceEncryptionGetKekKeyVersionRetType) {
|
||||
setInstanceEncryptionGetKekKeyVersionAttributeType(&o.KekKeyVersion, v)
|
||||
}
|
||||
|
||||
// GetServiceAccount returns the ServiceAccount field value
|
||||
func (o *InstanceEncryption) GetServiceAccount() (ret InstanceEncryptionGetServiceAccountRetType) {
|
||||
ret, _ = o.GetServiceAccountOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetServiceAccountOk returns a tuple with the ServiceAccount field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstanceEncryption) GetServiceAccountOk() (ret InstanceEncryptionGetServiceAccountRetType, ok bool) {
|
||||
return getInstanceEncryptionGetServiceAccountAttributeTypeOk(o.ServiceAccount)
|
||||
}
|
||||
|
||||
// SetServiceAccount sets field value
|
||||
func (o *InstanceEncryption) SetServiceAccount(v InstanceEncryptionGetServiceAccountRetType) {
|
||||
setInstanceEncryptionGetServiceAccountAttributeType(&o.ServiceAccount, v)
|
||||
}
|
||||
|
||||
func (o InstanceEncryption) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getInstanceEncryptionGetKekKeyIdAttributeTypeOk(o.KekKeyId); ok {
|
||||
toSerialize["KekKeyId"] = val
|
||||
}
|
||||
if val, ok := getInstanceEncryptionGetKekKeyRingIdAttributeTypeOk(o.KekKeyRingId); ok {
|
||||
toSerialize["KekKeyRingId"] = val
|
||||
}
|
||||
if val, ok := getInstanceEncryptionGetKekKeyVersionAttributeTypeOk(o.KekKeyVersion); ok {
|
||||
toSerialize["KekKeyVersion"] = val
|
||||
}
|
||||
if val, ok := getInstanceEncryptionGetServiceAccountAttributeTypeOk(o.ServiceAccount); ok {
|
||||
toSerialize["ServiceAccount"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableInstanceEncryption struct {
|
||||
value *InstanceEncryption
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInstanceEncryption) Get() *InstanceEncryption {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInstanceEncryption) Set(val *InstanceEncryption) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInstanceEncryption) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInstanceEncryption) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInstanceEncryption(val *InstanceEncryption) *NullableInstanceEncryption {
|
||||
return &NullableInstanceEncryption{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInstanceEncryption) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInstanceEncryption) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_instance_encryption_test.go
Normal file
11
pkg/postgresflexalpha/model_instance_encryption_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
233
pkg/postgresflexalpha/model_instance_network.go
Normal file
233
pkg/postgresflexalpha/model_instance_network.go
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// checks if the InstanceNetwork type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &InstanceNetwork{}
|
||||
|
||||
/*
|
||||
types and functions for accessScope
|
||||
*/
|
||||
|
||||
// isEnum
|
||||
|
||||
// InstanceNetworkAccessScope The access scope of the instance. It defines if the instance is public or airgapped.
|
||||
// value type for enums
|
||||
type InstanceNetworkAccessScope string
|
||||
|
||||
// List of AccessScope
|
||||
const (
|
||||
INSTANCENETWORKACCESS_SCOPE_PUBLIC InstanceNetworkAccessScope = "PUBLIC"
|
||||
INSTANCENETWORKACCESS_SCOPE_SNA InstanceNetworkAccessScope = "SNA"
|
||||
)
|
||||
|
||||
// All allowed values of InstanceNetwork enum
|
||||
var AllowedInstanceNetworkAccessScopeEnumValues = []InstanceNetworkAccessScope{
|
||||
"PUBLIC",
|
||||
"SNA",
|
||||
}
|
||||
|
||||
func (v *InstanceNetworkAccessScope) UnmarshalJSON(src []byte) error {
|
||||
// use a type alias to prevent infinite recursion during unmarshal,
|
||||
// see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers
|
||||
type TmpJson InstanceNetworkAccessScope
|
||||
var value TmpJson
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Allow unmarshalling zero value for testing purposes
|
||||
var zeroValue TmpJson
|
||||
if value == zeroValue {
|
||||
return nil
|
||||
}
|
||||
enumTypeValue := InstanceNetworkAccessScope(value)
|
||||
for _, existing := range AllowedInstanceNetworkAccessScopeEnumValues {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid InstanceNetwork", value)
|
||||
}
|
||||
|
||||
// NewInstanceNetworkAccessScopeFromValue returns a pointer to a valid InstanceNetworkAccessScope
|
||||
// for the value passed as argument, or an error if the value passed is not allowed by the enum
|
||||
func NewInstanceNetworkAccessScopeFromValue(v InstanceNetworkAccessScope) (*InstanceNetworkAccessScope, error) {
|
||||
ev := InstanceNetworkAccessScope(v)
|
||||
if ev.IsValid() {
|
||||
return &ev, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("invalid value '%v' for InstanceNetworkAccessScope: valid values are %v", v, AllowedInstanceNetworkAccessScopeEnumValues)
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid return true if the value is valid for the enum, false otherwise
|
||||
func (v InstanceNetworkAccessScope) IsValid() bool {
|
||||
for _, existing := range AllowedInstanceNetworkAccessScopeEnumValues {
|
||||
if existing == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Ptr returns reference to AccessScopeAccessScope value
|
||||
func (v InstanceNetworkAccessScope) Ptr() *InstanceNetworkAccessScope {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableInstanceNetworkAccessScope struct {
|
||||
value *InstanceNetworkAccessScope
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInstanceNetworkAccessScope) Get() *InstanceNetworkAccessScope {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInstanceNetworkAccessScope) Set(val *InstanceNetworkAccessScope) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInstanceNetworkAccessScope) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInstanceNetworkAccessScope) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInstanceNetworkAccessScope(val *InstanceNetworkAccessScope) *NullableInstanceNetworkAccessScope {
|
||||
return &NullableInstanceNetworkAccessScope{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInstanceNetworkAccessScope) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInstanceNetworkAccessScope) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
type InstanceNetworkGetAccessScopeAttributeType = *InstanceNetworkAccessScope
|
||||
type InstanceNetworkGetAccessScopeArgType = InstanceNetworkAccessScope
|
||||
type InstanceNetworkGetAccessScopeRetType = InstanceNetworkAccessScope
|
||||
|
||||
func getInstanceNetworkGetAccessScopeAttributeTypeOk(arg InstanceNetworkGetAccessScopeAttributeType) (ret InstanceNetworkGetAccessScopeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setInstanceNetworkGetAccessScopeAttributeType(arg *InstanceNetworkGetAccessScopeAttributeType, val InstanceNetworkGetAccessScopeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// InstanceNetwork The network configuration of the instance. ⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.
|
||||
type InstanceNetwork struct {
|
||||
// The access scope of the instance. It defines if the instance is public or airgapped.
|
||||
// REQUIRED
|
||||
AccessScope InstanceNetworkGetAccessScopeAttributeType `json:"accessScope" required:"true"`
|
||||
}
|
||||
|
||||
type _InstanceNetwork InstanceNetwork
|
||||
|
||||
// NewInstanceNetwork instantiates a new InstanceNetwork 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 NewInstanceNetwork(accessScope InstanceNetworkGetAccessScopeArgType) *InstanceNetwork {
|
||||
this := InstanceNetwork{}
|
||||
setInstanceNetworkGetAccessScopeAttributeType(&this.AccessScope, accessScope)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewInstanceNetworkWithDefaults instantiates a new InstanceNetwork 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 NewInstanceNetworkWithDefaults() *InstanceNetwork {
|
||||
this := InstanceNetwork{}
|
||||
var accessScope InstanceNetworkAccessScope = "PUBLIC"
|
||||
this.AccessScope = &accessScope
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAccessScope returns the AccessScope field value
|
||||
func (o *InstanceNetwork) GetAccessScope() (ret InstanceNetworkGetAccessScopeRetType) {
|
||||
ret, _ = o.GetAccessScopeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetAccessScopeOk returns a tuple with the AccessScope field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstanceNetwork) GetAccessScopeOk() (ret InstanceNetworkGetAccessScopeRetType, ok bool) {
|
||||
return getInstanceNetworkGetAccessScopeAttributeTypeOk(o.AccessScope)
|
||||
}
|
||||
|
||||
// SetAccessScope sets field value
|
||||
func (o *InstanceNetwork) SetAccessScope(v InstanceNetworkGetAccessScopeRetType) {
|
||||
setInstanceNetworkGetAccessScopeAttributeType(&o.AccessScope, v)
|
||||
}
|
||||
|
||||
func (o InstanceNetwork) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getInstanceNetworkGetAccessScopeAttributeTypeOk(o.AccessScope); ok {
|
||||
toSerialize["AccessScope"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableInstanceNetwork struct {
|
||||
value *InstanceNetwork
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInstanceNetwork) Get() *InstanceNetwork {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInstanceNetwork) Set(val *InstanceNetwork) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInstanceNetwork) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInstanceNetwork) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInstanceNetwork(val *InstanceNetwork) *NullableInstanceNetwork {
|
||||
return &NullableInstanceNetwork{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInstanceNetwork) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInstanceNetwork) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
58
pkg/postgresflexalpha/model_instance_network_test.go
Normal file
58
pkg/postgresflexalpha/model_instance_network_test.go
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// isEnum
|
||||
|
||||
func TestInstanceNetworkAccessScope_UnmarshalJSON(t *testing.T) {
|
||||
type args struct {
|
||||
src []byte
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
wantErr bool
|
||||
}{
|
||||
{
|
||||
name: `success - possible enum value no. 1`,
|
||||
args: args{
|
||||
src: []byte(`"PUBLIC"`),
|
||||
},
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: `success - possible enum value no. 2`,
|
||||
args: args{
|
||||
src: []byte(`"SNA"`),
|
||||
},
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "fail",
|
||||
args: args{
|
||||
src: []byte("\"FOOBAR\""),
|
||||
},
|
||||
wantErr: true,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
v := InstanceNetworkAccessScope("")
|
||||
if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr {
|
||||
t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
131
pkg/postgresflexalpha/model_instance_sort.go
Normal file
131
pkg/postgresflexalpha/model_instance_sort.go
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// InstanceSort the model 'InstanceSort'
|
||||
type InstanceSort string
|
||||
|
||||
// List of instance.sort
|
||||
const (
|
||||
INSTANCESORT_INDEX_DESC InstanceSort = "index.desc"
|
||||
INSTANCESORT_INDEX_ASC InstanceSort = "index.asc"
|
||||
INSTANCESORT_ID_DESC InstanceSort = "id.desc"
|
||||
INSTANCESORT_ID_ASC InstanceSort = "id.asc"
|
||||
INSTANCESORT_IS_DELETABLE_DESC InstanceSort = "is_deletable.desc"
|
||||
INSTANCESORT_IS_DELETABLE_ASC InstanceSort = "is_deletable.asc"
|
||||
INSTANCESORT_NAME_ASC InstanceSort = "name.asc"
|
||||
INSTANCESORT_NAME_DESC InstanceSort = "name.desc"
|
||||
INSTANCESORT_STATUS_ASC InstanceSort = "status.asc"
|
||||
INSTANCESORT_STATUS_DESC InstanceSort = "status.desc"
|
||||
)
|
||||
|
||||
// All allowed values of InstanceSort enum
|
||||
var AllowedInstanceSortEnumValues = []InstanceSort{
|
||||
"index.desc",
|
||||
"index.asc",
|
||||
"id.desc",
|
||||
"id.asc",
|
||||
"is_deletable.desc",
|
||||
"is_deletable.asc",
|
||||
"name.asc",
|
||||
"name.desc",
|
||||
"status.asc",
|
||||
"status.desc",
|
||||
}
|
||||
|
||||
func (v *InstanceSort) UnmarshalJSON(src []byte) error {
|
||||
var value string
|
||||
err := json.Unmarshal(src, &value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Allow unmarshalling zero value for testing purposes
|
||||
var zeroValue string
|
||||
if value == zeroValue {
|
||||
return nil
|
||||
}
|
||||
enumTypeValue := InstanceSort(value)
|
||||
for _, existing := range AllowedInstanceSortEnumValues {
|
||||
if existing == enumTypeValue {
|
||||
*v = enumTypeValue
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("%+v is not a valid InstanceSort", value)
|
||||
}
|
||||
|
||||
// NewInstanceSortFromValue returns a pointer to a valid InstanceSort
|
||||
// for the value passed as argument, or an error if the value passed is not allowed by the enum
|
||||
func NewInstanceSortFromValue(v string) (*InstanceSort, error) {
|
||||
ev := InstanceSort(v)
|
||||
if ev.IsValid() {
|
||||
return &ev, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("invalid value '%v' for InstanceSort: valid values are %v", v, AllowedInstanceSortEnumValues)
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid return true if the value is valid for the enum, false otherwise
|
||||
func (v InstanceSort) IsValid() bool {
|
||||
for _, existing := range AllowedInstanceSortEnumValues {
|
||||
if existing == v {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Ptr returns reference to instance.sort value
|
||||
func (v InstanceSort) Ptr() *InstanceSort {
|
||||
return &v
|
||||
}
|
||||
|
||||
type NullableInstanceSort struct {
|
||||
value *InstanceSort
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInstanceSort) Get() *InstanceSort {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInstanceSort) Set(val *InstanceSort) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInstanceSort) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInstanceSort) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInstanceSort(val *InstanceSort) *NullableInstanceSort {
|
||||
return &NullableInstanceSort{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInstanceSort) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInstanceSort) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_instance_sort_test.go
Normal file
11
pkg/postgresflexalpha/model_instance_sort_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
172
pkg/postgresflexalpha/model_instance_storage_range.go
Normal file
172
pkg/postgresflexalpha/model_instance_storage_range.go
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the InstanceStorageRange type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &InstanceStorageRange{}
|
||||
|
||||
/*
|
||||
types and functions for max
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type InstanceStorageRangeGetMaxAttributeType = *int64
|
||||
type InstanceStorageRangeGetMaxArgType = int64
|
||||
type InstanceStorageRangeGetMaxRetType = int64
|
||||
|
||||
func getInstanceStorageRangeGetMaxAttributeTypeOk(arg InstanceStorageRangeGetMaxAttributeType) (ret InstanceStorageRangeGetMaxRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setInstanceStorageRangeGetMaxAttributeType(arg *InstanceStorageRangeGetMaxAttributeType, val InstanceStorageRangeGetMaxRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for min
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type InstanceStorageRangeGetMinAttributeType = *int64
|
||||
type InstanceStorageRangeGetMinArgType = int64
|
||||
type InstanceStorageRangeGetMinRetType = int64
|
||||
|
||||
func getInstanceStorageRangeGetMinAttributeTypeOk(arg InstanceStorageRangeGetMinAttributeType) (ret InstanceStorageRangeGetMinRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setInstanceStorageRangeGetMinAttributeType(arg *InstanceStorageRangeGetMinAttributeType, val InstanceStorageRangeGetMinRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// InstanceStorageRange Contains the minimum and maximum storage space.
|
||||
type InstanceStorageRange struct {
|
||||
// The maximum available amount of storage.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
Max InstanceStorageRangeGetMaxAttributeType `json:"max" required:"true"`
|
||||
// The minimum available amount of storage.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
Min InstanceStorageRangeGetMinAttributeType `json:"min" required:"true"`
|
||||
}
|
||||
|
||||
type _InstanceStorageRange InstanceStorageRange
|
||||
|
||||
// NewInstanceStorageRange instantiates a new InstanceStorageRange 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 NewInstanceStorageRange(max InstanceStorageRangeGetMaxArgType, min InstanceStorageRangeGetMinArgType) *InstanceStorageRange {
|
||||
this := InstanceStorageRange{}
|
||||
setInstanceStorageRangeGetMaxAttributeType(&this.Max, max)
|
||||
setInstanceStorageRangeGetMinAttributeType(&this.Min, min)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewInstanceStorageRangeWithDefaults instantiates a new InstanceStorageRange 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 NewInstanceStorageRangeWithDefaults() *InstanceStorageRange {
|
||||
this := InstanceStorageRange{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetMax returns the Max field value
|
||||
func (o *InstanceStorageRange) GetMax() (ret InstanceStorageRangeGetMaxRetType) {
|
||||
ret, _ = o.GetMaxOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMaxOk returns a tuple with the Max field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstanceStorageRange) GetMaxOk() (ret InstanceStorageRangeGetMaxRetType, ok bool) {
|
||||
return getInstanceStorageRangeGetMaxAttributeTypeOk(o.Max)
|
||||
}
|
||||
|
||||
// SetMax sets field value
|
||||
func (o *InstanceStorageRange) SetMax(v InstanceStorageRangeGetMaxRetType) {
|
||||
setInstanceStorageRangeGetMaxAttributeType(&o.Max, v)
|
||||
}
|
||||
|
||||
// GetMin returns the Min field value
|
||||
func (o *InstanceStorageRange) GetMin() (ret InstanceStorageRangeGetMinRetType) {
|
||||
ret, _ = o.GetMinOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMinOk returns a tuple with the Min field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstanceStorageRange) GetMinOk() (ret InstanceStorageRangeGetMinRetType, ok bool) {
|
||||
return getInstanceStorageRangeGetMinAttributeTypeOk(o.Min)
|
||||
}
|
||||
|
||||
// SetMin sets field value
|
||||
func (o *InstanceStorageRange) SetMin(v InstanceStorageRangeGetMinRetType) {
|
||||
setInstanceStorageRangeGetMinAttributeType(&o.Min, v)
|
||||
}
|
||||
|
||||
func (o InstanceStorageRange) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getInstanceStorageRangeGetMaxAttributeTypeOk(o.Max); ok {
|
||||
toSerialize["Max"] = val
|
||||
}
|
||||
if val, ok := getInstanceStorageRangeGetMinAttributeTypeOk(o.Min); ok {
|
||||
toSerialize["Min"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableInstanceStorageRange struct {
|
||||
value *InstanceStorageRange
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInstanceStorageRange) Get() *InstanceStorageRange {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInstanceStorageRange) Set(val *InstanceStorageRange) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInstanceStorageRange) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInstanceStorageRange) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInstanceStorageRange(val *InstanceStorageRange) *NullableInstanceStorageRange {
|
||||
return &NullableInstanceStorageRange{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInstanceStorageRange) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInstanceStorageRange) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_instance_storage_range_test.go
Normal file
11
pkg/postgresflexalpha/model_instance_storage_range_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
350
pkg/postgresflexalpha/model_list_backup.go
Normal file
350
pkg/postgresflexalpha/model_list_backup.go
Normal file
|
|
@ -0,0 +1,350 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListBackup type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListBackup{}
|
||||
|
||||
/*
|
||||
types and functions for completionTime
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListBackupGetCompletionTimeAttributeType = *string
|
||||
|
||||
func getListBackupGetCompletionTimeAttributeTypeOk(arg ListBackupGetCompletionTimeAttributeType) (ret ListBackupGetCompletionTimeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupGetCompletionTimeAttributeType(arg *ListBackupGetCompletionTimeAttributeType, val ListBackupGetCompletionTimeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListBackupGetCompletionTimeArgType = string
|
||||
type ListBackupGetCompletionTimeRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type ListBackupGetIdAttributeType = *int64
|
||||
type ListBackupGetIdArgType = int64
|
||||
type ListBackupGetIdRetType = int64
|
||||
|
||||
func getListBackupGetIdAttributeTypeOk(arg ListBackupGetIdAttributeType) (ret ListBackupGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupGetIdAttributeType(arg *ListBackupGetIdAttributeType, val ListBackupGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListBackupGetNameAttributeType = *string
|
||||
|
||||
func getListBackupGetNameAttributeTypeOk(arg ListBackupGetNameAttributeType) (ret ListBackupGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupGetNameAttributeType(arg *ListBackupGetNameAttributeType, val ListBackupGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListBackupGetNameArgType = string
|
||||
type ListBackupGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for retainedUntil
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListBackupGetRetainedUntilAttributeType = *string
|
||||
|
||||
func getListBackupGetRetainedUntilAttributeTypeOk(arg ListBackupGetRetainedUntilAttributeType) (ret ListBackupGetRetainedUntilRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupGetRetainedUntilAttributeType(arg *ListBackupGetRetainedUntilAttributeType, val ListBackupGetRetainedUntilRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListBackupGetRetainedUntilArgType = string
|
||||
type ListBackupGetRetainedUntilRetType = string
|
||||
|
||||
/*
|
||||
types and functions for size
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type ListBackupGetSizeAttributeType = *int64
|
||||
type ListBackupGetSizeArgType = int64
|
||||
type ListBackupGetSizeRetType = int64
|
||||
|
||||
func getListBackupGetSizeAttributeTypeOk(arg ListBackupGetSizeAttributeType) (ret ListBackupGetSizeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupGetSizeAttributeType(arg *ListBackupGetSizeAttributeType, val ListBackupGetSizeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for type
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListBackupGetTypeAttributeType = *string
|
||||
|
||||
func getListBackupGetTypeAttributeTypeOk(arg ListBackupGetTypeAttributeType) (ret ListBackupGetTypeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupGetTypeAttributeType(arg *ListBackupGetTypeAttributeType, val ListBackupGetTypeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListBackupGetTypeArgType = string
|
||||
type ListBackupGetTypeRetType = string
|
||||
|
||||
// ListBackup struct for ListBackup
|
||||
type ListBackup struct {
|
||||
// The time when the backup was completed in RFC3339 format.
|
||||
// REQUIRED
|
||||
CompletionTime ListBackupGetCompletionTimeAttributeType `json:"completionTime" required:"true"`
|
||||
// The ID of the backup.
|
||||
// REQUIRED
|
||||
Id ListBackupGetIdAttributeType `json:"id" required:"true"`
|
||||
// The name of the backup.
|
||||
// REQUIRED
|
||||
Name ListBackupGetNameAttributeType `json:"name" required:"true"`
|
||||
// The time until the backup will be retained.
|
||||
// REQUIRED
|
||||
RetainedUntil ListBackupGetRetainedUntilAttributeType `json:"retainedUntil" required:"true"`
|
||||
// The size of the backup in bytes.
|
||||
// REQUIRED
|
||||
Size ListBackupGetSizeAttributeType `json:"size" required:"true"`
|
||||
// The type of the backup, which can be automated or manual triggered.
|
||||
// REQUIRED
|
||||
Type ListBackupGetTypeAttributeType `json:"type" required:"true"`
|
||||
}
|
||||
|
||||
type _ListBackup ListBackup
|
||||
|
||||
// NewListBackup instantiates a new ListBackup 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 NewListBackup(completionTime ListBackupGetCompletionTimeArgType, id ListBackupGetIdArgType, name ListBackupGetNameArgType, retainedUntil ListBackupGetRetainedUntilArgType, size ListBackupGetSizeArgType, types ListBackupGetTypeArgType) *ListBackup {
|
||||
this := ListBackup{}
|
||||
setListBackupGetCompletionTimeAttributeType(&this.CompletionTime, completionTime)
|
||||
setListBackupGetIdAttributeType(&this.Id, id)
|
||||
setListBackupGetNameAttributeType(&this.Name, name)
|
||||
setListBackupGetRetainedUntilAttributeType(&this.RetainedUntil, retainedUntil)
|
||||
setListBackupGetSizeAttributeType(&this.Size, size)
|
||||
setListBackupGetTypeAttributeType(&this.Type, types)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListBackupWithDefaults instantiates a new ListBackup 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 NewListBackupWithDefaults() *ListBackup {
|
||||
this := ListBackup{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCompletionTime returns the CompletionTime field value
|
||||
func (o *ListBackup) GetCompletionTime() (ret ListBackupGetCompletionTimeRetType) {
|
||||
ret, _ = o.GetCompletionTimeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCompletionTimeOk returns a tuple with the CompletionTime field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackup) GetCompletionTimeOk() (ret ListBackupGetCompletionTimeRetType, ok bool) {
|
||||
return getListBackupGetCompletionTimeAttributeTypeOk(o.CompletionTime)
|
||||
}
|
||||
|
||||
// SetCompletionTime sets field value
|
||||
func (o *ListBackup) SetCompletionTime(v ListBackupGetCompletionTimeRetType) {
|
||||
setListBackupGetCompletionTimeAttributeType(&o.CompletionTime, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *ListBackup) GetId() (ret ListBackupGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackup) GetIdOk() (ret ListBackupGetIdRetType, ok bool) {
|
||||
return getListBackupGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *ListBackup) SetId(v ListBackupGetIdRetType) {
|
||||
setListBackupGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *ListBackup) GetName() (ret ListBackupGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackup) GetNameOk() (ret ListBackupGetNameRetType, ok bool) {
|
||||
return getListBackupGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *ListBackup) SetName(v ListBackupGetNameRetType) {
|
||||
setListBackupGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetRetainedUntil returns the RetainedUntil field value
|
||||
func (o *ListBackup) GetRetainedUntil() (ret ListBackupGetRetainedUntilRetType) {
|
||||
ret, _ = o.GetRetainedUntilOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRetainedUntilOk returns a tuple with the RetainedUntil field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackup) GetRetainedUntilOk() (ret ListBackupGetRetainedUntilRetType, ok bool) {
|
||||
return getListBackupGetRetainedUntilAttributeTypeOk(o.RetainedUntil)
|
||||
}
|
||||
|
||||
// SetRetainedUntil sets field value
|
||||
func (o *ListBackup) SetRetainedUntil(v ListBackupGetRetainedUntilRetType) {
|
||||
setListBackupGetRetainedUntilAttributeType(&o.RetainedUntil, v)
|
||||
}
|
||||
|
||||
// GetSize returns the Size field value
|
||||
func (o *ListBackup) GetSize() (ret ListBackupGetSizeRetType) {
|
||||
ret, _ = o.GetSizeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetSizeOk returns a tuple with the Size field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackup) GetSizeOk() (ret ListBackupGetSizeRetType, ok bool) {
|
||||
return getListBackupGetSizeAttributeTypeOk(o.Size)
|
||||
}
|
||||
|
||||
// SetSize sets field value
|
||||
func (o *ListBackup) SetSize(v ListBackupGetSizeRetType) {
|
||||
setListBackupGetSizeAttributeType(&o.Size, v)
|
||||
}
|
||||
|
||||
// GetType returns the Type field value
|
||||
func (o *ListBackup) GetType() (ret ListBackupGetTypeRetType) {
|
||||
ret, _ = o.GetTypeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetTypeOk returns a tuple with the Type field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackup) GetTypeOk() (ret ListBackupGetTypeRetType, ok bool) {
|
||||
return getListBackupGetTypeAttributeTypeOk(o.Type)
|
||||
}
|
||||
|
||||
// SetType sets field value
|
||||
func (o *ListBackup) SetType(v ListBackupGetTypeRetType) {
|
||||
setListBackupGetTypeAttributeType(&o.Type, v)
|
||||
}
|
||||
|
||||
func (o ListBackup) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListBackupGetCompletionTimeAttributeTypeOk(o.CompletionTime); ok {
|
||||
toSerialize["CompletionTime"] = val
|
||||
}
|
||||
if val, ok := getListBackupGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getListBackupGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getListBackupGetRetainedUntilAttributeTypeOk(o.RetainedUntil); ok {
|
||||
toSerialize["RetainedUntil"] = val
|
||||
}
|
||||
if val, ok := getListBackupGetSizeAttributeTypeOk(o.Size); ok {
|
||||
toSerialize["Size"] = val
|
||||
}
|
||||
if val, ok := getListBackupGetTypeAttributeTypeOk(o.Type); ok {
|
||||
toSerialize["Type"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListBackup struct {
|
||||
value *ListBackup
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListBackup) Get() *ListBackup {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListBackup) Set(val *ListBackup) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListBackup) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListBackup) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListBackup(val *ListBackup) *NullableListBackup {
|
||||
return &NullableListBackup{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListBackup) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListBackup) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
169
pkg/postgresflexalpha/model_list_backup_response.go
Normal file
169
pkg/postgresflexalpha/model_list_backup_response.go
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListBackupResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListBackupResponse{}
|
||||
|
||||
/*
|
||||
types and functions for backups
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListBackupResponseGetBackupsAttributeType = *[]ListBackup
|
||||
type ListBackupResponseGetBackupsArgType = []ListBackup
|
||||
type ListBackupResponseGetBackupsRetType = []ListBackup
|
||||
|
||||
func getListBackupResponseGetBackupsAttributeTypeOk(arg ListBackupResponseGetBackupsAttributeType) (ret ListBackupResponseGetBackupsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupResponseGetBackupsAttributeType(arg *ListBackupResponseGetBackupsAttributeType, val ListBackupResponseGetBackupsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for pagination
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type ListBackupResponseGetPaginationAttributeType = *Pagination
|
||||
type ListBackupResponseGetPaginationArgType = Pagination
|
||||
type ListBackupResponseGetPaginationRetType = Pagination
|
||||
|
||||
func getListBackupResponseGetPaginationAttributeTypeOk(arg ListBackupResponseGetPaginationAttributeType) (ret ListBackupResponseGetPaginationRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListBackupResponseGetPaginationAttributeType(arg *ListBackupResponseGetPaginationAttributeType, val ListBackupResponseGetPaginationRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListBackupResponse struct for ListBackupResponse
|
||||
type ListBackupResponse struct {
|
||||
// The list containing the information about the backups.
|
||||
// REQUIRED
|
||||
Backups ListBackupResponseGetBackupsAttributeType `json:"backups" required:"true"`
|
||||
// REQUIRED
|
||||
Pagination ListBackupResponseGetPaginationAttributeType `json:"pagination" required:"true"`
|
||||
}
|
||||
|
||||
type _ListBackupResponse ListBackupResponse
|
||||
|
||||
// NewListBackupResponse instantiates a new ListBackupResponse 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 NewListBackupResponse(backups ListBackupResponseGetBackupsArgType, pagination ListBackupResponseGetPaginationArgType) *ListBackupResponse {
|
||||
this := ListBackupResponse{}
|
||||
setListBackupResponseGetBackupsAttributeType(&this.Backups, backups)
|
||||
setListBackupResponseGetPaginationAttributeType(&this.Pagination, pagination)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListBackupResponseWithDefaults instantiates a new ListBackupResponse 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 NewListBackupResponseWithDefaults() *ListBackupResponse {
|
||||
this := ListBackupResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetBackups returns the Backups field value
|
||||
func (o *ListBackupResponse) GetBackups() (ret ListBackupResponseGetBackupsRetType) {
|
||||
ret, _ = o.GetBackupsOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetBackupsOk returns a tuple with the Backups field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackupResponse) GetBackupsOk() (ret ListBackupResponseGetBackupsRetType, ok bool) {
|
||||
return getListBackupResponseGetBackupsAttributeTypeOk(o.Backups)
|
||||
}
|
||||
|
||||
// SetBackups sets field value
|
||||
func (o *ListBackupResponse) SetBackups(v ListBackupResponseGetBackupsRetType) {
|
||||
setListBackupResponseGetBackupsAttributeType(&o.Backups, v)
|
||||
}
|
||||
|
||||
// GetPagination returns the Pagination field value
|
||||
func (o *ListBackupResponse) GetPagination() (ret ListBackupResponseGetPaginationRetType) {
|
||||
ret, _ = o.GetPaginationOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPaginationOk returns a tuple with the Pagination field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListBackupResponse) GetPaginationOk() (ret ListBackupResponseGetPaginationRetType, ok bool) {
|
||||
return getListBackupResponseGetPaginationAttributeTypeOk(o.Pagination)
|
||||
}
|
||||
|
||||
// SetPagination sets field value
|
||||
func (o *ListBackupResponse) SetPagination(v ListBackupResponseGetPaginationRetType) {
|
||||
setListBackupResponseGetPaginationAttributeType(&o.Pagination, v)
|
||||
}
|
||||
|
||||
func (o ListBackupResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListBackupResponseGetBackupsAttributeTypeOk(o.Backups); ok {
|
||||
toSerialize["Backups"] = val
|
||||
}
|
||||
if val, ok := getListBackupResponseGetPaginationAttributeTypeOk(o.Pagination); ok {
|
||||
toSerialize["Pagination"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListBackupResponse struct {
|
||||
value *ListBackupResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListBackupResponse) Get() *ListBackupResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListBackupResponse) Set(val *ListBackupResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListBackupResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListBackupResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListBackupResponse(val *ListBackupResponse) *NullableListBackupResponse {
|
||||
return &NullableListBackupResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListBackupResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListBackupResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_backup_response_test.go
Normal file
11
pkg/postgresflexalpha/model_list_backup_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
11
pkg/postgresflexalpha/model_list_backup_test.go
Normal file
11
pkg/postgresflexalpha/model_list_backup_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
261
pkg/postgresflexalpha/model_list_database.go
Normal file
261
pkg/postgresflexalpha/model_list_database.go
Normal file
|
|
@ -0,0 +1,261 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListDatabase type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListDatabase{}
|
||||
|
||||
/*
|
||||
types and functions for created
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListDatabaseGetCreatedAttributeType = *string
|
||||
|
||||
func getListDatabaseGetCreatedAttributeTypeOk(arg ListDatabaseGetCreatedAttributeType) (ret ListDatabaseGetCreatedRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetCreatedAttributeType(arg *ListDatabaseGetCreatedAttributeType, val ListDatabaseGetCreatedRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListDatabaseGetCreatedArgType = string
|
||||
type ListDatabaseGetCreatedRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type ListDatabaseGetIdAttributeType = *int64
|
||||
type ListDatabaseGetIdArgType = int64
|
||||
type ListDatabaseGetIdRetType = int64
|
||||
|
||||
func getListDatabaseGetIdAttributeTypeOk(arg ListDatabaseGetIdAttributeType) (ret ListDatabaseGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetIdAttributeType(arg *ListDatabaseGetIdAttributeType, val ListDatabaseGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListDatabaseGetNameAttributeType = *string
|
||||
|
||||
func getListDatabaseGetNameAttributeTypeOk(arg ListDatabaseGetNameAttributeType) (ret ListDatabaseGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetNameAttributeType(arg *ListDatabaseGetNameAttributeType, val ListDatabaseGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListDatabaseGetNameArgType = string
|
||||
type ListDatabaseGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for owner
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListDatabaseGetOwnerAttributeType = *string
|
||||
|
||||
func getListDatabaseGetOwnerAttributeTypeOk(arg ListDatabaseGetOwnerAttributeType) (ret ListDatabaseGetOwnerRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabaseGetOwnerAttributeType(arg *ListDatabaseGetOwnerAttributeType, val ListDatabaseGetOwnerRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListDatabaseGetOwnerArgType = string
|
||||
type ListDatabaseGetOwnerRetType = string
|
||||
|
||||
// ListDatabase struct for ListDatabase
|
||||
type ListDatabase struct {
|
||||
// The data when the database was created in RFC3339 format.
|
||||
// REQUIRED
|
||||
Created ListDatabaseGetCreatedAttributeType `json:"created" required:"true"`
|
||||
// The id of the database.
|
||||
// REQUIRED
|
||||
Id ListDatabaseGetIdAttributeType `json:"id" required:"true"`
|
||||
// The name of the database.
|
||||
// REQUIRED
|
||||
Name ListDatabaseGetNameAttributeType `json:"name" required:"true"`
|
||||
// The owner of the database.
|
||||
// REQUIRED
|
||||
Owner ListDatabaseGetOwnerAttributeType `json:"owner" required:"true"`
|
||||
}
|
||||
|
||||
type _ListDatabase ListDatabase
|
||||
|
||||
// NewListDatabase instantiates a new ListDatabase 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 NewListDatabase(created ListDatabaseGetCreatedArgType, id ListDatabaseGetIdArgType, name ListDatabaseGetNameArgType, owner ListDatabaseGetOwnerArgType) *ListDatabase {
|
||||
this := ListDatabase{}
|
||||
setListDatabaseGetCreatedAttributeType(&this.Created, created)
|
||||
setListDatabaseGetIdAttributeType(&this.Id, id)
|
||||
setListDatabaseGetNameAttributeType(&this.Name, name)
|
||||
setListDatabaseGetOwnerAttributeType(&this.Owner, owner)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListDatabaseWithDefaults instantiates a new ListDatabase 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 NewListDatabaseWithDefaults() *ListDatabase {
|
||||
this := ListDatabase{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCreated returns the Created field value
|
||||
func (o *ListDatabase) GetCreated() (ret ListDatabaseGetCreatedRetType) {
|
||||
ret, _ = o.GetCreatedOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCreatedOk returns a tuple with the Created field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabase) GetCreatedOk() (ret ListDatabaseGetCreatedRetType, ok bool) {
|
||||
return getListDatabaseGetCreatedAttributeTypeOk(o.Created)
|
||||
}
|
||||
|
||||
// SetCreated sets field value
|
||||
func (o *ListDatabase) SetCreated(v ListDatabaseGetCreatedRetType) {
|
||||
setListDatabaseGetCreatedAttributeType(&o.Created, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *ListDatabase) GetId() (ret ListDatabaseGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabase) GetIdOk() (ret ListDatabaseGetIdRetType, ok bool) {
|
||||
return getListDatabaseGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *ListDatabase) SetId(v ListDatabaseGetIdRetType) {
|
||||
setListDatabaseGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *ListDatabase) GetName() (ret ListDatabaseGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabase) GetNameOk() (ret ListDatabaseGetNameRetType, ok bool) {
|
||||
return getListDatabaseGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *ListDatabase) SetName(v ListDatabaseGetNameRetType) {
|
||||
setListDatabaseGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetOwner returns the Owner field value
|
||||
func (o *ListDatabase) GetOwner() (ret ListDatabaseGetOwnerRetType) {
|
||||
ret, _ = o.GetOwnerOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetOwnerOk returns a tuple with the Owner field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabase) GetOwnerOk() (ret ListDatabaseGetOwnerRetType, ok bool) {
|
||||
return getListDatabaseGetOwnerAttributeTypeOk(o.Owner)
|
||||
}
|
||||
|
||||
// SetOwner sets field value
|
||||
func (o *ListDatabase) SetOwner(v ListDatabaseGetOwnerRetType) {
|
||||
setListDatabaseGetOwnerAttributeType(&o.Owner, v)
|
||||
}
|
||||
|
||||
func (o ListDatabase) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListDatabaseGetCreatedAttributeTypeOk(o.Created); ok {
|
||||
toSerialize["Created"] = val
|
||||
}
|
||||
if val, ok := getListDatabaseGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getListDatabaseGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getListDatabaseGetOwnerAttributeTypeOk(o.Owner); ok {
|
||||
toSerialize["Owner"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListDatabase struct {
|
||||
value *ListDatabase
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListDatabase) Get() *ListDatabase {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListDatabase) Set(val *ListDatabase) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListDatabase) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListDatabase) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListDatabase(val *ListDatabase) *NullableListDatabase {
|
||||
return &NullableListDatabase{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListDatabase) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListDatabase) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_database_test.go
Normal file
11
pkg/postgresflexalpha/model_list_database_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
169
pkg/postgresflexalpha/model_list_databases_response.go
Normal file
169
pkg/postgresflexalpha/model_list_databases_response.go
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListDatabasesResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListDatabasesResponse{}
|
||||
|
||||
/*
|
||||
types and functions for databases
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListDatabasesResponseGetDatabasesAttributeType = *[]ListDatabase
|
||||
type ListDatabasesResponseGetDatabasesArgType = []ListDatabase
|
||||
type ListDatabasesResponseGetDatabasesRetType = []ListDatabase
|
||||
|
||||
func getListDatabasesResponseGetDatabasesAttributeTypeOk(arg ListDatabasesResponseGetDatabasesAttributeType) (ret ListDatabasesResponseGetDatabasesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabasesResponseGetDatabasesAttributeType(arg *ListDatabasesResponseGetDatabasesAttributeType, val ListDatabasesResponseGetDatabasesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for pagination
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type ListDatabasesResponseGetPaginationAttributeType = *Pagination
|
||||
type ListDatabasesResponseGetPaginationArgType = Pagination
|
||||
type ListDatabasesResponseGetPaginationRetType = Pagination
|
||||
|
||||
func getListDatabasesResponseGetPaginationAttributeTypeOk(arg ListDatabasesResponseGetPaginationAttributeType) (ret ListDatabasesResponseGetPaginationRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListDatabasesResponseGetPaginationAttributeType(arg *ListDatabasesResponseGetPaginationAttributeType, val ListDatabasesResponseGetPaginationRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListDatabasesResponse struct for ListDatabasesResponse
|
||||
type ListDatabasesResponse struct {
|
||||
// A list containing all databases for the instance.
|
||||
// REQUIRED
|
||||
Databases ListDatabasesResponseGetDatabasesAttributeType `json:"databases" required:"true"`
|
||||
// REQUIRED
|
||||
Pagination ListDatabasesResponseGetPaginationAttributeType `json:"pagination" required:"true"`
|
||||
}
|
||||
|
||||
type _ListDatabasesResponse ListDatabasesResponse
|
||||
|
||||
// NewListDatabasesResponse instantiates a new ListDatabasesResponse 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 NewListDatabasesResponse(databases ListDatabasesResponseGetDatabasesArgType, pagination ListDatabasesResponseGetPaginationArgType) *ListDatabasesResponse {
|
||||
this := ListDatabasesResponse{}
|
||||
setListDatabasesResponseGetDatabasesAttributeType(&this.Databases, databases)
|
||||
setListDatabasesResponseGetPaginationAttributeType(&this.Pagination, pagination)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListDatabasesResponseWithDefaults instantiates a new ListDatabasesResponse 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 NewListDatabasesResponseWithDefaults() *ListDatabasesResponse {
|
||||
this := ListDatabasesResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetDatabases returns the Databases field value
|
||||
func (o *ListDatabasesResponse) GetDatabases() (ret ListDatabasesResponseGetDatabasesRetType) {
|
||||
ret, _ = o.GetDatabasesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetDatabasesOk returns a tuple with the Databases field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabasesResponse) GetDatabasesOk() (ret ListDatabasesResponseGetDatabasesRetType, ok bool) {
|
||||
return getListDatabasesResponseGetDatabasesAttributeTypeOk(o.Databases)
|
||||
}
|
||||
|
||||
// SetDatabases sets field value
|
||||
func (o *ListDatabasesResponse) SetDatabases(v ListDatabasesResponseGetDatabasesRetType) {
|
||||
setListDatabasesResponseGetDatabasesAttributeType(&o.Databases, v)
|
||||
}
|
||||
|
||||
// GetPagination returns the Pagination field value
|
||||
func (o *ListDatabasesResponse) GetPagination() (ret ListDatabasesResponseGetPaginationRetType) {
|
||||
ret, _ = o.GetPaginationOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPaginationOk returns a tuple with the Pagination field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListDatabasesResponse) GetPaginationOk() (ret ListDatabasesResponseGetPaginationRetType, ok bool) {
|
||||
return getListDatabasesResponseGetPaginationAttributeTypeOk(o.Pagination)
|
||||
}
|
||||
|
||||
// SetPagination sets field value
|
||||
func (o *ListDatabasesResponse) SetPagination(v ListDatabasesResponseGetPaginationRetType) {
|
||||
setListDatabasesResponseGetPaginationAttributeType(&o.Pagination, v)
|
||||
}
|
||||
|
||||
func (o ListDatabasesResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListDatabasesResponseGetDatabasesAttributeTypeOk(o.Databases); ok {
|
||||
toSerialize["Databases"] = val
|
||||
}
|
||||
if val, ok := getListDatabasesResponseGetPaginationAttributeTypeOk(o.Pagination); ok {
|
||||
toSerialize["Pagination"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListDatabasesResponse struct {
|
||||
value *ListDatabasesResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListDatabasesResponse) Get() *ListDatabasesResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListDatabasesResponse) Set(val *ListDatabasesResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListDatabasesResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListDatabasesResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListDatabasesResponse(val *ListDatabasesResponse) *NullableListDatabasesResponse {
|
||||
return &NullableListDatabasesResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListDatabasesResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListDatabasesResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_databases_response_test.go
Normal file
11
pkg/postgresflexalpha/model_list_databases_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
439
pkg/postgresflexalpha/model_list_flavors.go
Normal file
439
pkg/postgresflexalpha/model_list_flavors.go
Normal file
|
|
@ -0,0 +1,439 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListFlavors type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListFlavors{}
|
||||
|
||||
/*
|
||||
types and functions for cpu
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type ListFlavorsGetCpuAttributeType = *int64
|
||||
type ListFlavorsGetCpuArgType = int64
|
||||
type ListFlavorsGetCpuRetType = int64
|
||||
|
||||
func getListFlavorsGetCpuAttributeTypeOk(arg ListFlavorsGetCpuAttributeType) (ret ListFlavorsGetCpuRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetCpuAttributeType(arg *ListFlavorsGetCpuAttributeType, val ListFlavorsGetCpuRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for description
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListFlavorsGetDescriptionAttributeType = *string
|
||||
|
||||
func getListFlavorsGetDescriptionAttributeTypeOk(arg ListFlavorsGetDescriptionAttributeType) (ret ListFlavorsGetDescriptionRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetDescriptionAttributeType(arg *ListFlavorsGetDescriptionAttributeType, val ListFlavorsGetDescriptionRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListFlavorsGetDescriptionArgType = string
|
||||
type ListFlavorsGetDescriptionRetType = string
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListFlavorsGetIdAttributeType = *string
|
||||
|
||||
func getListFlavorsGetIdAttributeTypeOk(arg ListFlavorsGetIdAttributeType) (ret ListFlavorsGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetIdAttributeType(arg *ListFlavorsGetIdAttributeType, val ListFlavorsGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListFlavorsGetIdArgType = string
|
||||
type ListFlavorsGetIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for maxGB
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type ListFlavorsGetMaxGBAttributeType = *int64
|
||||
type ListFlavorsGetMaxGBArgType = int64
|
||||
type ListFlavorsGetMaxGBRetType = int64
|
||||
|
||||
func getListFlavorsGetMaxGBAttributeTypeOk(arg ListFlavorsGetMaxGBAttributeType) (ret ListFlavorsGetMaxGBRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetMaxGBAttributeType(arg *ListFlavorsGetMaxGBAttributeType, val ListFlavorsGetMaxGBRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for memory
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type ListFlavorsGetMemoryAttributeType = *int64
|
||||
type ListFlavorsGetMemoryArgType = int64
|
||||
type ListFlavorsGetMemoryRetType = int64
|
||||
|
||||
func getListFlavorsGetMemoryAttributeTypeOk(arg ListFlavorsGetMemoryAttributeType) (ret ListFlavorsGetMemoryRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetMemoryAttributeType(arg *ListFlavorsGetMemoryAttributeType, val ListFlavorsGetMemoryRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for minGB
|
||||
*/
|
||||
|
||||
// isInteger
|
||||
type ListFlavorsGetMinGBAttributeType = *int64
|
||||
type ListFlavorsGetMinGBArgType = int64
|
||||
type ListFlavorsGetMinGBRetType = int64
|
||||
|
||||
func getListFlavorsGetMinGBAttributeTypeOk(arg ListFlavorsGetMinGBAttributeType) (ret ListFlavorsGetMinGBRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetMinGBAttributeType(arg *ListFlavorsGetMinGBAttributeType, val ListFlavorsGetMinGBRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for nodeType
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListFlavorsGetNodeTypeAttributeType = *string
|
||||
|
||||
func getListFlavorsGetNodeTypeAttributeTypeOk(arg ListFlavorsGetNodeTypeAttributeType) (ret ListFlavorsGetNodeTypeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetNodeTypeAttributeType(arg *ListFlavorsGetNodeTypeAttributeType, val ListFlavorsGetNodeTypeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListFlavorsGetNodeTypeArgType = string
|
||||
type ListFlavorsGetNodeTypeRetType = string
|
||||
|
||||
/*
|
||||
types and functions for storageClasses
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListFlavorsGetStorageClassesAttributeType = *[]FlavorStorageClassesStorageClass
|
||||
type ListFlavorsGetStorageClassesArgType = []FlavorStorageClassesStorageClass
|
||||
type ListFlavorsGetStorageClassesRetType = []FlavorStorageClassesStorageClass
|
||||
|
||||
func getListFlavorsGetStorageClassesAttributeTypeOk(arg ListFlavorsGetStorageClassesAttributeType) (ret ListFlavorsGetStorageClassesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListFlavorsGetStorageClassesAttributeType(arg *ListFlavorsGetStorageClassesAttributeType, val ListFlavorsGetStorageClassesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListFlavors The flavor of the instance containing the technical features.
|
||||
type ListFlavors struct {
|
||||
// The cpu count of the instance.
|
||||
// REQUIRED
|
||||
Cpu ListFlavorsGetCpuAttributeType `json:"cpu" required:"true"`
|
||||
// The flavor description.
|
||||
// REQUIRED
|
||||
Description ListFlavorsGetDescriptionAttributeType `json:"description" required:"true"`
|
||||
// The id of the instance flavor.
|
||||
// REQUIRED
|
||||
Id ListFlavorsGetIdAttributeType `json:"id" required:"true"`
|
||||
// maximum storage which can be ordered for the flavor in Gigabyte.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
MaxGB ListFlavorsGetMaxGBAttributeType `json:"maxGB" required:"true"`
|
||||
// The memory of the instance in Gibibyte.
|
||||
// REQUIRED
|
||||
Memory ListFlavorsGetMemoryAttributeType `json:"memory" required:"true"`
|
||||
// minimum storage which is required to order in Gigabyte.
|
||||
// Can be cast to int32 without loss of precision.
|
||||
// REQUIRED
|
||||
MinGB ListFlavorsGetMinGBAttributeType `json:"minGB" required:"true"`
|
||||
// defines the nodeType it can be either single or replica
|
||||
// REQUIRED
|
||||
NodeType ListFlavorsGetNodeTypeAttributeType `json:"nodeType" required:"true"`
|
||||
// maximum storage which can be ordered for the flavor in Gigabyte.
|
||||
// REQUIRED
|
||||
StorageClasses ListFlavorsGetStorageClassesAttributeType `json:"storageClasses" required:"true"`
|
||||
}
|
||||
|
||||
type _ListFlavors ListFlavors
|
||||
|
||||
// NewListFlavors instantiates a new ListFlavors 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 NewListFlavors(cpu ListFlavorsGetCpuArgType, description ListFlavorsGetDescriptionArgType, id ListFlavorsGetIdArgType, maxGB ListFlavorsGetMaxGBArgType, memory ListFlavorsGetMemoryArgType, minGB ListFlavorsGetMinGBArgType, nodeType ListFlavorsGetNodeTypeArgType, storageClasses ListFlavorsGetStorageClassesArgType) *ListFlavors {
|
||||
this := ListFlavors{}
|
||||
setListFlavorsGetCpuAttributeType(&this.Cpu, cpu)
|
||||
setListFlavorsGetDescriptionAttributeType(&this.Description, description)
|
||||
setListFlavorsGetIdAttributeType(&this.Id, id)
|
||||
setListFlavorsGetMaxGBAttributeType(&this.MaxGB, maxGB)
|
||||
setListFlavorsGetMemoryAttributeType(&this.Memory, memory)
|
||||
setListFlavorsGetMinGBAttributeType(&this.MinGB, minGB)
|
||||
setListFlavorsGetNodeTypeAttributeType(&this.NodeType, nodeType)
|
||||
setListFlavorsGetStorageClassesAttributeType(&this.StorageClasses, storageClasses)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListFlavorsWithDefaults instantiates a new ListFlavors 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 NewListFlavorsWithDefaults() *ListFlavors {
|
||||
this := ListFlavors{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCpu returns the Cpu field value
|
||||
func (o *ListFlavors) GetCpu() (ret ListFlavorsGetCpuRetType) {
|
||||
ret, _ = o.GetCpuOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetCpuOk returns a tuple with the Cpu field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetCpuOk() (ret ListFlavorsGetCpuRetType, ok bool) {
|
||||
return getListFlavorsGetCpuAttributeTypeOk(o.Cpu)
|
||||
}
|
||||
|
||||
// SetCpu sets field value
|
||||
func (o *ListFlavors) SetCpu(v ListFlavorsGetCpuRetType) {
|
||||
setListFlavorsGetCpuAttributeType(&o.Cpu, v)
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value
|
||||
func (o *ListFlavors) GetDescription() (ret ListFlavorsGetDescriptionRetType) {
|
||||
ret, _ = o.GetDescriptionOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetDescriptionOk() (ret ListFlavorsGetDescriptionRetType, ok bool) {
|
||||
return getListFlavorsGetDescriptionAttributeTypeOk(o.Description)
|
||||
}
|
||||
|
||||
// SetDescription sets field value
|
||||
func (o *ListFlavors) SetDescription(v ListFlavorsGetDescriptionRetType) {
|
||||
setListFlavorsGetDescriptionAttributeType(&o.Description, v)
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *ListFlavors) GetId() (ret ListFlavorsGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetIdOk() (ret ListFlavorsGetIdRetType, ok bool) {
|
||||
return getListFlavorsGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *ListFlavors) SetId(v ListFlavorsGetIdRetType) {
|
||||
setListFlavorsGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetMaxGB returns the MaxGB field value
|
||||
func (o *ListFlavors) GetMaxGB() (ret ListFlavorsGetMaxGBRetType) {
|
||||
ret, _ = o.GetMaxGBOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMaxGBOk returns a tuple with the MaxGB field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetMaxGBOk() (ret ListFlavorsGetMaxGBRetType, ok bool) {
|
||||
return getListFlavorsGetMaxGBAttributeTypeOk(o.MaxGB)
|
||||
}
|
||||
|
||||
// SetMaxGB sets field value
|
||||
func (o *ListFlavors) SetMaxGB(v ListFlavorsGetMaxGBRetType) {
|
||||
setListFlavorsGetMaxGBAttributeType(&o.MaxGB, v)
|
||||
}
|
||||
|
||||
// GetMemory returns the Memory field value
|
||||
func (o *ListFlavors) GetMemory() (ret ListFlavorsGetMemoryRetType) {
|
||||
ret, _ = o.GetMemoryOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMemoryOk returns a tuple with the Memory field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetMemoryOk() (ret ListFlavorsGetMemoryRetType, ok bool) {
|
||||
return getListFlavorsGetMemoryAttributeTypeOk(o.Memory)
|
||||
}
|
||||
|
||||
// SetMemory sets field value
|
||||
func (o *ListFlavors) SetMemory(v ListFlavorsGetMemoryRetType) {
|
||||
setListFlavorsGetMemoryAttributeType(&o.Memory, v)
|
||||
}
|
||||
|
||||
// GetMinGB returns the MinGB field value
|
||||
func (o *ListFlavors) GetMinGB() (ret ListFlavorsGetMinGBRetType) {
|
||||
ret, _ = o.GetMinGBOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMinGBOk returns a tuple with the MinGB field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetMinGBOk() (ret ListFlavorsGetMinGBRetType, ok bool) {
|
||||
return getListFlavorsGetMinGBAttributeTypeOk(o.MinGB)
|
||||
}
|
||||
|
||||
// SetMinGB sets field value
|
||||
func (o *ListFlavors) SetMinGB(v ListFlavorsGetMinGBRetType) {
|
||||
setListFlavorsGetMinGBAttributeType(&o.MinGB, v)
|
||||
}
|
||||
|
||||
// GetNodeType returns the NodeType field value
|
||||
func (o *ListFlavors) GetNodeType() (ret ListFlavorsGetNodeTypeRetType) {
|
||||
ret, _ = o.GetNodeTypeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNodeTypeOk returns a tuple with the NodeType field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetNodeTypeOk() (ret ListFlavorsGetNodeTypeRetType, ok bool) {
|
||||
return getListFlavorsGetNodeTypeAttributeTypeOk(o.NodeType)
|
||||
}
|
||||
|
||||
// SetNodeType sets field value
|
||||
func (o *ListFlavors) SetNodeType(v ListFlavorsGetNodeTypeRetType) {
|
||||
setListFlavorsGetNodeTypeAttributeType(&o.NodeType, v)
|
||||
}
|
||||
|
||||
// GetStorageClasses returns the StorageClasses field value
|
||||
func (o *ListFlavors) GetStorageClasses() (ret ListFlavorsGetStorageClassesRetType) {
|
||||
ret, _ = o.GetStorageClassesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStorageClassesOk returns a tuple with the StorageClasses field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListFlavors) GetStorageClassesOk() (ret ListFlavorsGetStorageClassesRetType, ok bool) {
|
||||
return getListFlavorsGetStorageClassesAttributeTypeOk(o.StorageClasses)
|
||||
}
|
||||
|
||||
// SetStorageClasses sets field value
|
||||
func (o *ListFlavors) SetStorageClasses(v ListFlavorsGetStorageClassesRetType) {
|
||||
setListFlavorsGetStorageClassesAttributeType(&o.StorageClasses, v)
|
||||
}
|
||||
|
||||
func (o ListFlavors) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListFlavorsGetCpuAttributeTypeOk(o.Cpu); ok {
|
||||
toSerialize["Cpu"] = val
|
||||
}
|
||||
if val, ok := getListFlavorsGetDescriptionAttributeTypeOk(o.Description); ok {
|
||||
toSerialize["Description"] = val
|
||||
}
|
||||
if val, ok := getListFlavorsGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getListFlavorsGetMaxGBAttributeTypeOk(o.MaxGB); ok {
|
||||
toSerialize["MaxGB"] = val
|
||||
}
|
||||
if val, ok := getListFlavorsGetMemoryAttributeTypeOk(o.Memory); ok {
|
||||
toSerialize["Memory"] = val
|
||||
}
|
||||
if val, ok := getListFlavorsGetMinGBAttributeTypeOk(o.MinGB); ok {
|
||||
toSerialize["MinGB"] = val
|
||||
}
|
||||
if val, ok := getListFlavorsGetNodeTypeAttributeTypeOk(o.NodeType); ok {
|
||||
toSerialize["NodeType"] = val
|
||||
}
|
||||
if val, ok := getListFlavorsGetStorageClassesAttributeTypeOk(o.StorageClasses); ok {
|
||||
toSerialize["StorageClasses"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListFlavors struct {
|
||||
value *ListFlavors
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListFlavors) Get() *ListFlavors {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListFlavors) Set(val *ListFlavors) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListFlavors) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListFlavors) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListFlavors(val *ListFlavors) *NullableListFlavors {
|
||||
return &NullableListFlavors{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListFlavors) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListFlavors) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_flavors_test.go
Normal file
11
pkg/postgresflexalpha/model_list_flavors_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
259
pkg/postgresflexalpha/model_list_instance.go
Normal file
259
pkg/postgresflexalpha/model_list_instance.go
Normal file
|
|
@ -0,0 +1,259 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListInstance type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListInstance{}
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListInstanceGetIdAttributeType = *string
|
||||
|
||||
func getListInstanceGetIdAttributeTypeOk(arg ListInstanceGetIdAttributeType) (ret ListInstanceGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListInstanceGetIdAttributeType(arg *ListInstanceGetIdAttributeType, val ListInstanceGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListInstanceGetIdArgType = string
|
||||
type ListInstanceGetIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for isDeletable
|
||||
*/
|
||||
|
||||
// isBoolean
|
||||
type ListInstancegetIsDeletableAttributeType = *bool
|
||||
type ListInstancegetIsDeletableArgType = bool
|
||||
type ListInstancegetIsDeletableRetType = bool
|
||||
|
||||
func getListInstancegetIsDeletableAttributeTypeOk(arg ListInstancegetIsDeletableAttributeType) (ret ListInstancegetIsDeletableRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListInstancegetIsDeletableAttributeType(arg *ListInstancegetIsDeletableAttributeType, val ListInstancegetIsDeletableRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListInstanceGetNameAttributeType = *string
|
||||
|
||||
func getListInstanceGetNameAttributeTypeOk(arg ListInstanceGetNameAttributeType) (ret ListInstanceGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListInstanceGetNameAttributeType(arg *ListInstanceGetNameAttributeType, val ListInstanceGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListInstanceGetNameArgType = string
|
||||
type ListInstanceGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for status
|
||||
*/
|
||||
|
||||
// isEnumRef
|
||||
type ListInstanceGetStatusAttributeType = *Status
|
||||
type ListInstanceGetStatusArgType = Status
|
||||
type ListInstanceGetStatusRetType = Status
|
||||
|
||||
func getListInstanceGetStatusAttributeTypeOk(arg ListInstanceGetStatusAttributeType) (ret ListInstanceGetStatusRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListInstanceGetStatusAttributeType(arg *ListInstanceGetStatusAttributeType, val ListInstanceGetStatusRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListInstance struct for ListInstance
|
||||
type ListInstance struct {
|
||||
// The ID of the instance.
|
||||
// REQUIRED
|
||||
Id ListInstanceGetIdAttributeType `json:"id" required:"true"`
|
||||
// Whether the instance can be deleted or not.
|
||||
// REQUIRED
|
||||
IsDeletable ListInstancegetIsDeletableAttributeType `json:"isDeletable" required:"true"`
|
||||
// The name of the instance.
|
||||
// REQUIRED
|
||||
Name ListInstanceGetNameAttributeType `json:"name" required:"true"`
|
||||
// REQUIRED
|
||||
Status ListInstanceGetStatusAttributeType `json:"status" required:"true"`
|
||||
}
|
||||
|
||||
type _ListInstance ListInstance
|
||||
|
||||
// NewListInstance instantiates a new ListInstance 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 NewListInstance(id ListInstanceGetIdArgType, isDeletable ListInstancegetIsDeletableArgType, name ListInstanceGetNameArgType, status ListInstanceGetStatusArgType) *ListInstance {
|
||||
this := ListInstance{}
|
||||
setListInstanceGetIdAttributeType(&this.Id, id)
|
||||
setListInstancegetIsDeletableAttributeType(&this.IsDeletable, isDeletable)
|
||||
setListInstanceGetNameAttributeType(&this.Name, name)
|
||||
setListInstanceGetStatusAttributeType(&this.Status, status)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListInstanceWithDefaults instantiates a new ListInstance 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 NewListInstanceWithDefaults() *ListInstance {
|
||||
this := ListInstance{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *ListInstance) GetId() (ret ListInstanceGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListInstance) GetIdOk() (ret ListInstanceGetIdRetType, ok bool) {
|
||||
return getListInstanceGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *ListInstance) SetId(v ListInstanceGetIdRetType) {
|
||||
setListInstanceGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetIsDeletable returns the IsDeletable field value
|
||||
func (o *ListInstance) GetIsDeletable() (ret ListInstancegetIsDeletableRetType) {
|
||||
ret, _ = o.GetIsDeletableOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIsDeletableOk returns a tuple with the IsDeletable field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListInstance) GetIsDeletableOk() (ret ListInstancegetIsDeletableRetType, ok bool) {
|
||||
return getListInstancegetIsDeletableAttributeTypeOk(o.IsDeletable)
|
||||
}
|
||||
|
||||
// SetIsDeletable sets field value
|
||||
func (o *ListInstance) SetIsDeletable(v ListInstancegetIsDeletableRetType) {
|
||||
setListInstancegetIsDeletableAttributeType(&o.IsDeletable, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *ListInstance) GetName() (ret ListInstanceGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListInstance) GetNameOk() (ret ListInstanceGetNameRetType, ok bool) {
|
||||
return getListInstanceGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *ListInstance) SetName(v ListInstanceGetNameRetType) {
|
||||
setListInstanceGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value
|
||||
func (o *ListInstance) GetStatus() (ret ListInstanceGetStatusRetType) {
|
||||
ret, _ = o.GetStatusOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListInstance) GetStatusOk() (ret ListInstanceGetStatusRetType, ok bool) {
|
||||
return getListInstanceGetStatusAttributeTypeOk(o.Status)
|
||||
}
|
||||
|
||||
// SetStatus sets field value
|
||||
func (o *ListInstance) SetStatus(v ListInstanceGetStatusRetType) {
|
||||
setListInstanceGetStatusAttributeType(&o.Status, v)
|
||||
}
|
||||
|
||||
func (o ListInstance) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListInstanceGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getListInstancegetIsDeletableAttributeTypeOk(o.IsDeletable); ok {
|
||||
toSerialize["IsDeletable"] = val
|
||||
}
|
||||
if val, ok := getListInstanceGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getListInstanceGetStatusAttributeTypeOk(o.Status); ok {
|
||||
toSerialize["Status"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListInstance struct {
|
||||
value *ListInstance
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListInstance) Get() *ListInstance {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListInstance) Set(val *ListInstance) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListInstance) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListInstance) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListInstance(val *ListInstance) *NullableListInstance {
|
||||
return &NullableListInstance{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListInstance) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListInstance) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_instance_test.go
Normal file
11
pkg/postgresflexalpha/model_list_instance_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
169
pkg/postgresflexalpha/model_list_instances_response.go
Normal file
169
pkg/postgresflexalpha/model_list_instances_response.go
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListInstancesResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListInstancesResponse{}
|
||||
|
||||
/*
|
||||
types and functions for instances
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListInstancesResponseGetInstancesAttributeType = *[]ListInstance
|
||||
type ListInstancesResponseGetInstancesArgType = []ListInstance
|
||||
type ListInstancesResponseGetInstancesRetType = []ListInstance
|
||||
|
||||
func getListInstancesResponseGetInstancesAttributeTypeOk(arg ListInstancesResponseGetInstancesAttributeType) (ret ListInstancesResponseGetInstancesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListInstancesResponseGetInstancesAttributeType(arg *ListInstancesResponseGetInstancesAttributeType, val ListInstancesResponseGetInstancesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for pagination
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type ListInstancesResponseGetPaginationAttributeType = *Pagination
|
||||
type ListInstancesResponseGetPaginationArgType = Pagination
|
||||
type ListInstancesResponseGetPaginationRetType = Pagination
|
||||
|
||||
func getListInstancesResponseGetPaginationAttributeTypeOk(arg ListInstancesResponseGetPaginationAttributeType) (ret ListInstancesResponseGetPaginationRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListInstancesResponseGetPaginationAttributeType(arg *ListInstancesResponseGetPaginationAttributeType, val ListInstancesResponseGetPaginationRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListInstancesResponse struct for ListInstancesResponse
|
||||
type ListInstancesResponse struct {
|
||||
// List of owned instances and their current status.
|
||||
// REQUIRED
|
||||
Instances ListInstancesResponseGetInstancesAttributeType `json:"instances" required:"true"`
|
||||
// REQUIRED
|
||||
Pagination ListInstancesResponseGetPaginationAttributeType `json:"pagination" required:"true"`
|
||||
}
|
||||
|
||||
type _ListInstancesResponse ListInstancesResponse
|
||||
|
||||
// NewListInstancesResponse instantiates a new ListInstancesResponse 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 NewListInstancesResponse(instances ListInstancesResponseGetInstancesArgType, pagination ListInstancesResponseGetPaginationArgType) *ListInstancesResponse {
|
||||
this := ListInstancesResponse{}
|
||||
setListInstancesResponseGetInstancesAttributeType(&this.Instances, instances)
|
||||
setListInstancesResponseGetPaginationAttributeType(&this.Pagination, pagination)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListInstancesResponseWithDefaults instantiates a new ListInstancesResponse 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 NewListInstancesResponseWithDefaults() *ListInstancesResponse {
|
||||
this := ListInstancesResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetInstances returns the Instances field value
|
||||
func (o *ListInstancesResponse) GetInstances() (ret ListInstancesResponseGetInstancesRetType) {
|
||||
ret, _ = o.GetInstancesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetInstancesOk returns a tuple with the Instances field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListInstancesResponse) GetInstancesOk() (ret ListInstancesResponseGetInstancesRetType, ok bool) {
|
||||
return getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances)
|
||||
}
|
||||
|
||||
// SetInstances sets field value
|
||||
func (o *ListInstancesResponse) SetInstances(v ListInstancesResponseGetInstancesRetType) {
|
||||
setListInstancesResponseGetInstancesAttributeType(&o.Instances, v)
|
||||
}
|
||||
|
||||
// GetPagination returns the Pagination field value
|
||||
func (o *ListInstancesResponse) GetPagination() (ret ListInstancesResponseGetPaginationRetType) {
|
||||
ret, _ = o.GetPaginationOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPaginationOk returns a tuple with the Pagination field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListInstancesResponse) GetPaginationOk() (ret ListInstancesResponseGetPaginationRetType, ok bool) {
|
||||
return getListInstancesResponseGetPaginationAttributeTypeOk(o.Pagination)
|
||||
}
|
||||
|
||||
// SetPagination sets field value
|
||||
func (o *ListInstancesResponse) SetPagination(v ListInstancesResponseGetPaginationRetType) {
|
||||
setListInstancesResponseGetPaginationAttributeType(&o.Pagination, v)
|
||||
}
|
||||
|
||||
func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances); ok {
|
||||
toSerialize["Instances"] = val
|
||||
}
|
||||
if val, ok := getListInstancesResponseGetPaginationAttributeTypeOk(o.Pagination); ok {
|
||||
toSerialize["Pagination"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListInstancesResponse struct {
|
||||
value *ListInstancesResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListInstancesResponse) Get() *ListInstancesResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListInstancesResponse) Set(val *ListInstancesResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListInstancesResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListInstancesResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListInstancesResponse(val *ListInstancesResponse) *NullableListInstancesResponse {
|
||||
return &NullableListInstancesResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListInstancesResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListInstancesResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_instances_response_test.go
Normal file
11
pkg/postgresflexalpha/model_list_instances_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
126
pkg/postgresflexalpha/model_list_roles_response.go
Normal file
126
pkg/postgresflexalpha/model_list_roles_response.go
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListRolesResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListRolesResponse{}
|
||||
|
||||
/*
|
||||
types and functions for roles
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListRolesResponseGetRolesAttributeType = *[]string
|
||||
type ListRolesResponseGetRolesArgType = []string
|
||||
type ListRolesResponseGetRolesRetType = []string
|
||||
|
||||
func getListRolesResponseGetRolesAttributeTypeOk(arg ListRolesResponseGetRolesAttributeType) (ret ListRolesResponseGetRolesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListRolesResponseGetRolesAttributeType(arg *ListRolesResponseGetRolesAttributeType, val ListRolesResponseGetRolesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListRolesResponse struct for ListRolesResponse
|
||||
type ListRolesResponse struct {
|
||||
// List of all role names available in the instance
|
||||
// REQUIRED
|
||||
Roles ListRolesResponseGetRolesAttributeType `json:"roles" required:"true"`
|
||||
}
|
||||
|
||||
type _ListRolesResponse ListRolesResponse
|
||||
|
||||
// NewListRolesResponse instantiates a new ListRolesResponse 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 NewListRolesResponse(roles ListRolesResponseGetRolesArgType) *ListRolesResponse {
|
||||
this := ListRolesResponse{}
|
||||
setListRolesResponseGetRolesAttributeType(&this.Roles, roles)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListRolesResponseWithDefaults instantiates a new ListRolesResponse 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 NewListRolesResponseWithDefaults() *ListRolesResponse {
|
||||
this := ListRolesResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetRoles returns the Roles field value
|
||||
func (o *ListRolesResponse) GetRoles() (ret ListRolesResponseGetRolesRetType) {
|
||||
ret, _ = o.GetRolesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRolesOk returns a tuple with the Roles field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListRolesResponse) GetRolesOk() (ret ListRolesResponseGetRolesRetType, ok bool) {
|
||||
return getListRolesResponseGetRolesAttributeTypeOk(o.Roles)
|
||||
}
|
||||
|
||||
// SetRoles sets field value
|
||||
func (o *ListRolesResponse) SetRoles(v ListRolesResponseGetRolesRetType) {
|
||||
setListRolesResponseGetRolesAttributeType(&o.Roles, v)
|
||||
}
|
||||
|
||||
func (o ListRolesResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListRolesResponseGetRolesAttributeTypeOk(o.Roles); ok {
|
||||
toSerialize["Roles"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListRolesResponse struct {
|
||||
value *ListRolesResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListRolesResponse) Get() *ListRolesResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListRolesResponse) Set(val *ListRolesResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListRolesResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListRolesResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListRolesResponse(val *ListRolesResponse) *NullableListRolesResponse {
|
||||
return &NullableListRolesResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListRolesResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListRolesResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_roles_response_test.go
Normal file
11
pkg/postgresflexalpha/model_list_roles_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
216
pkg/postgresflexalpha/model_list_user.go
Normal file
216
pkg/postgresflexalpha/model_list_user.go
Normal file
|
|
@ -0,0 +1,216 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListUser type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListUser{}
|
||||
|
||||
/*
|
||||
types and functions for id
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type ListUserGetIdAttributeType = *int64
|
||||
type ListUserGetIdArgType = int64
|
||||
type ListUserGetIdRetType = int64
|
||||
|
||||
func getListUserGetIdAttributeTypeOk(arg ListUserGetIdAttributeType) (ret ListUserGetIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListUserGetIdAttributeType(arg *ListUserGetIdAttributeType, val ListUserGetIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for name
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListUserGetNameAttributeType = *string
|
||||
|
||||
func getListUserGetNameAttributeTypeOk(arg ListUserGetNameAttributeType) (ret ListUserGetNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListUserGetNameAttributeType(arg *ListUserGetNameAttributeType, val ListUserGetNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListUserGetNameArgType = string
|
||||
type ListUserGetNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for status
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ListUserGetStatusAttributeType = *string
|
||||
|
||||
func getListUserGetStatusAttributeTypeOk(arg ListUserGetStatusAttributeType) (ret ListUserGetStatusRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListUserGetStatusAttributeType(arg *ListUserGetStatusAttributeType, val ListUserGetStatusRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ListUserGetStatusArgType = string
|
||||
type ListUserGetStatusRetType = string
|
||||
|
||||
// ListUser struct for ListUser
|
||||
type ListUser struct {
|
||||
// The ID of the user.
|
||||
// REQUIRED
|
||||
Id ListUserGetIdAttributeType `json:"id" required:"true"`
|
||||
// The name of the user.
|
||||
// REQUIRED
|
||||
Name ListUserGetNameAttributeType `json:"name" required:"true"`
|
||||
// The current status of the user.
|
||||
// REQUIRED
|
||||
Status ListUserGetStatusAttributeType `json:"status" required:"true"`
|
||||
}
|
||||
|
||||
type _ListUser ListUser
|
||||
|
||||
// NewListUser instantiates a new ListUser 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 NewListUser(id ListUserGetIdArgType, name ListUserGetNameArgType, status ListUserGetStatusArgType) *ListUser {
|
||||
this := ListUser{}
|
||||
setListUserGetIdAttributeType(&this.Id, id)
|
||||
setListUserGetNameAttributeType(&this.Name, name)
|
||||
setListUserGetStatusAttributeType(&this.Status, status)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListUserWithDefaults instantiates a new ListUser 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 NewListUserWithDefaults() *ListUser {
|
||||
this := ListUser{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *ListUser) GetId() (ret ListUserGetIdRetType) {
|
||||
ret, _ = o.GetIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListUser) GetIdOk() (ret ListUserGetIdRetType, ok bool) {
|
||||
return getListUserGetIdAttributeTypeOk(o.Id)
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *ListUser) SetId(v ListUserGetIdRetType) {
|
||||
setListUserGetIdAttributeType(&o.Id, v)
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *ListUser) GetName() (ret ListUserGetNameRetType) {
|
||||
ret, _ = o.GetNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListUser) GetNameOk() (ret ListUserGetNameRetType, ok bool) {
|
||||
return getListUserGetNameAttributeTypeOk(o.Name)
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *ListUser) SetName(v ListUserGetNameRetType) {
|
||||
setListUserGetNameAttributeType(&o.Name, v)
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value
|
||||
func (o *ListUser) GetStatus() (ret ListUserGetStatusRetType) {
|
||||
ret, _ = o.GetStatusOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListUser) GetStatusOk() (ret ListUserGetStatusRetType, ok bool) {
|
||||
return getListUserGetStatusAttributeTypeOk(o.Status)
|
||||
}
|
||||
|
||||
// SetStatus sets field value
|
||||
func (o *ListUser) SetStatus(v ListUserGetStatusRetType) {
|
||||
setListUserGetStatusAttributeType(&o.Status, v)
|
||||
}
|
||||
|
||||
func (o ListUser) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListUserGetIdAttributeTypeOk(o.Id); ok {
|
||||
toSerialize["Id"] = val
|
||||
}
|
||||
if val, ok := getListUserGetNameAttributeTypeOk(o.Name); ok {
|
||||
toSerialize["Name"] = val
|
||||
}
|
||||
if val, ok := getListUserGetStatusAttributeTypeOk(o.Status); ok {
|
||||
toSerialize["Status"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListUser struct {
|
||||
value *ListUser
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListUser) Get() *ListUser {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListUser) Set(val *ListUser) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListUser) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListUser) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListUser(val *ListUser) *NullableListUser {
|
||||
return &NullableListUser{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListUser) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListUser) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
169
pkg/postgresflexalpha/model_list_user_response.go
Normal file
169
pkg/postgresflexalpha/model_list_user_response.go
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ListUserResponse type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ListUserResponse{}
|
||||
|
||||
/*
|
||||
types and functions for pagination
|
||||
*/
|
||||
|
||||
// isModel
|
||||
type ListUserResponseGetPaginationAttributeType = *Pagination
|
||||
type ListUserResponseGetPaginationArgType = Pagination
|
||||
type ListUserResponseGetPaginationRetType = Pagination
|
||||
|
||||
func getListUserResponseGetPaginationAttributeTypeOk(arg ListUserResponseGetPaginationAttributeType) (ret ListUserResponseGetPaginationRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListUserResponseGetPaginationAttributeType(arg *ListUserResponseGetPaginationAttributeType, val ListUserResponseGetPaginationRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for users
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ListUserResponseGetUsersAttributeType = *[]ListUser
|
||||
type ListUserResponseGetUsersArgType = []ListUser
|
||||
type ListUserResponseGetUsersRetType = []ListUser
|
||||
|
||||
func getListUserResponseGetUsersAttributeTypeOk(arg ListUserResponseGetUsersAttributeType) (ret ListUserResponseGetUsersRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setListUserResponseGetUsersAttributeType(arg *ListUserResponseGetUsersAttributeType, val ListUserResponseGetUsersRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ListUserResponse struct for ListUserResponse
|
||||
type ListUserResponse struct {
|
||||
// REQUIRED
|
||||
Pagination ListUserResponseGetPaginationAttributeType `json:"pagination" required:"true"`
|
||||
// List of all users inside an instance
|
||||
// REQUIRED
|
||||
Users ListUserResponseGetUsersAttributeType `json:"users" required:"true"`
|
||||
}
|
||||
|
||||
type _ListUserResponse ListUserResponse
|
||||
|
||||
// NewListUserResponse instantiates a new ListUserResponse 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 NewListUserResponse(pagination ListUserResponseGetPaginationArgType, users ListUserResponseGetUsersArgType) *ListUserResponse {
|
||||
this := ListUserResponse{}
|
||||
setListUserResponseGetPaginationAttributeType(&this.Pagination, pagination)
|
||||
setListUserResponseGetUsersAttributeType(&this.Users, users)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewListUserResponseWithDefaults instantiates a new ListUserResponse 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 NewListUserResponseWithDefaults() *ListUserResponse {
|
||||
this := ListUserResponse{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetPagination returns the Pagination field value
|
||||
func (o *ListUserResponse) GetPagination() (ret ListUserResponseGetPaginationRetType) {
|
||||
ret, _ = o.GetPaginationOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPaginationOk returns a tuple with the Pagination field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListUserResponse) GetPaginationOk() (ret ListUserResponseGetPaginationRetType, ok bool) {
|
||||
return getListUserResponseGetPaginationAttributeTypeOk(o.Pagination)
|
||||
}
|
||||
|
||||
// SetPagination sets field value
|
||||
func (o *ListUserResponse) SetPagination(v ListUserResponseGetPaginationRetType) {
|
||||
setListUserResponseGetPaginationAttributeType(&o.Pagination, v)
|
||||
}
|
||||
|
||||
// GetUsers returns the Users field value
|
||||
func (o *ListUserResponse) GetUsers() (ret ListUserResponseGetUsersRetType) {
|
||||
ret, _ = o.GetUsersOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetUsersOk returns a tuple with the Users field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ListUserResponse) GetUsersOk() (ret ListUserResponseGetUsersRetType, ok bool) {
|
||||
return getListUserResponseGetUsersAttributeTypeOk(o.Users)
|
||||
}
|
||||
|
||||
// SetUsers sets field value
|
||||
func (o *ListUserResponse) SetUsers(v ListUserResponseGetUsersRetType) {
|
||||
setListUserResponseGetUsersAttributeType(&o.Users, v)
|
||||
}
|
||||
|
||||
func (o ListUserResponse) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getListUserResponseGetPaginationAttributeTypeOk(o.Pagination); ok {
|
||||
toSerialize["Pagination"] = val
|
||||
}
|
||||
if val, ok := getListUserResponseGetUsersAttributeTypeOk(o.Users); ok {
|
||||
toSerialize["Users"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableListUserResponse struct {
|
||||
value *ListUserResponse
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableListUserResponse) Get() *ListUserResponse {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableListUserResponse) Set(val *ListUserResponse) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableListUserResponse) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableListUserResponse) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableListUserResponse(val *ListUserResponse) *NullableListUserResponse {
|
||||
return &NullableListUserResponse{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableListUserResponse) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableListUserResponse) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_list_user_response_test.go
Normal file
11
pkg/postgresflexalpha/model_list_user_response_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
11
pkg/postgresflexalpha/model_list_user_test.go
Normal file
11
pkg/postgresflexalpha/model_list_user_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
298
pkg/postgresflexalpha/model_pagination.go
Normal file
298
pkg/postgresflexalpha/model_pagination.go
Normal file
|
|
@ -0,0 +1,298 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the Pagination type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &Pagination{}
|
||||
|
||||
/*
|
||||
types and functions for page
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type PaginationGetPageAttributeType = *int64
|
||||
type PaginationGetPageArgType = int64
|
||||
type PaginationGetPageRetType = int64
|
||||
|
||||
func getPaginationGetPageAttributeTypeOk(arg PaginationGetPageAttributeType) (ret PaginationGetPageRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPaginationGetPageAttributeType(arg *PaginationGetPageAttributeType, val PaginationGetPageRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for size
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type PaginationGetSizeAttributeType = *int64
|
||||
type PaginationGetSizeArgType = int64
|
||||
type PaginationGetSizeRetType = int64
|
||||
|
||||
func getPaginationGetSizeAttributeTypeOk(arg PaginationGetSizeAttributeType) (ret PaginationGetSizeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPaginationGetSizeAttributeType(arg *PaginationGetSizeAttributeType, val PaginationGetSizeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for sort
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type PaginationGetSortAttributeType = *string
|
||||
|
||||
func getPaginationGetSortAttributeTypeOk(arg PaginationGetSortAttributeType) (ret PaginationGetSortRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPaginationGetSortAttributeType(arg *PaginationGetSortAttributeType, val PaginationGetSortRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type PaginationGetSortArgType = string
|
||||
type PaginationGetSortRetType = string
|
||||
|
||||
/*
|
||||
types and functions for totalPages
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type PaginationGetTotalPagesAttributeType = *int64
|
||||
type PaginationGetTotalPagesArgType = int64
|
||||
type PaginationGetTotalPagesRetType = int64
|
||||
|
||||
func getPaginationGetTotalPagesAttributeTypeOk(arg PaginationGetTotalPagesAttributeType) (ret PaginationGetTotalPagesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPaginationGetTotalPagesAttributeType(arg *PaginationGetTotalPagesAttributeType, val PaginationGetTotalPagesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for totalRows
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type PaginationGetTotalRowsAttributeType = *int64
|
||||
type PaginationGetTotalRowsArgType = int64
|
||||
type PaginationGetTotalRowsRetType = int64
|
||||
|
||||
func getPaginationGetTotalRowsAttributeTypeOk(arg PaginationGetTotalRowsAttributeType) (ret PaginationGetTotalRowsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPaginationGetTotalRowsAttributeType(arg *PaginationGetTotalRowsAttributeType, val PaginationGetTotalRowsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// Pagination struct for Pagination
|
||||
type Pagination struct {
|
||||
// REQUIRED
|
||||
Page PaginationGetPageAttributeType `json:"page" required:"true"`
|
||||
// REQUIRED
|
||||
Size PaginationGetSizeAttributeType `json:"size" required:"true"`
|
||||
// REQUIRED
|
||||
Sort PaginationGetSortAttributeType `json:"sort" required:"true"`
|
||||
// REQUIRED
|
||||
TotalPages PaginationGetTotalPagesAttributeType `json:"totalPages" required:"true"`
|
||||
// REQUIRED
|
||||
TotalRows PaginationGetTotalRowsAttributeType `json:"totalRows" required:"true"`
|
||||
}
|
||||
|
||||
type _Pagination Pagination
|
||||
|
||||
// NewPagination instantiates a new Pagination 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 NewPagination(page PaginationGetPageArgType, size PaginationGetSizeArgType, sort PaginationGetSortArgType, totalPages PaginationGetTotalPagesArgType, totalRows PaginationGetTotalRowsArgType) *Pagination {
|
||||
this := Pagination{}
|
||||
setPaginationGetPageAttributeType(&this.Page, page)
|
||||
setPaginationGetSizeAttributeType(&this.Size, size)
|
||||
setPaginationGetSortAttributeType(&this.Sort, sort)
|
||||
setPaginationGetTotalPagesAttributeType(&this.TotalPages, totalPages)
|
||||
setPaginationGetTotalRowsAttributeType(&this.TotalRows, totalRows)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewPaginationWithDefaults instantiates a new Pagination 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 NewPaginationWithDefaults() *Pagination {
|
||||
this := Pagination{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetPage returns the Page field value
|
||||
func (o *Pagination) GetPage() (ret PaginationGetPageRetType) {
|
||||
ret, _ = o.GetPageOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPageOk returns a tuple with the Page field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pagination) GetPageOk() (ret PaginationGetPageRetType, ok bool) {
|
||||
return getPaginationGetPageAttributeTypeOk(o.Page)
|
||||
}
|
||||
|
||||
// SetPage sets field value
|
||||
func (o *Pagination) SetPage(v PaginationGetPageRetType) {
|
||||
setPaginationGetPageAttributeType(&o.Page, v)
|
||||
}
|
||||
|
||||
// GetSize returns the Size field value
|
||||
func (o *Pagination) GetSize() (ret PaginationGetSizeRetType) {
|
||||
ret, _ = o.GetSizeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetSizeOk returns a tuple with the Size field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pagination) GetSizeOk() (ret PaginationGetSizeRetType, ok bool) {
|
||||
return getPaginationGetSizeAttributeTypeOk(o.Size)
|
||||
}
|
||||
|
||||
// SetSize sets field value
|
||||
func (o *Pagination) SetSize(v PaginationGetSizeRetType) {
|
||||
setPaginationGetSizeAttributeType(&o.Size, v)
|
||||
}
|
||||
|
||||
// GetSort returns the Sort field value
|
||||
func (o *Pagination) GetSort() (ret PaginationGetSortRetType) {
|
||||
ret, _ = o.GetSortOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetSortOk returns a tuple with the Sort field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pagination) GetSortOk() (ret PaginationGetSortRetType, ok bool) {
|
||||
return getPaginationGetSortAttributeTypeOk(o.Sort)
|
||||
}
|
||||
|
||||
// SetSort sets field value
|
||||
func (o *Pagination) SetSort(v PaginationGetSortRetType) {
|
||||
setPaginationGetSortAttributeType(&o.Sort, v)
|
||||
}
|
||||
|
||||
// GetTotalPages returns the TotalPages field value
|
||||
func (o *Pagination) GetTotalPages() (ret PaginationGetTotalPagesRetType) {
|
||||
ret, _ = o.GetTotalPagesOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetTotalPagesOk returns a tuple with the TotalPages field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pagination) GetTotalPagesOk() (ret PaginationGetTotalPagesRetType, ok bool) {
|
||||
return getPaginationGetTotalPagesAttributeTypeOk(o.TotalPages)
|
||||
}
|
||||
|
||||
// SetTotalPages sets field value
|
||||
func (o *Pagination) SetTotalPages(v PaginationGetTotalPagesRetType) {
|
||||
setPaginationGetTotalPagesAttributeType(&o.TotalPages, v)
|
||||
}
|
||||
|
||||
// GetTotalRows returns the TotalRows field value
|
||||
func (o *Pagination) GetTotalRows() (ret PaginationGetTotalRowsRetType) {
|
||||
ret, _ = o.GetTotalRowsOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetTotalRowsOk returns a tuple with the TotalRows field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pagination) GetTotalRowsOk() (ret PaginationGetTotalRowsRetType, ok bool) {
|
||||
return getPaginationGetTotalRowsAttributeTypeOk(o.TotalRows)
|
||||
}
|
||||
|
||||
// SetTotalRows sets field value
|
||||
func (o *Pagination) SetTotalRows(v PaginationGetTotalRowsRetType) {
|
||||
setPaginationGetTotalRowsAttributeType(&o.TotalRows, v)
|
||||
}
|
||||
|
||||
func (o Pagination) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getPaginationGetPageAttributeTypeOk(o.Page); ok {
|
||||
toSerialize["Page"] = val
|
||||
}
|
||||
if val, ok := getPaginationGetSizeAttributeTypeOk(o.Size); ok {
|
||||
toSerialize["Size"] = val
|
||||
}
|
||||
if val, ok := getPaginationGetSortAttributeTypeOk(o.Sort); ok {
|
||||
toSerialize["Sort"] = val
|
||||
}
|
||||
if val, ok := getPaginationGetTotalPagesAttributeTypeOk(o.TotalPages); ok {
|
||||
toSerialize["TotalPages"] = val
|
||||
}
|
||||
if val, ok := getPaginationGetTotalRowsAttributeTypeOk(o.TotalRows); ok {
|
||||
toSerialize["TotalRows"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullablePagination struct {
|
||||
value *Pagination
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullablePagination) Get() *Pagination {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullablePagination) Set(val *Pagination) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullablePagination) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullablePagination) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullablePagination(val *Pagination) *NullablePagination {
|
||||
return &NullablePagination{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullablePagination) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullablePagination) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
11
pkg/postgresflexalpha/model_pagination_test.go
Normal file
11
pkg/postgresflexalpha/model_pagination_test.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
|
@ -0,0 +1,216 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
// checks if the PointInTimeRecoveryRequestPayload type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &PointInTimeRecoveryRequestPayload{}
|
||||
|
||||
/*
|
||||
types and functions for performanceClass
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type PointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeType = *string
|
||||
|
||||
func getPointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeTypeOk(arg PointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeType) (ret PointInTimeRecoveryRequestPayloadGetPerformanceClassRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeType(arg *PointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeType, val PointInTimeRecoveryRequestPayloadGetPerformanceClassRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type PointInTimeRecoveryRequestPayloadGetPerformanceClassArgType = string
|
||||
type PointInTimeRecoveryRequestPayloadGetPerformanceClassRetType = string
|
||||
|
||||
/*
|
||||
types and functions for recoveryTime
|
||||
*/
|
||||
|
||||
// isDateTime
|
||||
type PointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeType = *time.Time
|
||||
type PointInTimeRecoveryRequestPayloadGetRecoveryTimeArgType = time.Time
|
||||
type PointInTimeRecoveryRequestPayloadGetRecoveryTimeRetType = time.Time
|
||||
|
||||
func getPointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeTypeOk(arg PointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeType) (ret PointInTimeRecoveryRequestPayloadGetRecoveryTimeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeType(arg *PointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeType, val PointInTimeRecoveryRequestPayloadGetRecoveryTimeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for size
|
||||
*/
|
||||
|
||||
// isLong
|
||||
type PointInTimeRecoveryRequestPayloadGetSizeAttributeType = *int64
|
||||
type PointInTimeRecoveryRequestPayloadGetSizeArgType = int64
|
||||
type PointInTimeRecoveryRequestPayloadGetSizeRetType = int64
|
||||
|
||||
func getPointInTimeRecoveryRequestPayloadGetSizeAttributeTypeOk(arg PointInTimeRecoveryRequestPayloadGetSizeAttributeType) (ret PointInTimeRecoveryRequestPayloadGetSizeRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setPointInTimeRecoveryRequestPayloadGetSizeAttributeType(arg *PointInTimeRecoveryRequestPayloadGetSizeAttributeType, val PointInTimeRecoveryRequestPayloadGetSizeRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// PointInTimeRecoveryRequestPayload struct for PointInTimeRecoveryRequestPayload
|
||||
type PointInTimeRecoveryRequestPayload struct {
|
||||
// The storage class for the storage.
|
||||
// REQUIRED
|
||||
PerformanceClass PointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeType `json:"performanceClass" required:"true"`
|
||||
// the time for the point in time recovery it will be calculated between first backup and last backup
|
||||
// REQUIRED
|
||||
RecoveryTime PointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeType `json:"recoveryTime" required:"true"`
|
||||
// The storage size in Gigabytes.
|
||||
// REQUIRED
|
||||
Size PointInTimeRecoveryRequestPayloadGetSizeAttributeType `json:"size" required:"true"`
|
||||
}
|
||||
|
||||
type _PointInTimeRecoveryRequestPayload PointInTimeRecoveryRequestPayload
|
||||
|
||||
// NewPointInTimeRecoveryRequestPayload instantiates a new PointInTimeRecoveryRequestPayload 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 NewPointInTimeRecoveryRequestPayload(performanceClass PointInTimeRecoveryRequestPayloadGetPerformanceClassArgType, recoveryTime PointInTimeRecoveryRequestPayloadGetRecoveryTimeArgType, size PointInTimeRecoveryRequestPayloadGetSizeArgType) *PointInTimeRecoveryRequestPayload {
|
||||
this := PointInTimeRecoveryRequestPayload{}
|
||||
setPointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeType(&this.PerformanceClass, performanceClass)
|
||||
setPointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeType(&this.RecoveryTime, recoveryTime)
|
||||
setPointInTimeRecoveryRequestPayloadGetSizeAttributeType(&this.Size, size)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewPointInTimeRecoveryRequestPayloadWithDefaults instantiates a new PointInTimeRecoveryRequestPayload 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 NewPointInTimeRecoveryRequestPayloadWithDefaults() *PointInTimeRecoveryRequestPayload {
|
||||
this := PointInTimeRecoveryRequestPayload{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetPerformanceClass returns the PerformanceClass field value
|
||||
func (o *PointInTimeRecoveryRequestPayload) GetPerformanceClass() (ret PointInTimeRecoveryRequestPayloadGetPerformanceClassRetType) {
|
||||
ret, _ = o.GetPerformanceClassOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetPerformanceClassOk returns a tuple with the PerformanceClass field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PointInTimeRecoveryRequestPayload) GetPerformanceClassOk() (ret PointInTimeRecoveryRequestPayloadGetPerformanceClassRetType, ok bool) {
|
||||
return getPointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeTypeOk(o.PerformanceClass)
|
||||
}
|
||||
|
||||
// SetPerformanceClass sets field value
|
||||
func (o *PointInTimeRecoveryRequestPayload) SetPerformanceClass(v PointInTimeRecoveryRequestPayloadGetPerformanceClassRetType) {
|
||||
setPointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeType(&o.PerformanceClass, v)
|
||||
}
|
||||
|
||||
// GetRecoveryTime returns the RecoveryTime field value
|
||||
func (o *PointInTimeRecoveryRequestPayload) GetRecoveryTime() (ret PointInTimeRecoveryRequestPayloadGetRecoveryTimeRetType) {
|
||||
ret, _ = o.GetRecoveryTimeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetRecoveryTimeOk returns a tuple with the RecoveryTime field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PointInTimeRecoveryRequestPayload) GetRecoveryTimeOk() (ret PointInTimeRecoveryRequestPayloadGetRecoveryTimeRetType, ok bool) {
|
||||
return getPointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeTypeOk(o.RecoveryTime)
|
||||
}
|
||||
|
||||
// SetRecoveryTime sets field value
|
||||
func (o *PointInTimeRecoveryRequestPayload) SetRecoveryTime(v PointInTimeRecoveryRequestPayloadGetRecoveryTimeRetType) {
|
||||
setPointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeType(&o.RecoveryTime, v)
|
||||
}
|
||||
|
||||
// GetSize returns the Size field value
|
||||
func (o *PointInTimeRecoveryRequestPayload) GetSize() (ret PointInTimeRecoveryRequestPayloadGetSizeRetType) {
|
||||
ret, _ = o.GetSizeOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetSizeOk returns a tuple with the Size field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *PointInTimeRecoveryRequestPayload) GetSizeOk() (ret PointInTimeRecoveryRequestPayloadGetSizeRetType, ok bool) {
|
||||
return getPointInTimeRecoveryRequestPayloadGetSizeAttributeTypeOk(o.Size)
|
||||
}
|
||||
|
||||
// SetSize sets field value
|
||||
func (o *PointInTimeRecoveryRequestPayload) SetSize(v PointInTimeRecoveryRequestPayloadGetSizeRetType) {
|
||||
setPointInTimeRecoveryRequestPayloadGetSizeAttributeType(&o.Size, v)
|
||||
}
|
||||
|
||||
func (o PointInTimeRecoveryRequestPayload) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getPointInTimeRecoveryRequestPayloadGetPerformanceClassAttributeTypeOk(o.PerformanceClass); ok {
|
||||
toSerialize["PerformanceClass"] = val
|
||||
}
|
||||
if val, ok := getPointInTimeRecoveryRequestPayloadGetRecoveryTimeAttributeTypeOk(o.RecoveryTime); ok {
|
||||
toSerialize["RecoveryTime"] = val
|
||||
}
|
||||
if val, ok := getPointInTimeRecoveryRequestPayloadGetSizeAttributeTypeOk(o.Size); ok {
|
||||
toSerialize["Size"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullablePointInTimeRecoveryRequestPayload struct {
|
||||
value *PointInTimeRecoveryRequestPayload
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullablePointInTimeRecoveryRequestPayload) Get() *PointInTimeRecoveryRequestPayload {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullablePointInTimeRecoveryRequestPayload) Set(val *PointInTimeRecoveryRequestPayload) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullablePointInTimeRecoveryRequestPayload) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullablePointInTimeRecoveryRequestPayload) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullablePointInTimeRecoveryRequestPayload(val *PointInTimeRecoveryRequestPayload) *NullablePointInTimeRecoveryRequestPayload {
|
||||
return &NullablePointInTimeRecoveryRequestPayload{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullablePointInTimeRecoveryRequestPayload) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullablePointInTimeRecoveryRequestPayload) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
PostgreSQL Flex API
|
||||
|
||||
This is the documentation for the STACKIT Postgres Flex service
|
||||
|
||||
API version: 3alpha1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package postgresflexalpha
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue