diff --git a/README.md b/README.md index be70005..488f104 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: v1.2.0 -- Package version: v1.2.0 +- API version: v1.3.1 +- Package version: v1.3.1 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -101,6 +101,25 @@ Class | Method | HTTP request | Description *MysqlStatisticServiceApi* | [**MysqlStatisticServiceGetLoadAverage**](docs/MysqlStatisticServiceApi.md#mysqlstatisticservicegetloadaverage) | **Get** /v1/cloud/mysql/{service_id}/statistic/load-average | *MysqlStatisticServiceApi* | [**MysqlStatisticServiceGetMemory**](docs/MysqlStatisticServiceApi.md#mysqlstatisticservicegetmemory) | **Get** /v1/cloud/mysql/{service_id}/statistic/memory | *MysqlStatisticServiceApi* | [**MysqlStatisticServiceGetNetwork**](docs/MysqlStatisticServiceApi.md#mysqlstatisticservicegetnetwork) | **Get** /v1/cloud/mysql/{service_id}/statistic/network | +*PostgresqlServiceApi* | [**PostgresqlServiceCreateDb**](docs/PostgresqlServiceApi.md#postgresqlservicecreatedb) | **Post** /v1/cloud/postgresql/{service_id}/db | +*PostgresqlServiceApi* | [**PostgresqlServiceCreateRole**](docs/PostgresqlServiceApi.md#postgresqlservicecreaterole) | **Post** /v1/cloud/postgresql/{service_id}/role | +*PostgresqlServiceApi* | [**PostgresqlServiceGetConfig**](docs/PostgresqlServiceApi.md#postgresqlservicegetconfig) | **Get** /v1/cloud/postgresql/{service_id}/config | +*PostgresqlServiceApi* | [**PostgresqlServiceGetDbList**](docs/PostgresqlServiceApi.md#postgresqlservicegetdblist) | **Get** /v1/cloud/postgresql/{service_id}/db | +*PostgresqlServiceApi* | [**PostgresqlServiceGetRemoteAccess**](docs/PostgresqlServiceApi.md#postgresqlservicegetremoteaccess) | **Get** /v1/cloud/postgresql/{service_id}/remote-access | +*PostgresqlServiceApi* | [**PostgresqlServiceGetRoleList**](docs/PostgresqlServiceApi.md#postgresqlservicegetrolelist) | **Get** /v1/cloud/postgresql/{service_id}/role | +*PostgresqlServiceApi* | [**PostgresqlServiceRemoveDb**](docs/PostgresqlServiceApi.md#postgresqlserviceremovedb) | **Delete** /v1/cloud/postgresql/{service_id}/db/{db_name} | +*PostgresqlServiceApi* | [**PostgresqlServiceRemoveRole**](docs/PostgresqlServiceApi.md#postgresqlserviceremoverole) | **Delete** /v1/cloud/postgresql/{service_id}/role/{role_name} | +*PostgresqlServiceApi* | [**PostgresqlServiceSetConfig**](docs/PostgresqlServiceApi.md#postgresqlservicesetconfig) | **Put** /v1/cloud/postgresql/{service_id}/config | +*PostgresqlServiceApi* | [**PostgresqlServiceUpdateDb**](docs/PostgresqlServiceApi.md#postgresqlserviceupdatedb) | **Patch** /v1/cloud/postgresql/{service_id}/db/{db_name} | +*PostgresqlServiceApi* | [**PostgresqlServiceUpdateRemoteAccess**](docs/PostgresqlServiceApi.md#postgresqlserviceupdateremoteaccess) | **Put** /v1/cloud/postgresql/{service_id}/remote-access | +*PostgresqlServiceApi* | [**PostgresqlServiceUpdateRole**](docs/PostgresqlServiceApi.md#postgresqlserviceupdaterole) | **Patch** /v1/cloud/postgresql/{service_id}/role/{role_name} | +*PostgresqlStatisticServiceApi* | [**PostgresqlStatisticServiceGetCpu**](docs/PostgresqlStatisticServiceApi.md#postgresqlstatisticservicegetcpu) | **Get** /v1/cloud/postgresql/{service_id}/statistic/cpu | +*PostgresqlStatisticServiceApi* | [**PostgresqlStatisticServiceGetCpuDetails**](docs/PostgresqlStatisticServiceApi.md#postgresqlstatisticservicegetcpudetails) | **Get** /v1/cloud/postgresql/{service_id}/statistic/cpu-details | +*PostgresqlStatisticServiceApi* | [**PostgresqlStatisticServiceGetDisk**](docs/PostgresqlStatisticServiceApi.md#postgresqlstatisticservicegetdisk) | **Get** /v1/cloud/postgresql/{service_id}/statistic/disk | +*PostgresqlStatisticServiceApi* | [**PostgresqlStatisticServiceGetDiskUsage**](docs/PostgresqlStatisticServiceApi.md#postgresqlstatisticservicegetdiskusage) | **Get** /v1/cloud/postgresql/{service_id}/statistic/disk-usage | +*PostgresqlStatisticServiceApi* | [**PostgresqlStatisticServiceGetLoadAverage**](docs/PostgresqlStatisticServiceApi.md#postgresqlstatisticservicegetloadaverage) | **Get** /v1/cloud/postgresql/{service_id}/statistic/load-average | +*PostgresqlStatisticServiceApi* | [**PostgresqlStatisticServiceGetMemory**](docs/PostgresqlStatisticServiceApi.md#postgresqlstatisticservicegetmemory) | **Get** /v1/cloud/postgresql/{service_id}/statistic/memory | +*PostgresqlStatisticServiceApi* | [**PostgresqlStatisticServiceGetNetwork**](docs/PostgresqlStatisticServiceApi.md#postgresqlstatisticservicegetnetwork) | **Get** /v1/cloud/postgresql/{service_id}/statistic/network | ## Documentation For Models @@ -122,7 +141,7 @@ Class | Method | HTTP request | Description - [MysqlChangeAccessPasswordRequest](docs/MysqlChangeAccessPasswordRequest.md) - [MysqlChangeAccessPasswordResponse](docs/MysqlChangeAccessPasswordResponse.md) - [MysqlChangeAccessPasswordResponseError](docs/MysqlChangeAccessPasswordResponseError.md) - - [MysqlConfig](docs/MysqlConfig.md) + - [MysqlConfigInfo](docs/MysqlConfigInfo.md) - [MysqlCreateAccessRequest](docs/MysqlCreateAccessRequest.md) - [MysqlCreateAccessResponse](docs/MysqlCreateAccessResponse.md) - [MysqlCreateAccessResponseError](docs/MysqlCreateAccessResponseError.md) @@ -156,9 +175,55 @@ Class | Method | HTTP request | Description - [MysqlUpdateDbRequest](docs/MysqlUpdateDbRequest.md) - [MysqlUpdateDbResponse](docs/MysqlUpdateDbResponse.md) - [MysqlUpdateDbResponseError](docs/MysqlUpdateDbResponseError.md) + - [PostgresqlPgConfigInfo](docs/PostgresqlPgConfigInfo.md) + - [PostgresqlPgCreateDbRequest](docs/PostgresqlPgCreateDbRequest.md) + - [PostgresqlPgCreateDbResponse](docs/PostgresqlPgCreateDbResponse.md) + - [PostgresqlPgCreateDbResponseError](docs/PostgresqlPgCreateDbResponseError.md) + - [PostgresqlPgCreateError](docs/PostgresqlPgCreateError.md) + - [PostgresqlPgCreateParams](docs/PostgresqlPgCreateParams.md) + - [PostgresqlPgCreateRoleRequest](docs/PostgresqlPgCreateRoleRequest.md) + - [PostgresqlPgCreateRoleResponse](docs/PostgresqlPgCreateRoleResponse.md) + - [PostgresqlPgCreateRoleResponseError](docs/PostgresqlPgCreateRoleResponseError.md) + - [PostgresqlPgDb](docs/PostgresqlPgDb.md) + - [PostgresqlPgGetConfigResponse](docs/PostgresqlPgGetConfigResponse.md) + - [PostgresqlPgGetDbListResponse](docs/PostgresqlPgGetDbListResponse.md) + - [PostgresqlPgGetRemoteAccessResponse](docs/PostgresqlPgGetRemoteAccessResponse.md) + - [PostgresqlPgGetRoleListResponse](docs/PostgresqlPgGetRoleListResponse.md) + - [PostgresqlPgRemoteAccessState](docs/PostgresqlPgRemoteAccessState.md) + - [PostgresqlPgRemoveDbResponse](docs/PostgresqlPgRemoveDbResponse.md) + - [PostgresqlPgRemoveDbResponseError](docs/PostgresqlPgRemoveDbResponseError.md) + - [PostgresqlPgRemoveRoleResponse](docs/PostgresqlPgRemoveRoleResponse.md) + - [PostgresqlPgRemoveRoleResponseError](docs/PostgresqlPgRemoveRoleResponseError.md) + - [PostgresqlPgSetConfigRequest](docs/PostgresqlPgSetConfigRequest.md) + - [PostgresqlPgSetConfigResponse](docs/PostgresqlPgSetConfigResponse.md) + - [PostgresqlPgSetConfigResponseError](docs/PostgresqlPgSetConfigResponseError.md) + - [PostgresqlPgUpdateDbRequest](docs/PostgresqlPgUpdateDbRequest.md) + - [PostgresqlPgUpdateDbResponse](docs/PostgresqlPgUpdateDbResponse.md) + - [PostgresqlPgUpdateDbResponseError](docs/PostgresqlPgUpdateDbResponseError.md) + - [PostgresqlPgUpdateRemoteAccessRequest](docs/PostgresqlPgUpdateRemoteAccessRequest.md) + - [PostgresqlPgUpdateRemoteAccessResponse](docs/PostgresqlPgUpdateRemoteAccessResponse.md) + - [PostgresqlPgUpdateRemoteAccessResponseError](docs/PostgresqlPgUpdateRemoteAccessResponseError.md) + - [PostgresqlPgUpdateRoleRequest](docs/PostgresqlPgUpdateRoleRequest.md) + - [PostgresqlPgUpdateRoleResponse](docs/PostgresqlPgUpdateRoleResponse.md) + - [PostgresqlPgUpdateRoleResponseError](docs/PostgresqlPgUpdateRoleResponseError.md) + - [PostgresqlPostgresql14](docs/PostgresqlPostgresql14.md) + - [PostgresqlPostgresql14Configuration](docs/PostgresqlPostgresql14Configuration.md) + - [PostgresqlPostgresql15](docs/PostgresqlPostgresql15.md) + - [PostgresqlPostgresql15Configuration](docs/PostgresqlPostgresql15Configuration.md) + - [PostgresqlRole](docs/PostgresqlRole.md) + - [PostgresqlStatisticGetCpuDetailsResponse](docs/PostgresqlStatisticGetCpuDetailsResponse.md) + - [PostgresqlStatisticGetCpuResponse](docs/PostgresqlStatisticGetCpuResponse.md) + - [PostgresqlStatisticGetDiskResponse](docs/PostgresqlStatisticGetDiskResponse.md) + - [PostgresqlStatisticGetDiskUsageResponse](docs/PostgresqlStatisticGetDiskUsageResponse.md) + - [PostgresqlStatisticGetLoadAverageResponse](docs/PostgresqlStatisticGetLoadAverageResponse.md) + - [PostgresqlStatisticGetMemoryResponse](docs/PostgresqlStatisticGetMemoryResponse.md) + - [PostgresqlStatisticGetNetworkResponse](docs/PostgresqlStatisticGetNetworkResponse.md) - [StructuresAddressInfo](docs/StructuresAddressInfo.md) - [StructuresAddressInfoPrivateAddress](docs/StructuresAddressInfoPrivateAddress.md) - [StructuresAddressInfoPublicAddress](docs/StructuresAddressInfoPublicAddress.md) + - [StructuresParamConfig](docs/StructuresParamConfig.md) + - [StructuresParamConfigEnumValue](docs/StructuresParamConfigEnumValue.md) + - [StructuresParamConfigSetValue](docs/StructuresParamConfigSetValue.md) - [StructuresStatisticSeriesData](docs/StructuresStatisticSeriesData.md) diff --git a/VERSION b/VERSION index 79127d8..7574079 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.2.0 +v1.3.1 diff --git a/api/openapi.yaml b/api/openapi.yaml index 8a084cb..18940cd 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: API Управляемых сервисов - version: v1.2.0 + version: v1.3.1 servers: - url: https://api.beget.com security: @@ -10,6 +10,8 @@ tags: - name: CloudService - name: MysqlService - name: MysqlStatisticService +- name: PostgresqlService +- name: PostgresqlStatisticService paths: /v1/cloud: get: @@ -545,9 +547,9 @@ paths: description: OK tags: - MysqlStatisticService - /v1/cloud/{service_id}: - delete: - operationId: CloudService_Remove + /v1/cloud/postgresql/{service_id}/config: + get: + operationId: PostgresqlService_GetConfig parameters: - explode: false in: path @@ -561,12 +563,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cloud_RemoveResponse' + $ref: '#/components/schemas/Postgresql_PgGetConfigResponse' description: OK tags: - - CloudService + - PostgresqlService + put: + operationId: PostgresqlService_SetConfig + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgSetConfigRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgSetConfigResponse' + description: OK + tags: + - PostgresqlService + /v1/cloud/postgresql/{service_id}/db: get: - operationId: CloudService_Get + operationId: PostgresqlService_GetDbList parameters: - explode: false in: path @@ -580,12 +608,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cloud_GetResponse' + $ref: '#/components/schemas/Postgresql_PgGetDbListResponse' description: OK tags: - - CloudService - patch: - operationId: CloudService_Update + - PostgresqlService + post: + operationId: PostgresqlService_CreateDb parameters: - explode: false in: path @@ -598,20 +626,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cloud_UpdateRequest' + $ref: '#/components/schemas/Postgresql_PgCreateDbRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Cloud_UpdateResponse' + $ref: '#/components/schemas/Postgresql_PgCreateDbResponse' description: OK tags: - - CloudService - /v1/cloud/{service_id}/configuration: + - PostgresqlService + /v1/cloud/postgresql/{service_id}/db/{db_name}: + delete: + operationId: PostgresqlService_RemoveDb + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: db_name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgRemoveDbResponse' + description: OK + tags: + - PostgresqlService patch: - operationId: CloudService_ChangeConfiguration + operationId: PostgresqlService_UpdateDb parameters: - explode: false in: path @@ -620,691 +674,3679 @@ paths: schema: type: string style: simple + - explode: false + in: path + name: db_name + required: true + schema: + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/Cloud_ChangeConfigurationRequest' + $ref: '#/components/schemas/Postgresql_PgUpdateDbRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Cloud_ChangeConfigurationResponse' + $ref: '#/components/schemas/Postgresql_PgUpdateDbResponse' description: OK tags: - - CloudService -components: - schemas: - Cloud_ChangeConfigurationRequest: - properties: - service_id: - type: string - configuration_id: + - PostgresqlService + /v1/cloud/postgresql/{service_id}/remote-access: + get: + operationId: PostgresqlService_GetRemoteAccess + parameters: + - explode: false + in: path + name: service_id + required: true + schema: type: string - type: object - Cloud_ChangeConfigurationResponse: - example: - service: - price_month: 6.027456183070403 - description: description - created_at: created_at - mysql8: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - monitorable_resources: - - monitorable_resources - - monitorable_resources - display_name: display_name - mysql5: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - unblocking: true - price_day: 0.8008281904610115 - id: id - manage_enabled: true - region: region - configuration_id: configuration_id - slug: slug - migrating: true - status: CREATING - error: - code: _ - message: message - properties: - service: - $ref: '#/components/schemas/Cloud_Service' - error: - $ref: '#/components/schemas/Cloud_ChangeConfigurationResponse_Error' - type: object - Cloud_ChangeConfigurationResponse_Error: - example: - code: _ - message: message - properties: - message: + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgGetRemoteAccessResponse' + description: OK + tags: + - PostgresqlService + put: + operationId: PostgresqlService_UpdateRemoteAccess + parameters: + - explode: false + in: path + name: service_id + required: true + schema: type: string - code: - enum: - - _ - - INVALID_STATE - - SERVICE_DISABLED - - INVALID_CONFIGURATION - - INSUFFICIENT_FUNDS - format: enum + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgUpdateRemoteAccessRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgUpdateRemoteAccessResponse' + description: OK + tags: + - PostgresqlService + /v1/cloud/postgresql/{service_id}/role: + get: + operationId: PostgresqlService_GetRoleList + parameters: + - explode: false + in: path + name: service_id + required: true + schema: type: string - type: object - Cloud_CreateRequest: - properties: - configuration_id: + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgGetRoleListResponse' + description: OK + tags: + - PostgresqlService + post: + operationId: PostgresqlService_CreateRole + parameters: + - explode: false + in: path + name: service_id + required: true + schema: type: string - display_name: + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgCreateRoleRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgCreateRoleResponse' + description: OK + tags: + - PostgresqlService + /v1/cloud/postgresql/{service_id}/role/{role_name}: + delete: + operationId: PostgresqlService_RemoveRole + parameters: + - explode: false + in: path + name: service_id + required: true + schema: type: string - description: + style: simple + - explode: false + in: path + name: role_name + required: true + schema: type: string - mysql_params: + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgRemoveRoleResponse' + description: OK + tags: + - PostgresqlService + patch: + operationId: PostgresqlService_UpdateRole + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: role_name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgUpdateRoleRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Postgresql_PgUpdateRoleResponse' + description: OK + tags: + - PostgresqlService + /v1/cloud/postgresql/{service_id}/statistic/cpu: + get: + operationId: PostgresqlStatisticService_GetCpu + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: period + required: false + schema: + enum: + - UNKNOWN + - HOUR + - DAY + - WEEK + - MONTH + format: enum + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PostgresqlStatistic_GetCpuResponse' + description: OK + tags: + - PostgresqlStatisticService + /v1/cloud/postgresql/{service_id}/statistic/cpu-details: + get: + operationId: PostgresqlStatisticService_GetCpuDetails + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: period + required: false + schema: + enum: + - UNKNOWN + - HOUR + - DAY + - WEEK + - MONTH + format: enum + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PostgresqlStatistic_GetCpuDetailsResponse' + description: OK + tags: + - PostgresqlStatisticService + /v1/cloud/postgresql/{service_id}/statistic/disk: + get: + operationId: PostgresqlStatisticService_GetDisk + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: period + required: false + schema: + enum: + - UNKNOWN + - HOUR + - DAY + - WEEK + - MONTH + format: enum + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PostgresqlStatistic_GetDiskResponse' + description: OK + tags: + - PostgresqlStatisticService + /v1/cloud/postgresql/{service_id}/statistic/disk-usage: + get: + operationId: PostgresqlStatisticService_GetDiskUsage + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: period + required: false + schema: + enum: + - UNKNOWN + - HOUR + - DAY + - WEEK + - MONTH + format: enum + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PostgresqlStatistic_GetDiskUsageResponse' + description: OK + tags: + - PostgresqlStatisticService + /v1/cloud/postgresql/{service_id}/statistic/load-average: + get: + operationId: PostgresqlStatisticService_GetLoadAverage + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: period + required: false + schema: + enum: + - UNKNOWN + - HOUR + - DAY + - WEEK + - MONTH + format: enum + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PostgresqlStatistic_GetLoadAverageResponse' + description: OK + tags: + - PostgresqlStatisticService + /v1/cloud/postgresql/{service_id}/statistic/memory: + get: + operationId: PostgresqlStatisticService_GetMemory + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: period + required: false + schema: + enum: + - UNKNOWN + - HOUR + - DAY + - WEEK + - MONTH + format: enum + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PostgresqlStatistic_GetMemoryResponse' + description: OK + tags: + - PostgresqlStatisticService + /v1/cloud/postgresql/{service_id}/statistic/network: + get: + operationId: PostgresqlStatisticService_GetNetwork + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: period + required: false + schema: + enum: + - UNKNOWN + - HOUR + - DAY + - WEEK + - MONTH + format: enum + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PostgresqlStatistic_GetNetworkResponse' + description: OK + tags: + - PostgresqlStatisticService + /v1/cloud/{service_id}: + delete: + operationId: CloudService_Remove + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Cloud_RemoveResponse' + description: OK + tags: + - CloudService + get: + operationId: CloudService_Get + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Cloud_GetResponse' + description: OK + tags: + - CloudService + patch: + operationId: CloudService_Update + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cloud_UpdateRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Cloud_UpdateResponse' + description: OK + tags: + - CloudService + /v1/cloud/{service_id}/configuration: + patch: + operationId: CloudService_ChangeConfiguration + parameters: + - explode: false + in: path + name: service_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Cloud_ChangeConfigurationRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Cloud_ChangeConfigurationResponse' + description: OK + tags: + - CloudService +components: + schemas: + Cloud_ChangeConfigurationRequest: + properties: + service_id: + type: string + configuration_id: + type: string + type: object + Cloud_ChangeConfigurationResponse: + example: + service: + price_month: 6.027456183070403 + description: description + created_at: created_at + mysql8: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + monitorable_resources: + - monitorable_resources + - monitorable_resources + display_name: display_name + mysql5: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + postgresql14: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + unblocking: true + price_day: 0.8008281904610115 + id: id + manage_enabled: true + postgresql15: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + region: region + configuration_id: configuration_id + slug: slug + migrating: true + status: CREATING + error: + code: _ + message: message + properties: + service: + $ref: '#/components/schemas/Cloud_Service' + error: + $ref: '#/components/schemas/Cloud_ChangeConfigurationResponse_Error' + type: object + Cloud_ChangeConfigurationResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_CONFIGURATION + - INSUFFICIENT_FUNDS + format: enum + type: string + type: object + Cloud_CreateRequest: + properties: + configuration_id: + type: string + display_name: + type: string + description: + type: string + mysql_params: $ref: '#/components/schemas/Mysql_CreateParams' + postgresql_params: + $ref: '#/components/schemas/Postgresql_PgCreateParams' extra: type: string - region: + region: + type: string + type: object + Cloud_CreateResponse: + example: + mysql_error: + code: _ + message: message + service: + price_month: 6.027456183070403 + description: description + created_at: created_at + mysql8: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + monitorable_resources: + - monitorable_resources + - monitorable_resources + display_name: display_name + mysql5: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + postgresql14: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + unblocking: true + price_day: 0.8008281904610115 + id: id + manage_enabled: true + postgresql15: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + region: region + configuration_id: configuration_id + slug: slug + migrating: true + status: CREATING + postgresql_error: + code: _ + message: message + properties: + service: + $ref: '#/components/schemas/Cloud_Service' + mysql_error: + $ref: '#/components/schemas/Mysql_CreateError' + postgresql_error: + $ref: '#/components/schemas/Postgresql_PgCreateError' + type: object + Cloud_GetConfigurationListResponse: + example: + configuration: + - postgresql14: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + price_month: 6.027456183070403 + price_day: 0.8008281904610115 + mysql8: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + id: id + region: region + mysql5: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + postgresql15: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + - postgresql14: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + price_month: 6.027456183070403 + price_day: 0.8008281904610115 + mysql8: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + id: id + region: region + mysql5: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + postgresql15: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + properties: + configuration: + items: + $ref: '#/components/schemas/Cloud_ServiceConfiguration' + type: array + type: object + Cloud_GetListResponse: + example: + service: + - price_month: 6.027456183070403 + description: description + created_at: created_at + mysql8: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + monitorable_resources: + - monitorable_resources + - monitorable_resources + display_name: display_name + mysql5: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + postgresql14: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + unblocking: true + price_day: 0.8008281904610115 + id: id + manage_enabled: true + postgresql15: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + region: region + configuration_id: configuration_id + slug: slug + migrating: true + status: CREATING + - price_month: 6.027456183070403 + description: description + created_at: created_at + mysql8: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + monitorable_resources: + - monitorable_resources + - monitorable_resources + display_name: display_name + mysql5: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + postgresql14: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + unblocking: true + price_day: 0.8008281904610115 + id: id + manage_enabled: true + postgresql15: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + region: region + configuration_id: configuration_id + slug: slug + migrating: true + status: CREATING + properties: + service: + items: + $ref: '#/components/schemas/Cloud_Service' + type: array + type: object + Cloud_GetResponse: + example: + service: + price_month: 6.027456183070403 + description: description + created_at: created_at + mysql8: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + monitorable_resources: + - monitorable_resources + - monitorable_resources + display_name: display_name + mysql5: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + postgresql14: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + unblocking: true + price_day: 0.8008281904610115 + id: id + manage_enabled: true + postgresql15: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + region: region + configuration_id: configuration_id + slug: slug + migrating: true + status: CREATING + properties: + service: + $ref: '#/components/schemas/Cloud_Service' + type: object + Cloud_RemoveResponse: + example: + success: "{}" + properties: + success: + properties: {} + type: object + type: object + Cloud_RemoveResponse_Success: + properties: {} + type: object + Cloud_Service: + example: + price_month: 6.027456183070403 + description: description + created_at: created_at + mysql8: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + monitorable_resources: + - monitorable_resources + - monitorable_resources + display_name: display_name + mysql5: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + postgresql14: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + unblocking: true + price_day: 0.8008281904610115 + id: id + manage_enabled: true + postgresql15: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + region: region + configuration_id: configuration_id + slug: slug + migrating: true + status: CREATING + properties: + id: + type: string + configuration_id: + type: string + display_name: + type: string + description: + type: string + status: + enum: + - CREATING + - RUNNING + - RESTARTING + - STOPPED + - RECONFIGURING + format: enum + type: string + created_at: + type: string + price_day: + format: double + type: number + price_month: + format: double + type: number + mysql5: + $ref: '#/components/schemas/Mysql_Mysql5' + mysql8: + $ref: '#/components/schemas/Mysql_Mysql8' + postgresql15: + $ref: '#/components/schemas/Postgresql_Postgresql15' + postgresql14: + $ref: '#/components/schemas/Postgresql_Postgresql14' + manage_enabled: + type: boolean + slug: + type: string + monitorable_resources: + items: + type: string + type: array + unblocking: + type: boolean + migrating: + type: boolean + region: + type: string + type: object + Cloud_ServiceConfiguration: + example: + postgresql14: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + price_month: 6.027456183070403 + price_day: 0.8008281904610115 + mysql8: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + id: id + region: region + mysql5: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + postgresql15: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + properties: + id: + type: string + price_day: + format: double + type: number + price_month: + format: double + type: number + region: + type: string + mysql5: + $ref: '#/components/schemas/Mysql_Mysql5Configuration' + mysql8: + $ref: '#/components/schemas/Mysql_Mysql8Configuration' + postgresql15: + $ref: '#/components/schemas/Postgresql_Postgresql15Configuration' + postgresql14: + $ref: '#/components/schemas/Postgresql_Postgresql14Configuration' + type: object + Cloud_UpdateRequest: + properties: + service_id: + type: string + display_name: + type: string + description: + type: string + type: object + Cloud_UpdateResponse: + example: + service: + price_month: 6.027456183070403 + description: description + created_at: created_at + mysql8: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + monitorable_resources: + - monitorable_resources + - monitorable_resources + display_name: display_name + mysql5: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left + postgresql14: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + unblocking: true + price_day: 0.8008281904610115 + id: id + manage_enabled: true + postgresql15: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + region: region + configuration_id: configuration_id + slug: slug + migrating: true + status: CREATING + error: + code: _ + message: message + properties: + service: + $ref: '#/components/schemas/Cloud_Service' + error: + $ref: '#/components/schemas/Cloud_UpdateResponse_Error' + type: object + Cloud_UpdateResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_DISPLAY_NAME + - INVALID_DESCRIPTION + format: enum + type: string + type: object + MysqlStatistic_GetCpuDetailsResponse: + example: + date: + - date + - date + system: + - 1.4658129805029452 + - 1.4658129805029452 + softirq: + - 7.061401241503109 + - 7.061401241503109 + idle: + - 5.962133916683182 + - 5.962133916683182 + irq: + - 2.3021358869347655 + - 2.3021358869347655 + iowait: + - 5.637376656633329 + - 5.637376656633329 + user: + - 0.8008281904610115 + - 0.8008281904610115 + nice: + - 6.027456183070403 + - 6.027456183070403 + properties: + date: + items: + type: string + type: array + user: + items: + format: double + type: number + type: array + nice: + items: + format: double + type: number + type: array + system: + items: + format: double + type: number + type: array + idle: + items: + format: double + type: number + type: array + iowait: + items: + format: double + type: number + type: array + irq: + items: + format: double + type: number + type: array + softirq: + items: + format: double + type: number + type: array + type: object + MysqlStatistic_GetCpuResponse: + example: + cpu: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + properties: + cpu: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + type: object + MysqlStatistic_GetDiskResponse: + example: + data_write: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + data_read: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + properties: + data_read: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + data_write: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + type: object + MysqlStatistic_GetDiskUsageResponse: + example: + disk_usage: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + properties: + disk_usage: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + type: object + MysqlStatistic_GetLoadAverageResponse: + example: + date: + - date + - date + la5: + - 6.027456183070403 + - 6.027456183070403 + la15: + - 1.4658129805029452 + - 1.4658129805029452 + la1: + - 0.8008281904610115 + - 0.8008281904610115 + properties: + date: + items: + type: string + type: array + la1: + items: + format: double + type: number + type: array + la5: + items: + format: double + type: number + type: array + la15: + items: + format: double + type: number + type: array + type: object + MysqlStatistic_GetMemoryResponse: + example: + memory: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + properties: + memory: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + type: object + MysqlStatistic_GetNetworkResponse: + example: + data_rx_private: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + data_tx_private: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + data_tx: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + data_rx: + date: + - date + - date + value: + - 0.8008281904610115 + - 0.8008281904610115 + properties: + data_rx: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + data_tx: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + data_rx_private: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + data_tx_private: + $ref: '#/components/schemas/Structures_StatisticSeriesData' + type: object + Mysql_ChangeAccessPasswordRequest: + properties: + service_id: + type: string + db_name: + type: string + host: + type: string + password: + type: string + save_pma_password: + type: boolean + type: object + Mysql_ChangeAccessPasswordResponse: + example: + access: + password: password + host: host + error: + code: _ + message: message + properties: + access: + $ref: '#/components/schemas/Mysql_Db_Access' + error: + $ref: '#/components/schemas/Mysql_ChangeAccessPasswordResponse_Error' + type: object + Mysql_ChangeAccessPasswordResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_ACCESS_PASSWORD + - BLACKLISTED_ACCESS_PASSWORD + format: enum + type: string + type: object + Mysql_ConfigInfo: + example: + param: + key: param + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + param_default: + key: param_default + properties: + param_default: + additionalProperties: + type: string + type: object + param_config: + items: + $ref: '#/components/schemas/Structures_ParamConfig' + type: array + param: + additionalProperties: + type: string + type: object + type: object + Mysql_CreateAccessRequest: + properties: + service_id: + type: string + db_name: + type: string + host: type: string + password: + type: string + save_pma_password: + type: boolean type: object - Cloud_CreateResponse: + Mysql_CreateAccessResponse: example: - mysql_error: + access: + password: password + host: host + error: code: _ message: message - service: - price_month: 6.027456183070403 + properties: + access: + $ref: '#/components/schemas/Mysql_Db_Access' + error: + $ref: '#/components/schemas/Mysql_CreateAccessResponse_Error' + type: object + Mysql_CreateAccessResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_ACCESS_HOST + - INVALID_ACCESS_PASSWORD + - ACCESS_ALREADY_EXISTS + - BLACKLISTED_ACCESS_PASSWORD + format: enum + type: string + type: object + Mysql_CreateDbRequest: + properties: + service_id: + type: string + db_name: + type: string + password: + type: string + save_pma_password: + type: boolean + description: + type: string + type: object + Mysql_CreateDbResponse: + example: + error: + code: _ + message: message + db: + access: + - password: password + host: host + - password: password + host: host + size: size + name: name description: description - created_at: created_at - mysql8: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true + pma_password_saved: true + properties: + db: + $ref: '#/components/schemas/Mysql_Db' + error: + $ref: '#/components/schemas/Mysql_CreateDbResponse_Error' + type: object + Mysql_CreateDbResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_DB_NAME + - DB_ALREADY_EXISTS + - INVALID_ACCESS_PASSWORD + - INVALID_DESCRIPTION + - BLACKLISTED_ACCESS_PASSWORD + format: enum + type: string + type: object + Mysql_CreateError: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INSUFFICIENT_FUNDS + - CONFIGURATION_NOT_FOUND + - INVALID_DISPLAY_NAME + - INVALID_DESCRIPTION + - INVALID_DB_NAME + - INVALID_ACCESS_PASSWORD + - TEMPORARILY_UNAVAILABLE + - SERVICE_DISABLED + - BLACKLISTED_ACCESS_PASSWORD + - INVALID_CONFIG_PARAMS + format: enum + type: string + type: object + Mysql_CreateParams: + properties: + db_name: + type: string + access_password: + type: string + param: + additionalProperties: + type: string + type: object + save_pma_password: + type: boolean + type: object + Mysql_Db: + example: + access: + - password: password + host: host + - password: password + host: host + size: size + name: name + description: description + pma_password_saved: true + properties: + name: + type: string + size: + type: string + access: + items: + $ref: '#/components/schemas/Mysql_Db_Access' + type: array + pma_password_saved: + type: boolean + description: + type: string + type: object + Mysql_Db_Access: + example: + password: password + host: host + properties: + host: + type: string + password: + type: string + type: object + Mysql_GetConfigResponse: + example: + config: + param: + key: param + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + param_default: + key: param_default + properties: + config: + $ref: '#/components/schemas/Mysql_ConfigInfo' + type: object + Mysql_GetDbListResponse: + example: + db: + - access: + - password: password host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - monitorable_resources: - - monitorable_resources - - monitorable_resources - display_name: display_name - mysql5: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true + - password: password host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - unblocking: true - price_day: 0.8008281904610115 - id: id - manage_enabled: true - region: region - configuration_id: configuration_id - slug: slug - migrating: true - status: CREATING + size: size + name: name + description: description + pma_password_saved: true + - access: + - password: password + host: host + - password: password + host: host + size: size + name: name + description: description + pma_password_saved: true properties: - service: - $ref: '#/components/schemas/Cloud_Service' - mysql_error: - $ref: '#/components/schemas/Mysql_CreateError' + db: + items: + $ref: '#/components/schemas/Mysql_Db' + type: array type: object - Cloud_GetConfigurationListResponse: + Mysql_Mysql5: example: + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used configuration: - - price_month: 6.027456183070403 - price_day: 0.8008281904610115 - mysql8: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - id: id - region: region - mysql5: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - - price_month: 6.027456183070403 - price_day: 0.8008281904610115 - mysql8: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - id: id - region: region - mysql5: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left properties: configuration: + $ref: '#/components/schemas/Mysql_Mysql5Configuration' + host: + type: string + port: + format: uint32 + type: integer + address_info: + $ref: '#/components/schemas/Structures_AddressInfo' + pma_url: + type: string + disk_used: + type: string + disk_left: + type: string + read_only: + type: boolean + pma_installing: + type: boolean + type: object + Mysql_Mysql5Configuration: + example: + memory: 5 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 5 + param_default: + key: param_default + version: version + cpu_count: 1 + properties: + cpu_count: + format: uint32 + type: integer + disk_size: + format: uint32 + type: integer + memory: + format: uint32 + type: integer + version: + type: string + display_version: + type: string + param_config: items: - $ref: '#/components/schemas/Cloud_ServiceConfiguration' + $ref: '#/components/schemas/Structures_ParamConfig' type: array + param_default: + additionalProperties: + type: string + type: object type: object - Cloud_GetListResponse: + Mysql_Mysql8: example: - service: - - price_month: 6.027456183070403 - description: description - created_at: created_at - mysql8: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - monitorable_resources: - - monitorable_resources - - monitorable_resources - display_name: display_name - mysql5: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - unblocking: true - price_day: 0.8008281904610115 - id: id - manage_enabled: true - region: region - configuration_id: configuration_id - slug: slug - migrating: true - status: CREATING - - price_month: 6.027456183070403 - description: description - created_at: created_at - mysql8: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - monitorable_resources: - - monitorable_resources - - monitorable_resources - display_name: display_name - mysql5: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - unblocking: true - price_day: 0.8008281904610115 - id: id - manage_enabled: true - region: region - configuration_id: configuration_id - slug: slug - migrating: true - status: CREATING + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 + port: 2 + read_only: true + host: host + pma_installing: true + pma_url: pma_url + disk_left: disk_left properties: - service: - items: - $ref: '#/components/schemas/Cloud_Service' - type: array + configuration: + $ref: '#/components/schemas/Mysql_Mysql8Configuration' + host: + type: string + port: + format: uint32 + type: integer + address_info: + $ref: '#/components/schemas/Structures_AddressInfo' + pma_url: + type: string + disk_used: + type: string + disk_left: + type: string + read_only: + type: boolean + pma_installing: + type: boolean type: object - Cloud_GetResponse: + Mysql_Mysql8Configuration: example: - service: - price_month: 6.027456183070403 - description: description - created_at: created_at - mysql8: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - monitorable_resources: - - monitorable_resources - - monitorable_resources - display_name: display_name - mysql5: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - unblocking: true - price_day: 0.8008281904610115 - id: id - manage_enabled: true - region: region - configuration_id: configuration_id - slug: slug - migrating: true - status: CREATING + memory: 3 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 9 + param_default: + key: param_default + version: version + cpu_count: 7 properties: - service: - $ref: '#/components/schemas/Cloud_Service' + cpu_count: + format: uint32 + type: integer + disk_size: + format: uint32 + type: integer + memory: + format: uint32 + type: integer + version: + type: string + display_version: + type: string + param_config: + items: + $ref: '#/components/schemas/Structures_ParamConfig' + type: array + param_default: + additionalProperties: + type: string + type: object type: object - Cloud_RemoveResponse: + Mysql_RemoveAccessResponse: example: success: "{}" + error: + code: _ + message: message properties: success: properties: {} type: object + error: + $ref: '#/components/schemas/Mysql_RemoveAccessResponse_Error' type: object - Cloud_RemoveResponse_Success: - properties: {} - type: object - Cloud_Service: + Mysql_RemoveAccessResponse_Error: example: - price_month: 6.027456183070403 - description: description - created_at: created_at - mysql8: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - monitorable_resources: - - monitorable_resources - - monitorable_resources - display_name: display_name - mysql5: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - unblocking: true - price_day: 0.8008281904610115 - id: id - manage_enabled: true - region: region - configuration_id: configuration_id - slug: slug - migrating: true - status: CREATING + code: _ + message: message properties: - id: - type: string - configuration_id: - type: string - display_name: - type: string - description: + message: type: string - status: + code: enum: - - CREATING - - RUNNING - - RESTARTING - - STOPPED - - RECONFIGURING + - _ + - INVALID_STATE + - SERVICE_DISABLED format: enum type: string - created_at: + type: object + Mysql_RemoveAccessResponse_Success: + properties: {} + type: object + Mysql_RemoveDbResponse: + example: + success: "{}" + error: + code: _ + message: message + properties: + success: + properties: {} + type: object + error: + $ref: '#/components/schemas/Mysql_RemoveDbResponse_Error' + type: object + Mysql_RemoveDbResponse_Error: + example: + code: _ + message: message + properties: + message: type: string - price_day: - format: double - type: number - price_month: - format: double - type: number - mysql5: - $ref: '#/components/schemas/Mysql_Mysql5' - mysql8: - $ref: '#/components/schemas/Mysql_Mysql8' - manage_enabled: - type: boolean - slug: + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + format: enum type: string - monitorable_resources: - items: - type: string - type: array - unblocking: - type: boolean - migrating: - type: boolean - region: + type: object + Mysql_RemoveDbResponse_Success: + properties: {} + type: object + Mysql_SetConfigRequest: + properties: + service_id: type: string + param: + additionalProperties: + type: string + type: object type: object - Cloud_ServiceConfiguration: + Mysql_SetConfigResponse: example: - price_month: 6.027456183070403 - price_day: 0.8008281904610115 - mysql8: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - id: id - region: region - mysql5: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 + error: + code: _ + message: message + config: + param: + key: param + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + param_default: + key: param_default properties: - id: + config: + $ref: '#/components/schemas/Mysql_ConfigInfo' + error: + $ref: '#/components/schemas/Mysql_SetConfigResponse_Error' + type: object + Mysql_SetConfigResponse_Error: + example: + code: _ + message: message + properties: + message: type: string - price_day: - format: double - type: number - price_month: - format: double - type: number - region: + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_CONFIG_PARAMS + format: enum type: string - mysql5: - $ref: '#/components/schemas/Mysql_Mysql5Configuration' - mysql8: - $ref: '#/components/schemas/Mysql_Mysql8Configuration' type: object - Cloud_UpdateRequest: + Mysql_UpdateDbRequest: properties: service_id: type: string - display_name: + db_name: type: string description: type: string type: object - Cloud_UpdateResponse: + Mysql_UpdateDbResponse: example: - service: - price_month: 6.027456183070403 - description: description - created_at: created_at - mysql8: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - monitorable_resources: - - monitorable_resources - - monitorable_resources - display_name: display_name - mysql5: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - unblocking: true - price_day: 0.8008281904610115 - id: id - manage_enabled: true - region: region - configuration_id: configuration_id - slug: slug - migrating: true - status: CREATING error: code: _ message: message + db: + access: + - password: password + host: host + - password: password + host: host + size: size + name: name + description: description + pma_password_saved: true properties: - service: - $ref: '#/components/schemas/Cloud_Service' + db: + $ref: '#/components/schemas/Mysql_Db' error: - $ref: '#/components/schemas/Cloud_UpdateResponse_Error' + $ref: '#/components/schemas/Mysql_UpdateDbResponse_Error' type: object - Cloud_UpdateResponse_Error: + Mysql_UpdateDbResponse_Error: example: code: _ message: message @@ -1314,12 +4356,11 @@ components: code: enum: - _ - - INVALID_DISPLAY_NAME - INVALID_DESCRIPTION format: enum type: string type: object - MysqlStatistic_GetCpuDetailsResponse: + PostgresqlStatistic_GetCpuDetailsResponse: example: date: - date @@ -1386,7 +4427,7 @@ components: type: number type: array type: object - MysqlStatistic_GetCpuResponse: + PostgresqlStatistic_GetCpuResponse: example: cpu: date: @@ -1399,7 +4440,7 @@ components: cpu: $ref: '#/components/schemas/Structures_StatisticSeriesData' type: object - MysqlStatistic_GetDiskResponse: + PostgresqlStatistic_GetDiskResponse: example: data_write: date: @@ -1421,7 +4462,7 @@ components: data_write: $ref: '#/components/schemas/Structures_StatisticSeriesData' type: object - MysqlStatistic_GetDiskUsageResponse: + PostgresqlStatistic_GetDiskUsageResponse: example: disk_usage: date: @@ -1434,7 +4475,7 @@ components: disk_usage: $ref: '#/components/schemas/Structures_StatisticSeriesData' type: object - MysqlStatistic_GetLoadAverageResponse: + PostgresqlStatistic_GetLoadAverageResponse: example: date: - date @@ -1469,7 +4510,7 @@ components: type: number type: array type: object - MysqlStatistic_GetMemoryResponse: + PostgresqlStatistic_GetMemoryResponse: example: memory: date: @@ -1482,7 +4523,7 @@ components: memory: $ref: '#/components/schemas/Structures_StatisticSeriesData' type: object - MysqlStatistic_GetNetworkResponse: + PostgresqlStatistic_GetNetworkResponse: example: data_rx_private: date: @@ -1522,144 +4563,81 @@ components: data_tx_private: $ref: '#/components/schemas/Structures_StatisticSeriesData' type: object - Mysql_ChangeAccessPasswordRequest: - properties: - service_id: - type: string - db_name: - type: string - host: - type: string - password: - type: string - save_pma_password: - type: boolean - type: object - Mysql_ChangeAccessPasswordResponse: - example: - access: - password: password - host: host - error: - code: _ - message: message - properties: - access: - $ref: '#/components/schemas/Mysql_Db_Access' - error: - $ref: '#/components/schemas/Mysql_ChangeAccessPasswordResponse_Error' - type: object - Mysql_ChangeAccessPasswordResponse_Error: - example: - code: _ - message: message - properties: - message: - type: string - code: - enum: - - _ - - INVALID_STATE - - SERVICE_DISABLED - - INVALID_ACCESS_PASSWORD - - BLACKLISTED_ACCESS_PASSWORD - format: enum - type: string - type: object - Mysql_Config: + Postgresql_PgConfigInfo: example: - preset_name: preset_name - param: - key: param - properties: param: - additionalProperties: - type: string - type: object - preset_name: - type: string - type: object - Mysql_CreateAccessRequest: - properties: - service_id: - type: string - db_name: - type: string - host: - type: string - password: - type: string - save_pma_password: - type: boolean - type: object - Mysql_CreateAccessResponse: - example: - access: - password: password - host: host - error: - code: _ - message: message - properties: - access: - $ref: '#/components/schemas/Mysql_Db_Access' - error: - $ref: '#/components/schemas/Mysql_CreateAccessResponse_Error' - type: object - Mysql_CreateAccessResponse_Error: - example: - code: _ - message: message + key: param + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + param_default: + key: param_default properties: - message: - type: string - code: - enum: - - _ - - INVALID_STATE - - SERVICE_DISABLED - - INVALID_ACCESS_HOST - - INVALID_ACCESS_PASSWORD - - ACCESS_ALREADY_EXISTS - - BLACKLISTED_ACCESS_PASSWORD - format: enum - type: string + param_default: + additionalProperties: + type: string + type: object + param_config: + items: + $ref: '#/components/schemas/Structures_ParamConfig' + type: array + param: + additionalProperties: + type: string + type: object type: object - Mysql_CreateDbRequest: + Postgresql_PgCreateDbRequest: properties: service_id: type: string db_name: type: string - password: + owner_name: type: string - save_pma_password: - type: boolean description: type: string type: object - Mysql_CreateDbResponse: + Postgresql_PgCreateDbResponse: example: error: code: _ message: message db: - access: - - password: password - host: host - - password: password - host: host + owner: owner size: size name: name description: description - pma_password_saved: true properties: db: - $ref: '#/components/schemas/Mysql_Db' + $ref: '#/components/schemas/Postgresql_PgDb' error: - $ref: '#/components/schemas/Mysql_CreateDbResponse_Error' + $ref: '#/components/schemas/Postgresql_PgCreateDbResponse_Error' type: object - Mysql_CreateDbResponse_Error: + Postgresql_PgCreateDbResponse_Error: example: code: _ message: message @@ -1673,13 +4651,12 @@ components: - SERVICE_DISABLED - INVALID_DB_NAME - DB_ALREADY_EXISTS - - INVALID_ACCESS_PASSWORD - INVALID_DESCRIPTION - - BLACKLISTED_ACCESS_PASSWORD + - DB_NAME_IS_RESERVED format: enum type: string type: object - Mysql_CreateError: + Postgresql_PgCreateError: example: code: _ message: message @@ -1694,236 +4671,196 @@ components: - INVALID_DISPLAY_NAME - INVALID_DESCRIPTION - INVALID_DB_NAME - - INVALID_ACCESS_PASSWORD + - INVALID_ROLE_NAME + - INVALID_PASSWORD - TEMPORARILY_UNAVAILABLE - SERVICE_DISABLED - - BLACKLISTED_ACCESS_PASSWORD + - BLACKLISTED_PASSWORD - INVALID_CONFIG_PARAMS + - DB_NAME_IS_RESERVED + - ROLE_NAME_IS_RESERVED format: enum type: string type: object - Mysql_CreateParams: + Postgresql_PgCreateParams: properties: db_name: type: string - access_password: + role_name: + type: string + password: type: string param: additionalProperties: type: string type: object - preset_name: + type: object + Postgresql_PgCreateRoleRequest: + properties: + service_id: type: string - save_pma_password: - type: boolean + role_name: + type: string + password: + type: string + parent_role: + items: + type: string + type: array type: object - Mysql_Db: + Postgresql_PgCreateRoleResponse: example: - access: - - password: password - host: host - - password: password - host: host + role: + password: password + name: name + parent_role: + - parent_role + - parent_role + predefined: true + error: + code: _ + message: message + properties: + role: + $ref: '#/components/schemas/Postgresql_Role' + error: + $ref: '#/components/schemas/Postgresql_PgCreateRoleResponse_Error' + type: object + Postgresql_PgCreateRoleResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_ROLE_NAME + - INVALID_PASSWORD + - ROLE_ALREADY_EXISTS + - BLACKLISTED_PASSWORD + - INVALID_PARENT_ROLE_LIST + - ROLE_NAME_IS_RESERVED + format: enum + type: string + type: object + Postgresql_PgDb: + example: + owner: owner size: size name: name description: description - pma_password_saved: true properties: name: type: string size: type: string - access: - items: - $ref: '#/components/schemas/Mysql_Db_Access' - type: array - pma_password_saved: - type: boolean - description: - type: string - type: object - Mysql_Db_Access: - example: - password: password - host: host - properties: - host: + owner: type: string - password: + description: type: string type: object - Mysql_GetConfigResponse: + Postgresql_PgGetConfigResponse: example: config: - preset_name: preset_name param: key: param + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + param_default: + key: param_default properties: config: - $ref: '#/components/schemas/Mysql_Config' + $ref: '#/components/schemas/Postgresql_PgConfigInfo' type: object - Mysql_GetDbListResponse: + Postgresql_PgGetDbListResponse: example: db: - - access: - - password: password - host: host - - password: password - host: host + - owner: owner size: size name: name description: description - pma_password_saved: true - - access: - - password: password - host: host - - password: password - host: host + - owner: owner size: size name: name description: description - pma_password_saved: true properties: db: items: - $ref: '#/components/schemas/Mysql_Db' + $ref: '#/components/schemas/Postgresql_PgDb' type: array type: object - Mysql_Mysql5: - example: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left - properties: - configuration: - $ref: '#/components/schemas/Mysql_Mysql5Configuration' - host: - type: string - port: - format: uint32 - type: integer - address_info: - $ref: '#/components/schemas/Structures_AddressInfo' - pma_url: - type: string - disk_used: - type: string - disk_left: - type: string - read_only: - type: boolean - pma_installing: - type: boolean - type: object - Mysql_Mysql5Configuration: + Postgresql_PgGetRemoteAccessResponse: example: - memory: 5 - display_version: display_version - disk_size: 5 - version: version - cpu_count: 1 + state: + subnet_address: + - subnet_address + - subnet_address properties: - cpu_count: - format: uint32 - type: integer - disk_size: - format: uint32 - type: integer - memory: - format: uint32 - type: integer - version: - type: string - display_version: - type: string + state: + $ref: '#/components/schemas/Postgresql_PgRemoteAccessState' type: object - Mysql_Mysql8: + Postgresql_PgGetRoleListResponse: example: - address_info: - private: - - network_id: network_id - ip: ip - - network_id: network_id - ip: ip - public: - - ip: ip - - ip: ip - disk_used: disk_used - configuration: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 - port: 2 - read_only: true - host: host - pma_installing: true - pma_url: pma_url - disk_left: disk_left + role: + - password: password + name: name + parent_role: + - parent_role + - parent_role + predefined: true + - password: password + name: name + parent_role: + - parent_role + - parent_role + predefined: true properties: - configuration: - $ref: '#/components/schemas/Mysql_Mysql8Configuration' - host: - type: string - port: - format: uint32 - type: integer - address_info: - $ref: '#/components/schemas/Structures_AddressInfo' - pma_url: - type: string - disk_used: - type: string - disk_left: - type: string - read_only: - type: boolean - pma_installing: - type: boolean + role: + items: + $ref: '#/components/schemas/Postgresql_Role' + type: array type: object - Mysql_Mysql8Configuration: + Postgresql_PgRemoteAccessState: example: - memory: 3 - display_version: display_version - disk_size: 9 - version: version - cpu_count: 7 + subnet_address: + - subnet_address + - subnet_address properties: - cpu_count: - format: uint32 - type: integer - disk_size: - format: uint32 - type: integer - memory: - format: uint32 - type: integer - version: - type: string - display_version: - type: string + subnet_address: + items: + type: string + type: array type: object - Mysql_RemoveAccessResponse: + Postgresql_PgRemoveDbResponse: example: success: "{}" error: @@ -1934,9 +4871,9 @@ components: properties: {} type: object error: - $ref: '#/components/schemas/Mysql_RemoveAccessResponse_Error' + $ref: '#/components/schemas/Postgresql_PgRemoveDbResponse_Error' type: object - Mysql_RemoveAccessResponse_Error: + Postgresql_PgRemoveDbResponse_Error: example: code: _ message: message @@ -1951,10 +4888,10 @@ components: format: enum type: string type: object - Mysql_RemoveAccessResponse_Success: + Postgresql_PgRemoveDbResponse_Success: properties: {} type: object - Mysql_RemoveDbResponse: + Postgresql_PgRemoveRoleResponse: example: success: "{}" error: @@ -1965,9 +4902,9 @@ components: properties: {} type: object error: - $ref: '#/components/schemas/Mysql_RemoveDbResponse_Error' + $ref: '#/components/schemas/Postgresql_PgRemoveRoleResponse_Error' type: object - Mysql_RemoveDbResponse_Error: + Postgresql_PgRemoveRoleResponse_Error: example: code: _ message: message @@ -1979,13 +4916,15 @@ components: - _ - INVALID_STATE - SERVICE_DISABLED + - ROLE_IS_DB_OWNER + - ROLE_IS_PREDEFINED format: enum type: string type: object - Mysql_RemoveDbResponse_Success: + Postgresql_PgRemoveRoleResponse_Success: properties: {} type: object - Mysql_SetConfigRequest: + Postgresql_PgSetConfigRequest: properties: service_id: type: string @@ -1993,25 +4932,51 @@ components: additionalProperties: type: string type: object - preset_name: - type: string type: object - Mysql_SetConfigResponse: + Postgresql_PgSetConfigResponse: example: error: code: _ message: message config: - preset_name: preset_name param: key: param + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + param_default: + key: param_default properties: config: - $ref: '#/components/schemas/Mysql_Config' + $ref: '#/components/schemas/Postgresql_PgConfigInfo' error: - $ref: '#/components/schemas/Mysql_SetConfigResponse_Error' + $ref: '#/components/schemas/Postgresql_PgSetConfigResponse_Error' type: object - Mysql_SetConfigResponse_Error: + Postgresql_PgSetConfigResponse_Error: example: code: _ message: message @@ -2027,7 +4992,7 @@ components: format: enum type: string type: object - Mysql_UpdateDbRequest: + Postgresql_PgUpdateDbRequest: properties: service_id: type: string @@ -2036,28 +5001,23 @@ components: description: type: string type: object - Mysql_UpdateDbResponse: + Postgresql_PgUpdateDbResponse: example: error: code: _ message: message db: - access: - - password: password - host: host - - password: password - host: host + owner: owner size: size name: name description: description - pma_password_saved: true properties: db: - $ref: '#/components/schemas/Mysql_Db' + $ref: '#/components/schemas/Postgresql_PgDb' error: - $ref: '#/components/schemas/Mysql_UpdateDbResponse_Error' + $ref: '#/components/schemas/Postgresql_PgUpdateDbResponse_Error' type: object - Mysql_UpdateDbResponse_Error: + Postgresql_PgUpdateDbResponse_Error: example: code: _ message: message @@ -2071,6 +5031,384 @@ components: format: enum type: string type: object + Postgresql_PgUpdateRemoteAccessRequest: + properties: + service_id: + type: string + subnet_address: + items: + type: string + type: array + type: object + Postgresql_PgUpdateRemoteAccessResponse: + example: + state: + subnet_address: + - subnet_address + - subnet_address + error: + code: _ + message: message + properties: + state: + $ref: '#/components/schemas/Postgresql_PgRemoteAccessState' + error: + $ref: '#/components/schemas/Postgresql_PgUpdateRemoteAccessResponse_Error' + type: object + Postgresql_PgUpdateRemoteAccessResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_SUBNET_ADDRESS + - IP_IS_IN_EXISTED_SUBNET + - SUBNET_IS_IN_EXISTED_SUBNET + - SUBNET_IS_PRIVATE + format: enum + type: string + type: object + Postgresql_PgUpdateRoleRequest: + properties: + service_id: + type: string + role_name: + type: string + password: + type: string + parent_role: + items: + type: string + type: array + type: object + Postgresql_PgUpdateRoleResponse: + example: + role: + password: password + name: name + parent_role: + - parent_role + - parent_role + predefined: true + error: + code: _ + message: message + properties: + role: + $ref: '#/components/schemas/Postgresql_Role' + error: + $ref: '#/components/schemas/Postgresql_PgUpdateRoleResponse_Error' + type: object + Postgresql_PgUpdateRoleResponse_Error: + example: + code: _ + message: message + properties: + message: + type: string + code: + enum: + - _ + - INVALID_STATE + - SERVICE_DISABLED + - INVALID_PASSWORD + - BLACKLISTED_PASSWORD + - INVALID_PARENT_ROLE_LIST + format: enum + type: string + type: object + Postgresql_Postgresql14: + example: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + properties: + configuration: + $ref: '#/components/schemas/Postgresql_Postgresql14Configuration' + host: + type: string + port: + format: uint32 + type: integer + address_info: + $ref: '#/components/schemas/Structures_AddressInfo' + webui_url: + type: string + disk_used: + type: string + disk_left: + type: string + read_only: + type: boolean + webui_installing: + type: boolean + type: object + Postgresql_Postgresql14Configuration: + example: + memory: 7 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 6 + param_default: + key: param_default + version: version + cpu_count: 1 + properties: + cpu_count: + format: uint32 + type: integer + disk_size: + format: uint32 + type: integer + memory: + format: uint32 + type: integer + version: + type: string + display_version: + type: string + param_config: + items: + $ref: '#/components/schemas/Structures_ParamConfig' + type: array + param_default: + additionalProperties: + type: string + type: object + type: object + Postgresql_Postgresql15: + example: + webui_installing: true + address_info: + private: + - network_id: network_id + ip: ip + - network_id: network_id + ip: ip + public: + - ip: ip + - ip: ip + disk_used: disk_used + configuration: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + port: 1 + read_only: true + host: host + webui_url: webui_url + disk_left: disk_left + properties: + configuration: + $ref: '#/components/schemas/Postgresql_Postgresql15Configuration' + host: + type: string + port: + format: uint32 + type: integer + address_info: + $ref: '#/components/schemas/Structures_AddressInfo' + webui_url: + type: string + disk_used: + type: string + disk_left: + type: string + read_only: + type: boolean + webui_installing: + type: boolean + type: object + Postgresql_Postgresql15Configuration: + example: + memory: 1 + display_version: display_version + param_config: + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + - string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + disk_size: 7 + param_default: + key: param_default + version: version + cpu_count: 4 + properties: + cpu_count: + format: uint32 + type: integer + disk_size: + format: uint32 + type: integer + memory: + format: uint32 + type: integer + version: + type: string + display_version: + type: string + param_config: + items: + $ref: '#/components/schemas/Structures_ParamConfig' + type: array + param_default: + additionalProperties: + type: string + type: object + type: object + Postgresql_Role: + example: + password: password + name: name + parent_role: + - parent_role + - parent_role + predefined: true + properties: + name: + type: string + password: + type: string + parent_role: + items: + type: string + type: array + predefined: + type: boolean + type: object Structures_AddressInfo: example: private: @@ -2108,6 +5446,71 @@ components: ip: type: string type: object + Structures_ParamConfig: + example: + string_value: "{}" + set_value: + value: + - value + - value + name: name + enum_value: + value: + - value + - value + float_value: "{}" + integer_value: "{}" + documentation_link: documentation_link + properties: + name: + type: string + documentation_link: + type: string + integer_value: + properties: {} + type: object + float_value: + properties: {} + type: object + string_value: + properties: {} + type: object + enum_value: + $ref: '#/components/schemas/Structures_ParamConfig_EnumValue' + set_value: + $ref: '#/components/schemas/Structures_ParamConfig_SetValue' + type: object + Structures_ParamConfig_EnumValue: + example: + value: + - value + - value + properties: + value: + items: + type: string + type: array + type: object + Structures_ParamConfig_FloatValue: + properties: {} + type: object + Structures_ParamConfig_IntegerValue: + properties: {} + type: object + Structures_ParamConfig_SetValue: + example: + value: + - value + - value + properties: + value: + items: + type: string + type: array + type: object + Structures_ParamConfig_StringValue: + properties: {} + type: object Structures_StatisticSeriesData: example: date: diff --git a/api_cloud_service.go b/api_cloud_service.go index 1615d27..775e037 100644 --- a/api_cloud_service.go +++ b/api_cloud_service.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_mysql_service.go b/api_mysql_service.go index d322b0d..d0537fc 100644 --- a/api_mysql_service.go +++ b/api_mysql_service.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_mysql_statistic_service.go b/api_mysql_statistic_service.go index a153e60..08e7fff 100644 --- a/api_mysql_statistic_service.go +++ b/api_mysql_statistic_service.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_postgresql_service.go b/api_postgresql_service.go new file mode 100644 index 0000000..edf70ae --- /dev/null +++ b/api_postgresql_service.go @@ -0,0 +1,1318 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// PostgresqlServiceApiService PostgresqlServiceApi service +type PostgresqlServiceApiService service + +type ApiPostgresqlServiceCreateDbRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + postgresqlPgCreateDbRequest *PostgresqlPgCreateDbRequest +} + +func (r ApiPostgresqlServiceCreateDbRequest) PostgresqlPgCreateDbRequest(postgresqlPgCreateDbRequest PostgresqlPgCreateDbRequest) ApiPostgresqlServiceCreateDbRequest { + r.postgresqlPgCreateDbRequest = &postgresqlPgCreateDbRequest + return r +} + +func (r ApiPostgresqlServiceCreateDbRequest) Execute() (*PostgresqlPgCreateDbResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceCreateDbExecute(r) +} + +/* +PostgresqlServiceCreateDb Method for PostgresqlServiceCreateDb + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceCreateDbRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceCreateDb(ctx context.Context, serviceId string) ApiPostgresqlServiceCreateDbRequest { + return ApiPostgresqlServiceCreateDbRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgCreateDbResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceCreateDbExecute(r ApiPostgresqlServiceCreateDbRequest) (*PostgresqlPgCreateDbResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgCreateDbResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceCreateDb") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/db" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postgresqlPgCreateDbRequest == nil { + return localVarReturnValue, nil, reportError("postgresqlPgCreateDbRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postgresqlPgCreateDbRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceCreateRoleRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + postgresqlPgCreateRoleRequest *PostgresqlPgCreateRoleRequest +} + +func (r ApiPostgresqlServiceCreateRoleRequest) PostgresqlPgCreateRoleRequest(postgresqlPgCreateRoleRequest PostgresqlPgCreateRoleRequest) ApiPostgresqlServiceCreateRoleRequest { + r.postgresqlPgCreateRoleRequest = &postgresqlPgCreateRoleRequest + return r +} + +func (r ApiPostgresqlServiceCreateRoleRequest) Execute() (*PostgresqlPgCreateRoleResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceCreateRoleExecute(r) +} + +/* +PostgresqlServiceCreateRole Method for PostgresqlServiceCreateRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceCreateRoleRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceCreateRole(ctx context.Context, serviceId string) ApiPostgresqlServiceCreateRoleRequest { + return ApiPostgresqlServiceCreateRoleRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgCreateRoleResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceCreateRoleExecute(r ApiPostgresqlServiceCreateRoleRequest) (*PostgresqlPgCreateRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgCreateRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceCreateRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/role" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postgresqlPgCreateRoleRequest == nil { + return localVarReturnValue, nil, reportError("postgresqlPgCreateRoleRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postgresqlPgCreateRoleRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceGetConfigRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string +} + +func (r ApiPostgresqlServiceGetConfigRequest) Execute() (*PostgresqlPgGetConfigResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceGetConfigExecute(r) +} + +/* +PostgresqlServiceGetConfig Method for PostgresqlServiceGetConfig + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceGetConfigRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceGetConfig(ctx context.Context, serviceId string) ApiPostgresqlServiceGetConfigRequest { + return ApiPostgresqlServiceGetConfigRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgGetConfigResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceGetConfigExecute(r ApiPostgresqlServiceGetConfigRequest) (*PostgresqlPgGetConfigResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgGetConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceGetConfig") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/config" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceGetDbListRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string +} + +func (r ApiPostgresqlServiceGetDbListRequest) Execute() (*PostgresqlPgGetDbListResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceGetDbListExecute(r) +} + +/* +PostgresqlServiceGetDbList Method for PostgresqlServiceGetDbList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceGetDbListRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceGetDbList(ctx context.Context, serviceId string) ApiPostgresqlServiceGetDbListRequest { + return ApiPostgresqlServiceGetDbListRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgGetDbListResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceGetDbListExecute(r ApiPostgresqlServiceGetDbListRequest) (*PostgresqlPgGetDbListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgGetDbListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceGetDbList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/db" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceGetRemoteAccessRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string +} + +func (r ApiPostgresqlServiceGetRemoteAccessRequest) Execute() (*PostgresqlPgGetRemoteAccessResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceGetRemoteAccessExecute(r) +} + +/* +PostgresqlServiceGetRemoteAccess Method for PostgresqlServiceGetRemoteAccess + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceGetRemoteAccessRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceGetRemoteAccess(ctx context.Context, serviceId string) ApiPostgresqlServiceGetRemoteAccessRequest { + return ApiPostgresqlServiceGetRemoteAccessRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgGetRemoteAccessResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceGetRemoteAccessExecute(r ApiPostgresqlServiceGetRemoteAccessRequest) (*PostgresqlPgGetRemoteAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgGetRemoteAccessResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceGetRemoteAccess") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/remote-access" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceGetRoleListRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string +} + +func (r ApiPostgresqlServiceGetRoleListRequest) Execute() (*PostgresqlPgGetRoleListResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceGetRoleListExecute(r) +} + +/* +PostgresqlServiceGetRoleList Method for PostgresqlServiceGetRoleList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceGetRoleListRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceGetRoleList(ctx context.Context, serviceId string) ApiPostgresqlServiceGetRoleListRequest { + return ApiPostgresqlServiceGetRoleListRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgGetRoleListResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceGetRoleListExecute(r ApiPostgresqlServiceGetRoleListRequest) (*PostgresqlPgGetRoleListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgGetRoleListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceGetRoleList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/role" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceRemoveDbRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + dbName string +} + +func (r ApiPostgresqlServiceRemoveDbRequest) Execute() (*PostgresqlPgRemoveDbResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceRemoveDbExecute(r) +} + +/* +PostgresqlServiceRemoveDb Method for PostgresqlServiceRemoveDb + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @param dbName + @return ApiPostgresqlServiceRemoveDbRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceRemoveDb(ctx context.Context, serviceId string, dbName string) ApiPostgresqlServiceRemoveDbRequest { + return ApiPostgresqlServiceRemoveDbRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + dbName: dbName, + } +} + +// Execute executes the request +// @return PostgresqlPgRemoveDbResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceRemoveDbExecute(r ApiPostgresqlServiceRemoveDbRequest) (*PostgresqlPgRemoveDbResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgRemoveDbResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceRemoveDb") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/db/{db_name}" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"db_name"+"}", url.PathEscape(parameterToString(r.dbName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceRemoveRoleRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + roleName string +} + +func (r ApiPostgresqlServiceRemoveRoleRequest) Execute() (*PostgresqlPgRemoveRoleResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceRemoveRoleExecute(r) +} + +/* +PostgresqlServiceRemoveRole Method for PostgresqlServiceRemoveRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @param roleName + @return ApiPostgresqlServiceRemoveRoleRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceRemoveRole(ctx context.Context, serviceId string, roleName string) ApiPostgresqlServiceRemoveRoleRequest { + return ApiPostgresqlServiceRemoveRoleRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + roleName: roleName, + } +} + +// Execute executes the request +// @return PostgresqlPgRemoveRoleResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceRemoveRoleExecute(r ApiPostgresqlServiceRemoveRoleRequest) (*PostgresqlPgRemoveRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgRemoveRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceRemoveRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/role/{role_name}" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role_name"+"}", url.PathEscape(parameterToString(r.roleName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceSetConfigRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + postgresqlPgSetConfigRequest *PostgresqlPgSetConfigRequest +} + +func (r ApiPostgresqlServiceSetConfigRequest) PostgresqlPgSetConfigRequest(postgresqlPgSetConfigRequest PostgresqlPgSetConfigRequest) ApiPostgresqlServiceSetConfigRequest { + r.postgresqlPgSetConfigRequest = &postgresqlPgSetConfigRequest + return r +} + +func (r ApiPostgresqlServiceSetConfigRequest) Execute() (*PostgresqlPgSetConfigResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceSetConfigExecute(r) +} + +/* +PostgresqlServiceSetConfig Method for PostgresqlServiceSetConfig + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceSetConfigRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceSetConfig(ctx context.Context, serviceId string) ApiPostgresqlServiceSetConfigRequest { + return ApiPostgresqlServiceSetConfigRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgSetConfigResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceSetConfigExecute(r ApiPostgresqlServiceSetConfigRequest) (*PostgresqlPgSetConfigResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgSetConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceSetConfig") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/config" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postgresqlPgSetConfigRequest == nil { + return localVarReturnValue, nil, reportError("postgresqlPgSetConfigRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postgresqlPgSetConfigRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceUpdateDbRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + dbName string + postgresqlPgUpdateDbRequest *PostgresqlPgUpdateDbRequest +} + +func (r ApiPostgresqlServiceUpdateDbRequest) PostgresqlPgUpdateDbRequest(postgresqlPgUpdateDbRequest PostgresqlPgUpdateDbRequest) ApiPostgresqlServiceUpdateDbRequest { + r.postgresqlPgUpdateDbRequest = &postgresqlPgUpdateDbRequest + return r +} + +func (r ApiPostgresqlServiceUpdateDbRequest) Execute() (*PostgresqlPgUpdateDbResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceUpdateDbExecute(r) +} + +/* +PostgresqlServiceUpdateDb Method for PostgresqlServiceUpdateDb + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @param dbName + @return ApiPostgresqlServiceUpdateDbRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceUpdateDb(ctx context.Context, serviceId string, dbName string) ApiPostgresqlServiceUpdateDbRequest { + return ApiPostgresqlServiceUpdateDbRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + dbName: dbName, + } +} + +// Execute executes the request +// @return PostgresqlPgUpdateDbResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceUpdateDbExecute(r ApiPostgresqlServiceUpdateDbRequest) (*PostgresqlPgUpdateDbResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgUpdateDbResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceUpdateDb") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/db/{db_name}" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"db_name"+"}", url.PathEscape(parameterToString(r.dbName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postgresqlPgUpdateDbRequest == nil { + return localVarReturnValue, nil, reportError("postgresqlPgUpdateDbRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postgresqlPgUpdateDbRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceUpdateRemoteAccessRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + postgresqlPgUpdateRemoteAccessRequest *PostgresqlPgUpdateRemoteAccessRequest +} + +func (r ApiPostgresqlServiceUpdateRemoteAccessRequest) PostgresqlPgUpdateRemoteAccessRequest(postgresqlPgUpdateRemoteAccessRequest PostgresqlPgUpdateRemoteAccessRequest) ApiPostgresqlServiceUpdateRemoteAccessRequest { + r.postgresqlPgUpdateRemoteAccessRequest = &postgresqlPgUpdateRemoteAccessRequest + return r +} + +func (r ApiPostgresqlServiceUpdateRemoteAccessRequest) Execute() (*PostgresqlPgUpdateRemoteAccessResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceUpdateRemoteAccessExecute(r) +} + +/* +PostgresqlServiceUpdateRemoteAccess Method for PostgresqlServiceUpdateRemoteAccess + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlServiceUpdateRemoteAccessRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceUpdateRemoteAccess(ctx context.Context, serviceId string) ApiPostgresqlServiceUpdateRemoteAccessRequest { + return ApiPostgresqlServiceUpdateRemoteAccessRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlPgUpdateRemoteAccessResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceUpdateRemoteAccessExecute(r ApiPostgresqlServiceUpdateRemoteAccessRequest) (*PostgresqlPgUpdateRemoteAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgUpdateRemoteAccessResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceUpdateRemoteAccess") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/remote-access" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postgresqlPgUpdateRemoteAccessRequest == nil { + return localVarReturnValue, nil, reportError("postgresqlPgUpdateRemoteAccessRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postgresqlPgUpdateRemoteAccessRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlServiceUpdateRoleRequest struct { + ctx context.Context + ApiService *PostgresqlServiceApiService + serviceId string + roleName string + postgresqlPgUpdateRoleRequest *PostgresqlPgUpdateRoleRequest +} + +func (r ApiPostgresqlServiceUpdateRoleRequest) PostgresqlPgUpdateRoleRequest(postgresqlPgUpdateRoleRequest PostgresqlPgUpdateRoleRequest) ApiPostgresqlServiceUpdateRoleRequest { + r.postgresqlPgUpdateRoleRequest = &postgresqlPgUpdateRoleRequest + return r +} + +func (r ApiPostgresqlServiceUpdateRoleRequest) Execute() (*PostgresqlPgUpdateRoleResponse, *http.Response, error) { + return r.ApiService.PostgresqlServiceUpdateRoleExecute(r) +} + +/* +PostgresqlServiceUpdateRole Method for PostgresqlServiceUpdateRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @param roleName + @return ApiPostgresqlServiceUpdateRoleRequest +*/ +func (a *PostgresqlServiceApiService) PostgresqlServiceUpdateRole(ctx context.Context, serviceId string, roleName string) ApiPostgresqlServiceUpdateRoleRequest { + return ApiPostgresqlServiceUpdateRoleRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + roleName: roleName, + } +} + +// Execute executes the request +// @return PostgresqlPgUpdateRoleResponse +func (a *PostgresqlServiceApiService) PostgresqlServiceUpdateRoleExecute(r ApiPostgresqlServiceUpdateRoleRequest) (*PostgresqlPgUpdateRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlPgUpdateRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlServiceApiService.PostgresqlServiceUpdateRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/role/{role_name}" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role_name"+"}", url.PathEscape(parameterToString(r.roleName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postgresqlPgUpdateRoleRequest == nil { + return localVarReturnValue, nil, reportError("postgresqlPgUpdateRoleRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postgresqlPgUpdateRoleRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_postgresql_statistic_service.go b/api_postgresql_statistic_service.go new file mode 100644 index 0000000..a6a0497 --- /dev/null +++ b/api_postgresql_statistic_service.go @@ -0,0 +1,794 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// PostgresqlStatisticServiceApiService PostgresqlStatisticServiceApi service +type PostgresqlStatisticServiceApiService service + +type ApiPostgresqlStatisticServiceGetCpuRequest struct { + ctx context.Context + ApiService *PostgresqlStatisticServiceApiService + serviceId string + period *string +} + +func (r ApiPostgresqlStatisticServiceGetCpuRequest) Period(period string) ApiPostgresqlStatisticServiceGetCpuRequest { + r.period = &period + return r +} + +func (r ApiPostgresqlStatisticServiceGetCpuRequest) Execute() (*PostgresqlStatisticGetCpuResponse, *http.Response, error) { + return r.ApiService.PostgresqlStatisticServiceGetCpuExecute(r) +} + +/* +PostgresqlStatisticServiceGetCpu Method for PostgresqlStatisticServiceGetCpu + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlStatisticServiceGetCpuRequest +*/ +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetCpu(ctx context.Context, serviceId string) ApiPostgresqlStatisticServiceGetCpuRequest { + return ApiPostgresqlStatisticServiceGetCpuRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlStatisticGetCpuResponse +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetCpuExecute(r ApiPostgresqlStatisticServiceGetCpuRequest) (*PostgresqlStatisticGetCpuResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlStatisticGetCpuResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlStatisticServiceApiService.PostgresqlStatisticServiceGetCpu") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/statistic/cpu" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.period != nil { + localVarQueryParams.Add("period", parameterToString(*r.period, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlStatisticServiceGetCpuDetailsRequest struct { + ctx context.Context + ApiService *PostgresqlStatisticServiceApiService + serviceId string + period *string +} + +func (r ApiPostgresqlStatisticServiceGetCpuDetailsRequest) Period(period string) ApiPostgresqlStatisticServiceGetCpuDetailsRequest { + r.period = &period + return r +} + +func (r ApiPostgresqlStatisticServiceGetCpuDetailsRequest) Execute() (*PostgresqlStatisticGetCpuDetailsResponse, *http.Response, error) { + return r.ApiService.PostgresqlStatisticServiceGetCpuDetailsExecute(r) +} + +/* +PostgresqlStatisticServiceGetCpuDetails Method for PostgresqlStatisticServiceGetCpuDetails + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlStatisticServiceGetCpuDetailsRequest +*/ +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetCpuDetails(ctx context.Context, serviceId string) ApiPostgresqlStatisticServiceGetCpuDetailsRequest { + return ApiPostgresqlStatisticServiceGetCpuDetailsRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlStatisticGetCpuDetailsResponse +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetCpuDetailsExecute(r ApiPostgresqlStatisticServiceGetCpuDetailsRequest) (*PostgresqlStatisticGetCpuDetailsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlStatisticGetCpuDetailsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlStatisticServiceApiService.PostgresqlStatisticServiceGetCpuDetails") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/statistic/cpu-details" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.period != nil { + localVarQueryParams.Add("period", parameterToString(*r.period, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlStatisticServiceGetDiskRequest struct { + ctx context.Context + ApiService *PostgresqlStatisticServiceApiService + serviceId string + period *string +} + +func (r ApiPostgresqlStatisticServiceGetDiskRequest) Period(period string) ApiPostgresqlStatisticServiceGetDiskRequest { + r.period = &period + return r +} + +func (r ApiPostgresqlStatisticServiceGetDiskRequest) Execute() (*PostgresqlStatisticGetDiskResponse, *http.Response, error) { + return r.ApiService.PostgresqlStatisticServiceGetDiskExecute(r) +} + +/* +PostgresqlStatisticServiceGetDisk Method for PostgresqlStatisticServiceGetDisk + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlStatisticServiceGetDiskRequest +*/ +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetDisk(ctx context.Context, serviceId string) ApiPostgresqlStatisticServiceGetDiskRequest { + return ApiPostgresqlStatisticServiceGetDiskRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlStatisticGetDiskResponse +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetDiskExecute(r ApiPostgresqlStatisticServiceGetDiskRequest) (*PostgresqlStatisticGetDiskResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlStatisticGetDiskResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlStatisticServiceApiService.PostgresqlStatisticServiceGetDisk") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/statistic/disk" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.period != nil { + localVarQueryParams.Add("period", parameterToString(*r.period, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlStatisticServiceGetDiskUsageRequest struct { + ctx context.Context + ApiService *PostgresqlStatisticServiceApiService + serviceId string + period *string +} + +func (r ApiPostgresqlStatisticServiceGetDiskUsageRequest) Period(period string) ApiPostgresqlStatisticServiceGetDiskUsageRequest { + r.period = &period + return r +} + +func (r ApiPostgresqlStatisticServiceGetDiskUsageRequest) Execute() (*PostgresqlStatisticGetDiskUsageResponse, *http.Response, error) { + return r.ApiService.PostgresqlStatisticServiceGetDiskUsageExecute(r) +} + +/* +PostgresqlStatisticServiceGetDiskUsage Method for PostgresqlStatisticServiceGetDiskUsage + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlStatisticServiceGetDiskUsageRequest +*/ +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetDiskUsage(ctx context.Context, serviceId string) ApiPostgresqlStatisticServiceGetDiskUsageRequest { + return ApiPostgresqlStatisticServiceGetDiskUsageRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlStatisticGetDiskUsageResponse +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetDiskUsageExecute(r ApiPostgresqlStatisticServiceGetDiskUsageRequest) (*PostgresqlStatisticGetDiskUsageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlStatisticGetDiskUsageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlStatisticServiceApiService.PostgresqlStatisticServiceGetDiskUsage") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/statistic/disk-usage" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.period != nil { + localVarQueryParams.Add("period", parameterToString(*r.period, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlStatisticServiceGetLoadAverageRequest struct { + ctx context.Context + ApiService *PostgresqlStatisticServiceApiService + serviceId string + period *string +} + +func (r ApiPostgresqlStatisticServiceGetLoadAverageRequest) Period(period string) ApiPostgresqlStatisticServiceGetLoadAverageRequest { + r.period = &period + return r +} + +func (r ApiPostgresqlStatisticServiceGetLoadAverageRequest) Execute() (*PostgresqlStatisticGetLoadAverageResponse, *http.Response, error) { + return r.ApiService.PostgresqlStatisticServiceGetLoadAverageExecute(r) +} + +/* +PostgresqlStatisticServiceGetLoadAverage Method for PostgresqlStatisticServiceGetLoadAverage + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlStatisticServiceGetLoadAverageRequest +*/ +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetLoadAverage(ctx context.Context, serviceId string) ApiPostgresqlStatisticServiceGetLoadAverageRequest { + return ApiPostgresqlStatisticServiceGetLoadAverageRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlStatisticGetLoadAverageResponse +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetLoadAverageExecute(r ApiPostgresqlStatisticServiceGetLoadAverageRequest) (*PostgresqlStatisticGetLoadAverageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlStatisticGetLoadAverageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlStatisticServiceApiService.PostgresqlStatisticServiceGetLoadAverage") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/statistic/load-average" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.period != nil { + localVarQueryParams.Add("period", parameterToString(*r.period, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlStatisticServiceGetMemoryRequest struct { + ctx context.Context + ApiService *PostgresqlStatisticServiceApiService + serviceId string + period *string +} + +func (r ApiPostgresqlStatisticServiceGetMemoryRequest) Period(period string) ApiPostgresqlStatisticServiceGetMemoryRequest { + r.period = &period + return r +} + +func (r ApiPostgresqlStatisticServiceGetMemoryRequest) Execute() (*PostgresqlStatisticGetMemoryResponse, *http.Response, error) { + return r.ApiService.PostgresqlStatisticServiceGetMemoryExecute(r) +} + +/* +PostgresqlStatisticServiceGetMemory Method for PostgresqlStatisticServiceGetMemory + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlStatisticServiceGetMemoryRequest +*/ +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetMemory(ctx context.Context, serviceId string) ApiPostgresqlStatisticServiceGetMemoryRequest { + return ApiPostgresqlStatisticServiceGetMemoryRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlStatisticGetMemoryResponse +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetMemoryExecute(r ApiPostgresqlStatisticServiceGetMemoryRequest) (*PostgresqlStatisticGetMemoryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlStatisticGetMemoryResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlStatisticServiceApiService.PostgresqlStatisticServiceGetMemory") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/statistic/memory" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.period != nil { + localVarQueryParams.Add("period", parameterToString(*r.period, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostgresqlStatisticServiceGetNetworkRequest struct { + ctx context.Context + ApiService *PostgresqlStatisticServiceApiService + serviceId string + period *string +} + +func (r ApiPostgresqlStatisticServiceGetNetworkRequest) Period(period string) ApiPostgresqlStatisticServiceGetNetworkRequest { + r.period = &period + return r +} + +func (r ApiPostgresqlStatisticServiceGetNetworkRequest) Execute() (*PostgresqlStatisticGetNetworkResponse, *http.Response, error) { + return r.ApiService.PostgresqlStatisticServiceGetNetworkExecute(r) +} + +/* +PostgresqlStatisticServiceGetNetwork Method for PostgresqlStatisticServiceGetNetwork + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId + @return ApiPostgresqlStatisticServiceGetNetworkRequest +*/ +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetNetwork(ctx context.Context, serviceId string) ApiPostgresqlStatisticServiceGetNetworkRequest { + return ApiPostgresqlStatisticServiceGetNetworkRequest{ + ApiService: a, + ctx: ctx, + serviceId: serviceId, + } +} + +// Execute executes the request +// @return PostgresqlStatisticGetNetworkResponse +func (a *PostgresqlStatisticServiceApiService) PostgresqlStatisticServiceGetNetworkExecute(r ApiPostgresqlStatisticServiceGetNetworkRequest) (*PostgresqlStatisticGetNetworkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostgresqlStatisticGetNetworkResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PostgresqlStatisticServiceApiService.PostgresqlStatisticServiceGetNetwork") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/cloud/postgresql/{service_id}/statistic/network" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(parameterToString(r.serviceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.period != nil { + localVarQueryParams.Add("period", parameterToString(*r.period, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/client.go b/client.go index c7a4ad8..d292413 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +41,7 @@ var ( xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the API Управляемых сервисов API vv1.2.0 +// APIClient manages communication with the API Управляемых сервисов API vv1.3.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -54,6 +54,10 @@ type APIClient struct { MysqlServiceApi *MysqlServiceApiService MysqlStatisticServiceApi *MysqlStatisticServiceApiService + + PostgresqlServiceApi *PostgresqlServiceApiService + + PostgresqlStatisticServiceApi *PostgresqlStatisticServiceApiService } type service struct { @@ -75,6 +79,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.CloudServiceApi = (*CloudServiceApiService)(&c.common) c.MysqlServiceApi = (*MysqlServiceApiService)(&c.common) c.MysqlStatisticServiceApi = (*MysqlStatisticServiceApiService)(&c.common) + c.PostgresqlServiceApi = (*PostgresqlServiceApiService)(&c.common) + c.PostgresqlStatisticServiceApi = (*PostgresqlStatisticServiceApiService)(&c.common) return c } diff --git a/configuration.go b/configuration.go index e439adc..d46443e 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -101,7 +101,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/v1.2.0/go", + UserAgent: "OpenAPI-Generator/v1.3.1/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/CloudCreateRequest.md b/docs/CloudCreateRequest.md index ddf0ce5..d43d26d 100644 --- a/docs/CloudCreateRequest.md +++ b/docs/CloudCreateRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **DisplayName** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **MysqlParams** | Pointer to [**MysqlCreateParams**](MysqlCreateParams.md) | | [optional] +**PostgresqlParams** | Pointer to [**PostgresqlPgCreateParams**](PostgresqlPgCreateParams.md) | | [optional] **Extra** | Pointer to **string** | | [optional] **Region** | Pointer to **string** | | [optional] @@ -130,6 +131,31 @@ SetMysqlParams sets MysqlParams field to given value. HasMysqlParams returns a boolean if a field has been set. +### GetPostgresqlParams + +`func (o *CloudCreateRequest) GetPostgresqlParams() PostgresqlPgCreateParams` + +GetPostgresqlParams returns the PostgresqlParams field if non-nil, zero value otherwise. + +### GetPostgresqlParamsOk + +`func (o *CloudCreateRequest) GetPostgresqlParamsOk() (*PostgresqlPgCreateParams, bool)` + +GetPostgresqlParamsOk returns a tuple with the PostgresqlParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostgresqlParams + +`func (o *CloudCreateRequest) SetPostgresqlParams(v PostgresqlPgCreateParams)` + +SetPostgresqlParams sets PostgresqlParams field to given value. + +### HasPostgresqlParams + +`func (o *CloudCreateRequest) HasPostgresqlParams() bool` + +HasPostgresqlParams returns a boolean if a field has been set. + ### GetExtra `func (o *CloudCreateRequest) GetExtra() string` diff --git a/docs/CloudCreateResponse.md b/docs/CloudCreateResponse.md index c34d12b..cd45d44 100644 --- a/docs/CloudCreateResponse.md +++ b/docs/CloudCreateResponse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Service** | Pointer to [**CloudService**](CloudService.md) | | [optional] **MysqlError** | Pointer to [**MysqlCreateError**](MysqlCreateError.md) | | [optional] +**PostgresqlError** | Pointer to [**PostgresqlPgCreateError**](PostgresqlPgCreateError.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetMysqlError sets MysqlError field to given value. HasMysqlError returns a boolean if a field has been set. +### GetPostgresqlError + +`func (o *CloudCreateResponse) GetPostgresqlError() PostgresqlPgCreateError` + +GetPostgresqlError returns the PostgresqlError field if non-nil, zero value otherwise. + +### GetPostgresqlErrorOk + +`func (o *CloudCreateResponse) GetPostgresqlErrorOk() (*PostgresqlPgCreateError, bool)` + +GetPostgresqlErrorOk returns a tuple with the PostgresqlError field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostgresqlError + +`func (o *CloudCreateResponse) SetPostgresqlError(v PostgresqlPgCreateError)` + +SetPostgresqlError sets PostgresqlError field to given value. + +### HasPostgresqlError + +`func (o *CloudCreateResponse) HasPostgresqlError() bool` + +HasPostgresqlError returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CloudService.md b/docs/CloudService.md index 648fece..550e373 100644 --- a/docs/CloudService.md +++ b/docs/CloudService.md @@ -14,6 +14,8 @@ Name | Type | Description | Notes **PriceMonth** | Pointer to **float64** | | [optional] **Mysql5** | Pointer to [**MysqlMysql5**](MysqlMysql5.md) | | [optional] **Mysql8** | Pointer to [**MysqlMysql8**](MysqlMysql8.md) | | [optional] +**Postgresql15** | Pointer to [**PostgresqlPostgresql15**](PostgresqlPostgresql15.md) | | [optional] +**Postgresql14** | Pointer to [**PostgresqlPostgresql14**](PostgresqlPostgresql14.md) | | [optional] **ManageEnabled** | Pointer to **bool** | | [optional] **Slug** | Pointer to **string** | | [optional] **MonitorableResources** | Pointer to **[]string** | | [optional] @@ -290,6 +292,56 @@ SetMysql8 sets Mysql8 field to given value. HasMysql8 returns a boolean if a field has been set. +### GetPostgresql15 + +`func (o *CloudService) GetPostgresql15() PostgresqlPostgresql15` + +GetPostgresql15 returns the Postgresql15 field if non-nil, zero value otherwise. + +### GetPostgresql15Ok + +`func (o *CloudService) GetPostgresql15Ok() (*PostgresqlPostgresql15, bool)` + +GetPostgresql15Ok returns a tuple with the Postgresql15 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostgresql15 + +`func (o *CloudService) SetPostgresql15(v PostgresqlPostgresql15)` + +SetPostgresql15 sets Postgresql15 field to given value. + +### HasPostgresql15 + +`func (o *CloudService) HasPostgresql15() bool` + +HasPostgresql15 returns a boolean if a field has been set. + +### GetPostgresql14 + +`func (o *CloudService) GetPostgresql14() PostgresqlPostgresql14` + +GetPostgresql14 returns the Postgresql14 field if non-nil, zero value otherwise. + +### GetPostgresql14Ok + +`func (o *CloudService) GetPostgresql14Ok() (*PostgresqlPostgresql14, bool)` + +GetPostgresql14Ok returns a tuple with the Postgresql14 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostgresql14 + +`func (o *CloudService) SetPostgresql14(v PostgresqlPostgresql14)` + +SetPostgresql14 sets Postgresql14 field to given value. + +### HasPostgresql14 + +`func (o *CloudService) HasPostgresql14() bool` + +HasPostgresql14 returns a boolean if a field has been set. + ### GetManageEnabled `func (o *CloudService) GetManageEnabled() bool` diff --git a/docs/CloudServiceConfiguration.md b/docs/CloudServiceConfiguration.md index 138da4a..3ce572f 100644 --- a/docs/CloudServiceConfiguration.md +++ b/docs/CloudServiceConfiguration.md @@ -10,6 +10,8 @@ Name | Type | Description | Notes **Region** | Pointer to **string** | | [optional] **Mysql5** | Pointer to [**MysqlMysql5Configuration**](MysqlMysql5Configuration.md) | | [optional] **Mysql8** | Pointer to [**MysqlMysql8Configuration**](MysqlMysql8Configuration.md) | | [optional] +**Postgresql15** | Pointer to [**PostgresqlPostgresql15Configuration**](PostgresqlPostgresql15Configuration.md) | | [optional] +**Postgresql14** | Pointer to [**PostgresqlPostgresql14Configuration**](PostgresqlPostgresql14Configuration.md) | | [optional] ## Methods @@ -180,6 +182,56 @@ SetMysql8 sets Mysql8 field to given value. HasMysql8 returns a boolean if a field has been set. +### GetPostgresql15 + +`func (o *CloudServiceConfiguration) GetPostgresql15() PostgresqlPostgresql15Configuration` + +GetPostgresql15 returns the Postgresql15 field if non-nil, zero value otherwise. + +### GetPostgresql15Ok + +`func (o *CloudServiceConfiguration) GetPostgresql15Ok() (*PostgresqlPostgresql15Configuration, bool)` + +GetPostgresql15Ok returns a tuple with the Postgresql15 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostgresql15 + +`func (o *CloudServiceConfiguration) SetPostgresql15(v PostgresqlPostgresql15Configuration)` + +SetPostgresql15 sets Postgresql15 field to given value. + +### HasPostgresql15 + +`func (o *CloudServiceConfiguration) HasPostgresql15() bool` + +HasPostgresql15 returns a boolean if a field has been set. + +### GetPostgresql14 + +`func (o *CloudServiceConfiguration) GetPostgresql14() PostgresqlPostgresql14Configuration` + +GetPostgresql14 returns the Postgresql14 field if non-nil, zero value otherwise. + +### GetPostgresql14Ok + +`func (o *CloudServiceConfiguration) GetPostgresql14Ok() (*PostgresqlPostgresql14Configuration, bool)` + +GetPostgresql14Ok returns a tuple with the Postgresql14 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostgresql14 + +`func (o *CloudServiceConfiguration) SetPostgresql14(v PostgresqlPostgresql14Configuration)` + +SetPostgresql14 sets Postgresql14 field to given value. + +### HasPostgresql14 + +`func (o *CloudServiceConfiguration) HasPostgresql14() bool` + +HasPostgresql14 returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MysqlConfig.md b/docs/MysqlConfig.md deleted file mode 100644 index 75f9f97..0000000 --- a/docs/MysqlConfig.md +++ /dev/null @@ -1,82 +0,0 @@ -# MysqlConfig - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Param** | Pointer to **map[string]string** | | [optional] -**PresetName** | Pointer to **string** | | [optional] - -## Methods - -### NewMysqlConfig - -`func NewMysqlConfig() *MysqlConfig` - -NewMysqlConfig instantiates a new MysqlConfig 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 - -### NewMysqlConfigWithDefaults - -`func NewMysqlConfigWithDefaults() *MysqlConfig` - -NewMysqlConfigWithDefaults instantiates a new MysqlConfig 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 - -### GetParam - -`func (o *MysqlConfig) GetParam() map[string]string` - -GetParam returns the Param field if non-nil, zero value otherwise. - -### GetParamOk - -`func (o *MysqlConfig) GetParamOk() (*map[string]string, bool)` - -GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParam - -`func (o *MysqlConfig) SetParam(v map[string]string)` - -SetParam sets Param field to given value. - -### HasParam - -`func (o *MysqlConfig) HasParam() bool` - -HasParam returns a boolean if a field has been set. - -### GetPresetName - -`func (o *MysqlConfig) GetPresetName() string` - -GetPresetName returns the PresetName field if non-nil, zero value otherwise. - -### GetPresetNameOk - -`func (o *MysqlConfig) GetPresetNameOk() (*string, bool)` - -GetPresetNameOk returns a tuple with the PresetName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPresetName - -`func (o *MysqlConfig) SetPresetName(v string)` - -SetPresetName sets PresetName field to given value. - -### HasPresetName - -`func (o *MysqlConfig) HasPresetName() bool` - -HasPresetName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/MysqlConfigInfo.md b/docs/MysqlConfigInfo.md new file mode 100644 index 0000000..6b37b9a --- /dev/null +++ b/docs/MysqlConfigInfo.md @@ -0,0 +1,108 @@ +# MysqlConfigInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ParamDefault** | Pointer to **map[string]string** | | [optional] +**ParamConfig** | Pointer to [**[]StructuresParamConfig**](StructuresParamConfig.md) | | [optional] +**Param** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewMysqlConfigInfo + +`func NewMysqlConfigInfo() *MysqlConfigInfo` + +NewMysqlConfigInfo instantiates a new MysqlConfigInfo 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 + +### NewMysqlConfigInfoWithDefaults + +`func NewMysqlConfigInfoWithDefaults() *MysqlConfigInfo` + +NewMysqlConfigInfoWithDefaults instantiates a new MysqlConfigInfo 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 + +### GetParamDefault + +`func (o *MysqlConfigInfo) GetParamDefault() map[string]string` + +GetParamDefault returns the ParamDefault field if non-nil, zero value otherwise. + +### GetParamDefaultOk + +`func (o *MysqlConfigInfo) GetParamDefaultOk() (*map[string]string, bool)` + +GetParamDefaultOk returns a tuple with the ParamDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamDefault + +`func (o *MysqlConfigInfo) SetParamDefault(v map[string]string)` + +SetParamDefault sets ParamDefault field to given value. + +### HasParamDefault + +`func (o *MysqlConfigInfo) HasParamDefault() bool` + +HasParamDefault returns a boolean if a field has been set. + +### GetParamConfig + +`func (o *MysqlConfigInfo) GetParamConfig() []StructuresParamConfig` + +GetParamConfig returns the ParamConfig field if non-nil, zero value otherwise. + +### GetParamConfigOk + +`func (o *MysqlConfigInfo) GetParamConfigOk() (*[]StructuresParamConfig, bool)` + +GetParamConfigOk returns a tuple with the ParamConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamConfig + +`func (o *MysqlConfigInfo) SetParamConfig(v []StructuresParamConfig)` + +SetParamConfig sets ParamConfig field to given value. + +### HasParamConfig + +`func (o *MysqlConfigInfo) HasParamConfig() bool` + +HasParamConfig returns a boolean if a field has been set. + +### GetParam + +`func (o *MysqlConfigInfo) GetParam() map[string]string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *MysqlConfigInfo) GetParamOk() (*map[string]string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *MysqlConfigInfo) SetParam(v map[string]string)` + +SetParam sets Param field to given value. + +### HasParam + +`func (o *MysqlConfigInfo) HasParam() bool` + +HasParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MysqlCreateParams.md b/docs/MysqlCreateParams.md index 7ad9ec6..92e8013 100644 --- a/docs/MysqlCreateParams.md +++ b/docs/MysqlCreateParams.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **DbName** | Pointer to **string** | | [optional] **AccessPassword** | Pointer to **string** | | [optional] **Param** | Pointer to **map[string]string** | | [optional] -**PresetName** | Pointer to **string** | | [optional] **SavePmaPassword** | Pointer to **bool** | | [optional] ## Methods @@ -104,31 +103,6 @@ SetParam sets Param field to given value. HasParam returns a boolean if a field has been set. -### GetPresetName - -`func (o *MysqlCreateParams) GetPresetName() string` - -GetPresetName returns the PresetName field if non-nil, zero value otherwise. - -### GetPresetNameOk - -`func (o *MysqlCreateParams) GetPresetNameOk() (*string, bool)` - -GetPresetNameOk returns a tuple with the PresetName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPresetName - -`func (o *MysqlCreateParams) SetPresetName(v string)` - -SetPresetName sets PresetName field to given value. - -### HasPresetName - -`func (o *MysqlCreateParams) HasPresetName() bool` - -HasPresetName returns a boolean if a field has been set. - ### GetSavePmaPassword `func (o *MysqlCreateParams) GetSavePmaPassword() bool` diff --git a/docs/MysqlGetConfigResponse.md b/docs/MysqlGetConfigResponse.md index ea65ead..369cf20 100644 --- a/docs/MysqlGetConfigResponse.md +++ b/docs/MysqlGetConfigResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | Pointer to [**MysqlConfig**](MysqlConfig.md) | | [optional] +**Config** | Pointer to [**MysqlConfigInfo**](MysqlConfigInfo.md) | | [optional] ## Methods @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetConfig -`func (o *MysqlGetConfigResponse) GetConfig() MysqlConfig` +`func (o *MysqlGetConfigResponse) GetConfig() MysqlConfigInfo` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *MysqlGetConfigResponse) GetConfigOk() (*MysqlConfig, bool)` +`func (o *MysqlGetConfigResponse) GetConfigOk() (*MysqlConfigInfo, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *MysqlGetConfigResponse) SetConfig(v MysqlConfig)` +`func (o *MysqlGetConfigResponse) SetConfig(v MysqlConfigInfo)` SetConfig sets Config field to given value. diff --git a/docs/MysqlMysql5Configuration.md b/docs/MysqlMysql5Configuration.md index f2fe966..d1844e7 100644 --- a/docs/MysqlMysql5Configuration.md +++ b/docs/MysqlMysql5Configuration.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **Memory** | Pointer to **int32** | | [optional] **Version** | Pointer to **string** | | [optional] **DisplayVersion** | Pointer to **string** | | [optional] +**ParamConfig** | Pointer to [**[]StructuresParamConfig**](StructuresParamConfig.md) | | [optional] +**ParamDefault** | Pointer to **map[string]string** | | [optional] ## Methods @@ -154,6 +156,56 @@ SetDisplayVersion sets DisplayVersion field to given value. HasDisplayVersion returns a boolean if a field has been set. +### GetParamConfig + +`func (o *MysqlMysql5Configuration) GetParamConfig() []StructuresParamConfig` + +GetParamConfig returns the ParamConfig field if non-nil, zero value otherwise. + +### GetParamConfigOk + +`func (o *MysqlMysql5Configuration) GetParamConfigOk() (*[]StructuresParamConfig, bool)` + +GetParamConfigOk returns a tuple with the ParamConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamConfig + +`func (o *MysqlMysql5Configuration) SetParamConfig(v []StructuresParamConfig)` + +SetParamConfig sets ParamConfig field to given value. + +### HasParamConfig + +`func (o *MysqlMysql5Configuration) HasParamConfig() bool` + +HasParamConfig returns a boolean if a field has been set. + +### GetParamDefault + +`func (o *MysqlMysql5Configuration) GetParamDefault() map[string]string` + +GetParamDefault returns the ParamDefault field if non-nil, zero value otherwise. + +### GetParamDefaultOk + +`func (o *MysqlMysql5Configuration) GetParamDefaultOk() (*map[string]string, bool)` + +GetParamDefaultOk returns a tuple with the ParamDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamDefault + +`func (o *MysqlMysql5Configuration) SetParamDefault(v map[string]string)` + +SetParamDefault sets ParamDefault field to given value. + +### HasParamDefault + +`func (o *MysqlMysql5Configuration) HasParamDefault() bool` + +HasParamDefault returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MysqlMysql8Configuration.md b/docs/MysqlMysql8Configuration.md index 83ac1c6..8017261 100644 --- a/docs/MysqlMysql8Configuration.md +++ b/docs/MysqlMysql8Configuration.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **Memory** | Pointer to **int32** | | [optional] **Version** | Pointer to **string** | | [optional] **DisplayVersion** | Pointer to **string** | | [optional] +**ParamConfig** | Pointer to [**[]StructuresParamConfig**](StructuresParamConfig.md) | | [optional] +**ParamDefault** | Pointer to **map[string]string** | | [optional] ## Methods @@ -154,6 +156,56 @@ SetDisplayVersion sets DisplayVersion field to given value. HasDisplayVersion returns a boolean if a field has been set. +### GetParamConfig + +`func (o *MysqlMysql8Configuration) GetParamConfig() []StructuresParamConfig` + +GetParamConfig returns the ParamConfig field if non-nil, zero value otherwise. + +### GetParamConfigOk + +`func (o *MysqlMysql8Configuration) GetParamConfigOk() (*[]StructuresParamConfig, bool)` + +GetParamConfigOk returns a tuple with the ParamConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamConfig + +`func (o *MysqlMysql8Configuration) SetParamConfig(v []StructuresParamConfig)` + +SetParamConfig sets ParamConfig field to given value. + +### HasParamConfig + +`func (o *MysqlMysql8Configuration) HasParamConfig() bool` + +HasParamConfig returns a boolean if a field has been set. + +### GetParamDefault + +`func (o *MysqlMysql8Configuration) GetParamDefault() map[string]string` + +GetParamDefault returns the ParamDefault field if non-nil, zero value otherwise. + +### GetParamDefaultOk + +`func (o *MysqlMysql8Configuration) GetParamDefaultOk() (*map[string]string, bool)` + +GetParamDefaultOk returns a tuple with the ParamDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamDefault + +`func (o *MysqlMysql8Configuration) SetParamDefault(v map[string]string)` + +SetParamDefault sets ParamDefault field to given value. + +### HasParamDefault + +`func (o *MysqlMysql8Configuration) HasParamDefault() bool` + +HasParamDefault returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MysqlSetConfigRequest.md b/docs/MysqlSetConfigRequest.md index 21b7405..72567cb 100644 --- a/docs/MysqlSetConfigRequest.md +++ b/docs/MysqlSetConfigRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ServiceId** | Pointer to **string** | | [optional] **Param** | Pointer to **map[string]string** | | [optional] -**PresetName** | Pointer to **string** | | [optional] ## Methods @@ -77,31 +76,6 @@ SetParam sets Param field to given value. HasParam returns a boolean if a field has been set. -### GetPresetName - -`func (o *MysqlSetConfigRequest) GetPresetName() string` - -GetPresetName returns the PresetName field if non-nil, zero value otherwise. - -### GetPresetNameOk - -`func (o *MysqlSetConfigRequest) GetPresetNameOk() (*string, bool)` - -GetPresetNameOk returns a tuple with the PresetName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPresetName - -`func (o *MysqlSetConfigRequest) SetPresetName(v string)` - -SetPresetName sets PresetName field to given value. - -### HasPresetName - -`func (o *MysqlSetConfigRequest) HasPresetName() bool` - -HasPresetName returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MysqlSetConfigResponse.md b/docs/MysqlSetConfigResponse.md index 778281a..bec84ef 100644 --- a/docs/MysqlSetConfigResponse.md +++ b/docs/MysqlSetConfigResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | Pointer to [**MysqlConfig**](MysqlConfig.md) | | [optional] +**Config** | Pointer to [**MysqlConfigInfo**](MysqlConfigInfo.md) | | [optional] **Error** | Pointer to [**MysqlSetConfigResponseError**](MysqlSetConfigResponseError.md) | | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetConfig -`func (o *MysqlSetConfigResponse) GetConfig() MysqlConfig` +`func (o *MysqlSetConfigResponse) GetConfig() MysqlConfigInfo` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *MysqlSetConfigResponse) GetConfigOk() (*MysqlConfig, bool)` +`func (o *MysqlSetConfigResponse) GetConfigOk() (*MysqlConfigInfo, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *MysqlSetConfigResponse) SetConfig(v MysqlConfig)` +`func (o *MysqlSetConfigResponse) SetConfig(v MysqlConfigInfo)` SetConfig sets Config field to given value. diff --git a/docs/PostgresqlPgConfigInfo.md b/docs/PostgresqlPgConfigInfo.md new file mode 100644 index 0000000..2b53640 --- /dev/null +++ b/docs/PostgresqlPgConfigInfo.md @@ -0,0 +1,108 @@ +# PostgresqlPgConfigInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ParamDefault** | Pointer to **map[string]string** | | [optional] +**ParamConfig** | Pointer to [**[]StructuresParamConfig**](StructuresParamConfig.md) | | [optional] +**Param** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewPostgresqlPgConfigInfo + +`func NewPostgresqlPgConfigInfo() *PostgresqlPgConfigInfo` + +NewPostgresqlPgConfigInfo instantiates a new PostgresqlPgConfigInfo 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 + +### NewPostgresqlPgConfigInfoWithDefaults + +`func NewPostgresqlPgConfigInfoWithDefaults() *PostgresqlPgConfigInfo` + +NewPostgresqlPgConfigInfoWithDefaults instantiates a new PostgresqlPgConfigInfo 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 + +### GetParamDefault + +`func (o *PostgresqlPgConfigInfo) GetParamDefault() map[string]string` + +GetParamDefault returns the ParamDefault field if non-nil, zero value otherwise. + +### GetParamDefaultOk + +`func (o *PostgresqlPgConfigInfo) GetParamDefaultOk() (*map[string]string, bool)` + +GetParamDefaultOk returns a tuple with the ParamDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamDefault + +`func (o *PostgresqlPgConfigInfo) SetParamDefault(v map[string]string)` + +SetParamDefault sets ParamDefault field to given value. + +### HasParamDefault + +`func (o *PostgresqlPgConfigInfo) HasParamDefault() bool` + +HasParamDefault returns a boolean if a field has been set. + +### GetParamConfig + +`func (o *PostgresqlPgConfigInfo) GetParamConfig() []StructuresParamConfig` + +GetParamConfig returns the ParamConfig field if non-nil, zero value otherwise. + +### GetParamConfigOk + +`func (o *PostgresqlPgConfigInfo) GetParamConfigOk() (*[]StructuresParamConfig, bool)` + +GetParamConfigOk returns a tuple with the ParamConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamConfig + +`func (o *PostgresqlPgConfigInfo) SetParamConfig(v []StructuresParamConfig)` + +SetParamConfig sets ParamConfig field to given value. + +### HasParamConfig + +`func (o *PostgresqlPgConfigInfo) HasParamConfig() bool` + +HasParamConfig returns a boolean if a field has been set. + +### GetParam + +`func (o *PostgresqlPgConfigInfo) GetParam() map[string]string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *PostgresqlPgConfigInfo) GetParamOk() (*map[string]string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *PostgresqlPgConfigInfo) SetParam(v map[string]string)` + +SetParam sets Param field to given value. + +### HasParam + +`func (o *PostgresqlPgConfigInfo) HasParam() bool` + +HasParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateDbRequest.md b/docs/PostgresqlPgCreateDbRequest.md new file mode 100644 index 0000000..202df80 --- /dev/null +++ b/docs/PostgresqlPgCreateDbRequest.md @@ -0,0 +1,134 @@ +# PostgresqlPgCreateDbRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceId** | Pointer to **string** | | [optional] +**DbName** | Pointer to **string** | | [optional] +**OwnerName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgCreateDbRequest + +`func NewPostgresqlPgCreateDbRequest() *PostgresqlPgCreateDbRequest` + +NewPostgresqlPgCreateDbRequest instantiates a new PostgresqlPgCreateDbRequest 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 + +### NewPostgresqlPgCreateDbRequestWithDefaults + +`func NewPostgresqlPgCreateDbRequestWithDefaults() *PostgresqlPgCreateDbRequest` + +NewPostgresqlPgCreateDbRequestWithDefaults instantiates a new PostgresqlPgCreateDbRequest 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 + +### GetServiceId + +`func (o *PostgresqlPgCreateDbRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *PostgresqlPgCreateDbRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *PostgresqlPgCreateDbRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *PostgresqlPgCreateDbRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + +### GetDbName + +`func (o *PostgresqlPgCreateDbRequest) GetDbName() string` + +GetDbName returns the DbName field if non-nil, zero value otherwise. + +### GetDbNameOk + +`func (o *PostgresqlPgCreateDbRequest) GetDbNameOk() (*string, bool)` + +GetDbNameOk returns a tuple with the DbName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbName + +`func (o *PostgresqlPgCreateDbRequest) SetDbName(v string)` + +SetDbName sets DbName field to given value. + +### HasDbName + +`func (o *PostgresqlPgCreateDbRequest) HasDbName() bool` + +HasDbName returns a boolean if a field has been set. + +### GetOwnerName + +`func (o *PostgresqlPgCreateDbRequest) GetOwnerName() string` + +GetOwnerName returns the OwnerName field if non-nil, zero value otherwise. + +### GetOwnerNameOk + +`func (o *PostgresqlPgCreateDbRequest) GetOwnerNameOk() (*string, bool)` + +GetOwnerNameOk returns a tuple with the OwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerName + +`func (o *PostgresqlPgCreateDbRequest) SetOwnerName(v string)` + +SetOwnerName sets OwnerName field to given value. + +### HasOwnerName + +`func (o *PostgresqlPgCreateDbRequest) HasOwnerName() bool` + +HasOwnerName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PostgresqlPgCreateDbRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PostgresqlPgCreateDbRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PostgresqlPgCreateDbRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PostgresqlPgCreateDbRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateDbResponse.md b/docs/PostgresqlPgCreateDbResponse.md new file mode 100644 index 0000000..503cd00 --- /dev/null +++ b/docs/PostgresqlPgCreateDbResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgCreateDbResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Db** | Pointer to [**PostgresqlPgDb**](PostgresqlPgDb.md) | | [optional] +**Error** | Pointer to [**PostgresqlPgCreateDbResponseError**](PostgresqlPgCreateDbResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgCreateDbResponse + +`func NewPostgresqlPgCreateDbResponse() *PostgresqlPgCreateDbResponse` + +NewPostgresqlPgCreateDbResponse instantiates a new PostgresqlPgCreateDbResponse 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 + +### NewPostgresqlPgCreateDbResponseWithDefaults + +`func NewPostgresqlPgCreateDbResponseWithDefaults() *PostgresqlPgCreateDbResponse` + +NewPostgresqlPgCreateDbResponseWithDefaults instantiates a new PostgresqlPgCreateDbResponse 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 + +### GetDb + +`func (o *PostgresqlPgCreateDbResponse) GetDb() PostgresqlPgDb` + +GetDb returns the Db field if non-nil, zero value otherwise. + +### GetDbOk + +`func (o *PostgresqlPgCreateDbResponse) GetDbOk() (*PostgresqlPgDb, bool)` + +GetDbOk returns a tuple with the Db field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDb + +`func (o *PostgresqlPgCreateDbResponse) SetDb(v PostgresqlPgDb)` + +SetDb sets Db field to given value. + +### HasDb + +`func (o *PostgresqlPgCreateDbResponse) HasDb() bool` + +HasDb returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgCreateDbResponse) GetError() PostgresqlPgCreateDbResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgCreateDbResponse) GetErrorOk() (*PostgresqlPgCreateDbResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgCreateDbResponse) SetError(v PostgresqlPgCreateDbResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgCreateDbResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateDbResponseError.md b/docs/PostgresqlPgCreateDbResponseError.md new file mode 100644 index 0000000..54c2391 --- /dev/null +++ b/docs/PostgresqlPgCreateDbResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgCreateDbResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgCreateDbResponseError + +`func NewPostgresqlPgCreateDbResponseError() *PostgresqlPgCreateDbResponseError` + +NewPostgresqlPgCreateDbResponseError instantiates a new PostgresqlPgCreateDbResponseError 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 + +### NewPostgresqlPgCreateDbResponseErrorWithDefaults + +`func NewPostgresqlPgCreateDbResponseErrorWithDefaults() *PostgresqlPgCreateDbResponseError` + +NewPostgresqlPgCreateDbResponseErrorWithDefaults instantiates a new PostgresqlPgCreateDbResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgCreateDbResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgCreateDbResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgCreateDbResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgCreateDbResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgCreateDbResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgCreateDbResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgCreateDbResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgCreateDbResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateError.md b/docs/PostgresqlPgCreateError.md new file mode 100644 index 0000000..980aa0e --- /dev/null +++ b/docs/PostgresqlPgCreateError.md @@ -0,0 +1,82 @@ +# PostgresqlPgCreateError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgCreateError + +`func NewPostgresqlPgCreateError() *PostgresqlPgCreateError` + +NewPostgresqlPgCreateError instantiates a new PostgresqlPgCreateError 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 + +### NewPostgresqlPgCreateErrorWithDefaults + +`func NewPostgresqlPgCreateErrorWithDefaults() *PostgresqlPgCreateError` + +NewPostgresqlPgCreateErrorWithDefaults instantiates a new PostgresqlPgCreateError 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 + +### GetMessage + +`func (o *PostgresqlPgCreateError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgCreateError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgCreateError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgCreateError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgCreateError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgCreateError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgCreateError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgCreateError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateParams.md b/docs/PostgresqlPgCreateParams.md new file mode 100644 index 0000000..1d93492 --- /dev/null +++ b/docs/PostgresqlPgCreateParams.md @@ -0,0 +1,134 @@ +# PostgresqlPgCreateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DbName** | Pointer to **string** | | [optional] +**RoleName** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] +**Param** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewPostgresqlPgCreateParams + +`func NewPostgresqlPgCreateParams() *PostgresqlPgCreateParams` + +NewPostgresqlPgCreateParams instantiates a new PostgresqlPgCreateParams 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 + +### NewPostgresqlPgCreateParamsWithDefaults + +`func NewPostgresqlPgCreateParamsWithDefaults() *PostgresqlPgCreateParams` + +NewPostgresqlPgCreateParamsWithDefaults instantiates a new PostgresqlPgCreateParams 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 + +### GetDbName + +`func (o *PostgresqlPgCreateParams) GetDbName() string` + +GetDbName returns the DbName field if non-nil, zero value otherwise. + +### GetDbNameOk + +`func (o *PostgresqlPgCreateParams) GetDbNameOk() (*string, bool)` + +GetDbNameOk returns a tuple with the DbName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbName + +`func (o *PostgresqlPgCreateParams) SetDbName(v string)` + +SetDbName sets DbName field to given value. + +### HasDbName + +`func (o *PostgresqlPgCreateParams) HasDbName() bool` + +HasDbName returns a boolean if a field has been set. + +### GetRoleName + +`func (o *PostgresqlPgCreateParams) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *PostgresqlPgCreateParams) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *PostgresqlPgCreateParams) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + +### HasRoleName + +`func (o *PostgresqlPgCreateParams) HasRoleName() bool` + +HasRoleName returns a boolean if a field has been set. + +### GetPassword + +`func (o *PostgresqlPgCreateParams) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *PostgresqlPgCreateParams) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *PostgresqlPgCreateParams) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *PostgresqlPgCreateParams) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetParam + +`func (o *PostgresqlPgCreateParams) GetParam() map[string]string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *PostgresqlPgCreateParams) GetParamOk() (*map[string]string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *PostgresqlPgCreateParams) SetParam(v map[string]string)` + +SetParam sets Param field to given value. + +### HasParam + +`func (o *PostgresqlPgCreateParams) HasParam() bool` + +HasParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateRoleRequest.md b/docs/PostgresqlPgCreateRoleRequest.md new file mode 100644 index 0000000..92b7848 --- /dev/null +++ b/docs/PostgresqlPgCreateRoleRequest.md @@ -0,0 +1,134 @@ +# PostgresqlPgCreateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceId** | Pointer to **string** | | [optional] +**RoleName** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] +**ParentRole** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPostgresqlPgCreateRoleRequest + +`func NewPostgresqlPgCreateRoleRequest() *PostgresqlPgCreateRoleRequest` + +NewPostgresqlPgCreateRoleRequest instantiates a new PostgresqlPgCreateRoleRequest 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 + +### NewPostgresqlPgCreateRoleRequestWithDefaults + +`func NewPostgresqlPgCreateRoleRequestWithDefaults() *PostgresqlPgCreateRoleRequest` + +NewPostgresqlPgCreateRoleRequestWithDefaults instantiates a new PostgresqlPgCreateRoleRequest 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 + +### GetServiceId + +`func (o *PostgresqlPgCreateRoleRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *PostgresqlPgCreateRoleRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *PostgresqlPgCreateRoleRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *PostgresqlPgCreateRoleRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + +### GetRoleName + +`func (o *PostgresqlPgCreateRoleRequest) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *PostgresqlPgCreateRoleRequest) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *PostgresqlPgCreateRoleRequest) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + +### HasRoleName + +`func (o *PostgresqlPgCreateRoleRequest) HasRoleName() bool` + +HasRoleName returns a boolean if a field has been set. + +### GetPassword + +`func (o *PostgresqlPgCreateRoleRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *PostgresqlPgCreateRoleRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *PostgresqlPgCreateRoleRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *PostgresqlPgCreateRoleRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetParentRole + +`func (o *PostgresqlPgCreateRoleRequest) GetParentRole() []string` + +GetParentRole returns the ParentRole field if non-nil, zero value otherwise. + +### GetParentRoleOk + +`func (o *PostgresqlPgCreateRoleRequest) GetParentRoleOk() (*[]string, bool)` + +GetParentRoleOk returns a tuple with the ParentRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentRole + +`func (o *PostgresqlPgCreateRoleRequest) SetParentRole(v []string)` + +SetParentRole sets ParentRole field to given value. + +### HasParentRole + +`func (o *PostgresqlPgCreateRoleRequest) HasParentRole() bool` + +HasParentRole returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateRoleResponse.md b/docs/PostgresqlPgCreateRoleResponse.md new file mode 100644 index 0000000..6f92962 --- /dev/null +++ b/docs/PostgresqlPgCreateRoleResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgCreateRoleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to [**PostgresqlRole**](PostgresqlRole.md) | | [optional] +**Error** | Pointer to [**PostgresqlPgCreateRoleResponseError**](PostgresqlPgCreateRoleResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgCreateRoleResponse + +`func NewPostgresqlPgCreateRoleResponse() *PostgresqlPgCreateRoleResponse` + +NewPostgresqlPgCreateRoleResponse instantiates a new PostgresqlPgCreateRoleResponse 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 + +### NewPostgresqlPgCreateRoleResponseWithDefaults + +`func NewPostgresqlPgCreateRoleResponseWithDefaults() *PostgresqlPgCreateRoleResponse` + +NewPostgresqlPgCreateRoleResponseWithDefaults instantiates a new PostgresqlPgCreateRoleResponse 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 + +### GetRole + +`func (o *PostgresqlPgCreateRoleResponse) GetRole() PostgresqlRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *PostgresqlPgCreateRoleResponse) GetRoleOk() (*PostgresqlRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *PostgresqlPgCreateRoleResponse) SetRole(v PostgresqlRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *PostgresqlPgCreateRoleResponse) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgCreateRoleResponse) GetError() PostgresqlPgCreateRoleResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgCreateRoleResponse) GetErrorOk() (*PostgresqlPgCreateRoleResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgCreateRoleResponse) SetError(v PostgresqlPgCreateRoleResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgCreateRoleResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgCreateRoleResponseError.md b/docs/PostgresqlPgCreateRoleResponseError.md new file mode 100644 index 0000000..e097061 --- /dev/null +++ b/docs/PostgresqlPgCreateRoleResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgCreateRoleResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgCreateRoleResponseError + +`func NewPostgresqlPgCreateRoleResponseError() *PostgresqlPgCreateRoleResponseError` + +NewPostgresqlPgCreateRoleResponseError instantiates a new PostgresqlPgCreateRoleResponseError 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 + +### NewPostgresqlPgCreateRoleResponseErrorWithDefaults + +`func NewPostgresqlPgCreateRoleResponseErrorWithDefaults() *PostgresqlPgCreateRoleResponseError` + +NewPostgresqlPgCreateRoleResponseErrorWithDefaults instantiates a new PostgresqlPgCreateRoleResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgCreateRoleResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgCreateRoleResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgCreateRoleResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgCreateRoleResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgCreateRoleResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgCreateRoleResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgCreateRoleResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgCreateRoleResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgDb.md b/docs/PostgresqlPgDb.md new file mode 100644 index 0000000..291ee5e --- /dev/null +++ b/docs/PostgresqlPgDb.md @@ -0,0 +1,134 @@ +# PostgresqlPgDb + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Size** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgDb + +`func NewPostgresqlPgDb() *PostgresqlPgDb` + +NewPostgresqlPgDb instantiates a new PostgresqlPgDb 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 + +### NewPostgresqlPgDbWithDefaults + +`func NewPostgresqlPgDbWithDefaults() *PostgresqlPgDb` + +NewPostgresqlPgDbWithDefaults instantiates a new PostgresqlPgDb 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 + +### GetName + +`func (o *PostgresqlPgDb) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PostgresqlPgDb) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PostgresqlPgDb) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PostgresqlPgDb) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSize + +`func (o *PostgresqlPgDb) GetSize() string` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *PostgresqlPgDb) GetSizeOk() (*string, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *PostgresqlPgDb) SetSize(v string)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *PostgresqlPgDb) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetOwner + +`func (o *PostgresqlPgDb) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *PostgresqlPgDb) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *PostgresqlPgDb) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *PostgresqlPgDb) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetDescription + +`func (o *PostgresqlPgDb) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PostgresqlPgDb) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PostgresqlPgDb) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PostgresqlPgDb) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgGetConfigResponse.md b/docs/PostgresqlPgGetConfigResponse.md new file mode 100644 index 0000000..42c7dff --- /dev/null +++ b/docs/PostgresqlPgGetConfigResponse.md @@ -0,0 +1,56 @@ +# PostgresqlPgGetConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | Pointer to [**PostgresqlPgConfigInfo**](PostgresqlPgConfigInfo.md) | | [optional] + +## Methods + +### NewPostgresqlPgGetConfigResponse + +`func NewPostgresqlPgGetConfigResponse() *PostgresqlPgGetConfigResponse` + +NewPostgresqlPgGetConfigResponse instantiates a new PostgresqlPgGetConfigResponse 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 + +### NewPostgresqlPgGetConfigResponseWithDefaults + +`func NewPostgresqlPgGetConfigResponseWithDefaults() *PostgresqlPgGetConfigResponse` + +NewPostgresqlPgGetConfigResponseWithDefaults instantiates a new PostgresqlPgGetConfigResponse 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 + +### GetConfig + +`func (o *PostgresqlPgGetConfigResponse) GetConfig() PostgresqlPgConfigInfo` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *PostgresqlPgGetConfigResponse) GetConfigOk() (*PostgresqlPgConfigInfo, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *PostgresqlPgGetConfigResponse) SetConfig(v PostgresqlPgConfigInfo)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *PostgresqlPgGetConfigResponse) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgGetDbListResponse.md b/docs/PostgresqlPgGetDbListResponse.md new file mode 100644 index 0000000..fe3c02d --- /dev/null +++ b/docs/PostgresqlPgGetDbListResponse.md @@ -0,0 +1,56 @@ +# PostgresqlPgGetDbListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Db** | Pointer to [**[]PostgresqlPgDb**](PostgresqlPgDb.md) | | [optional] + +## Methods + +### NewPostgresqlPgGetDbListResponse + +`func NewPostgresqlPgGetDbListResponse() *PostgresqlPgGetDbListResponse` + +NewPostgresqlPgGetDbListResponse instantiates a new PostgresqlPgGetDbListResponse 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 + +### NewPostgresqlPgGetDbListResponseWithDefaults + +`func NewPostgresqlPgGetDbListResponseWithDefaults() *PostgresqlPgGetDbListResponse` + +NewPostgresqlPgGetDbListResponseWithDefaults instantiates a new PostgresqlPgGetDbListResponse 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 + +### GetDb + +`func (o *PostgresqlPgGetDbListResponse) GetDb() []PostgresqlPgDb` + +GetDb returns the Db field if non-nil, zero value otherwise. + +### GetDbOk + +`func (o *PostgresqlPgGetDbListResponse) GetDbOk() (*[]PostgresqlPgDb, bool)` + +GetDbOk returns a tuple with the Db field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDb + +`func (o *PostgresqlPgGetDbListResponse) SetDb(v []PostgresqlPgDb)` + +SetDb sets Db field to given value. + +### HasDb + +`func (o *PostgresqlPgGetDbListResponse) HasDb() bool` + +HasDb returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgGetRemoteAccessResponse.md b/docs/PostgresqlPgGetRemoteAccessResponse.md new file mode 100644 index 0000000..b32f88e --- /dev/null +++ b/docs/PostgresqlPgGetRemoteAccessResponse.md @@ -0,0 +1,56 @@ +# PostgresqlPgGetRemoteAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | Pointer to [**PostgresqlPgRemoteAccessState**](PostgresqlPgRemoteAccessState.md) | | [optional] + +## Methods + +### NewPostgresqlPgGetRemoteAccessResponse + +`func NewPostgresqlPgGetRemoteAccessResponse() *PostgresqlPgGetRemoteAccessResponse` + +NewPostgresqlPgGetRemoteAccessResponse instantiates a new PostgresqlPgGetRemoteAccessResponse 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 + +### NewPostgresqlPgGetRemoteAccessResponseWithDefaults + +`func NewPostgresqlPgGetRemoteAccessResponseWithDefaults() *PostgresqlPgGetRemoteAccessResponse` + +NewPostgresqlPgGetRemoteAccessResponseWithDefaults instantiates a new PostgresqlPgGetRemoteAccessResponse 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 + +### GetState + +`func (o *PostgresqlPgGetRemoteAccessResponse) GetState() PostgresqlPgRemoteAccessState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *PostgresqlPgGetRemoteAccessResponse) GetStateOk() (*PostgresqlPgRemoteAccessState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *PostgresqlPgGetRemoteAccessResponse) SetState(v PostgresqlPgRemoteAccessState)` + +SetState sets State field to given value. + +### HasState + +`func (o *PostgresqlPgGetRemoteAccessResponse) HasState() bool` + +HasState returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgGetRoleListResponse.md b/docs/PostgresqlPgGetRoleListResponse.md new file mode 100644 index 0000000..66fc72a --- /dev/null +++ b/docs/PostgresqlPgGetRoleListResponse.md @@ -0,0 +1,56 @@ +# PostgresqlPgGetRoleListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to [**[]PostgresqlRole**](PostgresqlRole.md) | | [optional] + +## Methods + +### NewPostgresqlPgGetRoleListResponse + +`func NewPostgresqlPgGetRoleListResponse() *PostgresqlPgGetRoleListResponse` + +NewPostgresqlPgGetRoleListResponse instantiates a new PostgresqlPgGetRoleListResponse 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 + +### NewPostgresqlPgGetRoleListResponseWithDefaults + +`func NewPostgresqlPgGetRoleListResponseWithDefaults() *PostgresqlPgGetRoleListResponse` + +NewPostgresqlPgGetRoleListResponseWithDefaults instantiates a new PostgresqlPgGetRoleListResponse 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 + +### GetRole + +`func (o *PostgresqlPgGetRoleListResponse) GetRole() []PostgresqlRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *PostgresqlPgGetRoleListResponse) GetRoleOk() (*[]PostgresqlRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *PostgresqlPgGetRoleListResponse) SetRole(v []PostgresqlRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *PostgresqlPgGetRoleListResponse) HasRole() bool` + +HasRole returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgRemoteAccessState.md b/docs/PostgresqlPgRemoteAccessState.md new file mode 100644 index 0000000..18118c7 --- /dev/null +++ b/docs/PostgresqlPgRemoteAccessState.md @@ -0,0 +1,56 @@ +# PostgresqlPgRemoteAccessState + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubnetAddress** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPostgresqlPgRemoteAccessState + +`func NewPostgresqlPgRemoteAccessState() *PostgresqlPgRemoteAccessState` + +NewPostgresqlPgRemoteAccessState instantiates a new PostgresqlPgRemoteAccessState 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 + +### NewPostgresqlPgRemoteAccessStateWithDefaults + +`func NewPostgresqlPgRemoteAccessStateWithDefaults() *PostgresqlPgRemoteAccessState` + +NewPostgresqlPgRemoteAccessStateWithDefaults instantiates a new PostgresqlPgRemoteAccessState 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 + +### GetSubnetAddress + +`func (o *PostgresqlPgRemoteAccessState) GetSubnetAddress() []string` + +GetSubnetAddress returns the SubnetAddress field if non-nil, zero value otherwise. + +### GetSubnetAddressOk + +`func (o *PostgresqlPgRemoteAccessState) GetSubnetAddressOk() (*[]string, bool)` + +GetSubnetAddressOk returns a tuple with the SubnetAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubnetAddress + +`func (o *PostgresqlPgRemoteAccessState) SetSubnetAddress(v []string)` + +SetSubnetAddress sets SubnetAddress field to given value. + +### HasSubnetAddress + +`func (o *PostgresqlPgRemoteAccessState) HasSubnetAddress() bool` + +HasSubnetAddress returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgRemoveDbResponse.md b/docs/PostgresqlPgRemoveDbResponse.md new file mode 100644 index 0000000..21f3469 --- /dev/null +++ b/docs/PostgresqlPgRemoveDbResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgRemoveDbResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **map[string]interface{}** | | [optional] +**Error** | Pointer to [**PostgresqlPgRemoveDbResponseError**](PostgresqlPgRemoveDbResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgRemoveDbResponse + +`func NewPostgresqlPgRemoveDbResponse() *PostgresqlPgRemoveDbResponse` + +NewPostgresqlPgRemoveDbResponse instantiates a new PostgresqlPgRemoveDbResponse 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 + +### NewPostgresqlPgRemoveDbResponseWithDefaults + +`func NewPostgresqlPgRemoveDbResponseWithDefaults() *PostgresqlPgRemoveDbResponse` + +NewPostgresqlPgRemoveDbResponseWithDefaults instantiates a new PostgresqlPgRemoveDbResponse 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 + +### GetSuccess + +`func (o *PostgresqlPgRemoveDbResponse) GetSuccess() map[string]interface{}` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *PostgresqlPgRemoveDbResponse) GetSuccessOk() (*map[string]interface{}, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *PostgresqlPgRemoveDbResponse) SetSuccess(v map[string]interface{})` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *PostgresqlPgRemoveDbResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgRemoveDbResponse) GetError() PostgresqlPgRemoveDbResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgRemoveDbResponse) GetErrorOk() (*PostgresqlPgRemoveDbResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgRemoveDbResponse) SetError(v PostgresqlPgRemoveDbResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgRemoveDbResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgRemoveDbResponseError.md b/docs/PostgresqlPgRemoveDbResponseError.md new file mode 100644 index 0000000..1d70b8e --- /dev/null +++ b/docs/PostgresqlPgRemoveDbResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgRemoveDbResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgRemoveDbResponseError + +`func NewPostgresqlPgRemoveDbResponseError() *PostgresqlPgRemoveDbResponseError` + +NewPostgresqlPgRemoveDbResponseError instantiates a new PostgresqlPgRemoveDbResponseError 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 + +### NewPostgresqlPgRemoveDbResponseErrorWithDefaults + +`func NewPostgresqlPgRemoveDbResponseErrorWithDefaults() *PostgresqlPgRemoveDbResponseError` + +NewPostgresqlPgRemoveDbResponseErrorWithDefaults instantiates a new PostgresqlPgRemoveDbResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgRemoveDbResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgRemoveDbResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgRemoveDbResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgRemoveDbResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgRemoveDbResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgRemoveDbResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgRemoveDbResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgRemoveDbResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgRemoveRoleResponse.md b/docs/PostgresqlPgRemoveRoleResponse.md new file mode 100644 index 0000000..924d666 --- /dev/null +++ b/docs/PostgresqlPgRemoveRoleResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgRemoveRoleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **map[string]interface{}** | | [optional] +**Error** | Pointer to [**PostgresqlPgRemoveRoleResponseError**](PostgresqlPgRemoveRoleResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgRemoveRoleResponse + +`func NewPostgresqlPgRemoveRoleResponse() *PostgresqlPgRemoveRoleResponse` + +NewPostgresqlPgRemoveRoleResponse instantiates a new PostgresqlPgRemoveRoleResponse 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 + +### NewPostgresqlPgRemoveRoleResponseWithDefaults + +`func NewPostgresqlPgRemoveRoleResponseWithDefaults() *PostgresqlPgRemoveRoleResponse` + +NewPostgresqlPgRemoveRoleResponseWithDefaults instantiates a new PostgresqlPgRemoveRoleResponse 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 + +### GetSuccess + +`func (o *PostgresqlPgRemoveRoleResponse) GetSuccess() map[string]interface{}` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *PostgresqlPgRemoveRoleResponse) GetSuccessOk() (*map[string]interface{}, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *PostgresqlPgRemoveRoleResponse) SetSuccess(v map[string]interface{})` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *PostgresqlPgRemoveRoleResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgRemoveRoleResponse) GetError() PostgresqlPgRemoveRoleResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgRemoveRoleResponse) GetErrorOk() (*PostgresqlPgRemoveRoleResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgRemoveRoleResponse) SetError(v PostgresqlPgRemoveRoleResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgRemoveRoleResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgRemoveRoleResponseError.md b/docs/PostgresqlPgRemoveRoleResponseError.md new file mode 100644 index 0000000..65e811c --- /dev/null +++ b/docs/PostgresqlPgRemoveRoleResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgRemoveRoleResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgRemoveRoleResponseError + +`func NewPostgresqlPgRemoveRoleResponseError() *PostgresqlPgRemoveRoleResponseError` + +NewPostgresqlPgRemoveRoleResponseError instantiates a new PostgresqlPgRemoveRoleResponseError 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 + +### NewPostgresqlPgRemoveRoleResponseErrorWithDefaults + +`func NewPostgresqlPgRemoveRoleResponseErrorWithDefaults() *PostgresqlPgRemoveRoleResponseError` + +NewPostgresqlPgRemoveRoleResponseErrorWithDefaults instantiates a new PostgresqlPgRemoveRoleResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgRemoveRoleResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgRemoveRoleResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgRemoveRoleResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgRemoveRoleResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgRemoveRoleResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgRemoveRoleResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgRemoveRoleResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgRemoveRoleResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgSetConfigRequest.md b/docs/PostgresqlPgSetConfigRequest.md new file mode 100644 index 0000000..a5f37f8 --- /dev/null +++ b/docs/PostgresqlPgSetConfigRequest.md @@ -0,0 +1,82 @@ +# PostgresqlPgSetConfigRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceId** | Pointer to **string** | | [optional] +**Param** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewPostgresqlPgSetConfigRequest + +`func NewPostgresqlPgSetConfigRequest() *PostgresqlPgSetConfigRequest` + +NewPostgresqlPgSetConfigRequest instantiates a new PostgresqlPgSetConfigRequest 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 + +### NewPostgresqlPgSetConfigRequestWithDefaults + +`func NewPostgresqlPgSetConfigRequestWithDefaults() *PostgresqlPgSetConfigRequest` + +NewPostgresqlPgSetConfigRequestWithDefaults instantiates a new PostgresqlPgSetConfigRequest 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 + +### GetServiceId + +`func (o *PostgresqlPgSetConfigRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *PostgresqlPgSetConfigRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *PostgresqlPgSetConfigRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *PostgresqlPgSetConfigRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + +### GetParam + +`func (o *PostgresqlPgSetConfigRequest) GetParam() map[string]string` + +GetParam returns the Param field if non-nil, zero value otherwise. + +### GetParamOk + +`func (o *PostgresqlPgSetConfigRequest) GetParamOk() (*map[string]string, bool)` + +GetParamOk returns a tuple with the Param field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParam + +`func (o *PostgresqlPgSetConfigRequest) SetParam(v map[string]string)` + +SetParam sets Param field to given value. + +### HasParam + +`func (o *PostgresqlPgSetConfigRequest) HasParam() bool` + +HasParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgSetConfigResponse.md b/docs/PostgresqlPgSetConfigResponse.md new file mode 100644 index 0000000..91ed172 --- /dev/null +++ b/docs/PostgresqlPgSetConfigResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgSetConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | Pointer to [**PostgresqlPgConfigInfo**](PostgresqlPgConfigInfo.md) | | [optional] +**Error** | Pointer to [**PostgresqlPgSetConfigResponseError**](PostgresqlPgSetConfigResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgSetConfigResponse + +`func NewPostgresqlPgSetConfigResponse() *PostgresqlPgSetConfigResponse` + +NewPostgresqlPgSetConfigResponse instantiates a new PostgresqlPgSetConfigResponse 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 + +### NewPostgresqlPgSetConfigResponseWithDefaults + +`func NewPostgresqlPgSetConfigResponseWithDefaults() *PostgresqlPgSetConfigResponse` + +NewPostgresqlPgSetConfigResponseWithDefaults instantiates a new PostgresqlPgSetConfigResponse 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 + +### GetConfig + +`func (o *PostgresqlPgSetConfigResponse) GetConfig() PostgresqlPgConfigInfo` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *PostgresqlPgSetConfigResponse) GetConfigOk() (*PostgresqlPgConfigInfo, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *PostgresqlPgSetConfigResponse) SetConfig(v PostgresqlPgConfigInfo)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *PostgresqlPgSetConfigResponse) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgSetConfigResponse) GetError() PostgresqlPgSetConfigResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgSetConfigResponse) GetErrorOk() (*PostgresqlPgSetConfigResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgSetConfigResponse) SetError(v PostgresqlPgSetConfigResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgSetConfigResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgSetConfigResponseError.md b/docs/PostgresqlPgSetConfigResponseError.md new file mode 100644 index 0000000..a38a1af --- /dev/null +++ b/docs/PostgresqlPgSetConfigResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgSetConfigResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgSetConfigResponseError + +`func NewPostgresqlPgSetConfigResponseError() *PostgresqlPgSetConfigResponseError` + +NewPostgresqlPgSetConfigResponseError instantiates a new PostgresqlPgSetConfigResponseError 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 + +### NewPostgresqlPgSetConfigResponseErrorWithDefaults + +`func NewPostgresqlPgSetConfigResponseErrorWithDefaults() *PostgresqlPgSetConfigResponseError` + +NewPostgresqlPgSetConfigResponseErrorWithDefaults instantiates a new PostgresqlPgSetConfigResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgSetConfigResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgSetConfigResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgSetConfigResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgSetConfigResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgSetConfigResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgSetConfigResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgSetConfigResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgSetConfigResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateDbRequest.md b/docs/PostgresqlPgUpdateDbRequest.md new file mode 100644 index 0000000..a31785c --- /dev/null +++ b/docs/PostgresqlPgUpdateDbRequest.md @@ -0,0 +1,108 @@ +# PostgresqlPgUpdateDbRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceId** | Pointer to **string** | | [optional] +**DbName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgUpdateDbRequest + +`func NewPostgresqlPgUpdateDbRequest() *PostgresqlPgUpdateDbRequest` + +NewPostgresqlPgUpdateDbRequest instantiates a new PostgresqlPgUpdateDbRequest 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 + +### NewPostgresqlPgUpdateDbRequestWithDefaults + +`func NewPostgresqlPgUpdateDbRequestWithDefaults() *PostgresqlPgUpdateDbRequest` + +NewPostgresqlPgUpdateDbRequestWithDefaults instantiates a new PostgresqlPgUpdateDbRequest 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 + +### GetServiceId + +`func (o *PostgresqlPgUpdateDbRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *PostgresqlPgUpdateDbRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *PostgresqlPgUpdateDbRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *PostgresqlPgUpdateDbRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + +### GetDbName + +`func (o *PostgresqlPgUpdateDbRequest) GetDbName() string` + +GetDbName returns the DbName field if non-nil, zero value otherwise. + +### GetDbNameOk + +`func (o *PostgresqlPgUpdateDbRequest) GetDbNameOk() (*string, bool)` + +GetDbNameOk returns a tuple with the DbName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbName + +`func (o *PostgresqlPgUpdateDbRequest) SetDbName(v string)` + +SetDbName sets DbName field to given value. + +### HasDbName + +`func (o *PostgresqlPgUpdateDbRequest) HasDbName() bool` + +HasDbName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PostgresqlPgUpdateDbRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PostgresqlPgUpdateDbRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PostgresqlPgUpdateDbRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PostgresqlPgUpdateDbRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateDbResponse.md b/docs/PostgresqlPgUpdateDbResponse.md new file mode 100644 index 0000000..7398146 --- /dev/null +++ b/docs/PostgresqlPgUpdateDbResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgUpdateDbResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Db** | Pointer to [**PostgresqlPgDb**](PostgresqlPgDb.md) | | [optional] +**Error** | Pointer to [**PostgresqlPgUpdateDbResponseError**](PostgresqlPgUpdateDbResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgUpdateDbResponse + +`func NewPostgresqlPgUpdateDbResponse() *PostgresqlPgUpdateDbResponse` + +NewPostgresqlPgUpdateDbResponse instantiates a new PostgresqlPgUpdateDbResponse 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 + +### NewPostgresqlPgUpdateDbResponseWithDefaults + +`func NewPostgresqlPgUpdateDbResponseWithDefaults() *PostgresqlPgUpdateDbResponse` + +NewPostgresqlPgUpdateDbResponseWithDefaults instantiates a new PostgresqlPgUpdateDbResponse 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 + +### GetDb + +`func (o *PostgresqlPgUpdateDbResponse) GetDb() PostgresqlPgDb` + +GetDb returns the Db field if non-nil, zero value otherwise. + +### GetDbOk + +`func (o *PostgresqlPgUpdateDbResponse) GetDbOk() (*PostgresqlPgDb, bool)` + +GetDbOk returns a tuple with the Db field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDb + +`func (o *PostgresqlPgUpdateDbResponse) SetDb(v PostgresqlPgDb)` + +SetDb sets Db field to given value. + +### HasDb + +`func (o *PostgresqlPgUpdateDbResponse) HasDb() bool` + +HasDb returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgUpdateDbResponse) GetError() PostgresqlPgUpdateDbResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgUpdateDbResponse) GetErrorOk() (*PostgresqlPgUpdateDbResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgUpdateDbResponse) SetError(v PostgresqlPgUpdateDbResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgUpdateDbResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateDbResponseError.md b/docs/PostgresqlPgUpdateDbResponseError.md new file mode 100644 index 0000000..c8ebd82 --- /dev/null +++ b/docs/PostgresqlPgUpdateDbResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgUpdateDbResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgUpdateDbResponseError + +`func NewPostgresqlPgUpdateDbResponseError() *PostgresqlPgUpdateDbResponseError` + +NewPostgresqlPgUpdateDbResponseError instantiates a new PostgresqlPgUpdateDbResponseError 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 + +### NewPostgresqlPgUpdateDbResponseErrorWithDefaults + +`func NewPostgresqlPgUpdateDbResponseErrorWithDefaults() *PostgresqlPgUpdateDbResponseError` + +NewPostgresqlPgUpdateDbResponseErrorWithDefaults instantiates a new PostgresqlPgUpdateDbResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgUpdateDbResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgUpdateDbResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgUpdateDbResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgUpdateDbResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgUpdateDbResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgUpdateDbResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgUpdateDbResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgUpdateDbResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateRemoteAccessRequest.md b/docs/PostgresqlPgUpdateRemoteAccessRequest.md new file mode 100644 index 0000000..ced5f8a --- /dev/null +++ b/docs/PostgresqlPgUpdateRemoteAccessRequest.md @@ -0,0 +1,82 @@ +# PostgresqlPgUpdateRemoteAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceId** | Pointer to **string** | | [optional] +**SubnetAddress** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPostgresqlPgUpdateRemoteAccessRequest + +`func NewPostgresqlPgUpdateRemoteAccessRequest() *PostgresqlPgUpdateRemoteAccessRequest` + +NewPostgresqlPgUpdateRemoteAccessRequest instantiates a new PostgresqlPgUpdateRemoteAccessRequest 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 + +### NewPostgresqlPgUpdateRemoteAccessRequestWithDefaults + +`func NewPostgresqlPgUpdateRemoteAccessRequestWithDefaults() *PostgresqlPgUpdateRemoteAccessRequest` + +NewPostgresqlPgUpdateRemoteAccessRequestWithDefaults instantiates a new PostgresqlPgUpdateRemoteAccessRequest 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 + +### GetServiceId + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + +### GetSubnetAddress + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) GetSubnetAddress() []string` + +GetSubnetAddress returns the SubnetAddress field if non-nil, zero value otherwise. + +### GetSubnetAddressOk + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) GetSubnetAddressOk() (*[]string, bool)` + +GetSubnetAddressOk returns a tuple with the SubnetAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubnetAddress + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) SetSubnetAddress(v []string)` + +SetSubnetAddress sets SubnetAddress field to given value. + +### HasSubnetAddress + +`func (o *PostgresqlPgUpdateRemoteAccessRequest) HasSubnetAddress() bool` + +HasSubnetAddress returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateRemoteAccessResponse.md b/docs/PostgresqlPgUpdateRemoteAccessResponse.md new file mode 100644 index 0000000..baafb1c --- /dev/null +++ b/docs/PostgresqlPgUpdateRemoteAccessResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgUpdateRemoteAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | Pointer to [**PostgresqlPgRemoteAccessState**](PostgresqlPgRemoteAccessState.md) | | [optional] +**Error** | Pointer to [**PostgresqlPgUpdateRemoteAccessResponseError**](PostgresqlPgUpdateRemoteAccessResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgUpdateRemoteAccessResponse + +`func NewPostgresqlPgUpdateRemoteAccessResponse() *PostgresqlPgUpdateRemoteAccessResponse` + +NewPostgresqlPgUpdateRemoteAccessResponse instantiates a new PostgresqlPgUpdateRemoteAccessResponse 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 + +### NewPostgresqlPgUpdateRemoteAccessResponseWithDefaults + +`func NewPostgresqlPgUpdateRemoteAccessResponseWithDefaults() *PostgresqlPgUpdateRemoteAccessResponse` + +NewPostgresqlPgUpdateRemoteAccessResponseWithDefaults instantiates a new PostgresqlPgUpdateRemoteAccessResponse 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 + +### GetState + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) GetState() PostgresqlPgRemoteAccessState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) GetStateOk() (*PostgresqlPgRemoteAccessState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) SetState(v PostgresqlPgRemoteAccessState)` + +SetState sets State field to given value. + +### HasState + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) GetError() PostgresqlPgUpdateRemoteAccessResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) GetErrorOk() (*PostgresqlPgUpdateRemoteAccessResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) SetError(v PostgresqlPgUpdateRemoteAccessResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgUpdateRemoteAccessResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateRemoteAccessResponseError.md b/docs/PostgresqlPgUpdateRemoteAccessResponseError.md new file mode 100644 index 0000000..ed209b7 --- /dev/null +++ b/docs/PostgresqlPgUpdateRemoteAccessResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgUpdateRemoteAccessResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgUpdateRemoteAccessResponseError + +`func NewPostgresqlPgUpdateRemoteAccessResponseError() *PostgresqlPgUpdateRemoteAccessResponseError` + +NewPostgresqlPgUpdateRemoteAccessResponseError instantiates a new PostgresqlPgUpdateRemoteAccessResponseError 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 + +### NewPostgresqlPgUpdateRemoteAccessResponseErrorWithDefaults + +`func NewPostgresqlPgUpdateRemoteAccessResponseErrorWithDefaults() *PostgresqlPgUpdateRemoteAccessResponseError` + +NewPostgresqlPgUpdateRemoteAccessResponseErrorWithDefaults instantiates a new PostgresqlPgUpdateRemoteAccessResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgUpdateRemoteAccessResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateRoleRequest.md b/docs/PostgresqlPgUpdateRoleRequest.md new file mode 100644 index 0000000..f6e5106 --- /dev/null +++ b/docs/PostgresqlPgUpdateRoleRequest.md @@ -0,0 +1,134 @@ +# PostgresqlPgUpdateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceId** | Pointer to **string** | | [optional] +**RoleName** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] +**ParentRole** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPostgresqlPgUpdateRoleRequest + +`func NewPostgresqlPgUpdateRoleRequest() *PostgresqlPgUpdateRoleRequest` + +NewPostgresqlPgUpdateRoleRequest instantiates a new PostgresqlPgUpdateRoleRequest 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 + +### NewPostgresqlPgUpdateRoleRequestWithDefaults + +`func NewPostgresqlPgUpdateRoleRequestWithDefaults() *PostgresqlPgUpdateRoleRequest` + +NewPostgresqlPgUpdateRoleRequestWithDefaults instantiates a new PostgresqlPgUpdateRoleRequest 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 + +### GetServiceId + +`func (o *PostgresqlPgUpdateRoleRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *PostgresqlPgUpdateRoleRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *PostgresqlPgUpdateRoleRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *PostgresqlPgUpdateRoleRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + +### GetRoleName + +`func (o *PostgresqlPgUpdateRoleRequest) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *PostgresqlPgUpdateRoleRequest) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *PostgresqlPgUpdateRoleRequest) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + +### HasRoleName + +`func (o *PostgresqlPgUpdateRoleRequest) HasRoleName() bool` + +HasRoleName returns a boolean if a field has been set. + +### GetPassword + +`func (o *PostgresqlPgUpdateRoleRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *PostgresqlPgUpdateRoleRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *PostgresqlPgUpdateRoleRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *PostgresqlPgUpdateRoleRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetParentRole + +`func (o *PostgresqlPgUpdateRoleRequest) GetParentRole() []string` + +GetParentRole returns the ParentRole field if non-nil, zero value otherwise. + +### GetParentRoleOk + +`func (o *PostgresqlPgUpdateRoleRequest) GetParentRoleOk() (*[]string, bool)` + +GetParentRoleOk returns a tuple with the ParentRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentRole + +`func (o *PostgresqlPgUpdateRoleRequest) SetParentRole(v []string)` + +SetParentRole sets ParentRole field to given value. + +### HasParentRole + +`func (o *PostgresqlPgUpdateRoleRequest) HasParentRole() bool` + +HasParentRole returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateRoleResponse.md b/docs/PostgresqlPgUpdateRoleResponse.md new file mode 100644 index 0000000..4be642b --- /dev/null +++ b/docs/PostgresqlPgUpdateRoleResponse.md @@ -0,0 +1,82 @@ +# PostgresqlPgUpdateRoleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to [**PostgresqlRole**](PostgresqlRole.md) | | [optional] +**Error** | Pointer to [**PostgresqlPgUpdateRoleResponseError**](PostgresqlPgUpdateRoleResponseError.md) | | [optional] + +## Methods + +### NewPostgresqlPgUpdateRoleResponse + +`func NewPostgresqlPgUpdateRoleResponse() *PostgresqlPgUpdateRoleResponse` + +NewPostgresqlPgUpdateRoleResponse instantiates a new PostgresqlPgUpdateRoleResponse 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 + +### NewPostgresqlPgUpdateRoleResponseWithDefaults + +`func NewPostgresqlPgUpdateRoleResponseWithDefaults() *PostgresqlPgUpdateRoleResponse` + +NewPostgresqlPgUpdateRoleResponseWithDefaults instantiates a new PostgresqlPgUpdateRoleResponse 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 + +### GetRole + +`func (o *PostgresqlPgUpdateRoleResponse) GetRole() PostgresqlRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *PostgresqlPgUpdateRoleResponse) GetRoleOk() (*PostgresqlRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *PostgresqlPgUpdateRoleResponse) SetRole(v PostgresqlRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *PostgresqlPgUpdateRoleResponse) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetError + +`func (o *PostgresqlPgUpdateRoleResponse) GetError() PostgresqlPgUpdateRoleResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PostgresqlPgUpdateRoleResponse) GetErrorOk() (*PostgresqlPgUpdateRoleResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PostgresqlPgUpdateRoleResponse) SetError(v PostgresqlPgUpdateRoleResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PostgresqlPgUpdateRoleResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPgUpdateRoleResponseError.md b/docs/PostgresqlPgUpdateRoleResponseError.md new file mode 100644 index 0000000..ba1ffae --- /dev/null +++ b/docs/PostgresqlPgUpdateRoleResponseError.md @@ -0,0 +1,82 @@ +# PostgresqlPgUpdateRoleResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewPostgresqlPgUpdateRoleResponseError + +`func NewPostgresqlPgUpdateRoleResponseError() *PostgresqlPgUpdateRoleResponseError` + +NewPostgresqlPgUpdateRoleResponseError instantiates a new PostgresqlPgUpdateRoleResponseError 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 + +### NewPostgresqlPgUpdateRoleResponseErrorWithDefaults + +`func NewPostgresqlPgUpdateRoleResponseErrorWithDefaults() *PostgresqlPgUpdateRoleResponseError` + +NewPostgresqlPgUpdateRoleResponseErrorWithDefaults instantiates a new PostgresqlPgUpdateRoleResponseError 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 + +### GetMessage + +`func (o *PostgresqlPgUpdateRoleResponseError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PostgresqlPgUpdateRoleResponseError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *PostgresqlPgUpdateRoleResponseError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *PostgresqlPgUpdateRoleResponseError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCode + +`func (o *PostgresqlPgUpdateRoleResponseError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PostgresqlPgUpdateRoleResponseError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PostgresqlPgUpdateRoleResponseError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PostgresqlPgUpdateRoleResponseError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPostgresql14.md b/docs/PostgresqlPostgresql14.md new file mode 100644 index 0000000..804fc4e --- /dev/null +++ b/docs/PostgresqlPostgresql14.md @@ -0,0 +1,264 @@ +# PostgresqlPostgresql14 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configuration** | Pointer to [**PostgresqlPostgresql14Configuration**](PostgresqlPostgresql14Configuration.md) | | [optional] +**Host** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**AddressInfo** | Pointer to [**StructuresAddressInfo**](StructuresAddressInfo.md) | | [optional] +**WebuiUrl** | Pointer to **string** | | [optional] +**DiskUsed** | Pointer to **string** | | [optional] +**DiskLeft** | Pointer to **string** | | [optional] +**ReadOnly** | Pointer to **bool** | | [optional] +**WebuiInstalling** | Pointer to **bool** | | [optional] + +## Methods + +### NewPostgresqlPostgresql14 + +`func NewPostgresqlPostgresql14() *PostgresqlPostgresql14` + +NewPostgresqlPostgresql14 instantiates a new PostgresqlPostgresql14 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 + +### NewPostgresqlPostgresql14WithDefaults + +`func NewPostgresqlPostgresql14WithDefaults() *PostgresqlPostgresql14` + +NewPostgresqlPostgresql14WithDefaults instantiates a new PostgresqlPostgresql14 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 + +### GetConfiguration + +`func (o *PostgresqlPostgresql14) GetConfiguration() PostgresqlPostgresql14Configuration` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *PostgresqlPostgresql14) GetConfigurationOk() (*PostgresqlPostgresql14Configuration, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *PostgresqlPostgresql14) SetConfiguration(v PostgresqlPostgresql14Configuration)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *PostgresqlPostgresql14) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + +### GetHost + +`func (o *PostgresqlPostgresql14) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *PostgresqlPostgresql14) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *PostgresqlPostgresql14) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *PostgresqlPostgresql14) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetPort + +`func (o *PostgresqlPostgresql14) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *PostgresqlPostgresql14) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *PostgresqlPostgresql14) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *PostgresqlPostgresql14) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetAddressInfo + +`func (o *PostgresqlPostgresql14) GetAddressInfo() StructuresAddressInfo` + +GetAddressInfo returns the AddressInfo field if non-nil, zero value otherwise. + +### GetAddressInfoOk + +`func (o *PostgresqlPostgresql14) GetAddressInfoOk() (*StructuresAddressInfo, bool)` + +GetAddressInfoOk returns a tuple with the AddressInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddressInfo + +`func (o *PostgresqlPostgresql14) SetAddressInfo(v StructuresAddressInfo)` + +SetAddressInfo sets AddressInfo field to given value. + +### HasAddressInfo + +`func (o *PostgresqlPostgresql14) HasAddressInfo() bool` + +HasAddressInfo returns a boolean if a field has been set. + +### GetWebuiUrl + +`func (o *PostgresqlPostgresql14) GetWebuiUrl() string` + +GetWebuiUrl returns the WebuiUrl field if non-nil, zero value otherwise. + +### GetWebuiUrlOk + +`func (o *PostgresqlPostgresql14) GetWebuiUrlOk() (*string, bool)` + +GetWebuiUrlOk returns a tuple with the WebuiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebuiUrl + +`func (o *PostgresqlPostgresql14) SetWebuiUrl(v string)` + +SetWebuiUrl sets WebuiUrl field to given value. + +### HasWebuiUrl + +`func (o *PostgresqlPostgresql14) HasWebuiUrl() bool` + +HasWebuiUrl returns a boolean if a field has been set. + +### GetDiskUsed + +`func (o *PostgresqlPostgresql14) GetDiskUsed() string` + +GetDiskUsed returns the DiskUsed field if non-nil, zero value otherwise. + +### GetDiskUsedOk + +`func (o *PostgresqlPostgresql14) GetDiskUsedOk() (*string, bool)` + +GetDiskUsedOk returns a tuple with the DiskUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskUsed + +`func (o *PostgresqlPostgresql14) SetDiskUsed(v string)` + +SetDiskUsed sets DiskUsed field to given value. + +### HasDiskUsed + +`func (o *PostgresqlPostgresql14) HasDiskUsed() bool` + +HasDiskUsed returns a boolean if a field has been set. + +### GetDiskLeft + +`func (o *PostgresqlPostgresql14) GetDiskLeft() string` + +GetDiskLeft returns the DiskLeft field if non-nil, zero value otherwise. + +### GetDiskLeftOk + +`func (o *PostgresqlPostgresql14) GetDiskLeftOk() (*string, bool)` + +GetDiskLeftOk returns a tuple with the DiskLeft field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskLeft + +`func (o *PostgresqlPostgresql14) SetDiskLeft(v string)` + +SetDiskLeft sets DiskLeft field to given value. + +### HasDiskLeft + +`func (o *PostgresqlPostgresql14) HasDiskLeft() bool` + +HasDiskLeft returns a boolean if a field has been set. + +### GetReadOnly + +`func (o *PostgresqlPostgresql14) GetReadOnly() bool` + +GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise. + +### GetReadOnlyOk + +`func (o *PostgresqlPostgresql14) GetReadOnlyOk() (*bool, bool)` + +GetReadOnlyOk returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadOnly + +`func (o *PostgresqlPostgresql14) SetReadOnly(v bool)` + +SetReadOnly sets ReadOnly field to given value. + +### HasReadOnly + +`func (o *PostgresqlPostgresql14) HasReadOnly() bool` + +HasReadOnly returns a boolean if a field has been set. + +### GetWebuiInstalling + +`func (o *PostgresqlPostgresql14) GetWebuiInstalling() bool` + +GetWebuiInstalling returns the WebuiInstalling field if non-nil, zero value otherwise. + +### GetWebuiInstallingOk + +`func (o *PostgresqlPostgresql14) GetWebuiInstallingOk() (*bool, bool)` + +GetWebuiInstallingOk returns a tuple with the WebuiInstalling field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebuiInstalling + +`func (o *PostgresqlPostgresql14) SetWebuiInstalling(v bool)` + +SetWebuiInstalling sets WebuiInstalling field to given value. + +### HasWebuiInstalling + +`func (o *PostgresqlPostgresql14) HasWebuiInstalling() bool` + +HasWebuiInstalling returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPostgresql14Configuration.md b/docs/PostgresqlPostgresql14Configuration.md new file mode 100644 index 0000000..08b92ea --- /dev/null +++ b/docs/PostgresqlPostgresql14Configuration.md @@ -0,0 +1,212 @@ +# PostgresqlPostgresql14Configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpuCount** | Pointer to **int32** | | [optional] +**DiskSize** | Pointer to **int32** | | [optional] +**Memory** | Pointer to **int32** | | [optional] +**Version** | Pointer to **string** | | [optional] +**DisplayVersion** | Pointer to **string** | | [optional] +**ParamConfig** | Pointer to [**[]StructuresParamConfig**](StructuresParamConfig.md) | | [optional] +**ParamDefault** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewPostgresqlPostgresql14Configuration + +`func NewPostgresqlPostgresql14Configuration() *PostgresqlPostgresql14Configuration` + +NewPostgresqlPostgresql14Configuration instantiates a new PostgresqlPostgresql14Configuration 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 + +### NewPostgresqlPostgresql14ConfigurationWithDefaults + +`func NewPostgresqlPostgresql14ConfigurationWithDefaults() *PostgresqlPostgresql14Configuration` + +NewPostgresqlPostgresql14ConfigurationWithDefaults instantiates a new PostgresqlPostgresql14Configuration 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 + +### GetCpuCount + +`func (o *PostgresqlPostgresql14Configuration) GetCpuCount() int32` + +GetCpuCount returns the CpuCount field if non-nil, zero value otherwise. + +### GetCpuCountOk + +`func (o *PostgresqlPostgresql14Configuration) GetCpuCountOk() (*int32, bool)` + +GetCpuCountOk returns a tuple with the CpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuCount + +`func (o *PostgresqlPostgresql14Configuration) SetCpuCount(v int32)` + +SetCpuCount sets CpuCount field to given value. + +### HasCpuCount + +`func (o *PostgresqlPostgresql14Configuration) HasCpuCount() bool` + +HasCpuCount returns a boolean if a field has been set. + +### GetDiskSize + +`func (o *PostgresqlPostgresql14Configuration) GetDiskSize() int32` + +GetDiskSize returns the DiskSize field if non-nil, zero value otherwise. + +### GetDiskSizeOk + +`func (o *PostgresqlPostgresql14Configuration) GetDiskSizeOk() (*int32, bool)` + +GetDiskSizeOk returns a tuple with the DiskSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskSize + +`func (o *PostgresqlPostgresql14Configuration) SetDiskSize(v int32)` + +SetDiskSize sets DiskSize field to given value. + +### HasDiskSize + +`func (o *PostgresqlPostgresql14Configuration) HasDiskSize() bool` + +HasDiskSize returns a boolean if a field has been set. + +### GetMemory + +`func (o *PostgresqlPostgresql14Configuration) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *PostgresqlPostgresql14Configuration) GetMemoryOk() (*int32, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *PostgresqlPostgresql14Configuration) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *PostgresqlPostgresql14Configuration) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetVersion + +`func (o *PostgresqlPostgresql14Configuration) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *PostgresqlPostgresql14Configuration) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *PostgresqlPostgresql14Configuration) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *PostgresqlPostgresql14Configuration) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetDisplayVersion + +`func (o *PostgresqlPostgresql14Configuration) GetDisplayVersion() string` + +GetDisplayVersion returns the DisplayVersion field if non-nil, zero value otherwise. + +### GetDisplayVersionOk + +`func (o *PostgresqlPostgresql14Configuration) GetDisplayVersionOk() (*string, bool)` + +GetDisplayVersionOk returns a tuple with the DisplayVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayVersion + +`func (o *PostgresqlPostgresql14Configuration) SetDisplayVersion(v string)` + +SetDisplayVersion sets DisplayVersion field to given value. + +### HasDisplayVersion + +`func (o *PostgresqlPostgresql14Configuration) HasDisplayVersion() bool` + +HasDisplayVersion returns a boolean if a field has been set. + +### GetParamConfig + +`func (o *PostgresqlPostgresql14Configuration) GetParamConfig() []StructuresParamConfig` + +GetParamConfig returns the ParamConfig field if non-nil, zero value otherwise. + +### GetParamConfigOk + +`func (o *PostgresqlPostgresql14Configuration) GetParamConfigOk() (*[]StructuresParamConfig, bool)` + +GetParamConfigOk returns a tuple with the ParamConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamConfig + +`func (o *PostgresqlPostgresql14Configuration) SetParamConfig(v []StructuresParamConfig)` + +SetParamConfig sets ParamConfig field to given value. + +### HasParamConfig + +`func (o *PostgresqlPostgresql14Configuration) HasParamConfig() bool` + +HasParamConfig returns a boolean if a field has been set. + +### GetParamDefault + +`func (o *PostgresqlPostgresql14Configuration) GetParamDefault() map[string]string` + +GetParamDefault returns the ParamDefault field if non-nil, zero value otherwise. + +### GetParamDefaultOk + +`func (o *PostgresqlPostgresql14Configuration) GetParamDefaultOk() (*map[string]string, bool)` + +GetParamDefaultOk returns a tuple with the ParamDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamDefault + +`func (o *PostgresqlPostgresql14Configuration) SetParamDefault(v map[string]string)` + +SetParamDefault sets ParamDefault field to given value. + +### HasParamDefault + +`func (o *PostgresqlPostgresql14Configuration) HasParamDefault() bool` + +HasParamDefault returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPostgresql15.md b/docs/PostgresqlPostgresql15.md new file mode 100644 index 0000000..6925780 --- /dev/null +++ b/docs/PostgresqlPostgresql15.md @@ -0,0 +1,264 @@ +# PostgresqlPostgresql15 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configuration** | Pointer to [**PostgresqlPostgresql15Configuration**](PostgresqlPostgresql15Configuration.md) | | [optional] +**Host** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**AddressInfo** | Pointer to [**StructuresAddressInfo**](StructuresAddressInfo.md) | | [optional] +**WebuiUrl** | Pointer to **string** | | [optional] +**DiskUsed** | Pointer to **string** | | [optional] +**DiskLeft** | Pointer to **string** | | [optional] +**ReadOnly** | Pointer to **bool** | | [optional] +**WebuiInstalling** | Pointer to **bool** | | [optional] + +## Methods + +### NewPostgresqlPostgresql15 + +`func NewPostgresqlPostgresql15() *PostgresqlPostgresql15` + +NewPostgresqlPostgresql15 instantiates a new PostgresqlPostgresql15 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 + +### NewPostgresqlPostgresql15WithDefaults + +`func NewPostgresqlPostgresql15WithDefaults() *PostgresqlPostgresql15` + +NewPostgresqlPostgresql15WithDefaults instantiates a new PostgresqlPostgresql15 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 + +### GetConfiguration + +`func (o *PostgresqlPostgresql15) GetConfiguration() PostgresqlPostgresql15Configuration` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *PostgresqlPostgresql15) GetConfigurationOk() (*PostgresqlPostgresql15Configuration, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *PostgresqlPostgresql15) SetConfiguration(v PostgresqlPostgresql15Configuration)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *PostgresqlPostgresql15) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + +### GetHost + +`func (o *PostgresqlPostgresql15) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *PostgresqlPostgresql15) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *PostgresqlPostgresql15) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *PostgresqlPostgresql15) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetPort + +`func (o *PostgresqlPostgresql15) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *PostgresqlPostgresql15) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *PostgresqlPostgresql15) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *PostgresqlPostgresql15) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetAddressInfo + +`func (o *PostgresqlPostgresql15) GetAddressInfo() StructuresAddressInfo` + +GetAddressInfo returns the AddressInfo field if non-nil, zero value otherwise. + +### GetAddressInfoOk + +`func (o *PostgresqlPostgresql15) GetAddressInfoOk() (*StructuresAddressInfo, bool)` + +GetAddressInfoOk returns a tuple with the AddressInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddressInfo + +`func (o *PostgresqlPostgresql15) SetAddressInfo(v StructuresAddressInfo)` + +SetAddressInfo sets AddressInfo field to given value. + +### HasAddressInfo + +`func (o *PostgresqlPostgresql15) HasAddressInfo() bool` + +HasAddressInfo returns a boolean if a field has been set. + +### GetWebuiUrl + +`func (o *PostgresqlPostgresql15) GetWebuiUrl() string` + +GetWebuiUrl returns the WebuiUrl field if non-nil, zero value otherwise. + +### GetWebuiUrlOk + +`func (o *PostgresqlPostgresql15) GetWebuiUrlOk() (*string, bool)` + +GetWebuiUrlOk returns a tuple with the WebuiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebuiUrl + +`func (o *PostgresqlPostgresql15) SetWebuiUrl(v string)` + +SetWebuiUrl sets WebuiUrl field to given value. + +### HasWebuiUrl + +`func (o *PostgresqlPostgresql15) HasWebuiUrl() bool` + +HasWebuiUrl returns a boolean if a field has been set. + +### GetDiskUsed + +`func (o *PostgresqlPostgresql15) GetDiskUsed() string` + +GetDiskUsed returns the DiskUsed field if non-nil, zero value otherwise. + +### GetDiskUsedOk + +`func (o *PostgresqlPostgresql15) GetDiskUsedOk() (*string, bool)` + +GetDiskUsedOk returns a tuple with the DiskUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskUsed + +`func (o *PostgresqlPostgresql15) SetDiskUsed(v string)` + +SetDiskUsed sets DiskUsed field to given value. + +### HasDiskUsed + +`func (o *PostgresqlPostgresql15) HasDiskUsed() bool` + +HasDiskUsed returns a boolean if a field has been set. + +### GetDiskLeft + +`func (o *PostgresqlPostgresql15) GetDiskLeft() string` + +GetDiskLeft returns the DiskLeft field if non-nil, zero value otherwise. + +### GetDiskLeftOk + +`func (o *PostgresqlPostgresql15) GetDiskLeftOk() (*string, bool)` + +GetDiskLeftOk returns a tuple with the DiskLeft field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskLeft + +`func (o *PostgresqlPostgresql15) SetDiskLeft(v string)` + +SetDiskLeft sets DiskLeft field to given value. + +### HasDiskLeft + +`func (o *PostgresqlPostgresql15) HasDiskLeft() bool` + +HasDiskLeft returns a boolean if a field has been set. + +### GetReadOnly + +`func (o *PostgresqlPostgresql15) GetReadOnly() bool` + +GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise. + +### GetReadOnlyOk + +`func (o *PostgresqlPostgresql15) GetReadOnlyOk() (*bool, bool)` + +GetReadOnlyOk returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadOnly + +`func (o *PostgresqlPostgresql15) SetReadOnly(v bool)` + +SetReadOnly sets ReadOnly field to given value. + +### HasReadOnly + +`func (o *PostgresqlPostgresql15) HasReadOnly() bool` + +HasReadOnly returns a boolean if a field has been set. + +### GetWebuiInstalling + +`func (o *PostgresqlPostgresql15) GetWebuiInstalling() bool` + +GetWebuiInstalling returns the WebuiInstalling field if non-nil, zero value otherwise. + +### GetWebuiInstallingOk + +`func (o *PostgresqlPostgresql15) GetWebuiInstallingOk() (*bool, bool)` + +GetWebuiInstallingOk returns a tuple with the WebuiInstalling field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebuiInstalling + +`func (o *PostgresqlPostgresql15) SetWebuiInstalling(v bool)` + +SetWebuiInstalling sets WebuiInstalling field to given value. + +### HasWebuiInstalling + +`func (o *PostgresqlPostgresql15) HasWebuiInstalling() bool` + +HasWebuiInstalling returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlPostgresql15Configuration.md b/docs/PostgresqlPostgresql15Configuration.md new file mode 100644 index 0000000..67fac31 --- /dev/null +++ b/docs/PostgresqlPostgresql15Configuration.md @@ -0,0 +1,212 @@ +# PostgresqlPostgresql15Configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpuCount** | Pointer to **int32** | | [optional] +**DiskSize** | Pointer to **int32** | | [optional] +**Memory** | Pointer to **int32** | | [optional] +**Version** | Pointer to **string** | | [optional] +**DisplayVersion** | Pointer to **string** | | [optional] +**ParamConfig** | Pointer to [**[]StructuresParamConfig**](StructuresParamConfig.md) | | [optional] +**ParamDefault** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewPostgresqlPostgresql15Configuration + +`func NewPostgresqlPostgresql15Configuration() *PostgresqlPostgresql15Configuration` + +NewPostgresqlPostgresql15Configuration instantiates a new PostgresqlPostgresql15Configuration 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 + +### NewPostgresqlPostgresql15ConfigurationWithDefaults + +`func NewPostgresqlPostgresql15ConfigurationWithDefaults() *PostgresqlPostgresql15Configuration` + +NewPostgresqlPostgresql15ConfigurationWithDefaults instantiates a new PostgresqlPostgresql15Configuration 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 + +### GetCpuCount + +`func (o *PostgresqlPostgresql15Configuration) GetCpuCount() int32` + +GetCpuCount returns the CpuCount field if non-nil, zero value otherwise. + +### GetCpuCountOk + +`func (o *PostgresqlPostgresql15Configuration) GetCpuCountOk() (*int32, bool)` + +GetCpuCountOk returns a tuple with the CpuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuCount + +`func (o *PostgresqlPostgresql15Configuration) SetCpuCount(v int32)` + +SetCpuCount sets CpuCount field to given value. + +### HasCpuCount + +`func (o *PostgresqlPostgresql15Configuration) HasCpuCount() bool` + +HasCpuCount returns a boolean if a field has been set. + +### GetDiskSize + +`func (o *PostgresqlPostgresql15Configuration) GetDiskSize() int32` + +GetDiskSize returns the DiskSize field if non-nil, zero value otherwise. + +### GetDiskSizeOk + +`func (o *PostgresqlPostgresql15Configuration) GetDiskSizeOk() (*int32, bool)` + +GetDiskSizeOk returns a tuple with the DiskSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskSize + +`func (o *PostgresqlPostgresql15Configuration) SetDiskSize(v int32)` + +SetDiskSize sets DiskSize field to given value. + +### HasDiskSize + +`func (o *PostgresqlPostgresql15Configuration) HasDiskSize() bool` + +HasDiskSize returns a boolean if a field has been set. + +### GetMemory + +`func (o *PostgresqlPostgresql15Configuration) GetMemory() int32` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *PostgresqlPostgresql15Configuration) GetMemoryOk() (*int32, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *PostgresqlPostgresql15Configuration) SetMemory(v int32)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *PostgresqlPostgresql15Configuration) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetVersion + +`func (o *PostgresqlPostgresql15Configuration) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *PostgresqlPostgresql15Configuration) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *PostgresqlPostgresql15Configuration) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *PostgresqlPostgresql15Configuration) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetDisplayVersion + +`func (o *PostgresqlPostgresql15Configuration) GetDisplayVersion() string` + +GetDisplayVersion returns the DisplayVersion field if non-nil, zero value otherwise. + +### GetDisplayVersionOk + +`func (o *PostgresqlPostgresql15Configuration) GetDisplayVersionOk() (*string, bool)` + +GetDisplayVersionOk returns a tuple with the DisplayVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayVersion + +`func (o *PostgresqlPostgresql15Configuration) SetDisplayVersion(v string)` + +SetDisplayVersion sets DisplayVersion field to given value. + +### HasDisplayVersion + +`func (o *PostgresqlPostgresql15Configuration) HasDisplayVersion() bool` + +HasDisplayVersion returns a boolean if a field has been set. + +### GetParamConfig + +`func (o *PostgresqlPostgresql15Configuration) GetParamConfig() []StructuresParamConfig` + +GetParamConfig returns the ParamConfig field if non-nil, zero value otherwise. + +### GetParamConfigOk + +`func (o *PostgresqlPostgresql15Configuration) GetParamConfigOk() (*[]StructuresParamConfig, bool)` + +GetParamConfigOk returns a tuple with the ParamConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamConfig + +`func (o *PostgresqlPostgresql15Configuration) SetParamConfig(v []StructuresParamConfig)` + +SetParamConfig sets ParamConfig field to given value. + +### HasParamConfig + +`func (o *PostgresqlPostgresql15Configuration) HasParamConfig() bool` + +HasParamConfig returns a boolean if a field has been set. + +### GetParamDefault + +`func (o *PostgresqlPostgresql15Configuration) GetParamDefault() map[string]string` + +GetParamDefault returns the ParamDefault field if non-nil, zero value otherwise. + +### GetParamDefaultOk + +`func (o *PostgresqlPostgresql15Configuration) GetParamDefaultOk() (*map[string]string, bool)` + +GetParamDefaultOk returns a tuple with the ParamDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParamDefault + +`func (o *PostgresqlPostgresql15Configuration) SetParamDefault(v map[string]string)` + +SetParamDefault sets ParamDefault field to given value. + +### HasParamDefault + +`func (o *PostgresqlPostgresql15Configuration) HasParamDefault() bool` + +HasParamDefault returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlRole.md b/docs/PostgresqlRole.md new file mode 100644 index 0000000..6e0fab4 --- /dev/null +++ b/docs/PostgresqlRole.md @@ -0,0 +1,134 @@ +# PostgresqlRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] +**ParentRole** | Pointer to **[]string** | | [optional] +**Predefined** | Pointer to **bool** | | [optional] + +## Methods + +### NewPostgresqlRole + +`func NewPostgresqlRole() *PostgresqlRole` + +NewPostgresqlRole instantiates a new PostgresqlRole 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 + +### NewPostgresqlRoleWithDefaults + +`func NewPostgresqlRoleWithDefaults() *PostgresqlRole` + +NewPostgresqlRoleWithDefaults instantiates a new PostgresqlRole 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 + +### GetName + +`func (o *PostgresqlRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PostgresqlRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PostgresqlRole) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PostgresqlRole) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPassword + +`func (o *PostgresqlRole) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *PostgresqlRole) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *PostgresqlRole) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *PostgresqlRole) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetParentRole + +`func (o *PostgresqlRole) GetParentRole() []string` + +GetParentRole returns the ParentRole field if non-nil, zero value otherwise. + +### GetParentRoleOk + +`func (o *PostgresqlRole) GetParentRoleOk() (*[]string, bool)` + +GetParentRoleOk returns a tuple with the ParentRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentRole + +`func (o *PostgresqlRole) SetParentRole(v []string)` + +SetParentRole sets ParentRole field to given value. + +### HasParentRole + +`func (o *PostgresqlRole) HasParentRole() bool` + +HasParentRole returns a boolean if a field has been set. + +### GetPredefined + +`func (o *PostgresqlRole) GetPredefined() bool` + +GetPredefined returns the Predefined field if non-nil, zero value otherwise. + +### GetPredefinedOk + +`func (o *PostgresqlRole) GetPredefinedOk() (*bool, bool)` + +GetPredefinedOk returns a tuple with the Predefined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPredefined + +`func (o *PostgresqlRole) SetPredefined(v bool)` + +SetPredefined sets Predefined field to given value. + +### HasPredefined + +`func (o *PostgresqlRole) HasPredefined() bool` + +HasPredefined returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlServiceApi.md b/docs/PostgresqlServiceApi.md new file mode 100644 index 0000000..8e6daf8 --- /dev/null +++ b/docs/PostgresqlServiceApi.md @@ -0,0 +1,860 @@ +# \PostgresqlServiceApi + +All URIs are relative to *https://api.beget.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PostgresqlServiceCreateDb**](PostgresqlServiceApi.md#PostgresqlServiceCreateDb) | **Post** /v1/cloud/postgresql/{service_id}/db | +[**PostgresqlServiceCreateRole**](PostgresqlServiceApi.md#PostgresqlServiceCreateRole) | **Post** /v1/cloud/postgresql/{service_id}/role | +[**PostgresqlServiceGetConfig**](PostgresqlServiceApi.md#PostgresqlServiceGetConfig) | **Get** /v1/cloud/postgresql/{service_id}/config | +[**PostgresqlServiceGetDbList**](PostgresqlServiceApi.md#PostgresqlServiceGetDbList) | **Get** /v1/cloud/postgresql/{service_id}/db | +[**PostgresqlServiceGetRemoteAccess**](PostgresqlServiceApi.md#PostgresqlServiceGetRemoteAccess) | **Get** /v1/cloud/postgresql/{service_id}/remote-access | +[**PostgresqlServiceGetRoleList**](PostgresqlServiceApi.md#PostgresqlServiceGetRoleList) | **Get** /v1/cloud/postgresql/{service_id}/role | +[**PostgresqlServiceRemoveDb**](PostgresqlServiceApi.md#PostgresqlServiceRemoveDb) | **Delete** /v1/cloud/postgresql/{service_id}/db/{db_name} | +[**PostgresqlServiceRemoveRole**](PostgresqlServiceApi.md#PostgresqlServiceRemoveRole) | **Delete** /v1/cloud/postgresql/{service_id}/role/{role_name} | +[**PostgresqlServiceSetConfig**](PostgresqlServiceApi.md#PostgresqlServiceSetConfig) | **Put** /v1/cloud/postgresql/{service_id}/config | +[**PostgresqlServiceUpdateDb**](PostgresqlServiceApi.md#PostgresqlServiceUpdateDb) | **Patch** /v1/cloud/postgresql/{service_id}/db/{db_name} | +[**PostgresqlServiceUpdateRemoteAccess**](PostgresqlServiceApi.md#PostgresqlServiceUpdateRemoteAccess) | **Put** /v1/cloud/postgresql/{service_id}/remote-access | +[**PostgresqlServiceUpdateRole**](PostgresqlServiceApi.md#PostgresqlServiceUpdateRole) | **Patch** /v1/cloud/postgresql/{service_id}/role/{role_name} | + + + +## PostgresqlServiceCreateDb + +> PostgresqlPgCreateDbResponse PostgresqlServiceCreateDb(ctx, serviceId).PostgresqlPgCreateDbRequest(postgresqlPgCreateDbRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + postgresqlPgCreateDbRequest := *openapiclient.NewPostgresqlPgCreateDbRequest() // PostgresqlPgCreateDbRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceCreateDb(context.Background(), serviceId).PostgresqlPgCreateDbRequest(postgresqlPgCreateDbRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceCreateDb``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceCreateDb`: PostgresqlPgCreateDbResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceCreateDb`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceCreateDbRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **postgresqlPgCreateDbRequest** | [**PostgresqlPgCreateDbRequest**](PostgresqlPgCreateDbRequest.md) | | + +### Return type + +[**PostgresqlPgCreateDbResponse**](PostgresqlPgCreateDbResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceCreateRole + +> PostgresqlPgCreateRoleResponse PostgresqlServiceCreateRole(ctx, serviceId).PostgresqlPgCreateRoleRequest(postgresqlPgCreateRoleRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + postgresqlPgCreateRoleRequest := *openapiclient.NewPostgresqlPgCreateRoleRequest() // PostgresqlPgCreateRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceCreateRole(context.Background(), serviceId).PostgresqlPgCreateRoleRequest(postgresqlPgCreateRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceCreateRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceCreateRole`: PostgresqlPgCreateRoleResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceCreateRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceCreateRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **postgresqlPgCreateRoleRequest** | [**PostgresqlPgCreateRoleRequest**](PostgresqlPgCreateRoleRequest.md) | | + +### Return type + +[**PostgresqlPgCreateRoleResponse**](PostgresqlPgCreateRoleResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceGetConfig + +> PostgresqlPgGetConfigResponse PostgresqlServiceGetConfig(ctx, serviceId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetConfig(context.Background(), serviceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceGetConfig`: PostgresqlPgGetConfigResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceGetConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**PostgresqlPgGetConfigResponse**](PostgresqlPgGetConfigResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceGetDbList + +> PostgresqlPgGetDbListResponse PostgresqlServiceGetDbList(ctx, serviceId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetDbList(context.Background(), serviceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetDbList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceGetDbList`: PostgresqlPgGetDbListResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetDbList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceGetDbListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**PostgresqlPgGetDbListResponse**](PostgresqlPgGetDbListResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceGetRemoteAccess + +> PostgresqlPgGetRemoteAccessResponse PostgresqlServiceGetRemoteAccess(ctx, serviceId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetRemoteAccess(context.Background(), serviceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetRemoteAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceGetRemoteAccess`: PostgresqlPgGetRemoteAccessResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetRemoteAccess`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceGetRemoteAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**PostgresqlPgGetRemoteAccessResponse**](PostgresqlPgGetRemoteAccessResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceGetRoleList + +> PostgresqlPgGetRoleListResponse PostgresqlServiceGetRoleList(ctx, serviceId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetRoleList(context.Background(), serviceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceGetRoleList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceGetRoleList`: PostgresqlPgGetRoleListResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceGetRoleList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceGetRoleListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**PostgresqlPgGetRoleListResponse**](PostgresqlPgGetRoleListResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceRemoveDb + +> PostgresqlPgRemoveDbResponse PostgresqlServiceRemoveDb(ctx, serviceId, dbName).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + dbName := "dbName_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceRemoveDb(context.Background(), serviceId, dbName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceRemoveDb``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceRemoveDb`: PostgresqlPgRemoveDbResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceRemoveDb`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | +**dbName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceRemoveDbRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**PostgresqlPgRemoveDbResponse**](PostgresqlPgRemoveDbResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceRemoveRole + +> PostgresqlPgRemoveRoleResponse PostgresqlServiceRemoveRole(ctx, serviceId, roleName).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + roleName := "roleName_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceRemoveRole(context.Background(), serviceId, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceRemoveRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceRemoveRole`: PostgresqlPgRemoveRoleResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceRemoveRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | +**roleName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceRemoveRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**PostgresqlPgRemoveRoleResponse**](PostgresqlPgRemoveRoleResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceSetConfig + +> PostgresqlPgSetConfigResponse PostgresqlServiceSetConfig(ctx, serviceId).PostgresqlPgSetConfigRequest(postgresqlPgSetConfigRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + postgresqlPgSetConfigRequest := *openapiclient.NewPostgresqlPgSetConfigRequest() // PostgresqlPgSetConfigRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceSetConfig(context.Background(), serviceId).PostgresqlPgSetConfigRequest(postgresqlPgSetConfigRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceSetConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceSetConfig`: PostgresqlPgSetConfigResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceSetConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceSetConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **postgresqlPgSetConfigRequest** | [**PostgresqlPgSetConfigRequest**](PostgresqlPgSetConfigRequest.md) | | + +### Return type + +[**PostgresqlPgSetConfigResponse**](PostgresqlPgSetConfigResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceUpdateDb + +> PostgresqlPgUpdateDbResponse PostgresqlServiceUpdateDb(ctx, serviceId, dbName).PostgresqlPgUpdateDbRequest(postgresqlPgUpdateDbRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + dbName := "dbName_example" // string | + postgresqlPgUpdateDbRequest := *openapiclient.NewPostgresqlPgUpdateDbRequest() // PostgresqlPgUpdateDbRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateDb(context.Background(), serviceId, dbName).PostgresqlPgUpdateDbRequest(postgresqlPgUpdateDbRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceUpdateDb``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceUpdateDb`: PostgresqlPgUpdateDbResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceUpdateDb`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | +**dbName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceUpdateDbRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **postgresqlPgUpdateDbRequest** | [**PostgresqlPgUpdateDbRequest**](PostgresqlPgUpdateDbRequest.md) | | + +### Return type + +[**PostgresqlPgUpdateDbResponse**](PostgresqlPgUpdateDbResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceUpdateRemoteAccess + +> PostgresqlPgUpdateRemoteAccessResponse PostgresqlServiceUpdateRemoteAccess(ctx, serviceId).PostgresqlPgUpdateRemoteAccessRequest(postgresqlPgUpdateRemoteAccessRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + postgresqlPgUpdateRemoteAccessRequest := *openapiclient.NewPostgresqlPgUpdateRemoteAccessRequest() // PostgresqlPgUpdateRemoteAccessRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateRemoteAccess(context.Background(), serviceId).PostgresqlPgUpdateRemoteAccessRequest(postgresqlPgUpdateRemoteAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceUpdateRemoteAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceUpdateRemoteAccess`: PostgresqlPgUpdateRemoteAccessResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceUpdateRemoteAccess`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceUpdateRemoteAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **postgresqlPgUpdateRemoteAccessRequest** | [**PostgresqlPgUpdateRemoteAccessRequest**](PostgresqlPgUpdateRemoteAccessRequest.md) | | + +### Return type + +[**PostgresqlPgUpdateRemoteAccessResponse**](PostgresqlPgUpdateRemoteAccessResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlServiceUpdateRole + +> PostgresqlPgUpdateRoleResponse PostgresqlServiceUpdateRole(ctx, serviceId, roleName).PostgresqlPgUpdateRoleRequest(postgresqlPgUpdateRoleRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + roleName := "roleName_example" // string | + postgresqlPgUpdateRoleRequest := *openapiclient.NewPostgresqlPgUpdateRoleRequest() // PostgresqlPgUpdateRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateRole(context.Background(), serviceId, roleName).PostgresqlPgUpdateRoleRequest(postgresqlPgUpdateRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlServiceApi.PostgresqlServiceUpdateRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlServiceUpdateRole`: PostgresqlPgUpdateRoleResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlServiceApi.PostgresqlServiceUpdateRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | +**roleName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlServiceUpdateRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **postgresqlPgUpdateRoleRequest** | [**PostgresqlPgUpdateRoleRequest**](PostgresqlPgUpdateRoleRequest.md) | | + +### Return type + +[**PostgresqlPgUpdateRoleResponse**](PostgresqlPgUpdateRoleResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/PostgresqlStatisticGetCpuDetailsResponse.md b/docs/PostgresqlStatisticGetCpuDetailsResponse.md new file mode 100644 index 0000000..a748aa4 --- /dev/null +++ b/docs/PostgresqlStatisticGetCpuDetailsResponse.md @@ -0,0 +1,238 @@ +# PostgresqlStatisticGetCpuDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | Pointer to **[]string** | | [optional] +**User** | Pointer to **[]float64** | | [optional] +**Nice** | Pointer to **[]float64** | | [optional] +**System** | Pointer to **[]float64** | | [optional] +**Idle** | Pointer to **[]float64** | | [optional] +**Iowait** | Pointer to **[]float64** | | [optional] +**Irq** | Pointer to **[]float64** | | [optional] +**Softirq** | Pointer to **[]float64** | | [optional] + +## Methods + +### NewPostgresqlStatisticGetCpuDetailsResponse + +`func NewPostgresqlStatisticGetCpuDetailsResponse() *PostgresqlStatisticGetCpuDetailsResponse` + +NewPostgresqlStatisticGetCpuDetailsResponse instantiates a new PostgresqlStatisticGetCpuDetailsResponse 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 + +### NewPostgresqlStatisticGetCpuDetailsResponseWithDefaults + +`func NewPostgresqlStatisticGetCpuDetailsResponseWithDefaults() *PostgresqlStatisticGetCpuDetailsResponse` + +NewPostgresqlStatisticGetCpuDetailsResponseWithDefaults instantiates a new PostgresqlStatisticGetCpuDetailsResponse 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 + +### GetDate + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetDate() []string` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetDateOk() (*[]string, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetDate(v []string)` + +SetDate sets Date field to given value. + +### HasDate + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasDate() bool` + +HasDate returns a boolean if a field has been set. + +### GetUser + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetUser() []float64` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetUserOk() (*[]float64, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetUser(v []float64)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetNice + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetNice() []float64` + +GetNice returns the Nice field if non-nil, zero value otherwise. + +### GetNiceOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetNiceOk() (*[]float64, bool)` + +GetNiceOk returns a tuple with the Nice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNice + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetNice(v []float64)` + +SetNice sets Nice field to given value. + +### HasNice + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasNice() bool` + +HasNice returns a boolean if a field has been set. + +### GetSystem + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSystem() []float64` + +GetSystem returns the System field if non-nil, zero value otherwise. + +### GetSystemOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSystemOk() (*[]float64, bool)` + +GetSystemOk returns a tuple with the System field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystem + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetSystem(v []float64)` + +SetSystem sets System field to given value. + +### HasSystem + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasSystem() bool` + +HasSystem returns a boolean if a field has been set. + +### GetIdle + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIdle() []float64` + +GetIdle returns the Idle field if non-nil, zero value otherwise. + +### GetIdleOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIdleOk() (*[]float64, bool)` + +GetIdleOk returns a tuple with the Idle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdle + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetIdle(v []float64)` + +SetIdle sets Idle field to given value. + +### HasIdle + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasIdle() bool` + +HasIdle returns a boolean if a field has been set. + +### GetIowait + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIowait() []float64` + +GetIowait returns the Iowait field if non-nil, zero value otherwise. + +### GetIowaitOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIowaitOk() (*[]float64, bool)` + +GetIowaitOk returns a tuple with the Iowait field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIowait + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetIowait(v []float64)` + +SetIowait sets Iowait field to given value. + +### HasIowait + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasIowait() bool` + +HasIowait returns a boolean if a field has been set. + +### GetIrq + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIrq() []float64` + +GetIrq returns the Irq field if non-nil, zero value otherwise. + +### GetIrqOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIrqOk() (*[]float64, bool)` + +GetIrqOk returns a tuple with the Irq field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIrq + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetIrq(v []float64)` + +SetIrq sets Irq field to given value. + +### HasIrq + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasIrq() bool` + +HasIrq returns a boolean if a field has been set. + +### GetSoftirq + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSoftirq() []float64` + +GetSoftirq returns the Softirq field if non-nil, zero value otherwise. + +### GetSoftirqOk + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSoftirqOk() (*[]float64, bool)` + +GetSoftirqOk returns a tuple with the Softirq field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoftirq + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) SetSoftirq(v []float64)` + +SetSoftirq sets Softirq field to given value. + +### HasSoftirq + +`func (o *PostgresqlStatisticGetCpuDetailsResponse) HasSoftirq() bool` + +HasSoftirq returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlStatisticGetCpuResponse.md b/docs/PostgresqlStatisticGetCpuResponse.md new file mode 100644 index 0000000..814e1e3 --- /dev/null +++ b/docs/PostgresqlStatisticGetCpuResponse.md @@ -0,0 +1,56 @@ +# PostgresqlStatisticGetCpuResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cpu** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] + +## Methods + +### NewPostgresqlStatisticGetCpuResponse + +`func NewPostgresqlStatisticGetCpuResponse() *PostgresqlStatisticGetCpuResponse` + +NewPostgresqlStatisticGetCpuResponse instantiates a new PostgresqlStatisticGetCpuResponse 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 + +### NewPostgresqlStatisticGetCpuResponseWithDefaults + +`func NewPostgresqlStatisticGetCpuResponseWithDefaults() *PostgresqlStatisticGetCpuResponse` + +NewPostgresqlStatisticGetCpuResponseWithDefaults instantiates a new PostgresqlStatisticGetCpuResponse 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 + +### GetCpu + +`func (o *PostgresqlStatisticGetCpuResponse) GetCpu() StructuresStatisticSeriesData` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *PostgresqlStatisticGetCpuResponse) GetCpuOk() (*StructuresStatisticSeriesData, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *PostgresqlStatisticGetCpuResponse) SetCpu(v StructuresStatisticSeriesData)` + +SetCpu sets Cpu field to given value. + +### HasCpu + +`func (o *PostgresqlStatisticGetCpuResponse) HasCpu() bool` + +HasCpu returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlStatisticGetDiskResponse.md b/docs/PostgresqlStatisticGetDiskResponse.md new file mode 100644 index 0000000..5c51599 --- /dev/null +++ b/docs/PostgresqlStatisticGetDiskResponse.md @@ -0,0 +1,82 @@ +# PostgresqlStatisticGetDiskResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DataRead** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] +**DataWrite** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] + +## Methods + +### NewPostgresqlStatisticGetDiskResponse + +`func NewPostgresqlStatisticGetDiskResponse() *PostgresqlStatisticGetDiskResponse` + +NewPostgresqlStatisticGetDiskResponse instantiates a new PostgresqlStatisticGetDiskResponse 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 + +### NewPostgresqlStatisticGetDiskResponseWithDefaults + +`func NewPostgresqlStatisticGetDiskResponseWithDefaults() *PostgresqlStatisticGetDiskResponse` + +NewPostgresqlStatisticGetDiskResponseWithDefaults instantiates a new PostgresqlStatisticGetDiskResponse 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 + +### GetDataRead + +`func (o *PostgresqlStatisticGetDiskResponse) GetDataRead() StructuresStatisticSeriesData` + +GetDataRead returns the DataRead field if non-nil, zero value otherwise. + +### GetDataReadOk + +`func (o *PostgresqlStatisticGetDiskResponse) GetDataReadOk() (*StructuresStatisticSeriesData, bool)` + +GetDataReadOk returns a tuple with the DataRead field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataRead + +`func (o *PostgresqlStatisticGetDiskResponse) SetDataRead(v StructuresStatisticSeriesData)` + +SetDataRead sets DataRead field to given value. + +### HasDataRead + +`func (o *PostgresqlStatisticGetDiskResponse) HasDataRead() bool` + +HasDataRead returns a boolean if a field has been set. + +### GetDataWrite + +`func (o *PostgresqlStatisticGetDiskResponse) GetDataWrite() StructuresStatisticSeriesData` + +GetDataWrite returns the DataWrite field if non-nil, zero value otherwise. + +### GetDataWriteOk + +`func (o *PostgresqlStatisticGetDiskResponse) GetDataWriteOk() (*StructuresStatisticSeriesData, bool)` + +GetDataWriteOk returns a tuple with the DataWrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataWrite + +`func (o *PostgresqlStatisticGetDiskResponse) SetDataWrite(v StructuresStatisticSeriesData)` + +SetDataWrite sets DataWrite field to given value. + +### HasDataWrite + +`func (o *PostgresqlStatisticGetDiskResponse) HasDataWrite() bool` + +HasDataWrite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlStatisticGetDiskUsageResponse.md b/docs/PostgresqlStatisticGetDiskUsageResponse.md new file mode 100644 index 0000000..2159737 --- /dev/null +++ b/docs/PostgresqlStatisticGetDiskUsageResponse.md @@ -0,0 +1,56 @@ +# PostgresqlStatisticGetDiskUsageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DiskUsage** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] + +## Methods + +### NewPostgresqlStatisticGetDiskUsageResponse + +`func NewPostgresqlStatisticGetDiskUsageResponse() *PostgresqlStatisticGetDiskUsageResponse` + +NewPostgresqlStatisticGetDiskUsageResponse instantiates a new PostgresqlStatisticGetDiskUsageResponse 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 + +### NewPostgresqlStatisticGetDiskUsageResponseWithDefaults + +`func NewPostgresqlStatisticGetDiskUsageResponseWithDefaults() *PostgresqlStatisticGetDiskUsageResponse` + +NewPostgresqlStatisticGetDiskUsageResponseWithDefaults instantiates a new PostgresqlStatisticGetDiskUsageResponse 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 + +### GetDiskUsage + +`func (o *PostgresqlStatisticGetDiskUsageResponse) GetDiskUsage() StructuresStatisticSeriesData` + +GetDiskUsage returns the DiskUsage field if non-nil, zero value otherwise. + +### GetDiskUsageOk + +`func (o *PostgresqlStatisticGetDiskUsageResponse) GetDiskUsageOk() (*StructuresStatisticSeriesData, bool)` + +GetDiskUsageOk returns a tuple with the DiskUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskUsage + +`func (o *PostgresqlStatisticGetDiskUsageResponse) SetDiskUsage(v StructuresStatisticSeriesData)` + +SetDiskUsage sets DiskUsage field to given value. + +### HasDiskUsage + +`func (o *PostgresqlStatisticGetDiskUsageResponse) HasDiskUsage() bool` + +HasDiskUsage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlStatisticGetLoadAverageResponse.md b/docs/PostgresqlStatisticGetLoadAverageResponse.md new file mode 100644 index 0000000..8c600fb --- /dev/null +++ b/docs/PostgresqlStatisticGetLoadAverageResponse.md @@ -0,0 +1,134 @@ +# PostgresqlStatisticGetLoadAverageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | Pointer to **[]string** | | [optional] +**La1** | Pointer to **[]float64** | | [optional] +**La5** | Pointer to **[]float64** | | [optional] +**La15** | Pointer to **[]float64** | | [optional] + +## Methods + +### NewPostgresqlStatisticGetLoadAverageResponse + +`func NewPostgresqlStatisticGetLoadAverageResponse() *PostgresqlStatisticGetLoadAverageResponse` + +NewPostgresqlStatisticGetLoadAverageResponse instantiates a new PostgresqlStatisticGetLoadAverageResponse 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 + +### NewPostgresqlStatisticGetLoadAverageResponseWithDefaults + +`func NewPostgresqlStatisticGetLoadAverageResponseWithDefaults() *PostgresqlStatisticGetLoadAverageResponse` + +NewPostgresqlStatisticGetLoadAverageResponseWithDefaults instantiates a new PostgresqlStatisticGetLoadAverageResponse 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 + +### GetDate + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetDate() []string` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetDateOk() (*[]string, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *PostgresqlStatisticGetLoadAverageResponse) SetDate(v []string)` + +SetDate sets Date field to given value. + +### HasDate + +`func (o *PostgresqlStatisticGetLoadAverageResponse) HasDate() bool` + +HasDate returns a boolean if a field has been set. + +### GetLa1 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa1() []float64` + +GetLa1 returns the La1 field if non-nil, zero value otherwise. + +### GetLa1Ok + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa1Ok() (*[]float64, bool)` + +GetLa1Ok returns a tuple with the La1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLa1 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) SetLa1(v []float64)` + +SetLa1 sets La1 field to given value. + +### HasLa1 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) HasLa1() bool` + +HasLa1 returns a boolean if a field has been set. + +### GetLa5 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa5() []float64` + +GetLa5 returns the La5 field if non-nil, zero value otherwise. + +### GetLa5Ok + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa5Ok() (*[]float64, bool)` + +GetLa5Ok returns a tuple with the La5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLa5 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) SetLa5(v []float64)` + +SetLa5 sets La5 field to given value. + +### HasLa5 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) HasLa5() bool` + +HasLa5 returns a boolean if a field has been set. + +### GetLa15 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa15() []float64` + +GetLa15 returns the La15 field if non-nil, zero value otherwise. + +### GetLa15Ok + +`func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa15Ok() (*[]float64, bool)` + +GetLa15Ok returns a tuple with the La15 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLa15 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) SetLa15(v []float64)` + +SetLa15 sets La15 field to given value. + +### HasLa15 + +`func (o *PostgresqlStatisticGetLoadAverageResponse) HasLa15() bool` + +HasLa15 returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlStatisticGetMemoryResponse.md b/docs/PostgresqlStatisticGetMemoryResponse.md new file mode 100644 index 0000000..278a1f5 --- /dev/null +++ b/docs/PostgresqlStatisticGetMemoryResponse.md @@ -0,0 +1,56 @@ +# PostgresqlStatisticGetMemoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Memory** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] + +## Methods + +### NewPostgresqlStatisticGetMemoryResponse + +`func NewPostgresqlStatisticGetMemoryResponse() *PostgresqlStatisticGetMemoryResponse` + +NewPostgresqlStatisticGetMemoryResponse instantiates a new PostgresqlStatisticGetMemoryResponse 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 + +### NewPostgresqlStatisticGetMemoryResponseWithDefaults + +`func NewPostgresqlStatisticGetMemoryResponseWithDefaults() *PostgresqlStatisticGetMemoryResponse` + +NewPostgresqlStatisticGetMemoryResponseWithDefaults instantiates a new PostgresqlStatisticGetMemoryResponse 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 + +### GetMemory + +`func (o *PostgresqlStatisticGetMemoryResponse) GetMemory() StructuresStatisticSeriesData` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *PostgresqlStatisticGetMemoryResponse) GetMemoryOk() (*StructuresStatisticSeriesData, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *PostgresqlStatisticGetMemoryResponse) SetMemory(v StructuresStatisticSeriesData)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *PostgresqlStatisticGetMemoryResponse) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlStatisticGetNetworkResponse.md b/docs/PostgresqlStatisticGetNetworkResponse.md new file mode 100644 index 0000000..db76ccb --- /dev/null +++ b/docs/PostgresqlStatisticGetNetworkResponse.md @@ -0,0 +1,134 @@ +# PostgresqlStatisticGetNetworkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DataRx** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] +**DataTx** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] +**DataRxPrivate** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] +**DataTxPrivate** | Pointer to [**StructuresStatisticSeriesData**](StructuresStatisticSeriesData.md) | | [optional] + +## Methods + +### NewPostgresqlStatisticGetNetworkResponse + +`func NewPostgresqlStatisticGetNetworkResponse() *PostgresqlStatisticGetNetworkResponse` + +NewPostgresqlStatisticGetNetworkResponse instantiates a new PostgresqlStatisticGetNetworkResponse 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 + +### NewPostgresqlStatisticGetNetworkResponseWithDefaults + +`func NewPostgresqlStatisticGetNetworkResponseWithDefaults() *PostgresqlStatisticGetNetworkResponse` + +NewPostgresqlStatisticGetNetworkResponseWithDefaults instantiates a new PostgresqlStatisticGetNetworkResponse 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 + +### GetDataRx + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataRx() StructuresStatisticSeriesData` + +GetDataRx returns the DataRx field if non-nil, zero value otherwise. + +### GetDataRxOk + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataRxOk() (*StructuresStatisticSeriesData, bool)` + +GetDataRxOk returns a tuple with the DataRx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataRx + +`func (o *PostgresqlStatisticGetNetworkResponse) SetDataRx(v StructuresStatisticSeriesData)` + +SetDataRx sets DataRx field to given value. + +### HasDataRx + +`func (o *PostgresqlStatisticGetNetworkResponse) HasDataRx() bool` + +HasDataRx returns a boolean if a field has been set. + +### GetDataTx + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataTx() StructuresStatisticSeriesData` + +GetDataTx returns the DataTx field if non-nil, zero value otherwise. + +### GetDataTxOk + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataTxOk() (*StructuresStatisticSeriesData, bool)` + +GetDataTxOk returns a tuple with the DataTx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataTx + +`func (o *PostgresqlStatisticGetNetworkResponse) SetDataTx(v StructuresStatisticSeriesData)` + +SetDataTx sets DataTx field to given value. + +### HasDataTx + +`func (o *PostgresqlStatisticGetNetworkResponse) HasDataTx() bool` + +HasDataTx returns a boolean if a field has been set. + +### GetDataRxPrivate + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataRxPrivate() StructuresStatisticSeriesData` + +GetDataRxPrivate returns the DataRxPrivate field if non-nil, zero value otherwise. + +### GetDataRxPrivateOk + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataRxPrivateOk() (*StructuresStatisticSeriesData, bool)` + +GetDataRxPrivateOk returns a tuple with the DataRxPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataRxPrivate + +`func (o *PostgresqlStatisticGetNetworkResponse) SetDataRxPrivate(v StructuresStatisticSeriesData)` + +SetDataRxPrivate sets DataRxPrivate field to given value. + +### HasDataRxPrivate + +`func (o *PostgresqlStatisticGetNetworkResponse) HasDataRxPrivate() bool` + +HasDataRxPrivate returns a boolean if a field has been set. + +### GetDataTxPrivate + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataTxPrivate() StructuresStatisticSeriesData` + +GetDataTxPrivate returns the DataTxPrivate field if non-nil, zero value otherwise. + +### GetDataTxPrivateOk + +`func (o *PostgresqlStatisticGetNetworkResponse) GetDataTxPrivateOk() (*StructuresStatisticSeriesData, bool)` + +GetDataTxPrivateOk returns a tuple with the DataTxPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataTxPrivate + +`func (o *PostgresqlStatisticGetNetworkResponse) SetDataTxPrivate(v StructuresStatisticSeriesData)` + +SetDataTxPrivate sets DataTxPrivate field to given value. + +### HasDataTxPrivate + +`func (o *PostgresqlStatisticGetNetworkResponse) HasDataTxPrivate() bool` + +HasDataTxPrivate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostgresqlStatisticServiceApi.md b/docs/PostgresqlStatisticServiceApi.md new file mode 100644 index 0000000..90c1946 --- /dev/null +++ b/docs/PostgresqlStatisticServiceApi.md @@ -0,0 +1,505 @@ +# \PostgresqlStatisticServiceApi + +All URIs are relative to *https://api.beget.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PostgresqlStatisticServiceGetCpu**](PostgresqlStatisticServiceApi.md#PostgresqlStatisticServiceGetCpu) | **Get** /v1/cloud/postgresql/{service_id}/statistic/cpu | +[**PostgresqlStatisticServiceGetCpuDetails**](PostgresqlStatisticServiceApi.md#PostgresqlStatisticServiceGetCpuDetails) | **Get** /v1/cloud/postgresql/{service_id}/statistic/cpu-details | +[**PostgresqlStatisticServiceGetDisk**](PostgresqlStatisticServiceApi.md#PostgresqlStatisticServiceGetDisk) | **Get** /v1/cloud/postgresql/{service_id}/statistic/disk | +[**PostgresqlStatisticServiceGetDiskUsage**](PostgresqlStatisticServiceApi.md#PostgresqlStatisticServiceGetDiskUsage) | **Get** /v1/cloud/postgresql/{service_id}/statistic/disk-usage | +[**PostgresqlStatisticServiceGetLoadAverage**](PostgresqlStatisticServiceApi.md#PostgresqlStatisticServiceGetLoadAverage) | **Get** /v1/cloud/postgresql/{service_id}/statistic/load-average | +[**PostgresqlStatisticServiceGetMemory**](PostgresqlStatisticServiceApi.md#PostgresqlStatisticServiceGetMemory) | **Get** /v1/cloud/postgresql/{service_id}/statistic/memory | +[**PostgresqlStatisticServiceGetNetwork**](PostgresqlStatisticServiceApi.md#PostgresqlStatisticServiceGetNetwork) | **Get** /v1/cloud/postgresql/{service_id}/statistic/network | + + + +## PostgresqlStatisticServiceGetCpu + +> PostgresqlStatisticGetCpuResponse PostgresqlStatisticServiceGetCpu(ctx, serviceId).Period(period).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + period := "period_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpu(context.Background(), serviceId).Period(period).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpu``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlStatisticServiceGetCpu`: PostgresqlStatisticGetCpuResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpu`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetCpuRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **period** | **string** | | + +### Return type + +[**PostgresqlStatisticGetCpuResponse**](PostgresqlStatisticGetCpuResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlStatisticServiceGetCpuDetails + +> PostgresqlStatisticGetCpuDetailsResponse PostgresqlStatisticServiceGetCpuDetails(ctx, serviceId).Period(period).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + period := "period_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpuDetails(context.Background(), serviceId).Period(period).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpuDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlStatisticServiceGetCpuDetails`: PostgresqlStatisticGetCpuDetailsResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpuDetails`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetCpuDetailsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **period** | **string** | | + +### Return type + +[**PostgresqlStatisticGetCpuDetailsResponse**](PostgresqlStatisticGetCpuDetailsResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlStatisticServiceGetDisk + +> PostgresqlStatisticGetDiskResponse PostgresqlStatisticServiceGetDisk(ctx, serviceId).Period(period).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + period := "period_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDisk(context.Background(), serviceId).Period(period).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDisk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlStatisticServiceGetDisk`: PostgresqlStatisticGetDiskResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDisk`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetDiskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **period** | **string** | | + +### Return type + +[**PostgresqlStatisticGetDiskResponse**](PostgresqlStatisticGetDiskResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlStatisticServiceGetDiskUsage + +> PostgresqlStatisticGetDiskUsageResponse PostgresqlStatisticServiceGetDiskUsage(ctx, serviceId).Period(period).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + period := "period_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDiskUsage(context.Background(), serviceId).Period(period).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDiskUsage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlStatisticServiceGetDiskUsage`: PostgresqlStatisticGetDiskUsageResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDiskUsage`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetDiskUsageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **period** | **string** | | + +### Return type + +[**PostgresqlStatisticGetDiskUsageResponse**](PostgresqlStatisticGetDiskUsageResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlStatisticServiceGetLoadAverage + +> PostgresqlStatisticGetLoadAverageResponse PostgresqlStatisticServiceGetLoadAverage(ctx, serviceId).Period(period).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + period := "period_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetLoadAverage(context.Background(), serviceId).Period(period).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetLoadAverage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlStatisticServiceGetLoadAverage`: PostgresqlStatisticGetLoadAverageResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetLoadAverage`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetLoadAverageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **period** | **string** | | + +### Return type + +[**PostgresqlStatisticGetLoadAverageResponse**](PostgresqlStatisticGetLoadAverageResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlStatisticServiceGetMemory + +> PostgresqlStatisticGetMemoryResponse PostgresqlStatisticServiceGetMemory(ctx, serviceId).Period(period).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + period := "period_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetMemory(context.Background(), serviceId).Period(period).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetMemory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlStatisticServiceGetMemory`: PostgresqlStatisticGetMemoryResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetMemory`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetMemoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **period** | **string** | | + +### Return type + +[**PostgresqlStatisticGetMemoryResponse**](PostgresqlStatisticGetMemoryResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostgresqlStatisticServiceGetNetwork + +> PostgresqlStatisticGetNetworkResponse PostgresqlStatisticServiceGetNetwork(ctx, serviceId).Period(period).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceId := "serviceId_example" // string | + period := "period_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetNetwork(context.Background(), serviceId).Period(period).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetNetwork``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostgresqlStatisticServiceGetNetwork`: PostgresqlStatisticGetNetworkResponse + fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetNetwork`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetNetworkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **period** | **string** | | + +### Return type + +[**PostgresqlStatisticGetNetworkResponse**](PostgresqlStatisticGetNetworkResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/StructuresParamConfig.md b/docs/StructuresParamConfig.md new file mode 100644 index 0000000..f96ebd1 --- /dev/null +++ b/docs/StructuresParamConfig.md @@ -0,0 +1,212 @@ +# StructuresParamConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**DocumentationLink** | Pointer to **string** | | [optional] +**IntegerValue** | Pointer to **map[string]interface{}** | | [optional] +**FloatValue** | Pointer to **map[string]interface{}** | | [optional] +**StringValue** | Pointer to **map[string]interface{}** | | [optional] +**EnumValue** | Pointer to [**StructuresParamConfigEnumValue**](StructuresParamConfigEnumValue.md) | | [optional] +**SetValue** | Pointer to [**StructuresParamConfigSetValue**](StructuresParamConfigSetValue.md) | | [optional] + +## Methods + +### NewStructuresParamConfig + +`func NewStructuresParamConfig() *StructuresParamConfig` + +NewStructuresParamConfig instantiates a new StructuresParamConfig 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 + +### NewStructuresParamConfigWithDefaults + +`func NewStructuresParamConfigWithDefaults() *StructuresParamConfig` + +NewStructuresParamConfigWithDefaults instantiates a new StructuresParamConfig 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 + +### GetName + +`func (o *StructuresParamConfig) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *StructuresParamConfig) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *StructuresParamConfig) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *StructuresParamConfig) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDocumentationLink + +`func (o *StructuresParamConfig) GetDocumentationLink() string` + +GetDocumentationLink returns the DocumentationLink field if non-nil, zero value otherwise. + +### GetDocumentationLinkOk + +`func (o *StructuresParamConfig) GetDocumentationLinkOk() (*string, bool)` + +GetDocumentationLinkOk returns a tuple with the DocumentationLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocumentationLink + +`func (o *StructuresParamConfig) SetDocumentationLink(v string)` + +SetDocumentationLink sets DocumentationLink field to given value. + +### HasDocumentationLink + +`func (o *StructuresParamConfig) HasDocumentationLink() bool` + +HasDocumentationLink returns a boolean if a field has been set. + +### GetIntegerValue + +`func (o *StructuresParamConfig) GetIntegerValue() map[string]interface{}` + +GetIntegerValue returns the IntegerValue field if non-nil, zero value otherwise. + +### GetIntegerValueOk + +`func (o *StructuresParamConfig) GetIntegerValueOk() (*map[string]interface{}, bool)` + +GetIntegerValueOk returns a tuple with the IntegerValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntegerValue + +`func (o *StructuresParamConfig) SetIntegerValue(v map[string]interface{})` + +SetIntegerValue sets IntegerValue field to given value. + +### HasIntegerValue + +`func (o *StructuresParamConfig) HasIntegerValue() bool` + +HasIntegerValue returns a boolean if a field has been set. + +### GetFloatValue + +`func (o *StructuresParamConfig) GetFloatValue() map[string]interface{}` + +GetFloatValue returns the FloatValue field if non-nil, zero value otherwise. + +### GetFloatValueOk + +`func (o *StructuresParamConfig) GetFloatValueOk() (*map[string]interface{}, bool)` + +GetFloatValueOk returns a tuple with the FloatValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFloatValue + +`func (o *StructuresParamConfig) SetFloatValue(v map[string]interface{})` + +SetFloatValue sets FloatValue field to given value. + +### HasFloatValue + +`func (o *StructuresParamConfig) HasFloatValue() bool` + +HasFloatValue returns a boolean if a field has been set. + +### GetStringValue + +`func (o *StructuresParamConfig) GetStringValue() map[string]interface{}` + +GetStringValue returns the StringValue field if non-nil, zero value otherwise. + +### GetStringValueOk + +`func (o *StructuresParamConfig) GetStringValueOk() (*map[string]interface{}, bool)` + +GetStringValueOk returns a tuple with the StringValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStringValue + +`func (o *StructuresParamConfig) SetStringValue(v map[string]interface{})` + +SetStringValue sets StringValue field to given value. + +### HasStringValue + +`func (o *StructuresParamConfig) HasStringValue() bool` + +HasStringValue returns a boolean if a field has been set. + +### GetEnumValue + +`func (o *StructuresParamConfig) GetEnumValue() StructuresParamConfigEnumValue` + +GetEnumValue returns the EnumValue field if non-nil, zero value otherwise. + +### GetEnumValueOk + +`func (o *StructuresParamConfig) GetEnumValueOk() (*StructuresParamConfigEnumValue, bool)` + +GetEnumValueOk returns a tuple with the EnumValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnumValue + +`func (o *StructuresParamConfig) SetEnumValue(v StructuresParamConfigEnumValue)` + +SetEnumValue sets EnumValue field to given value. + +### HasEnumValue + +`func (o *StructuresParamConfig) HasEnumValue() bool` + +HasEnumValue returns a boolean if a field has been set. + +### GetSetValue + +`func (o *StructuresParamConfig) GetSetValue() StructuresParamConfigSetValue` + +GetSetValue returns the SetValue field if non-nil, zero value otherwise. + +### GetSetValueOk + +`func (o *StructuresParamConfig) GetSetValueOk() (*StructuresParamConfigSetValue, bool)` + +GetSetValueOk returns a tuple with the SetValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetValue + +`func (o *StructuresParamConfig) SetSetValue(v StructuresParamConfigSetValue)` + +SetSetValue sets SetValue field to given value. + +### HasSetValue + +`func (o *StructuresParamConfig) HasSetValue() bool` + +HasSetValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StructuresParamConfigEnumValue.md b/docs/StructuresParamConfigEnumValue.md new file mode 100644 index 0000000..c0a5f53 --- /dev/null +++ b/docs/StructuresParamConfigEnumValue.md @@ -0,0 +1,56 @@ +# StructuresParamConfigEnumValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **[]string** | | [optional] + +## Methods + +### NewStructuresParamConfigEnumValue + +`func NewStructuresParamConfigEnumValue() *StructuresParamConfigEnumValue` + +NewStructuresParamConfigEnumValue instantiates a new StructuresParamConfigEnumValue 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 + +### NewStructuresParamConfigEnumValueWithDefaults + +`func NewStructuresParamConfigEnumValueWithDefaults() *StructuresParamConfigEnumValue` + +NewStructuresParamConfigEnumValueWithDefaults instantiates a new StructuresParamConfigEnumValue 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 + +### GetValue + +`func (o *StructuresParamConfigEnumValue) GetValue() []string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *StructuresParamConfigEnumValue) GetValueOk() (*[]string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *StructuresParamConfigEnumValue) SetValue(v []string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *StructuresParamConfigEnumValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StructuresParamConfigSetValue.md b/docs/StructuresParamConfigSetValue.md new file mode 100644 index 0000000..5f0a093 --- /dev/null +++ b/docs/StructuresParamConfigSetValue.md @@ -0,0 +1,56 @@ +# StructuresParamConfigSetValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **[]string** | | [optional] + +## Methods + +### NewStructuresParamConfigSetValue + +`func NewStructuresParamConfigSetValue() *StructuresParamConfigSetValue` + +NewStructuresParamConfigSetValue instantiates a new StructuresParamConfigSetValue 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 + +### NewStructuresParamConfigSetValueWithDefaults + +`func NewStructuresParamConfigSetValueWithDefaults() *StructuresParamConfigSetValue` + +NewStructuresParamConfigSetValueWithDefaults instantiates a new StructuresParamConfigSetValue 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 + +### GetValue + +`func (o *StructuresParamConfigSetValue) GetValue() []string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *StructuresParamConfigSetValue) GetValueOk() (*[]string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *StructuresParamConfigSetValue) SetValue(v []string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *StructuresParamConfigSetValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/model_cloud_change_configuration_request.go b/model_cloud_change_configuration_request.go index d6d6f6a..150e474 100644 --- a/model_cloud_change_configuration_request.go +++ b/model_cloud_change_configuration_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_change_configuration_response.go b/model_cloud_change_configuration_response.go index 9d02327..33810f6 100644 --- a/model_cloud_change_configuration_response.go +++ b/model_cloud_change_configuration_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_change_configuration_response_error.go b/model_cloud_change_configuration_response_error.go index bf9460e..c4dc91b 100644 --- a/model_cloud_change_configuration_response_error.go +++ b/model_cloud_change_configuration_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_create_request.go b/model_cloud_create_request.go index 3cd72e2..de4eef8 100644 --- a/model_cloud_create_request.go +++ b/model_cloud_create_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,6 +20,7 @@ type CloudCreateRequest struct { DisplayName *string `json:"display_name,omitempty"` Description *string `json:"description,omitempty"` MysqlParams *MysqlCreateParams `json:"mysql_params,omitempty"` + PostgresqlParams *PostgresqlPgCreateParams `json:"postgresql_params,omitempty"` Extra *string `json:"extra,omitempty"` Region *string `json:"region,omitempty"` } @@ -169,6 +170,38 @@ func (o *CloudCreateRequest) SetMysqlParams(v MysqlCreateParams) { o.MysqlParams = &v } +// GetPostgresqlParams returns the PostgresqlParams field value if set, zero value otherwise. +func (o *CloudCreateRequest) GetPostgresqlParams() PostgresqlPgCreateParams { + if o == nil || isNil(o.PostgresqlParams) { + var ret PostgresqlPgCreateParams + return ret + } + return *o.PostgresqlParams +} + +// GetPostgresqlParamsOk returns a tuple with the PostgresqlParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudCreateRequest) GetPostgresqlParamsOk() (*PostgresqlPgCreateParams, bool) { + if o == nil || isNil(o.PostgresqlParams) { + return nil, false + } + return o.PostgresqlParams, true +} + +// HasPostgresqlParams returns a boolean if a field has been set. +func (o *CloudCreateRequest) HasPostgresqlParams() bool { + if o != nil && !isNil(o.PostgresqlParams) { + return true + } + + return false +} + +// SetPostgresqlParams gets a reference to the given PostgresqlPgCreateParams and assigns it to the PostgresqlParams field. +func (o *CloudCreateRequest) SetPostgresqlParams(v PostgresqlPgCreateParams) { + o.PostgresqlParams = &v +} + // GetExtra returns the Extra field value if set, zero value otherwise. func (o *CloudCreateRequest) GetExtra() string { if o == nil || isNil(o.Extra) { @@ -247,6 +280,9 @@ func (o CloudCreateRequest) MarshalJSON() ([]byte, error) { if !isNil(o.MysqlParams) { toSerialize["mysql_params"] = o.MysqlParams } + if !isNil(o.PostgresqlParams) { + toSerialize["postgresql_params"] = o.PostgresqlParams + } if !isNil(o.Extra) { toSerialize["extra"] = o.Extra } diff --git a/model_cloud_create_response.go b/model_cloud_create_response.go index 91ecd36..3468d32 100644 --- a/model_cloud_create_response.go +++ b/model_cloud_create_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,6 +18,7 @@ import ( type CloudCreateResponse struct { Service *CloudService `json:"service,omitempty"` MysqlError *MysqlCreateError `json:"mysql_error,omitempty"` + PostgresqlError *PostgresqlPgCreateError `json:"postgresql_error,omitempty"` } // NewCloudCreateResponse instantiates a new CloudCreateResponse object @@ -101,6 +102,38 @@ func (o *CloudCreateResponse) SetMysqlError(v MysqlCreateError) { o.MysqlError = &v } +// GetPostgresqlError returns the PostgresqlError field value if set, zero value otherwise. +func (o *CloudCreateResponse) GetPostgresqlError() PostgresqlPgCreateError { + if o == nil || isNil(o.PostgresqlError) { + var ret PostgresqlPgCreateError + return ret + } + return *o.PostgresqlError +} + +// GetPostgresqlErrorOk returns a tuple with the PostgresqlError field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudCreateResponse) GetPostgresqlErrorOk() (*PostgresqlPgCreateError, bool) { + if o == nil || isNil(o.PostgresqlError) { + return nil, false + } + return o.PostgresqlError, true +} + +// HasPostgresqlError returns a boolean if a field has been set. +func (o *CloudCreateResponse) HasPostgresqlError() bool { + if o != nil && !isNil(o.PostgresqlError) { + return true + } + + return false +} + +// SetPostgresqlError gets a reference to the given PostgresqlPgCreateError and assigns it to the PostgresqlError field. +func (o *CloudCreateResponse) SetPostgresqlError(v PostgresqlPgCreateError) { + o.PostgresqlError = &v +} + func (o CloudCreateResponse) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if !isNil(o.Service) { @@ -109,6 +142,9 @@ func (o CloudCreateResponse) MarshalJSON() ([]byte, error) { if !isNil(o.MysqlError) { toSerialize["mysql_error"] = o.MysqlError } + if !isNil(o.PostgresqlError) { + toSerialize["postgresql_error"] = o.PostgresqlError + } return json.Marshal(toSerialize) } diff --git a/model_cloud_get_configuration_list_response.go b/model_cloud_get_configuration_list_response.go index 73f10e5..2ca9cde 100644 --- a/model_cloud_get_configuration_list_response.go +++ b/model_cloud_get_configuration_list_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_get_list_response.go b/model_cloud_get_list_response.go index 9f59102..4ebc60c 100644 --- a/model_cloud_get_list_response.go +++ b/model_cloud_get_list_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_get_response.go b/model_cloud_get_response.go index 09f4a99..5be5e88 100644 --- a/model_cloud_get_response.go +++ b/model_cloud_get_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_remove_response.go b/model_cloud_remove_response.go index 540e523..a639fa9 100644 --- a/model_cloud_remove_response.go +++ b/model_cloud_remove_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_service.go b/model_cloud_service.go index a4aa50a..801a8c6 100644 --- a/model_cloud_service.go +++ b/model_cloud_service.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,6 +26,8 @@ type CloudService struct { PriceMonth *float64 `json:"price_month,omitempty"` Mysql5 *MysqlMysql5 `json:"mysql5,omitempty"` Mysql8 *MysqlMysql8 `json:"mysql8,omitempty"` + Postgresql15 *PostgresqlPostgresql15 `json:"postgresql15,omitempty"` + Postgresql14 *PostgresqlPostgresql14 `json:"postgresql14,omitempty"` ManageEnabled *bool `json:"manage_enabled,omitempty"` Slug *string `json:"slug,omitempty"` MonitorableResources []string `json:"monitorable_resources,omitempty"` @@ -371,6 +373,70 @@ func (o *CloudService) SetMysql8(v MysqlMysql8) { o.Mysql8 = &v } +// GetPostgresql15 returns the Postgresql15 field value if set, zero value otherwise. +func (o *CloudService) GetPostgresql15() PostgresqlPostgresql15 { + if o == nil || isNil(o.Postgresql15) { + var ret PostgresqlPostgresql15 + return ret + } + return *o.Postgresql15 +} + +// GetPostgresql15Ok returns a tuple with the Postgresql15 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudService) GetPostgresql15Ok() (*PostgresqlPostgresql15, bool) { + if o == nil || isNil(o.Postgresql15) { + return nil, false + } + return o.Postgresql15, true +} + +// HasPostgresql15 returns a boolean if a field has been set. +func (o *CloudService) HasPostgresql15() bool { + if o != nil && !isNil(o.Postgresql15) { + return true + } + + return false +} + +// SetPostgresql15 gets a reference to the given PostgresqlPostgresql15 and assigns it to the Postgresql15 field. +func (o *CloudService) SetPostgresql15(v PostgresqlPostgresql15) { + o.Postgresql15 = &v +} + +// GetPostgresql14 returns the Postgresql14 field value if set, zero value otherwise. +func (o *CloudService) GetPostgresql14() PostgresqlPostgresql14 { + if o == nil || isNil(o.Postgresql14) { + var ret PostgresqlPostgresql14 + return ret + } + return *o.Postgresql14 +} + +// GetPostgresql14Ok returns a tuple with the Postgresql14 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudService) GetPostgresql14Ok() (*PostgresqlPostgresql14, bool) { + if o == nil || isNil(o.Postgresql14) { + return nil, false + } + return o.Postgresql14, true +} + +// HasPostgresql14 returns a boolean if a field has been set. +func (o *CloudService) HasPostgresql14() bool { + if o != nil && !isNil(o.Postgresql14) { + return true + } + + return false +} + +// SetPostgresql14 gets a reference to the given PostgresqlPostgresql14 and assigns it to the Postgresql14 field. +func (o *CloudService) SetPostgresql14(v PostgresqlPostgresql14) { + o.Postgresql14 = &v +} + // GetManageEnabled returns the ManageEnabled field value if set, zero value otherwise. func (o *CloudService) GetManageEnabled() bool { if o == nil || isNil(o.ManageEnabled) { @@ -595,6 +661,12 @@ func (o CloudService) MarshalJSON() ([]byte, error) { if !isNil(o.Mysql8) { toSerialize["mysql8"] = o.Mysql8 } + if !isNil(o.Postgresql15) { + toSerialize["postgresql15"] = o.Postgresql15 + } + if !isNil(o.Postgresql14) { + toSerialize["postgresql14"] = o.Postgresql14 + } if !isNil(o.ManageEnabled) { toSerialize["manage_enabled"] = o.ManageEnabled } diff --git a/model_cloud_service_configuration.go b/model_cloud_service_configuration.go index ce30469..f9c33ba 100644 --- a/model_cloud_service_configuration.go +++ b/model_cloud_service_configuration.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,8 @@ type CloudServiceConfiguration struct { Region *string `json:"region,omitempty"` Mysql5 *MysqlMysql5Configuration `json:"mysql5,omitempty"` Mysql8 *MysqlMysql8Configuration `json:"mysql8,omitempty"` + Postgresql15 *PostgresqlPostgresql15Configuration `json:"postgresql15,omitempty"` + Postgresql14 *PostgresqlPostgresql14Configuration `json:"postgresql14,omitempty"` } // NewCloudServiceConfiguration instantiates a new CloudServiceConfiguration object @@ -233,6 +235,70 @@ func (o *CloudServiceConfiguration) SetMysql8(v MysqlMysql8Configuration) { o.Mysql8 = &v } +// GetPostgresql15 returns the Postgresql15 field value if set, zero value otherwise. +func (o *CloudServiceConfiguration) GetPostgresql15() PostgresqlPostgresql15Configuration { + if o == nil || isNil(o.Postgresql15) { + var ret PostgresqlPostgresql15Configuration + return ret + } + return *o.Postgresql15 +} + +// GetPostgresql15Ok returns a tuple with the Postgresql15 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudServiceConfiguration) GetPostgresql15Ok() (*PostgresqlPostgresql15Configuration, bool) { + if o == nil || isNil(o.Postgresql15) { + return nil, false + } + return o.Postgresql15, true +} + +// HasPostgresql15 returns a boolean if a field has been set. +func (o *CloudServiceConfiguration) HasPostgresql15() bool { + if o != nil && !isNil(o.Postgresql15) { + return true + } + + return false +} + +// SetPostgresql15 gets a reference to the given PostgresqlPostgresql15Configuration and assigns it to the Postgresql15 field. +func (o *CloudServiceConfiguration) SetPostgresql15(v PostgresqlPostgresql15Configuration) { + o.Postgresql15 = &v +} + +// GetPostgresql14 returns the Postgresql14 field value if set, zero value otherwise. +func (o *CloudServiceConfiguration) GetPostgresql14() PostgresqlPostgresql14Configuration { + if o == nil || isNil(o.Postgresql14) { + var ret PostgresqlPostgresql14Configuration + return ret + } + return *o.Postgresql14 +} + +// GetPostgresql14Ok returns a tuple with the Postgresql14 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudServiceConfiguration) GetPostgresql14Ok() (*PostgresqlPostgresql14Configuration, bool) { + if o == nil || isNil(o.Postgresql14) { + return nil, false + } + return o.Postgresql14, true +} + +// HasPostgresql14 returns a boolean if a field has been set. +func (o *CloudServiceConfiguration) HasPostgresql14() bool { + if o != nil && !isNil(o.Postgresql14) { + return true + } + + return false +} + +// SetPostgresql14 gets a reference to the given PostgresqlPostgresql14Configuration and assigns it to the Postgresql14 field. +func (o *CloudServiceConfiguration) SetPostgresql14(v PostgresqlPostgresql14Configuration) { + o.Postgresql14 = &v +} + func (o CloudServiceConfiguration) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if !isNil(o.Id) { @@ -253,6 +319,12 @@ func (o CloudServiceConfiguration) MarshalJSON() ([]byte, error) { if !isNil(o.Mysql8) { toSerialize["mysql8"] = o.Mysql8 } + if !isNil(o.Postgresql15) { + toSerialize["postgresql15"] = o.Postgresql15 + } + if !isNil(o.Postgresql14) { + toSerialize["postgresql14"] = o.Postgresql14 + } return json.Marshal(toSerialize) } diff --git a/model_cloud_update_request.go b/model_cloud_update_request.go index 66cc0c9..2e99a6f 100644 --- a/model_cloud_update_request.go +++ b/model_cloud_update_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_update_response.go b/model_cloud_update_response.go index 9e7e9af..8385ae8 100644 --- a/model_cloud_update_response.go +++ b/model_cloud_update_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cloud_update_response_error.go b/model_cloud_update_response_error.go index 4ea413a..062c2a5 100644 --- a/model_cloud_update_response_error.go +++ b/model_cloud_update_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_change_access_password_request.go b/model_mysql_change_access_password_request.go index 0042eec..37ede55 100644 --- a/model_mysql_change_access_password_request.go +++ b/model_mysql_change_access_password_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_change_access_password_response.go b/model_mysql_change_access_password_response.go index 1a6715f..e0b654d 100644 --- a/model_mysql_change_access_password_response.go +++ b/model_mysql_change_access_password_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_change_access_password_response_error.go b/model_mysql_change_access_password_response_error.go index fd67e29..24f9afb 100644 --- a/model_mysql_change_access_password_response_error.go +++ b/model_mysql_change_access_password_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_config.go b/model_mysql_config.go deleted file mode 100644 index 3f090a0..0000000 --- a/model_mysql_config.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -API Управляемых сервисов - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: v1.2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package begetOpenapiCloud - -import ( - "encoding/json" -) - -// MysqlConfig struct for MysqlConfig -type MysqlConfig struct { - Param *map[string]string `json:"param,omitempty"` - PresetName *string `json:"preset_name,omitempty"` -} - -// NewMysqlConfig instantiates a new MysqlConfig 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 NewMysqlConfig() *MysqlConfig { - this := MysqlConfig{} - return &this -} - -// NewMysqlConfigWithDefaults instantiates a new MysqlConfig 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 NewMysqlConfigWithDefaults() *MysqlConfig { - this := MysqlConfig{} - return &this -} - -// GetParam returns the Param field value if set, zero value otherwise. -func (o *MysqlConfig) GetParam() map[string]string { - if o == nil || isNil(o.Param) { - var ret map[string]string - return ret - } - return *o.Param -} - -// GetParamOk returns a tuple with the Param field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MysqlConfig) GetParamOk() (*map[string]string, bool) { - if o == nil || isNil(o.Param) { - return nil, false - } - return o.Param, true -} - -// HasParam returns a boolean if a field has been set. -func (o *MysqlConfig) HasParam() bool { - if o != nil && !isNil(o.Param) { - return true - } - - return false -} - -// SetParam gets a reference to the given map[string]string and assigns it to the Param field. -func (o *MysqlConfig) SetParam(v map[string]string) { - o.Param = &v -} - -// GetPresetName returns the PresetName field value if set, zero value otherwise. -func (o *MysqlConfig) GetPresetName() string { - if o == nil || isNil(o.PresetName) { - var ret string - return ret - } - return *o.PresetName -} - -// GetPresetNameOk returns a tuple with the PresetName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MysqlConfig) GetPresetNameOk() (*string, bool) { - if o == nil || isNil(o.PresetName) { - return nil, false - } - return o.PresetName, true -} - -// HasPresetName returns a boolean if a field has been set. -func (o *MysqlConfig) HasPresetName() bool { - if o != nil && !isNil(o.PresetName) { - return true - } - - return false -} - -// SetPresetName gets a reference to the given string and assigns it to the PresetName field. -func (o *MysqlConfig) SetPresetName(v string) { - o.PresetName = &v -} - -func (o MysqlConfig) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Param) { - toSerialize["param"] = o.Param - } - if !isNil(o.PresetName) { - toSerialize["preset_name"] = o.PresetName - } - return json.Marshal(toSerialize) -} - -type NullableMysqlConfig struct { - value *MysqlConfig - isSet bool -} - -func (v NullableMysqlConfig) Get() *MysqlConfig { - return v.value -} - -func (v *NullableMysqlConfig) Set(val *MysqlConfig) { - v.value = val - v.isSet = true -} - -func (v NullableMysqlConfig) IsSet() bool { - return v.isSet -} - -func (v *NullableMysqlConfig) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMysqlConfig(val *MysqlConfig) *NullableMysqlConfig { - return &NullableMysqlConfig{value: val, isSet: true} -} - -func (v NullableMysqlConfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMysqlConfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_mysql_config_info.go b/model_mysql_config_info.go new file mode 100644 index 0000000..94447e8 --- /dev/null +++ b/model_mysql_config_info.go @@ -0,0 +1,187 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// MysqlConfigInfo struct for MysqlConfigInfo +type MysqlConfigInfo struct { + ParamDefault *map[string]string `json:"param_default,omitempty"` + ParamConfig []StructuresParamConfig `json:"param_config,omitempty"` + Param *map[string]string `json:"param,omitempty"` +} + +// NewMysqlConfigInfo instantiates a new MysqlConfigInfo 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 NewMysqlConfigInfo() *MysqlConfigInfo { + this := MysqlConfigInfo{} + return &this +} + +// NewMysqlConfigInfoWithDefaults instantiates a new MysqlConfigInfo 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 NewMysqlConfigInfoWithDefaults() *MysqlConfigInfo { + this := MysqlConfigInfo{} + return &this +} + +// GetParamDefault returns the ParamDefault field value if set, zero value otherwise. +func (o *MysqlConfigInfo) GetParamDefault() map[string]string { + if o == nil || isNil(o.ParamDefault) { + var ret map[string]string + return ret + } + return *o.ParamDefault +} + +// GetParamDefaultOk returns a tuple with the ParamDefault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlConfigInfo) GetParamDefaultOk() (*map[string]string, bool) { + if o == nil || isNil(o.ParamDefault) { + return nil, false + } + return o.ParamDefault, true +} + +// HasParamDefault returns a boolean if a field has been set. +func (o *MysqlConfigInfo) HasParamDefault() bool { + if o != nil && !isNil(o.ParamDefault) { + return true + } + + return false +} + +// SetParamDefault gets a reference to the given map[string]string and assigns it to the ParamDefault field. +func (o *MysqlConfigInfo) SetParamDefault(v map[string]string) { + o.ParamDefault = &v +} + +// GetParamConfig returns the ParamConfig field value if set, zero value otherwise. +func (o *MysqlConfigInfo) GetParamConfig() []StructuresParamConfig { + if o == nil || isNil(o.ParamConfig) { + var ret []StructuresParamConfig + return ret + } + return o.ParamConfig +} + +// GetParamConfigOk returns a tuple with the ParamConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlConfigInfo) GetParamConfigOk() ([]StructuresParamConfig, bool) { + if o == nil || isNil(o.ParamConfig) { + return nil, false + } + return o.ParamConfig, true +} + +// HasParamConfig returns a boolean if a field has been set. +func (o *MysqlConfigInfo) HasParamConfig() bool { + if o != nil && !isNil(o.ParamConfig) { + return true + } + + return false +} + +// SetParamConfig gets a reference to the given []StructuresParamConfig and assigns it to the ParamConfig field. +func (o *MysqlConfigInfo) SetParamConfig(v []StructuresParamConfig) { + o.ParamConfig = v +} + +// GetParam returns the Param field value if set, zero value otherwise. +func (o *MysqlConfigInfo) GetParam() map[string]string { + if o == nil || isNil(o.Param) { + var ret map[string]string + return ret + } + return *o.Param +} + +// GetParamOk returns a tuple with the Param field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlConfigInfo) GetParamOk() (*map[string]string, bool) { + if o == nil || isNil(o.Param) { + return nil, false + } + return o.Param, true +} + +// HasParam returns a boolean if a field has been set. +func (o *MysqlConfigInfo) HasParam() bool { + if o != nil && !isNil(o.Param) { + return true + } + + return false +} + +// SetParam gets a reference to the given map[string]string and assigns it to the Param field. +func (o *MysqlConfigInfo) SetParam(v map[string]string) { + o.Param = &v +} + +func (o MysqlConfigInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ParamDefault) { + toSerialize["param_default"] = o.ParamDefault + } + if !isNil(o.ParamConfig) { + toSerialize["param_config"] = o.ParamConfig + } + if !isNil(o.Param) { + toSerialize["param"] = o.Param + } + return json.Marshal(toSerialize) +} + +type NullableMysqlConfigInfo struct { + value *MysqlConfigInfo + isSet bool +} + +func (v NullableMysqlConfigInfo) Get() *MysqlConfigInfo { + return v.value +} + +func (v *NullableMysqlConfigInfo) Set(val *MysqlConfigInfo) { + v.value = val + v.isSet = true +} + +func (v NullableMysqlConfigInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableMysqlConfigInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMysqlConfigInfo(val *MysqlConfigInfo) *NullableMysqlConfigInfo { + return &NullableMysqlConfigInfo{value: val, isSet: true} +} + +func (v NullableMysqlConfigInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMysqlConfigInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_mysql_create_access_request.go b/model_mysql_create_access_request.go index 5142d26..c493dab 100644 --- a/model_mysql_create_access_request.go +++ b/model_mysql_create_access_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_create_access_response.go b/model_mysql_create_access_response.go index 212cdae..1ec2513 100644 --- a/model_mysql_create_access_response.go +++ b/model_mysql_create_access_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_create_access_response_error.go b/model_mysql_create_access_response_error.go index 068cb52..8e6f411 100644 --- a/model_mysql_create_access_response_error.go +++ b/model_mysql_create_access_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_create_db_request.go b/model_mysql_create_db_request.go index 361a1ab..1acbeba 100644 --- a/model_mysql_create_db_request.go +++ b/model_mysql_create_db_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_create_db_response.go b/model_mysql_create_db_response.go index baffc51..b21fd7a 100644 --- a/model_mysql_create_db_response.go +++ b/model_mysql_create_db_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_create_db_response_error.go b/model_mysql_create_db_response_error.go index 925d48b..73a5f7b 100644 --- a/model_mysql_create_db_response_error.go +++ b/model_mysql_create_db_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_create_error.go b/model_mysql_create_error.go index 9adfdc2..2f62db6 100644 --- a/model_mysql_create_error.go +++ b/model_mysql_create_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_create_params.go b/model_mysql_create_params.go index 1fe0ec4..5148511 100644 --- a/model_mysql_create_params.go +++ b/model_mysql_create_params.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,6 @@ type MysqlCreateParams struct { DbName *string `json:"db_name,omitempty"` AccessPassword *string `json:"access_password,omitempty"` Param *map[string]string `json:"param,omitempty"` - PresetName *string `json:"preset_name,omitempty"` SavePmaPassword *bool `json:"save_pma_password,omitempty"` } @@ -136,38 +135,6 @@ func (o *MysqlCreateParams) SetParam(v map[string]string) { o.Param = &v } -// GetPresetName returns the PresetName field value if set, zero value otherwise. -func (o *MysqlCreateParams) GetPresetName() string { - if o == nil || isNil(o.PresetName) { - var ret string - return ret - } - return *o.PresetName -} - -// GetPresetNameOk returns a tuple with the PresetName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MysqlCreateParams) GetPresetNameOk() (*string, bool) { - if o == nil || isNil(o.PresetName) { - return nil, false - } - return o.PresetName, true -} - -// HasPresetName returns a boolean if a field has been set. -func (o *MysqlCreateParams) HasPresetName() bool { - if o != nil && !isNil(o.PresetName) { - return true - } - - return false -} - -// SetPresetName gets a reference to the given string and assigns it to the PresetName field. -func (o *MysqlCreateParams) SetPresetName(v string) { - o.PresetName = &v -} - // GetSavePmaPassword returns the SavePmaPassword field value if set, zero value otherwise. func (o *MysqlCreateParams) GetSavePmaPassword() bool { if o == nil || isNil(o.SavePmaPassword) { @@ -211,9 +178,6 @@ func (o MysqlCreateParams) MarshalJSON() ([]byte, error) { if !isNil(o.Param) { toSerialize["param"] = o.Param } - if !isNil(o.PresetName) { - toSerialize["preset_name"] = o.PresetName - } if !isNil(o.SavePmaPassword) { toSerialize["save_pma_password"] = o.SavePmaPassword } diff --git a/model_mysql_db.go b/model_mysql_db.go index ff58b65..9160243 100644 --- a/model_mysql_db.go +++ b/model_mysql_db.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_db_access.go b/model_mysql_db_access.go index 165ebcc..1ef1962 100644 --- a/model_mysql_db_access.go +++ b/model_mysql_db_access.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_get_config_response.go b/model_mysql_get_config_response.go index a003a19..32a6650 100644 --- a/model_mysql_get_config_response.go +++ b/model_mysql_get_config_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( // MysqlGetConfigResponse struct for MysqlGetConfigResponse type MysqlGetConfigResponse struct { - Config *MysqlConfig `json:"config,omitempty"` + Config *MysqlConfigInfo `json:"config,omitempty"` } // NewMysqlGetConfigResponse instantiates a new MysqlGetConfigResponse object @@ -37,9 +37,9 @@ func NewMysqlGetConfigResponseWithDefaults() *MysqlGetConfigResponse { } // GetConfig returns the Config field value if set, zero value otherwise. -func (o *MysqlGetConfigResponse) GetConfig() MysqlConfig { +func (o *MysqlGetConfigResponse) GetConfig() MysqlConfigInfo { if o == nil || isNil(o.Config) { - var ret MysqlConfig + var ret MysqlConfigInfo return ret } return *o.Config @@ -47,7 +47,7 @@ func (o *MysqlGetConfigResponse) GetConfig() MysqlConfig { // GetConfigOk returns a tuple with the Config field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MysqlGetConfigResponse) GetConfigOk() (*MysqlConfig, bool) { +func (o *MysqlGetConfigResponse) GetConfigOk() (*MysqlConfigInfo, bool) { if o == nil || isNil(o.Config) { return nil, false } @@ -63,8 +63,8 @@ func (o *MysqlGetConfigResponse) HasConfig() bool { return false } -// SetConfig gets a reference to the given MysqlConfig and assigns it to the Config field. -func (o *MysqlGetConfigResponse) SetConfig(v MysqlConfig) { +// SetConfig gets a reference to the given MysqlConfigInfo and assigns it to the Config field. +func (o *MysqlGetConfigResponse) SetConfig(v MysqlConfigInfo) { o.Config = &v } diff --git a/model_mysql_get_db_list_response.go b/model_mysql_get_db_list_response.go index 2abc4d4..cf598b0 100644 --- a/model_mysql_get_db_list_response.go +++ b/model_mysql_get_db_list_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_mysql5.go b/model_mysql_mysql5.go index ffa2081..79be68f 100644 --- a/model_mysql_mysql5.go +++ b/model_mysql_mysql5.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_mysql5_configuration.go b/model_mysql_mysql5_configuration.go index de19405..552459b 100644 --- a/model_mysql_mysql5_configuration.go +++ b/model_mysql_mysql5_configuration.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,6 +21,8 @@ type MysqlMysql5Configuration struct { Memory *int32 `json:"memory,omitempty"` Version *string `json:"version,omitempty"` DisplayVersion *string `json:"display_version,omitempty"` + ParamConfig []StructuresParamConfig `json:"param_config,omitempty"` + ParamDefault *map[string]string `json:"param_default,omitempty"` } // NewMysqlMysql5Configuration instantiates a new MysqlMysql5Configuration object @@ -200,6 +202,70 @@ func (o *MysqlMysql5Configuration) SetDisplayVersion(v string) { o.DisplayVersion = &v } +// GetParamConfig returns the ParamConfig field value if set, zero value otherwise. +func (o *MysqlMysql5Configuration) GetParamConfig() []StructuresParamConfig { + if o == nil || isNil(o.ParamConfig) { + var ret []StructuresParamConfig + return ret + } + return o.ParamConfig +} + +// GetParamConfigOk returns a tuple with the ParamConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlMysql5Configuration) GetParamConfigOk() ([]StructuresParamConfig, bool) { + if o == nil || isNil(o.ParamConfig) { + return nil, false + } + return o.ParamConfig, true +} + +// HasParamConfig returns a boolean if a field has been set. +func (o *MysqlMysql5Configuration) HasParamConfig() bool { + if o != nil && !isNil(o.ParamConfig) { + return true + } + + return false +} + +// SetParamConfig gets a reference to the given []StructuresParamConfig and assigns it to the ParamConfig field. +func (o *MysqlMysql5Configuration) SetParamConfig(v []StructuresParamConfig) { + o.ParamConfig = v +} + +// GetParamDefault returns the ParamDefault field value if set, zero value otherwise. +func (o *MysqlMysql5Configuration) GetParamDefault() map[string]string { + if o == nil || isNil(o.ParamDefault) { + var ret map[string]string + return ret + } + return *o.ParamDefault +} + +// GetParamDefaultOk returns a tuple with the ParamDefault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlMysql5Configuration) GetParamDefaultOk() (*map[string]string, bool) { + if o == nil || isNil(o.ParamDefault) { + return nil, false + } + return o.ParamDefault, true +} + +// HasParamDefault returns a boolean if a field has been set. +func (o *MysqlMysql5Configuration) HasParamDefault() bool { + if o != nil && !isNil(o.ParamDefault) { + return true + } + + return false +} + +// SetParamDefault gets a reference to the given map[string]string and assigns it to the ParamDefault field. +func (o *MysqlMysql5Configuration) SetParamDefault(v map[string]string) { + o.ParamDefault = &v +} + func (o MysqlMysql5Configuration) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if !isNil(o.CpuCount) { @@ -217,6 +283,12 @@ func (o MysqlMysql5Configuration) MarshalJSON() ([]byte, error) { if !isNil(o.DisplayVersion) { toSerialize["display_version"] = o.DisplayVersion } + if !isNil(o.ParamConfig) { + toSerialize["param_config"] = o.ParamConfig + } + if !isNil(o.ParamDefault) { + toSerialize["param_default"] = o.ParamDefault + } return json.Marshal(toSerialize) } diff --git a/model_mysql_mysql8.go b/model_mysql_mysql8.go index dce1b8e..22ae226 100644 --- a/model_mysql_mysql8.go +++ b/model_mysql_mysql8.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_mysql8_configuration.go b/model_mysql_mysql8_configuration.go index c247c38..f026a5b 100644 --- a/model_mysql_mysql8_configuration.go +++ b/model_mysql_mysql8_configuration.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,6 +21,8 @@ type MysqlMysql8Configuration struct { Memory *int32 `json:"memory,omitempty"` Version *string `json:"version,omitempty"` DisplayVersion *string `json:"display_version,omitempty"` + ParamConfig []StructuresParamConfig `json:"param_config,omitempty"` + ParamDefault *map[string]string `json:"param_default,omitempty"` } // NewMysqlMysql8Configuration instantiates a new MysqlMysql8Configuration object @@ -200,6 +202,70 @@ func (o *MysqlMysql8Configuration) SetDisplayVersion(v string) { o.DisplayVersion = &v } +// GetParamConfig returns the ParamConfig field value if set, zero value otherwise. +func (o *MysqlMysql8Configuration) GetParamConfig() []StructuresParamConfig { + if o == nil || isNil(o.ParamConfig) { + var ret []StructuresParamConfig + return ret + } + return o.ParamConfig +} + +// GetParamConfigOk returns a tuple with the ParamConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlMysql8Configuration) GetParamConfigOk() ([]StructuresParamConfig, bool) { + if o == nil || isNil(o.ParamConfig) { + return nil, false + } + return o.ParamConfig, true +} + +// HasParamConfig returns a boolean if a field has been set. +func (o *MysqlMysql8Configuration) HasParamConfig() bool { + if o != nil && !isNil(o.ParamConfig) { + return true + } + + return false +} + +// SetParamConfig gets a reference to the given []StructuresParamConfig and assigns it to the ParamConfig field. +func (o *MysqlMysql8Configuration) SetParamConfig(v []StructuresParamConfig) { + o.ParamConfig = v +} + +// GetParamDefault returns the ParamDefault field value if set, zero value otherwise. +func (o *MysqlMysql8Configuration) GetParamDefault() map[string]string { + if o == nil || isNil(o.ParamDefault) { + var ret map[string]string + return ret + } + return *o.ParamDefault +} + +// GetParamDefaultOk returns a tuple with the ParamDefault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MysqlMysql8Configuration) GetParamDefaultOk() (*map[string]string, bool) { + if o == nil || isNil(o.ParamDefault) { + return nil, false + } + return o.ParamDefault, true +} + +// HasParamDefault returns a boolean if a field has been set. +func (o *MysqlMysql8Configuration) HasParamDefault() bool { + if o != nil && !isNil(o.ParamDefault) { + return true + } + + return false +} + +// SetParamDefault gets a reference to the given map[string]string and assigns it to the ParamDefault field. +func (o *MysqlMysql8Configuration) SetParamDefault(v map[string]string) { + o.ParamDefault = &v +} + func (o MysqlMysql8Configuration) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if !isNil(o.CpuCount) { @@ -217,6 +283,12 @@ func (o MysqlMysql8Configuration) MarshalJSON() ([]byte, error) { if !isNil(o.DisplayVersion) { toSerialize["display_version"] = o.DisplayVersion } + if !isNil(o.ParamConfig) { + toSerialize["param_config"] = o.ParamConfig + } + if !isNil(o.ParamDefault) { + toSerialize["param_default"] = o.ParamDefault + } return json.Marshal(toSerialize) } diff --git a/model_mysql_remove_access_response.go b/model_mysql_remove_access_response.go index a4714fe..895c9a4 100644 --- a/model_mysql_remove_access_response.go +++ b/model_mysql_remove_access_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_remove_access_response_error.go b/model_mysql_remove_access_response_error.go index 2c17713..9cdc04d 100644 --- a/model_mysql_remove_access_response_error.go +++ b/model_mysql_remove_access_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_remove_db_response.go b/model_mysql_remove_db_response.go index 2b06036..75d9938 100644 --- a/model_mysql_remove_db_response.go +++ b/model_mysql_remove_db_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_remove_db_response_error.go b/model_mysql_remove_db_response_error.go index ec6d423..2e86097 100644 --- a/model_mysql_remove_db_response_error.go +++ b/model_mysql_remove_db_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_set_config_request.go b/model_mysql_set_config_request.go index 3f062b1..feb9239 100644 --- a/model_mysql_set_config_request.go +++ b/model_mysql_set_config_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,7 +18,6 @@ import ( type MysqlSetConfigRequest struct { ServiceId *string `json:"service_id,omitempty"` Param *map[string]string `json:"param,omitempty"` - PresetName *string `json:"preset_name,omitempty"` } // NewMysqlSetConfigRequest instantiates a new MysqlSetConfigRequest object @@ -102,38 +101,6 @@ func (o *MysqlSetConfigRequest) SetParam(v map[string]string) { o.Param = &v } -// GetPresetName returns the PresetName field value if set, zero value otherwise. -func (o *MysqlSetConfigRequest) GetPresetName() string { - if o == nil || isNil(o.PresetName) { - var ret string - return ret - } - return *o.PresetName -} - -// GetPresetNameOk returns a tuple with the PresetName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MysqlSetConfigRequest) GetPresetNameOk() (*string, bool) { - if o == nil || isNil(o.PresetName) { - return nil, false - } - return o.PresetName, true -} - -// HasPresetName returns a boolean if a field has been set. -func (o *MysqlSetConfigRequest) HasPresetName() bool { - if o != nil && !isNil(o.PresetName) { - return true - } - - return false -} - -// SetPresetName gets a reference to the given string and assigns it to the PresetName field. -func (o *MysqlSetConfigRequest) SetPresetName(v string) { - o.PresetName = &v -} - func (o MysqlSetConfigRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if !isNil(o.ServiceId) { @@ -142,9 +109,6 @@ func (o MysqlSetConfigRequest) MarshalJSON() ([]byte, error) { if !isNil(o.Param) { toSerialize["param"] = o.Param } - if !isNil(o.PresetName) { - toSerialize["preset_name"] = o.PresetName - } return json.Marshal(toSerialize) } diff --git a/model_mysql_set_config_response.go b/model_mysql_set_config_response.go index 93579ed..873a5ad 100644 --- a/model_mysql_set_config_response.go +++ b/model_mysql_set_config_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,7 +16,7 @@ import ( // MysqlSetConfigResponse struct for MysqlSetConfigResponse type MysqlSetConfigResponse struct { - Config *MysqlConfig `json:"config,omitempty"` + Config *MysqlConfigInfo `json:"config,omitempty"` Error *MysqlSetConfigResponseError `json:"error,omitempty"` } @@ -38,9 +38,9 @@ func NewMysqlSetConfigResponseWithDefaults() *MysqlSetConfigResponse { } // GetConfig returns the Config field value if set, zero value otherwise. -func (o *MysqlSetConfigResponse) GetConfig() MysqlConfig { +func (o *MysqlSetConfigResponse) GetConfig() MysqlConfigInfo { if o == nil || isNil(o.Config) { - var ret MysqlConfig + var ret MysqlConfigInfo return ret } return *o.Config @@ -48,7 +48,7 @@ func (o *MysqlSetConfigResponse) GetConfig() MysqlConfig { // GetConfigOk returns a tuple with the Config field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MysqlSetConfigResponse) GetConfigOk() (*MysqlConfig, bool) { +func (o *MysqlSetConfigResponse) GetConfigOk() (*MysqlConfigInfo, bool) { if o == nil || isNil(o.Config) { return nil, false } @@ -64,8 +64,8 @@ func (o *MysqlSetConfigResponse) HasConfig() bool { return false } -// SetConfig gets a reference to the given MysqlConfig and assigns it to the Config field. -func (o *MysqlSetConfigResponse) SetConfig(v MysqlConfig) { +// SetConfig gets a reference to the given MysqlConfigInfo and assigns it to the Config field. +func (o *MysqlSetConfigResponse) SetConfig(v MysqlConfigInfo) { o.Config = &v } diff --git a/model_mysql_set_config_response_error.go b/model_mysql_set_config_response_error.go index b0d8691..ef2dff9 100644 --- a/model_mysql_set_config_response_error.go +++ b/model_mysql_set_config_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_statistic_get_cpu_details_response.go b/model_mysql_statistic_get_cpu_details_response.go index 574a746..7e689a8 100644 --- a/model_mysql_statistic_get_cpu_details_response.go +++ b/model_mysql_statistic_get_cpu_details_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_statistic_get_cpu_response.go b/model_mysql_statistic_get_cpu_response.go index 0b58070..9530bf8 100644 --- a/model_mysql_statistic_get_cpu_response.go +++ b/model_mysql_statistic_get_cpu_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_statistic_get_disk_response.go b/model_mysql_statistic_get_disk_response.go index 5f99fb0..356612b 100644 --- a/model_mysql_statistic_get_disk_response.go +++ b/model_mysql_statistic_get_disk_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_statistic_get_disk_usage_response.go b/model_mysql_statistic_get_disk_usage_response.go index 4ab243a..831042d 100644 --- a/model_mysql_statistic_get_disk_usage_response.go +++ b/model_mysql_statistic_get_disk_usage_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_statistic_get_load_average_response.go b/model_mysql_statistic_get_load_average_response.go index c104352..be9f265 100644 --- a/model_mysql_statistic_get_load_average_response.go +++ b/model_mysql_statistic_get_load_average_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_statistic_get_memory_response.go b/model_mysql_statistic_get_memory_response.go index de8b110..764458d 100644 --- a/model_mysql_statistic_get_memory_response.go +++ b/model_mysql_statistic_get_memory_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_statistic_get_network_response.go b/model_mysql_statistic_get_network_response.go index 9f9c8f9..6c2c925 100644 --- a/model_mysql_statistic_get_network_response.go +++ b/model_mysql_statistic_get_network_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_update_db_request.go b/model_mysql_update_db_request.go index 70b0a2e..a738762 100644 --- a/model_mysql_update_db_request.go +++ b/model_mysql_update_db_request.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_update_db_response.go b/model_mysql_update_db_response.go index 2f780c2..e5a0c94 100644 --- a/model_mysql_update_db_response.go +++ b/model_mysql_update_db_response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_mysql_update_db_response_error.go b/model_mysql_update_db_response_error.go index f392225..0dd2d1f 100644 --- a/model_mysql_update_db_response_error.go +++ b/model_mysql_update_db_response_error.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_postgresql_pg_config_info.go b/model_postgresql_pg_config_info.go new file mode 100644 index 0000000..cf99122 --- /dev/null +++ b/model_postgresql_pg_config_info.go @@ -0,0 +1,187 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgConfigInfo struct for PostgresqlPgConfigInfo +type PostgresqlPgConfigInfo struct { + ParamDefault *map[string]string `json:"param_default,omitempty"` + ParamConfig []StructuresParamConfig `json:"param_config,omitempty"` + Param *map[string]string `json:"param,omitempty"` +} + +// NewPostgresqlPgConfigInfo instantiates a new PostgresqlPgConfigInfo 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 NewPostgresqlPgConfigInfo() *PostgresqlPgConfigInfo { + this := PostgresqlPgConfigInfo{} + return &this +} + +// NewPostgresqlPgConfigInfoWithDefaults instantiates a new PostgresqlPgConfigInfo 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 NewPostgresqlPgConfigInfoWithDefaults() *PostgresqlPgConfigInfo { + this := PostgresqlPgConfigInfo{} + return &this +} + +// GetParamDefault returns the ParamDefault field value if set, zero value otherwise. +func (o *PostgresqlPgConfigInfo) GetParamDefault() map[string]string { + if o == nil || isNil(o.ParamDefault) { + var ret map[string]string + return ret + } + return *o.ParamDefault +} + +// GetParamDefaultOk returns a tuple with the ParamDefault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgConfigInfo) GetParamDefaultOk() (*map[string]string, bool) { + if o == nil || isNil(o.ParamDefault) { + return nil, false + } + return o.ParamDefault, true +} + +// HasParamDefault returns a boolean if a field has been set. +func (o *PostgresqlPgConfigInfo) HasParamDefault() bool { + if o != nil && !isNil(o.ParamDefault) { + return true + } + + return false +} + +// SetParamDefault gets a reference to the given map[string]string and assigns it to the ParamDefault field. +func (o *PostgresqlPgConfigInfo) SetParamDefault(v map[string]string) { + o.ParamDefault = &v +} + +// GetParamConfig returns the ParamConfig field value if set, zero value otherwise. +func (o *PostgresqlPgConfigInfo) GetParamConfig() []StructuresParamConfig { + if o == nil || isNil(o.ParamConfig) { + var ret []StructuresParamConfig + return ret + } + return o.ParamConfig +} + +// GetParamConfigOk returns a tuple with the ParamConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgConfigInfo) GetParamConfigOk() ([]StructuresParamConfig, bool) { + if o == nil || isNil(o.ParamConfig) { + return nil, false + } + return o.ParamConfig, true +} + +// HasParamConfig returns a boolean if a field has been set. +func (o *PostgresqlPgConfigInfo) HasParamConfig() bool { + if o != nil && !isNil(o.ParamConfig) { + return true + } + + return false +} + +// SetParamConfig gets a reference to the given []StructuresParamConfig and assigns it to the ParamConfig field. +func (o *PostgresqlPgConfigInfo) SetParamConfig(v []StructuresParamConfig) { + o.ParamConfig = v +} + +// GetParam returns the Param field value if set, zero value otherwise. +func (o *PostgresqlPgConfigInfo) GetParam() map[string]string { + if o == nil || isNil(o.Param) { + var ret map[string]string + return ret + } + return *o.Param +} + +// GetParamOk returns a tuple with the Param field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgConfigInfo) GetParamOk() (*map[string]string, bool) { + if o == nil || isNil(o.Param) { + return nil, false + } + return o.Param, true +} + +// HasParam returns a boolean if a field has been set. +func (o *PostgresqlPgConfigInfo) HasParam() bool { + if o != nil && !isNil(o.Param) { + return true + } + + return false +} + +// SetParam gets a reference to the given map[string]string and assigns it to the Param field. +func (o *PostgresqlPgConfigInfo) SetParam(v map[string]string) { + o.Param = &v +} + +func (o PostgresqlPgConfigInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ParamDefault) { + toSerialize["param_default"] = o.ParamDefault + } + if !isNil(o.ParamConfig) { + toSerialize["param_config"] = o.ParamConfig + } + if !isNil(o.Param) { + toSerialize["param"] = o.Param + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgConfigInfo struct { + value *PostgresqlPgConfigInfo + isSet bool +} + +func (v NullablePostgresqlPgConfigInfo) Get() *PostgresqlPgConfigInfo { + return v.value +} + +func (v *NullablePostgresqlPgConfigInfo) Set(val *PostgresqlPgConfigInfo) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgConfigInfo) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgConfigInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgConfigInfo(val *PostgresqlPgConfigInfo) *NullablePostgresqlPgConfigInfo { + return &NullablePostgresqlPgConfigInfo{value: val, isSet: true} +} + +func (v NullablePostgresqlPgConfigInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgConfigInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_db_request.go b/model_postgresql_pg_create_db_request.go new file mode 100644 index 0000000..7fb44c0 --- /dev/null +++ b/model_postgresql_pg_create_db_request.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateDbRequest struct for PostgresqlPgCreateDbRequest +type PostgresqlPgCreateDbRequest struct { + ServiceId *string `json:"service_id,omitempty"` + DbName *string `json:"db_name,omitempty"` + OwnerName *string `json:"owner_name,omitempty"` + Description *string `json:"description,omitempty"` +} + +// NewPostgresqlPgCreateDbRequest instantiates a new PostgresqlPgCreateDbRequest 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 NewPostgresqlPgCreateDbRequest() *PostgresqlPgCreateDbRequest { + this := PostgresqlPgCreateDbRequest{} + return &this +} + +// NewPostgresqlPgCreateDbRequestWithDefaults instantiates a new PostgresqlPgCreateDbRequest 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 NewPostgresqlPgCreateDbRequestWithDefaults() *PostgresqlPgCreateDbRequest { + this := PostgresqlPgCreateDbRequest{} + return &this +} + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbRequest) GetServiceId() string { + if o == nil || isNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbRequest) GetServiceIdOk() (*string, bool) { + if o == nil || isNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbRequest) HasServiceId() bool { + if o != nil && !isNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *PostgresqlPgCreateDbRequest) SetServiceId(v string) { + o.ServiceId = &v +} + +// GetDbName returns the DbName field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbRequest) GetDbName() string { + if o == nil || isNil(o.DbName) { + var ret string + return ret + } + return *o.DbName +} + +// GetDbNameOk returns a tuple with the DbName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbRequest) GetDbNameOk() (*string, bool) { + if o == nil || isNil(o.DbName) { + return nil, false + } + return o.DbName, true +} + +// HasDbName returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbRequest) HasDbName() bool { + if o != nil && !isNil(o.DbName) { + return true + } + + return false +} + +// SetDbName gets a reference to the given string and assigns it to the DbName field. +func (o *PostgresqlPgCreateDbRequest) SetDbName(v string) { + o.DbName = &v +} + +// GetOwnerName returns the OwnerName field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbRequest) GetOwnerName() string { + if o == nil || isNil(o.OwnerName) { + var ret string + return ret + } + return *o.OwnerName +} + +// GetOwnerNameOk returns a tuple with the OwnerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbRequest) GetOwnerNameOk() (*string, bool) { + if o == nil || isNil(o.OwnerName) { + return nil, false + } + return o.OwnerName, true +} + +// HasOwnerName returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbRequest) HasOwnerName() bool { + if o != nil && !isNil(o.OwnerName) { + return true + } + + return false +} + +// SetOwnerName gets a reference to the given string and assigns it to the OwnerName field. +func (o *PostgresqlPgCreateDbRequest) SetOwnerName(v string) { + o.OwnerName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PostgresqlPgCreateDbRequest) SetDescription(v string) { + o.Description = &v +} + +func (o PostgresqlPgCreateDbRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } + if !isNil(o.DbName) { + toSerialize["db_name"] = o.DbName + } + if !isNil(o.OwnerName) { + toSerialize["owner_name"] = o.OwnerName + } + if !isNil(o.Description) { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateDbRequest struct { + value *PostgresqlPgCreateDbRequest + isSet bool +} + +func (v NullablePostgresqlPgCreateDbRequest) Get() *PostgresqlPgCreateDbRequest { + return v.value +} + +func (v *NullablePostgresqlPgCreateDbRequest) Set(val *PostgresqlPgCreateDbRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateDbRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateDbRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateDbRequest(val *PostgresqlPgCreateDbRequest) *NullablePostgresqlPgCreateDbRequest { + return &NullablePostgresqlPgCreateDbRequest{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateDbRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateDbRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_db_response.go b/model_postgresql_pg_create_db_response.go new file mode 100644 index 0000000..c967257 --- /dev/null +++ b/model_postgresql_pg_create_db_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateDbResponse struct for PostgresqlPgCreateDbResponse +type PostgresqlPgCreateDbResponse struct { + Db *PostgresqlPgDb `json:"db,omitempty"` + Error *PostgresqlPgCreateDbResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgCreateDbResponse instantiates a new PostgresqlPgCreateDbResponse 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 NewPostgresqlPgCreateDbResponse() *PostgresqlPgCreateDbResponse { + this := PostgresqlPgCreateDbResponse{} + return &this +} + +// NewPostgresqlPgCreateDbResponseWithDefaults instantiates a new PostgresqlPgCreateDbResponse 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 NewPostgresqlPgCreateDbResponseWithDefaults() *PostgresqlPgCreateDbResponse { + this := PostgresqlPgCreateDbResponse{} + return &this +} + +// GetDb returns the Db field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbResponse) GetDb() PostgresqlPgDb { + if o == nil || isNil(o.Db) { + var ret PostgresqlPgDb + return ret + } + return *o.Db +} + +// GetDbOk returns a tuple with the Db field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbResponse) GetDbOk() (*PostgresqlPgDb, bool) { + if o == nil || isNil(o.Db) { + return nil, false + } + return o.Db, true +} + +// HasDb returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbResponse) HasDb() bool { + if o != nil && !isNil(o.Db) { + return true + } + + return false +} + +// SetDb gets a reference to the given PostgresqlPgDb and assigns it to the Db field. +func (o *PostgresqlPgCreateDbResponse) SetDb(v PostgresqlPgDb) { + o.Db = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbResponse) GetError() PostgresqlPgCreateDbResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgCreateDbResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbResponse) GetErrorOk() (*PostgresqlPgCreateDbResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgCreateDbResponseError and assigns it to the Error field. +func (o *PostgresqlPgCreateDbResponse) SetError(v PostgresqlPgCreateDbResponseError) { + o.Error = &v +} + +func (o PostgresqlPgCreateDbResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Db) { + toSerialize["db"] = o.Db + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateDbResponse struct { + value *PostgresqlPgCreateDbResponse + isSet bool +} + +func (v NullablePostgresqlPgCreateDbResponse) Get() *PostgresqlPgCreateDbResponse { + return v.value +} + +func (v *NullablePostgresqlPgCreateDbResponse) Set(val *PostgresqlPgCreateDbResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateDbResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateDbResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateDbResponse(val *PostgresqlPgCreateDbResponse) *NullablePostgresqlPgCreateDbResponse { + return &NullablePostgresqlPgCreateDbResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateDbResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateDbResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_db_response_error.go b/model_postgresql_pg_create_db_response_error.go new file mode 100644 index 0000000..f8a3cbd --- /dev/null +++ b/model_postgresql_pg_create_db_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateDbResponseError struct for PostgresqlPgCreateDbResponseError +type PostgresqlPgCreateDbResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgCreateDbResponseError instantiates a new PostgresqlPgCreateDbResponseError 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 NewPostgresqlPgCreateDbResponseError() *PostgresqlPgCreateDbResponseError { + this := PostgresqlPgCreateDbResponseError{} + return &this +} + +// NewPostgresqlPgCreateDbResponseErrorWithDefaults instantiates a new PostgresqlPgCreateDbResponseError 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 NewPostgresqlPgCreateDbResponseErrorWithDefaults() *PostgresqlPgCreateDbResponseError { + this := PostgresqlPgCreateDbResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgCreateDbResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgCreateDbResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateDbResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgCreateDbResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgCreateDbResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgCreateDbResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateDbResponseError struct { + value *PostgresqlPgCreateDbResponseError + isSet bool +} + +func (v NullablePostgresqlPgCreateDbResponseError) Get() *PostgresqlPgCreateDbResponseError { + return v.value +} + +func (v *NullablePostgresqlPgCreateDbResponseError) Set(val *PostgresqlPgCreateDbResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateDbResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateDbResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateDbResponseError(val *PostgresqlPgCreateDbResponseError) *NullablePostgresqlPgCreateDbResponseError { + return &NullablePostgresqlPgCreateDbResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateDbResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateDbResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_error.go b/model_postgresql_pg_create_error.go new file mode 100644 index 0000000..cb45bca --- /dev/null +++ b/model_postgresql_pg_create_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateError struct for PostgresqlPgCreateError +type PostgresqlPgCreateError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgCreateError instantiates a new PostgresqlPgCreateError 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 NewPostgresqlPgCreateError() *PostgresqlPgCreateError { + this := PostgresqlPgCreateError{} + return &this +} + +// NewPostgresqlPgCreateErrorWithDefaults instantiates a new PostgresqlPgCreateError 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 NewPostgresqlPgCreateErrorWithDefaults() *PostgresqlPgCreateError { + this := PostgresqlPgCreateError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgCreateError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgCreateError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgCreateError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgCreateError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgCreateError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgCreateError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgCreateError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateError struct { + value *PostgresqlPgCreateError + isSet bool +} + +func (v NullablePostgresqlPgCreateError) Get() *PostgresqlPgCreateError { + return v.value +} + +func (v *NullablePostgresqlPgCreateError) Set(val *PostgresqlPgCreateError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateError(val *PostgresqlPgCreateError) *NullablePostgresqlPgCreateError { + return &NullablePostgresqlPgCreateError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_params.go b/model_postgresql_pg_create_params.go new file mode 100644 index 0000000..295a720 --- /dev/null +++ b/model_postgresql_pg_create_params.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateParams struct for PostgresqlPgCreateParams +type PostgresqlPgCreateParams struct { + DbName *string `json:"db_name,omitempty"` + RoleName *string `json:"role_name,omitempty"` + Password *string `json:"password,omitempty"` + Param *map[string]string `json:"param,omitempty"` +} + +// NewPostgresqlPgCreateParams instantiates a new PostgresqlPgCreateParams 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 NewPostgresqlPgCreateParams() *PostgresqlPgCreateParams { + this := PostgresqlPgCreateParams{} + return &this +} + +// NewPostgresqlPgCreateParamsWithDefaults instantiates a new PostgresqlPgCreateParams 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 NewPostgresqlPgCreateParamsWithDefaults() *PostgresqlPgCreateParams { + this := PostgresqlPgCreateParams{} + return &this +} + +// GetDbName returns the DbName field value if set, zero value otherwise. +func (o *PostgresqlPgCreateParams) GetDbName() string { + if o == nil || isNil(o.DbName) { + var ret string + return ret + } + return *o.DbName +} + +// GetDbNameOk returns a tuple with the DbName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateParams) GetDbNameOk() (*string, bool) { + if o == nil || isNil(o.DbName) { + return nil, false + } + return o.DbName, true +} + +// HasDbName returns a boolean if a field has been set. +func (o *PostgresqlPgCreateParams) HasDbName() bool { + if o != nil && !isNil(o.DbName) { + return true + } + + return false +} + +// SetDbName gets a reference to the given string and assigns it to the DbName field. +func (o *PostgresqlPgCreateParams) SetDbName(v string) { + o.DbName = &v +} + +// GetRoleName returns the RoleName field value if set, zero value otherwise. +func (o *PostgresqlPgCreateParams) GetRoleName() string { + if o == nil || isNil(o.RoleName) { + var ret string + return ret + } + return *o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateParams) GetRoleNameOk() (*string, bool) { + if o == nil || isNil(o.RoleName) { + return nil, false + } + return o.RoleName, true +} + +// HasRoleName returns a boolean if a field has been set. +func (o *PostgresqlPgCreateParams) HasRoleName() bool { + if o != nil && !isNil(o.RoleName) { + return true + } + + return false +} + +// SetRoleName gets a reference to the given string and assigns it to the RoleName field. +func (o *PostgresqlPgCreateParams) SetRoleName(v string) { + o.RoleName = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *PostgresqlPgCreateParams) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateParams) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *PostgresqlPgCreateParams) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *PostgresqlPgCreateParams) SetPassword(v string) { + o.Password = &v +} + +// GetParam returns the Param field value if set, zero value otherwise. +func (o *PostgresqlPgCreateParams) GetParam() map[string]string { + if o == nil || isNil(o.Param) { + var ret map[string]string + return ret + } + return *o.Param +} + +// GetParamOk returns a tuple with the Param field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateParams) GetParamOk() (*map[string]string, bool) { + if o == nil || isNil(o.Param) { + return nil, false + } + return o.Param, true +} + +// HasParam returns a boolean if a field has been set. +func (o *PostgresqlPgCreateParams) HasParam() bool { + if o != nil && !isNil(o.Param) { + return true + } + + return false +} + +// SetParam gets a reference to the given map[string]string and assigns it to the Param field. +func (o *PostgresqlPgCreateParams) SetParam(v map[string]string) { + o.Param = &v +} + +func (o PostgresqlPgCreateParams) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DbName) { + toSerialize["db_name"] = o.DbName + } + if !isNil(o.RoleName) { + toSerialize["role_name"] = o.RoleName + } + if !isNil(o.Password) { + toSerialize["password"] = o.Password + } + if !isNil(o.Param) { + toSerialize["param"] = o.Param + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateParams struct { + value *PostgresqlPgCreateParams + isSet bool +} + +func (v NullablePostgresqlPgCreateParams) Get() *PostgresqlPgCreateParams { + return v.value +} + +func (v *NullablePostgresqlPgCreateParams) Set(val *PostgresqlPgCreateParams) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateParams) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateParams(val *PostgresqlPgCreateParams) *NullablePostgresqlPgCreateParams { + return &NullablePostgresqlPgCreateParams{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_role_request.go b/model_postgresql_pg_create_role_request.go new file mode 100644 index 0000000..839bd57 --- /dev/null +++ b/model_postgresql_pg_create_role_request.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateRoleRequest struct for PostgresqlPgCreateRoleRequest +type PostgresqlPgCreateRoleRequest struct { + ServiceId *string `json:"service_id,omitempty"` + RoleName *string `json:"role_name,omitempty"` + Password *string `json:"password,omitempty"` + ParentRole []string `json:"parent_role,omitempty"` +} + +// NewPostgresqlPgCreateRoleRequest instantiates a new PostgresqlPgCreateRoleRequest 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 NewPostgresqlPgCreateRoleRequest() *PostgresqlPgCreateRoleRequest { + this := PostgresqlPgCreateRoleRequest{} + return &this +} + +// NewPostgresqlPgCreateRoleRequestWithDefaults instantiates a new PostgresqlPgCreateRoleRequest 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 NewPostgresqlPgCreateRoleRequestWithDefaults() *PostgresqlPgCreateRoleRequest { + this := PostgresqlPgCreateRoleRequest{} + return &this +} + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleRequest) GetServiceId() string { + if o == nil || isNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleRequest) GetServiceIdOk() (*string, bool) { + if o == nil || isNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleRequest) HasServiceId() bool { + if o != nil && !isNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *PostgresqlPgCreateRoleRequest) SetServiceId(v string) { + o.ServiceId = &v +} + +// GetRoleName returns the RoleName field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleRequest) GetRoleName() string { + if o == nil || isNil(o.RoleName) { + var ret string + return ret + } + return *o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleRequest) GetRoleNameOk() (*string, bool) { + if o == nil || isNil(o.RoleName) { + return nil, false + } + return o.RoleName, true +} + +// HasRoleName returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleRequest) HasRoleName() bool { + if o != nil && !isNil(o.RoleName) { + return true + } + + return false +} + +// SetRoleName gets a reference to the given string and assigns it to the RoleName field. +func (o *PostgresqlPgCreateRoleRequest) SetRoleName(v string) { + o.RoleName = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleRequest) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleRequest) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *PostgresqlPgCreateRoleRequest) SetPassword(v string) { + o.Password = &v +} + +// GetParentRole returns the ParentRole field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleRequest) GetParentRole() []string { + if o == nil || isNil(o.ParentRole) { + var ret []string + return ret + } + return o.ParentRole +} + +// GetParentRoleOk returns a tuple with the ParentRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleRequest) GetParentRoleOk() ([]string, bool) { + if o == nil || isNil(o.ParentRole) { + return nil, false + } + return o.ParentRole, true +} + +// HasParentRole returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleRequest) HasParentRole() bool { + if o != nil && !isNil(o.ParentRole) { + return true + } + + return false +} + +// SetParentRole gets a reference to the given []string and assigns it to the ParentRole field. +func (o *PostgresqlPgCreateRoleRequest) SetParentRole(v []string) { + o.ParentRole = v +} + +func (o PostgresqlPgCreateRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } + if !isNil(o.RoleName) { + toSerialize["role_name"] = o.RoleName + } + if !isNil(o.Password) { + toSerialize["password"] = o.Password + } + if !isNil(o.ParentRole) { + toSerialize["parent_role"] = o.ParentRole + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateRoleRequest struct { + value *PostgresqlPgCreateRoleRequest + isSet bool +} + +func (v NullablePostgresqlPgCreateRoleRequest) Get() *PostgresqlPgCreateRoleRequest { + return v.value +} + +func (v *NullablePostgresqlPgCreateRoleRequest) Set(val *PostgresqlPgCreateRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateRoleRequest(val *PostgresqlPgCreateRoleRequest) *NullablePostgresqlPgCreateRoleRequest { + return &NullablePostgresqlPgCreateRoleRequest{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_role_response.go b/model_postgresql_pg_create_role_response.go new file mode 100644 index 0000000..2f44037 --- /dev/null +++ b/model_postgresql_pg_create_role_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateRoleResponse struct for PostgresqlPgCreateRoleResponse +type PostgresqlPgCreateRoleResponse struct { + Role *PostgresqlRole `json:"role,omitempty"` + Error *PostgresqlPgCreateRoleResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgCreateRoleResponse instantiates a new PostgresqlPgCreateRoleResponse 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 NewPostgresqlPgCreateRoleResponse() *PostgresqlPgCreateRoleResponse { + this := PostgresqlPgCreateRoleResponse{} + return &this +} + +// NewPostgresqlPgCreateRoleResponseWithDefaults instantiates a new PostgresqlPgCreateRoleResponse 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 NewPostgresqlPgCreateRoleResponseWithDefaults() *PostgresqlPgCreateRoleResponse { + this := PostgresqlPgCreateRoleResponse{} + return &this +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleResponse) GetRole() PostgresqlRole { + if o == nil || isNil(o.Role) { + var ret PostgresqlRole + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleResponse) GetRoleOk() (*PostgresqlRole, bool) { + if o == nil || isNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleResponse) HasRole() bool { + if o != nil && !isNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given PostgresqlRole and assigns it to the Role field. +func (o *PostgresqlPgCreateRoleResponse) SetRole(v PostgresqlRole) { + o.Role = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleResponse) GetError() PostgresqlPgCreateRoleResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgCreateRoleResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleResponse) GetErrorOk() (*PostgresqlPgCreateRoleResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgCreateRoleResponseError and assigns it to the Error field. +func (o *PostgresqlPgCreateRoleResponse) SetError(v PostgresqlPgCreateRoleResponseError) { + o.Error = &v +} + +func (o PostgresqlPgCreateRoleResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Role) { + toSerialize["role"] = o.Role + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateRoleResponse struct { + value *PostgresqlPgCreateRoleResponse + isSet bool +} + +func (v NullablePostgresqlPgCreateRoleResponse) Get() *PostgresqlPgCreateRoleResponse { + return v.value +} + +func (v *NullablePostgresqlPgCreateRoleResponse) Set(val *PostgresqlPgCreateRoleResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateRoleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateRoleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateRoleResponse(val *PostgresqlPgCreateRoleResponse) *NullablePostgresqlPgCreateRoleResponse { + return &NullablePostgresqlPgCreateRoleResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateRoleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateRoleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_create_role_response_error.go b/model_postgresql_pg_create_role_response_error.go new file mode 100644 index 0000000..ed63184 --- /dev/null +++ b/model_postgresql_pg_create_role_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgCreateRoleResponseError struct for PostgresqlPgCreateRoleResponseError +type PostgresqlPgCreateRoleResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgCreateRoleResponseError instantiates a new PostgresqlPgCreateRoleResponseError 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 NewPostgresqlPgCreateRoleResponseError() *PostgresqlPgCreateRoleResponseError { + this := PostgresqlPgCreateRoleResponseError{} + return &this +} + +// NewPostgresqlPgCreateRoleResponseErrorWithDefaults instantiates a new PostgresqlPgCreateRoleResponseError 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 NewPostgresqlPgCreateRoleResponseErrorWithDefaults() *PostgresqlPgCreateRoleResponseError { + this := PostgresqlPgCreateRoleResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgCreateRoleResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgCreateRoleResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgCreateRoleResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgCreateRoleResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgCreateRoleResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgCreateRoleResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgCreateRoleResponseError struct { + value *PostgresqlPgCreateRoleResponseError + isSet bool +} + +func (v NullablePostgresqlPgCreateRoleResponseError) Get() *PostgresqlPgCreateRoleResponseError { + return v.value +} + +func (v *NullablePostgresqlPgCreateRoleResponseError) Set(val *PostgresqlPgCreateRoleResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgCreateRoleResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgCreateRoleResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgCreateRoleResponseError(val *PostgresqlPgCreateRoleResponseError) *NullablePostgresqlPgCreateRoleResponseError { + return &NullablePostgresqlPgCreateRoleResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgCreateRoleResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgCreateRoleResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_db.go b/model_postgresql_pg_db.go new file mode 100644 index 0000000..9ccf366 --- /dev/null +++ b/model_postgresql_pg_db.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgDb struct for PostgresqlPgDb +type PostgresqlPgDb struct { + Name *string `json:"name,omitempty"` + Size *string `json:"size,omitempty"` + Owner *string `json:"owner,omitempty"` + Description *string `json:"description,omitempty"` +} + +// NewPostgresqlPgDb instantiates a new PostgresqlPgDb 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 NewPostgresqlPgDb() *PostgresqlPgDb { + this := PostgresqlPgDb{} + return &this +} + +// NewPostgresqlPgDbWithDefaults instantiates a new PostgresqlPgDb 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 NewPostgresqlPgDbWithDefaults() *PostgresqlPgDb { + this := PostgresqlPgDb{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PostgresqlPgDb) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgDb) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PostgresqlPgDb) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PostgresqlPgDb) SetName(v string) { + o.Name = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *PostgresqlPgDb) GetSize() string { + if o == nil || isNil(o.Size) { + var ret string + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgDb) GetSizeOk() (*string, bool) { + if o == nil || isNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *PostgresqlPgDb) HasSize() bool { + if o != nil && !isNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given string and assigns it to the Size field. +func (o *PostgresqlPgDb) SetSize(v string) { + o.Size = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *PostgresqlPgDb) GetOwner() string { + if o == nil || isNil(o.Owner) { + var ret string + return ret + } + return *o.Owner +} + +// 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 *PostgresqlPgDb) GetOwnerOk() (*string, bool) { + if o == nil || isNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *PostgresqlPgDb) HasOwner() bool { + if o != nil && !isNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *PostgresqlPgDb) SetOwner(v string) { + o.Owner = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PostgresqlPgDb) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgDb) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PostgresqlPgDb) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PostgresqlPgDb) SetDescription(v string) { + o.Description = &v +} + +func (o PostgresqlPgDb) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["name"] = o.Name + } + if !isNil(o.Size) { + toSerialize["size"] = o.Size + } + if !isNil(o.Owner) { + toSerialize["owner"] = o.Owner + } + if !isNil(o.Description) { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgDb struct { + value *PostgresqlPgDb + isSet bool +} + +func (v NullablePostgresqlPgDb) Get() *PostgresqlPgDb { + return v.value +} + +func (v *NullablePostgresqlPgDb) Set(val *PostgresqlPgDb) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgDb) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgDb) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgDb(val *PostgresqlPgDb) *NullablePostgresqlPgDb { + return &NullablePostgresqlPgDb{value: val, isSet: true} +} + +func (v NullablePostgresqlPgDb) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgDb) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_get_config_response.go b/model_postgresql_pg_get_config_response.go new file mode 100644 index 0000000..661d64b --- /dev/null +++ b/model_postgresql_pg_get_config_response.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgGetConfigResponse struct for PostgresqlPgGetConfigResponse +type PostgresqlPgGetConfigResponse struct { + Config *PostgresqlPgConfigInfo `json:"config,omitempty"` +} + +// NewPostgresqlPgGetConfigResponse instantiates a new PostgresqlPgGetConfigResponse 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 NewPostgresqlPgGetConfigResponse() *PostgresqlPgGetConfigResponse { + this := PostgresqlPgGetConfigResponse{} + return &this +} + +// NewPostgresqlPgGetConfigResponseWithDefaults instantiates a new PostgresqlPgGetConfigResponse 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 NewPostgresqlPgGetConfigResponseWithDefaults() *PostgresqlPgGetConfigResponse { + this := PostgresqlPgGetConfigResponse{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *PostgresqlPgGetConfigResponse) GetConfig() PostgresqlPgConfigInfo { + if o == nil || isNil(o.Config) { + var ret PostgresqlPgConfigInfo + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgGetConfigResponse) GetConfigOk() (*PostgresqlPgConfigInfo, bool) { + if o == nil || isNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *PostgresqlPgGetConfigResponse) HasConfig() bool { + if o != nil && !isNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given PostgresqlPgConfigInfo and assigns it to the Config field. +func (o *PostgresqlPgGetConfigResponse) SetConfig(v PostgresqlPgConfigInfo) { + o.Config = &v +} + +func (o PostgresqlPgGetConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Config) { + toSerialize["config"] = o.Config + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgGetConfigResponse struct { + value *PostgresqlPgGetConfigResponse + isSet bool +} + +func (v NullablePostgresqlPgGetConfigResponse) Get() *PostgresqlPgGetConfigResponse { + return v.value +} + +func (v *NullablePostgresqlPgGetConfigResponse) Set(val *PostgresqlPgGetConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgGetConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgGetConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgGetConfigResponse(val *PostgresqlPgGetConfigResponse) *NullablePostgresqlPgGetConfigResponse { + return &NullablePostgresqlPgGetConfigResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgGetConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgGetConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_get_db_list_response.go b/model_postgresql_pg_get_db_list_response.go new file mode 100644 index 0000000..bfe47ac --- /dev/null +++ b/model_postgresql_pg_get_db_list_response.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgGetDbListResponse struct for PostgresqlPgGetDbListResponse +type PostgresqlPgGetDbListResponse struct { + Db []PostgresqlPgDb `json:"db,omitempty"` +} + +// NewPostgresqlPgGetDbListResponse instantiates a new PostgresqlPgGetDbListResponse 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 NewPostgresqlPgGetDbListResponse() *PostgresqlPgGetDbListResponse { + this := PostgresqlPgGetDbListResponse{} + return &this +} + +// NewPostgresqlPgGetDbListResponseWithDefaults instantiates a new PostgresqlPgGetDbListResponse 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 NewPostgresqlPgGetDbListResponseWithDefaults() *PostgresqlPgGetDbListResponse { + this := PostgresqlPgGetDbListResponse{} + return &this +} + +// GetDb returns the Db field value if set, zero value otherwise. +func (o *PostgresqlPgGetDbListResponse) GetDb() []PostgresqlPgDb { + if o == nil || isNil(o.Db) { + var ret []PostgresqlPgDb + return ret + } + return o.Db +} + +// GetDbOk returns a tuple with the Db field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgGetDbListResponse) GetDbOk() ([]PostgresqlPgDb, bool) { + if o == nil || isNil(o.Db) { + return nil, false + } + return o.Db, true +} + +// HasDb returns a boolean if a field has been set. +func (o *PostgresqlPgGetDbListResponse) HasDb() bool { + if o != nil && !isNil(o.Db) { + return true + } + + return false +} + +// SetDb gets a reference to the given []PostgresqlPgDb and assigns it to the Db field. +func (o *PostgresqlPgGetDbListResponse) SetDb(v []PostgresqlPgDb) { + o.Db = v +} + +func (o PostgresqlPgGetDbListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Db) { + toSerialize["db"] = o.Db + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgGetDbListResponse struct { + value *PostgresqlPgGetDbListResponse + isSet bool +} + +func (v NullablePostgresqlPgGetDbListResponse) Get() *PostgresqlPgGetDbListResponse { + return v.value +} + +func (v *NullablePostgresqlPgGetDbListResponse) Set(val *PostgresqlPgGetDbListResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgGetDbListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgGetDbListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgGetDbListResponse(val *PostgresqlPgGetDbListResponse) *NullablePostgresqlPgGetDbListResponse { + return &NullablePostgresqlPgGetDbListResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgGetDbListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgGetDbListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_get_remote_access_response.go b/model_postgresql_pg_get_remote_access_response.go new file mode 100644 index 0000000..c6a7ce0 --- /dev/null +++ b/model_postgresql_pg_get_remote_access_response.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgGetRemoteAccessResponse struct for PostgresqlPgGetRemoteAccessResponse +type PostgresqlPgGetRemoteAccessResponse struct { + State *PostgresqlPgRemoteAccessState `json:"state,omitempty"` +} + +// NewPostgresqlPgGetRemoteAccessResponse instantiates a new PostgresqlPgGetRemoteAccessResponse 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 NewPostgresqlPgGetRemoteAccessResponse() *PostgresqlPgGetRemoteAccessResponse { + this := PostgresqlPgGetRemoteAccessResponse{} + return &this +} + +// NewPostgresqlPgGetRemoteAccessResponseWithDefaults instantiates a new PostgresqlPgGetRemoteAccessResponse 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 NewPostgresqlPgGetRemoteAccessResponseWithDefaults() *PostgresqlPgGetRemoteAccessResponse { + this := PostgresqlPgGetRemoteAccessResponse{} + return &this +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *PostgresqlPgGetRemoteAccessResponse) GetState() PostgresqlPgRemoteAccessState { + if o == nil || isNil(o.State) { + var ret PostgresqlPgRemoteAccessState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgGetRemoteAccessResponse) GetStateOk() (*PostgresqlPgRemoteAccessState, bool) { + if o == nil || isNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *PostgresqlPgGetRemoteAccessResponse) HasState() bool { + if o != nil && !isNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given PostgresqlPgRemoteAccessState and assigns it to the State field. +func (o *PostgresqlPgGetRemoteAccessResponse) SetState(v PostgresqlPgRemoteAccessState) { + o.State = &v +} + +func (o PostgresqlPgGetRemoteAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.State) { + toSerialize["state"] = o.State + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgGetRemoteAccessResponse struct { + value *PostgresqlPgGetRemoteAccessResponse + isSet bool +} + +func (v NullablePostgresqlPgGetRemoteAccessResponse) Get() *PostgresqlPgGetRemoteAccessResponse { + return v.value +} + +func (v *NullablePostgresqlPgGetRemoteAccessResponse) Set(val *PostgresqlPgGetRemoteAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgGetRemoteAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgGetRemoteAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgGetRemoteAccessResponse(val *PostgresqlPgGetRemoteAccessResponse) *NullablePostgresqlPgGetRemoteAccessResponse { + return &NullablePostgresqlPgGetRemoteAccessResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgGetRemoteAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgGetRemoteAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_get_role_list_response.go b/model_postgresql_pg_get_role_list_response.go new file mode 100644 index 0000000..7205cb6 --- /dev/null +++ b/model_postgresql_pg_get_role_list_response.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgGetRoleListResponse struct for PostgresqlPgGetRoleListResponse +type PostgresqlPgGetRoleListResponse struct { + Role []PostgresqlRole `json:"role,omitempty"` +} + +// NewPostgresqlPgGetRoleListResponse instantiates a new PostgresqlPgGetRoleListResponse 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 NewPostgresqlPgGetRoleListResponse() *PostgresqlPgGetRoleListResponse { + this := PostgresqlPgGetRoleListResponse{} + return &this +} + +// NewPostgresqlPgGetRoleListResponseWithDefaults instantiates a new PostgresqlPgGetRoleListResponse 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 NewPostgresqlPgGetRoleListResponseWithDefaults() *PostgresqlPgGetRoleListResponse { + this := PostgresqlPgGetRoleListResponse{} + return &this +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *PostgresqlPgGetRoleListResponse) GetRole() []PostgresqlRole { + if o == nil || isNil(o.Role) { + var ret []PostgresqlRole + return ret + } + return o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgGetRoleListResponse) GetRoleOk() ([]PostgresqlRole, bool) { + if o == nil || isNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *PostgresqlPgGetRoleListResponse) HasRole() bool { + if o != nil && !isNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given []PostgresqlRole and assigns it to the Role field. +func (o *PostgresqlPgGetRoleListResponse) SetRole(v []PostgresqlRole) { + o.Role = v +} + +func (o PostgresqlPgGetRoleListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Role) { + toSerialize["role"] = o.Role + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgGetRoleListResponse struct { + value *PostgresqlPgGetRoleListResponse + isSet bool +} + +func (v NullablePostgresqlPgGetRoleListResponse) Get() *PostgresqlPgGetRoleListResponse { + return v.value +} + +func (v *NullablePostgresqlPgGetRoleListResponse) Set(val *PostgresqlPgGetRoleListResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgGetRoleListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgGetRoleListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgGetRoleListResponse(val *PostgresqlPgGetRoleListResponse) *NullablePostgresqlPgGetRoleListResponse { + return &NullablePostgresqlPgGetRoleListResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgGetRoleListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgGetRoleListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_remote_access_state.go b/model_postgresql_pg_remote_access_state.go new file mode 100644 index 0000000..2a54fe6 --- /dev/null +++ b/model_postgresql_pg_remote_access_state.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgRemoteAccessState struct for PostgresqlPgRemoteAccessState +type PostgresqlPgRemoteAccessState struct { + SubnetAddress []string `json:"subnet_address,omitempty"` +} + +// NewPostgresqlPgRemoteAccessState instantiates a new PostgresqlPgRemoteAccessState 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 NewPostgresqlPgRemoteAccessState() *PostgresqlPgRemoteAccessState { + this := PostgresqlPgRemoteAccessState{} + return &this +} + +// NewPostgresqlPgRemoteAccessStateWithDefaults instantiates a new PostgresqlPgRemoteAccessState 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 NewPostgresqlPgRemoteAccessStateWithDefaults() *PostgresqlPgRemoteAccessState { + this := PostgresqlPgRemoteAccessState{} + return &this +} + +// GetSubnetAddress returns the SubnetAddress field value if set, zero value otherwise. +func (o *PostgresqlPgRemoteAccessState) GetSubnetAddress() []string { + if o == nil || isNil(o.SubnetAddress) { + var ret []string + return ret + } + return o.SubnetAddress +} + +// GetSubnetAddressOk returns a tuple with the SubnetAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoteAccessState) GetSubnetAddressOk() ([]string, bool) { + if o == nil || isNil(o.SubnetAddress) { + return nil, false + } + return o.SubnetAddress, true +} + +// HasSubnetAddress returns a boolean if a field has been set. +func (o *PostgresqlPgRemoteAccessState) HasSubnetAddress() bool { + if o != nil && !isNil(o.SubnetAddress) { + return true + } + + return false +} + +// SetSubnetAddress gets a reference to the given []string and assigns it to the SubnetAddress field. +func (o *PostgresqlPgRemoteAccessState) SetSubnetAddress(v []string) { + o.SubnetAddress = v +} + +func (o PostgresqlPgRemoteAccessState) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubnetAddress) { + toSerialize["subnet_address"] = o.SubnetAddress + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgRemoteAccessState struct { + value *PostgresqlPgRemoteAccessState + isSet bool +} + +func (v NullablePostgresqlPgRemoteAccessState) Get() *PostgresqlPgRemoteAccessState { + return v.value +} + +func (v *NullablePostgresqlPgRemoteAccessState) Set(val *PostgresqlPgRemoteAccessState) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgRemoteAccessState) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgRemoteAccessState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgRemoteAccessState(val *PostgresqlPgRemoteAccessState) *NullablePostgresqlPgRemoteAccessState { + return &NullablePostgresqlPgRemoteAccessState{value: val, isSet: true} +} + +func (v NullablePostgresqlPgRemoteAccessState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgRemoteAccessState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_remove_db_response.go b/model_postgresql_pg_remove_db_response.go new file mode 100644 index 0000000..8302745 --- /dev/null +++ b/model_postgresql_pg_remove_db_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgRemoveDbResponse struct for PostgresqlPgRemoveDbResponse +type PostgresqlPgRemoveDbResponse struct { + Success map[string]interface{} `json:"success,omitempty"` + Error *PostgresqlPgRemoveDbResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgRemoveDbResponse instantiates a new PostgresqlPgRemoveDbResponse 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 NewPostgresqlPgRemoveDbResponse() *PostgresqlPgRemoveDbResponse { + this := PostgresqlPgRemoveDbResponse{} + return &this +} + +// NewPostgresqlPgRemoveDbResponseWithDefaults instantiates a new PostgresqlPgRemoveDbResponse 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 NewPostgresqlPgRemoveDbResponseWithDefaults() *PostgresqlPgRemoveDbResponse { + this := PostgresqlPgRemoveDbResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveDbResponse) GetSuccess() map[string]interface{} { + if o == nil || isNil(o.Success) { + var ret map[string]interface{} + return ret + } + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveDbResponse) GetSuccessOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Success) { + return map[string]interface{}{}, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveDbResponse) HasSuccess() bool { + if o != nil && !isNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given map[string]interface{} and assigns it to the Success field. +func (o *PostgresqlPgRemoveDbResponse) SetSuccess(v map[string]interface{}) { + o.Success = v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveDbResponse) GetError() PostgresqlPgRemoveDbResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgRemoveDbResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveDbResponse) GetErrorOk() (*PostgresqlPgRemoveDbResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveDbResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgRemoveDbResponseError and assigns it to the Error field. +func (o *PostgresqlPgRemoveDbResponse) SetError(v PostgresqlPgRemoveDbResponseError) { + o.Error = &v +} + +func (o PostgresqlPgRemoveDbResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Success) { + toSerialize["success"] = o.Success + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgRemoveDbResponse struct { + value *PostgresqlPgRemoveDbResponse + isSet bool +} + +func (v NullablePostgresqlPgRemoveDbResponse) Get() *PostgresqlPgRemoveDbResponse { + return v.value +} + +func (v *NullablePostgresqlPgRemoveDbResponse) Set(val *PostgresqlPgRemoveDbResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgRemoveDbResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgRemoveDbResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgRemoveDbResponse(val *PostgresqlPgRemoveDbResponse) *NullablePostgresqlPgRemoveDbResponse { + return &NullablePostgresqlPgRemoveDbResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgRemoveDbResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgRemoveDbResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_remove_db_response_error.go b/model_postgresql_pg_remove_db_response_error.go new file mode 100644 index 0000000..7b9c63d --- /dev/null +++ b/model_postgresql_pg_remove_db_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgRemoveDbResponseError struct for PostgresqlPgRemoveDbResponseError +type PostgresqlPgRemoveDbResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgRemoveDbResponseError instantiates a new PostgresqlPgRemoveDbResponseError 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 NewPostgresqlPgRemoveDbResponseError() *PostgresqlPgRemoveDbResponseError { + this := PostgresqlPgRemoveDbResponseError{} + return &this +} + +// NewPostgresqlPgRemoveDbResponseErrorWithDefaults instantiates a new PostgresqlPgRemoveDbResponseError 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 NewPostgresqlPgRemoveDbResponseErrorWithDefaults() *PostgresqlPgRemoveDbResponseError { + this := PostgresqlPgRemoveDbResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveDbResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveDbResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveDbResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgRemoveDbResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveDbResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveDbResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveDbResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgRemoveDbResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgRemoveDbResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgRemoveDbResponseError struct { + value *PostgresqlPgRemoveDbResponseError + isSet bool +} + +func (v NullablePostgresqlPgRemoveDbResponseError) Get() *PostgresqlPgRemoveDbResponseError { + return v.value +} + +func (v *NullablePostgresqlPgRemoveDbResponseError) Set(val *PostgresqlPgRemoveDbResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgRemoveDbResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgRemoveDbResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgRemoveDbResponseError(val *PostgresqlPgRemoveDbResponseError) *NullablePostgresqlPgRemoveDbResponseError { + return &NullablePostgresqlPgRemoveDbResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgRemoveDbResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgRemoveDbResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_remove_role_response.go b/model_postgresql_pg_remove_role_response.go new file mode 100644 index 0000000..61f6204 --- /dev/null +++ b/model_postgresql_pg_remove_role_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgRemoveRoleResponse struct for PostgresqlPgRemoveRoleResponse +type PostgresqlPgRemoveRoleResponse struct { + Success map[string]interface{} `json:"success,omitempty"` + Error *PostgresqlPgRemoveRoleResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgRemoveRoleResponse instantiates a new PostgresqlPgRemoveRoleResponse 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 NewPostgresqlPgRemoveRoleResponse() *PostgresqlPgRemoveRoleResponse { + this := PostgresqlPgRemoveRoleResponse{} + return &this +} + +// NewPostgresqlPgRemoveRoleResponseWithDefaults instantiates a new PostgresqlPgRemoveRoleResponse 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 NewPostgresqlPgRemoveRoleResponseWithDefaults() *PostgresqlPgRemoveRoleResponse { + this := PostgresqlPgRemoveRoleResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveRoleResponse) GetSuccess() map[string]interface{} { + if o == nil || isNil(o.Success) { + var ret map[string]interface{} + return ret + } + return o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveRoleResponse) GetSuccessOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Success) { + return map[string]interface{}{}, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveRoleResponse) HasSuccess() bool { + if o != nil && !isNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given map[string]interface{} and assigns it to the Success field. +func (o *PostgresqlPgRemoveRoleResponse) SetSuccess(v map[string]interface{}) { + o.Success = v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveRoleResponse) GetError() PostgresqlPgRemoveRoleResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgRemoveRoleResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveRoleResponse) GetErrorOk() (*PostgresqlPgRemoveRoleResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveRoleResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgRemoveRoleResponseError and assigns it to the Error field. +func (o *PostgresqlPgRemoveRoleResponse) SetError(v PostgresqlPgRemoveRoleResponseError) { + o.Error = &v +} + +func (o PostgresqlPgRemoveRoleResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Success) { + toSerialize["success"] = o.Success + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgRemoveRoleResponse struct { + value *PostgresqlPgRemoveRoleResponse + isSet bool +} + +func (v NullablePostgresqlPgRemoveRoleResponse) Get() *PostgresqlPgRemoveRoleResponse { + return v.value +} + +func (v *NullablePostgresqlPgRemoveRoleResponse) Set(val *PostgresqlPgRemoveRoleResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgRemoveRoleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgRemoveRoleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgRemoveRoleResponse(val *PostgresqlPgRemoveRoleResponse) *NullablePostgresqlPgRemoveRoleResponse { + return &NullablePostgresqlPgRemoveRoleResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgRemoveRoleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgRemoveRoleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_remove_role_response_error.go b/model_postgresql_pg_remove_role_response_error.go new file mode 100644 index 0000000..ff5cf02 --- /dev/null +++ b/model_postgresql_pg_remove_role_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgRemoveRoleResponseError struct for PostgresqlPgRemoveRoleResponseError +type PostgresqlPgRemoveRoleResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgRemoveRoleResponseError instantiates a new PostgresqlPgRemoveRoleResponseError 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 NewPostgresqlPgRemoveRoleResponseError() *PostgresqlPgRemoveRoleResponseError { + this := PostgresqlPgRemoveRoleResponseError{} + return &this +} + +// NewPostgresqlPgRemoveRoleResponseErrorWithDefaults instantiates a new PostgresqlPgRemoveRoleResponseError 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 NewPostgresqlPgRemoveRoleResponseErrorWithDefaults() *PostgresqlPgRemoveRoleResponseError { + this := PostgresqlPgRemoveRoleResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveRoleResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveRoleResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveRoleResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgRemoveRoleResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgRemoveRoleResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgRemoveRoleResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgRemoveRoleResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgRemoveRoleResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgRemoveRoleResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgRemoveRoleResponseError struct { + value *PostgresqlPgRemoveRoleResponseError + isSet bool +} + +func (v NullablePostgresqlPgRemoveRoleResponseError) Get() *PostgresqlPgRemoveRoleResponseError { + return v.value +} + +func (v *NullablePostgresqlPgRemoveRoleResponseError) Set(val *PostgresqlPgRemoveRoleResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgRemoveRoleResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgRemoveRoleResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgRemoveRoleResponseError(val *PostgresqlPgRemoveRoleResponseError) *NullablePostgresqlPgRemoveRoleResponseError { + return &NullablePostgresqlPgRemoveRoleResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgRemoveRoleResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgRemoveRoleResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_set_config_request.go b/model_postgresql_pg_set_config_request.go new file mode 100644 index 0000000..2aed792 --- /dev/null +++ b/model_postgresql_pg_set_config_request.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgSetConfigRequest struct for PostgresqlPgSetConfigRequest +type PostgresqlPgSetConfigRequest struct { + ServiceId *string `json:"service_id,omitempty"` + Param *map[string]string `json:"param,omitempty"` +} + +// NewPostgresqlPgSetConfigRequest instantiates a new PostgresqlPgSetConfigRequest 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 NewPostgresqlPgSetConfigRequest() *PostgresqlPgSetConfigRequest { + this := PostgresqlPgSetConfigRequest{} + return &this +} + +// NewPostgresqlPgSetConfigRequestWithDefaults instantiates a new PostgresqlPgSetConfigRequest 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 NewPostgresqlPgSetConfigRequestWithDefaults() *PostgresqlPgSetConfigRequest { + this := PostgresqlPgSetConfigRequest{} + return &this +} + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *PostgresqlPgSetConfigRequest) GetServiceId() string { + if o == nil || isNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgSetConfigRequest) GetServiceIdOk() (*string, bool) { + if o == nil || isNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *PostgresqlPgSetConfigRequest) HasServiceId() bool { + if o != nil && !isNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *PostgresqlPgSetConfigRequest) SetServiceId(v string) { + o.ServiceId = &v +} + +// GetParam returns the Param field value if set, zero value otherwise. +func (o *PostgresqlPgSetConfigRequest) GetParam() map[string]string { + if o == nil || isNil(o.Param) { + var ret map[string]string + return ret + } + return *o.Param +} + +// GetParamOk returns a tuple with the Param field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgSetConfigRequest) GetParamOk() (*map[string]string, bool) { + if o == nil || isNil(o.Param) { + return nil, false + } + return o.Param, true +} + +// HasParam returns a boolean if a field has been set. +func (o *PostgresqlPgSetConfigRequest) HasParam() bool { + if o != nil && !isNil(o.Param) { + return true + } + + return false +} + +// SetParam gets a reference to the given map[string]string and assigns it to the Param field. +func (o *PostgresqlPgSetConfigRequest) SetParam(v map[string]string) { + o.Param = &v +} + +func (o PostgresqlPgSetConfigRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } + if !isNil(o.Param) { + toSerialize["param"] = o.Param + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgSetConfigRequest struct { + value *PostgresqlPgSetConfigRequest + isSet bool +} + +func (v NullablePostgresqlPgSetConfigRequest) Get() *PostgresqlPgSetConfigRequest { + return v.value +} + +func (v *NullablePostgresqlPgSetConfigRequest) Set(val *PostgresqlPgSetConfigRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgSetConfigRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgSetConfigRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgSetConfigRequest(val *PostgresqlPgSetConfigRequest) *NullablePostgresqlPgSetConfigRequest { + return &NullablePostgresqlPgSetConfigRequest{value: val, isSet: true} +} + +func (v NullablePostgresqlPgSetConfigRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgSetConfigRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_set_config_response.go b/model_postgresql_pg_set_config_response.go new file mode 100644 index 0000000..3c7b162 --- /dev/null +++ b/model_postgresql_pg_set_config_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgSetConfigResponse struct for PostgresqlPgSetConfigResponse +type PostgresqlPgSetConfigResponse struct { + Config *PostgresqlPgConfigInfo `json:"config,omitempty"` + Error *PostgresqlPgSetConfigResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgSetConfigResponse instantiates a new PostgresqlPgSetConfigResponse 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 NewPostgresqlPgSetConfigResponse() *PostgresqlPgSetConfigResponse { + this := PostgresqlPgSetConfigResponse{} + return &this +} + +// NewPostgresqlPgSetConfigResponseWithDefaults instantiates a new PostgresqlPgSetConfigResponse 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 NewPostgresqlPgSetConfigResponseWithDefaults() *PostgresqlPgSetConfigResponse { + this := PostgresqlPgSetConfigResponse{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *PostgresqlPgSetConfigResponse) GetConfig() PostgresqlPgConfigInfo { + if o == nil || isNil(o.Config) { + var ret PostgresqlPgConfigInfo + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgSetConfigResponse) GetConfigOk() (*PostgresqlPgConfigInfo, bool) { + if o == nil || isNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *PostgresqlPgSetConfigResponse) HasConfig() bool { + if o != nil && !isNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given PostgresqlPgConfigInfo and assigns it to the Config field. +func (o *PostgresqlPgSetConfigResponse) SetConfig(v PostgresqlPgConfigInfo) { + o.Config = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgSetConfigResponse) GetError() PostgresqlPgSetConfigResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgSetConfigResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgSetConfigResponse) GetErrorOk() (*PostgresqlPgSetConfigResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgSetConfigResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgSetConfigResponseError and assigns it to the Error field. +func (o *PostgresqlPgSetConfigResponse) SetError(v PostgresqlPgSetConfigResponseError) { + o.Error = &v +} + +func (o PostgresqlPgSetConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Config) { + toSerialize["config"] = o.Config + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgSetConfigResponse struct { + value *PostgresqlPgSetConfigResponse + isSet bool +} + +func (v NullablePostgresqlPgSetConfigResponse) Get() *PostgresqlPgSetConfigResponse { + return v.value +} + +func (v *NullablePostgresqlPgSetConfigResponse) Set(val *PostgresqlPgSetConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgSetConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgSetConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgSetConfigResponse(val *PostgresqlPgSetConfigResponse) *NullablePostgresqlPgSetConfigResponse { + return &NullablePostgresqlPgSetConfigResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgSetConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgSetConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_set_config_response_error.go b/model_postgresql_pg_set_config_response_error.go new file mode 100644 index 0000000..df7bad7 --- /dev/null +++ b/model_postgresql_pg_set_config_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgSetConfigResponseError struct for PostgresqlPgSetConfigResponseError +type PostgresqlPgSetConfigResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgSetConfigResponseError instantiates a new PostgresqlPgSetConfigResponseError 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 NewPostgresqlPgSetConfigResponseError() *PostgresqlPgSetConfigResponseError { + this := PostgresqlPgSetConfigResponseError{} + return &this +} + +// NewPostgresqlPgSetConfigResponseErrorWithDefaults instantiates a new PostgresqlPgSetConfigResponseError 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 NewPostgresqlPgSetConfigResponseErrorWithDefaults() *PostgresqlPgSetConfigResponseError { + this := PostgresqlPgSetConfigResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgSetConfigResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgSetConfigResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgSetConfigResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgSetConfigResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgSetConfigResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgSetConfigResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgSetConfigResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgSetConfigResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgSetConfigResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgSetConfigResponseError struct { + value *PostgresqlPgSetConfigResponseError + isSet bool +} + +func (v NullablePostgresqlPgSetConfigResponseError) Get() *PostgresqlPgSetConfigResponseError { + return v.value +} + +func (v *NullablePostgresqlPgSetConfigResponseError) Set(val *PostgresqlPgSetConfigResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgSetConfigResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgSetConfigResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgSetConfigResponseError(val *PostgresqlPgSetConfigResponseError) *NullablePostgresqlPgSetConfigResponseError { + return &NullablePostgresqlPgSetConfigResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgSetConfigResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgSetConfigResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_db_request.go b/model_postgresql_pg_update_db_request.go new file mode 100644 index 0000000..4b9fee9 --- /dev/null +++ b/model_postgresql_pg_update_db_request.go @@ -0,0 +1,187 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateDbRequest struct for PostgresqlPgUpdateDbRequest +type PostgresqlPgUpdateDbRequest struct { + ServiceId *string `json:"service_id,omitempty"` + DbName *string `json:"db_name,omitempty"` + Description *string `json:"description,omitempty"` +} + +// NewPostgresqlPgUpdateDbRequest instantiates a new PostgresqlPgUpdateDbRequest 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 NewPostgresqlPgUpdateDbRequest() *PostgresqlPgUpdateDbRequest { + this := PostgresqlPgUpdateDbRequest{} + return &this +} + +// NewPostgresqlPgUpdateDbRequestWithDefaults instantiates a new PostgresqlPgUpdateDbRequest 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 NewPostgresqlPgUpdateDbRequestWithDefaults() *PostgresqlPgUpdateDbRequest { + this := PostgresqlPgUpdateDbRequest{} + return &this +} + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateDbRequest) GetServiceId() string { + if o == nil || isNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateDbRequest) GetServiceIdOk() (*string, bool) { + if o == nil || isNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateDbRequest) HasServiceId() bool { + if o != nil && !isNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *PostgresqlPgUpdateDbRequest) SetServiceId(v string) { + o.ServiceId = &v +} + +// GetDbName returns the DbName field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateDbRequest) GetDbName() string { + if o == nil || isNil(o.DbName) { + var ret string + return ret + } + return *o.DbName +} + +// GetDbNameOk returns a tuple with the DbName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateDbRequest) GetDbNameOk() (*string, bool) { + if o == nil || isNil(o.DbName) { + return nil, false + } + return o.DbName, true +} + +// HasDbName returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateDbRequest) HasDbName() bool { + if o != nil && !isNil(o.DbName) { + return true + } + + return false +} + +// SetDbName gets a reference to the given string and assigns it to the DbName field. +func (o *PostgresqlPgUpdateDbRequest) SetDbName(v string) { + o.DbName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateDbRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateDbRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateDbRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PostgresqlPgUpdateDbRequest) SetDescription(v string) { + o.Description = &v +} + +func (o PostgresqlPgUpdateDbRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } + if !isNil(o.DbName) { + toSerialize["db_name"] = o.DbName + } + if !isNil(o.Description) { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateDbRequest struct { + value *PostgresqlPgUpdateDbRequest + isSet bool +} + +func (v NullablePostgresqlPgUpdateDbRequest) Get() *PostgresqlPgUpdateDbRequest { + return v.value +} + +func (v *NullablePostgresqlPgUpdateDbRequest) Set(val *PostgresqlPgUpdateDbRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateDbRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateDbRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateDbRequest(val *PostgresqlPgUpdateDbRequest) *NullablePostgresqlPgUpdateDbRequest { + return &NullablePostgresqlPgUpdateDbRequest{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateDbRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateDbRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_db_response.go b/model_postgresql_pg_update_db_response.go new file mode 100644 index 0000000..cc406a7 --- /dev/null +++ b/model_postgresql_pg_update_db_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateDbResponse struct for PostgresqlPgUpdateDbResponse +type PostgresqlPgUpdateDbResponse struct { + Db *PostgresqlPgDb `json:"db,omitempty"` + Error *PostgresqlPgUpdateDbResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgUpdateDbResponse instantiates a new PostgresqlPgUpdateDbResponse 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 NewPostgresqlPgUpdateDbResponse() *PostgresqlPgUpdateDbResponse { + this := PostgresqlPgUpdateDbResponse{} + return &this +} + +// NewPostgresqlPgUpdateDbResponseWithDefaults instantiates a new PostgresqlPgUpdateDbResponse 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 NewPostgresqlPgUpdateDbResponseWithDefaults() *PostgresqlPgUpdateDbResponse { + this := PostgresqlPgUpdateDbResponse{} + return &this +} + +// GetDb returns the Db field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateDbResponse) GetDb() PostgresqlPgDb { + if o == nil || isNil(o.Db) { + var ret PostgresqlPgDb + return ret + } + return *o.Db +} + +// GetDbOk returns a tuple with the Db field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateDbResponse) GetDbOk() (*PostgresqlPgDb, bool) { + if o == nil || isNil(o.Db) { + return nil, false + } + return o.Db, true +} + +// HasDb returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateDbResponse) HasDb() bool { + if o != nil && !isNil(o.Db) { + return true + } + + return false +} + +// SetDb gets a reference to the given PostgresqlPgDb and assigns it to the Db field. +func (o *PostgresqlPgUpdateDbResponse) SetDb(v PostgresqlPgDb) { + o.Db = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateDbResponse) GetError() PostgresqlPgUpdateDbResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgUpdateDbResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateDbResponse) GetErrorOk() (*PostgresqlPgUpdateDbResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateDbResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgUpdateDbResponseError and assigns it to the Error field. +func (o *PostgresqlPgUpdateDbResponse) SetError(v PostgresqlPgUpdateDbResponseError) { + o.Error = &v +} + +func (o PostgresqlPgUpdateDbResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Db) { + toSerialize["db"] = o.Db + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateDbResponse struct { + value *PostgresqlPgUpdateDbResponse + isSet bool +} + +func (v NullablePostgresqlPgUpdateDbResponse) Get() *PostgresqlPgUpdateDbResponse { + return v.value +} + +func (v *NullablePostgresqlPgUpdateDbResponse) Set(val *PostgresqlPgUpdateDbResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateDbResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateDbResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateDbResponse(val *PostgresqlPgUpdateDbResponse) *NullablePostgresqlPgUpdateDbResponse { + return &NullablePostgresqlPgUpdateDbResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateDbResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateDbResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_db_response_error.go b/model_postgresql_pg_update_db_response_error.go new file mode 100644 index 0000000..de6be23 --- /dev/null +++ b/model_postgresql_pg_update_db_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateDbResponseError struct for PostgresqlPgUpdateDbResponseError +type PostgresqlPgUpdateDbResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgUpdateDbResponseError instantiates a new PostgresqlPgUpdateDbResponseError 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 NewPostgresqlPgUpdateDbResponseError() *PostgresqlPgUpdateDbResponseError { + this := PostgresqlPgUpdateDbResponseError{} + return &this +} + +// NewPostgresqlPgUpdateDbResponseErrorWithDefaults instantiates a new PostgresqlPgUpdateDbResponseError 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 NewPostgresqlPgUpdateDbResponseErrorWithDefaults() *PostgresqlPgUpdateDbResponseError { + this := PostgresqlPgUpdateDbResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateDbResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateDbResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateDbResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgUpdateDbResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateDbResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateDbResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateDbResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgUpdateDbResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgUpdateDbResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateDbResponseError struct { + value *PostgresqlPgUpdateDbResponseError + isSet bool +} + +func (v NullablePostgresqlPgUpdateDbResponseError) Get() *PostgresqlPgUpdateDbResponseError { + return v.value +} + +func (v *NullablePostgresqlPgUpdateDbResponseError) Set(val *PostgresqlPgUpdateDbResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateDbResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateDbResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateDbResponseError(val *PostgresqlPgUpdateDbResponseError) *NullablePostgresqlPgUpdateDbResponseError { + return &NullablePostgresqlPgUpdateDbResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateDbResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateDbResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_remote_access_request.go b/model_postgresql_pg_update_remote_access_request.go new file mode 100644 index 0000000..8ef5092 --- /dev/null +++ b/model_postgresql_pg_update_remote_access_request.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateRemoteAccessRequest struct for PostgresqlPgUpdateRemoteAccessRequest +type PostgresqlPgUpdateRemoteAccessRequest struct { + ServiceId *string `json:"service_id,omitempty"` + SubnetAddress []string `json:"subnet_address,omitempty"` +} + +// NewPostgresqlPgUpdateRemoteAccessRequest instantiates a new PostgresqlPgUpdateRemoteAccessRequest 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 NewPostgresqlPgUpdateRemoteAccessRequest() *PostgresqlPgUpdateRemoteAccessRequest { + this := PostgresqlPgUpdateRemoteAccessRequest{} + return &this +} + +// NewPostgresqlPgUpdateRemoteAccessRequestWithDefaults instantiates a new PostgresqlPgUpdateRemoteAccessRequest 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 NewPostgresqlPgUpdateRemoteAccessRequestWithDefaults() *PostgresqlPgUpdateRemoteAccessRequest { + this := PostgresqlPgUpdateRemoteAccessRequest{} + return &this +} + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRemoteAccessRequest) GetServiceId() string { + if o == nil || isNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRemoteAccessRequest) GetServiceIdOk() (*string, bool) { + if o == nil || isNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRemoteAccessRequest) HasServiceId() bool { + if o != nil && !isNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *PostgresqlPgUpdateRemoteAccessRequest) SetServiceId(v string) { + o.ServiceId = &v +} + +// GetSubnetAddress returns the SubnetAddress field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRemoteAccessRequest) GetSubnetAddress() []string { + if o == nil || isNil(o.SubnetAddress) { + var ret []string + return ret + } + return o.SubnetAddress +} + +// GetSubnetAddressOk returns a tuple with the SubnetAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRemoteAccessRequest) GetSubnetAddressOk() ([]string, bool) { + if o == nil || isNil(o.SubnetAddress) { + return nil, false + } + return o.SubnetAddress, true +} + +// HasSubnetAddress returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRemoteAccessRequest) HasSubnetAddress() bool { + if o != nil && !isNil(o.SubnetAddress) { + return true + } + + return false +} + +// SetSubnetAddress gets a reference to the given []string and assigns it to the SubnetAddress field. +func (o *PostgresqlPgUpdateRemoteAccessRequest) SetSubnetAddress(v []string) { + o.SubnetAddress = v +} + +func (o PostgresqlPgUpdateRemoteAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } + if !isNil(o.SubnetAddress) { + toSerialize["subnet_address"] = o.SubnetAddress + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateRemoteAccessRequest struct { + value *PostgresqlPgUpdateRemoteAccessRequest + isSet bool +} + +func (v NullablePostgresqlPgUpdateRemoteAccessRequest) Get() *PostgresqlPgUpdateRemoteAccessRequest { + return v.value +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessRequest) Set(val *PostgresqlPgUpdateRemoteAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateRemoteAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateRemoteAccessRequest(val *PostgresqlPgUpdateRemoteAccessRequest) *NullablePostgresqlPgUpdateRemoteAccessRequest { + return &NullablePostgresqlPgUpdateRemoteAccessRequest{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateRemoteAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_remote_access_response.go b/model_postgresql_pg_update_remote_access_response.go new file mode 100644 index 0000000..e475830 --- /dev/null +++ b/model_postgresql_pg_update_remote_access_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateRemoteAccessResponse struct for PostgresqlPgUpdateRemoteAccessResponse +type PostgresqlPgUpdateRemoteAccessResponse struct { + State *PostgresqlPgRemoteAccessState `json:"state,omitempty"` + Error *PostgresqlPgUpdateRemoteAccessResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgUpdateRemoteAccessResponse instantiates a new PostgresqlPgUpdateRemoteAccessResponse 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 NewPostgresqlPgUpdateRemoteAccessResponse() *PostgresqlPgUpdateRemoteAccessResponse { + this := PostgresqlPgUpdateRemoteAccessResponse{} + return &this +} + +// NewPostgresqlPgUpdateRemoteAccessResponseWithDefaults instantiates a new PostgresqlPgUpdateRemoteAccessResponse 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 NewPostgresqlPgUpdateRemoteAccessResponseWithDefaults() *PostgresqlPgUpdateRemoteAccessResponse { + this := PostgresqlPgUpdateRemoteAccessResponse{} + return &this +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRemoteAccessResponse) GetState() PostgresqlPgRemoteAccessState { + if o == nil || isNil(o.State) { + var ret PostgresqlPgRemoteAccessState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponse) GetStateOk() (*PostgresqlPgRemoteAccessState, bool) { + if o == nil || isNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponse) HasState() bool { + if o != nil && !isNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given PostgresqlPgRemoteAccessState and assigns it to the State field. +func (o *PostgresqlPgUpdateRemoteAccessResponse) SetState(v PostgresqlPgRemoteAccessState) { + o.State = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRemoteAccessResponse) GetError() PostgresqlPgUpdateRemoteAccessResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgUpdateRemoteAccessResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponse) GetErrorOk() (*PostgresqlPgUpdateRemoteAccessResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgUpdateRemoteAccessResponseError and assigns it to the Error field. +func (o *PostgresqlPgUpdateRemoteAccessResponse) SetError(v PostgresqlPgUpdateRemoteAccessResponseError) { + o.Error = &v +} + +func (o PostgresqlPgUpdateRemoteAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.State) { + toSerialize["state"] = o.State + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateRemoteAccessResponse struct { + value *PostgresqlPgUpdateRemoteAccessResponse + isSet bool +} + +func (v NullablePostgresqlPgUpdateRemoteAccessResponse) Get() *PostgresqlPgUpdateRemoteAccessResponse { + return v.value +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessResponse) Set(val *PostgresqlPgUpdateRemoteAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateRemoteAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateRemoteAccessResponse(val *PostgresqlPgUpdateRemoteAccessResponse) *NullablePostgresqlPgUpdateRemoteAccessResponse { + return &NullablePostgresqlPgUpdateRemoteAccessResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateRemoteAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_remote_access_response_error.go b/model_postgresql_pg_update_remote_access_response_error.go new file mode 100644 index 0000000..0f6097f --- /dev/null +++ b/model_postgresql_pg_update_remote_access_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateRemoteAccessResponseError struct for PostgresqlPgUpdateRemoteAccessResponseError +type PostgresqlPgUpdateRemoteAccessResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgUpdateRemoteAccessResponseError instantiates a new PostgresqlPgUpdateRemoteAccessResponseError 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 NewPostgresqlPgUpdateRemoteAccessResponseError() *PostgresqlPgUpdateRemoteAccessResponseError { + this := PostgresqlPgUpdateRemoteAccessResponseError{} + return &this +} + +// NewPostgresqlPgUpdateRemoteAccessResponseErrorWithDefaults instantiates a new PostgresqlPgUpdateRemoteAccessResponseError 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 NewPostgresqlPgUpdateRemoteAccessResponseErrorWithDefaults() *PostgresqlPgUpdateRemoteAccessResponseError { + this := PostgresqlPgUpdateRemoteAccessResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgUpdateRemoteAccessResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgUpdateRemoteAccessResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateRemoteAccessResponseError struct { + value *PostgresqlPgUpdateRemoteAccessResponseError + isSet bool +} + +func (v NullablePostgresqlPgUpdateRemoteAccessResponseError) Get() *PostgresqlPgUpdateRemoteAccessResponseError { + return v.value +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessResponseError) Set(val *PostgresqlPgUpdateRemoteAccessResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateRemoteAccessResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateRemoteAccessResponseError(val *PostgresqlPgUpdateRemoteAccessResponseError) *NullablePostgresqlPgUpdateRemoteAccessResponseError { + return &NullablePostgresqlPgUpdateRemoteAccessResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateRemoteAccessResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateRemoteAccessResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_role_request.go b/model_postgresql_pg_update_role_request.go new file mode 100644 index 0000000..9b4e87b --- /dev/null +++ b/model_postgresql_pg_update_role_request.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateRoleRequest struct for PostgresqlPgUpdateRoleRequest +type PostgresqlPgUpdateRoleRequest struct { + ServiceId *string `json:"service_id,omitempty"` + RoleName *string `json:"role_name,omitempty"` + Password *string `json:"password,omitempty"` + ParentRole []string `json:"parent_role,omitempty"` +} + +// NewPostgresqlPgUpdateRoleRequest instantiates a new PostgresqlPgUpdateRoleRequest 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 NewPostgresqlPgUpdateRoleRequest() *PostgresqlPgUpdateRoleRequest { + this := PostgresqlPgUpdateRoleRequest{} + return &this +} + +// NewPostgresqlPgUpdateRoleRequestWithDefaults instantiates a new PostgresqlPgUpdateRoleRequest 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 NewPostgresqlPgUpdateRoleRequestWithDefaults() *PostgresqlPgUpdateRoleRequest { + this := PostgresqlPgUpdateRoleRequest{} + return &this +} + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleRequest) GetServiceId() string { + if o == nil || isNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleRequest) GetServiceIdOk() (*string, bool) { + if o == nil || isNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleRequest) HasServiceId() bool { + if o != nil && !isNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *PostgresqlPgUpdateRoleRequest) SetServiceId(v string) { + o.ServiceId = &v +} + +// GetRoleName returns the RoleName field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleRequest) GetRoleName() string { + if o == nil || isNil(o.RoleName) { + var ret string + return ret + } + return *o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleRequest) GetRoleNameOk() (*string, bool) { + if o == nil || isNil(o.RoleName) { + return nil, false + } + return o.RoleName, true +} + +// HasRoleName returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleRequest) HasRoleName() bool { + if o != nil && !isNil(o.RoleName) { + return true + } + + return false +} + +// SetRoleName gets a reference to the given string and assigns it to the RoleName field. +func (o *PostgresqlPgUpdateRoleRequest) SetRoleName(v string) { + o.RoleName = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleRequest) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleRequest) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *PostgresqlPgUpdateRoleRequest) SetPassword(v string) { + o.Password = &v +} + +// GetParentRole returns the ParentRole field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleRequest) GetParentRole() []string { + if o == nil || isNil(o.ParentRole) { + var ret []string + return ret + } + return o.ParentRole +} + +// GetParentRoleOk returns a tuple with the ParentRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleRequest) GetParentRoleOk() ([]string, bool) { + if o == nil || isNil(o.ParentRole) { + return nil, false + } + return o.ParentRole, true +} + +// HasParentRole returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleRequest) HasParentRole() bool { + if o != nil && !isNil(o.ParentRole) { + return true + } + + return false +} + +// SetParentRole gets a reference to the given []string and assigns it to the ParentRole field. +func (o *PostgresqlPgUpdateRoleRequest) SetParentRole(v []string) { + o.ParentRole = v +} + +func (o PostgresqlPgUpdateRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } + if !isNil(o.RoleName) { + toSerialize["role_name"] = o.RoleName + } + if !isNil(o.Password) { + toSerialize["password"] = o.Password + } + if !isNil(o.ParentRole) { + toSerialize["parent_role"] = o.ParentRole + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateRoleRequest struct { + value *PostgresqlPgUpdateRoleRequest + isSet bool +} + +func (v NullablePostgresqlPgUpdateRoleRequest) Get() *PostgresqlPgUpdateRoleRequest { + return v.value +} + +func (v *NullablePostgresqlPgUpdateRoleRequest) Set(val *PostgresqlPgUpdateRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateRoleRequest(val *PostgresqlPgUpdateRoleRequest) *NullablePostgresqlPgUpdateRoleRequest { + return &NullablePostgresqlPgUpdateRoleRequest{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_role_response.go b/model_postgresql_pg_update_role_response.go new file mode 100644 index 0000000..72ba9df --- /dev/null +++ b/model_postgresql_pg_update_role_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateRoleResponse struct for PostgresqlPgUpdateRoleResponse +type PostgresqlPgUpdateRoleResponse struct { + Role *PostgresqlRole `json:"role,omitempty"` + Error *PostgresqlPgUpdateRoleResponseError `json:"error,omitempty"` +} + +// NewPostgresqlPgUpdateRoleResponse instantiates a new PostgresqlPgUpdateRoleResponse 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 NewPostgresqlPgUpdateRoleResponse() *PostgresqlPgUpdateRoleResponse { + this := PostgresqlPgUpdateRoleResponse{} + return &this +} + +// NewPostgresqlPgUpdateRoleResponseWithDefaults instantiates a new PostgresqlPgUpdateRoleResponse 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 NewPostgresqlPgUpdateRoleResponseWithDefaults() *PostgresqlPgUpdateRoleResponse { + this := PostgresqlPgUpdateRoleResponse{} + return &this +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleResponse) GetRole() PostgresqlRole { + if o == nil || isNil(o.Role) { + var ret PostgresqlRole + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleResponse) GetRoleOk() (*PostgresqlRole, bool) { + if o == nil || isNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleResponse) HasRole() bool { + if o != nil && !isNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given PostgresqlRole and assigns it to the Role field. +func (o *PostgresqlPgUpdateRoleResponse) SetRole(v PostgresqlRole) { + o.Role = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleResponse) GetError() PostgresqlPgUpdateRoleResponseError { + if o == nil || isNil(o.Error) { + var ret PostgresqlPgUpdateRoleResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleResponse) GetErrorOk() (*PostgresqlPgUpdateRoleResponseError, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given PostgresqlPgUpdateRoleResponseError and assigns it to the Error field. +func (o *PostgresqlPgUpdateRoleResponse) SetError(v PostgresqlPgUpdateRoleResponseError) { + o.Error = &v +} + +func (o PostgresqlPgUpdateRoleResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Role) { + toSerialize["role"] = o.Role + } + if !isNil(o.Error) { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateRoleResponse struct { + value *PostgresqlPgUpdateRoleResponse + isSet bool +} + +func (v NullablePostgresqlPgUpdateRoleResponse) Get() *PostgresqlPgUpdateRoleResponse { + return v.value +} + +func (v *NullablePostgresqlPgUpdateRoleResponse) Set(val *PostgresqlPgUpdateRoleResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateRoleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateRoleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateRoleResponse(val *PostgresqlPgUpdateRoleResponse) *NullablePostgresqlPgUpdateRoleResponse { + return &NullablePostgresqlPgUpdateRoleResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateRoleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateRoleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_pg_update_role_response_error.go b/model_postgresql_pg_update_role_response_error.go new file mode 100644 index 0000000..6c42ffe --- /dev/null +++ b/model_postgresql_pg_update_role_response_error.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPgUpdateRoleResponseError struct for PostgresqlPgUpdateRoleResponseError +type PostgresqlPgUpdateRoleResponseError struct { + Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` +} + +// NewPostgresqlPgUpdateRoleResponseError instantiates a new PostgresqlPgUpdateRoleResponseError 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 NewPostgresqlPgUpdateRoleResponseError() *PostgresqlPgUpdateRoleResponseError { + this := PostgresqlPgUpdateRoleResponseError{} + return &this +} + +// NewPostgresqlPgUpdateRoleResponseErrorWithDefaults instantiates a new PostgresqlPgUpdateRoleResponseError 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 NewPostgresqlPgUpdateRoleResponseErrorWithDefaults() *PostgresqlPgUpdateRoleResponseError { + this := PostgresqlPgUpdateRoleResponseError{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleResponseError) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleResponseError) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleResponseError) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PostgresqlPgUpdateRoleResponseError) SetMessage(v string) { + o.Message = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *PostgresqlPgUpdateRoleResponseError) GetCode() string { + if o == nil || isNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPgUpdateRoleResponseError) GetCodeOk() (*string, bool) { + if o == nil || isNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PostgresqlPgUpdateRoleResponseError) HasCode() bool { + if o != nil && !isNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *PostgresqlPgUpdateRoleResponseError) SetCode(v string) { + o.Code = &v +} + +func (o PostgresqlPgUpdateRoleResponseError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Message) { + toSerialize["message"] = o.Message + } + if !isNil(o.Code) { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPgUpdateRoleResponseError struct { + value *PostgresqlPgUpdateRoleResponseError + isSet bool +} + +func (v NullablePostgresqlPgUpdateRoleResponseError) Get() *PostgresqlPgUpdateRoleResponseError { + return v.value +} + +func (v *NullablePostgresqlPgUpdateRoleResponseError) Set(val *PostgresqlPgUpdateRoleResponseError) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPgUpdateRoleResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPgUpdateRoleResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPgUpdateRoleResponseError(val *PostgresqlPgUpdateRoleResponseError) *NullablePostgresqlPgUpdateRoleResponseError { + return &NullablePostgresqlPgUpdateRoleResponseError{value: val, isSet: true} +} + +func (v NullablePostgresqlPgUpdateRoleResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPgUpdateRoleResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_postgresql14.go b/model_postgresql_postgresql14.go new file mode 100644 index 0000000..31a3df8 --- /dev/null +++ b/model_postgresql_postgresql14.go @@ -0,0 +1,403 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPostgresql14 struct for PostgresqlPostgresql14 +type PostgresqlPostgresql14 struct { + Configuration *PostgresqlPostgresql14Configuration `json:"configuration,omitempty"` + Host *string `json:"host,omitempty"` + Port *int32 `json:"port,omitempty"` + AddressInfo *StructuresAddressInfo `json:"address_info,omitempty"` + WebuiUrl *string `json:"webui_url,omitempty"` + DiskUsed *string `json:"disk_used,omitempty"` + DiskLeft *string `json:"disk_left,omitempty"` + ReadOnly *bool `json:"read_only,omitempty"` + WebuiInstalling *bool `json:"webui_installing,omitempty"` +} + +// NewPostgresqlPostgresql14 instantiates a new PostgresqlPostgresql14 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 NewPostgresqlPostgresql14() *PostgresqlPostgresql14 { + this := PostgresqlPostgresql14{} + return &this +} + +// NewPostgresqlPostgresql14WithDefaults instantiates a new PostgresqlPostgresql14 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 NewPostgresqlPostgresql14WithDefaults() *PostgresqlPostgresql14 { + this := PostgresqlPostgresql14{} + return &this +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetConfiguration() PostgresqlPostgresql14Configuration { + if o == nil || isNil(o.Configuration) { + var ret PostgresqlPostgresql14Configuration + return ret + } + return *o.Configuration +} + +// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetConfigurationOk() (*PostgresqlPostgresql14Configuration, bool) { + if o == nil || isNil(o.Configuration) { + return nil, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasConfiguration() bool { + if o != nil && !isNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given PostgresqlPostgresql14Configuration and assigns it to the Configuration field. +func (o *PostgresqlPostgresql14) SetConfiguration(v PostgresqlPostgresql14Configuration) { + o.Configuration = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetHost() string { + if o == nil || isNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetHostOk() (*string, bool) { + if o == nil || isNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasHost() bool { + if o != nil && !isNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *PostgresqlPostgresql14) SetHost(v string) { + o.Host = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *PostgresqlPostgresql14) SetPort(v int32) { + o.Port = &v +} + +// GetAddressInfo returns the AddressInfo field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetAddressInfo() StructuresAddressInfo { + if o == nil || isNil(o.AddressInfo) { + var ret StructuresAddressInfo + return ret + } + return *o.AddressInfo +} + +// GetAddressInfoOk returns a tuple with the AddressInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetAddressInfoOk() (*StructuresAddressInfo, bool) { + if o == nil || isNil(o.AddressInfo) { + return nil, false + } + return o.AddressInfo, true +} + +// HasAddressInfo returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasAddressInfo() bool { + if o != nil && !isNil(o.AddressInfo) { + return true + } + + return false +} + +// SetAddressInfo gets a reference to the given StructuresAddressInfo and assigns it to the AddressInfo field. +func (o *PostgresqlPostgresql14) SetAddressInfo(v StructuresAddressInfo) { + o.AddressInfo = &v +} + +// GetWebuiUrl returns the WebuiUrl field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetWebuiUrl() string { + if o == nil || isNil(o.WebuiUrl) { + var ret string + return ret + } + return *o.WebuiUrl +} + +// GetWebuiUrlOk returns a tuple with the WebuiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetWebuiUrlOk() (*string, bool) { + if o == nil || isNil(o.WebuiUrl) { + return nil, false + } + return o.WebuiUrl, true +} + +// HasWebuiUrl returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasWebuiUrl() bool { + if o != nil && !isNil(o.WebuiUrl) { + return true + } + + return false +} + +// SetWebuiUrl gets a reference to the given string and assigns it to the WebuiUrl field. +func (o *PostgresqlPostgresql14) SetWebuiUrl(v string) { + o.WebuiUrl = &v +} + +// GetDiskUsed returns the DiskUsed field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetDiskUsed() string { + if o == nil || isNil(o.DiskUsed) { + var ret string + return ret + } + return *o.DiskUsed +} + +// GetDiskUsedOk returns a tuple with the DiskUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetDiskUsedOk() (*string, bool) { + if o == nil || isNil(o.DiskUsed) { + return nil, false + } + return o.DiskUsed, true +} + +// HasDiskUsed returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasDiskUsed() bool { + if o != nil && !isNil(o.DiskUsed) { + return true + } + + return false +} + +// SetDiskUsed gets a reference to the given string and assigns it to the DiskUsed field. +func (o *PostgresqlPostgresql14) SetDiskUsed(v string) { + o.DiskUsed = &v +} + +// GetDiskLeft returns the DiskLeft field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetDiskLeft() string { + if o == nil || isNil(o.DiskLeft) { + var ret string + return ret + } + return *o.DiskLeft +} + +// GetDiskLeftOk returns a tuple with the DiskLeft field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetDiskLeftOk() (*string, bool) { + if o == nil || isNil(o.DiskLeft) { + return nil, false + } + return o.DiskLeft, true +} + +// HasDiskLeft returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasDiskLeft() bool { + if o != nil && !isNil(o.DiskLeft) { + return true + } + + return false +} + +// SetDiskLeft gets a reference to the given string and assigns it to the DiskLeft field. +func (o *PostgresqlPostgresql14) SetDiskLeft(v string) { + o.DiskLeft = &v +} + +// GetReadOnly returns the ReadOnly field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetReadOnly() bool { + if o == nil || isNil(o.ReadOnly) { + var ret bool + return ret + } + return *o.ReadOnly +} + +// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetReadOnlyOk() (*bool, bool) { + if o == nil || isNil(o.ReadOnly) { + return nil, false + } + return o.ReadOnly, true +} + +// HasReadOnly returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasReadOnly() bool { + if o != nil && !isNil(o.ReadOnly) { + return true + } + + return false +} + +// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field. +func (o *PostgresqlPostgresql14) SetReadOnly(v bool) { + o.ReadOnly = &v +} + +// GetWebuiInstalling returns the WebuiInstalling field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14) GetWebuiInstalling() bool { + if o == nil || isNil(o.WebuiInstalling) { + var ret bool + return ret + } + return *o.WebuiInstalling +} + +// GetWebuiInstallingOk returns a tuple with the WebuiInstalling field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14) GetWebuiInstallingOk() (*bool, bool) { + if o == nil || isNil(o.WebuiInstalling) { + return nil, false + } + return o.WebuiInstalling, true +} + +// HasWebuiInstalling returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14) HasWebuiInstalling() bool { + if o != nil && !isNil(o.WebuiInstalling) { + return true + } + + return false +} + +// SetWebuiInstalling gets a reference to the given bool and assigns it to the WebuiInstalling field. +func (o *PostgresqlPostgresql14) SetWebuiInstalling(v bool) { + o.WebuiInstalling = &v +} + +func (o PostgresqlPostgresql14) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + if !isNil(o.Host) { + toSerialize["host"] = o.Host + } + if !isNil(o.Port) { + toSerialize["port"] = o.Port + } + if !isNil(o.AddressInfo) { + toSerialize["address_info"] = o.AddressInfo + } + if !isNil(o.WebuiUrl) { + toSerialize["webui_url"] = o.WebuiUrl + } + if !isNil(o.DiskUsed) { + toSerialize["disk_used"] = o.DiskUsed + } + if !isNil(o.DiskLeft) { + toSerialize["disk_left"] = o.DiskLeft + } + if !isNil(o.ReadOnly) { + toSerialize["read_only"] = o.ReadOnly + } + if !isNil(o.WebuiInstalling) { + toSerialize["webui_installing"] = o.WebuiInstalling + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPostgresql14 struct { + value *PostgresqlPostgresql14 + isSet bool +} + +func (v NullablePostgresqlPostgresql14) Get() *PostgresqlPostgresql14 { + return v.value +} + +func (v *NullablePostgresqlPostgresql14) Set(val *PostgresqlPostgresql14) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPostgresql14) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPostgresql14) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPostgresql14(val *PostgresqlPostgresql14) *NullablePostgresqlPostgresql14 { + return &NullablePostgresqlPostgresql14{value: val, isSet: true} +} + +func (v NullablePostgresqlPostgresql14) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPostgresql14) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_postgresql14_configuration.go b/model_postgresql_postgresql14_configuration.go new file mode 100644 index 0000000..11a2000 --- /dev/null +++ b/model_postgresql_postgresql14_configuration.go @@ -0,0 +1,331 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPostgresql14Configuration struct for PostgresqlPostgresql14Configuration +type PostgresqlPostgresql14Configuration struct { + CpuCount *int32 `json:"cpu_count,omitempty"` + DiskSize *int32 `json:"disk_size,omitempty"` + Memory *int32 `json:"memory,omitempty"` + Version *string `json:"version,omitempty"` + DisplayVersion *string `json:"display_version,omitempty"` + ParamConfig []StructuresParamConfig `json:"param_config,omitempty"` + ParamDefault *map[string]string `json:"param_default,omitempty"` +} + +// NewPostgresqlPostgresql14Configuration instantiates a new PostgresqlPostgresql14Configuration 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 NewPostgresqlPostgresql14Configuration() *PostgresqlPostgresql14Configuration { + this := PostgresqlPostgresql14Configuration{} + return &this +} + +// NewPostgresqlPostgresql14ConfigurationWithDefaults instantiates a new PostgresqlPostgresql14Configuration 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 NewPostgresqlPostgresql14ConfigurationWithDefaults() *PostgresqlPostgresql14Configuration { + this := PostgresqlPostgresql14Configuration{} + return &this +} + +// GetCpuCount returns the CpuCount field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14Configuration) GetCpuCount() int32 { + if o == nil || isNil(o.CpuCount) { + var ret int32 + return ret + } + return *o.CpuCount +} + +// GetCpuCountOk returns a tuple with the CpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14Configuration) GetCpuCountOk() (*int32, bool) { + if o == nil || isNil(o.CpuCount) { + return nil, false + } + return o.CpuCount, true +} + +// HasCpuCount returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14Configuration) HasCpuCount() bool { + if o != nil && !isNil(o.CpuCount) { + return true + } + + return false +} + +// SetCpuCount gets a reference to the given int32 and assigns it to the CpuCount field. +func (o *PostgresqlPostgresql14Configuration) SetCpuCount(v int32) { + o.CpuCount = &v +} + +// GetDiskSize returns the DiskSize field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14Configuration) GetDiskSize() int32 { + if o == nil || isNil(o.DiskSize) { + var ret int32 + return ret + } + return *o.DiskSize +} + +// GetDiskSizeOk returns a tuple with the DiskSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14Configuration) GetDiskSizeOk() (*int32, bool) { + if o == nil || isNil(o.DiskSize) { + return nil, false + } + return o.DiskSize, true +} + +// HasDiskSize returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14Configuration) HasDiskSize() bool { + if o != nil && !isNil(o.DiskSize) { + return true + } + + return false +} + +// SetDiskSize gets a reference to the given int32 and assigns it to the DiskSize field. +func (o *PostgresqlPostgresql14Configuration) SetDiskSize(v int32) { + o.DiskSize = &v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14Configuration) GetMemory() int32 { + if o == nil || isNil(o.Memory) { + var ret int32 + return ret + } + return *o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14Configuration) GetMemoryOk() (*int32, bool) { + if o == nil || isNil(o.Memory) { + return nil, false + } + return o.Memory, true +} + +// HasMemory returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14Configuration) HasMemory() bool { + if o != nil && !isNil(o.Memory) { + return true + } + + return false +} + +// SetMemory gets a reference to the given int32 and assigns it to the Memory field. +func (o *PostgresqlPostgresql14Configuration) SetMemory(v int32) { + o.Memory = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14Configuration) GetVersion() string { + if o == nil || isNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14Configuration) GetVersionOk() (*string, bool) { + if o == nil || isNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14Configuration) HasVersion() bool { + if o != nil && !isNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *PostgresqlPostgresql14Configuration) SetVersion(v string) { + o.Version = &v +} + +// GetDisplayVersion returns the DisplayVersion field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14Configuration) GetDisplayVersion() string { + if o == nil || isNil(o.DisplayVersion) { + var ret string + return ret + } + return *o.DisplayVersion +} + +// GetDisplayVersionOk returns a tuple with the DisplayVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14Configuration) GetDisplayVersionOk() (*string, bool) { + if o == nil || isNil(o.DisplayVersion) { + return nil, false + } + return o.DisplayVersion, true +} + +// HasDisplayVersion returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14Configuration) HasDisplayVersion() bool { + if o != nil && !isNil(o.DisplayVersion) { + return true + } + + return false +} + +// SetDisplayVersion gets a reference to the given string and assigns it to the DisplayVersion field. +func (o *PostgresqlPostgresql14Configuration) SetDisplayVersion(v string) { + o.DisplayVersion = &v +} + +// GetParamConfig returns the ParamConfig field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14Configuration) GetParamConfig() []StructuresParamConfig { + if o == nil || isNil(o.ParamConfig) { + var ret []StructuresParamConfig + return ret + } + return o.ParamConfig +} + +// GetParamConfigOk returns a tuple with the ParamConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14Configuration) GetParamConfigOk() ([]StructuresParamConfig, bool) { + if o == nil || isNil(o.ParamConfig) { + return nil, false + } + return o.ParamConfig, true +} + +// HasParamConfig returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14Configuration) HasParamConfig() bool { + if o != nil && !isNil(o.ParamConfig) { + return true + } + + return false +} + +// SetParamConfig gets a reference to the given []StructuresParamConfig and assigns it to the ParamConfig field. +func (o *PostgresqlPostgresql14Configuration) SetParamConfig(v []StructuresParamConfig) { + o.ParamConfig = v +} + +// GetParamDefault returns the ParamDefault field value if set, zero value otherwise. +func (o *PostgresqlPostgresql14Configuration) GetParamDefault() map[string]string { + if o == nil || isNil(o.ParamDefault) { + var ret map[string]string + return ret + } + return *o.ParamDefault +} + +// GetParamDefaultOk returns a tuple with the ParamDefault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql14Configuration) GetParamDefaultOk() (*map[string]string, bool) { + if o == nil || isNil(o.ParamDefault) { + return nil, false + } + return o.ParamDefault, true +} + +// HasParamDefault returns a boolean if a field has been set. +func (o *PostgresqlPostgresql14Configuration) HasParamDefault() bool { + if o != nil && !isNil(o.ParamDefault) { + return true + } + + return false +} + +// SetParamDefault gets a reference to the given map[string]string and assigns it to the ParamDefault field. +func (o *PostgresqlPostgresql14Configuration) SetParamDefault(v map[string]string) { + o.ParamDefault = &v +} + +func (o PostgresqlPostgresql14Configuration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CpuCount) { + toSerialize["cpu_count"] = o.CpuCount + } + if !isNil(o.DiskSize) { + toSerialize["disk_size"] = o.DiskSize + } + if !isNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + if !isNil(o.Version) { + toSerialize["version"] = o.Version + } + if !isNil(o.DisplayVersion) { + toSerialize["display_version"] = o.DisplayVersion + } + if !isNil(o.ParamConfig) { + toSerialize["param_config"] = o.ParamConfig + } + if !isNil(o.ParamDefault) { + toSerialize["param_default"] = o.ParamDefault + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPostgresql14Configuration struct { + value *PostgresqlPostgresql14Configuration + isSet bool +} + +func (v NullablePostgresqlPostgresql14Configuration) Get() *PostgresqlPostgresql14Configuration { + return v.value +} + +func (v *NullablePostgresqlPostgresql14Configuration) Set(val *PostgresqlPostgresql14Configuration) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPostgresql14Configuration) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPostgresql14Configuration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPostgresql14Configuration(val *PostgresqlPostgresql14Configuration) *NullablePostgresqlPostgresql14Configuration { + return &NullablePostgresqlPostgresql14Configuration{value: val, isSet: true} +} + +func (v NullablePostgresqlPostgresql14Configuration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPostgresql14Configuration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_postgresql15.go b/model_postgresql_postgresql15.go new file mode 100644 index 0000000..c6cf866 --- /dev/null +++ b/model_postgresql_postgresql15.go @@ -0,0 +1,403 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPostgresql15 struct for PostgresqlPostgresql15 +type PostgresqlPostgresql15 struct { + Configuration *PostgresqlPostgresql15Configuration `json:"configuration,omitempty"` + Host *string `json:"host,omitempty"` + Port *int32 `json:"port,omitempty"` + AddressInfo *StructuresAddressInfo `json:"address_info,omitempty"` + WebuiUrl *string `json:"webui_url,omitempty"` + DiskUsed *string `json:"disk_used,omitempty"` + DiskLeft *string `json:"disk_left,omitempty"` + ReadOnly *bool `json:"read_only,omitempty"` + WebuiInstalling *bool `json:"webui_installing,omitempty"` +} + +// NewPostgresqlPostgresql15 instantiates a new PostgresqlPostgresql15 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 NewPostgresqlPostgresql15() *PostgresqlPostgresql15 { + this := PostgresqlPostgresql15{} + return &this +} + +// NewPostgresqlPostgresql15WithDefaults instantiates a new PostgresqlPostgresql15 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 NewPostgresqlPostgresql15WithDefaults() *PostgresqlPostgresql15 { + this := PostgresqlPostgresql15{} + return &this +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetConfiguration() PostgresqlPostgresql15Configuration { + if o == nil || isNil(o.Configuration) { + var ret PostgresqlPostgresql15Configuration + return ret + } + return *o.Configuration +} + +// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetConfigurationOk() (*PostgresqlPostgresql15Configuration, bool) { + if o == nil || isNil(o.Configuration) { + return nil, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasConfiguration() bool { + if o != nil && !isNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given PostgresqlPostgresql15Configuration and assigns it to the Configuration field. +func (o *PostgresqlPostgresql15) SetConfiguration(v PostgresqlPostgresql15Configuration) { + o.Configuration = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetHost() string { + if o == nil || isNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetHostOk() (*string, bool) { + if o == nil || isNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasHost() bool { + if o != nil && !isNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *PostgresqlPostgresql15) SetHost(v string) { + o.Host = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *PostgresqlPostgresql15) SetPort(v int32) { + o.Port = &v +} + +// GetAddressInfo returns the AddressInfo field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetAddressInfo() StructuresAddressInfo { + if o == nil || isNil(o.AddressInfo) { + var ret StructuresAddressInfo + return ret + } + return *o.AddressInfo +} + +// GetAddressInfoOk returns a tuple with the AddressInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetAddressInfoOk() (*StructuresAddressInfo, bool) { + if o == nil || isNil(o.AddressInfo) { + return nil, false + } + return o.AddressInfo, true +} + +// HasAddressInfo returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasAddressInfo() bool { + if o != nil && !isNil(o.AddressInfo) { + return true + } + + return false +} + +// SetAddressInfo gets a reference to the given StructuresAddressInfo and assigns it to the AddressInfo field. +func (o *PostgresqlPostgresql15) SetAddressInfo(v StructuresAddressInfo) { + o.AddressInfo = &v +} + +// GetWebuiUrl returns the WebuiUrl field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetWebuiUrl() string { + if o == nil || isNil(o.WebuiUrl) { + var ret string + return ret + } + return *o.WebuiUrl +} + +// GetWebuiUrlOk returns a tuple with the WebuiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetWebuiUrlOk() (*string, bool) { + if o == nil || isNil(o.WebuiUrl) { + return nil, false + } + return o.WebuiUrl, true +} + +// HasWebuiUrl returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasWebuiUrl() bool { + if o != nil && !isNil(o.WebuiUrl) { + return true + } + + return false +} + +// SetWebuiUrl gets a reference to the given string and assigns it to the WebuiUrl field. +func (o *PostgresqlPostgresql15) SetWebuiUrl(v string) { + o.WebuiUrl = &v +} + +// GetDiskUsed returns the DiskUsed field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetDiskUsed() string { + if o == nil || isNil(o.DiskUsed) { + var ret string + return ret + } + return *o.DiskUsed +} + +// GetDiskUsedOk returns a tuple with the DiskUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetDiskUsedOk() (*string, bool) { + if o == nil || isNil(o.DiskUsed) { + return nil, false + } + return o.DiskUsed, true +} + +// HasDiskUsed returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasDiskUsed() bool { + if o != nil && !isNil(o.DiskUsed) { + return true + } + + return false +} + +// SetDiskUsed gets a reference to the given string and assigns it to the DiskUsed field. +func (o *PostgresqlPostgresql15) SetDiskUsed(v string) { + o.DiskUsed = &v +} + +// GetDiskLeft returns the DiskLeft field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetDiskLeft() string { + if o == nil || isNil(o.DiskLeft) { + var ret string + return ret + } + return *o.DiskLeft +} + +// GetDiskLeftOk returns a tuple with the DiskLeft field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetDiskLeftOk() (*string, bool) { + if o == nil || isNil(o.DiskLeft) { + return nil, false + } + return o.DiskLeft, true +} + +// HasDiskLeft returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasDiskLeft() bool { + if o != nil && !isNil(o.DiskLeft) { + return true + } + + return false +} + +// SetDiskLeft gets a reference to the given string and assigns it to the DiskLeft field. +func (o *PostgresqlPostgresql15) SetDiskLeft(v string) { + o.DiskLeft = &v +} + +// GetReadOnly returns the ReadOnly field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetReadOnly() bool { + if o == nil || isNil(o.ReadOnly) { + var ret bool + return ret + } + return *o.ReadOnly +} + +// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetReadOnlyOk() (*bool, bool) { + if o == nil || isNil(o.ReadOnly) { + return nil, false + } + return o.ReadOnly, true +} + +// HasReadOnly returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasReadOnly() bool { + if o != nil && !isNil(o.ReadOnly) { + return true + } + + return false +} + +// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field. +func (o *PostgresqlPostgresql15) SetReadOnly(v bool) { + o.ReadOnly = &v +} + +// GetWebuiInstalling returns the WebuiInstalling field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15) GetWebuiInstalling() bool { + if o == nil || isNil(o.WebuiInstalling) { + var ret bool + return ret + } + return *o.WebuiInstalling +} + +// GetWebuiInstallingOk returns a tuple with the WebuiInstalling field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15) GetWebuiInstallingOk() (*bool, bool) { + if o == nil || isNil(o.WebuiInstalling) { + return nil, false + } + return o.WebuiInstalling, true +} + +// HasWebuiInstalling returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15) HasWebuiInstalling() bool { + if o != nil && !isNil(o.WebuiInstalling) { + return true + } + + return false +} + +// SetWebuiInstalling gets a reference to the given bool and assigns it to the WebuiInstalling field. +func (o *PostgresqlPostgresql15) SetWebuiInstalling(v bool) { + o.WebuiInstalling = &v +} + +func (o PostgresqlPostgresql15) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + if !isNil(o.Host) { + toSerialize["host"] = o.Host + } + if !isNil(o.Port) { + toSerialize["port"] = o.Port + } + if !isNil(o.AddressInfo) { + toSerialize["address_info"] = o.AddressInfo + } + if !isNil(o.WebuiUrl) { + toSerialize["webui_url"] = o.WebuiUrl + } + if !isNil(o.DiskUsed) { + toSerialize["disk_used"] = o.DiskUsed + } + if !isNil(o.DiskLeft) { + toSerialize["disk_left"] = o.DiskLeft + } + if !isNil(o.ReadOnly) { + toSerialize["read_only"] = o.ReadOnly + } + if !isNil(o.WebuiInstalling) { + toSerialize["webui_installing"] = o.WebuiInstalling + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPostgresql15 struct { + value *PostgresqlPostgresql15 + isSet bool +} + +func (v NullablePostgresqlPostgresql15) Get() *PostgresqlPostgresql15 { + return v.value +} + +func (v *NullablePostgresqlPostgresql15) Set(val *PostgresqlPostgresql15) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPostgresql15) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPostgresql15) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPostgresql15(val *PostgresqlPostgresql15) *NullablePostgresqlPostgresql15 { + return &NullablePostgresqlPostgresql15{value: val, isSet: true} +} + +func (v NullablePostgresqlPostgresql15) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPostgresql15) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_postgresql15_configuration.go b/model_postgresql_postgresql15_configuration.go new file mode 100644 index 0000000..cb6492f --- /dev/null +++ b/model_postgresql_postgresql15_configuration.go @@ -0,0 +1,331 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlPostgresql15Configuration struct for PostgresqlPostgresql15Configuration +type PostgresqlPostgresql15Configuration struct { + CpuCount *int32 `json:"cpu_count,omitempty"` + DiskSize *int32 `json:"disk_size,omitempty"` + Memory *int32 `json:"memory,omitempty"` + Version *string `json:"version,omitempty"` + DisplayVersion *string `json:"display_version,omitempty"` + ParamConfig []StructuresParamConfig `json:"param_config,omitempty"` + ParamDefault *map[string]string `json:"param_default,omitempty"` +} + +// NewPostgresqlPostgresql15Configuration instantiates a new PostgresqlPostgresql15Configuration 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 NewPostgresqlPostgresql15Configuration() *PostgresqlPostgresql15Configuration { + this := PostgresqlPostgresql15Configuration{} + return &this +} + +// NewPostgresqlPostgresql15ConfigurationWithDefaults instantiates a new PostgresqlPostgresql15Configuration 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 NewPostgresqlPostgresql15ConfigurationWithDefaults() *PostgresqlPostgresql15Configuration { + this := PostgresqlPostgresql15Configuration{} + return &this +} + +// GetCpuCount returns the CpuCount field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15Configuration) GetCpuCount() int32 { + if o == nil || isNil(o.CpuCount) { + var ret int32 + return ret + } + return *o.CpuCount +} + +// GetCpuCountOk returns a tuple with the CpuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15Configuration) GetCpuCountOk() (*int32, bool) { + if o == nil || isNil(o.CpuCount) { + return nil, false + } + return o.CpuCount, true +} + +// HasCpuCount returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15Configuration) HasCpuCount() bool { + if o != nil && !isNil(o.CpuCount) { + return true + } + + return false +} + +// SetCpuCount gets a reference to the given int32 and assigns it to the CpuCount field. +func (o *PostgresqlPostgresql15Configuration) SetCpuCount(v int32) { + o.CpuCount = &v +} + +// GetDiskSize returns the DiskSize field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15Configuration) GetDiskSize() int32 { + if o == nil || isNil(o.DiskSize) { + var ret int32 + return ret + } + return *o.DiskSize +} + +// GetDiskSizeOk returns a tuple with the DiskSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15Configuration) GetDiskSizeOk() (*int32, bool) { + if o == nil || isNil(o.DiskSize) { + return nil, false + } + return o.DiskSize, true +} + +// HasDiskSize returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15Configuration) HasDiskSize() bool { + if o != nil && !isNil(o.DiskSize) { + return true + } + + return false +} + +// SetDiskSize gets a reference to the given int32 and assigns it to the DiskSize field. +func (o *PostgresqlPostgresql15Configuration) SetDiskSize(v int32) { + o.DiskSize = &v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15Configuration) GetMemory() int32 { + if o == nil || isNil(o.Memory) { + var ret int32 + return ret + } + return *o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15Configuration) GetMemoryOk() (*int32, bool) { + if o == nil || isNil(o.Memory) { + return nil, false + } + return o.Memory, true +} + +// HasMemory returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15Configuration) HasMemory() bool { + if o != nil && !isNil(o.Memory) { + return true + } + + return false +} + +// SetMemory gets a reference to the given int32 and assigns it to the Memory field. +func (o *PostgresqlPostgresql15Configuration) SetMemory(v int32) { + o.Memory = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15Configuration) GetVersion() string { + if o == nil || isNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15Configuration) GetVersionOk() (*string, bool) { + if o == nil || isNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15Configuration) HasVersion() bool { + if o != nil && !isNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *PostgresqlPostgresql15Configuration) SetVersion(v string) { + o.Version = &v +} + +// GetDisplayVersion returns the DisplayVersion field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15Configuration) GetDisplayVersion() string { + if o == nil || isNil(o.DisplayVersion) { + var ret string + return ret + } + return *o.DisplayVersion +} + +// GetDisplayVersionOk returns a tuple with the DisplayVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15Configuration) GetDisplayVersionOk() (*string, bool) { + if o == nil || isNil(o.DisplayVersion) { + return nil, false + } + return o.DisplayVersion, true +} + +// HasDisplayVersion returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15Configuration) HasDisplayVersion() bool { + if o != nil && !isNil(o.DisplayVersion) { + return true + } + + return false +} + +// SetDisplayVersion gets a reference to the given string and assigns it to the DisplayVersion field. +func (o *PostgresqlPostgresql15Configuration) SetDisplayVersion(v string) { + o.DisplayVersion = &v +} + +// GetParamConfig returns the ParamConfig field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15Configuration) GetParamConfig() []StructuresParamConfig { + if o == nil || isNil(o.ParamConfig) { + var ret []StructuresParamConfig + return ret + } + return o.ParamConfig +} + +// GetParamConfigOk returns a tuple with the ParamConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15Configuration) GetParamConfigOk() ([]StructuresParamConfig, bool) { + if o == nil || isNil(o.ParamConfig) { + return nil, false + } + return o.ParamConfig, true +} + +// HasParamConfig returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15Configuration) HasParamConfig() bool { + if o != nil && !isNil(o.ParamConfig) { + return true + } + + return false +} + +// SetParamConfig gets a reference to the given []StructuresParamConfig and assigns it to the ParamConfig field. +func (o *PostgresqlPostgresql15Configuration) SetParamConfig(v []StructuresParamConfig) { + o.ParamConfig = v +} + +// GetParamDefault returns the ParamDefault field value if set, zero value otherwise. +func (o *PostgresqlPostgresql15Configuration) GetParamDefault() map[string]string { + if o == nil || isNil(o.ParamDefault) { + var ret map[string]string + return ret + } + return *o.ParamDefault +} + +// GetParamDefaultOk returns a tuple with the ParamDefault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlPostgresql15Configuration) GetParamDefaultOk() (*map[string]string, bool) { + if o == nil || isNil(o.ParamDefault) { + return nil, false + } + return o.ParamDefault, true +} + +// HasParamDefault returns a boolean if a field has been set. +func (o *PostgresqlPostgresql15Configuration) HasParamDefault() bool { + if o != nil && !isNil(o.ParamDefault) { + return true + } + + return false +} + +// SetParamDefault gets a reference to the given map[string]string and assigns it to the ParamDefault field. +func (o *PostgresqlPostgresql15Configuration) SetParamDefault(v map[string]string) { + o.ParamDefault = &v +} + +func (o PostgresqlPostgresql15Configuration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CpuCount) { + toSerialize["cpu_count"] = o.CpuCount + } + if !isNil(o.DiskSize) { + toSerialize["disk_size"] = o.DiskSize + } + if !isNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + if !isNil(o.Version) { + toSerialize["version"] = o.Version + } + if !isNil(o.DisplayVersion) { + toSerialize["display_version"] = o.DisplayVersion + } + if !isNil(o.ParamConfig) { + toSerialize["param_config"] = o.ParamConfig + } + if !isNil(o.ParamDefault) { + toSerialize["param_default"] = o.ParamDefault + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlPostgresql15Configuration struct { + value *PostgresqlPostgresql15Configuration + isSet bool +} + +func (v NullablePostgresqlPostgresql15Configuration) Get() *PostgresqlPostgresql15Configuration { + return v.value +} + +func (v *NullablePostgresqlPostgresql15Configuration) Set(val *PostgresqlPostgresql15Configuration) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlPostgresql15Configuration) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlPostgresql15Configuration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlPostgresql15Configuration(val *PostgresqlPostgresql15Configuration) *NullablePostgresqlPostgresql15Configuration { + return &NullablePostgresqlPostgresql15Configuration{value: val, isSet: true} +} + +func (v NullablePostgresqlPostgresql15Configuration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlPostgresql15Configuration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_role.go b/model_postgresql_role.go new file mode 100644 index 0000000..a33bd9d --- /dev/null +++ b/model_postgresql_role.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlRole struct for PostgresqlRole +type PostgresqlRole struct { + Name *string `json:"name,omitempty"` + Password *string `json:"password,omitempty"` + ParentRole []string `json:"parent_role,omitempty"` + Predefined *bool `json:"predefined,omitempty"` +} + +// NewPostgresqlRole instantiates a new PostgresqlRole 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 NewPostgresqlRole() *PostgresqlRole { + this := PostgresqlRole{} + return &this +} + +// NewPostgresqlRoleWithDefaults instantiates a new PostgresqlRole 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 NewPostgresqlRoleWithDefaults() *PostgresqlRole { + this := PostgresqlRole{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PostgresqlRole) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlRole) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PostgresqlRole) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PostgresqlRole) SetName(v string) { + o.Name = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *PostgresqlRole) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlRole) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *PostgresqlRole) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *PostgresqlRole) SetPassword(v string) { + o.Password = &v +} + +// GetParentRole returns the ParentRole field value if set, zero value otherwise. +func (o *PostgresqlRole) GetParentRole() []string { + if o == nil || isNil(o.ParentRole) { + var ret []string + return ret + } + return o.ParentRole +} + +// GetParentRoleOk returns a tuple with the ParentRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlRole) GetParentRoleOk() ([]string, bool) { + if o == nil || isNil(o.ParentRole) { + return nil, false + } + return o.ParentRole, true +} + +// HasParentRole returns a boolean if a field has been set. +func (o *PostgresqlRole) HasParentRole() bool { + if o != nil && !isNil(o.ParentRole) { + return true + } + + return false +} + +// SetParentRole gets a reference to the given []string and assigns it to the ParentRole field. +func (o *PostgresqlRole) SetParentRole(v []string) { + o.ParentRole = v +} + +// GetPredefined returns the Predefined field value if set, zero value otherwise. +func (o *PostgresqlRole) GetPredefined() bool { + if o == nil || isNil(o.Predefined) { + var ret bool + return ret + } + return *o.Predefined +} + +// GetPredefinedOk returns a tuple with the Predefined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlRole) GetPredefinedOk() (*bool, bool) { + if o == nil || isNil(o.Predefined) { + return nil, false + } + return o.Predefined, true +} + +// HasPredefined returns a boolean if a field has been set. +func (o *PostgresqlRole) HasPredefined() bool { + if o != nil && !isNil(o.Predefined) { + return true + } + + return false +} + +// SetPredefined gets a reference to the given bool and assigns it to the Predefined field. +func (o *PostgresqlRole) SetPredefined(v bool) { + o.Predefined = &v +} + +func (o PostgresqlRole) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["name"] = o.Name + } + if !isNil(o.Password) { + toSerialize["password"] = o.Password + } + if !isNil(o.ParentRole) { + toSerialize["parent_role"] = o.ParentRole + } + if !isNil(o.Predefined) { + toSerialize["predefined"] = o.Predefined + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlRole struct { + value *PostgresqlRole + isSet bool +} + +func (v NullablePostgresqlRole) Get() *PostgresqlRole { + return v.value +} + +func (v *NullablePostgresqlRole) Set(val *PostgresqlRole) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlRole) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlRole(val *PostgresqlRole) *NullablePostgresqlRole { + return &NullablePostgresqlRole{value: val, isSet: true} +} + +func (v NullablePostgresqlRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_statistic_get_cpu_details_response.go b/model_postgresql_statistic_get_cpu_details_response.go new file mode 100644 index 0000000..9103ab2 --- /dev/null +++ b/model_postgresql_statistic_get_cpu_details_response.go @@ -0,0 +1,367 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlStatisticGetCpuDetailsResponse struct for PostgresqlStatisticGetCpuDetailsResponse +type PostgresqlStatisticGetCpuDetailsResponse struct { + Date []string `json:"date,omitempty"` + User []float64 `json:"user,omitempty"` + Nice []float64 `json:"nice,omitempty"` + System []float64 `json:"system,omitempty"` + Idle []float64 `json:"idle,omitempty"` + Iowait []float64 `json:"iowait,omitempty"` + Irq []float64 `json:"irq,omitempty"` + Softirq []float64 `json:"softirq,omitempty"` +} + +// NewPostgresqlStatisticGetCpuDetailsResponse instantiates a new PostgresqlStatisticGetCpuDetailsResponse 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 NewPostgresqlStatisticGetCpuDetailsResponse() *PostgresqlStatisticGetCpuDetailsResponse { + this := PostgresqlStatisticGetCpuDetailsResponse{} + return &this +} + +// NewPostgresqlStatisticGetCpuDetailsResponseWithDefaults instantiates a new PostgresqlStatisticGetCpuDetailsResponse 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 NewPostgresqlStatisticGetCpuDetailsResponseWithDefaults() *PostgresqlStatisticGetCpuDetailsResponse { + this := PostgresqlStatisticGetCpuDetailsResponse{} + return &this +} + +// GetDate returns the Date field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetDate() []string { + if o == nil || isNil(o.Date) { + var ret []string + return ret + } + return o.Date +} + +// GetDateOk returns a tuple with the Date field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetDateOk() ([]string, bool) { + if o == nil || isNil(o.Date) { + return nil, false + } + return o.Date, true +} + +// HasDate returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasDate() bool { + if o != nil && !isNil(o.Date) { + return true + } + + return false +} + +// SetDate gets a reference to the given []string and assigns it to the Date field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetDate(v []string) { + o.Date = v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetUser() []float64 { + if o == nil || isNil(o.User) { + var ret []float64 + return ret + } + return o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetUserOk() ([]float64, bool) { + if o == nil || isNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasUser() bool { + if o != nil && !isNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given []float64 and assigns it to the User field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetUser(v []float64) { + o.User = v +} + +// GetNice returns the Nice field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetNice() []float64 { + if o == nil || isNil(o.Nice) { + var ret []float64 + return ret + } + return o.Nice +} + +// GetNiceOk returns a tuple with the Nice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetNiceOk() ([]float64, bool) { + if o == nil || isNil(o.Nice) { + return nil, false + } + return o.Nice, true +} + +// HasNice returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasNice() bool { + if o != nil && !isNil(o.Nice) { + return true + } + + return false +} + +// SetNice gets a reference to the given []float64 and assigns it to the Nice field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetNice(v []float64) { + o.Nice = v +} + +// GetSystem returns the System field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSystem() []float64 { + if o == nil || isNil(o.System) { + var ret []float64 + return ret + } + return o.System +} + +// GetSystemOk returns a tuple with the System field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSystemOk() ([]float64, bool) { + if o == nil || isNil(o.System) { + return nil, false + } + return o.System, true +} + +// HasSystem returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasSystem() bool { + if o != nil && !isNil(o.System) { + return true + } + + return false +} + +// SetSystem gets a reference to the given []float64 and assigns it to the System field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetSystem(v []float64) { + o.System = v +} + +// GetIdle returns the Idle field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIdle() []float64 { + if o == nil || isNil(o.Idle) { + var ret []float64 + return ret + } + return o.Idle +} + +// GetIdleOk returns a tuple with the Idle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIdleOk() ([]float64, bool) { + if o == nil || isNil(o.Idle) { + return nil, false + } + return o.Idle, true +} + +// HasIdle returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasIdle() bool { + if o != nil && !isNil(o.Idle) { + return true + } + + return false +} + +// SetIdle gets a reference to the given []float64 and assigns it to the Idle field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetIdle(v []float64) { + o.Idle = v +} + +// GetIowait returns the Iowait field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIowait() []float64 { + if o == nil || isNil(o.Iowait) { + var ret []float64 + return ret + } + return o.Iowait +} + +// GetIowaitOk returns a tuple with the Iowait field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIowaitOk() ([]float64, bool) { + if o == nil || isNil(o.Iowait) { + return nil, false + } + return o.Iowait, true +} + +// HasIowait returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasIowait() bool { + if o != nil && !isNil(o.Iowait) { + return true + } + + return false +} + +// SetIowait gets a reference to the given []float64 and assigns it to the Iowait field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetIowait(v []float64) { + o.Iowait = v +} + +// GetIrq returns the Irq field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIrq() []float64 { + if o == nil || isNil(o.Irq) { + var ret []float64 + return ret + } + return o.Irq +} + +// GetIrqOk returns a tuple with the Irq field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetIrqOk() ([]float64, bool) { + if o == nil || isNil(o.Irq) { + return nil, false + } + return o.Irq, true +} + +// HasIrq returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasIrq() bool { + if o != nil && !isNil(o.Irq) { + return true + } + + return false +} + +// SetIrq gets a reference to the given []float64 and assigns it to the Irq field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetIrq(v []float64) { + o.Irq = v +} + +// GetSoftirq returns the Softirq field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSoftirq() []float64 { + if o == nil || isNil(o.Softirq) { + var ret []float64 + return ret + } + return o.Softirq +} + +// GetSoftirqOk returns a tuple with the Softirq field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) GetSoftirqOk() ([]float64, bool) { + if o == nil || isNil(o.Softirq) { + return nil, false + } + return o.Softirq, true +} + +// HasSoftirq returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuDetailsResponse) HasSoftirq() bool { + if o != nil && !isNil(o.Softirq) { + return true + } + + return false +} + +// SetSoftirq gets a reference to the given []float64 and assigns it to the Softirq field. +func (o *PostgresqlStatisticGetCpuDetailsResponse) SetSoftirq(v []float64) { + o.Softirq = v +} + +func (o PostgresqlStatisticGetCpuDetailsResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Date) { + toSerialize["date"] = o.Date + } + if !isNil(o.User) { + toSerialize["user"] = o.User + } + if !isNil(o.Nice) { + toSerialize["nice"] = o.Nice + } + if !isNil(o.System) { + toSerialize["system"] = o.System + } + if !isNil(o.Idle) { + toSerialize["idle"] = o.Idle + } + if !isNil(o.Iowait) { + toSerialize["iowait"] = o.Iowait + } + if !isNil(o.Irq) { + toSerialize["irq"] = o.Irq + } + if !isNil(o.Softirq) { + toSerialize["softirq"] = o.Softirq + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlStatisticGetCpuDetailsResponse struct { + value *PostgresqlStatisticGetCpuDetailsResponse + isSet bool +} + +func (v NullablePostgresqlStatisticGetCpuDetailsResponse) Get() *PostgresqlStatisticGetCpuDetailsResponse { + return v.value +} + +func (v *NullablePostgresqlStatisticGetCpuDetailsResponse) Set(val *PostgresqlStatisticGetCpuDetailsResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlStatisticGetCpuDetailsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlStatisticGetCpuDetailsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlStatisticGetCpuDetailsResponse(val *PostgresqlStatisticGetCpuDetailsResponse) *NullablePostgresqlStatisticGetCpuDetailsResponse { + return &NullablePostgresqlStatisticGetCpuDetailsResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlStatisticGetCpuDetailsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlStatisticGetCpuDetailsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_statistic_get_cpu_response.go b/model_postgresql_statistic_get_cpu_response.go new file mode 100644 index 0000000..a403612 --- /dev/null +++ b/model_postgresql_statistic_get_cpu_response.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlStatisticGetCpuResponse struct for PostgresqlStatisticGetCpuResponse +type PostgresqlStatisticGetCpuResponse struct { + Cpu *StructuresStatisticSeriesData `json:"cpu,omitempty"` +} + +// NewPostgresqlStatisticGetCpuResponse instantiates a new PostgresqlStatisticGetCpuResponse 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 NewPostgresqlStatisticGetCpuResponse() *PostgresqlStatisticGetCpuResponse { + this := PostgresqlStatisticGetCpuResponse{} + return &this +} + +// NewPostgresqlStatisticGetCpuResponseWithDefaults instantiates a new PostgresqlStatisticGetCpuResponse 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 NewPostgresqlStatisticGetCpuResponseWithDefaults() *PostgresqlStatisticGetCpuResponse { + this := PostgresqlStatisticGetCpuResponse{} + return &this +} + +// GetCpu returns the Cpu field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetCpuResponse) GetCpu() StructuresStatisticSeriesData { + if o == nil || isNil(o.Cpu) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetCpuResponse) GetCpuOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.Cpu) { + return nil, false + } + return o.Cpu, true +} + +// HasCpu returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetCpuResponse) HasCpu() bool { + if o != nil && !isNil(o.Cpu) { + return true + } + + return false +} + +// SetCpu gets a reference to the given StructuresStatisticSeriesData and assigns it to the Cpu field. +func (o *PostgresqlStatisticGetCpuResponse) SetCpu(v StructuresStatisticSeriesData) { + o.Cpu = &v +} + +func (o PostgresqlStatisticGetCpuResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Cpu) { + toSerialize["cpu"] = o.Cpu + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlStatisticGetCpuResponse struct { + value *PostgresqlStatisticGetCpuResponse + isSet bool +} + +func (v NullablePostgresqlStatisticGetCpuResponse) Get() *PostgresqlStatisticGetCpuResponse { + return v.value +} + +func (v *NullablePostgresqlStatisticGetCpuResponse) Set(val *PostgresqlStatisticGetCpuResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlStatisticGetCpuResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlStatisticGetCpuResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlStatisticGetCpuResponse(val *PostgresqlStatisticGetCpuResponse) *NullablePostgresqlStatisticGetCpuResponse { + return &NullablePostgresqlStatisticGetCpuResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlStatisticGetCpuResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlStatisticGetCpuResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_statistic_get_disk_response.go b/model_postgresql_statistic_get_disk_response.go new file mode 100644 index 0000000..c3f84f9 --- /dev/null +++ b/model_postgresql_statistic_get_disk_response.go @@ -0,0 +1,151 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlStatisticGetDiskResponse struct for PostgresqlStatisticGetDiskResponse +type PostgresqlStatisticGetDiskResponse struct { + DataRead *StructuresStatisticSeriesData `json:"data_read,omitempty"` + DataWrite *StructuresStatisticSeriesData `json:"data_write,omitempty"` +} + +// NewPostgresqlStatisticGetDiskResponse instantiates a new PostgresqlStatisticGetDiskResponse 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 NewPostgresqlStatisticGetDiskResponse() *PostgresqlStatisticGetDiskResponse { + this := PostgresqlStatisticGetDiskResponse{} + return &this +} + +// NewPostgresqlStatisticGetDiskResponseWithDefaults instantiates a new PostgresqlStatisticGetDiskResponse 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 NewPostgresqlStatisticGetDiskResponseWithDefaults() *PostgresqlStatisticGetDiskResponse { + this := PostgresqlStatisticGetDiskResponse{} + return &this +} + +// GetDataRead returns the DataRead field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetDiskResponse) GetDataRead() StructuresStatisticSeriesData { + if o == nil || isNil(o.DataRead) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.DataRead +} + +// GetDataReadOk returns a tuple with the DataRead field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetDiskResponse) GetDataReadOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.DataRead) { + return nil, false + } + return o.DataRead, true +} + +// HasDataRead returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetDiskResponse) HasDataRead() bool { + if o != nil && !isNil(o.DataRead) { + return true + } + + return false +} + +// SetDataRead gets a reference to the given StructuresStatisticSeriesData and assigns it to the DataRead field. +func (o *PostgresqlStatisticGetDiskResponse) SetDataRead(v StructuresStatisticSeriesData) { + o.DataRead = &v +} + +// GetDataWrite returns the DataWrite field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetDiskResponse) GetDataWrite() StructuresStatisticSeriesData { + if o == nil || isNil(o.DataWrite) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.DataWrite +} + +// GetDataWriteOk returns a tuple with the DataWrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetDiskResponse) GetDataWriteOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.DataWrite) { + return nil, false + } + return o.DataWrite, true +} + +// HasDataWrite returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetDiskResponse) HasDataWrite() bool { + if o != nil && !isNil(o.DataWrite) { + return true + } + + return false +} + +// SetDataWrite gets a reference to the given StructuresStatisticSeriesData and assigns it to the DataWrite field. +func (o *PostgresqlStatisticGetDiskResponse) SetDataWrite(v StructuresStatisticSeriesData) { + o.DataWrite = &v +} + +func (o PostgresqlStatisticGetDiskResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DataRead) { + toSerialize["data_read"] = o.DataRead + } + if !isNil(o.DataWrite) { + toSerialize["data_write"] = o.DataWrite + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlStatisticGetDiskResponse struct { + value *PostgresqlStatisticGetDiskResponse + isSet bool +} + +func (v NullablePostgresqlStatisticGetDiskResponse) Get() *PostgresqlStatisticGetDiskResponse { + return v.value +} + +func (v *NullablePostgresqlStatisticGetDiskResponse) Set(val *PostgresqlStatisticGetDiskResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlStatisticGetDiskResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlStatisticGetDiskResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlStatisticGetDiskResponse(val *PostgresqlStatisticGetDiskResponse) *NullablePostgresqlStatisticGetDiskResponse { + return &NullablePostgresqlStatisticGetDiskResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlStatisticGetDiskResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlStatisticGetDiskResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_statistic_get_disk_usage_response.go b/model_postgresql_statistic_get_disk_usage_response.go new file mode 100644 index 0000000..ba22a4f --- /dev/null +++ b/model_postgresql_statistic_get_disk_usage_response.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlStatisticGetDiskUsageResponse struct for PostgresqlStatisticGetDiskUsageResponse +type PostgresqlStatisticGetDiskUsageResponse struct { + DiskUsage *StructuresStatisticSeriesData `json:"disk_usage,omitempty"` +} + +// NewPostgresqlStatisticGetDiskUsageResponse instantiates a new PostgresqlStatisticGetDiskUsageResponse 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 NewPostgresqlStatisticGetDiskUsageResponse() *PostgresqlStatisticGetDiskUsageResponse { + this := PostgresqlStatisticGetDiskUsageResponse{} + return &this +} + +// NewPostgresqlStatisticGetDiskUsageResponseWithDefaults instantiates a new PostgresqlStatisticGetDiskUsageResponse 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 NewPostgresqlStatisticGetDiskUsageResponseWithDefaults() *PostgresqlStatisticGetDiskUsageResponse { + this := PostgresqlStatisticGetDiskUsageResponse{} + return &this +} + +// GetDiskUsage returns the DiskUsage field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetDiskUsageResponse) GetDiskUsage() StructuresStatisticSeriesData { + if o == nil || isNil(o.DiskUsage) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.DiskUsage +} + +// GetDiskUsageOk returns a tuple with the DiskUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetDiskUsageResponse) GetDiskUsageOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.DiskUsage) { + return nil, false + } + return o.DiskUsage, true +} + +// HasDiskUsage returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetDiskUsageResponse) HasDiskUsage() bool { + if o != nil && !isNil(o.DiskUsage) { + return true + } + + return false +} + +// SetDiskUsage gets a reference to the given StructuresStatisticSeriesData and assigns it to the DiskUsage field. +func (o *PostgresqlStatisticGetDiskUsageResponse) SetDiskUsage(v StructuresStatisticSeriesData) { + o.DiskUsage = &v +} + +func (o PostgresqlStatisticGetDiskUsageResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DiskUsage) { + toSerialize["disk_usage"] = o.DiskUsage + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlStatisticGetDiskUsageResponse struct { + value *PostgresqlStatisticGetDiskUsageResponse + isSet bool +} + +func (v NullablePostgresqlStatisticGetDiskUsageResponse) Get() *PostgresqlStatisticGetDiskUsageResponse { + return v.value +} + +func (v *NullablePostgresqlStatisticGetDiskUsageResponse) Set(val *PostgresqlStatisticGetDiskUsageResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlStatisticGetDiskUsageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlStatisticGetDiskUsageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlStatisticGetDiskUsageResponse(val *PostgresqlStatisticGetDiskUsageResponse) *NullablePostgresqlStatisticGetDiskUsageResponse { + return &NullablePostgresqlStatisticGetDiskUsageResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlStatisticGetDiskUsageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlStatisticGetDiskUsageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_statistic_get_load_average_response.go b/model_postgresql_statistic_get_load_average_response.go new file mode 100644 index 0000000..afee156 --- /dev/null +++ b/model_postgresql_statistic_get_load_average_response.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlStatisticGetLoadAverageResponse struct for PostgresqlStatisticGetLoadAverageResponse +type PostgresqlStatisticGetLoadAverageResponse struct { + Date []string `json:"date,omitempty"` + La1 []float64 `json:"la1,omitempty"` + La5 []float64 `json:"la5,omitempty"` + La15 []float64 `json:"la15,omitempty"` +} + +// NewPostgresqlStatisticGetLoadAverageResponse instantiates a new PostgresqlStatisticGetLoadAverageResponse 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 NewPostgresqlStatisticGetLoadAverageResponse() *PostgresqlStatisticGetLoadAverageResponse { + this := PostgresqlStatisticGetLoadAverageResponse{} + return &this +} + +// NewPostgresqlStatisticGetLoadAverageResponseWithDefaults instantiates a new PostgresqlStatisticGetLoadAverageResponse 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 NewPostgresqlStatisticGetLoadAverageResponseWithDefaults() *PostgresqlStatisticGetLoadAverageResponse { + this := PostgresqlStatisticGetLoadAverageResponse{} + return &this +} + +// GetDate returns the Date field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetDate() []string { + if o == nil || isNil(o.Date) { + var ret []string + return ret + } + return o.Date +} + +// GetDateOk returns a tuple with the Date field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetDateOk() ([]string, bool) { + if o == nil || isNil(o.Date) { + return nil, false + } + return o.Date, true +} + +// HasDate returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) HasDate() bool { + if o != nil && !isNil(o.Date) { + return true + } + + return false +} + +// SetDate gets a reference to the given []string and assigns it to the Date field. +func (o *PostgresqlStatisticGetLoadAverageResponse) SetDate(v []string) { + o.Date = v +} + +// GetLa1 returns the La1 field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa1() []float64 { + if o == nil || isNil(o.La1) { + var ret []float64 + return ret + } + return o.La1 +} + +// GetLa1Ok returns a tuple with the La1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa1Ok() ([]float64, bool) { + if o == nil || isNil(o.La1) { + return nil, false + } + return o.La1, true +} + +// HasLa1 returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) HasLa1() bool { + if o != nil && !isNil(o.La1) { + return true + } + + return false +} + +// SetLa1 gets a reference to the given []float64 and assigns it to the La1 field. +func (o *PostgresqlStatisticGetLoadAverageResponse) SetLa1(v []float64) { + o.La1 = v +} + +// GetLa5 returns the La5 field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa5() []float64 { + if o == nil || isNil(o.La5) { + var ret []float64 + return ret + } + return o.La5 +} + +// GetLa5Ok returns a tuple with the La5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa5Ok() ([]float64, bool) { + if o == nil || isNil(o.La5) { + return nil, false + } + return o.La5, true +} + +// HasLa5 returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) HasLa5() bool { + if o != nil && !isNil(o.La5) { + return true + } + + return false +} + +// SetLa5 gets a reference to the given []float64 and assigns it to the La5 field. +func (o *PostgresqlStatisticGetLoadAverageResponse) SetLa5(v []float64) { + o.La5 = v +} + +// GetLa15 returns the La15 field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa15() []float64 { + if o == nil || isNil(o.La15) { + var ret []float64 + return ret + } + return o.La15 +} + +// GetLa15Ok returns a tuple with the La15 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) GetLa15Ok() ([]float64, bool) { + if o == nil || isNil(o.La15) { + return nil, false + } + return o.La15, true +} + +// HasLa15 returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetLoadAverageResponse) HasLa15() bool { + if o != nil && !isNil(o.La15) { + return true + } + + return false +} + +// SetLa15 gets a reference to the given []float64 and assigns it to the La15 field. +func (o *PostgresqlStatisticGetLoadAverageResponse) SetLa15(v []float64) { + o.La15 = v +} + +func (o PostgresqlStatisticGetLoadAverageResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Date) { + toSerialize["date"] = o.Date + } + if !isNil(o.La1) { + toSerialize["la1"] = o.La1 + } + if !isNil(o.La5) { + toSerialize["la5"] = o.La5 + } + if !isNil(o.La15) { + toSerialize["la15"] = o.La15 + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlStatisticGetLoadAverageResponse struct { + value *PostgresqlStatisticGetLoadAverageResponse + isSet bool +} + +func (v NullablePostgresqlStatisticGetLoadAverageResponse) Get() *PostgresqlStatisticGetLoadAverageResponse { + return v.value +} + +func (v *NullablePostgresqlStatisticGetLoadAverageResponse) Set(val *PostgresqlStatisticGetLoadAverageResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlStatisticGetLoadAverageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlStatisticGetLoadAverageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlStatisticGetLoadAverageResponse(val *PostgresqlStatisticGetLoadAverageResponse) *NullablePostgresqlStatisticGetLoadAverageResponse { + return &NullablePostgresqlStatisticGetLoadAverageResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlStatisticGetLoadAverageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlStatisticGetLoadAverageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_statistic_get_memory_response.go b/model_postgresql_statistic_get_memory_response.go new file mode 100644 index 0000000..90208d9 --- /dev/null +++ b/model_postgresql_statistic_get_memory_response.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlStatisticGetMemoryResponse struct for PostgresqlStatisticGetMemoryResponse +type PostgresqlStatisticGetMemoryResponse struct { + Memory *StructuresStatisticSeriesData `json:"memory,omitempty"` +} + +// NewPostgresqlStatisticGetMemoryResponse instantiates a new PostgresqlStatisticGetMemoryResponse 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 NewPostgresqlStatisticGetMemoryResponse() *PostgresqlStatisticGetMemoryResponse { + this := PostgresqlStatisticGetMemoryResponse{} + return &this +} + +// NewPostgresqlStatisticGetMemoryResponseWithDefaults instantiates a new PostgresqlStatisticGetMemoryResponse 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 NewPostgresqlStatisticGetMemoryResponseWithDefaults() *PostgresqlStatisticGetMemoryResponse { + this := PostgresqlStatisticGetMemoryResponse{} + return &this +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetMemoryResponse) GetMemory() StructuresStatisticSeriesData { + if o == nil || isNil(o.Memory) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetMemoryResponse) GetMemoryOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.Memory) { + return nil, false + } + return o.Memory, true +} + +// HasMemory returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetMemoryResponse) HasMemory() bool { + if o != nil && !isNil(o.Memory) { + return true + } + + return false +} + +// SetMemory gets a reference to the given StructuresStatisticSeriesData and assigns it to the Memory field. +func (o *PostgresqlStatisticGetMemoryResponse) SetMemory(v StructuresStatisticSeriesData) { + o.Memory = &v +} + +func (o PostgresqlStatisticGetMemoryResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Memory) { + toSerialize["memory"] = o.Memory + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlStatisticGetMemoryResponse struct { + value *PostgresqlStatisticGetMemoryResponse + isSet bool +} + +func (v NullablePostgresqlStatisticGetMemoryResponse) Get() *PostgresqlStatisticGetMemoryResponse { + return v.value +} + +func (v *NullablePostgresqlStatisticGetMemoryResponse) Set(val *PostgresqlStatisticGetMemoryResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlStatisticGetMemoryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlStatisticGetMemoryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlStatisticGetMemoryResponse(val *PostgresqlStatisticGetMemoryResponse) *NullablePostgresqlStatisticGetMemoryResponse { + return &NullablePostgresqlStatisticGetMemoryResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlStatisticGetMemoryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlStatisticGetMemoryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_postgresql_statistic_get_network_response.go b/model_postgresql_statistic_get_network_response.go new file mode 100644 index 0000000..f548f62 --- /dev/null +++ b/model_postgresql_statistic_get_network_response.go @@ -0,0 +1,223 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// PostgresqlStatisticGetNetworkResponse struct for PostgresqlStatisticGetNetworkResponse +type PostgresqlStatisticGetNetworkResponse struct { + DataRx *StructuresStatisticSeriesData `json:"data_rx,omitempty"` + DataTx *StructuresStatisticSeriesData `json:"data_tx,omitempty"` + DataRxPrivate *StructuresStatisticSeriesData `json:"data_rx_private,omitempty"` + DataTxPrivate *StructuresStatisticSeriesData `json:"data_tx_private,omitempty"` +} + +// NewPostgresqlStatisticGetNetworkResponse instantiates a new PostgresqlStatisticGetNetworkResponse 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 NewPostgresqlStatisticGetNetworkResponse() *PostgresqlStatisticGetNetworkResponse { + this := PostgresqlStatisticGetNetworkResponse{} + return &this +} + +// NewPostgresqlStatisticGetNetworkResponseWithDefaults instantiates a new PostgresqlStatisticGetNetworkResponse 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 NewPostgresqlStatisticGetNetworkResponseWithDefaults() *PostgresqlStatisticGetNetworkResponse { + this := PostgresqlStatisticGetNetworkResponse{} + return &this +} + +// GetDataRx returns the DataRx field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataRx() StructuresStatisticSeriesData { + if o == nil || isNil(o.DataRx) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.DataRx +} + +// GetDataRxOk returns a tuple with the DataRx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataRxOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.DataRx) { + return nil, false + } + return o.DataRx, true +} + +// HasDataRx returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetNetworkResponse) HasDataRx() bool { + if o != nil && !isNil(o.DataRx) { + return true + } + + return false +} + +// SetDataRx gets a reference to the given StructuresStatisticSeriesData and assigns it to the DataRx field. +func (o *PostgresqlStatisticGetNetworkResponse) SetDataRx(v StructuresStatisticSeriesData) { + o.DataRx = &v +} + +// GetDataTx returns the DataTx field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataTx() StructuresStatisticSeriesData { + if o == nil || isNil(o.DataTx) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.DataTx +} + +// GetDataTxOk returns a tuple with the DataTx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataTxOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.DataTx) { + return nil, false + } + return o.DataTx, true +} + +// HasDataTx returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetNetworkResponse) HasDataTx() bool { + if o != nil && !isNil(o.DataTx) { + return true + } + + return false +} + +// SetDataTx gets a reference to the given StructuresStatisticSeriesData and assigns it to the DataTx field. +func (o *PostgresqlStatisticGetNetworkResponse) SetDataTx(v StructuresStatisticSeriesData) { + o.DataTx = &v +} + +// GetDataRxPrivate returns the DataRxPrivate field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataRxPrivate() StructuresStatisticSeriesData { + if o == nil || isNil(o.DataRxPrivate) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.DataRxPrivate +} + +// GetDataRxPrivateOk returns a tuple with the DataRxPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataRxPrivateOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.DataRxPrivate) { + return nil, false + } + return o.DataRxPrivate, true +} + +// HasDataRxPrivate returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetNetworkResponse) HasDataRxPrivate() bool { + if o != nil && !isNil(o.DataRxPrivate) { + return true + } + + return false +} + +// SetDataRxPrivate gets a reference to the given StructuresStatisticSeriesData and assigns it to the DataRxPrivate field. +func (o *PostgresqlStatisticGetNetworkResponse) SetDataRxPrivate(v StructuresStatisticSeriesData) { + o.DataRxPrivate = &v +} + +// GetDataTxPrivate returns the DataTxPrivate field value if set, zero value otherwise. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataTxPrivate() StructuresStatisticSeriesData { + if o == nil || isNil(o.DataTxPrivate) { + var ret StructuresStatisticSeriesData + return ret + } + return *o.DataTxPrivate +} + +// GetDataTxPrivateOk returns a tuple with the DataTxPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PostgresqlStatisticGetNetworkResponse) GetDataTxPrivateOk() (*StructuresStatisticSeriesData, bool) { + if o == nil || isNil(o.DataTxPrivate) { + return nil, false + } + return o.DataTxPrivate, true +} + +// HasDataTxPrivate returns a boolean if a field has been set. +func (o *PostgresqlStatisticGetNetworkResponse) HasDataTxPrivate() bool { + if o != nil && !isNil(o.DataTxPrivate) { + return true + } + + return false +} + +// SetDataTxPrivate gets a reference to the given StructuresStatisticSeriesData and assigns it to the DataTxPrivate field. +func (o *PostgresqlStatisticGetNetworkResponse) SetDataTxPrivate(v StructuresStatisticSeriesData) { + o.DataTxPrivate = &v +} + +func (o PostgresqlStatisticGetNetworkResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DataRx) { + toSerialize["data_rx"] = o.DataRx + } + if !isNil(o.DataTx) { + toSerialize["data_tx"] = o.DataTx + } + if !isNil(o.DataRxPrivate) { + toSerialize["data_rx_private"] = o.DataRxPrivate + } + if !isNil(o.DataTxPrivate) { + toSerialize["data_tx_private"] = o.DataTxPrivate + } + return json.Marshal(toSerialize) +} + +type NullablePostgresqlStatisticGetNetworkResponse struct { + value *PostgresqlStatisticGetNetworkResponse + isSet bool +} + +func (v NullablePostgresqlStatisticGetNetworkResponse) Get() *PostgresqlStatisticGetNetworkResponse { + return v.value +} + +func (v *NullablePostgresqlStatisticGetNetworkResponse) Set(val *PostgresqlStatisticGetNetworkResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostgresqlStatisticGetNetworkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostgresqlStatisticGetNetworkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostgresqlStatisticGetNetworkResponse(val *PostgresqlStatisticGetNetworkResponse) *NullablePostgresqlStatisticGetNetworkResponse { + return &NullablePostgresqlStatisticGetNetworkResponse{value: val, isSet: true} +} + +func (v NullablePostgresqlStatisticGetNetworkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostgresqlStatisticGetNetworkResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_structures_address_info.go b/model_structures_address_info.go index e9d0e08..8aaf3fd 100644 --- a/model_structures_address_info.go +++ b/model_structures_address_info.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_structures_address_info_private_address.go b/model_structures_address_info_private_address.go index 51c9477..715c647 100644 --- a/model_structures_address_info_private_address.go +++ b/model_structures_address_info_private_address.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_structures_address_info_public_address.go b/model_structures_address_info_public_address.go index 59e45e4..b868a9f 100644 --- a/model_structures_address_info_public_address.go +++ b/model_structures_address_info_public_address.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_structures_param_config.go b/model_structures_param_config.go new file mode 100644 index 0000000..36e11c0 --- /dev/null +++ b/model_structures_param_config.go @@ -0,0 +1,331 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// StructuresParamConfig struct for StructuresParamConfig +type StructuresParamConfig struct { + Name *string `json:"name,omitempty"` + DocumentationLink *string `json:"documentation_link,omitempty"` + IntegerValue map[string]interface{} `json:"integer_value,omitempty"` + FloatValue map[string]interface{} `json:"float_value,omitempty"` + StringValue map[string]interface{} `json:"string_value,omitempty"` + EnumValue *StructuresParamConfigEnumValue `json:"enum_value,omitempty"` + SetValue *StructuresParamConfigSetValue `json:"set_value,omitempty"` +} + +// NewStructuresParamConfig instantiates a new StructuresParamConfig 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 NewStructuresParamConfig() *StructuresParamConfig { + this := StructuresParamConfig{} + return &this +} + +// NewStructuresParamConfigWithDefaults instantiates a new StructuresParamConfig 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 NewStructuresParamConfigWithDefaults() *StructuresParamConfig { + this := StructuresParamConfig{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *StructuresParamConfig) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfig) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *StructuresParamConfig) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *StructuresParamConfig) SetName(v string) { + o.Name = &v +} + +// GetDocumentationLink returns the DocumentationLink field value if set, zero value otherwise. +func (o *StructuresParamConfig) GetDocumentationLink() string { + if o == nil || isNil(o.DocumentationLink) { + var ret string + return ret + } + return *o.DocumentationLink +} + +// GetDocumentationLinkOk returns a tuple with the DocumentationLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfig) GetDocumentationLinkOk() (*string, bool) { + if o == nil || isNil(o.DocumentationLink) { + return nil, false + } + return o.DocumentationLink, true +} + +// HasDocumentationLink returns a boolean if a field has been set. +func (o *StructuresParamConfig) HasDocumentationLink() bool { + if o != nil && !isNil(o.DocumentationLink) { + return true + } + + return false +} + +// SetDocumentationLink gets a reference to the given string and assigns it to the DocumentationLink field. +func (o *StructuresParamConfig) SetDocumentationLink(v string) { + o.DocumentationLink = &v +} + +// GetIntegerValue returns the IntegerValue field value if set, zero value otherwise. +func (o *StructuresParamConfig) GetIntegerValue() map[string]interface{} { + if o == nil || isNil(o.IntegerValue) { + var ret map[string]interface{} + return ret + } + return o.IntegerValue +} + +// GetIntegerValueOk returns a tuple with the IntegerValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfig) GetIntegerValueOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.IntegerValue) { + return map[string]interface{}{}, false + } + return o.IntegerValue, true +} + +// HasIntegerValue returns a boolean if a field has been set. +func (o *StructuresParamConfig) HasIntegerValue() bool { + if o != nil && !isNil(o.IntegerValue) { + return true + } + + return false +} + +// SetIntegerValue gets a reference to the given map[string]interface{} and assigns it to the IntegerValue field. +func (o *StructuresParamConfig) SetIntegerValue(v map[string]interface{}) { + o.IntegerValue = v +} + +// GetFloatValue returns the FloatValue field value if set, zero value otherwise. +func (o *StructuresParamConfig) GetFloatValue() map[string]interface{} { + if o == nil || isNil(o.FloatValue) { + var ret map[string]interface{} + return ret + } + return o.FloatValue +} + +// GetFloatValueOk returns a tuple with the FloatValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfig) GetFloatValueOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.FloatValue) { + return map[string]interface{}{}, false + } + return o.FloatValue, true +} + +// HasFloatValue returns a boolean if a field has been set. +func (o *StructuresParamConfig) HasFloatValue() bool { + if o != nil && !isNil(o.FloatValue) { + return true + } + + return false +} + +// SetFloatValue gets a reference to the given map[string]interface{} and assigns it to the FloatValue field. +func (o *StructuresParamConfig) SetFloatValue(v map[string]interface{}) { + o.FloatValue = v +} + +// GetStringValue returns the StringValue field value if set, zero value otherwise. +func (o *StructuresParamConfig) GetStringValue() map[string]interface{} { + if o == nil || isNil(o.StringValue) { + var ret map[string]interface{} + return ret + } + return o.StringValue +} + +// GetStringValueOk returns a tuple with the StringValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfig) GetStringValueOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.StringValue) { + return map[string]interface{}{}, false + } + return o.StringValue, true +} + +// HasStringValue returns a boolean if a field has been set. +func (o *StructuresParamConfig) HasStringValue() bool { + if o != nil && !isNil(o.StringValue) { + return true + } + + return false +} + +// SetStringValue gets a reference to the given map[string]interface{} and assigns it to the StringValue field. +func (o *StructuresParamConfig) SetStringValue(v map[string]interface{}) { + o.StringValue = v +} + +// GetEnumValue returns the EnumValue field value if set, zero value otherwise. +func (o *StructuresParamConfig) GetEnumValue() StructuresParamConfigEnumValue { + if o == nil || isNil(o.EnumValue) { + var ret StructuresParamConfigEnumValue + return ret + } + return *o.EnumValue +} + +// GetEnumValueOk returns a tuple with the EnumValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfig) GetEnumValueOk() (*StructuresParamConfigEnumValue, bool) { + if o == nil || isNil(o.EnumValue) { + return nil, false + } + return o.EnumValue, true +} + +// HasEnumValue returns a boolean if a field has been set. +func (o *StructuresParamConfig) HasEnumValue() bool { + if o != nil && !isNil(o.EnumValue) { + return true + } + + return false +} + +// SetEnumValue gets a reference to the given StructuresParamConfigEnumValue and assigns it to the EnumValue field. +func (o *StructuresParamConfig) SetEnumValue(v StructuresParamConfigEnumValue) { + o.EnumValue = &v +} + +// GetSetValue returns the SetValue field value if set, zero value otherwise. +func (o *StructuresParamConfig) GetSetValue() StructuresParamConfigSetValue { + if o == nil || isNil(o.SetValue) { + var ret StructuresParamConfigSetValue + return ret + } + return *o.SetValue +} + +// GetSetValueOk returns a tuple with the SetValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfig) GetSetValueOk() (*StructuresParamConfigSetValue, bool) { + if o == nil || isNil(o.SetValue) { + return nil, false + } + return o.SetValue, true +} + +// HasSetValue returns a boolean if a field has been set. +func (o *StructuresParamConfig) HasSetValue() bool { + if o != nil && !isNil(o.SetValue) { + return true + } + + return false +} + +// SetSetValue gets a reference to the given StructuresParamConfigSetValue and assigns it to the SetValue field. +func (o *StructuresParamConfig) SetSetValue(v StructuresParamConfigSetValue) { + o.SetValue = &v +} + +func (o StructuresParamConfig) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["name"] = o.Name + } + if !isNil(o.DocumentationLink) { + toSerialize["documentation_link"] = o.DocumentationLink + } + if !isNil(o.IntegerValue) { + toSerialize["integer_value"] = o.IntegerValue + } + if !isNil(o.FloatValue) { + toSerialize["float_value"] = o.FloatValue + } + if !isNil(o.StringValue) { + toSerialize["string_value"] = o.StringValue + } + if !isNil(o.EnumValue) { + toSerialize["enum_value"] = o.EnumValue + } + if !isNil(o.SetValue) { + toSerialize["set_value"] = o.SetValue + } + return json.Marshal(toSerialize) +} + +type NullableStructuresParamConfig struct { + value *StructuresParamConfig + isSet bool +} + +func (v NullableStructuresParamConfig) Get() *StructuresParamConfig { + return v.value +} + +func (v *NullableStructuresParamConfig) Set(val *StructuresParamConfig) { + v.value = val + v.isSet = true +} + +func (v NullableStructuresParamConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableStructuresParamConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStructuresParamConfig(val *StructuresParamConfig) *NullableStructuresParamConfig { + return &NullableStructuresParamConfig{value: val, isSet: true} +} + +func (v NullableStructuresParamConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStructuresParamConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_structures_param_config_enum_value.go b/model_structures_param_config_enum_value.go new file mode 100644 index 0000000..dcdfed7 --- /dev/null +++ b/model_structures_param_config_enum_value.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// StructuresParamConfigEnumValue struct for StructuresParamConfigEnumValue +type StructuresParamConfigEnumValue struct { + Value []string `json:"value,omitempty"` +} + +// NewStructuresParamConfigEnumValue instantiates a new StructuresParamConfigEnumValue 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 NewStructuresParamConfigEnumValue() *StructuresParamConfigEnumValue { + this := StructuresParamConfigEnumValue{} + return &this +} + +// NewStructuresParamConfigEnumValueWithDefaults instantiates a new StructuresParamConfigEnumValue 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 NewStructuresParamConfigEnumValueWithDefaults() *StructuresParamConfigEnumValue { + this := StructuresParamConfigEnumValue{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *StructuresParamConfigEnumValue) GetValue() []string { + if o == nil || isNil(o.Value) { + var ret []string + return ret + } + return o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfigEnumValue) GetValueOk() ([]string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *StructuresParamConfigEnumValue) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given []string and assigns it to the Value field. +func (o *StructuresParamConfigEnumValue) SetValue(v []string) { + o.Value = v +} + +func (o StructuresParamConfigEnumValue) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Value) { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableStructuresParamConfigEnumValue struct { + value *StructuresParamConfigEnumValue + isSet bool +} + +func (v NullableStructuresParamConfigEnumValue) Get() *StructuresParamConfigEnumValue { + return v.value +} + +func (v *NullableStructuresParamConfigEnumValue) Set(val *StructuresParamConfigEnumValue) { + v.value = val + v.isSet = true +} + +func (v NullableStructuresParamConfigEnumValue) IsSet() bool { + return v.isSet +} + +func (v *NullableStructuresParamConfigEnumValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStructuresParamConfigEnumValue(val *StructuresParamConfigEnumValue) *NullableStructuresParamConfigEnumValue { + return &NullableStructuresParamConfigEnumValue{value: val, isSet: true} +} + +func (v NullableStructuresParamConfigEnumValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStructuresParamConfigEnumValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_structures_param_config_set_value.go b/model_structures_param_config_set_value.go new file mode 100644 index 0000000..fc630bd --- /dev/null +++ b/model_structures_param_config_set_value.go @@ -0,0 +1,115 @@ +/* +API Управляемых сервисов + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v1.3.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package begetOpenapiCloud + +import ( + "encoding/json" +) + +// StructuresParamConfigSetValue struct for StructuresParamConfigSetValue +type StructuresParamConfigSetValue struct { + Value []string `json:"value,omitempty"` +} + +// NewStructuresParamConfigSetValue instantiates a new StructuresParamConfigSetValue 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 NewStructuresParamConfigSetValue() *StructuresParamConfigSetValue { + this := StructuresParamConfigSetValue{} + return &this +} + +// NewStructuresParamConfigSetValueWithDefaults instantiates a new StructuresParamConfigSetValue 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 NewStructuresParamConfigSetValueWithDefaults() *StructuresParamConfigSetValue { + this := StructuresParamConfigSetValue{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *StructuresParamConfigSetValue) GetValue() []string { + if o == nil || isNil(o.Value) { + var ret []string + return ret + } + return o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StructuresParamConfigSetValue) GetValueOk() ([]string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *StructuresParamConfigSetValue) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given []string and assigns it to the Value field. +func (o *StructuresParamConfigSetValue) SetValue(v []string) { + o.Value = v +} + +func (o StructuresParamConfigSetValue) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Value) { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableStructuresParamConfigSetValue struct { + value *StructuresParamConfigSetValue + isSet bool +} + +func (v NullableStructuresParamConfigSetValue) Get() *StructuresParamConfigSetValue { + return v.value +} + +func (v *NullableStructuresParamConfigSetValue) Set(val *StructuresParamConfigSetValue) { + v.value = val + v.isSet = true +} + +func (v NullableStructuresParamConfigSetValue) IsSet() bool { + return v.isSet +} + +func (v *NullableStructuresParamConfigSetValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStructuresParamConfigSetValue(val *StructuresParamConfigSetValue) *NullableStructuresParamConfigSetValue { + return &NullableStructuresParamConfigSetValue{value: val, isSet: true} +} + +func (v NullableStructuresParamConfigSetValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStructuresParamConfigSetValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_structures_statistic_series_data.go b/model_structures_statistic_series_data.go index 9ef9865..4163867 100644 --- a/model_structures_statistic_series_data.go +++ b/model_structures_statistic_series_data.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index dd83615..1d88377 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_postgresql_service_test.go b/test/api_postgresql_service_test.go new file mode 100644 index 0000000..33c88cc --- /dev/null +++ b/test/api_postgresql_service_test.go @@ -0,0 +1,197 @@ +/* +API Управляемых сервисов + +Testing PostgresqlServiceApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package begetOpenapiCloud + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "./openapi" +) + +func Test_begetOpenapiCloud_PostgresqlServiceApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceCreateDb", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceCreateDb(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceCreateRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceCreateRole(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceGetConfig", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetConfig(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceGetDbList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetDbList(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceGetRemoteAccess", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetRemoteAccess(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceGetRoleList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceGetRoleList(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceRemoveDb", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + var dbName string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceRemoveDb(context.Background(), serviceId, dbName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceRemoveRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + var roleName string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceRemoveRole(context.Background(), serviceId, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceSetConfig", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceSetConfig(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceUpdateDb", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + var dbName string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateDb(context.Background(), serviceId, dbName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceUpdateRemoteAccess", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateRemoteAccess(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlServiceApiService PostgresqlServiceUpdateRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + var roleName string + + resp, httpRes, err := apiClient.PostgresqlServiceApi.PostgresqlServiceUpdateRole(context.Background(), serviceId, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_postgresql_statistic_service_test.go b/test/api_postgresql_statistic_service_test.go new file mode 100644 index 0000000..a046158 --- /dev/null +++ b/test/api_postgresql_statistic_service_test.go @@ -0,0 +1,123 @@ +/* +API Управляемых сервисов + +Testing PostgresqlStatisticServiceApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package begetOpenapiCloud + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "./openapi" +) + +func Test_begetOpenapiCloud_PostgresqlStatisticServiceApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PostgresqlStatisticServiceApiService PostgresqlStatisticServiceGetCpu", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpu(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlStatisticServiceApiService PostgresqlStatisticServiceGetCpuDetails", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpuDetails(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlStatisticServiceApiService PostgresqlStatisticServiceGetDisk", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDisk(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlStatisticServiceApiService PostgresqlStatisticServiceGetDiskUsage", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDiskUsage(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlStatisticServiceApiService PostgresqlStatisticServiceGetLoadAverage", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetLoadAverage(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlStatisticServiceApiService PostgresqlStatisticServiceGetMemory", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetMemory(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PostgresqlStatisticServiceApiService PostgresqlStatisticServiceGetNetwork", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var serviceId string + + resp, httpRes, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetNetwork(context.Background(), serviceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go index 1f9d85a..9b1689e 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ API Управляемых сервисов No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: v1.2.0 +API version: v1.3.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.