From acf2b11dc1a7fa1c6b08dd7fd67f17b26e60789d Mon Sep 17 00:00:00 2001 From: Ionos Cloud SDK Robot Date: Tue, 8 Oct 2024 08:01:12 +0000 Subject: [PATCH] auto-generated version products/cert/v2.0.1 --- products/cert/README.md | 87 +- products/cert/api_auto_certificate.go | 1024 ++++++++++++++++ products/cert/api_certificate.go | 1032 +++++++++++++++++ products/cert/api_certificates.go | 699 ----------- products/cert/api_information.go | 407 ------- products/cert/api_provider.go | 1016 ++++++++++++++++ products/cert/client.go | 150 ++- products/cert/docs/api/AutoCertificateApi.md | 351 ++++++ products/cert/docs/api/CertificateApi.md | 363 ++++++ products/cert/docs/api/CertificatesApi.md | 348 ------ products/cert/docs/api/InformationApi.md | 188 --- products/cert/docs/api/ProviderApi.md | 348 ++++++ products/cert/docs/models/ApiInfoDto.md | 105 -- products/cert/docs/models/AutoCertificate.md | 142 +++ .../cert/docs/models/AutoCertificateCreate.md | 74 ++ .../cert/docs/models/AutoCertificatePatch.md | 74 ++ .../cert/docs/models/AutoCertificateRead.md | 132 +++ .../docs/models/AutoCertificateReadList.md | 179 +++ .../models/AutoCertificateReadListAllOf.md | 116 ++ ...atePostPropertiesDto.md => Certificate.md} | 38 +- .../docs/models/CertificateCollectionDto.md | 209 ---- .../cert/docs/models/CertificateCreate.md | 74 ++ products/cert/docs/models/CertificateDto.md | 157 --- products/cert/docs/models/CertificatePatch.md | 74 ++ .../cert/docs/models/CertificatePatchDto.md | 48 - .../cert/docs/models/CertificatePostDto.md | 48 - .../docs/models/CertificatePropertiesDto.md | 105 -- products/cert/docs/models/CertificateRead.md | 132 +++ .../cert/docs/models/CertificateReadList.md | 179 +++ .../docs/models/CertificateReadListAllOf.md | 116 ++ .../cert/docs/models/ConfigPropertyDto.md | 116 -- products/cert/docs/models/Connection.md | 90 ++ products/cert/docs/models/DayOfTheWeek.md | 8 + products/cert/docs/models/Error.md | 79 ++ products/cert/docs/models/ErrorMessages.md | 79 ++ ...tificateCollectionDtoLinks.md => Links.md} | 44 +- .../cert/docs/models/MaintenanceWindow.md | 69 ++ products/cert/docs/models/Metadata.md | 209 ++++ .../MetadataWithAutoCertificateInformation.md | 277 +++++ ...dataWithAutoCertificateInformationAllOf.md | 53 + .../MetadataWithCertificateInformation.md | 429 +++++++ ...MetadataWithCertificateInformationAllOf.md | 205 ++++ .../cert/docs/models/MetadataWithStatus.md | 251 ++++ .../docs/models/MetadataWithStatusAllOf.md | 69 ++ products/cert/docs/models/Pagination.md | 90 ++ ...catePatchPropertiesDto.md => PatchName.md} | 22 +- products/cert/docs/models/Provider.md | 116 ++ products/cert/docs/models/ProviderCreate.md | 74 ++ .../models/ProviderExternalAccountBinding.md | 79 ++ products/cert/docs/models/ProviderPatch.md | 74 ++ products/cert/docs/models/ProviderRead.md | 132 +++ products/cert/docs/models/ProviderReadList.md | 179 +++ .../cert/docs/models/ProviderReadListAllOf.md | 116 ++ .../cert/docs/models/ResourceMetadataDto.md | 235 ---- products/cert/docs/summary.md | 50 +- products/cert/go.mod | 16 +- products/cert/go.sum | 358 +----- products/cert/model_api_info_dto.go | 210 ---- products/cert/model_auto_certificate.go | 240 ++++ .../cert/model_auto_certificate_create.go | 146 +++ products/cert/model_auto_certificate_patch.go | 146 +++ products/cert/model_auto_certificate_read.go | 220 ++++ .../cert/model_auto_certificate_read_list.go | 286 +++++ ...model_auto_certificate_read_list_all_of.go | 203 ++++ products/cert/model_certificate.go | 194 ++++ .../cert/model_certificate_collection_dto.go | 385 ------ ...model_certificate_collection_dto__links.go | 210 ---- products/cert/model_certificate_create.go | 146 +++ products/cert/model_certificate_dto.go | 296 ----- products/cert/model_certificate_patch.go | 146 +++ products/cert/model_certificate_patch_dto.go | 123 -- .../model_certificate_patch_properties_dto.go | 124 -- products/cert/model_certificate_post_dto.go | 123 -- .../model_certificate_post_properties_dto.go | 259 ----- .../cert/model_certificate_properties_dto.go | 210 ---- products/cert/model_certificate_read.go | 220 ++++ products/cert/model_certificate_read_list.go | 286 +++++ .../model_certificate_read_list_all_of.go | 203 ++++ products/cert/model_config_property_dto.go | 258 ----- products/cert/model_connection.go | 166 +++ products/cert/model_day_of_the_week.go | 89 ++ products/cert/model_error.go | 155 +++ products/cert/model_error_messages.go | 155 +++ products/cert/model_links.go | 192 +++ products/cert/model_maintenance_window.go | 137 +++ products/cert/model_metadata.go | 342 ++++++ ...adata_with_auto_certificate_information.go | 436 +++++++ ...ith_auto_certificate_information_all_of.go | 118 ++ ...l_metadata_with_certificate_information.go | 655 +++++++++++ ...ata_with_certificate_information_all_of.go | 340 ++++++ products/cert/model_metadata_with_status.go | 399 +++++++ .../cert/model_metadata_with_status_all_of.go | 138 +++ products/cert/model_pagination.go | 165 +++ products/cert/model_patch_name.go | 110 ++ products/cert/model_provider.go | 202 ++++ products/cert/model_provider_create.go | 146 +++ ...model_provider_external_account_binding.go | 155 +++ products/cert/model_provider_patch.go | 146 +++ products/cert/model_provider_read.go | 220 ++++ products/cert/model_provider_read_list.go | 286 +++++ .../cert/model_provider_read_list_all_of.go | 203 ++++ products/cert/model_resource_metadata_dto.go | 430 ------- products/cert/utils.go | 316 ++++- 103 files changed, 16100 insertions(+), 5769 deletions(-) create mode 100644 products/cert/api_auto_certificate.go create mode 100644 products/cert/api_certificate.go delete mode 100644 products/cert/api_certificates.go delete mode 100644 products/cert/api_information.go create mode 100644 products/cert/api_provider.go create mode 100644 products/cert/docs/api/AutoCertificateApi.md create mode 100644 products/cert/docs/api/CertificateApi.md delete mode 100644 products/cert/docs/api/CertificatesApi.md delete mode 100644 products/cert/docs/api/InformationApi.md create mode 100644 products/cert/docs/api/ProviderApi.md delete mode 100644 products/cert/docs/models/ApiInfoDto.md create mode 100644 products/cert/docs/models/AutoCertificate.md create mode 100644 products/cert/docs/models/AutoCertificateCreate.md create mode 100644 products/cert/docs/models/AutoCertificatePatch.md create mode 100644 products/cert/docs/models/AutoCertificateRead.md create mode 100644 products/cert/docs/models/AutoCertificateReadList.md create mode 100644 products/cert/docs/models/AutoCertificateReadListAllOf.md rename products/cert/docs/models/{CertificatePostPropertiesDto.md => Certificate.md} (62%) delete mode 100644 products/cert/docs/models/CertificateCollectionDto.md create mode 100644 products/cert/docs/models/CertificateCreate.md delete mode 100644 products/cert/docs/models/CertificateDto.md create mode 100644 products/cert/docs/models/CertificatePatch.md delete mode 100644 products/cert/docs/models/CertificatePatchDto.md delete mode 100644 products/cert/docs/models/CertificatePostDto.md delete mode 100644 products/cert/docs/models/CertificatePropertiesDto.md create mode 100644 products/cert/docs/models/CertificateRead.md create mode 100644 products/cert/docs/models/CertificateReadList.md create mode 100644 products/cert/docs/models/CertificateReadListAllOf.md delete mode 100644 products/cert/docs/models/ConfigPropertyDto.md create mode 100644 products/cert/docs/models/Connection.md create mode 100644 products/cert/docs/models/DayOfTheWeek.md create mode 100644 products/cert/docs/models/Error.md create mode 100644 products/cert/docs/models/ErrorMessages.md rename products/cert/docs/models/{CertificateCollectionDtoLinks.md => Links.md} (52%) create mode 100644 products/cert/docs/models/MaintenanceWindow.md create mode 100644 products/cert/docs/models/Metadata.md create mode 100644 products/cert/docs/models/MetadataWithAutoCertificateInformation.md create mode 100644 products/cert/docs/models/MetadataWithAutoCertificateInformationAllOf.md create mode 100644 products/cert/docs/models/MetadataWithCertificateInformation.md create mode 100644 products/cert/docs/models/MetadataWithCertificateInformationAllOf.md create mode 100644 products/cert/docs/models/MetadataWithStatus.md create mode 100644 products/cert/docs/models/MetadataWithStatusAllOf.md create mode 100644 products/cert/docs/models/Pagination.md rename products/cert/docs/models/{CertificatePatchPropertiesDto.md => PatchName.md} (52%) create mode 100644 products/cert/docs/models/Provider.md create mode 100644 products/cert/docs/models/ProviderCreate.md create mode 100644 products/cert/docs/models/ProviderExternalAccountBinding.md create mode 100644 products/cert/docs/models/ProviderPatch.md create mode 100644 products/cert/docs/models/ProviderRead.md create mode 100644 products/cert/docs/models/ProviderReadList.md create mode 100644 products/cert/docs/models/ProviderReadListAllOf.md delete mode 100644 products/cert/docs/models/ResourceMetadataDto.md delete mode 100644 products/cert/model_api_info_dto.go create mode 100644 products/cert/model_auto_certificate.go create mode 100644 products/cert/model_auto_certificate_create.go create mode 100644 products/cert/model_auto_certificate_patch.go create mode 100644 products/cert/model_auto_certificate_read.go create mode 100644 products/cert/model_auto_certificate_read_list.go create mode 100644 products/cert/model_auto_certificate_read_list_all_of.go create mode 100644 products/cert/model_certificate.go delete mode 100644 products/cert/model_certificate_collection_dto.go delete mode 100644 products/cert/model_certificate_collection_dto__links.go create mode 100644 products/cert/model_certificate_create.go delete mode 100644 products/cert/model_certificate_dto.go create mode 100644 products/cert/model_certificate_patch.go delete mode 100644 products/cert/model_certificate_patch_dto.go delete mode 100644 products/cert/model_certificate_patch_properties_dto.go delete mode 100644 products/cert/model_certificate_post_dto.go delete mode 100644 products/cert/model_certificate_post_properties_dto.go delete mode 100644 products/cert/model_certificate_properties_dto.go create mode 100644 products/cert/model_certificate_read.go create mode 100644 products/cert/model_certificate_read_list.go create mode 100644 products/cert/model_certificate_read_list_all_of.go delete mode 100644 products/cert/model_config_property_dto.go create mode 100644 products/cert/model_connection.go create mode 100644 products/cert/model_day_of_the_week.go create mode 100644 products/cert/model_error.go create mode 100644 products/cert/model_error_messages.go create mode 100644 products/cert/model_links.go create mode 100644 products/cert/model_maintenance_window.go create mode 100644 products/cert/model_metadata.go create mode 100644 products/cert/model_metadata_with_auto_certificate_information.go create mode 100644 products/cert/model_metadata_with_auto_certificate_information_all_of.go create mode 100644 products/cert/model_metadata_with_certificate_information.go create mode 100644 products/cert/model_metadata_with_certificate_information_all_of.go create mode 100644 products/cert/model_metadata_with_status.go create mode 100644 products/cert/model_metadata_with_status_all_of.go create mode 100644 products/cert/model_pagination.go create mode 100644 products/cert/model_patch_name.go create mode 100644 products/cert/model_provider.go create mode 100644 products/cert/model_provider_create.go create mode 100644 products/cert/model_provider_external_account_binding.go create mode 100644 products/cert/model_provider_patch.go create mode 100644 products/cert/model_provider_read.go create mode 100644 products/cert/model_provider_read_list.go create mode 100644 products/cert/model_provider_read_list_all_of.go delete mode 100644 products/cert/model_resource_metadata_dto.go diff --git a/products/cert/README.md b/products/cert/README.md index c702c3a..cb16d0f 100644 --- a/products/cert/README.md +++ b/products/cert/README.md @@ -1,7 +1,10 @@ # Go API client for cert -Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. +Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates +with IONOS services and your internal connected resources. +For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), +you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. ## Overview @@ -36,7 +39,7 @@ go get github.com/ionos-cloud/sdk-go-bundle/products/cert@latest | `IONOS_PASSWORD` | Specify the password used to login, to authenticate against the IONOS Cloud API | | `IONOS_TOKEN` | Specify the token used to login, if a token is being used instead of username and password | | `IONOS_API_URL` | Specify the API URL. It will overwrite the API endpoint default value `api.ionos.com`. Note: the host URL does not contain the `/cloudapi/v6` path, so it should _not_ be included in the `IONOS_API_URL` environment variable | -| `IONOS_LOGLEVEL` | Specify the Log Level used to log messages. Possible values: Off, Debug, Trace | +| `IONOS_LOG_LEVEL` | Specify the Log Level used to log messages. Possible values: Off, Debug, Trace | | `IONOS_PINNED_CERT` | Specify the SHA-256 public fingerprint here, enables certificate pinning | ⚠️ **_Note: To overwrite the api endpoint - `api.ionos.com`, the environment variable `$IONOS_API_URL` can be set, and used with `NewConfigurationFromEnv()` function._** @@ -158,9 +161,9 @@ requestProperties.SetURL("https://api.ionos.com/cloudapi/v6") ## Debugging -You can now inject any logger that implements Printf as a logger +You can inject any logger that implements Printf as a logger instead of using the default sdk logger. -There are now Loglevels that you can set: `Off`, `Debug` and `Trace`. +There are log levels that you can set: `Off`, `Debug` and `Trace`. `Off` - does not show any logs `Debug` - regular logs, no sensitive information `Trace` - we recommend you only set this field for debugging purposes. Disable it in your production environments because it can log sensitive data. @@ -181,9 +184,9 @@ func main() { // if you have set your env variables as explained above cfg := shared.NewConfiguration("username", "password", "token", "hostUrl") // enable request and response logging. this is the most verbose loglevel - cfg.LogLevel = Trace + shared.SdkLogLevel = Trace // inject your own logger that implements Printf - cfg.Logger = logrus.New() + shared.SdkLogger = logrus.New() // create you api client with the configuration apiClient := cert.NewAPIClient(cfg) } @@ -191,41 +194,71 @@ func main() { ## Documentation for API Endpoints -All URIs are relative to *https://api.ionos.com* +All URIs are relative to *https://certificate-manager.de-fra.ionos.com*
API Endpoints table Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -CertificatesApi | [**CertificatesDelete**](docs/api/CertificatesApi.md#certificatesdelete) | **Delete** /certificatemanager/certificates/{certificateId} | Delete a Certificate by ID -CertificatesApi | [**CertificatesGet**](docs/api/CertificatesApi.md#certificatesget) | **Get** /certificatemanager/certificates | Get Certificates -CertificatesApi | [**CertificatesGetById**](docs/api/CertificatesApi.md#certificatesgetbyid) | **Get** /certificatemanager/certificates/{certificateId} | Get a Certificate by ID -CertificatesApi | [**CertificatesPatch**](docs/api/CertificatesApi.md#certificatespatch) | **Patch** /certificatemanager/certificates/{certificateId} | Update a Certificate Name by ID -CertificatesApi | [**CertificatesPost**](docs/api/CertificatesApi.md#certificatespost) | **Post** /certificatemanager/certificates | Add a New Certificate -InformationApi | [**GetInfo**](docs/api/InformationApi.md#getinfo) | **Get** /certificatemanager | Get the Service API Information -InformationApi | [**GetJsonOpenApiSpec**](docs/api/InformationApi.md#getjsonopenapispec) | **Get** /certificatemanager/openapi.json | Get the Open API Documentation JSON -InformationApi | [**GetYamlOpenApiSpec**](docs/api/InformationApi.md#getyamlopenapispec) | **Get** /certificatemanager/openapi.yaml | Get the Open API Documentation YAML +AutoCertificateApi | [**AutoCertificatesDelete**](docs/api/AutoCertificateApi.md#autocertificatesdelete) | **Delete** /auto-certificates/{autoCertificateId} | Delete AutoCertificate +AutoCertificateApi | [**AutoCertificatesFindById**](docs/api/AutoCertificateApi.md#autocertificatesfindbyid) | **Get** /auto-certificates/{autoCertificateId} | Retrieve AutoCertificate +AutoCertificateApi | [**AutoCertificatesGet**](docs/api/AutoCertificateApi.md#autocertificatesget) | **Get** /auto-certificates | Retrieve all AutoCertificate +AutoCertificateApi | [**AutoCertificatesPatch**](docs/api/AutoCertificateApi.md#autocertificatespatch) | **Patch** /auto-certificates/{autoCertificateId} | Updates AutoCertificate +AutoCertificateApi | [**AutoCertificatesPost**](docs/api/AutoCertificateApi.md#autocertificatespost) | **Post** /auto-certificates | Create AutoCertificate +CertificateApi | [**CertificatesDelete**](docs/api/CertificateApi.md#certificatesdelete) | **Delete** /certificates/{certificateId} | Delete Certificate +CertificateApi | [**CertificatesFindById**](docs/api/CertificateApi.md#certificatesfindbyid) | **Get** /certificates/{certificateId} | Retrieve Certificate +CertificateApi | [**CertificatesGet**](docs/api/CertificateApi.md#certificatesget) | **Get** /certificates | Retrieve all Certificate +CertificateApi | [**CertificatesPatch**](docs/api/CertificateApi.md#certificatespatch) | **Patch** /certificates/{certificateId} | Updates Certificate +CertificateApi | [**CertificatesPost**](docs/api/CertificateApi.md#certificatespost) | **Post** /certificates | Create Certificate +ProviderApi | [**ProvidersDelete**](docs/api/ProviderApi.md#providersdelete) | **Delete** /providers/{providerId} | Delete Provider +ProviderApi | [**ProvidersFindById**](docs/api/ProviderApi.md#providersfindbyid) | **Get** /providers/{providerId} | Retrieve Provider +ProviderApi | [**ProvidersGet**](docs/api/ProviderApi.md#providersget) | **Get** /providers | Retrieve all Provider +ProviderApi | [**ProvidersPatch**](docs/api/ProviderApi.md#providerspatch) | **Patch** /providers/{providerId} | Updates Provider +ProviderApi | [**ProvidersPost**](docs/api/ProviderApi.md#providerspost) | **Post** /providers | Create Provider
## Documentation For Models -All URIs are relative to *https://api.ionos.com* +All URIs are relative to *https://certificate-manager.de-fra.ionos.com*
API models list - - [ApiInfoDto](docs/models/ApiInfoDto) - - [CertificateCollectionDto](docs/models/CertificateCollectionDto) - - [CertificateCollectionDtoLinks](docs/models/CertificateCollectionDtoLinks) - - [CertificateDto](docs/models/CertificateDto) - - [CertificatePatchDto](docs/models/CertificatePatchDto) - - [CertificatePatchPropertiesDto](docs/models/CertificatePatchPropertiesDto) - - [CertificatePostDto](docs/models/CertificatePostDto) - - [CertificatePostPropertiesDto](docs/models/CertificatePostPropertiesDto) - - [CertificatePropertiesDto](docs/models/CertificatePropertiesDto) - - [ConfigPropertyDto](docs/models/ConfigPropertyDto) - - [ResourceMetadataDto](docs/models/ResourceMetadataDto) + - [AutoCertificate](docs/models/AutoCertificate) + - [AutoCertificateCreate](docs/models/AutoCertificateCreate) + - [AutoCertificatePatch](docs/models/AutoCertificatePatch) + - [AutoCertificateRead](docs/models/AutoCertificateRead) + - [AutoCertificateReadList](docs/models/AutoCertificateReadList) + - [AutoCertificateReadListAllOf](docs/models/AutoCertificateReadListAllOf) + - [Certificate](docs/models/Certificate) + - [CertificateCreate](docs/models/CertificateCreate) + - [CertificatePatch](docs/models/CertificatePatch) + - [CertificateRead](docs/models/CertificateRead) + - [CertificateReadList](docs/models/CertificateReadList) + - [CertificateReadListAllOf](docs/models/CertificateReadListAllOf) + - [Connection](docs/models/Connection) + - [DayOfTheWeek](docs/models/DayOfTheWeek) + - [Error](docs/models/Error) + - [ErrorMessages](docs/models/ErrorMessages) + - [Links](docs/models/Links) + - [MaintenanceWindow](docs/models/MaintenanceWindow) + - [Metadata](docs/models/Metadata) + - [MetadataWithAutoCertificateInformation](docs/models/MetadataWithAutoCertificateInformation) + - [MetadataWithAutoCertificateInformationAllOf](docs/models/MetadataWithAutoCertificateInformationAllOf) + - [MetadataWithCertificateInformation](docs/models/MetadataWithCertificateInformation) + - [MetadataWithCertificateInformationAllOf](docs/models/MetadataWithCertificateInformationAllOf) + - [MetadataWithStatus](docs/models/MetadataWithStatus) + - [MetadataWithStatusAllOf](docs/models/MetadataWithStatusAllOf) + - [Pagination](docs/models/Pagination) + - [PatchName](docs/models/PatchName) + - [Provider](docs/models/Provider) + - [ProviderCreate](docs/models/ProviderCreate) + - [ProviderExternalAccountBinding](docs/models/ProviderExternalAccountBinding) + - [ProviderPatch](docs/models/ProviderPatch) + - [ProviderRead](docs/models/ProviderRead) + - [ProviderReadList](docs/models/ProviderReadList) + - [ProviderReadListAllOf](docs/models/ProviderReadListAllOf) [[Back to API list]](#documentation-for-api-endpoints) [[Back to Model list]](#documentation-for-models) diff --git a/products/cert/api_auto_certificate.go b/products/cert/api_auto_certificate.go new file mode 100644 index 0000000..a21af57 --- /dev/null +++ b/products/cert/api_auto_certificate.go @@ -0,0 +1,1024 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + _context "context" + "fmt" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "io" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +// AutoCertificateApiService AutoCertificateApi service +type AutoCertificateApiService service + +type ApiAutoCertificatesDeleteRequest struct { + ctx _context.Context + ApiService *AutoCertificateApiService + autoCertificateId string +} + +func (r ApiAutoCertificatesDeleteRequest) Execute() (*shared.APIResponse, error) { + return r.ApiService.AutoCertificatesDeleteExecute(r) +} + +/* + * AutoCertificatesDelete Delete AutoCertificate + * Deletes the specified AutoCertificate. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param autoCertificateId The ID (UUID) of the AutoCertificate. + * @return ApiAutoCertificatesDeleteRequest + */ +func (a *AutoCertificateApiService) AutoCertificatesDelete(ctx _context.Context, autoCertificateId string) ApiAutoCertificatesDeleteRequest { + return ApiAutoCertificatesDeleteRequest{ + ApiService: a, + ctx: ctx, + autoCertificateId: autoCertificateId, + } +} + +/* + * Execute executes the request + */ +func (a *AutoCertificateApiService) AutoCertificatesDeleteExecute(r ApiAutoCertificatesDeleteRequest) (*shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutoCertificateApiService.AutoCertificatesDelete") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return nil, gerr + } + + localVarPath := localBasePath + "/auto-certificates/{autoCertificateId}" + localVarPath = strings.Replace(localVarPath, "{"+"autoCertificateId"+"}", _neturl.PathEscape(parameterValueToString(r.autoCertificateId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "AutoCertificatesDelete", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarAPIResponse, newErr + } + + return localVarAPIResponse, nil +} + +type ApiAutoCertificatesFindByIdRequest struct { + ctx _context.Context + ApiService *AutoCertificateApiService + autoCertificateId string +} + +func (r ApiAutoCertificatesFindByIdRequest) Execute() (AutoCertificateRead, *shared.APIResponse, error) { + return r.ApiService.AutoCertificatesFindByIdExecute(r) +} + +/* + * AutoCertificatesFindById Retrieve AutoCertificate + * Returns the AutoCertificate by ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param autoCertificateId The ID (UUID) of the AutoCertificate. + * @return ApiAutoCertificatesFindByIdRequest + */ +func (a *AutoCertificateApiService) AutoCertificatesFindById(ctx _context.Context, autoCertificateId string) ApiAutoCertificatesFindByIdRequest { + return ApiAutoCertificatesFindByIdRequest{ + ApiService: a, + ctx: ctx, + autoCertificateId: autoCertificateId, + } +} + +/* + * Execute executes the request + * @return AutoCertificateRead + */ +func (a *AutoCertificateApiService) AutoCertificatesFindByIdExecute(r ApiAutoCertificatesFindByIdRequest) (AutoCertificateRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AutoCertificateRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutoCertificateApiService.AutoCertificatesFindById") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/auto-certificates/{autoCertificateId}" + localVarPath = strings.Replace(localVarPath, "{"+"autoCertificateId"+"}", _neturl.PathEscape(parameterValueToString(r.autoCertificateId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "AutoCertificatesFindById", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiAutoCertificatesGetRequest struct { + ctx _context.Context + ApiService *AutoCertificateApiService + offset *int32 + limit *int32 + filterCommonName *string +} + +func (r ApiAutoCertificatesGetRequest) Offset(offset int32) ApiAutoCertificatesGetRequest { + r.offset = &offset + return r +} +func (r ApiAutoCertificatesGetRequest) Limit(limit int32) ApiAutoCertificatesGetRequest { + r.limit = &limit + return r +} +func (r ApiAutoCertificatesGetRequest) FilterCommonName(filterCommonName string) ApiAutoCertificatesGetRequest { + r.filterCommonName = &filterCommonName + return r +} + +func (r ApiAutoCertificatesGetRequest) Execute() (AutoCertificateReadList, *shared.APIResponse, error) { + return r.ApiService.AutoCertificatesGetExecute(r) +} + +/* + - AutoCertificatesGet Retrieve all AutoCertificate + - This endpoint enables retrieving all AutoCertificate using + +pagination and optional filters. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @return ApiAutoCertificatesGetRequest +*/ +func (a *AutoCertificateApiService) AutoCertificatesGet(ctx _context.Context) ApiAutoCertificatesGetRequest { + return ApiAutoCertificatesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AutoCertificateReadList + */ +func (a *AutoCertificateApiService) AutoCertificatesGetExecute(r ApiAutoCertificatesGetRequest) (AutoCertificateReadList, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AutoCertificateReadList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutoCertificateApiService.AutoCertificatesGet") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/auto-certificates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.filterCommonName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filter.commonName", r.filterCommonName, "") + } + // 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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "AutoCertificatesGet", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiAutoCertificatesPatchRequest struct { + ctx _context.Context + ApiService *AutoCertificateApiService + autoCertificateId string + autoCertificatePatch *AutoCertificatePatch +} + +func (r ApiAutoCertificatesPatchRequest) AutoCertificatePatch(autoCertificatePatch AutoCertificatePatch) ApiAutoCertificatesPatchRequest { + r.autoCertificatePatch = &autoCertificatePatch + return r +} + +func (r ApiAutoCertificatesPatchRequest) Execute() (AutoCertificateRead, *shared.APIResponse, error) { + return r.ApiService.AutoCertificatesPatchExecute(r) +} + +/* + - AutoCertificatesPatch Updates AutoCertificate + - Changes AutoCertificate with the provided ID. + +Values provides will replace the existing data. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param autoCertificateId The ID (UUID) of the AutoCertificate. + - @return ApiAutoCertificatesPatchRequest +*/ +func (a *AutoCertificateApiService) AutoCertificatesPatch(ctx _context.Context, autoCertificateId string) ApiAutoCertificatesPatchRequest { + return ApiAutoCertificatesPatchRequest{ + ApiService: a, + ctx: ctx, + autoCertificateId: autoCertificateId, + } +} + +/* + * Execute executes the request + * @return AutoCertificateRead + */ +func (a *AutoCertificateApiService) AutoCertificatesPatchExecute(r ApiAutoCertificatesPatchRequest) (AutoCertificateRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AutoCertificateRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutoCertificateApiService.AutoCertificatesPatch") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/auto-certificates/{autoCertificateId}" + localVarPath = strings.Replace(localVarPath, "{"+"autoCertificateId"+"}", _neturl.PathEscape(parameterValueToString(r.autoCertificateId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.autoCertificatePatch == nil { + return localVarReturnValue, nil, reportError("autoCertificatePatch 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.autoCertificatePatch + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "AutoCertificatesPatch", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 415 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiAutoCertificatesPostRequest struct { + ctx _context.Context + ApiService *AutoCertificateApiService + autoCertificateCreate *AutoCertificateCreate +} + +func (r ApiAutoCertificatesPostRequest) AutoCertificateCreate(autoCertificateCreate AutoCertificateCreate) ApiAutoCertificatesPostRequest { + r.autoCertificateCreate = &autoCertificateCreate + return r +} + +func (r ApiAutoCertificatesPostRequest) Execute() (AutoCertificateRead, *shared.APIResponse, error) { + return r.ApiService.AutoCertificatesPostExecute(r) +} + +/* + - AutoCertificatesPost Create AutoCertificate + - Creates a new AutoCertificate. + +The full AutoCertificate needs to be provided to create the object. +Optional data will be filled with defaults or left empty. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @return ApiAutoCertificatesPostRequest +*/ +func (a *AutoCertificateApiService) AutoCertificatesPost(ctx _context.Context) ApiAutoCertificatesPostRequest { + return ApiAutoCertificatesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AutoCertificateRead + */ +func (a *AutoCertificateApiService) AutoCertificatesPostExecute(r ApiAutoCertificatesPostRequest) (AutoCertificateRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AutoCertificateRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AutoCertificateApiService.AutoCertificatesPost") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/auto-certificates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.autoCertificateCreate == nil { + return localVarReturnValue, nil, reportError("autoCertificateCreate 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.autoCertificateCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "AutoCertificatesPost", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 415 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} diff --git a/products/cert/api_certificate.go b/products/cert/api_certificate.go new file mode 100644 index 0000000..6838095 --- /dev/null +++ b/products/cert/api_certificate.go @@ -0,0 +1,1032 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + _context "context" + "fmt" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "io" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +// CertificateApiService CertificateApi service +type CertificateApiService service + +type ApiCertificatesDeleteRequest struct { + ctx _context.Context + ApiService *CertificateApiService + certificateId string +} + +func (r ApiCertificatesDeleteRequest) Execute() (*shared.APIResponse, error) { + return r.ApiService.CertificatesDeleteExecute(r) +} + +/* + * CertificatesDelete Delete Certificate + * Deletes the specified Certificate. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param certificateId The ID (UUID) of the Certificate. + * @return ApiCertificatesDeleteRequest + */ +func (a *CertificateApiService) CertificatesDelete(ctx _context.Context, certificateId string) ApiCertificatesDeleteRequest { + return ApiCertificatesDeleteRequest{ + ApiService: a, + ctx: ctx, + certificateId: certificateId, + } +} + +/* + * Execute executes the request + */ +func (a *CertificateApiService) CertificatesDeleteExecute(r ApiCertificatesDeleteRequest) (*shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificateApiService.CertificatesDelete") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return nil, gerr + } + + localVarPath := localBasePath + "/certificates/{certificateId}" + localVarPath = strings.Replace(localVarPath, "{"+"certificateId"+"}", _neturl.PathEscape(parameterValueToString(r.certificateId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "CertificatesDelete", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarAPIResponse, newErr + } + + return localVarAPIResponse, nil +} + +type ApiCertificatesFindByIdRequest struct { + ctx _context.Context + ApiService *CertificateApiService + certificateId string +} + +func (r ApiCertificatesFindByIdRequest) Execute() (CertificateRead, *shared.APIResponse, error) { + return r.ApiService.CertificatesFindByIdExecute(r) +} + +/* + * CertificatesFindById Retrieve Certificate + * Returns the Certificate by ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param certificateId The ID (UUID) of the Certificate. + * @return ApiCertificatesFindByIdRequest + */ +func (a *CertificateApiService) CertificatesFindById(ctx _context.Context, certificateId string) ApiCertificatesFindByIdRequest { + return ApiCertificatesFindByIdRequest{ + ApiService: a, + ctx: ctx, + certificateId: certificateId, + } +} + +/* + * Execute executes the request + * @return CertificateRead + */ +func (a *CertificateApiService) CertificatesFindByIdExecute(r ApiCertificatesFindByIdRequest) (CertificateRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CertificateRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificateApiService.CertificatesFindById") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/certificates/{certificateId}" + localVarPath = strings.Replace(localVarPath, "{"+"certificateId"+"}", _neturl.PathEscape(parameterValueToString(r.certificateId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "CertificatesFindById", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiCertificatesGetRequest struct { + ctx _context.Context + ApiService *CertificateApiService + offset *int32 + limit *int32 + filterCommonName *string + filterAutoCertificate *string +} + +func (r ApiCertificatesGetRequest) Offset(offset int32) ApiCertificatesGetRequest { + r.offset = &offset + return r +} +func (r ApiCertificatesGetRequest) Limit(limit int32) ApiCertificatesGetRequest { + r.limit = &limit + return r +} +func (r ApiCertificatesGetRequest) FilterCommonName(filterCommonName string) ApiCertificatesGetRequest { + r.filterCommonName = &filterCommonName + return r +} +func (r ApiCertificatesGetRequest) FilterAutoCertificate(filterAutoCertificate string) ApiCertificatesGetRequest { + r.filterAutoCertificate = &filterAutoCertificate + return r +} + +func (r ApiCertificatesGetRequest) Execute() (CertificateReadList, *shared.APIResponse, error) { + return r.ApiService.CertificatesGetExecute(r) +} + +/* + - CertificatesGet Retrieve all Certificate + - This endpoint enables retrieving all Certificate using + +pagination and optional filters. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @return ApiCertificatesGetRequest +*/ +func (a *CertificateApiService) CertificatesGet(ctx _context.Context) ApiCertificatesGetRequest { + return ApiCertificatesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CertificateReadList + */ +func (a *CertificateApiService) CertificatesGetExecute(r ApiCertificatesGetRequest) (CertificateReadList, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CertificateReadList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificateApiService.CertificatesGet") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/certificates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.filterCommonName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filter.commonName", r.filterCommonName, "") + } + if r.filterAutoCertificate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filter.autoCertificate", r.filterAutoCertificate, "") + } + // 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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "CertificatesGet", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiCertificatesPatchRequest struct { + ctx _context.Context + ApiService *CertificateApiService + certificateId string + certificatePatch *CertificatePatch +} + +func (r ApiCertificatesPatchRequest) CertificatePatch(certificatePatch CertificatePatch) ApiCertificatesPatchRequest { + r.certificatePatch = &certificatePatch + return r +} + +func (r ApiCertificatesPatchRequest) Execute() (CertificateRead, *shared.APIResponse, error) { + return r.ApiService.CertificatesPatchExecute(r) +} + +/* + - CertificatesPatch Updates Certificate + - Changes Certificate with the provided ID. + +Values provides will replace the existing data. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param certificateId The ID (UUID) of the Certificate. + - @return ApiCertificatesPatchRequest +*/ +func (a *CertificateApiService) CertificatesPatch(ctx _context.Context, certificateId string) ApiCertificatesPatchRequest { + return ApiCertificatesPatchRequest{ + ApiService: a, + ctx: ctx, + certificateId: certificateId, + } +} + +/* + * Execute executes the request + * @return CertificateRead + */ +func (a *CertificateApiService) CertificatesPatchExecute(r ApiCertificatesPatchRequest) (CertificateRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CertificateRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificateApiService.CertificatesPatch") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/certificates/{certificateId}" + localVarPath = strings.Replace(localVarPath, "{"+"certificateId"+"}", _neturl.PathEscape(parameterValueToString(r.certificateId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.certificatePatch == nil { + return localVarReturnValue, nil, reportError("certificatePatch 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.certificatePatch + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "CertificatesPatch", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 415 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiCertificatesPostRequest struct { + ctx _context.Context + ApiService *CertificateApiService + certificateCreate *CertificateCreate +} + +func (r ApiCertificatesPostRequest) CertificateCreate(certificateCreate CertificateCreate) ApiCertificatesPostRequest { + r.certificateCreate = &certificateCreate + return r +} + +func (r ApiCertificatesPostRequest) Execute() (CertificateRead, *shared.APIResponse, error) { + return r.ApiService.CertificatesPostExecute(r) +} + +/* + - CertificatesPost Create Certificate + - Creates a new Certificate. + +The full Certificate needs to be provided to create the object. +Optional data will be filled with defaults or left empty. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @return ApiCertificatesPostRequest +*/ +func (a *CertificateApiService) CertificatesPost(ctx _context.Context) ApiCertificatesPostRequest { + return ApiCertificatesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CertificateRead + */ +func (a *CertificateApiService) CertificatesPostExecute(r ApiCertificatesPostRequest) (CertificateRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CertificateRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificateApiService.CertificatesPost") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/certificates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.certificateCreate == nil { + return localVarReturnValue, nil, reportError("certificateCreate 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.certificateCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "CertificatesPost", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 415 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} diff --git a/products/cert/api_certificates.go b/products/cert/api_certificates.go deleted file mode 100644 index 374b052..0000000 --- a/products/cert/api_certificates.go +++ /dev/null @@ -1,699 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - _context "context" - "fmt" - "github.com/ionos-cloud/sdk-go-bundle/shared" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" - "strings" -) - -// Linger please -var ( - _ _context.Context -) - -// CertificatesApiService CertificatesApi service -type CertificatesApiService service - -type ApiCertificatesDeleteRequest struct { - ctx _context.Context - ApiService *CertificatesApiService - certificateId string -} - -func (r ApiCertificatesDeleteRequest) Execute() (*shared.APIResponse, error) { - return r.ApiService.CertificatesDeleteExecute(r) -} - -/* - * CertificatesDelete Delete a Certificate by ID - * Deletes a certificate specified by its ID. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param certificateId - * @return ApiCertificatesDeleteRequest - */ -func (a *CertificatesApiService) CertificatesDelete(ctx _context.Context, certificateId string) ApiCertificatesDeleteRequest { - return ApiCertificatesDeleteRequest{ - ApiService: a, - ctx: ctx, - certificateId: certificateId, - } -} - -/* - * Execute executes the request - */ -func (a *CertificatesApiService) CertificatesDeleteExecute(r ApiCertificatesDeleteRequest) (*shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificatesApiService.CertificatesDelete") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager/certificates/{certificateId}" - localVarPath = strings.Replace(localVarPath, "{"+"certificateId"+"}", _neturl.PathEscape(parameterToString(r.certificateId, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.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{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "CertificatesDelete", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarAPIResponse, newErr - } - - return localVarAPIResponse, nil -} - -type ApiCertificatesGetRequest struct { - ctx _context.Context - ApiService *CertificatesApiService - offset *string - limit *string -} - -func (r ApiCertificatesGetRequest) Offset(offset string) ApiCertificatesGetRequest { - r.offset = &offset - return r -} -func (r ApiCertificatesGetRequest) Limit(limit string) ApiCertificatesGetRequest { - r.limit = &limit - return r -} - -func (r ApiCertificatesGetRequest) Execute() (CertificateCollectionDto, *shared.APIResponse, error) { - return r.ApiService.CertificatesGetExecute(r) -} - -/* - * CertificatesGet Get Certificates - * Retrieves all available certificates. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCertificatesGetRequest - */ -func (a *CertificatesApiService) CertificatesGet(ctx _context.Context) ApiCertificatesGetRequest { - return ApiCertificatesGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return CertificateCollectionDto - */ -func (a *CertificatesApiService) CertificatesGetExecute(r ApiCertificatesGetRequest) (CertificateCollectionDto, *shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue CertificateCollectionDto - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificatesApiService.CertificatesGet") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return localVarReturnValue, nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager/certificates" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.offset != nil { - localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) - } - if r.limit != nil { - localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) - } - // 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 - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "CertificatesGet", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarReturnValue, localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarReturnValue, localVarAPIResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(err.Error()) - return localVarReturnValue, localVarAPIResponse, newErr - } - - return localVarReturnValue, localVarAPIResponse, nil -} - -type ApiCertificatesGetByIdRequest struct { - ctx _context.Context - ApiService *CertificatesApiService - certificateId string -} - -func (r ApiCertificatesGetByIdRequest) Execute() (CertificateDto, *shared.APIResponse, error) { - return r.ApiService.CertificatesGetByIdExecute(r) -} - -/* - * CertificatesGetById Get a Certificate by ID - * Retrieves a certificate specified by its ID. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param certificateId - * @return ApiCertificatesGetByIdRequest - */ -func (a *CertificatesApiService) CertificatesGetById(ctx _context.Context, certificateId string) ApiCertificatesGetByIdRequest { - return ApiCertificatesGetByIdRequest{ - ApiService: a, - ctx: ctx, - certificateId: certificateId, - } -} - -/* - * Execute executes the request - * @return CertificateDto - */ -func (a *CertificatesApiService) CertificatesGetByIdExecute(r ApiCertificatesGetByIdRequest) (CertificateDto, *shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue CertificateDto - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificatesApiService.CertificatesGetById") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return localVarReturnValue, nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager/certificates/{certificateId}" - localVarPath = strings.Replace(localVarPath, "{"+"certificateId"+"}", _neturl.PathEscape(parameterToString(r.certificateId, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.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 - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "CertificatesGetById", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarReturnValue, localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarReturnValue, localVarAPIResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(err.Error()) - return localVarReturnValue, localVarAPIResponse, newErr - } - - return localVarReturnValue, localVarAPIResponse, nil -} - -type ApiCertificatesPatchRequest struct { - ctx _context.Context - ApiService *CertificatesApiService - certificateId string - certificatePatchDto *CertificatePatchDto -} - -func (r ApiCertificatesPatchRequest) CertificatePatchDto(certificatePatchDto CertificatePatchDto) ApiCertificatesPatchRequest { - r.certificatePatchDto = &certificatePatchDto - return r -} - -func (r ApiCertificatesPatchRequest) Execute() (CertificateDto, *shared.APIResponse, error) { - return r.ApiService.CertificatesPatchExecute(r) -} - -/* - * CertificatesPatch Update a Certificate Name by ID - * Updates the name of the specified certificate. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param certificateId - * @return ApiCertificatesPatchRequest - */ -func (a *CertificatesApiService) CertificatesPatch(ctx _context.Context, certificateId string) ApiCertificatesPatchRequest { - return ApiCertificatesPatchRequest{ - ApiService: a, - ctx: ctx, - certificateId: certificateId, - } -} - -/* - * Execute executes the request - * @return CertificateDto - */ -func (a *CertificatesApiService) CertificatesPatchExecute(r ApiCertificatesPatchRequest) (CertificateDto, *shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPatch - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue CertificateDto - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificatesApiService.CertificatesPatch") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return localVarReturnValue, nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager/certificates/{certificateId}" - localVarPath = strings.Replace(localVarPath, "{"+"certificateId"+"}", _neturl.PathEscape(parameterToString(r.certificateId, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.certificatePatchDto == nil { - return localVarReturnValue, nil, reportError("certificatePatchDto 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.certificatePatchDto - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "CertificatesPatch", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarReturnValue, localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarReturnValue, localVarAPIResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(err.Error()) - return localVarReturnValue, localVarAPIResponse, newErr - } - - return localVarReturnValue, localVarAPIResponse, nil -} - -type ApiCertificatesPostRequest struct { - ctx _context.Context - ApiService *CertificatesApiService - certificatePostDto *CertificatePostDto -} - -func (r ApiCertificatesPostRequest) CertificatePostDto(certificatePostDto CertificatePostDto) ApiCertificatesPostRequest { - r.certificatePostDto = &certificatePostDto - return r -} - -func (r ApiCertificatesPostRequest) Execute() (CertificateDto, *shared.APIResponse, error) { - return r.ApiService.CertificatesPostExecute(r) -} - -/* - * CertificatesPost Add a New Certificate - * Adds a new PEM (Privacy Enhanced Mail) file that is used to store SSL certificates and their associated private keys. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCertificatesPostRequest - */ -func (a *CertificatesApiService) CertificatesPost(ctx _context.Context) ApiCertificatesPostRequest { - return ApiCertificatesPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return CertificateDto - */ -func (a *CertificatesApiService) CertificatesPostExecute(r ApiCertificatesPostRequest) (CertificateDto, *shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue CertificateDto - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificatesApiService.CertificatesPost") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return localVarReturnValue, nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager/certificates" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.certificatePostDto == nil { - return localVarReturnValue, nil, reportError("certificatePostDto 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.certificatePostDto - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "CertificatesPost", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarReturnValue, localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarReturnValue, localVarAPIResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(err.Error()) - return localVarReturnValue, localVarAPIResponse, newErr - } - - return localVarReturnValue, localVarAPIResponse, nil -} diff --git a/products/cert/api_information.go b/products/cert/api_information.go deleted file mode 100644 index 8a86b1a..0000000 --- a/products/cert/api_information.go +++ /dev/null @@ -1,407 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - _context "context" - "fmt" - "github.com/ionos-cloud/sdk-go-bundle/shared" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" - "os" -) - -// Linger please -var ( - _ _context.Context -) - -// InformationApiService InformationApi service -type InformationApiService service - -type ApiGetInfoRequest struct { - ctx _context.Context - ApiService *InformationApiService -} - -func (r ApiGetInfoRequest) Execute() (ApiInfoDto, *shared.APIResponse, error) { - return r.ApiService.GetInfoExecute(r) -} - -/* - * GetInfo Get the Service API Information - * Retrieves the service API information. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetInfoRequest - */ -func (a *InformationApiService) GetInfo(ctx _context.Context) ApiGetInfoRequest { - return ApiGetInfoRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return ApiInfoDto - */ -func (a *InformationApiService) GetInfoExecute(r ApiGetInfoRequest) (ApiInfoDto, *shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue ApiInfoDto - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InformationApiService.GetInfo") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return localVarReturnValue, nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.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 - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "GetInfo", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarReturnValue, localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarReturnValue, localVarAPIResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(err.Error()) - return localVarReturnValue, localVarAPIResponse, newErr - } - - return localVarReturnValue, localVarAPIResponse, nil -} - -type ApiGetJsonOpenApiSpecRequest struct { - ctx _context.Context - ApiService *InformationApiService -} - -func (r ApiGetJsonOpenApiSpecRequest) Execute() (*os.File, *shared.APIResponse, error) { - return r.ApiService.GetJsonOpenApiSpecExecute(r) -} - -/* - * GetJsonOpenApiSpec Get the Open API Documentation JSON - * Displays the Open API documentation in the JSON format. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetJsonOpenApiSpecRequest - */ -func (a *InformationApiService) GetJsonOpenApiSpec(ctx _context.Context) ApiGetJsonOpenApiSpecRequest { - return ApiGetJsonOpenApiSpecRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return *os.File - */ -func (a *InformationApiService) GetJsonOpenApiSpecExecute(r ApiGetJsonOpenApiSpecRequest) (*os.File, *shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue *os.File - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InformationApiService.GetJsonOpenApiSpec") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return localVarReturnValue, nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager/openapi.json" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.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 - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "GetJsonOpenApiSpec", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarReturnValue, localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarReturnValue, localVarAPIResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(err.Error()) - return localVarReturnValue, localVarAPIResponse, newErr - } - - return localVarReturnValue, localVarAPIResponse, nil -} - -type ApiGetYamlOpenApiSpecRequest struct { - ctx _context.Context - ApiService *InformationApiService -} - -func (r ApiGetYamlOpenApiSpecRequest) Execute() (*os.File, *shared.APIResponse, error) { - return r.ApiService.GetYamlOpenApiSpecExecute(r) -} - -/* - * GetYamlOpenApiSpec Get the Open API Documentation YAML - * Displays the Open API documentation in the YAML format. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetYamlOpenApiSpecRequest - */ -func (a *InformationApiService) GetYamlOpenApiSpec(ctx _context.Context) ApiGetYamlOpenApiSpecRequest { - return ApiGetYamlOpenApiSpecRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return *os.File - */ -func (a *InformationApiService) GetYamlOpenApiSpecExecute(r ApiGetYamlOpenApiSpecRequest) (*os.File, *shared.APIResponse, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue *os.File - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InformationApiService.GetYamlOpenApiSpec") - if err != nil { - gerr := shared.GenericOpenAPIError{} - gerr.SetError(err.Error()) - return localVarReturnValue, nil, gerr - } - - localVarPath := localBasePath + "/certificatemanager/openapi.yaml" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.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/yaml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(shared.ContextAPIKeys).(map[string]shared.APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) - - localVarAPIResponse := &shared.APIResponse{ - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, - RequestTime: httpRequestTime, - RequestURL: localVarPath, - Operation: "GetYamlOpenApiSpec", - } - - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarAPIResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarAPIResponse.Payload = localVarBody - if err != nil { - return localVarReturnValue, localVarAPIResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) - return localVarReturnValue, localVarAPIResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := shared.GenericOpenAPIError{} - newErr.SetStatusCode(localVarHTTPResponse.StatusCode) - newErr.SetBody(localVarBody) - newErr.SetError(err.Error()) - return localVarReturnValue, localVarAPIResponse, newErr - } - - return localVarReturnValue, localVarAPIResponse, nil -} diff --git a/products/cert/api_provider.go b/products/cert/api_provider.go new file mode 100644 index 0000000..558f326 --- /dev/null +++ b/products/cert/api_provider.go @@ -0,0 +1,1016 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + _context "context" + "fmt" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "io" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +// ProviderApiService ProviderApi service +type ProviderApiService service + +type ApiProvidersDeleteRequest struct { + ctx _context.Context + ApiService *ProviderApiService + providerId string +} + +func (r ApiProvidersDeleteRequest) Execute() (*shared.APIResponse, error) { + return r.ApiService.ProvidersDeleteExecute(r) +} + +/* + * ProvidersDelete Delete Provider + * Deletes the specified Provider. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param providerId The ID (UUID) of the Provider. + * @return ApiProvidersDeleteRequest + */ +func (a *ProviderApiService) ProvidersDelete(ctx _context.Context, providerId string) ApiProvidersDeleteRequest { + return ApiProvidersDeleteRequest{ + ApiService: a, + ctx: ctx, + providerId: providerId, + } +} + +/* + * Execute executes the request + */ +func (a *ProviderApiService) ProvidersDeleteExecute(r ApiProvidersDeleteRequest) (*shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProviderApiService.ProvidersDelete") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return nil, gerr + } + + localVarPath := localBasePath + "/providers/{providerId}" + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", _neturl.PathEscape(parameterValueToString(r.providerId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "ProvidersDelete", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarAPIResponse, newErr + } + + return localVarAPIResponse, nil +} + +type ApiProvidersFindByIdRequest struct { + ctx _context.Context + ApiService *ProviderApiService + providerId string +} + +func (r ApiProvidersFindByIdRequest) Execute() (ProviderRead, *shared.APIResponse, error) { + return r.ApiService.ProvidersFindByIdExecute(r) +} + +/* + * ProvidersFindById Retrieve Provider + * Returns the Provider by ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param providerId The ID (UUID) of the Provider. + * @return ApiProvidersFindByIdRequest + */ +func (a *ProviderApiService) ProvidersFindById(ctx _context.Context, providerId string) ApiProvidersFindByIdRequest { + return ApiProvidersFindByIdRequest{ + ApiService: a, + ctx: ctx, + providerId: providerId, + } +} + +/* + * Execute executes the request + * @return ProviderRead + */ +func (a *ProviderApiService) ProvidersFindByIdExecute(r ApiProvidersFindByIdRequest) (ProviderRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProviderRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProviderApiService.ProvidersFindById") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/providers/{providerId}" + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", _neturl.PathEscape(parameterValueToString(r.providerId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "ProvidersFindById", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiProvidersGetRequest struct { + ctx _context.Context + ApiService *ProviderApiService + offset *int32 + limit *int32 +} + +func (r ApiProvidersGetRequest) Offset(offset int32) ApiProvidersGetRequest { + r.offset = &offset + return r +} +func (r ApiProvidersGetRequest) Limit(limit int32) ApiProvidersGetRequest { + r.limit = &limit + return r +} + +func (r ApiProvidersGetRequest) Execute() (ProviderReadList, *shared.APIResponse, error) { + return r.ApiService.ProvidersGetExecute(r) +} + +/* + - ProvidersGet Retrieve all Provider + - This endpoint enables retrieving all Provider using + +pagination and optional filters. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @return ApiProvidersGetRequest +*/ +func (a *ProviderApiService) ProvidersGet(ctx _context.Context) ApiProvidersGetRequest { + return ApiProvidersGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ProviderReadList + */ +func (a *ProviderApiService) ProvidersGetExecute(r ApiProvidersGetRequest) (ProviderReadList, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProviderReadList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProviderApiService.ProvidersGet") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "ProvidersGet", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiProvidersPatchRequest struct { + ctx _context.Context + ApiService *ProviderApiService + providerId string + providerPatch *ProviderPatch +} + +func (r ApiProvidersPatchRequest) ProviderPatch(providerPatch ProviderPatch) ApiProvidersPatchRequest { + r.providerPatch = &providerPatch + return r +} + +func (r ApiProvidersPatchRequest) Execute() (ProviderRead, *shared.APIResponse, error) { + return r.ApiService.ProvidersPatchExecute(r) +} + +/* + - ProvidersPatch Updates Provider + - Changes Provider with the provided ID. + +Values provides will replace the existing data. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param providerId The ID (UUID) of the Provider. + - @return ApiProvidersPatchRequest +*/ +func (a *ProviderApiService) ProvidersPatch(ctx _context.Context, providerId string) ApiProvidersPatchRequest { + return ApiProvidersPatchRequest{ + ApiService: a, + ctx: ctx, + providerId: providerId, + } +} + +/* + * Execute executes the request + * @return ProviderRead + */ +func (a *ProviderApiService) ProvidersPatchExecute(r ApiProvidersPatchRequest) (ProviderRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProviderRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProviderApiService.ProvidersPatch") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/providers/{providerId}" + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", _neturl.PathEscape(parameterValueToString(r.providerId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.providerPatch == nil { + return localVarReturnValue, nil, reportError("providerPatch 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.providerPatch + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "ProvidersPatch", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 415 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} + +type ApiProvidersPostRequest struct { + ctx _context.Context + ApiService *ProviderApiService + providerCreate *ProviderCreate +} + +func (r ApiProvidersPostRequest) ProviderCreate(providerCreate ProviderCreate) ApiProvidersPostRequest { + r.providerCreate = &providerCreate + return r +} + +func (r ApiProvidersPostRequest) Execute() (ProviderRead, *shared.APIResponse, error) { + return r.ApiService.ProvidersPostExecute(r) +} + +/* + - ProvidersPost Create Provider + - Creates a new Provider. + +The full Provider needs to be provided to create the object. +Optional data will be filled with defaults or left empty. + + - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @return ApiProvidersPostRequest +*/ +func (a *ProviderApiService) ProvidersPost(ctx _context.Context) ApiProvidersPostRequest { + return ApiProvidersPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ProviderRead + */ +func (a *ProviderApiService) ProvidersPostExecute(r ApiProvidersPostRequest) (ProviderRead, *shared.APIResponse, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProviderRead + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProviderApiService.ProvidersPost") + if err != nil { + gerr := shared.GenericOpenAPIError{} + gerr.SetError(err.Error()) + return localVarReturnValue, nil, gerr + } + + localVarPath := localBasePath + "/providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.providerCreate == nil { + return localVarReturnValue, nil, reportError("providerCreate 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.providerCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, httpRequestTime, err := a.client.callAPI(req) + + localVarAPIResponse := &shared.APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, + RequestTime: httpRequestTime, + RequestURL: localVarPath, + Operation: "ProvidersPost", + } + + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarAPIResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarAPIResponse.Payload = localVarBody + if err != nil { + return localVarReturnValue, localVarAPIResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(fmt.Sprintf("%s: %s", localVarHTTPResponse.Status, string(localVarBody))) + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 415 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.SetModel(v) + return localVarReturnValue, localVarAPIResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := shared.GenericOpenAPIError{} + newErr.SetStatusCode(localVarHTTPResponse.StatusCode) + newErr.SetBody(localVarBody) + newErr.SetError(err.Error()) + return localVarReturnValue, localVarAPIResponse, newErr + } + + return localVarReturnValue, localVarAPIResponse, nil +} diff --git a/products/cert/client.go b/products/cert/client.go index 0d17f22..315729c 100644 --- a/products/cert/client.go +++ b/products/cert/client.go @@ -1,9 +1,9 @@ /* * Certificate Manager Service API * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. * - * API version: 1.0 + * API version: 2.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,8 +40,10 @@ import ( ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)\/(?:vnd\.[^;]+|problem\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)\/(?:vnd\.[^;]+|problem\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) const ( @@ -50,10 +52,10 @@ const ( RequestStatusFailed = "FAILED" RequestStatusDone = "DONE" - Version = "products/cert/v0.1.0" + Version = "products/cert/v2.0.1" ) -// APIClient manages communication with the Certificate Manager Service API API v1.0 +// APIClient manages communication with the Certificate Manager Service API API v2.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *shared.Configuration @@ -61,9 +63,11 @@ type APIClient struct { // API Services - CertificatesApi *CertificatesApiService + AutoCertificateApi *AutoCertificateApiService - InformationApi *InformationApiService + CertificateApi *CertificateApiService + + ProviderApi *ProviderApiService } type service struct { @@ -80,8 +84,8 @@ func NewAPIClient(cfg *shared.Configuration) *APIClient { if len(cfg.Servers) == 0 { cfg.Servers = shared.ServerConfigurations{ { - URL: "https://api.ionos.com", - Description: "Production", + URL: "https://certificate-manager.de-fra.ionos.com", + Description: "Frankfurt", }, } } @@ -98,8 +102,9 @@ func NewAPIClient(cfg *shared.Configuration) *APIClient { c.common.client = c // API Services - c.CertificatesApi = (*CertificatesApiService)(&c.common) - c.InformationApi = (*InformationApiService)(&c.common) + c.AutoCertificateApi = (*AutoCertificateApiService)(&c.common) + c.CertificateApi = (*CertificateApiService)(&c.common) + c.ProviderApi = (*ProviderApiService)(&c.common) return c } @@ -246,6 +251,103 @@ func parameterToJson(obj interface{}) (string, error) { return string(jsonBuf), err } +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType) + } + return + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) + } + return + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType) + return + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + // callAPI do the request. func (c *APIClient) callAPI(request *http.Request) (*http.Response, time.Duration, error) { retryCount := 0 @@ -300,6 +402,9 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, time.Duratio case http.StatusServiceUnavailable, http.StatusGatewayTimeout, http.StatusBadGateway: + if request.Method == http.MethodPost { + return resp, httpRequestTime, err + } backoffTime = c.GetConfig().WaitTime case http.StatusTooManyRequests: @@ -323,21 +428,30 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, time.Duratio } break } else { - c.backOff(backoffTime) + c.backOff(request.Context(), backoffTime) } } return resp, httpRequestTime, err } -func (c *APIClient) backOff(t time.Duration) { +func (c *APIClient) backOff(ctx context.Context, t time.Duration) { if t > c.GetConfig().MaxWaitTime { t = c.GetConfig().MaxWaitTime } if shared.SdkLogLevel.Satisfies(shared.Debug) { shared.SdkLogger.Printf(" Sleeping %s before retrying request\n", t.String()) } - time.Sleep(t) + if t <= 0 { + return + } + timer := time.NewTimer(t) + defer timer.Stop() + + select { + case <-ctx.Done(): + case <-timer.C: + } } // Allow modification of underlying config for alternate implementations and testing @@ -456,7 +570,11 @@ func (c *APIClient) prepareRequest( } // Encode the parameters. - url.RawQuery = query.Encode() + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) // Generate a new request if body != nil { diff --git a/products/cert/docs/api/AutoCertificateApi.md b/products/cert/docs/api/AutoCertificateApi.md new file mode 100644 index 0000000..92ff06a --- /dev/null +++ b/products/cert/docs/api/AutoCertificateApi.md @@ -0,0 +1,351 @@ +# \AutoCertificateApi + +All URIs are relative to *https://certificate-manager.de-fra.ionos.com* + +|Method | HTTP request | Description| +|------------- | ------------- | -------------| +|[**AutoCertificatesDelete**](AutoCertificateApi.md#AutoCertificatesDelete) | **Delete** /auto-certificates/{autoCertificateId} | Delete AutoCertificate| +|[**AutoCertificatesFindById**](AutoCertificateApi.md#AutoCertificatesFindById) | **Get** /auto-certificates/{autoCertificateId} | Retrieve AutoCertificate| +|[**AutoCertificatesGet**](AutoCertificateApi.md#AutoCertificatesGet) | **Get** /auto-certificates | Retrieve all AutoCertificate| +|[**AutoCertificatesPatch**](AutoCertificateApi.md#AutoCertificatesPatch) | **Patch** /auto-certificates/{autoCertificateId} | Updates AutoCertificate| +|[**AutoCertificatesPost**](AutoCertificateApi.md#AutoCertificatesPost) | **Post** /auto-certificates | Create AutoCertificate| + + + +## AutoCertificatesDelete + +```go +var result = AutoCertificatesDelete(ctx, autoCertificateId) + .Execute() +``` + +Delete AutoCertificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + autoCertificateId := "f88467f8-a2d6-5871-83b9-e10f23d0a48a" // string | The ID (UUID) of the AutoCertificate. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resp, err := apiClient.AutoCertificateApi.AutoCertificatesDelete(context.Background(), autoCertificateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AutoCertificateApi.AutoCertificatesDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**autoCertificateId** | **string** | The ID (UUID) of the AutoCertificate. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiAutoCertificatesDeleteRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| + +### Return type + + (empty response body) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## AutoCertificatesFindById + +```go +var result AutoCertificateRead = AutoCertificatesFindById(ctx, autoCertificateId) + .Execute() +``` + +Retrieve AutoCertificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + autoCertificateId := "f88467f8-a2d6-5871-83b9-e10f23d0a48a" // string | The ID (UUID) of the AutoCertificate. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.AutoCertificateApi.AutoCertificatesFindById(context.Background(), autoCertificateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AutoCertificateApi.AutoCertificatesFindById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `AutoCertificatesFindById`: AutoCertificateRead + fmt.Fprintf(os.Stdout, "Response from `AutoCertificateApi.AutoCertificatesFindById`: %v\n", resource) +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**autoCertificateId** | **string** | The ID (UUID) of the AutoCertificate. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiAutoCertificatesFindByIdRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| + +### Return type + +[**AutoCertificateRead**](../models/AutoCertificateRead.md) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## AutoCertificatesGet + +```go +var result AutoCertificateReadList = AutoCertificatesGet(ctx) + .Offset(offset) + .Limit(limit) + .FilterCommonName(filterCommonName) + .Execute() +``` + +Retrieve all AutoCertificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + offset := int32(0) // int32 | The first element (of the total list of elements) to include in the response. Use together with limit for pagination. (optional) (default to 0) + limit := int32(100) // int32 | The maximum number of elements to return. Use together with offset for pagination. (optional) (default to 100) + filterCommonName := "www.example.com" // string | Filter by the common name (DNS). (optional) + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.AutoCertificateApi.AutoCertificatesGet(context.Background()).Offset(offset).Limit(limit).FilterCommonName(filterCommonName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AutoCertificateApi.AutoCertificatesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `AutoCertificatesGet`: AutoCertificateReadList + fmt.Fprintf(os.Stdout, "Response from `AutoCertificateApi.AutoCertificatesGet`: %v\n", resource) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to an apiAutoCertificatesGetRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **offset** | **int32** | The first element (of the total list of elements) to include in the response. Use together with limit for pagination. | [default to 0]| +| **limit** | **int32** | The maximum number of elements to return. Use together with offset for pagination. | [default to 100]| +| **filterCommonName** | **string** | Filter by the common name (DNS). | | + +### Return type + +[**AutoCertificateReadList**](../models/AutoCertificateReadList.md) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## AutoCertificatesPatch + +```go +var result AutoCertificateRead = AutoCertificatesPatch(ctx, autoCertificateId) + .AutoCertificatePatch(autoCertificatePatch) + .Execute() +``` + +Updates AutoCertificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + autoCertificateId := "f88467f8-a2d6-5871-83b9-e10f23d0a48a" // string | The ID (UUID) of the AutoCertificate. + autoCertificatePatch := *openapiclient.NewAutoCertificatePatch(*openapiclient.NewPatchName("My name")) // AutoCertificatePatch | patch AutoCertificate + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.AutoCertificateApi.AutoCertificatesPatch(context.Background(), autoCertificateId).AutoCertificatePatch(autoCertificatePatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AutoCertificateApi.AutoCertificatesPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `AutoCertificatesPatch`: AutoCertificateRead + fmt.Fprintf(os.Stdout, "Response from `AutoCertificateApi.AutoCertificatesPatch`: %v\n", resource) +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**autoCertificateId** | **string** | The ID (UUID) of the AutoCertificate. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiAutoCertificatesPatchRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **autoCertificatePatch** | [**AutoCertificatePatch**](../models/AutoCertificatePatch.md) | patch AutoCertificate | | + +### Return type + +[**AutoCertificateRead**](../models/AutoCertificateRead.md) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + + +## AutoCertificatesPost + +```go +var result AutoCertificateRead = AutoCertificatesPost(ctx) + .AutoCertificateCreate(autoCertificateCreate) + .Execute() +``` + +Create AutoCertificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + autoCertificateCreate := *openapiclient.NewAutoCertificateCreate(*openapiclient.NewAutoCertificate("b471cd03-ef51-52c5-91a5-49195b0a04d4", "www.example.com", "rsa4096")) // AutoCertificateCreate | AutoCertificate to create. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.AutoCertificateApi.AutoCertificatesPost(context.Background()).AutoCertificateCreate(autoCertificateCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AutoCertificateApi.AutoCertificatesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `AutoCertificatesPost`: AutoCertificateRead + fmt.Fprintf(os.Stdout, "Response from `AutoCertificateApi.AutoCertificatesPost`: %v\n", resource) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to an apiAutoCertificatesPostRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **autoCertificateCreate** | [**AutoCertificateCreate**](../models/AutoCertificateCreate.md) | AutoCertificate to create. | | + +### Return type + +[**AutoCertificateRead**](../models/AutoCertificateRead.md) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + diff --git a/products/cert/docs/api/CertificateApi.md b/products/cert/docs/api/CertificateApi.md new file mode 100644 index 0000000..a0b3943 --- /dev/null +++ b/products/cert/docs/api/CertificateApi.md @@ -0,0 +1,363 @@ +# \CertificateApi + +All URIs are relative to *https://certificate-manager.de-fra.ionos.com* + +|Method | HTTP request | Description| +|------------- | ------------- | -------------| +|[**CertificatesDelete**](CertificateApi.md#CertificatesDelete) | **Delete** /certificates/{certificateId} | Delete Certificate| +|[**CertificatesFindById**](CertificateApi.md#CertificatesFindById) | **Get** /certificates/{certificateId} | Retrieve Certificate| +|[**CertificatesGet**](CertificateApi.md#CertificatesGet) | **Get** /certificates | Retrieve all Certificate| +|[**CertificatesPatch**](CertificateApi.md#CertificatesPatch) | **Patch** /certificates/{certificateId} | Updates Certificate| +|[**CertificatesPost**](CertificateApi.md#CertificatesPost) | **Post** /certificates | Create Certificate| + + + +## CertificatesDelete + +```go +var result = CertificatesDelete(ctx, certificateId) + .Execute() +``` + +Delete Certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + certificateId := "cbee81a3-9389-57ba-bc50-393adcfca141" // string | The ID (UUID) of the Certificate. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resp, err := apiClient.CertificateApi.CertificatesDelete(context.Background(), certificateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificatesDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**certificateId** | **string** | The ID (UUID) of the Certificate. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiCertificatesDeleteRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| + +### Return type + + (empty response body) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## CertificatesFindById + +```go +var result CertificateRead = CertificatesFindById(ctx, certificateId) + .Execute() +``` + +Retrieve Certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + certificateId := "cbee81a3-9389-57ba-bc50-393adcfca141" // string | The ID (UUID) of the Certificate. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.CertificateApi.CertificatesFindById(context.Background(), certificateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificatesFindById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `CertificatesFindById`: CertificateRead + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificatesFindById`: %v\n", resource) +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**certificateId** | **string** | The ID (UUID) of the Certificate. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiCertificatesFindByIdRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| + +### Return type + +[**CertificateRead**](../models/CertificateRead.md) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## CertificatesGet + +```go +var result CertificateReadList = CertificatesGet(ctx) + .Offset(offset) + .Limit(limit) + .FilterCommonName(filterCommonName) + .FilterAutoCertificate(filterAutoCertificate) + .Execute() +``` + +Retrieve all Certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + offset := int32(0) // int32 | The first element (of the total list of elements) to include in the response. Use together with limit for pagination. (optional) (default to 0) + limit := int32(100) // int32 | The maximum number of elements to return. Use together with offset for pagination. (optional) (default to 100) + filterCommonName := "www.example.com" // string | Filter by the common name (DNS). (optional) + filterAutoCertificate := "b471cd03-ef51-52c5-91a5-49195b0a04d4" // string | Filter by autoCertificateID. (optional) + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.CertificateApi.CertificatesGet(context.Background()).Offset(offset).Limit(limit).FilterCommonName(filterCommonName).FilterAutoCertificate(filterAutoCertificate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificatesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `CertificatesGet`: CertificateReadList + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificatesGet`: %v\n", resource) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to an apiCertificatesGetRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **offset** | **int32** | The first element (of the total list of elements) to include in the response. Use together with limit for pagination. | [default to 0]| +| **limit** | **int32** | The maximum number of elements to return. Use together with offset for pagination. | [default to 100]| +| **filterCommonName** | **string** | Filter by the common name (DNS). | | +| **filterAutoCertificate** | **string** | Filter by autoCertificateID. | | + +### Return type + +[**CertificateReadList**](../models/CertificateReadList.md) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## CertificatesPatch + +```go +var result CertificateRead = CertificatesPatch(ctx, certificateId) + .CertificatePatch(certificatePatch) + .Execute() +``` + +Updates Certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + certificateId := "cbee81a3-9389-57ba-bc50-393adcfca141" // string | The ID (UUID) of the Certificate. + certificatePatch := *openapiclient.NewCertificatePatch(*openapiclient.NewPatchName("My name")) // CertificatePatch | patch Certificate + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.CertificateApi.CertificatesPatch(context.Background(), certificateId).CertificatePatch(certificatePatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificatesPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `CertificatesPatch`: CertificateRead + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificatesPatch`: %v\n", resource) +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**certificateId** | **string** | The ID (UUID) of the Certificate. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiCertificatesPatchRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **certificatePatch** | [**CertificatePatch**](../models/CertificatePatch.md) | patch Certificate | | + +### Return type + +[**CertificateRead**](../models/CertificateRead.md) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + + +## CertificatesPost + +```go +var result CertificateRead = CertificatesPost(ctx) + .CertificateCreate(certificateCreate) + .Execute() +``` + +Create Certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + certificateCreate := *openapiclient.NewCertificateCreate(*openapiclient.NewCertificate("My Certificate", "-----BEGIN CERTIFICATE----- +MIIE5TCCAs2gAwIBAgIBATANBgkqhkiG9w0BAQsFADA2MQswCQYDVQQGEwJSTzEK +-----END CERTIFICATE----- +", "-----BEGIN CERTIFICATE----- +MIIDoTCCAokCFDrAUWffdxWJVz2Axl9lp/4xiUteMA0GCSqGSIb3DQEBCwUAMIGG +-----END CERTIFICATE----- +", "-----BEGIN RSA PRIVATE KEY----- +MIIJKQIBAAKCAgEAzDehfqWBr+9q0pxwCDDRph7QSPiMbkDGaGKc+Fd2h3doT8Li +-----END RSA PRIVATE KEY----- +")) // CertificateCreate | Certificate to create. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.CertificateApi.CertificatesPost(context.Background()).CertificateCreate(certificateCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificatesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `CertificatesPost`: CertificateRead + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificatesPost`: %v\n", resource) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to an apiCertificatesPostRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **certificateCreate** | [**CertificateCreate**](../models/CertificateCreate.md) | Certificate to create. | | + +### Return type + +[**CertificateRead**](../models/CertificateRead.md) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + diff --git a/products/cert/docs/api/CertificatesApi.md b/products/cert/docs/api/CertificatesApi.md deleted file mode 100644 index ececd0f..0000000 --- a/products/cert/docs/api/CertificatesApi.md +++ /dev/null @@ -1,348 +0,0 @@ -# \CertificatesApi - -All URIs are relative to *https://api.ionos.com* - -|Method | HTTP request | Description| -|------------- | ------------- | -------------| -|[**CertificatesDelete**](CertificatesApi.md#CertificatesDelete) | **Delete** /certificatemanager/certificates/{certificateId} | Delete a Certificate by ID| -|[**CertificatesGet**](CertificatesApi.md#CertificatesGet) | **Get** /certificatemanager/certificates | Get Certificates| -|[**CertificatesGetById**](CertificatesApi.md#CertificatesGetById) | **Get** /certificatemanager/certificates/{certificateId} | Get a Certificate by ID| -|[**CertificatesPatch**](CertificatesApi.md#CertificatesPatch) | **Patch** /certificatemanager/certificates/{certificateId} | Update a Certificate Name by ID| -|[**CertificatesPost**](CertificatesApi.md#CertificatesPost) | **Post** /certificatemanager/certificates | Add a New Certificate| - - - -## CertificatesDelete - -```go -var result = CertificatesDelete(ctx, certificateId) - .Execute() -``` - -Delete a Certificate by ID - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - certificateId := "certificateId_example" // string | - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.CertificatesApi.CertificatesDelete(context.Background(), certificateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificatesApi.CertificatesDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } -} -``` - -### Path Parameters - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| -|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| -|**certificateId** | **string** | | | - -### Other Parameters - -Other parameters are passed through a pointer to an apiCertificatesDeleteRequest struct via the builder pattern - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| - -### Return type - - (empty response body) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - - -## CertificatesGet - -```go -var result CertificateCollectionDto = CertificatesGet(ctx) - .Offset(offset) - .Limit(limit) - .Execute() -``` - -Get Certificates - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - offset := "offset_example" // string | 'Limit' and 'Offset' are optional; you can use these filter parameters to retrieve only part of the results obtained by a request. Offset is the first element (from the complete list of elements) to be included in the response. (optional) - limit := "limit_example" // string | 'Limit' and 'Offset' are optional; you can use these filter parameters to retrieve only part of the results of a query. If both 'Offset' and 'Limit'are specified, the offset lines are skipped before counting the returned limit lines. (optional) - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.CertificatesApi.CertificatesGet(context.Background()).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificatesApi.CertificatesGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } - // response from `CertificatesGet`: CertificateCollectionDto - fmt.Fprintf(os.Stdout, "Response from `CertificatesApi.CertificatesGet`: %v\n", resource) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to an apiCertificatesGetRequest struct via the builder pattern - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| -| **offset** | **string** | 'Limit' and 'Offset' are optional; you can use these filter parameters to retrieve only part of the results obtained by a request. Offset is the first element (from the complete list of elements) to be included in the response. | | -| **limit** | **string** | 'Limit' and 'Offset' are optional; you can use these filter parameters to retrieve only part of the results of a query. If both 'Offset' and 'Limit'are specified, the offset lines are skipped before counting the returned limit lines. | | - -### Return type - -[**CertificateCollectionDto**](../models/CertificateCollectionDto.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - - -## CertificatesGetById - -```go -var result CertificateDto = CertificatesGetById(ctx, certificateId) - .Execute() -``` - -Get a Certificate by ID - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - certificateId := "certificateId_example" // string | - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.CertificatesApi.CertificatesGetById(context.Background(), certificateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificatesApi.CertificatesGetById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } - // response from `CertificatesGetById`: CertificateDto - fmt.Fprintf(os.Stdout, "Response from `CertificatesApi.CertificatesGetById`: %v\n", resource) -} -``` - -### Path Parameters - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| -|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| -|**certificateId** | **string** | | | - -### Other Parameters - -Other parameters are passed through a pointer to an apiCertificatesGetByIdRequest struct via the builder pattern - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| - -### Return type - -[**CertificateDto**](../models/CertificateDto.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - - -## CertificatesPatch - -```go -var result CertificateDto = CertificatesPatch(ctx, certificateId) - .CertificatePatchDto(certificatePatchDto) - .Execute() -``` - -Update a Certificate Name by ID - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - certificateId := "certificateId_example" // string | - certificatePatchDto := *openapiclient.NewCertificatePatchDto(*openapiclient.NewCertificatePatchPropertiesDto("My Certificate")) // CertificatePatchDto | - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.CertificatesApi.CertificatesPatch(context.Background(), certificateId).CertificatePatchDto(certificatePatchDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificatesApi.CertificatesPatch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } - // response from `CertificatesPatch`: CertificateDto - fmt.Fprintf(os.Stdout, "Response from `CertificatesApi.CertificatesPatch`: %v\n", resource) -} -``` - -### Path Parameters - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| -|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| -|**certificateId** | **string** | | | - -### Other Parameters - -Other parameters are passed through a pointer to an apiCertificatesPatchRequest struct via the builder pattern - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| -| **certificatePatchDto** | [**CertificatePatchDto**](../models/CertificatePatchDto.md) | | | - -### Return type - -[**CertificateDto**](../models/CertificateDto.md) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - - -## CertificatesPost - -```go -var result CertificateDto = CertificatesPost(ctx) - .CertificatePostDto(certificatePostDto) - .Execute() -``` - -Add a New Certificate - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - certificatePostDto := *openapiclient.NewCertificatePostDto(*openapiclient.NewCertificatePostPropertiesDto("My Certificate", "-----BEGIN CERTIFICATE-----MIIE5TCCAs2gAwIBAgIBATANBgkqhkiG9w0BAQsFADA2MQswCQYDVQQGEwJSTzEK-----END CERTIFICATE-----", "-----BEGIN CERTIFICATE-----MIIDoTCCAokCFDrAUWffdxWJVz2Axl9lp/4xiUteMA0GCSqGSIb3DQEBCwUAMIGG-----END CERTIFICATE-----", "-----BEGIN RSA PRIVATE KEY-----MIIJKQIBAAKCAgEAzDehfqWBr+9q0pxwCDDRph7QSPiMbkDGaGKc+Fd2h3doT8Li-----END RSA PRIVATE KEY-----")) // CertificatePostDto | - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.CertificatesApi.CertificatesPost(context.Background()).CertificatePostDto(certificatePostDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificatesApi.CertificatesPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } - // response from `CertificatesPost`: CertificateDto - fmt.Fprintf(os.Stdout, "Response from `CertificatesApi.CertificatesPost`: %v\n", resource) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to an apiCertificatesPostRequest struct via the builder pattern - - -|Name | Type | Description | Notes| -|------------- | ------------- | ------------- | -------------| -| **certificatePostDto** | [**CertificatePostDto**](../models/CertificatePostDto.md) | | | - -### Return type - -[**CertificateDto**](../models/CertificateDto.md) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - diff --git a/products/cert/docs/api/InformationApi.md b/products/cert/docs/api/InformationApi.md deleted file mode 100644 index b183357..0000000 --- a/products/cert/docs/api/InformationApi.md +++ /dev/null @@ -1,188 +0,0 @@ -# \InformationApi - -All URIs are relative to *https://api.ionos.com* - -|Method | HTTP request | Description| -|------------- | ------------- | -------------| -|[**GetInfo**](InformationApi.md#GetInfo) | **Get** /certificatemanager | Get the Service API Information| -|[**GetJsonOpenApiSpec**](InformationApi.md#GetJsonOpenApiSpec) | **Get** /certificatemanager/openapi.json | Get the Open API Documentation JSON| -|[**GetYamlOpenApiSpec**](InformationApi.md#GetYamlOpenApiSpec) | **Get** /certificatemanager/openapi.yaml | Get the Open API Documentation YAML| - - - -## GetInfo - -```go -var result ApiInfoDto = GetInfo(ctx) - .Execute() -``` - -Get the Service API Information - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.InformationApi.GetInfo(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InformationApi.GetInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } - // response from `GetInfo`: ApiInfoDto - fmt.Fprintf(os.Stdout, "Response from `InformationApi.GetInfo`: %v\n", resource) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to an apiGetInfoRequest struct via the builder pattern - - -### Return type - -[**ApiInfoDto**](../models/ApiInfoDto.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - - -## GetJsonOpenApiSpec - -```go -var result *os.File = GetJsonOpenApiSpec(ctx) - .Execute() -``` - -Get the Open API Documentation JSON - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.InformationApi.GetJsonOpenApiSpec(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InformationApi.GetJsonOpenApiSpec``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } - // response from `GetJsonOpenApiSpec`: *os.File - fmt.Fprintf(os.Stdout, "Response from `InformationApi.GetJsonOpenApiSpec`: %v\n", resource) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to an apiGetJsonOpenApiSpecRequest struct via the builder pattern - - -### Return type - -[***os.File**](../models/*os.File.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - - -## GetYamlOpenApiSpec - -```go -var result *os.File = GetYamlOpenApiSpec(ctx) - .Execute() -``` - -Get the Open API Documentation YAML - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - - cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" - "github.com/ionos-cloud/sdk-go-bundle/shared" -) - -func main() { - - configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") - apiClient := cert.NewAPIClient(configuration) - resource, resp, err := apiClient.InformationApi.GetYamlOpenApiSpec(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InformationApi.GetYamlOpenApiSpec``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) - } - // response from `GetYamlOpenApiSpec`: *os.File - fmt.Fprintf(os.Stdout, "Response from `InformationApi.GetYamlOpenApiSpec`: %v\n", resource) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to an apiGetYamlOpenApiSpecRequest struct via the builder pattern - - -### Return type - -[***os.File**](../models/*os.File.md) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/yaml - - diff --git a/products/cert/docs/api/ProviderApi.md b/products/cert/docs/api/ProviderApi.md new file mode 100644 index 0000000..cde3b3b --- /dev/null +++ b/products/cert/docs/api/ProviderApi.md @@ -0,0 +1,348 @@ +# \ProviderApi + +All URIs are relative to *https://certificate-manager.de-fra.ionos.com* + +|Method | HTTP request | Description| +|------------- | ------------- | -------------| +|[**ProvidersDelete**](ProviderApi.md#ProvidersDelete) | **Delete** /providers/{providerId} | Delete Provider| +|[**ProvidersFindById**](ProviderApi.md#ProvidersFindById) | **Get** /providers/{providerId} | Retrieve Provider| +|[**ProvidersGet**](ProviderApi.md#ProvidersGet) | **Get** /providers | Retrieve all Provider| +|[**ProvidersPatch**](ProviderApi.md#ProvidersPatch) | **Patch** /providers/{providerId} | Updates Provider| +|[**ProvidersPost**](ProviderApi.md#ProvidersPost) | **Post** /providers | Create Provider| + + + +## ProvidersDelete + +```go +var result = ProvidersDelete(ctx, providerId) + .Execute() +``` + +Delete Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + providerId := "74edc770-5cc6-5976-ac99-013ddb4af403" // string | The ID (UUID) of the Provider. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resp, err := apiClient.ProviderApi.ProvidersDelete(context.Background(), providerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProviderApi.ProvidersDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**providerId** | **string** | The ID (UUID) of the Provider. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiProvidersDeleteRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| + +### Return type + + (empty response body) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## ProvidersFindById + +```go +var result ProviderRead = ProvidersFindById(ctx, providerId) + .Execute() +``` + +Retrieve Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + providerId := "74edc770-5cc6-5976-ac99-013ddb4af403" // string | The ID (UUID) of the Provider. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.ProviderApi.ProvidersFindById(context.Background(), providerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProviderApi.ProvidersFindById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `ProvidersFindById`: ProviderRead + fmt.Fprintf(os.Stdout, "Response from `ProviderApi.ProvidersFindById`: %v\n", resource) +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**providerId** | **string** | The ID (UUID) of the Provider. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiProvidersFindByIdRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| + +### Return type + +[**ProviderRead**](../models/ProviderRead.md) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## ProvidersGet + +```go +var result ProviderReadList = ProvidersGet(ctx) + .Offset(offset) + .Limit(limit) + .Execute() +``` + +Retrieve all Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + offset := int32(0) // int32 | The first element (of the total list of elements) to include in the response. Use together with limit for pagination. (optional) (default to 0) + limit := int32(100) // int32 | The maximum number of elements to return. Use together with offset for pagination. (optional) (default to 100) + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.ProviderApi.ProvidersGet(context.Background()).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProviderApi.ProvidersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `ProvidersGet`: ProviderReadList + fmt.Fprintf(os.Stdout, "Response from `ProviderApi.ProvidersGet`: %v\n", resource) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to an apiProvidersGetRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **offset** | **int32** | The first element (of the total list of elements) to include in the response. Use together with limit for pagination. | [default to 0]| +| **limit** | **int32** | The maximum number of elements to return. Use together with offset for pagination. | [default to 100]| + +### Return type + +[**ProviderReadList**](../models/ProviderReadList.md) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +## ProvidersPatch + +```go +var result ProviderRead = ProvidersPatch(ctx, providerId) + .ProviderPatch(providerPatch) + .Execute() +``` + +Updates Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + providerId := "74edc770-5cc6-5976-ac99-013ddb4af403" // string | The ID (UUID) of the Provider. + providerPatch := *openapiclient.NewProviderPatch(*openapiclient.NewPatchName("My name")) // ProviderPatch | patch Provider + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.ProviderApi.ProvidersPatch(context.Background(), providerId).ProviderPatch(providerPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProviderApi.ProvidersPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `ProvidersPatch`: ProviderRead + fmt.Fprintf(os.Stdout, "Response from `ProviderApi.ProvidersPatch`: %v\n", resource) +} +``` + +### Path Parameters + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +|**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.| +|**providerId** | **string** | The ID (UUID) of the Provider. | | + +### Other Parameters + +Other parameters are passed through a pointer to an apiProvidersPatchRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **providerPatch** | [**ProviderPatch**](../models/ProviderPatch.md) | patch Provider | | + +### Return type + +[**ProviderRead**](../models/ProviderRead.md) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + + +## ProvidersPost + +```go +var result ProviderRead = ProvidersPost(ctx) + .ProviderCreate(providerCreate) + .Execute() +``` + +Create Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert" + "github.com/ionos-cloud/sdk-go-bundle/shared" +) + +func main() { + providerCreate := *openapiclient.NewProviderCreate(*openapiclient.NewProvider("Let's Encrypt", "user@example.com", "https://acme-v02.api.letsencrypt.org/directory")) // ProviderCreate | Provider to create. + + configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") + apiClient := cert.NewAPIClient(configuration) + resource, resp, err := apiClient.ProviderApi.ProvidersPost(context.Background()).ProviderCreate(providerCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProviderApi.ProvidersPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) + } + // response from `ProvidersPost`: ProviderRead + fmt.Fprintf(os.Stdout, "Response from `ProviderApi.ProvidersPost`: %v\n", resource) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to an apiProvidersPostRequest struct via the builder pattern + + +|Name | Type | Description | Notes| +|------------- | ------------- | ------------- | -------------| +| **providerCreate** | [**ProviderCreate**](../models/ProviderCreate.md) | Provider to create. | | + +### Return type + +[**ProviderRead**](../models/ProviderRead.md) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + diff --git a/products/cert/docs/models/ApiInfoDto.md b/products/cert/docs/models/ApiInfoDto.md deleted file mode 100644 index 05c7264..0000000 --- a/products/cert/docs/models/ApiInfoDto.md +++ /dev/null @@ -1,105 +0,0 @@ -# ApiInfoDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Href** | Pointer to **string** | The API entry point. | [optional] [readonly] | -|**Name** | Pointer to **string** | The API name. | [optional] [readonly] | -|**Version** | Pointer to **string** | The API version. | [optional] [readonly] | - -## Methods - -### NewApiInfoDto - -`func NewApiInfoDto() *ApiInfoDto` - -NewApiInfoDto instantiates a new ApiInfoDto 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 - -### NewApiInfoDtoWithDefaults - -`func NewApiInfoDtoWithDefaults() *ApiInfoDto` - -NewApiInfoDtoWithDefaults instantiates a new ApiInfoDto 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 - -### GetHref - -`func (o *ApiInfoDto) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *ApiInfoDto) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *ApiInfoDto) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *ApiInfoDto) HasHref() bool` - -HasHref returns a boolean if a field has been set. - -### GetName - -`func (o *ApiInfoDto) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ApiInfoDto) 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 *ApiInfoDto) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ApiInfoDto) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetVersion - -`func (o *ApiInfoDto) GetVersion() string` - -GetVersion returns the Version field if non-nil, zero value otherwise. - -### GetVersionOk - -`func (o *ApiInfoDto) 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 *ApiInfoDto) SetVersion(v string)` - -SetVersion sets Version field to given value. - -### HasVersion - -`func (o *ApiInfoDto) HasVersion() bool` - -HasVersion returns a boolean if a field has been set. - - diff --git a/products/cert/docs/models/AutoCertificate.md b/products/cert/docs/models/AutoCertificate.md new file mode 100644 index 0000000..2ffaa0c --- /dev/null +++ b/products/cert/docs/models/AutoCertificate.md @@ -0,0 +1,142 @@ +# AutoCertificate + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Provider** | **string** | The certificate provider used to issue the certificates. | | +|**CommonName** | **string** | The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS. | | +|**KeyAlgorithm** | **string** | The key algorithm used to generate the certificate. | | +|**Name** | Pointer to **string** | A certificate name used for management purposes. | [optional] | +|**SubjectAlternativeNames** | Pointer to **[]string** | Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS. | [optional] | + +## Methods + +### NewAutoCertificate + +`func NewAutoCertificate(provider string, commonName string, keyAlgorithm string, ) *AutoCertificate` + +NewAutoCertificate instantiates a new AutoCertificate 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 + +### NewAutoCertificateWithDefaults + +`func NewAutoCertificateWithDefaults() *AutoCertificate` + +NewAutoCertificateWithDefaults instantiates a new AutoCertificate 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 + +### GetProvider + +`func (o *AutoCertificate) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *AutoCertificate) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *AutoCertificate) SetProvider(v string)` + +SetProvider sets Provider field to given value. + + +### GetCommonName + +`func (o *AutoCertificate) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *AutoCertificate) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *AutoCertificate) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + + +### GetKeyAlgorithm + +`func (o *AutoCertificate) GetKeyAlgorithm() string` + +GetKeyAlgorithm returns the KeyAlgorithm field if non-nil, zero value otherwise. + +### GetKeyAlgorithmOk + +`func (o *AutoCertificate) GetKeyAlgorithmOk() (*string, bool)` + +GetKeyAlgorithmOk returns a tuple with the KeyAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyAlgorithm + +`func (o *AutoCertificate) SetKeyAlgorithm(v string)` + +SetKeyAlgorithm sets KeyAlgorithm field to given value. + + +### GetName + +`func (o *AutoCertificate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AutoCertificate) 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 *AutoCertificate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AutoCertificate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSubjectAlternativeNames + +`func (o *AutoCertificate) GetSubjectAlternativeNames() []string` + +GetSubjectAlternativeNames returns the SubjectAlternativeNames field if non-nil, zero value otherwise. + +### GetSubjectAlternativeNamesOk + +`func (o *AutoCertificate) GetSubjectAlternativeNamesOk() (*[]string, bool)` + +GetSubjectAlternativeNamesOk returns a tuple with the SubjectAlternativeNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAlternativeNames + +`func (o *AutoCertificate) SetSubjectAlternativeNames(v []string)` + +SetSubjectAlternativeNames sets SubjectAlternativeNames field to given value. + +### HasSubjectAlternativeNames + +`func (o *AutoCertificate) HasSubjectAlternativeNames() bool` + +HasSubjectAlternativeNames returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/AutoCertificateCreate.md b/products/cert/docs/models/AutoCertificateCreate.md new file mode 100644 index 0000000..b475d27 --- /dev/null +++ b/products/cert/docs/models/AutoCertificateCreate.md @@ -0,0 +1,74 @@ +# AutoCertificateCreate + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Metadata** | Pointer to **map[string]interface{}** | Metadata | [optional] | +|**Properties** | [**AutoCertificate**](AutoCertificate.md) | | | + +## Methods + +### NewAutoCertificateCreate + +`func NewAutoCertificateCreate(properties AutoCertificate, ) *AutoCertificateCreate` + +NewAutoCertificateCreate instantiates a new AutoCertificateCreate 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 + +### NewAutoCertificateCreateWithDefaults + +`func NewAutoCertificateCreateWithDefaults() *AutoCertificateCreate` + +NewAutoCertificateCreateWithDefaults instantiates a new AutoCertificateCreate 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 + +### GetMetadata + +`func (o *AutoCertificateCreate) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *AutoCertificateCreate) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *AutoCertificateCreate) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *AutoCertificateCreate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProperties + +`func (o *AutoCertificateCreate) GetProperties() AutoCertificate` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *AutoCertificateCreate) GetPropertiesOk() (*AutoCertificate, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *AutoCertificateCreate) SetProperties(v AutoCertificate)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/AutoCertificatePatch.md b/products/cert/docs/models/AutoCertificatePatch.md new file mode 100644 index 0000000..c568c43 --- /dev/null +++ b/products/cert/docs/models/AutoCertificatePatch.md @@ -0,0 +1,74 @@ +# AutoCertificatePatch + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Metadata** | Pointer to **map[string]interface{}** | Metadata | [optional] | +|**Properties** | [**PatchName**](PatchName.md) | | | + +## Methods + +### NewAutoCertificatePatch + +`func NewAutoCertificatePatch(properties PatchName, ) *AutoCertificatePatch` + +NewAutoCertificatePatch instantiates a new AutoCertificatePatch 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 + +### NewAutoCertificatePatchWithDefaults + +`func NewAutoCertificatePatchWithDefaults() *AutoCertificatePatch` + +NewAutoCertificatePatchWithDefaults instantiates a new AutoCertificatePatch 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 + +### GetMetadata + +`func (o *AutoCertificatePatch) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *AutoCertificatePatch) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *AutoCertificatePatch) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *AutoCertificatePatch) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProperties + +`func (o *AutoCertificatePatch) GetProperties() PatchName` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *AutoCertificatePatch) GetPropertiesOk() (*PatchName, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *AutoCertificatePatch) SetProperties(v PatchName)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/AutoCertificateRead.md b/products/cert/docs/models/AutoCertificateRead.md new file mode 100644 index 0000000..84ccc8e --- /dev/null +++ b/products/cert/docs/models/AutoCertificateRead.md @@ -0,0 +1,132 @@ +# AutoCertificateRead + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | The ID (UUID) of the AutoCertificate. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the AutoCertificate. | | +|**Metadata** | [**MetadataWithAutoCertificateInformation**](MetadataWithAutoCertificateInformation.md) | | | +|**Properties** | [**AutoCertificate**](AutoCertificate.md) | | | + +## Methods + +### NewAutoCertificateRead + +`func NewAutoCertificateRead(id string, type_ string, href string, metadata MetadataWithAutoCertificateInformation, properties AutoCertificate, ) *AutoCertificateRead` + +NewAutoCertificateRead instantiates a new AutoCertificateRead 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 + +### NewAutoCertificateReadWithDefaults + +`func NewAutoCertificateReadWithDefaults() *AutoCertificateRead` + +NewAutoCertificateReadWithDefaults instantiates a new AutoCertificateRead 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 + +### GetId + +`func (o *AutoCertificateRead) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AutoCertificateRead) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AutoCertificateRead) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *AutoCertificateRead) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AutoCertificateRead) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AutoCertificateRead) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *AutoCertificateRead) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AutoCertificateRead) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AutoCertificateRead) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetMetadata + +`func (o *AutoCertificateRead) GetMetadata() MetadataWithAutoCertificateInformation` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *AutoCertificateRead) GetMetadataOk() (*MetadataWithAutoCertificateInformation, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *AutoCertificateRead) SetMetadata(v MetadataWithAutoCertificateInformation)` + +SetMetadata sets Metadata field to given value. + + +### GetProperties + +`func (o *AutoCertificateRead) GetProperties() AutoCertificate` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *AutoCertificateRead) GetPropertiesOk() (*AutoCertificate, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *AutoCertificateRead) SetProperties(v AutoCertificate)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/AutoCertificateReadList.md b/products/cert/docs/models/AutoCertificateReadList.md new file mode 100644 index 0000000..9b3b1db --- /dev/null +++ b/products/cert/docs/models/AutoCertificateReadList.md @@ -0,0 +1,179 @@ +# AutoCertificateReadList + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | ID of the list of AutoCertificate resources. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the list of AutoCertificate resources. | | +|**Items** | Pointer to [**[]AutoCertificateRead**](AutoCertificateRead.md) | The list of AutoCertificate resources. | [optional] | +|**Offset** | **int32** | The offset specified in the request (if none was specified, the default offset is 0). | [readonly] | +|**Limit** | **int32** | The limit specified in the request (if none was specified, use the endpoint's default pagination limit). | [readonly] | +|**Links** | [**Links**](Links.md) | | | + +## Methods + +### NewAutoCertificateReadList + +`func NewAutoCertificateReadList(id string, type_ string, href string, offset int32, limit int32, links Links, ) *AutoCertificateReadList` + +NewAutoCertificateReadList instantiates a new AutoCertificateReadList 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 + +### NewAutoCertificateReadListWithDefaults + +`func NewAutoCertificateReadListWithDefaults() *AutoCertificateReadList` + +NewAutoCertificateReadListWithDefaults instantiates a new AutoCertificateReadList 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 + +### GetId + +`func (o *AutoCertificateReadList) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AutoCertificateReadList) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AutoCertificateReadList) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *AutoCertificateReadList) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AutoCertificateReadList) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AutoCertificateReadList) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *AutoCertificateReadList) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AutoCertificateReadList) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AutoCertificateReadList) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetItems + +`func (o *AutoCertificateReadList) GetItems() []AutoCertificateRead` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AutoCertificateReadList) GetItemsOk() (*[]AutoCertificateRead, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AutoCertificateReadList) SetItems(v []AutoCertificateRead)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *AutoCertificateReadList) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetOffset + +`func (o *AutoCertificateReadList) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *AutoCertificateReadList) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *AutoCertificateReadList) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + + +### GetLimit + +`func (o *AutoCertificateReadList) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *AutoCertificateReadList) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *AutoCertificateReadList) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + + +### GetLinks + +`func (o *AutoCertificateReadList) GetLinks() Links` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *AutoCertificateReadList) GetLinksOk() (*Links, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *AutoCertificateReadList) SetLinks(v Links)` + +SetLinks sets Links field to given value. + + + diff --git a/products/cert/docs/models/AutoCertificateReadListAllOf.md b/products/cert/docs/models/AutoCertificateReadListAllOf.md new file mode 100644 index 0000000..2e50038 --- /dev/null +++ b/products/cert/docs/models/AutoCertificateReadListAllOf.md @@ -0,0 +1,116 @@ +# AutoCertificateReadListAllOf + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | ID of the list of AutoCertificate resources. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the list of AutoCertificate resources. | | +|**Items** | Pointer to [**[]AutoCertificateRead**](AutoCertificateRead.md) | The list of AutoCertificate resources. | [optional] | + +## Methods + +### NewAutoCertificateReadListAllOf + +`func NewAutoCertificateReadListAllOf(id string, type_ string, href string, ) *AutoCertificateReadListAllOf` + +NewAutoCertificateReadListAllOf instantiates a new AutoCertificateReadListAllOf 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 + +### NewAutoCertificateReadListAllOfWithDefaults + +`func NewAutoCertificateReadListAllOfWithDefaults() *AutoCertificateReadListAllOf` + +NewAutoCertificateReadListAllOfWithDefaults instantiates a new AutoCertificateReadListAllOf 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 + +### GetId + +`func (o *AutoCertificateReadListAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AutoCertificateReadListAllOf) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AutoCertificateReadListAllOf) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *AutoCertificateReadListAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AutoCertificateReadListAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AutoCertificateReadListAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *AutoCertificateReadListAllOf) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AutoCertificateReadListAllOf) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AutoCertificateReadListAllOf) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetItems + +`func (o *AutoCertificateReadListAllOf) GetItems() []AutoCertificateRead` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AutoCertificateReadListAllOf) GetItemsOk() (*[]AutoCertificateRead, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AutoCertificateReadListAllOf) SetItems(v []AutoCertificateRead)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *AutoCertificateReadListAllOf) HasItems() bool` + +HasItems returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/CertificatePostPropertiesDto.md b/products/cert/docs/models/Certificate.md similarity index 62% rename from products/cert/docs/models/CertificatePostPropertiesDto.md rename to products/cert/docs/models/Certificate.md index ce8a30b..f5b6172 100644 --- a/products/cert/docs/models/CertificatePostPropertiesDto.md +++ b/products/cert/docs/models/Certificate.md @@ -1,4 +1,4 @@ -# CertificatePostPropertiesDto +# Certificate ## Properties @@ -11,99 +11,99 @@ ## Methods -### NewCertificatePostPropertiesDto +### NewCertificate -`func NewCertificatePostPropertiesDto(name string, certificate string, certificateChain string, privateKey string, ) *CertificatePostPropertiesDto` +`func NewCertificate(name string, certificate string, certificateChain string, privateKey string, ) *Certificate` -NewCertificatePostPropertiesDto instantiates a new CertificatePostPropertiesDto object +NewCertificate instantiates a new Certificate 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 -### NewCertificatePostPropertiesDtoWithDefaults +### NewCertificateWithDefaults -`func NewCertificatePostPropertiesDtoWithDefaults() *CertificatePostPropertiesDto` +`func NewCertificateWithDefaults() *Certificate` -NewCertificatePostPropertiesDtoWithDefaults instantiates a new CertificatePostPropertiesDto object +NewCertificateWithDefaults instantiates a new Certificate 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 *CertificatePostPropertiesDto) GetName() string` +`func (o *Certificate) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *CertificatePostPropertiesDto) GetNameOk() (*string, bool)` +`func (o *Certificate) 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 *CertificatePostPropertiesDto) SetName(v string)` +`func (o *Certificate) SetName(v string)` SetName sets Name field to given value. ### GetCertificate -`func (o *CertificatePostPropertiesDto) GetCertificate() string` +`func (o *Certificate) GetCertificate() string` GetCertificate returns the Certificate field if non-nil, zero value otherwise. ### GetCertificateOk -`func (o *CertificatePostPropertiesDto) GetCertificateOk() (*string, bool)` +`func (o *Certificate) GetCertificateOk() (*string, bool)` GetCertificateOk returns a tuple with the Certificate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCertificate -`func (o *CertificatePostPropertiesDto) SetCertificate(v string)` +`func (o *Certificate) SetCertificate(v string)` SetCertificate sets Certificate field to given value. ### GetCertificateChain -`func (o *CertificatePostPropertiesDto) GetCertificateChain() string` +`func (o *Certificate) GetCertificateChain() string` GetCertificateChain returns the CertificateChain field if non-nil, zero value otherwise. ### GetCertificateChainOk -`func (o *CertificatePostPropertiesDto) GetCertificateChainOk() (*string, bool)` +`func (o *Certificate) GetCertificateChainOk() (*string, bool)` GetCertificateChainOk returns a tuple with the CertificateChain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCertificateChain -`func (o *CertificatePostPropertiesDto) SetCertificateChain(v string)` +`func (o *Certificate) SetCertificateChain(v string)` SetCertificateChain sets CertificateChain field to given value. ### GetPrivateKey -`func (o *CertificatePostPropertiesDto) GetPrivateKey() string` +`func (o *Certificate) GetPrivateKey() string` GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. ### GetPrivateKeyOk -`func (o *CertificatePostPropertiesDto) GetPrivateKeyOk() (*string, bool)` +`func (o *Certificate) GetPrivateKeyOk() (*string, bool)` GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrivateKey -`func (o *CertificatePostPropertiesDto) SetPrivateKey(v string)` +`func (o *Certificate) SetPrivateKey(v string)` SetPrivateKey sets PrivateKey field to given value. diff --git a/products/cert/docs/models/CertificateCollectionDto.md b/products/cert/docs/models/CertificateCollectionDto.md deleted file mode 100644 index a89dcec..0000000 --- a/products/cert/docs/models/CertificateCollectionDto.md +++ /dev/null @@ -1,209 +0,0 @@ -# CertificateCollectionDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Id** | Pointer to **string** | The resource ID. | [optional] [readonly] | -|**Type** | Pointer to **string** | The resource type. | [optional] [readonly] | -|**Href** | Pointer to **string** | The URL to the object representation (absolute path). | [optional] [readonly] | -|**Items** | Pointer to [**[]CertificateDto**](CertificateDto.md) | The list of certificates. | [optional] [readonly] | -|**Offset** | Pointer to **int32** | The pagination offset. | [optional] [readonly] | -|**Limit** | Pointer to **int32** | The pagination limit. | [optional] [readonly] | -|**Links** | Pointer to [**CertificateCollectionDtoLinks**](CertificateCollectionDtoLinks.md) | | [optional] | - -## Methods - -### NewCertificateCollectionDto - -`func NewCertificateCollectionDto() *CertificateCollectionDto` - -NewCertificateCollectionDto instantiates a new CertificateCollectionDto 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 - -### NewCertificateCollectionDtoWithDefaults - -`func NewCertificateCollectionDtoWithDefaults() *CertificateCollectionDto` - -NewCertificateCollectionDtoWithDefaults instantiates a new CertificateCollectionDto 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 - -### GetId - -`func (o *CertificateCollectionDto) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CertificateCollectionDto) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *CertificateCollectionDto) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *CertificateCollectionDto) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetType - -`func (o *CertificateCollectionDto) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CertificateCollectionDto) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CertificateCollectionDto) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *CertificateCollectionDto) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetHref - -`func (o *CertificateCollectionDto) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *CertificateCollectionDto) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *CertificateCollectionDto) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *CertificateCollectionDto) HasHref() bool` - -HasHref returns a boolean if a field has been set. - -### GetItems - -`func (o *CertificateCollectionDto) GetItems() []CertificateDto` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *CertificateCollectionDto) GetItemsOk() (*[]CertificateDto, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *CertificateCollectionDto) SetItems(v []CertificateDto)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *CertificateCollectionDto) HasItems() bool` - -HasItems returns a boolean if a field has been set. - -### GetOffset - -`func (o *CertificateCollectionDto) GetOffset() int32` - -GetOffset returns the Offset field if non-nil, zero value otherwise. - -### GetOffsetOk - -`func (o *CertificateCollectionDto) GetOffsetOk() (*int32, bool)` - -GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOffset - -`func (o *CertificateCollectionDto) SetOffset(v int32)` - -SetOffset sets Offset field to given value. - -### HasOffset - -`func (o *CertificateCollectionDto) HasOffset() bool` - -HasOffset returns a boolean if a field has been set. - -### GetLimit - -`func (o *CertificateCollectionDto) GetLimit() int32` - -GetLimit returns the Limit field if non-nil, zero value otherwise. - -### GetLimitOk - -`func (o *CertificateCollectionDto) GetLimitOk() (*int32, bool)` - -GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLimit - -`func (o *CertificateCollectionDto) SetLimit(v int32)` - -SetLimit sets Limit field to given value. - -### HasLimit - -`func (o *CertificateCollectionDto) HasLimit() bool` - -HasLimit returns a boolean if a field has been set. - -### GetLinks - -`func (o *CertificateCollectionDto) GetLinks() CertificateCollectionDtoLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *CertificateCollectionDto) GetLinksOk() (*CertificateCollectionDtoLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *CertificateCollectionDto) SetLinks(v CertificateCollectionDtoLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *CertificateCollectionDto) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - diff --git a/products/cert/docs/models/CertificateCreate.md b/products/cert/docs/models/CertificateCreate.md new file mode 100644 index 0000000..cd4e119 --- /dev/null +++ b/products/cert/docs/models/CertificateCreate.md @@ -0,0 +1,74 @@ +# CertificateCreate + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Metadata** | Pointer to **map[string]interface{}** | Metadata | [optional] | +|**Properties** | [**Certificate**](Certificate.md) | | | + +## Methods + +### NewCertificateCreate + +`func NewCertificateCreate(properties Certificate, ) *CertificateCreate` + +NewCertificateCreate instantiates a new CertificateCreate 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 + +### NewCertificateCreateWithDefaults + +`func NewCertificateCreateWithDefaults() *CertificateCreate` + +NewCertificateCreateWithDefaults instantiates a new CertificateCreate 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 + +### GetMetadata + +`func (o *CertificateCreate) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CertificateCreate) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CertificateCreate) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CertificateCreate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateCreate) GetProperties() Certificate` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateCreate) GetPropertiesOk() (*Certificate, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateCreate) SetProperties(v Certificate)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/CertificateDto.md b/products/cert/docs/models/CertificateDto.md deleted file mode 100644 index 653387f..0000000 --- a/products/cert/docs/models/CertificateDto.md +++ /dev/null @@ -1,157 +0,0 @@ -# CertificateDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Id** | Pointer to **string** | The certificate ID. | [optional] [readonly] | -|**Type** | Pointer to **string** | The resource type. | [optional] [readonly] | -|**Href** | Pointer to **string** | The URL to the object representation (absolute path). | [optional] [readonly] | -|**Metadata** | Pointer to [**ResourceMetadataDto**](ResourceMetadataDto.md) | | [optional] | -|**Properties** | Pointer to [**CertificatePropertiesDto**](CertificatePropertiesDto.md) | | [optional] | - -## Methods - -### NewCertificateDto - -`func NewCertificateDto() *CertificateDto` - -NewCertificateDto instantiates a new CertificateDto 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 - -### NewCertificateDtoWithDefaults - -`func NewCertificateDtoWithDefaults() *CertificateDto` - -NewCertificateDtoWithDefaults instantiates a new CertificateDto 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 - -### GetId - -`func (o *CertificateDto) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CertificateDto) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *CertificateDto) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *CertificateDto) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetType - -`func (o *CertificateDto) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CertificateDto) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CertificateDto) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *CertificateDto) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetHref - -`func (o *CertificateDto) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *CertificateDto) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *CertificateDto) SetHref(v string)` - -SetHref sets Href field to given value. - -### HasHref - -`func (o *CertificateDto) HasHref() bool` - -HasHref returns a boolean if a field has been set. - -### GetMetadata - -`func (o *CertificateDto) GetMetadata() ResourceMetadataDto` - -GetMetadata returns the Metadata field if non-nil, zero value otherwise. - -### GetMetadataOk - -`func (o *CertificateDto) GetMetadataOk() (*ResourceMetadataDto, bool)` - -GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMetadata - -`func (o *CertificateDto) SetMetadata(v ResourceMetadataDto)` - -SetMetadata sets Metadata field to given value. - -### HasMetadata - -`func (o *CertificateDto) HasMetadata() bool` - -HasMetadata returns a boolean if a field has been set. - -### GetProperties - -`func (o *CertificateDto) GetProperties() CertificatePropertiesDto` - -GetProperties returns the Properties field if non-nil, zero value otherwise. - -### GetPropertiesOk - -`func (o *CertificateDto) GetPropertiesOk() (*CertificatePropertiesDto, bool)` - -GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProperties - -`func (o *CertificateDto) SetProperties(v CertificatePropertiesDto)` - -SetProperties sets Properties field to given value. - -### HasProperties - -`func (o *CertificateDto) HasProperties() bool` - -HasProperties returns a boolean if a field has been set. - - diff --git a/products/cert/docs/models/CertificatePatch.md b/products/cert/docs/models/CertificatePatch.md new file mode 100644 index 0000000..9d3dbdf --- /dev/null +++ b/products/cert/docs/models/CertificatePatch.md @@ -0,0 +1,74 @@ +# CertificatePatch + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Metadata** | Pointer to **map[string]interface{}** | Metadata | [optional] | +|**Properties** | [**PatchName**](PatchName.md) | | | + +## Methods + +### NewCertificatePatch + +`func NewCertificatePatch(properties PatchName, ) *CertificatePatch` + +NewCertificatePatch instantiates a new CertificatePatch 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 + +### NewCertificatePatchWithDefaults + +`func NewCertificatePatchWithDefaults() *CertificatePatch` + +NewCertificatePatchWithDefaults instantiates a new CertificatePatch 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 + +### GetMetadata + +`func (o *CertificatePatch) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CertificatePatch) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CertificatePatch) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CertificatePatch) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificatePatch) GetProperties() PatchName` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificatePatch) GetPropertiesOk() (*PatchName, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificatePatch) SetProperties(v PatchName)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/CertificatePatchDto.md b/products/cert/docs/models/CertificatePatchDto.md deleted file mode 100644 index b2a35fe..0000000 --- a/products/cert/docs/models/CertificatePatchDto.md +++ /dev/null @@ -1,48 +0,0 @@ -# CertificatePatchDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Properties** | [**CertificatePatchPropertiesDto**](CertificatePatchPropertiesDto.md) | | | - -## Methods - -### NewCertificatePatchDto - -`func NewCertificatePatchDto(properties CertificatePatchPropertiesDto, ) *CertificatePatchDto` - -NewCertificatePatchDto instantiates a new CertificatePatchDto 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 - -### NewCertificatePatchDtoWithDefaults - -`func NewCertificatePatchDtoWithDefaults() *CertificatePatchDto` - -NewCertificatePatchDtoWithDefaults instantiates a new CertificatePatchDto 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 - -### GetProperties - -`func (o *CertificatePatchDto) GetProperties() CertificatePatchPropertiesDto` - -GetProperties returns the Properties field if non-nil, zero value otherwise. - -### GetPropertiesOk - -`func (o *CertificatePatchDto) GetPropertiesOk() (*CertificatePatchPropertiesDto, bool)` - -GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProperties - -`func (o *CertificatePatchDto) SetProperties(v CertificatePatchPropertiesDto)` - -SetProperties sets Properties field to given value. - - - diff --git a/products/cert/docs/models/CertificatePostDto.md b/products/cert/docs/models/CertificatePostDto.md deleted file mode 100644 index bd41796..0000000 --- a/products/cert/docs/models/CertificatePostDto.md +++ /dev/null @@ -1,48 +0,0 @@ -# CertificatePostDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Properties** | [**CertificatePostPropertiesDto**](CertificatePostPropertiesDto.md) | | | - -## Methods - -### NewCertificatePostDto - -`func NewCertificatePostDto(properties CertificatePostPropertiesDto, ) *CertificatePostDto` - -NewCertificatePostDto instantiates a new CertificatePostDto 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 - -### NewCertificatePostDtoWithDefaults - -`func NewCertificatePostDtoWithDefaults() *CertificatePostDto` - -NewCertificatePostDtoWithDefaults instantiates a new CertificatePostDto 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 - -### GetProperties - -`func (o *CertificatePostDto) GetProperties() CertificatePostPropertiesDto` - -GetProperties returns the Properties field if non-nil, zero value otherwise. - -### GetPropertiesOk - -`func (o *CertificatePostDto) GetPropertiesOk() (*CertificatePostPropertiesDto, bool)` - -GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProperties - -`func (o *CertificatePostDto) SetProperties(v CertificatePostPropertiesDto)` - -SetProperties sets Properties field to given value. - - - diff --git a/products/cert/docs/models/CertificatePropertiesDto.md b/products/cert/docs/models/CertificatePropertiesDto.md deleted file mode 100644 index 933655e..0000000 --- a/products/cert/docs/models/CertificatePropertiesDto.md +++ /dev/null @@ -1,105 +0,0 @@ -# CertificatePropertiesDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Name** | Pointer to **string** | The certificate name. | [optional] | -|**Certificate** | Pointer to **string** | The certificate body. | [optional] | -|**CertificateChain** | Pointer to **string** | Optional. The certificate chain. | [optional] | - -## Methods - -### NewCertificatePropertiesDto - -`func NewCertificatePropertiesDto() *CertificatePropertiesDto` - -NewCertificatePropertiesDto instantiates a new CertificatePropertiesDto 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 - -### NewCertificatePropertiesDtoWithDefaults - -`func NewCertificatePropertiesDtoWithDefaults() *CertificatePropertiesDto` - -NewCertificatePropertiesDtoWithDefaults instantiates a new CertificatePropertiesDto 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 *CertificatePropertiesDto) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *CertificatePropertiesDto) 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 *CertificatePropertiesDto) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *CertificatePropertiesDto) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetCertificate - -`func (o *CertificatePropertiesDto) GetCertificate() string` - -GetCertificate returns the Certificate field if non-nil, zero value otherwise. - -### GetCertificateOk - -`func (o *CertificatePropertiesDto) GetCertificateOk() (*string, bool)` - -GetCertificateOk returns a tuple with the Certificate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCertificate - -`func (o *CertificatePropertiesDto) SetCertificate(v string)` - -SetCertificate sets Certificate field to given value. - -### HasCertificate - -`func (o *CertificatePropertiesDto) HasCertificate() bool` - -HasCertificate returns a boolean if a field has been set. - -### GetCertificateChain - -`func (o *CertificatePropertiesDto) GetCertificateChain() string` - -GetCertificateChain returns the CertificateChain field if non-nil, zero value otherwise. - -### GetCertificateChainOk - -`func (o *CertificatePropertiesDto) GetCertificateChainOk() (*string, bool)` - -GetCertificateChainOk returns a tuple with the CertificateChain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCertificateChain - -`func (o *CertificatePropertiesDto) SetCertificateChain(v string)` - -SetCertificateChain sets CertificateChain field to given value. - -### HasCertificateChain - -`func (o *CertificatePropertiesDto) HasCertificateChain() bool` - -HasCertificateChain returns a boolean if a field has been set. - - diff --git a/products/cert/docs/models/CertificateRead.md b/products/cert/docs/models/CertificateRead.md new file mode 100644 index 0000000..2b2b157 --- /dev/null +++ b/products/cert/docs/models/CertificateRead.md @@ -0,0 +1,132 @@ +# CertificateRead + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | The ID (UUID) of the Certificate. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the Certificate. | | +|**Metadata** | [**MetadataWithCertificateInformation**](MetadataWithCertificateInformation.md) | | | +|**Properties** | [**Certificate**](Certificate.md) | | | + +## Methods + +### NewCertificateRead + +`func NewCertificateRead(id string, type_ string, href string, metadata MetadataWithCertificateInformation, properties Certificate, ) *CertificateRead` + +NewCertificateRead instantiates a new CertificateRead 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 + +### NewCertificateReadWithDefaults + +`func NewCertificateReadWithDefaults() *CertificateRead` + +NewCertificateReadWithDefaults instantiates a new CertificateRead 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 + +### GetId + +`func (o *CertificateRead) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateRead) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateRead) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *CertificateRead) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CertificateRead) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CertificateRead) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *CertificateRead) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *CertificateRead) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *CertificateRead) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetMetadata + +`func (o *CertificateRead) GetMetadata() MetadataWithCertificateInformation` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CertificateRead) GetMetadataOk() (*MetadataWithCertificateInformation, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CertificateRead) SetMetadata(v MetadataWithCertificateInformation)` + +SetMetadata sets Metadata field to given value. + + +### GetProperties + +`func (o *CertificateRead) GetProperties() Certificate` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateRead) GetPropertiesOk() (*Certificate, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateRead) SetProperties(v Certificate)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/CertificateReadList.md b/products/cert/docs/models/CertificateReadList.md new file mode 100644 index 0000000..1875829 --- /dev/null +++ b/products/cert/docs/models/CertificateReadList.md @@ -0,0 +1,179 @@ +# CertificateReadList + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | ID of the list of Certificate resources. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the list of Certificate resources. | | +|**Items** | Pointer to [**[]CertificateRead**](CertificateRead.md) | The list of Certificate resources. | [optional] | +|**Offset** | **int32** | The offset specified in the request (if none was specified, the default offset is 0). | [readonly] | +|**Limit** | **int32** | The limit specified in the request (if none was specified, use the endpoint's default pagination limit). | [readonly] | +|**Links** | [**Links**](Links.md) | | | + +## Methods + +### NewCertificateReadList + +`func NewCertificateReadList(id string, type_ string, href string, offset int32, limit int32, links Links, ) *CertificateReadList` + +NewCertificateReadList instantiates a new CertificateReadList 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 + +### NewCertificateReadListWithDefaults + +`func NewCertificateReadListWithDefaults() *CertificateReadList` + +NewCertificateReadListWithDefaults instantiates a new CertificateReadList 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 + +### GetId + +`func (o *CertificateReadList) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateReadList) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateReadList) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *CertificateReadList) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CertificateReadList) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CertificateReadList) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *CertificateReadList) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *CertificateReadList) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *CertificateReadList) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetItems + +`func (o *CertificateReadList) GetItems() []CertificateRead` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CertificateReadList) GetItemsOk() (*[]CertificateRead, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CertificateReadList) SetItems(v []CertificateRead)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CertificateReadList) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetOffset + +`func (o *CertificateReadList) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *CertificateReadList) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *CertificateReadList) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + + +### GetLimit + +`func (o *CertificateReadList) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *CertificateReadList) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *CertificateReadList) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + + +### GetLinks + +`func (o *CertificateReadList) GetLinks() Links` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *CertificateReadList) GetLinksOk() (*Links, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *CertificateReadList) SetLinks(v Links)` + +SetLinks sets Links field to given value. + + + diff --git a/products/cert/docs/models/CertificateReadListAllOf.md b/products/cert/docs/models/CertificateReadListAllOf.md new file mode 100644 index 0000000..96cc742 --- /dev/null +++ b/products/cert/docs/models/CertificateReadListAllOf.md @@ -0,0 +1,116 @@ +# CertificateReadListAllOf + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | ID of the list of Certificate resources. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the list of Certificate resources. | | +|**Items** | Pointer to [**[]CertificateRead**](CertificateRead.md) | The list of Certificate resources. | [optional] | + +## Methods + +### NewCertificateReadListAllOf + +`func NewCertificateReadListAllOf(id string, type_ string, href string, ) *CertificateReadListAllOf` + +NewCertificateReadListAllOf instantiates a new CertificateReadListAllOf 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 + +### NewCertificateReadListAllOfWithDefaults + +`func NewCertificateReadListAllOfWithDefaults() *CertificateReadListAllOf` + +NewCertificateReadListAllOfWithDefaults instantiates a new CertificateReadListAllOf 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 + +### GetId + +`func (o *CertificateReadListAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateReadListAllOf) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateReadListAllOf) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *CertificateReadListAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CertificateReadListAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CertificateReadListAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *CertificateReadListAllOf) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *CertificateReadListAllOf) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *CertificateReadListAllOf) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetItems + +`func (o *CertificateReadListAllOf) GetItems() []CertificateRead` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CertificateReadListAllOf) GetItemsOk() (*[]CertificateRead, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CertificateReadListAllOf) SetItems(v []CertificateRead)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CertificateReadListAllOf) HasItems() bool` + +HasItems returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/ConfigPropertyDto.md b/products/cert/docs/models/ConfigPropertyDto.md deleted file mode 100644 index c0c909c..0000000 --- a/products/cert/docs/models/ConfigPropertyDto.md +++ /dev/null @@ -1,116 +0,0 @@ -# ConfigPropertyDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Id** | Pointer to **string** | The property id. | [optional] [readonly] | -|**Name** | **string** | The property name. | | -|**Value** | **string** | The property value. | | -|**Description** | **string** | The property description. | | - -## Methods - -### NewConfigPropertyDto - -`func NewConfigPropertyDto(name string, value string, description string, ) *ConfigPropertyDto` - -NewConfigPropertyDto instantiates a new ConfigPropertyDto 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 - -### NewConfigPropertyDtoWithDefaults - -`func NewConfigPropertyDtoWithDefaults() *ConfigPropertyDto` - -NewConfigPropertyDtoWithDefaults instantiates a new ConfigPropertyDto 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 - -### GetId - -`func (o *ConfigPropertyDto) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ConfigPropertyDto) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ConfigPropertyDto) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ConfigPropertyDto) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *ConfigPropertyDto) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ConfigPropertyDto) 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 *ConfigPropertyDto) SetName(v string)` - -SetName sets Name field to given value. - - -### GetValue - -`func (o *ConfigPropertyDto) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *ConfigPropertyDto) 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 *ConfigPropertyDto) SetValue(v string)` - -SetValue sets Value field to given value. - - -### GetDescription - -`func (o *ConfigPropertyDto) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ConfigPropertyDto) 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 *ConfigPropertyDto) SetDescription(v string)` - -SetDescription sets Description field to given value. - - - diff --git a/products/cert/docs/models/Connection.md b/products/cert/docs/models/Connection.md new file mode 100644 index 0000000..b8d694b --- /dev/null +++ b/products/cert/docs/models/Connection.md @@ -0,0 +1,90 @@ +# Connection + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**DatacenterId** | **string** | The datacenter to connect your instance to. | | +|**LanId** | **string** | The numeric LAN ID to connect your instance to. | | +|**Cidr** | **string** | The IP and subnet for your instance. Note the following unavailable IP range: 10.244.0.0/11 | | + +## Methods + +### NewConnection + +`func NewConnection(datacenterId string, lanId string, cidr string, ) *Connection` + +NewConnection instantiates a new Connection 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 + +### NewConnectionWithDefaults + +`func NewConnectionWithDefaults() *Connection` + +NewConnectionWithDefaults instantiates a new Connection 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 + +### GetDatacenterId + +`func (o *Connection) GetDatacenterId() string` + +GetDatacenterId returns the DatacenterId field if non-nil, zero value otherwise. + +### GetDatacenterIdOk + +`func (o *Connection) GetDatacenterIdOk() (*string, bool)` + +GetDatacenterIdOk returns a tuple with the DatacenterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatacenterId + +`func (o *Connection) SetDatacenterId(v string)` + +SetDatacenterId sets DatacenterId field to given value. + + +### GetLanId + +`func (o *Connection) GetLanId() string` + +GetLanId returns the LanId field if non-nil, zero value otherwise. + +### GetLanIdOk + +`func (o *Connection) GetLanIdOk() (*string, bool)` + +GetLanIdOk returns a tuple with the LanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLanId + +`func (o *Connection) SetLanId(v string)` + +SetLanId sets LanId field to given value. + + +### GetCidr + +`func (o *Connection) GetCidr() string` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *Connection) GetCidrOk() (*string, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *Connection) SetCidr(v string)` + +SetCidr sets Cidr field to given value. + + + diff --git a/products/cert/docs/models/DayOfTheWeek.md b/products/cert/docs/models/DayOfTheWeek.md new file mode 100644 index 0000000..37cf4cb --- /dev/null +++ b/products/cert/docs/models/DayOfTheWeek.md @@ -0,0 +1,8 @@ +# DayOfTheWeek + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| + + diff --git a/products/cert/docs/models/Error.md b/products/cert/docs/models/Error.md new file mode 100644 index 0000000..717a950 --- /dev/null +++ b/products/cert/docs/models/Error.md @@ -0,0 +1,79 @@ +# Error + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**HttpStatus** | Pointer to **int32** | The HTTP status code of the operation. | [optional] | +|**Messages** | Pointer to [**[]ErrorMessages**](ErrorMessages.md) | A list of error messages. | [optional] | + +## Methods + +### NewError + +`func NewError() *Error` + +NewError instantiates a new Error object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHttpStatus + +`func (o *Error) GetHttpStatus() int32` + +GetHttpStatus returns the HttpStatus field if non-nil, zero value otherwise. + +### GetHttpStatusOk + +`func (o *Error) GetHttpStatusOk() (*int32, bool)` + +GetHttpStatusOk returns a tuple with the HttpStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpStatus + +`func (o *Error) SetHttpStatus(v int32)` + +SetHttpStatus sets HttpStatus field to given value. + +### HasHttpStatus + +`func (o *Error) HasHttpStatus() bool` + +HasHttpStatus returns a boolean if a field has been set. + +### GetMessages + +`func (o *Error) GetMessages() []ErrorMessages` + +GetMessages returns the Messages field if non-nil, zero value otherwise. + +### GetMessagesOk + +`func (o *Error) GetMessagesOk() (*[]ErrorMessages, bool)` + +GetMessagesOk returns a tuple with the Messages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessages + +`func (o *Error) SetMessages(v []ErrorMessages)` + +SetMessages sets Messages field to given value. + +### HasMessages + +`func (o *Error) HasMessages() bool` + +HasMessages returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/ErrorMessages.md b/products/cert/docs/models/ErrorMessages.md new file mode 100644 index 0000000..de55058 --- /dev/null +++ b/products/cert/docs/models/ErrorMessages.md @@ -0,0 +1,79 @@ +# ErrorMessages + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**ErrorCode** | Pointer to **string** | Application internal error code | [optional] | +|**Message** | Pointer to **string** | A human readable explanation specific to this occurrence of the problem. | [optional] | + +## Methods + +### NewErrorMessages + +`func NewErrorMessages() *ErrorMessages` + +NewErrorMessages instantiates a new ErrorMessages 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 + +### NewErrorMessagesWithDefaults + +`func NewErrorMessagesWithDefaults() *ErrorMessages` + +NewErrorMessagesWithDefaults instantiates a new ErrorMessages 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 + +### GetErrorCode + +`func (o *ErrorMessages) GetErrorCode() string` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *ErrorMessages) GetErrorCodeOk() (*string, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *ErrorMessages) SetErrorCode(v string)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *ErrorMessages) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetMessage + +`func (o *ErrorMessages) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorMessages) 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 *ErrorMessages) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ErrorMessages) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/CertificateCollectionDtoLinks.md b/products/cert/docs/models/Links.md similarity index 52% rename from products/cert/docs/models/CertificateCollectionDtoLinks.md rename to products/cert/docs/models/Links.md index da4e53c..eabda45 100644 --- a/products/cert/docs/models/CertificateCollectionDtoLinks.md +++ b/products/cert/docs/models/Links.md @@ -1,104 +1,104 @@ -# CertificateCollectionDtoLinks +# Links ## Properties |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**Prev** | Pointer to **string** | The previous page. | [optional] | -|**Self** | Pointer to **string** | The current page. | [optional] | -|**Next** | Pointer to **string** | The next page. | [optional] | +|**Prev** | Pointer to **string** | URL (with offset and limit parameters) of the previous page; only present if offset is greater than 0. | [optional] [readonly] | +|**Self** | Pointer to **string** | URL (with offset and limit parameters) of the current page. | [optional] [readonly] | +|**Next** | Pointer to **string** | URL (with offset and limit parameters) of the next page; only present if offset + limit is less than the total number of elements. | [optional] [readonly] | ## Methods -### NewCertificateCollectionDtoLinks +### NewLinks -`func NewCertificateCollectionDtoLinks() *CertificateCollectionDtoLinks` +`func NewLinks() *Links` -NewCertificateCollectionDtoLinks instantiates a new CertificateCollectionDtoLinks object +NewLinks instantiates a new Links 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 -### NewCertificateCollectionDtoLinksWithDefaults +### NewLinksWithDefaults -`func NewCertificateCollectionDtoLinksWithDefaults() *CertificateCollectionDtoLinks` +`func NewLinksWithDefaults() *Links` -NewCertificateCollectionDtoLinksWithDefaults instantiates a new CertificateCollectionDtoLinks object +NewLinksWithDefaults instantiates a new Links 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 ### GetPrev -`func (o *CertificateCollectionDtoLinks) GetPrev() string` +`func (o *Links) GetPrev() string` GetPrev returns the Prev field if non-nil, zero value otherwise. ### GetPrevOk -`func (o *CertificateCollectionDtoLinks) GetPrevOk() (*string, bool)` +`func (o *Links) GetPrevOk() (*string, bool)` GetPrevOk returns a tuple with the Prev field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrev -`func (o *CertificateCollectionDtoLinks) SetPrev(v string)` +`func (o *Links) SetPrev(v string)` SetPrev sets Prev field to given value. ### HasPrev -`func (o *CertificateCollectionDtoLinks) HasPrev() bool` +`func (o *Links) HasPrev() bool` HasPrev returns a boolean if a field has been set. ### GetSelf -`func (o *CertificateCollectionDtoLinks) GetSelf() string` +`func (o *Links) GetSelf() string` GetSelf returns the Self field if non-nil, zero value otherwise. ### GetSelfOk -`func (o *CertificateCollectionDtoLinks) GetSelfOk() (*string, bool)` +`func (o *Links) GetSelfOk() (*string, bool)` GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSelf -`func (o *CertificateCollectionDtoLinks) SetSelf(v string)` +`func (o *Links) SetSelf(v string)` SetSelf sets Self field to given value. ### HasSelf -`func (o *CertificateCollectionDtoLinks) HasSelf() bool` +`func (o *Links) HasSelf() bool` HasSelf returns a boolean if a field has been set. ### GetNext -`func (o *CertificateCollectionDtoLinks) GetNext() string` +`func (o *Links) GetNext() string` GetNext returns the Next field if non-nil, zero value otherwise. ### GetNextOk -`func (o *CertificateCollectionDtoLinks) GetNextOk() (*string, bool)` +`func (o *Links) GetNextOk() (*string, bool)` GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetNext -`func (o *CertificateCollectionDtoLinks) SetNext(v string)` +`func (o *Links) SetNext(v string)` SetNext sets Next field to given value. ### HasNext -`func (o *CertificateCollectionDtoLinks) HasNext() bool` +`func (o *Links) HasNext() bool` HasNext returns a boolean if a field has been set. diff --git a/products/cert/docs/models/MaintenanceWindow.md b/products/cert/docs/models/MaintenanceWindow.md new file mode 100644 index 0000000..4e8c88d --- /dev/null +++ b/products/cert/docs/models/MaintenanceWindow.md @@ -0,0 +1,69 @@ +# MaintenanceWindow + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Time** | **string** | Start of the maintenance window in UTC time. | | +|**DayOfTheWeek** | [**DayOfTheWeek**](DayOfTheWeek.md) | | | + +## Methods + +### NewMaintenanceWindow + +`func NewMaintenanceWindow(time string, dayOfTheWeek DayOfTheWeek, ) *MaintenanceWindow` + +NewMaintenanceWindow instantiates a new MaintenanceWindow 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 + +### NewMaintenanceWindowWithDefaults + +`func NewMaintenanceWindowWithDefaults() *MaintenanceWindow` + +NewMaintenanceWindowWithDefaults instantiates a new MaintenanceWindow 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 + +### GetTime + +`func (o *MaintenanceWindow) GetTime() string` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *MaintenanceWindow) GetTimeOk() (*string, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *MaintenanceWindow) SetTime(v string)` + +SetTime sets Time field to given value. + + +### GetDayOfTheWeek + +`func (o *MaintenanceWindow) GetDayOfTheWeek() DayOfTheWeek` + +GetDayOfTheWeek returns the DayOfTheWeek field if non-nil, zero value otherwise. + +### GetDayOfTheWeekOk + +`func (o *MaintenanceWindow) GetDayOfTheWeekOk() (*DayOfTheWeek, bool)` + +GetDayOfTheWeekOk returns a tuple with the DayOfTheWeek field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDayOfTheWeek + +`func (o *MaintenanceWindow) SetDayOfTheWeek(v DayOfTheWeek)` + +SetDayOfTheWeek sets DayOfTheWeek field to given value. + + + diff --git a/products/cert/docs/models/Metadata.md b/products/cert/docs/models/Metadata.md new file mode 100644 index 0000000..65bcfab --- /dev/null +++ b/products/cert/docs/models/Metadata.md @@ -0,0 +1,209 @@ +# Metadata + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**CreatedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 creation timestamp. | [optional] [readonly] | +|**CreatedBy** | Pointer to **string** | Unique name of the identity that created the resource. | [optional] [readonly] | +|**CreatedByUserId** | Pointer to **string** | Unique id of the identity that created the resource. | [optional] [readonly] | +|**LastModifiedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 modified timestamp. | [optional] [readonly] | +|**LastModifiedBy** | Pointer to **string** | Unique name of the identity that last modified the resource. | [optional] [readonly] | +|**LastModifiedByUserId** | Pointer to **string** | Unique id of the identity that last modified the resource. | [optional] [readonly] | +|**ResourceURN** | Pointer to **string** | Unique name of the resource. | [optional] [readonly] | + +## Methods + +### NewMetadata + +`func NewMetadata() *Metadata` + +NewMetadata instantiates a new Metadata 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 + +### NewMetadataWithDefaults + +`func NewMetadataWithDefaults() *Metadata` + +NewMetadataWithDefaults instantiates a new Metadata 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 + +### GetCreatedDate + +`func (o *Metadata) GetCreatedDate() time.Time` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *Metadata) GetCreatedDateOk() (*time.Time, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *Metadata) SetCreatedDate(v time.Time)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *Metadata) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *Metadata) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *Metadata) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *Metadata) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *Metadata) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedByUserId + +`func (o *Metadata) GetCreatedByUserId() string` + +GetCreatedByUserId returns the CreatedByUserId field if non-nil, zero value otherwise. + +### GetCreatedByUserIdOk + +`func (o *Metadata) GetCreatedByUserIdOk() (*string, bool)` + +GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserId + +`func (o *Metadata) SetCreatedByUserId(v string)` + +SetCreatedByUserId sets CreatedByUserId field to given value. + +### HasCreatedByUserId + +`func (o *Metadata) HasCreatedByUserId() bool` + +HasCreatedByUserId returns a boolean if a field has been set. + +### GetLastModifiedDate + +`func (o *Metadata) GetLastModifiedDate() time.Time` + +GetLastModifiedDate returns the LastModifiedDate field if non-nil, zero value otherwise. + +### GetLastModifiedDateOk + +`func (o *Metadata) GetLastModifiedDateOk() (*time.Time, bool)` + +GetLastModifiedDateOk returns a tuple with the LastModifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedDate + +`func (o *Metadata) SetLastModifiedDate(v time.Time)` + +SetLastModifiedDate sets LastModifiedDate field to given value. + +### HasLastModifiedDate + +`func (o *Metadata) HasLastModifiedDate() bool` + +HasLastModifiedDate returns a boolean if a field has been set. + +### GetLastModifiedBy + +`func (o *Metadata) GetLastModifiedBy() string` + +GetLastModifiedBy returns the LastModifiedBy field if non-nil, zero value otherwise. + +### GetLastModifiedByOk + +`func (o *Metadata) GetLastModifiedByOk() (*string, bool)` + +GetLastModifiedByOk returns a tuple with the LastModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedBy + +`func (o *Metadata) SetLastModifiedBy(v string)` + +SetLastModifiedBy sets LastModifiedBy field to given value. + +### HasLastModifiedBy + +`func (o *Metadata) HasLastModifiedBy() bool` + +HasLastModifiedBy returns a boolean if a field has been set. + +### GetLastModifiedByUserId + +`func (o *Metadata) GetLastModifiedByUserId() string` + +GetLastModifiedByUserId returns the LastModifiedByUserId field if non-nil, zero value otherwise. + +### GetLastModifiedByUserIdOk + +`func (o *Metadata) GetLastModifiedByUserIdOk() (*string, bool)` + +GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedByUserId + +`func (o *Metadata) SetLastModifiedByUserId(v string)` + +SetLastModifiedByUserId sets LastModifiedByUserId field to given value. + +### HasLastModifiedByUserId + +`func (o *Metadata) HasLastModifiedByUserId() bool` + +HasLastModifiedByUserId returns a boolean if a field has been set. + +### GetResourceURN + +`func (o *Metadata) GetResourceURN() string` + +GetResourceURN returns the ResourceURN field if non-nil, zero value otherwise. + +### GetResourceURNOk + +`func (o *Metadata) GetResourceURNOk() (*string, bool)` + +GetResourceURNOk returns a tuple with the ResourceURN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceURN + +`func (o *Metadata) SetResourceURN(v string)` + +SetResourceURN sets ResourceURN field to given value. + +### HasResourceURN + +`func (o *Metadata) HasResourceURN() bool` + +HasResourceURN returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/MetadataWithAutoCertificateInformation.md b/products/cert/docs/models/MetadataWithAutoCertificateInformation.md new file mode 100644 index 0000000..3ccb0d0 --- /dev/null +++ b/products/cert/docs/models/MetadataWithAutoCertificateInformation.md @@ -0,0 +1,277 @@ +# MetadataWithAutoCertificateInformation + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**CreatedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 creation timestamp. | [optional] [readonly] | +|**CreatedBy** | Pointer to **string** | Unique name of the identity that created the resource. | [optional] [readonly] | +|**CreatedByUserId** | Pointer to **string** | Unique id of the identity that created the resource. | [optional] [readonly] | +|**LastModifiedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 modified timestamp. | [optional] [readonly] | +|**LastModifiedBy** | Pointer to **string** | Unique name of the identity that last modified the resource. | [optional] [readonly] | +|**LastModifiedByUserId** | Pointer to **string** | Unique id of the identity that last modified the resource. | [optional] [readonly] | +|**ResourceURN** | Pointer to **string** | Unique name of the resource. | [optional] [readonly] | +|**State** | **string** | The resource state. | | +|**Message** | **string** | A human readable message describing the current state. In case of an error, the message will contain a detailed error message. | | +|**LastIssuedCertificate** | Pointer to **string** | The ID of the last certificate that was issued. | [optional] | + +## Methods + +### NewMetadataWithAutoCertificateInformation + +`func NewMetadataWithAutoCertificateInformation(state string, message string, ) *MetadataWithAutoCertificateInformation` + +NewMetadataWithAutoCertificateInformation instantiates a new MetadataWithAutoCertificateInformation 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 + +### NewMetadataWithAutoCertificateInformationWithDefaults + +`func NewMetadataWithAutoCertificateInformationWithDefaults() *MetadataWithAutoCertificateInformation` + +NewMetadataWithAutoCertificateInformationWithDefaults instantiates a new MetadataWithAutoCertificateInformation 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 + +### GetCreatedDate + +`func (o *MetadataWithAutoCertificateInformation) GetCreatedDate() time.Time` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *MetadataWithAutoCertificateInformation) GetCreatedDateOk() (*time.Time, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *MetadataWithAutoCertificateInformation) SetCreatedDate(v time.Time)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *MetadataWithAutoCertificateInformation) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *MetadataWithAutoCertificateInformation) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *MetadataWithAutoCertificateInformation) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *MetadataWithAutoCertificateInformation) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *MetadataWithAutoCertificateInformation) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedByUserId + +`func (o *MetadataWithAutoCertificateInformation) GetCreatedByUserId() string` + +GetCreatedByUserId returns the CreatedByUserId field if non-nil, zero value otherwise. + +### GetCreatedByUserIdOk + +`func (o *MetadataWithAutoCertificateInformation) GetCreatedByUserIdOk() (*string, bool)` + +GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserId + +`func (o *MetadataWithAutoCertificateInformation) SetCreatedByUserId(v string)` + +SetCreatedByUserId sets CreatedByUserId field to given value. + +### HasCreatedByUserId + +`func (o *MetadataWithAutoCertificateInformation) HasCreatedByUserId() bool` + +HasCreatedByUserId returns a boolean if a field has been set. + +### GetLastModifiedDate + +`func (o *MetadataWithAutoCertificateInformation) GetLastModifiedDate() time.Time` + +GetLastModifiedDate returns the LastModifiedDate field if non-nil, zero value otherwise. + +### GetLastModifiedDateOk + +`func (o *MetadataWithAutoCertificateInformation) GetLastModifiedDateOk() (*time.Time, bool)` + +GetLastModifiedDateOk returns a tuple with the LastModifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedDate + +`func (o *MetadataWithAutoCertificateInformation) SetLastModifiedDate(v time.Time)` + +SetLastModifiedDate sets LastModifiedDate field to given value. + +### HasLastModifiedDate + +`func (o *MetadataWithAutoCertificateInformation) HasLastModifiedDate() bool` + +HasLastModifiedDate returns a boolean if a field has been set. + +### GetLastModifiedBy + +`func (o *MetadataWithAutoCertificateInformation) GetLastModifiedBy() string` + +GetLastModifiedBy returns the LastModifiedBy field if non-nil, zero value otherwise. + +### GetLastModifiedByOk + +`func (o *MetadataWithAutoCertificateInformation) GetLastModifiedByOk() (*string, bool)` + +GetLastModifiedByOk returns a tuple with the LastModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedBy + +`func (o *MetadataWithAutoCertificateInformation) SetLastModifiedBy(v string)` + +SetLastModifiedBy sets LastModifiedBy field to given value. + +### HasLastModifiedBy + +`func (o *MetadataWithAutoCertificateInformation) HasLastModifiedBy() bool` + +HasLastModifiedBy returns a boolean if a field has been set. + +### GetLastModifiedByUserId + +`func (o *MetadataWithAutoCertificateInformation) GetLastModifiedByUserId() string` + +GetLastModifiedByUserId returns the LastModifiedByUserId field if non-nil, zero value otherwise. + +### GetLastModifiedByUserIdOk + +`func (o *MetadataWithAutoCertificateInformation) GetLastModifiedByUserIdOk() (*string, bool)` + +GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedByUserId + +`func (o *MetadataWithAutoCertificateInformation) SetLastModifiedByUserId(v string)` + +SetLastModifiedByUserId sets LastModifiedByUserId field to given value. + +### HasLastModifiedByUserId + +`func (o *MetadataWithAutoCertificateInformation) HasLastModifiedByUserId() bool` + +HasLastModifiedByUserId returns a boolean if a field has been set. + +### GetResourceURN + +`func (o *MetadataWithAutoCertificateInformation) GetResourceURN() string` + +GetResourceURN returns the ResourceURN field if non-nil, zero value otherwise. + +### GetResourceURNOk + +`func (o *MetadataWithAutoCertificateInformation) GetResourceURNOk() (*string, bool)` + +GetResourceURNOk returns a tuple with the ResourceURN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceURN + +`func (o *MetadataWithAutoCertificateInformation) SetResourceURN(v string)` + +SetResourceURN sets ResourceURN field to given value. + +### HasResourceURN + +`func (o *MetadataWithAutoCertificateInformation) HasResourceURN() bool` + +HasResourceURN returns a boolean if a field has been set. + +### GetState + +`func (o *MetadataWithAutoCertificateInformation) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *MetadataWithAutoCertificateInformation) GetStateOk() (*string, 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 *MetadataWithAutoCertificateInformation) SetState(v string)` + +SetState sets State field to given value. + + +### GetMessage + +`func (o *MetadataWithAutoCertificateInformation) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *MetadataWithAutoCertificateInformation) 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 *MetadataWithAutoCertificateInformation) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetLastIssuedCertificate + +`func (o *MetadataWithAutoCertificateInformation) GetLastIssuedCertificate() string` + +GetLastIssuedCertificate returns the LastIssuedCertificate field if non-nil, zero value otherwise. + +### GetLastIssuedCertificateOk + +`func (o *MetadataWithAutoCertificateInformation) GetLastIssuedCertificateOk() (*string, bool)` + +GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastIssuedCertificate + +`func (o *MetadataWithAutoCertificateInformation) SetLastIssuedCertificate(v string)` + +SetLastIssuedCertificate sets LastIssuedCertificate field to given value. + +### HasLastIssuedCertificate + +`func (o *MetadataWithAutoCertificateInformation) HasLastIssuedCertificate() bool` + +HasLastIssuedCertificate returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/MetadataWithAutoCertificateInformationAllOf.md b/products/cert/docs/models/MetadataWithAutoCertificateInformationAllOf.md new file mode 100644 index 0000000..30b4866 --- /dev/null +++ b/products/cert/docs/models/MetadataWithAutoCertificateInformationAllOf.md @@ -0,0 +1,53 @@ +# MetadataWithAutoCertificateInformationAllOf + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**LastIssuedCertificate** | Pointer to **string** | The ID of the last certificate that was issued. | [optional] | + +## Methods + +### NewMetadataWithAutoCertificateInformationAllOf + +`func NewMetadataWithAutoCertificateInformationAllOf() *MetadataWithAutoCertificateInformationAllOf` + +NewMetadataWithAutoCertificateInformationAllOf instantiates a new MetadataWithAutoCertificateInformationAllOf 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 + +### NewMetadataWithAutoCertificateInformationAllOfWithDefaults + +`func NewMetadataWithAutoCertificateInformationAllOfWithDefaults() *MetadataWithAutoCertificateInformationAllOf` + +NewMetadataWithAutoCertificateInformationAllOfWithDefaults instantiates a new MetadataWithAutoCertificateInformationAllOf 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 + +### GetLastIssuedCertificate + +`func (o *MetadataWithAutoCertificateInformationAllOf) GetLastIssuedCertificate() string` + +GetLastIssuedCertificate returns the LastIssuedCertificate field if non-nil, zero value otherwise. + +### GetLastIssuedCertificateOk + +`func (o *MetadataWithAutoCertificateInformationAllOf) GetLastIssuedCertificateOk() (*string, bool)` + +GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastIssuedCertificate + +`func (o *MetadataWithAutoCertificateInformationAllOf) SetLastIssuedCertificate(v string)` + +SetLastIssuedCertificate sets LastIssuedCertificate field to given value. + +### HasLastIssuedCertificate + +`func (o *MetadataWithAutoCertificateInformationAllOf) HasLastIssuedCertificate() bool` + +HasLastIssuedCertificate returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/MetadataWithCertificateInformation.md b/products/cert/docs/models/MetadataWithCertificateInformation.md new file mode 100644 index 0000000..a40f33f --- /dev/null +++ b/products/cert/docs/models/MetadataWithCertificateInformation.md @@ -0,0 +1,429 @@ +# MetadataWithCertificateInformation + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**CreatedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 creation timestamp. | [optional] [readonly] | +|**CreatedBy** | Pointer to **string** | Unique name of the identity that created the resource. | [optional] [readonly] | +|**CreatedByUserId** | Pointer to **string** | Unique id of the identity that created the resource. | [optional] [readonly] | +|**LastModifiedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 modified timestamp. | [optional] [readonly] | +|**LastModifiedBy** | Pointer to **string** | Unique name of the identity that last modified the resource. | [optional] [readonly] | +|**LastModifiedByUserId** | Pointer to **string** | Unique id of the identity that last modified the resource. | [optional] [readonly] | +|**ResourceURN** | Pointer to **string** | Unique name of the resource. | [optional] [readonly] | +|**State** | **string** | The resource state. | | +|**Message** | **string** | A human readable message describing the current state. In case of an error, the message will contain a detailed error message. | | +|**AutoCertificate** | Pointer to **string** | The ID of the auto-certificate that caused issuing of the certificate. | [optional] | +|**LastIssuedCertificate** | Pointer to **string** | The ID of the last issued certificate that belongs to the same auto-certificate. | [optional] | +|**Expired** | **bool** | Indicates if the certificate is expired. | | +|**NotBefore** | [**time.Time**](time.Time.md) | The start date of the certificate. | | +|**NotAfter** | [**time.Time**](time.Time.md) | The end date of the certificate. | | +|**SerialNumber** | **string** | The serial number of the certificate in hex. | | +|**CommonName** | **string** | The common name (DNS) of the certificate. | | +|**SubjectAlternativeNames** | **[]string** | Optional additional names added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS. | | + +## Methods + +### NewMetadataWithCertificateInformation + +`func NewMetadataWithCertificateInformation(state string, message string, expired bool, notBefore time.Time, notAfter time.Time, serialNumber string, commonName string, subjectAlternativeNames []string, ) *MetadataWithCertificateInformation` + +NewMetadataWithCertificateInformation instantiates a new MetadataWithCertificateInformation 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 + +### NewMetadataWithCertificateInformationWithDefaults + +`func NewMetadataWithCertificateInformationWithDefaults() *MetadataWithCertificateInformation` + +NewMetadataWithCertificateInformationWithDefaults instantiates a new MetadataWithCertificateInformation 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 + +### GetCreatedDate + +`func (o *MetadataWithCertificateInformation) GetCreatedDate() time.Time` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *MetadataWithCertificateInformation) GetCreatedDateOk() (*time.Time, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *MetadataWithCertificateInformation) SetCreatedDate(v time.Time)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *MetadataWithCertificateInformation) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *MetadataWithCertificateInformation) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *MetadataWithCertificateInformation) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *MetadataWithCertificateInformation) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *MetadataWithCertificateInformation) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedByUserId + +`func (o *MetadataWithCertificateInformation) GetCreatedByUserId() string` + +GetCreatedByUserId returns the CreatedByUserId field if non-nil, zero value otherwise. + +### GetCreatedByUserIdOk + +`func (o *MetadataWithCertificateInformation) GetCreatedByUserIdOk() (*string, bool)` + +GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserId + +`func (o *MetadataWithCertificateInformation) SetCreatedByUserId(v string)` + +SetCreatedByUserId sets CreatedByUserId field to given value. + +### HasCreatedByUserId + +`func (o *MetadataWithCertificateInformation) HasCreatedByUserId() bool` + +HasCreatedByUserId returns a boolean if a field has been set. + +### GetLastModifiedDate + +`func (o *MetadataWithCertificateInformation) GetLastModifiedDate() time.Time` + +GetLastModifiedDate returns the LastModifiedDate field if non-nil, zero value otherwise. + +### GetLastModifiedDateOk + +`func (o *MetadataWithCertificateInformation) GetLastModifiedDateOk() (*time.Time, bool)` + +GetLastModifiedDateOk returns a tuple with the LastModifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedDate + +`func (o *MetadataWithCertificateInformation) SetLastModifiedDate(v time.Time)` + +SetLastModifiedDate sets LastModifiedDate field to given value. + +### HasLastModifiedDate + +`func (o *MetadataWithCertificateInformation) HasLastModifiedDate() bool` + +HasLastModifiedDate returns a boolean if a field has been set. + +### GetLastModifiedBy + +`func (o *MetadataWithCertificateInformation) GetLastModifiedBy() string` + +GetLastModifiedBy returns the LastModifiedBy field if non-nil, zero value otherwise. + +### GetLastModifiedByOk + +`func (o *MetadataWithCertificateInformation) GetLastModifiedByOk() (*string, bool)` + +GetLastModifiedByOk returns a tuple with the LastModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedBy + +`func (o *MetadataWithCertificateInformation) SetLastModifiedBy(v string)` + +SetLastModifiedBy sets LastModifiedBy field to given value. + +### HasLastModifiedBy + +`func (o *MetadataWithCertificateInformation) HasLastModifiedBy() bool` + +HasLastModifiedBy returns a boolean if a field has been set. + +### GetLastModifiedByUserId + +`func (o *MetadataWithCertificateInformation) GetLastModifiedByUserId() string` + +GetLastModifiedByUserId returns the LastModifiedByUserId field if non-nil, zero value otherwise. + +### GetLastModifiedByUserIdOk + +`func (o *MetadataWithCertificateInformation) GetLastModifiedByUserIdOk() (*string, bool)` + +GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedByUserId + +`func (o *MetadataWithCertificateInformation) SetLastModifiedByUserId(v string)` + +SetLastModifiedByUserId sets LastModifiedByUserId field to given value. + +### HasLastModifiedByUserId + +`func (o *MetadataWithCertificateInformation) HasLastModifiedByUserId() bool` + +HasLastModifiedByUserId returns a boolean if a field has been set. + +### GetResourceURN + +`func (o *MetadataWithCertificateInformation) GetResourceURN() string` + +GetResourceURN returns the ResourceURN field if non-nil, zero value otherwise. + +### GetResourceURNOk + +`func (o *MetadataWithCertificateInformation) GetResourceURNOk() (*string, bool)` + +GetResourceURNOk returns a tuple with the ResourceURN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceURN + +`func (o *MetadataWithCertificateInformation) SetResourceURN(v string)` + +SetResourceURN sets ResourceURN field to given value. + +### HasResourceURN + +`func (o *MetadataWithCertificateInformation) HasResourceURN() bool` + +HasResourceURN returns a boolean if a field has been set. + +### GetState + +`func (o *MetadataWithCertificateInformation) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *MetadataWithCertificateInformation) GetStateOk() (*string, 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 *MetadataWithCertificateInformation) SetState(v string)` + +SetState sets State field to given value. + + +### GetMessage + +`func (o *MetadataWithCertificateInformation) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *MetadataWithCertificateInformation) 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 *MetadataWithCertificateInformation) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetAutoCertificate + +`func (o *MetadataWithCertificateInformation) GetAutoCertificate() string` + +GetAutoCertificate returns the AutoCertificate field if non-nil, zero value otherwise. + +### GetAutoCertificateOk + +`func (o *MetadataWithCertificateInformation) GetAutoCertificateOk() (*string, bool)` + +GetAutoCertificateOk returns a tuple with the AutoCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoCertificate + +`func (o *MetadataWithCertificateInformation) SetAutoCertificate(v string)` + +SetAutoCertificate sets AutoCertificate field to given value. + +### HasAutoCertificate + +`func (o *MetadataWithCertificateInformation) HasAutoCertificate() bool` + +HasAutoCertificate returns a boolean if a field has been set. + +### GetLastIssuedCertificate + +`func (o *MetadataWithCertificateInformation) GetLastIssuedCertificate() string` + +GetLastIssuedCertificate returns the LastIssuedCertificate field if non-nil, zero value otherwise. + +### GetLastIssuedCertificateOk + +`func (o *MetadataWithCertificateInformation) GetLastIssuedCertificateOk() (*string, bool)` + +GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastIssuedCertificate + +`func (o *MetadataWithCertificateInformation) SetLastIssuedCertificate(v string)` + +SetLastIssuedCertificate sets LastIssuedCertificate field to given value. + +### HasLastIssuedCertificate + +`func (o *MetadataWithCertificateInformation) HasLastIssuedCertificate() bool` + +HasLastIssuedCertificate returns a boolean if a field has been set. + +### GetExpired + +`func (o *MetadataWithCertificateInformation) GetExpired() bool` + +GetExpired returns the Expired field if non-nil, zero value otherwise. + +### GetExpiredOk + +`func (o *MetadataWithCertificateInformation) GetExpiredOk() (*bool, bool)` + +GetExpiredOk returns a tuple with the Expired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpired + +`func (o *MetadataWithCertificateInformation) SetExpired(v bool)` + +SetExpired sets Expired field to given value. + + +### GetNotBefore + +`func (o *MetadataWithCertificateInformation) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *MetadataWithCertificateInformation) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *MetadataWithCertificateInformation) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + + +### GetNotAfter + +`func (o *MetadataWithCertificateInformation) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *MetadataWithCertificateInformation) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *MetadataWithCertificateInformation) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + + +### GetSerialNumber + +`func (o *MetadataWithCertificateInformation) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *MetadataWithCertificateInformation) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *MetadataWithCertificateInformation) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + + +### GetCommonName + +`func (o *MetadataWithCertificateInformation) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *MetadataWithCertificateInformation) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *MetadataWithCertificateInformation) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + + +### GetSubjectAlternativeNames + +`func (o *MetadataWithCertificateInformation) GetSubjectAlternativeNames() []string` + +GetSubjectAlternativeNames returns the SubjectAlternativeNames field if non-nil, zero value otherwise. + +### GetSubjectAlternativeNamesOk + +`func (o *MetadataWithCertificateInformation) GetSubjectAlternativeNamesOk() (*[]string, bool)` + +GetSubjectAlternativeNamesOk returns a tuple with the SubjectAlternativeNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAlternativeNames + +`func (o *MetadataWithCertificateInformation) SetSubjectAlternativeNames(v []string)` + +SetSubjectAlternativeNames sets SubjectAlternativeNames field to given value. + + + diff --git a/products/cert/docs/models/MetadataWithCertificateInformationAllOf.md b/products/cert/docs/models/MetadataWithCertificateInformationAllOf.md new file mode 100644 index 0000000..e4586b1 --- /dev/null +++ b/products/cert/docs/models/MetadataWithCertificateInformationAllOf.md @@ -0,0 +1,205 @@ +# MetadataWithCertificateInformationAllOf + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**AutoCertificate** | Pointer to **string** | The ID of the auto-certificate that caused issuing of the certificate. | [optional] | +|**LastIssuedCertificate** | Pointer to **string** | The ID of the last issued certificate that belongs to the same auto-certificate. | [optional] | +|**Expired** | **bool** | Indicates if the certificate is expired. | | +|**NotBefore** | [**time.Time**](time.Time.md) | The start date of the certificate. | | +|**NotAfter** | [**time.Time**](time.Time.md) | The end date of the certificate. | | +|**SerialNumber** | **string** | The serial number of the certificate in hex. | | +|**CommonName** | **string** | The common name (DNS) of the certificate. | | +|**SubjectAlternativeNames** | **[]string** | Optional additional names added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS. | | + +## Methods + +### NewMetadataWithCertificateInformationAllOf + +`func NewMetadataWithCertificateInformationAllOf(expired bool, notBefore time.Time, notAfter time.Time, serialNumber string, commonName string, subjectAlternativeNames []string, ) *MetadataWithCertificateInformationAllOf` + +NewMetadataWithCertificateInformationAllOf instantiates a new MetadataWithCertificateInformationAllOf 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 + +### NewMetadataWithCertificateInformationAllOfWithDefaults + +`func NewMetadataWithCertificateInformationAllOfWithDefaults() *MetadataWithCertificateInformationAllOf` + +NewMetadataWithCertificateInformationAllOfWithDefaults instantiates a new MetadataWithCertificateInformationAllOf 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 + +### GetAutoCertificate + +`func (o *MetadataWithCertificateInformationAllOf) GetAutoCertificate() string` + +GetAutoCertificate returns the AutoCertificate field if non-nil, zero value otherwise. + +### GetAutoCertificateOk + +`func (o *MetadataWithCertificateInformationAllOf) GetAutoCertificateOk() (*string, bool)` + +GetAutoCertificateOk returns a tuple with the AutoCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoCertificate + +`func (o *MetadataWithCertificateInformationAllOf) SetAutoCertificate(v string)` + +SetAutoCertificate sets AutoCertificate field to given value. + +### HasAutoCertificate + +`func (o *MetadataWithCertificateInformationAllOf) HasAutoCertificate() bool` + +HasAutoCertificate returns a boolean if a field has been set. + +### GetLastIssuedCertificate + +`func (o *MetadataWithCertificateInformationAllOf) GetLastIssuedCertificate() string` + +GetLastIssuedCertificate returns the LastIssuedCertificate field if non-nil, zero value otherwise. + +### GetLastIssuedCertificateOk + +`func (o *MetadataWithCertificateInformationAllOf) GetLastIssuedCertificateOk() (*string, bool)` + +GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastIssuedCertificate + +`func (o *MetadataWithCertificateInformationAllOf) SetLastIssuedCertificate(v string)` + +SetLastIssuedCertificate sets LastIssuedCertificate field to given value. + +### HasLastIssuedCertificate + +`func (o *MetadataWithCertificateInformationAllOf) HasLastIssuedCertificate() bool` + +HasLastIssuedCertificate returns a boolean if a field has been set. + +### GetExpired + +`func (o *MetadataWithCertificateInformationAllOf) GetExpired() bool` + +GetExpired returns the Expired field if non-nil, zero value otherwise. + +### GetExpiredOk + +`func (o *MetadataWithCertificateInformationAllOf) GetExpiredOk() (*bool, bool)` + +GetExpiredOk returns a tuple with the Expired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpired + +`func (o *MetadataWithCertificateInformationAllOf) SetExpired(v bool)` + +SetExpired sets Expired field to given value. + + +### GetNotBefore + +`func (o *MetadataWithCertificateInformationAllOf) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *MetadataWithCertificateInformationAllOf) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *MetadataWithCertificateInformationAllOf) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + + +### GetNotAfter + +`func (o *MetadataWithCertificateInformationAllOf) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *MetadataWithCertificateInformationAllOf) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *MetadataWithCertificateInformationAllOf) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + + +### GetSerialNumber + +`func (o *MetadataWithCertificateInformationAllOf) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *MetadataWithCertificateInformationAllOf) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *MetadataWithCertificateInformationAllOf) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + + +### GetCommonName + +`func (o *MetadataWithCertificateInformationAllOf) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *MetadataWithCertificateInformationAllOf) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *MetadataWithCertificateInformationAllOf) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + + +### GetSubjectAlternativeNames + +`func (o *MetadataWithCertificateInformationAllOf) GetSubjectAlternativeNames() []string` + +GetSubjectAlternativeNames returns the SubjectAlternativeNames field if non-nil, zero value otherwise. + +### GetSubjectAlternativeNamesOk + +`func (o *MetadataWithCertificateInformationAllOf) GetSubjectAlternativeNamesOk() (*[]string, bool)` + +GetSubjectAlternativeNamesOk returns a tuple with the SubjectAlternativeNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAlternativeNames + +`func (o *MetadataWithCertificateInformationAllOf) SetSubjectAlternativeNames(v []string)` + +SetSubjectAlternativeNames sets SubjectAlternativeNames field to given value. + + + diff --git a/products/cert/docs/models/MetadataWithStatus.md b/products/cert/docs/models/MetadataWithStatus.md new file mode 100644 index 0000000..1da453e --- /dev/null +++ b/products/cert/docs/models/MetadataWithStatus.md @@ -0,0 +1,251 @@ +# MetadataWithStatus + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**CreatedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 creation timestamp. | [optional] [readonly] | +|**CreatedBy** | Pointer to **string** | Unique name of the identity that created the resource. | [optional] [readonly] | +|**CreatedByUserId** | Pointer to **string** | Unique id of the identity that created the resource. | [optional] [readonly] | +|**LastModifiedDate** | Pointer to [**time.Time**](time.Time.md) | The ISO 8601 modified timestamp. | [optional] [readonly] | +|**LastModifiedBy** | Pointer to **string** | Unique name of the identity that last modified the resource. | [optional] [readonly] | +|**LastModifiedByUserId** | Pointer to **string** | Unique id of the identity that last modified the resource. | [optional] [readonly] | +|**ResourceURN** | Pointer to **string** | Unique name of the resource. | [optional] [readonly] | +|**State** | **string** | The resource state. | | +|**Message** | **string** | A human readable message describing the current state. In case of an error, the message will contain a detailed error message. | | + +## Methods + +### NewMetadataWithStatus + +`func NewMetadataWithStatus(state string, message string, ) *MetadataWithStatus` + +NewMetadataWithStatus instantiates a new MetadataWithStatus 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 + +### NewMetadataWithStatusWithDefaults + +`func NewMetadataWithStatusWithDefaults() *MetadataWithStatus` + +NewMetadataWithStatusWithDefaults instantiates a new MetadataWithStatus 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 + +### GetCreatedDate + +`func (o *MetadataWithStatus) GetCreatedDate() time.Time` + +GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. + +### GetCreatedDateOk + +`func (o *MetadataWithStatus) GetCreatedDateOk() (*time.Time, bool)` + +GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDate + +`func (o *MetadataWithStatus) SetCreatedDate(v time.Time)` + +SetCreatedDate sets CreatedDate field to given value. + +### HasCreatedDate + +`func (o *MetadataWithStatus) HasCreatedDate() bool` + +HasCreatedDate returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *MetadataWithStatus) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *MetadataWithStatus) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *MetadataWithStatus) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *MetadataWithStatus) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedByUserId + +`func (o *MetadataWithStatus) GetCreatedByUserId() string` + +GetCreatedByUserId returns the CreatedByUserId field if non-nil, zero value otherwise. + +### GetCreatedByUserIdOk + +`func (o *MetadataWithStatus) GetCreatedByUserIdOk() (*string, bool)` + +GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserId + +`func (o *MetadataWithStatus) SetCreatedByUserId(v string)` + +SetCreatedByUserId sets CreatedByUserId field to given value. + +### HasCreatedByUserId + +`func (o *MetadataWithStatus) HasCreatedByUserId() bool` + +HasCreatedByUserId returns a boolean if a field has been set. + +### GetLastModifiedDate + +`func (o *MetadataWithStatus) GetLastModifiedDate() time.Time` + +GetLastModifiedDate returns the LastModifiedDate field if non-nil, zero value otherwise. + +### GetLastModifiedDateOk + +`func (o *MetadataWithStatus) GetLastModifiedDateOk() (*time.Time, bool)` + +GetLastModifiedDateOk returns a tuple with the LastModifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedDate + +`func (o *MetadataWithStatus) SetLastModifiedDate(v time.Time)` + +SetLastModifiedDate sets LastModifiedDate field to given value. + +### HasLastModifiedDate + +`func (o *MetadataWithStatus) HasLastModifiedDate() bool` + +HasLastModifiedDate returns a boolean if a field has been set. + +### GetLastModifiedBy + +`func (o *MetadataWithStatus) GetLastModifiedBy() string` + +GetLastModifiedBy returns the LastModifiedBy field if non-nil, zero value otherwise. + +### GetLastModifiedByOk + +`func (o *MetadataWithStatus) GetLastModifiedByOk() (*string, bool)` + +GetLastModifiedByOk returns a tuple with the LastModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedBy + +`func (o *MetadataWithStatus) SetLastModifiedBy(v string)` + +SetLastModifiedBy sets LastModifiedBy field to given value. + +### HasLastModifiedBy + +`func (o *MetadataWithStatus) HasLastModifiedBy() bool` + +HasLastModifiedBy returns a boolean if a field has been set. + +### GetLastModifiedByUserId + +`func (o *MetadataWithStatus) GetLastModifiedByUserId() string` + +GetLastModifiedByUserId returns the LastModifiedByUserId field if non-nil, zero value otherwise. + +### GetLastModifiedByUserIdOk + +`func (o *MetadataWithStatus) GetLastModifiedByUserIdOk() (*string, bool)` + +GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModifiedByUserId + +`func (o *MetadataWithStatus) SetLastModifiedByUserId(v string)` + +SetLastModifiedByUserId sets LastModifiedByUserId field to given value. + +### HasLastModifiedByUserId + +`func (o *MetadataWithStatus) HasLastModifiedByUserId() bool` + +HasLastModifiedByUserId returns a boolean if a field has been set. + +### GetResourceURN + +`func (o *MetadataWithStatus) GetResourceURN() string` + +GetResourceURN returns the ResourceURN field if non-nil, zero value otherwise. + +### GetResourceURNOk + +`func (o *MetadataWithStatus) GetResourceURNOk() (*string, bool)` + +GetResourceURNOk returns a tuple with the ResourceURN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceURN + +`func (o *MetadataWithStatus) SetResourceURN(v string)` + +SetResourceURN sets ResourceURN field to given value. + +### HasResourceURN + +`func (o *MetadataWithStatus) HasResourceURN() bool` + +HasResourceURN returns a boolean if a field has been set. + +### GetState + +`func (o *MetadataWithStatus) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *MetadataWithStatus) GetStateOk() (*string, 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 *MetadataWithStatus) SetState(v string)` + +SetState sets State field to given value. + + +### GetMessage + +`func (o *MetadataWithStatus) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *MetadataWithStatus) 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 *MetadataWithStatus) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + diff --git a/products/cert/docs/models/MetadataWithStatusAllOf.md b/products/cert/docs/models/MetadataWithStatusAllOf.md new file mode 100644 index 0000000..70e53de --- /dev/null +++ b/products/cert/docs/models/MetadataWithStatusAllOf.md @@ -0,0 +1,69 @@ +# MetadataWithStatusAllOf + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**State** | **string** | The resource state. | | +|**Message** | **string** | A human readable message describing the current state. In case of an error, the message will contain a detailed error message. | | + +## Methods + +### NewMetadataWithStatusAllOf + +`func NewMetadataWithStatusAllOf(state string, message string, ) *MetadataWithStatusAllOf` + +NewMetadataWithStatusAllOf instantiates a new MetadataWithStatusAllOf 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 + +### NewMetadataWithStatusAllOfWithDefaults + +`func NewMetadataWithStatusAllOfWithDefaults() *MetadataWithStatusAllOf` + +NewMetadataWithStatusAllOfWithDefaults instantiates a new MetadataWithStatusAllOf 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 *MetadataWithStatusAllOf) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *MetadataWithStatusAllOf) GetStateOk() (*string, 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 *MetadataWithStatusAllOf) SetState(v string)` + +SetState sets State field to given value. + + +### GetMessage + +`func (o *MetadataWithStatusAllOf) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *MetadataWithStatusAllOf) 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 *MetadataWithStatusAllOf) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + diff --git a/products/cert/docs/models/Pagination.md b/products/cert/docs/models/Pagination.md new file mode 100644 index 0000000..eaf53d8 --- /dev/null +++ b/products/cert/docs/models/Pagination.md @@ -0,0 +1,90 @@ +# Pagination + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Offset** | **int32** | The offset specified in the request (if none was specified, the default offset is 0). | [readonly] | +|**Limit** | **int32** | The limit specified in the request (if none was specified, use the endpoint's default pagination limit). | [readonly] | +|**Links** | [**Links**](Links.md) | | | + +## Methods + +### NewPagination + +`func NewPagination(offset int32, limit int32, links Links, ) *Pagination` + +NewPagination instantiates a new Pagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginationWithDefaults + +`func NewPaginationWithDefaults() *Pagination` + +NewPaginationWithDefaults instantiates a new Pagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOffset + +`func (o *Pagination) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *Pagination) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *Pagination) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + + +### GetLimit + +`func (o *Pagination) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *Pagination) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *Pagination) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + + +### GetLinks + +`func (o *Pagination) GetLinks() Links` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Pagination) GetLinksOk() (*Links, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Pagination) SetLinks(v Links)` + +SetLinks sets Links field to given value. + + + diff --git a/products/cert/docs/models/CertificatePatchPropertiesDto.md b/products/cert/docs/models/PatchName.md similarity index 52% rename from products/cert/docs/models/CertificatePatchPropertiesDto.md rename to products/cert/docs/models/PatchName.md index a487242..873ce3a 100644 --- a/products/cert/docs/models/CertificatePatchPropertiesDto.md +++ b/products/cert/docs/models/PatchName.md @@ -1,46 +1,46 @@ -# CertificatePatchPropertiesDto +# PatchName ## Properties |Name | Type | Description | Notes| |------------ | ------------- | ------------- | -------------| -|**Name** | **string** | The certificate name. | | +|**Name** | **string** | The new name. | | ## Methods -### NewCertificatePatchPropertiesDto +### NewPatchName -`func NewCertificatePatchPropertiesDto(name string, ) *CertificatePatchPropertiesDto` +`func NewPatchName(name string, ) *PatchName` -NewCertificatePatchPropertiesDto instantiates a new CertificatePatchPropertiesDto object +NewPatchName instantiates a new PatchName 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 -### NewCertificatePatchPropertiesDtoWithDefaults +### NewPatchNameWithDefaults -`func NewCertificatePatchPropertiesDtoWithDefaults() *CertificatePatchPropertiesDto` +`func NewPatchNameWithDefaults() *PatchName` -NewCertificatePatchPropertiesDtoWithDefaults instantiates a new CertificatePatchPropertiesDto object +NewPatchNameWithDefaults instantiates a new PatchName 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 *CertificatePatchPropertiesDto) GetName() string` +`func (o *PatchName) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *CertificatePatchPropertiesDto) GetNameOk() (*string, bool)` +`func (o *PatchName) 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 *CertificatePatchPropertiesDto) SetName(v string)` +`func (o *PatchName) SetName(v string)` SetName sets Name field to given value. diff --git a/products/cert/docs/models/Provider.md b/products/cert/docs/models/Provider.md new file mode 100644 index 0000000..e93613d --- /dev/null +++ b/products/cert/docs/models/Provider.md @@ -0,0 +1,116 @@ +# Provider + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Name** | **string** | The name of the certificate provider. | | +|**Email** | **string** | The email address of the certificate requester. | | +|**Server** | **string** | The URL of the certificate provider. | | +|**ExternalAccountBinding** | Pointer to [**ProviderExternalAccountBinding**](ProviderExternalAccountBinding.md) | | [optional] | + +## Methods + +### NewProvider + +`func NewProvider(name string, email string, server string, ) *Provider` + +NewProvider instantiates a new Provider 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 + +### NewProviderWithDefaults + +`func NewProviderWithDefaults() *Provider` + +NewProviderWithDefaults instantiates a new Provider 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 *Provider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Provider) 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 *Provider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEmail + +`func (o *Provider) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *Provider) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *Provider) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetServer + +`func (o *Provider) GetServer() string` + +GetServer returns the Server field if non-nil, zero value otherwise. + +### GetServerOk + +`func (o *Provider) GetServerOk() (*string, bool)` + +GetServerOk returns a tuple with the Server field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServer + +`func (o *Provider) SetServer(v string)` + +SetServer sets Server field to given value. + + +### GetExternalAccountBinding + +`func (o *Provider) GetExternalAccountBinding() ProviderExternalAccountBinding` + +GetExternalAccountBinding returns the ExternalAccountBinding field if non-nil, zero value otherwise. + +### GetExternalAccountBindingOk + +`func (o *Provider) GetExternalAccountBindingOk() (*ProviderExternalAccountBinding, bool)` + +GetExternalAccountBindingOk returns a tuple with the ExternalAccountBinding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalAccountBinding + +`func (o *Provider) SetExternalAccountBinding(v ProviderExternalAccountBinding)` + +SetExternalAccountBinding sets ExternalAccountBinding field to given value. + +### HasExternalAccountBinding + +`func (o *Provider) HasExternalAccountBinding() bool` + +HasExternalAccountBinding returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/ProviderCreate.md b/products/cert/docs/models/ProviderCreate.md new file mode 100644 index 0000000..561c5af --- /dev/null +++ b/products/cert/docs/models/ProviderCreate.md @@ -0,0 +1,74 @@ +# ProviderCreate + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Metadata** | Pointer to **map[string]interface{}** | Metadata | [optional] | +|**Properties** | [**Provider**](Provider.md) | | | + +## Methods + +### NewProviderCreate + +`func NewProviderCreate(properties Provider, ) *ProviderCreate` + +NewProviderCreate instantiates a new ProviderCreate 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 + +### NewProviderCreateWithDefaults + +`func NewProviderCreateWithDefaults() *ProviderCreate` + +NewProviderCreateWithDefaults instantiates a new ProviderCreate 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 + +### GetMetadata + +`func (o *ProviderCreate) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ProviderCreate) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ProviderCreate) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ProviderCreate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProperties + +`func (o *ProviderCreate) GetProperties() Provider` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ProviderCreate) GetPropertiesOk() (*Provider, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ProviderCreate) SetProperties(v Provider)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/ProviderExternalAccountBinding.md b/products/cert/docs/models/ProviderExternalAccountBinding.md new file mode 100644 index 0000000..1f5292a --- /dev/null +++ b/products/cert/docs/models/ProviderExternalAccountBinding.md @@ -0,0 +1,79 @@ +# ProviderExternalAccountBinding + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**KeyId** | Pointer to **string** | The key ID of the external account binding. | [optional] | +|**KeySecret** | Pointer to **string** | The secret of the external account binding. | [optional] | + +## Methods + +### NewProviderExternalAccountBinding + +`func NewProviderExternalAccountBinding() *ProviderExternalAccountBinding` + +NewProviderExternalAccountBinding instantiates a new ProviderExternalAccountBinding 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 + +### NewProviderExternalAccountBindingWithDefaults + +`func NewProviderExternalAccountBindingWithDefaults() *ProviderExternalAccountBinding` + +NewProviderExternalAccountBindingWithDefaults instantiates a new ProviderExternalAccountBinding 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 + +### GetKeyId + +`func (o *ProviderExternalAccountBinding) GetKeyId() string` + +GetKeyId returns the KeyId field if non-nil, zero value otherwise. + +### GetKeyIdOk + +`func (o *ProviderExternalAccountBinding) GetKeyIdOk() (*string, bool)` + +GetKeyIdOk returns a tuple with the KeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyId + +`func (o *ProviderExternalAccountBinding) SetKeyId(v string)` + +SetKeyId sets KeyId field to given value. + +### HasKeyId + +`func (o *ProviderExternalAccountBinding) HasKeyId() bool` + +HasKeyId returns a boolean if a field has been set. + +### GetKeySecret + +`func (o *ProviderExternalAccountBinding) GetKeySecret() string` + +GetKeySecret returns the KeySecret field if non-nil, zero value otherwise. + +### GetKeySecretOk + +`func (o *ProviderExternalAccountBinding) GetKeySecretOk() (*string, bool)` + +GetKeySecretOk returns a tuple with the KeySecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySecret + +`func (o *ProviderExternalAccountBinding) SetKeySecret(v string)` + +SetKeySecret sets KeySecret field to given value. + +### HasKeySecret + +`func (o *ProviderExternalAccountBinding) HasKeySecret() bool` + +HasKeySecret returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/ProviderPatch.md b/products/cert/docs/models/ProviderPatch.md new file mode 100644 index 0000000..9ad7706 --- /dev/null +++ b/products/cert/docs/models/ProviderPatch.md @@ -0,0 +1,74 @@ +# ProviderPatch + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Metadata** | Pointer to **map[string]interface{}** | Metadata | [optional] | +|**Properties** | [**PatchName**](PatchName.md) | | | + +## Methods + +### NewProviderPatch + +`func NewProviderPatch(properties PatchName, ) *ProviderPatch` + +NewProviderPatch instantiates a new ProviderPatch 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 + +### NewProviderPatchWithDefaults + +`func NewProviderPatchWithDefaults() *ProviderPatch` + +NewProviderPatchWithDefaults instantiates a new ProviderPatch 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 + +### GetMetadata + +`func (o *ProviderPatch) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ProviderPatch) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ProviderPatch) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ProviderPatch) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProperties + +`func (o *ProviderPatch) GetProperties() PatchName` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ProviderPatch) GetPropertiesOk() (*PatchName, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ProviderPatch) SetProperties(v PatchName)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/ProviderRead.md b/products/cert/docs/models/ProviderRead.md new file mode 100644 index 0000000..cfccfb7 --- /dev/null +++ b/products/cert/docs/models/ProviderRead.md @@ -0,0 +1,132 @@ +# ProviderRead + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | The ID (UUID) of the Provider. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the Provider. | | +|**Metadata** | [**MetadataWithStatus**](MetadataWithStatus.md) | | | +|**Properties** | [**Provider**](Provider.md) | | | + +## Methods + +### NewProviderRead + +`func NewProviderRead(id string, type_ string, href string, metadata MetadataWithStatus, properties Provider, ) *ProviderRead` + +NewProviderRead instantiates a new ProviderRead 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 + +### NewProviderReadWithDefaults + +`func NewProviderReadWithDefaults() *ProviderRead` + +NewProviderReadWithDefaults instantiates a new ProviderRead 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 + +### GetId + +`func (o *ProviderRead) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProviderRead) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ProviderRead) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *ProviderRead) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProviderRead) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProviderRead) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *ProviderRead) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ProviderRead) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ProviderRead) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetMetadata + +`func (o *ProviderRead) GetMetadata() MetadataWithStatus` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ProviderRead) GetMetadataOk() (*MetadataWithStatus, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ProviderRead) SetMetadata(v MetadataWithStatus)` + +SetMetadata sets Metadata field to given value. + + +### GetProperties + +`func (o *ProviderRead) GetProperties() Provider` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ProviderRead) GetPropertiesOk() (*Provider, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ProviderRead) SetProperties(v Provider)` + +SetProperties sets Properties field to given value. + + + diff --git a/products/cert/docs/models/ProviderReadList.md b/products/cert/docs/models/ProviderReadList.md new file mode 100644 index 0000000..04bced5 --- /dev/null +++ b/products/cert/docs/models/ProviderReadList.md @@ -0,0 +1,179 @@ +# ProviderReadList + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | ID of the list of Provider resources. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the list of Provider resources. | | +|**Items** | Pointer to [**[]ProviderRead**](ProviderRead.md) | The list of Provider resources. | [optional] | +|**Offset** | **int32** | The offset specified in the request (if none was specified, the default offset is 0). | [readonly] | +|**Limit** | **int32** | The limit specified in the request (if none was specified, use the endpoint's default pagination limit). | [readonly] | +|**Links** | [**Links**](Links.md) | | | + +## Methods + +### NewProviderReadList + +`func NewProviderReadList(id string, type_ string, href string, offset int32, limit int32, links Links, ) *ProviderReadList` + +NewProviderReadList instantiates a new ProviderReadList 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 + +### NewProviderReadListWithDefaults + +`func NewProviderReadListWithDefaults() *ProviderReadList` + +NewProviderReadListWithDefaults instantiates a new ProviderReadList 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 + +### GetId + +`func (o *ProviderReadList) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProviderReadList) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ProviderReadList) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *ProviderReadList) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProviderReadList) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProviderReadList) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *ProviderReadList) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ProviderReadList) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ProviderReadList) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetItems + +`func (o *ProviderReadList) GetItems() []ProviderRead` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ProviderReadList) GetItemsOk() (*[]ProviderRead, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ProviderReadList) SetItems(v []ProviderRead)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ProviderReadList) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetOffset + +`func (o *ProviderReadList) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *ProviderReadList) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *ProviderReadList) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + + +### GetLimit + +`func (o *ProviderReadList) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *ProviderReadList) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *ProviderReadList) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + + +### GetLinks + +`func (o *ProviderReadList) GetLinks() Links` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ProviderReadList) GetLinksOk() (*Links, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ProviderReadList) SetLinks(v Links)` + +SetLinks sets Links field to given value. + + + diff --git a/products/cert/docs/models/ProviderReadListAllOf.md b/products/cert/docs/models/ProviderReadListAllOf.md new file mode 100644 index 0000000..2982559 --- /dev/null +++ b/products/cert/docs/models/ProviderReadListAllOf.md @@ -0,0 +1,116 @@ +# ProviderReadListAllOf + +## Properties + +|Name | Type | Description | Notes| +|------------ | ------------- | ------------- | -------------| +|**Id** | **string** | ID of the list of Provider resources. | | +|**Type** | **string** | The type of the resource. | | +|**Href** | **string** | The URL of the list of Provider resources. | | +|**Items** | Pointer to [**[]ProviderRead**](ProviderRead.md) | The list of Provider resources. | [optional] | + +## Methods + +### NewProviderReadListAllOf + +`func NewProviderReadListAllOf(id string, type_ string, href string, ) *ProviderReadListAllOf` + +NewProviderReadListAllOf instantiates a new ProviderReadListAllOf 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 + +### NewProviderReadListAllOfWithDefaults + +`func NewProviderReadListAllOfWithDefaults() *ProviderReadListAllOf` + +NewProviderReadListAllOfWithDefaults instantiates a new ProviderReadListAllOf 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 + +### GetId + +`func (o *ProviderReadListAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProviderReadListAllOf) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ProviderReadListAllOf) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *ProviderReadListAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProviderReadListAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProviderReadListAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *ProviderReadListAllOf) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ProviderReadListAllOf) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ProviderReadListAllOf) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetItems + +`func (o *ProviderReadListAllOf) GetItems() []ProviderRead` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ProviderReadListAllOf) GetItemsOk() (*[]ProviderRead, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ProviderReadListAllOf) SetItems(v []ProviderRead)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ProviderReadListAllOf) HasItems() bool` + +HasItems returns a boolean if a field has been set. + + diff --git a/products/cert/docs/models/ResourceMetadataDto.md b/products/cert/docs/models/ResourceMetadataDto.md deleted file mode 100644 index 7b25f9e..0000000 --- a/products/cert/docs/models/ResourceMetadataDto.md +++ /dev/null @@ -1,235 +0,0 @@ -# ResourceMetadataDto - -## Properties - -|Name | Type | Description | Notes| -|------------ | ------------- | ------------- | -------------| -|**Etag** | Pointer to **string** | The entity tag of the resource, as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11. The entity tag is also added as an 'ETag' response header to requests that do not use the 'depth' parameter. | [optional] [readonly] | -|**CreatedDate** | Pointer to **string** | The date the resource was created. | [optional] [readonly] | -|**CreatedBy** | Pointer to **string** | The user who created the resource. | [optional] [readonly] | -|**CreatedByUserId** | Pointer to **string** | The ID of the user who created the resource. | [optional] [readonly] | -|**LastModifiedDate** | Pointer to **string** | The date when the resource was last modified. | [optional] [readonly] | -|**LastModifiedBy** | Pointer to **string** | The user who last modified the resource. | [optional] [readonly] | -|**LastModifiedByUserId** | Pointer to **string** | The ID of the user who last modified the resource. | [optional] [readonly] | -|**State** | Pointer to **string** | The resource state. | [optional] | - -## Methods - -### NewResourceMetadataDto - -`func NewResourceMetadataDto() *ResourceMetadataDto` - -NewResourceMetadataDto instantiates a new ResourceMetadataDto 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 - -### NewResourceMetadataDtoWithDefaults - -`func NewResourceMetadataDtoWithDefaults() *ResourceMetadataDto` - -NewResourceMetadataDtoWithDefaults instantiates a new ResourceMetadataDto 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 - -### GetEtag - -`func (o *ResourceMetadataDto) GetEtag() string` - -GetEtag returns the Etag field if non-nil, zero value otherwise. - -### GetEtagOk - -`func (o *ResourceMetadataDto) GetEtagOk() (*string, bool)` - -GetEtagOk returns a tuple with the Etag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEtag - -`func (o *ResourceMetadataDto) SetEtag(v string)` - -SetEtag sets Etag field to given value. - -### HasEtag - -`func (o *ResourceMetadataDto) HasEtag() bool` - -HasEtag returns a boolean if a field has been set. - -### GetCreatedDate - -`func (o *ResourceMetadataDto) GetCreatedDate() string` - -GetCreatedDate returns the CreatedDate field if non-nil, zero value otherwise. - -### GetCreatedDateOk - -`func (o *ResourceMetadataDto) GetCreatedDateOk() (*string, bool)` - -GetCreatedDateOk returns a tuple with the CreatedDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedDate - -`func (o *ResourceMetadataDto) SetCreatedDate(v string)` - -SetCreatedDate sets CreatedDate field to given value. - -### HasCreatedDate - -`func (o *ResourceMetadataDto) HasCreatedDate() bool` - -HasCreatedDate returns a boolean if a field has been set. - -### GetCreatedBy - -`func (o *ResourceMetadataDto) GetCreatedBy() string` - -GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. - -### GetCreatedByOk - -`func (o *ResourceMetadataDto) GetCreatedByOk() (*string, bool)` - -GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedBy - -`func (o *ResourceMetadataDto) SetCreatedBy(v string)` - -SetCreatedBy sets CreatedBy field to given value. - -### HasCreatedBy - -`func (o *ResourceMetadataDto) HasCreatedBy() bool` - -HasCreatedBy returns a boolean if a field has been set. - -### GetCreatedByUserId - -`func (o *ResourceMetadataDto) GetCreatedByUserId() string` - -GetCreatedByUserId returns the CreatedByUserId field if non-nil, zero value otherwise. - -### GetCreatedByUserIdOk - -`func (o *ResourceMetadataDto) GetCreatedByUserIdOk() (*string, bool)` - -GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedByUserId - -`func (o *ResourceMetadataDto) SetCreatedByUserId(v string)` - -SetCreatedByUserId sets CreatedByUserId field to given value. - -### HasCreatedByUserId - -`func (o *ResourceMetadataDto) HasCreatedByUserId() bool` - -HasCreatedByUserId returns a boolean if a field has been set. - -### GetLastModifiedDate - -`func (o *ResourceMetadataDto) GetLastModifiedDate() string` - -GetLastModifiedDate returns the LastModifiedDate field if non-nil, zero value otherwise. - -### GetLastModifiedDateOk - -`func (o *ResourceMetadataDto) GetLastModifiedDateOk() (*string, bool)` - -GetLastModifiedDateOk returns a tuple with the LastModifiedDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastModifiedDate - -`func (o *ResourceMetadataDto) SetLastModifiedDate(v string)` - -SetLastModifiedDate sets LastModifiedDate field to given value. - -### HasLastModifiedDate - -`func (o *ResourceMetadataDto) HasLastModifiedDate() bool` - -HasLastModifiedDate returns a boolean if a field has been set. - -### GetLastModifiedBy - -`func (o *ResourceMetadataDto) GetLastModifiedBy() string` - -GetLastModifiedBy returns the LastModifiedBy field if non-nil, zero value otherwise. - -### GetLastModifiedByOk - -`func (o *ResourceMetadataDto) GetLastModifiedByOk() (*string, bool)` - -GetLastModifiedByOk returns a tuple with the LastModifiedBy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastModifiedBy - -`func (o *ResourceMetadataDto) SetLastModifiedBy(v string)` - -SetLastModifiedBy sets LastModifiedBy field to given value. - -### HasLastModifiedBy - -`func (o *ResourceMetadataDto) HasLastModifiedBy() bool` - -HasLastModifiedBy returns a boolean if a field has been set. - -### GetLastModifiedByUserId - -`func (o *ResourceMetadataDto) GetLastModifiedByUserId() string` - -GetLastModifiedByUserId returns the LastModifiedByUserId field if non-nil, zero value otherwise. - -### GetLastModifiedByUserIdOk - -`func (o *ResourceMetadataDto) GetLastModifiedByUserIdOk() (*string, bool)` - -GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastModifiedByUserId - -`func (o *ResourceMetadataDto) SetLastModifiedByUserId(v string)` - -SetLastModifiedByUserId sets LastModifiedByUserId field to given value. - -### HasLastModifiedByUserId - -`func (o *ResourceMetadataDto) HasLastModifiedByUserId() bool` - -HasLastModifiedByUserId returns a boolean if a field has been set. - -### GetState - -`func (o *ResourceMetadataDto) GetState() string` - -GetState returns the State field if non-nil, zero value otherwise. - -### GetStateOk - -`func (o *ResourceMetadataDto) GetStateOk() (*string, 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 *ResourceMetadataDto) SetState(v string)` - -SetState sets State field to given value. - -### HasState - -`func (o *ResourceMetadataDto) HasState() bool` - -HasState returns a boolean if a field has been set. - - diff --git a/products/cert/docs/summary.md b/products/cert/docs/summary.md index 4e31a9f..6419b68 100644 --- a/products/cert/docs/summary.md +++ b/products/cert/docs/summary.md @@ -5,19 +5,43 @@ ## API -* [CertificatesApi](api/CertificatesApi.md) -* [InformationApi](api/InformationApi.md) +* [AutoCertificateApi](api/AutoCertificateApi.md) +* [CertificateApi](api/CertificateApi.md) +* [ProviderApi](api/ProviderApi.md) ## Models -* [ApiInfoDto](models/ApiInfoDto.md) -* [CertificateCollectionDto](models/CertificateCollectionDto.md) -* [CertificateCollectionDtoLinks](models/CertificateCollectionDtoLinks.md) -* [CertificateDto](models/CertificateDto.md) -* [CertificatePatchDto](models/CertificatePatchDto.md) -* [CertificatePatchPropertiesDto](models/CertificatePatchPropertiesDto.md) -* [CertificatePostDto](models/CertificatePostDto.md) -* [CertificatePostPropertiesDto](models/CertificatePostPropertiesDto.md) -* [CertificatePropertiesDto](models/CertificatePropertiesDto.md) -* [ConfigPropertyDto](models/ConfigPropertyDto.md) -* [ResourceMetadataDto](models/ResourceMetadataDto.md) +* [AutoCertificate](models/AutoCertificate.md) +* [AutoCertificateCreate](models/AutoCertificateCreate.md) +* [AutoCertificatePatch](models/AutoCertificatePatch.md) +* [AutoCertificateRead](models/AutoCertificateRead.md) +* [AutoCertificateReadList](models/AutoCertificateReadList.md) +* [AutoCertificateReadListAllOf](models/AutoCertificateReadListAllOf.md) +* [Certificate](models/Certificate.md) +* [CertificateCreate](models/CertificateCreate.md) +* [CertificatePatch](models/CertificatePatch.md) +* [CertificateRead](models/CertificateRead.md) +* [CertificateReadList](models/CertificateReadList.md) +* [CertificateReadListAllOf](models/CertificateReadListAllOf.md) +* [Connection](models/Connection.md) +* [DayOfTheWeek](models/DayOfTheWeek.md) +* [Error](models/Error.md) +* [ErrorMessages](models/ErrorMessages.md) +* [Links](models/Links.md) +* [MaintenanceWindow](models/MaintenanceWindow.md) +* [Metadata](models/Metadata.md) +* [MetadataWithAutoCertificateInformation](models/MetadataWithAutoCertificateInformation.md) +* [MetadataWithAutoCertificateInformationAllOf](models/MetadataWithAutoCertificateInformationAllOf.md) +* [MetadataWithCertificateInformation](models/MetadataWithCertificateInformation.md) +* [MetadataWithCertificateInformationAllOf](models/MetadataWithCertificateInformationAllOf.md) +* [MetadataWithStatus](models/MetadataWithStatus.md) +* [MetadataWithStatusAllOf](models/MetadataWithStatusAllOf.md) +* [Pagination](models/Pagination.md) +* [PatchName](models/PatchName.md) +* [Provider](models/Provider.md) +* [ProviderCreate](models/ProviderCreate.md) +* [ProviderExternalAccountBinding](models/ProviderExternalAccountBinding.md) +* [ProviderPatch](models/ProviderPatch.md) +* [ProviderRead](models/ProviderRead.md) +* [ProviderReadList](models/ProviderReadList.md) +* [ProviderReadListAllOf](models/ProviderReadListAllOf.md) diff --git a/products/cert/go.mod b/products/cert/go.mod index 7cef7d8..4a048d3 100644 --- a/products/cert/go.mod +++ b/products/cert/go.mod @@ -1,17 +1,9 @@ -module github.com/ionos-cloud/sdk-go-bundle/products/cert +module github.com/ionos-cloud/sdk-go-bundle/products/cert/v2 -go 1.19 +go 1.21 require ( - github.com/ionos-cloud/sdk-go-bundle/shared v0.1.0 - golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 + golang.org/x/oauth2 v0.21.0 + github.com/ionos-cloud/sdk-go-bundle/shared v0.1.1 ) -require ( - github.com/golang/protobuf v1.4.2 // indirect - golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect - google.golang.org/appengine v1.6.6 // indirect - google.golang.org/protobuf v1.25.0 // indirect -) - -replace github.com/ionos-cloud/sdk-go-bundle/shared => ../../shared diff --git a/products/cert/go.sum b/products/cert/go.sum index 6b0823d..e4315ee 100644 --- a/products/cert/go.sum +++ b/products/cert/go.sum @@ -1,365 +1,15 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +github.com/ionos-cloud/sdk-go-bundle/shared v0.1.1 h1:NWobgIhmUJKG6ohFXefMj+KmpEEvLYEDUgGzpns6HQE= +github.com/ionos-cloud/sdk-go-bundle/shared v0.1.1/go.mod h1:cLIl4zmB1yMdPSNgTzaRmXeuusEAY1O3Lp/iXSc/R6E= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 h1:RerP+noqYHUQ8CMRcPlC2nvTa4dcBIjegkuWdcUDuqg= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= +golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/products/cert/model_api_info_dto.go b/products/cert/model_api_info_dto.go deleted file mode 100644 index ae3f6de..0000000 --- a/products/cert/model_api_info_dto.go +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// ApiInfoDto The information about the API. -type ApiInfoDto struct { - // The API entry point. - Href *string `json:"href,omitempty"` - // The API name. - Name *string `json:"name,omitempty"` - // The API version. - Version *string `json:"version,omitempty"` -} - -// NewApiInfoDto instantiates a new ApiInfoDto 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 NewApiInfoDto() *ApiInfoDto { - this := ApiInfoDto{} - - return &this -} - -// NewApiInfoDtoWithDefaults instantiates a new ApiInfoDto 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 NewApiInfoDtoWithDefaults() *ApiInfoDto { - this := ApiInfoDto{} - return &this -} - -// GetHref returns the Href field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ApiInfoDto) GetHref() *string { - if o == nil { - return nil - } - - return o.Href - -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ApiInfoDto) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Href, true -} - -// SetHref sets field value -func (o *ApiInfoDto) SetHref(v string) { - - o.Href = &v - -} - -// HasHref returns a boolean if a field has been set. -func (o *ApiInfoDto) HasHref() bool { - if o != nil && o.Href != nil { - return true - } - - return false -} - -// GetName returns the Name field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ApiInfoDto) GetName() *string { - if o == nil { - return nil - } - - return o.Name - -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ApiInfoDto) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Name, true -} - -// SetName sets field value -func (o *ApiInfoDto) SetName(v string) { - - o.Name = &v - -} - -// HasName returns a boolean if a field has been set. -func (o *ApiInfoDto) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// GetVersion returns the Version field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ApiInfoDto) GetVersion() *string { - if o == nil { - return nil - } - - return o.Version - -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ApiInfoDto) GetVersionOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Version, true -} - -// SetVersion sets field value -func (o *ApiInfoDto) SetVersion(v string) { - - o.Version = &v - -} - -// HasVersion returns a boolean if a field has been set. -func (o *ApiInfoDto) HasVersion() bool { - if o != nil && o.Version != nil { - return true - } - - return false -} - -func (o ApiInfoDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Href != nil { - toSerialize["href"] = o.Href - } - - if o.Name != nil { - toSerialize["name"] = o.Name - } - - if o.Version != nil { - toSerialize["version"] = o.Version - } - - return json.Marshal(toSerialize) -} - -type NullableApiInfoDto struct { - value *ApiInfoDto - isSet bool -} - -func (v NullableApiInfoDto) Get() *ApiInfoDto { - return v.value -} - -func (v *NullableApiInfoDto) Set(val *ApiInfoDto) { - v.value = val - v.isSet = true -} - -func (v NullableApiInfoDto) IsSet() bool { - return v.isSet -} - -func (v *NullableApiInfoDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiInfoDto(val *ApiInfoDto) *NullableApiInfoDto { - return &NullableApiInfoDto{value: val, isSet: true} -} - -func (v NullableApiInfoDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiInfoDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_auto_certificate.go b/products/cert/model_auto_certificate.go new file mode 100644 index 0000000..8c313ae --- /dev/null +++ b/products/cert/model_auto_certificate.go @@ -0,0 +1,240 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the AutoCertificate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutoCertificate{} + +// AutoCertificate Auto certificates create new certificates based on a certificate provider. +type AutoCertificate struct { + // The certificate provider used to issue the certificates. + Provider string `json:"provider"` + // The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS. + CommonName string `json:"commonName"` + // The key algorithm used to generate the certificate. + KeyAlgorithm string `json:"keyAlgorithm"` + // A certificate name used for management purposes. + Name *string `json:"name,omitempty"` + // Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS. + SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"` +} + +// NewAutoCertificate instantiates a new AutoCertificate 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 NewAutoCertificate(provider string, commonName string, keyAlgorithm string) *AutoCertificate { + this := AutoCertificate{} + + this.Provider = provider + this.CommonName = commonName + this.KeyAlgorithm = keyAlgorithm + + return &this +} + +// NewAutoCertificateWithDefaults instantiates a new AutoCertificate 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 NewAutoCertificateWithDefaults() *AutoCertificate { + this := AutoCertificate{} + return &this +} + +// GetProvider returns the Provider field value +func (o *AutoCertificate) GetProvider() string { + if o == nil { + var ret string + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *AutoCertificate) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *AutoCertificate) SetProvider(v string) { + o.Provider = v +} + +// GetCommonName returns the CommonName field value +func (o *AutoCertificate) GetCommonName() string { + if o == nil { + var ret string + return ret + } + + return o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value +// and a boolean to check if the value has been set. +func (o *AutoCertificate) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommonName, true +} + +// SetCommonName sets field value +func (o *AutoCertificate) SetCommonName(v string) { + o.CommonName = v +} + +// GetKeyAlgorithm returns the KeyAlgorithm field value +func (o *AutoCertificate) GetKeyAlgorithm() string { + if o == nil { + var ret string + return ret + } + + return o.KeyAlgorithm +} + +// GetKeyAlgorithmOk returns a tuple with the KeyAlgorithm field value +// and a boolean to check if the value has been set. +func (o *AutoCertificate) GetKeyAlgorithmOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyAlgorithm, true +} + +// SetKeyAlgorithm sets field value +func (o *AutoCertificate) SetKeyAlgorithm(v string) { + o.KeyAlgorithm = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AutoCertificate) 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 *AutoCertificate) 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 *AutoCertificate) 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 *AutoCertificate) SetName(v string) { + o.Name = &v +} + +// GetSubjectAlternativeNames returns the SubjectAlternativeNames field value if set, zero value otherwise. +func (o *AutoCertificate) GetSubjectAlternativeNames() []string { + if o == nil || IsNil(o.SubjectAlternativeNames) { + var ret []string + return ret + } + return o.SubjectAlternativeNames +} + +// GetSubjectAlternativeNamesOk returns a tuple with the SubjectAlternativeNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoCertificate) GetSubjectAlternativeNamesOk() ([]string, bool) { + if o == nil || IsNil(o.SubjectAlternativeNames) { + return nil, false + } + return o.SubjectAlternativeNames, true +} + +// HasSubjectAlternativeNames returns a boolean if a field has been set. +func (o *AutoCertificate) HasSubjectAlternativeNames() bool { + if o != nil && !IsNil(o.SubjectAlternativeNames) { + return true + } + + return false +} + +// SetSubjectAlternativeNames gets a reference to the given []string and assigns it to the SubjectAlternativeNames field. +func (o *AutoCertificate) SetSubjectAlternativeNames(v []string) { + o.SubjectAlternativeNames = v +} + +func (o AutoCertificate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider + toSerialize["commonName"] = o.CommonName + toSerialize["keyAlgorithm"] = o.KeyAlgorithm + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.SubjectAlternativeNames) { + toSerialize["subjectAlternativeNames"] = o.SubjectAlternativeNames + } + return toSerialize, nil +} + +type NullableAutoCertificate struct { + value *AutoCertificate + isSet bool +} + +func (v NullableAutoCertificate) Get() *AutoCertificate { + return v.value +} + +func (v *NullableAutoCertificate) Set(val *AutoCertificate) { + v.value = val + v.isSet = true +} + +func (v NullableAutoCertificate) IsSet() bool { + return v.isSet +} + +func (v *NullableAutoCertificate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutoCertificate(val *AutoCertificate) *NullableAutoCertificate { + return &NullableAutoCertificate{value: val, isSet: true} +} + +func (v NullableAutoCertificate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutoCertificate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_auto_certificate_create.go b/products/cert/model_auto_certificate_create.go new file mode 100644 index 0000000..cd7bc00 --- /dev/null +++ b/products/cert/model_auto_certificate_create.go @@ -0,0 +1,146 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the AutoCertificateCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutoCertificateCreate{} + +// AutoCertificateCreate struct for AutoCertificateCreate +type AutoCertificateCreate struct { + // Metadata + Metadata map[string]interface{} `json:"metadata,omitempty"` + Properties AutoCertificate `json:"properties"` +} + +// NewAutoCertificateCreate instantiates a new AutoCertificateCreate 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 NewAutoCertificateCreate(properties AutoCertificate) *AutoCertificateCreate { + this := AutoCertificateCreate{} + + this.Properties = properties + + return &this +} + +// NewAutoCertificateCreateWithDefaults instantiates a new AutoCertificateCreate 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 NewAutoCertificateCreateWithDefaults() *AutoCertificateCreate { + this := AutoCertificateCreate{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *AutoCertificateCreate) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoCertificateCreate) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *AutoCertificateCreate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *AutoCertificateCreate) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *AutoCertificateCreate) GetProperties() AutoCertificate { + if o == nil { + var ret AutoCertificate + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateCreate) GetPropertiesOk() (*AutoCertificate, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *AutoCertificateCreate) SetProperties(v AutoCertificate) { + o.Properties = v +} + +func (o AutoCertificateCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableAutoCertificateCreate struct { + value *AutoCertificateCreate + isSet bool +} + +func (v NullableAutoCertificateCreate) Get() *AutoCertificateCreate { + return v.value +} + +func (v *NullableAutoCertificateCreate) Set(val *AutoCertificateCreate) { + v.value = val + v.isSet = true +} + +func (v NullableAutoCertificateCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableAutoCertificateCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutoCertificateCreate(val *AutoCertificateCreate) *NullableAutoCertificateCreate { + return &NullableAutoCertificateCreate{value: val, isSet: true} +} + +func (v NullableAutoCertificateCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutoCertificateCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_auto_certificate_patch.go b/products/cert/model_auto_certificate_patch.go new file mode 100644 index 0000000..a240162 --- /dev/null +++ b/products/cert/model_auto_certificate_patch.go @@ -0,0 +1,146 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the AutoCertificatePatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutoCertificatePatch{} + +// AutoCertificatePatch struct for AutoCertificatePatch +type AutoCertificatePatch struct { + // Metadata + Metadata map[string]interface{} `json:"metadata,omitempty"` + Properties PatchName `json:"properties"` +} + +// NewAutoCertificatePatch instantiates a new AutoCertificatePatch 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 NewAutoCertificatePatch(properties PatchName) *AutoCertificatePatch { + this := AutoCertificatePatch{} + + this.Properties = properties + + return &this +} + +// NewAutoCertificatePatchWithDefaults instantiates a new AutoCertificatePatch 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 NewAutoCertificatePatchWithDefaults() *AutoCertificatePatch { + this := AutoCertificatePatch{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *AutoCertificatePatch) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoCertificatePatch) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *AutoCertificatePatch) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *AutoCertificatePatch) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *AutoCertificatePatch) GetProperties() PatchName { + if o == nil { + var ret PatchName + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *AutoCertificatePatch) GetPropertiesOk() (*PatchName, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *AutoCertificatePatch) SetProperties(v PatchName) { + o.Properties = v +} + +func (o AutoCertificatePatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableAutoCertificatePatch struct { + value *AutoCertificatePatch + isSet bool +} + +func (v NullableAutoCertificatePatch) Get() *AutoCertificatePatch { + return v.value +} + +func (v *NullableAutoCertificatePatch) Set(val *AutoCertificatePatch) { + v.value = val + v.isSet = true +} + +func (v NullableAutoCertificatePatch) IsSet() bool { + return v.isSet +} + +func (v *NullableAutoCertificatePatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutoCertificatePatch(val *AutoCertificatePatch) *NullableAutoCertificatePatch { + return &NullableAutoCertificatePatch{value: val, isSet: true} +} + +func (v NullableAutoCertificatePatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutoCertificatePatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_auto_certificate_read.go b/products/cert/model_auto_certificate_read.go new file mode 100644 index 0000000..2bb2f44 --- /dev/null +++ b/products/cert/model_auto_certificate_read.go @@ -0,0 +1,220 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the AutoCertificateRead type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutoCertificateRead{} + +// AutoCertificateRead struct for AutoCertificateRead +type AutoCertificateRead struct { + // The ID (UUID) of the AutoCertificate. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the AutoCertificate. + Href string `json:"href"` + Metadata MetadataWithAutoCertificateInformation `json:"metadata"` + Properties AutoCertificate `json:"properties"` +} + +// NewAutoCertificateRead instantiates a new AutoCertificateRead 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 NewAutoCertificateRead(id string, type_ string, href string, metadata MetadataWithAutoCertificateInformation, properties AutoCertificate) *AutoCertificateRead { + this := AutoCertificateRead{} + + this.Id = id + this.Type = type_ + this.Href = href + this.Metadata = metadata + this.Properties = properties + + return &this +} + +// NewAutoCertificateReadWithDefaults instantiates a new AutoCertificateRead 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 NewAutoCertificateReadWithDefaults() *AutoCertificateRead { + this := AutoCertificateRead{} + return &this +} + +// GetId returns the Id field value +func (o *AutoCertificateRead) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateRead) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AutoCertificateRead) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *AutoCertificateRead) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateRead) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AutoCertificateRead) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *AutoCertificateRead) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateRead) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *AutoCertificateRead) SetHref(v string) { + o.Href = v +} + +// GetMetadata returns the Metadata field value +func (o *AutoCertificateRead) GetMetadata() MetadataWithAutoCertificateInformation { + if o == nil { + var ret MetadataWithAutoCertificateInformation + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateRead) GetMetadataOk() (*MetadataWithAutoCertificateInformation, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *AutoCertificateRead) SetMetadata(v MetadataWithAutoCertificateInformation) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *AutoCertificateRead) GetProperties() AutoCertificate { + if o == nil { + var ret AutoCertificate + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateRead) GetPropertiesOk() (*AutoCertificate, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *AutoCertificateRead) SetProperties(v AutoCertificate) { + o.Properties = v +} + +func (o AutoCertificateRead) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + toSerialize["metadata"] = o.Metadata + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableAutoCertificateRead struct { + value *AutoCertificateRead + isSet bool +} + +func (v NullableAutoCertificateRead) Get() *AutoCertificateRead { + return v.value +} + +func (v *NullableAutoCertificateRead) Set(val *AutoCertificateRead) { + v.value = val + v.isSet = true +} + +func (v NullableAutoCertificateRead) IsSet() bool { + return v.isSet +} + +func (v *NullableAutoCertificateRead) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutoCertificateRead(val *AutoCertificateRead) *NullableAutoCertificateRead { + return &NullableAutoCertificateRead{value: val, isSet: true} +} + +func (v NullableAutoCertificateRead) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutoCertificateRead) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_auto_certificate_read_list.go b/products/cert/model_auto_certificate_read_list.go new file mode 100644 index 0000000..14c5ab6 --- /dev/null +++ b/products/cert/model_auto_certificate_read_list.go @@ -0,0 +1,286 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the AutoCertificateReadList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutoCertificateReadList{} + +// AutoCertificateReadList struct for AutoCertificateReadList +type AutoCertificateReadList struct { + // ID of the list of AutoCertificate resources. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the list of AutoCertificate resources. + Href string `json:"href"` + // The list of AutoCertificate resources. + Items []AutoCertificateRead `json:"items,omitempty"` + // The offset specified in the request (if none was specified, the default offset is 0). + Offset int32 `json:"offset"` + // The limit specified in the request (if none was specified, use the endpoint's default pagination limit). + Limit int32 `json:"limit"` + Links Links `json:"_links"` +} + +// NewAutoCertificateReadList instantiates a new AutoCertificateReadList 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 NewAutoCertificateReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *AutoCertificateReadList { + this := AutoCertificateReadList{} + + this.Id = id + this.Type = type_ + this.Href = href + this.Offset = offset + this.Limit = limit + this.Links = links + + return &this +} + +// NewAutoCertificateReadListWithDefaults instantiates a new AutoCertificateReadList 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 NewAutoCertificateReadListWithDefaults() *AutoCertificateReadList { + this := AutoCertificateReadList{} + return &this +} + +// GetId returns the Id field value +func (o *AutoCertificateReadList) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadList) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AutoCertificateReadList) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *AutoCertificateReadList) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadList) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AutoCertificateReadList) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *AutoCertificateReadList) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadList) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *AutoCertificateReadList) SetHref(v string) { + o.Href = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *AutoCertificateReadList) GetItems() []AutoCertificateRead { + if o == nil || IsNil(o.Items) { + var ret []AutoCertificateRead + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadList) GetItemsOk() ([]AutoCertificateRead, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *AutoCertificateReadList) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []AutoCertificateRead and assigns it to the Items field. +func (o *AutoCertificateReadList) SetItems(v []AutoCertificateRead) { + o.Items = v +} + +// GetOffset returns the Offset field value +func (o *AutoCertificateReadList) GetOffset() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadList) GetOffsetOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *AutoCertificateReadList) SetOffset(v int32) { + o.Offset = v +} + +// GetLimit returns the Limit field value +func (o *AutoCertificateReadList) GetLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadList) GetLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *AutoCertificateReadList) SetLimit(v int32) { + o.Limit = v +} + +// GetLinks returns the Links field value +func (o *AutoCertificateReadList) GetLinks() Links { + if o == nil { + var ret Links + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadList) GetLinksOk() (*Links, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *AutoCertificateReadList) SetLinks(v Links) { + o.Links = v +} + +func (o AutoCertificateReadList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + toSerialize["offset"] = o.Offset + toSerialize["limit"] = o.Limit + toSerialize["_links"] = o.Links + return toSerialize, nil +} + +type NullableAutoCertificateReadList struct { + value *AutoCertificateReadList + isSet bool +} + +func (v NullableAutoCertificateReadList) Get() *AutoCertificateReadList { + return v.value +} + +func (v *NullableAutoCertificateReadList) Set(val *AutoCertificateReadList) { + v.value = val + v.isSet = true +} + +func (v NullableAutoCertificateReadList) IsSet() bool { + return v.isSet +} + +func (v *NullableAutoCertificateReadList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutoCertificateReadList(val *AutoCertificateReadList) *NullableAutoCertificateReadList { + return &NullableAutoCertificateReadList{value: val, isSet: true} +} + +func (v NullableAutoCertificateReadList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutoCertificateReadList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_auto_certificate_read_list_all_of.go b/products/cert/model_auto_certificate_read_list_all_of.go new file mode 100644 index 0000000..1d0344c --- /dev/null +++ b/products/cert/model_auto_certificate_read_list_all_of.go @@ -0,0 +1,203 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the AutoCertificateReadListAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutoCertificateReadListAllOf{} + +// AutoCertificateReadListAllOf struct for AutoCertificateReadListAllOf +type AutoCertificateReadListAllOf struct { + // ID of the list of AutoCertificate resources. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the list of AutoCertificate resources. + Href string `json:"href"` + // The list of AutoCertificate resources. + Items []AutoCertificateRead `json:"items,omitempty"` +} + +// NewAutoCertificateReadListAllOf instantiates a new AutoCertificateReadListAllOf 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 NewAutoCertificateReadListAllOf(id string, type_ string, href string) *AutoCertificateReadListAllOf { + this := AutoCertificateReadListAllOf{} + + this.Id = id + this.Type = type_ + this.Href = href + + return &this +} + +// NewAutoCertificateReadListAllOfWithDefaults instantiates a new AutoCertificateReadListAllOf 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 NewAutoCertificateReadListAllOfWithDefaults() *AutoCertificateReadListAllOf { + this := AutoCertificateReadListAllOf{} + return &this +} + +// GetId returns the Id field value +func (o *AutoCertificateReadListAllOf) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadListAllOf) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AutoCertificateReadListAllOf) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *AutoCertificateReadListAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadListAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AutoCertificateReadListAllOf) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *AutoCertificateReadListAllOf) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadListAllOf) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *AutoCertificateReadListAllOf) SetHref(v string) { + o.Href = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *AutoCertificateReadListAllOf) GetItems() []AutoCertificateRead { + if o == nil || IsNil(o.Items) { + var ret []AutoCertificateRead + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoCertificateReadListAllOf) GetItemsOk() ([]AutoCertificateRead, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *AutoCertificateReadListAllOf) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []AutoCertificateRead and assigns it to the Items field. +func (o *AutoCertificateReadListAllOf) SetItems(v []AutoCertificateRead) { + o.Items = v +} + +func (o AutoCertificateReadListAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + return toSerialize, nil +} + +type NullableAutoCertificateReadListAllOf struct { + value *AutoCertificateReadListAllOf + isSet bool +} + +func (v NullableAutoCertificateReadListAllOf) Get() *AutoCertificateReadListAllOf { + return v.value +} + +func (v *NullableAutoCertificateReadListAllOf) Set(val *AutoCertificateReadListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAutoCertificateReadListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAutoCertificateReadListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutoCertificateReadListAllOf(val *AutoCertificateReadListAllOf) *NullableAutoCertificateReadListAllOf { + return &NullableAutoCertificateReadListAllOf{value: val, isSet: true} +} + +func (v NullableAutoCertificateReadListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutoCertificateReadListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_certificate.go b/products/cert/model_certificate.go new file mode 100644 index 0000000..0f2cee0 --- /dev/null +++ b/products/cert/model_certificate.go @@ -0,0 +1,194 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the Certificate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Certificate{} + +// Certificate TLS/SSL certificates are used to secure network communications and prove the identity of websites on the Internet and resources on private networks. The certificates and their associated private keys are provided in PEM (Privacy Enhanced Mail) format. +type Certificate struct { + // The certificate name. + Name string `json:"name"` + // The certificate body. + Certificate string `json:"certificate"` + // The certificate chain. + CertificateChain string `json:"certificateChain"` + // The RSA private key is used for authentication and symmetric key exchange when establishing an SSL session. It is a part of the public key infrastructure generally used with SSL certificates. + PrivateKey string `json:"privateKey"` +} + +// NewCertificate instantiates a new Certificate 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 NewCertificate(name string, certificate string, certificateChain string, privateKey string) *Certificate { + this := Certificate{} + + this.Name = name + this.Certificate = certificate + this.CertificateChain = certificateChain + this.PrivateKey = privateKey + + return &this +} + +// NewCertificateWithDefaults instantiates a new Certificate 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 NewCertificateWithDefaults() *Certificate { + this := Certificate{} + return &this +} + +// GetName returns the Name field value +func (o *Certificate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Certificate) SetName(v string) { + o.Name = v +} + +// GetCertificate returns the Certificate field value +func (o *Certificate) GetCertificate() string { + if o == nil { + var ret string + return ret + } + + return o.Certificate +} + +// GetCertificateOk returns a tuple with the Certificate field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetCertificateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Certificate, true +} + +// SetCertificate sets field value +func (o *Certificate) SetCertificate(v string) { + o.Certificate = v +} + +// GetCertificateChain returns the CertificateChain field value +func (o *Certificate) GetCertificateChain() string { + if o == nil { + var ret string + return ret + } + + return o.CertificateChain +} + +// GetCertificateChainOk returns a tuple with the CertificateChain field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetCertificateChainOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertificateChain, true +} + +// SetCertificateChain sets field value +func (o *Certificate) SetCertificateChain(v string) { + o.CertificateChain = v +} + +// GetPrivateKey returns the PrivateKey field value +func (o *Certificate) GetPrivateKey() string { + if o == nil { + var ret string + return ret + } + + return o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrivateKey, true +} + +// SetPrivateKey sets field value +func (o *Certificate) SetPrivateKey(v string) { + o.PrivateKey = v +} + +func (o Certificate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["certificate"] = o.Certificate + toSerialize["certificateChain"] = o.CertificateChain + toSerialize["privateKey"] = o.PrivateKey + return toSerialize, nil +} + +type NullableCertificate struct { + value *Certificate + isSet bool +} + +func (v NullableCertificate) Get() *Certificate { + return v.value +} + +func (v *NullableCertificate) Set(val *Certificate) { + v.value = val + v.isSet = true +} + +func (v NullableCertificate) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificate(val *Certificate) *NullableCertificate { + return &NullableCertificate{value: val, isSet: true} +} + +func (v NullableCertificate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_certificate_collection_dto.go b/products/cert/model_certificate_collection_dto.go deleted file mode 100644 index e0f687d..0000000 --- a/products/cert/model_certificate_collection_dto.go +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificateCollectionDto A collection of certificates. -type CertificateCollectionDto struct { - // The resource ID. - Id *string `json:"id,omitempty"` - // The resource type. - Type *string `json:"type,omitempty"` - // The URL to the object representation (absolute path). - Href *string `json:"href,omitempty"` - // The list of certificates. - Items *[]CertificateDto `json:"items,omitempty"` - // The pagination offset. - Offset *int32 `json:"offset,omitempty"` - // The pagination limit. - Limit *int32 `json:"limit,omitempty"` - Links *CertificateCollectionDtoLinks `json:"_links,omitempty"` -} - -// NewCertificateCollectionDto instantiates a new CertificateCollectionDto 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 NewCertificateCollectionDto() *CertificateCollectionDto { - this := CertificateCollectionDto{} - - return &this -} - -// NewCertificateCollectionDtoWithDefaults instantiates a new CertificateCollectionDto 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 NewCertificateCollectionDtoWithDefaults() *CertificateCollectionDto { - this := CertificateCollectionDto{} - return &this -} - -// GetId returns the Id field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateCollectionDto) GetId() *string { - if o == nil { - return nil - } - - return o.Id - -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDto) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Id, true -} - -// SetId sets field value -func (o *CertificateCollectionDto) SetId(v string) { - - o.Id = &v - -} - -// HasId returns a boolean if a field has been set. -func (o *CertificateCollectionDto) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// GetType returns the Type field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateCollectionDto) GetType() *string { - if o == nil { - return nil - } - - return o.Type - -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDto) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Type, true -} - -// SetType sets field value -func (o *CertificateCollectionDto) SetType(v string) { - - o.Type = &v - -} - -// HasType returns a boolean if a field has been set. -func (o *CertificateCollectionDto) HasType() bool { - if o != nil && o.Type != nil { - return true - } - - return false -} - -// GetHref returns the Href field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateCollectionDto) GetHref() *string { - if o == nil { - return nil - } - - return o.Href - -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDto) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Href, true -} - -// SetHref sets field value -func (o *CertificateCollectionDto) SetHref(v string) { - - o.Href = &v - -} - -// HasHref returns a boolean if a field has been set. -func (o *CertificateCollectionDto) HasHref() bool { - if o != nil && o.Href != nil { - return true - } - - return false -} - -// GetItems returns the Items field value -// If the value is explicit nil, the zero value for []CertificateDto will be returned -func (o *CertificateCollectionDto) GetItems() *[]CertificateDto { - if o == nil { - return nil - } - - return o.Items - -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDto) GetItemsOk() (*[]CertificateDto, bool) { - if o == nil { - return nil, false - } - - return o.Items, true -} - -// SetItems sets field value -func (o *CertificateCollectionDto) SetItems(v []CertificateDto) { - - o.Items = &v - -} - -// HasItems returns a boolean if a field has been set. -func (o *CertificateCollectionDto) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// GetOffset returns the Offset field value -// If the value is explicit nil, the zero value for int32 will be returned -func (o *CertificateCollectionDto) GetOffset() *int32 { - if o == nil { - return nil - } - - return o.Offset - -} - -// GetOffsetOk returns a tuple with the Offset field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDto) GetOffsetOk() (*int32, bool) { - if o == nil { - return nil, false - } - - return o.Offset, true -} - -// SetOffset sets field value -func (o *CertificateCollectionDto) SetOffset(v int32) { - - o.Offset = &v - -} - -// HasOffset returns a boolean if a field has been set. -func (o *CertificateCollectionDto) HasOffset() bool { - if o != nil && o.Offset != nil { - return true - } - - return false -} - -// GetLimit returns the Limit field value -// If the value is explicit nil, the zero value for int32 will be returned -func (o *CertificateCollectionDto) GetLimit() *int32 { - if o == nil { - return nil - } - - return o.Limit - -} - -// GetLimitOk returns a tuple with the Limit field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDto) GetLimitOk() (*int32, bool) { - if o == nil { - return nil, false - } - - return o.Limit, true -} - -// SetLimit sets field value -func (o *CertificateCollectionDto) SetLimit(v int32) { - - o.Limit = &v - -} - -// HasLimit returns a boolean if a field has been set. -func (o *CertificateCollectionDto) HasLimit() bool { - if o != nil && o.Limit != nil { - return true - } - - return false -} - -// GetLinks returns the Links field value -// If the value is explicit nil, the zero value for CertificateCollectionDtoLinks will be returned -func (o *CertificateCollectionDto) GetLinks() *CertificateCollectionDtoLinks { - if o == nil { - return nil - } - - return o.Links - -} - -// GetLinksOk returns a tuple with the Links field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDto) GetLinksOk() (*CertificateCollectionDtoLinks, bool) { - if o == nil { - return nil, false - } - - return o.Links, true -} - -// SetLinks sets field value -func (o *CertificateCollectionDto) SetLinks(v CertificateCollectionDtoLinks) { - - o.Links = &v - -} - -// HasLinks returns a boolean if a field has been set. -func (o *CertificateCollectionDto) HasLinks() bool { - if o != nil && o.Links != nil { - return true - } - - return false -} - -func (o CertificateCollectionDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Id != nil { - toSerialize["id"] = o.Id - } - - if o.Type != nil { - toSerialize["type"] = o.Type - } - - if o.Href != nil { - toSerialize["href"] = o.Href - } - - if o.Items != nil { - toSerialize["items"] = o.Items - } - - if o.Offset != nil { - toSerialize["offset"] = o.Offset - } - - if o.Limit != nil { - toSerialize["limit"] = o.Limit - } - - if o.Links != nil { - toSerialize["_links"] = o.Links - } - - return json.Marshal(toSerialize) -} - -type NullableCertificateCollectionDto struct { - value *CertificateCollectionDto - isSet bool -} - -func (v NullableCertificateCollectionDto) Get() *CertificateCollectionDto { - return v.value -} - -func (v *NullableCertificateCollectionDto) Set(val *CertificateCollectionDto) { - v.value = val - v.isSet = true -} - -func (v NullableCertificateCollectionDto) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificateCollectionDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificateCollectionDto(val *CertificateCollectionDto) *NullableCertificateCollectionDto { - return &NullableCertificateCollectionDto{value: val, isSet: true} -} - -func (v NullableCertificateCollectionDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificateCollectionDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_collection_dto__links.go b/products/cert/model_certificate_collection_dto__links.go deleted file mode 100644 index 1b2c520..0000000 --- a/products/cert/model_certificate_collection_dto__links.go +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificateCollectionDtoLinks struct for CertificateCollectionDtoLinks -type CertificateCollectionDtoLinks struct { - // The previous page. - Prev *string `json:"prev,omitempty"` - // The current page. - Self *string `json:"self,omitempty"` - // The next page. - Next *string `json:"next,omitempty"` -} - -// NewCertificateCollectionDtoLinks instantiates a new CertificateCollectionDtoLinks 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 NewCertificateCollectionDtoLinks() *CertificateCollectionDtoLinks { - this := CertificateCollectionDtoLinks{} - - return &this -} - -// NewCertificateCollectionDtoLinksWithDefaults instantiates a new CertificateCollectionDtoLinks 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 NewCertificateCollectionDtoLinksWithDefaults() *CertificateCollectionDtoLinks { - this := CertificateCollectionDtoLinks{} - return &this -} - -// GetPrev returns the Prev field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateCollectionDtoLinks) GetPrev() *string { - if o == nil { - return nil - } - - return o.Prev - -} - -// GetPrevOk returns a tuple with the Prev field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDtoLinks) GetPrevOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Prev, true -} - -// SetPrev sets field value -func (o *CertificateCollectionDtoLinks) SetPrev(v string) { - - o.Prev = &v - -} - -// HasPrev returns a boolean if a field has been set. -func (o *CertificateCollectionDtoLinks) HasPrev() bool { - if o != nil && o.Prev != nil { - return true - } - - return false -} - -// GetSelf returns the Self field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateCollectionDtoLinks) GetSelf() *string { - if o == nil { - return nil - } - - return o.Self - -} - -// GetSelfOk returns a tuple with the Self field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDtoLinks) GetSelfOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Self, true -} - -// SetSelf sets field value -func (o *CertificateCollectionDtoLinks) SetSelf(v string) { - - o.Self = &v - -} - -// HasSelf returns a boolean if a field has been set. -func (o *CertificateCollectionDtoLinks) HasSelf() bool { - if o != nil && o.Self != nil { - return true - } - - return false -} - -// GetNext returns the Next field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateCollectionDtoLinks) GetNext() *string { - if o == nil { - return nil - } - - return o.Next - -} - -// GetNextOk returns a tuple with the Next field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateCollectionDtoLinks) GetNextOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Next, true -} - -// SetNext sets field value -func (o *CertificateCollectionDtoLinks) SetNext(v string) { - - o.Next = &v - -} - -// HasNext returns a boolean if a field has been set. -func (o *CertificateCollectionDtoLinks) HasNext() bool { - if o != nil && o.Next != nil { - return true - } - - return false -} - -func (o CertificateCollectionDtoLinks) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Prev != nil { - toSerialize["prev"] = o.Prev - } - - if o.Self != nil { - toSerialize["self"] = o.Self - } - - if o.Next != nil { - toSerialize["next"] = o.Next - } - - return json.Marshal(toSerialize) -} - -type NullableCertificateCollectionDtoLinks struct { - value *CertificateCollectionDtoLinks - isSet bool -} - -func (v NullableCertificateCollectionDtoLinks) Get() *CertificateCollectionDtoLinks { - return v.value -} - -func (v *NullableCertificateCollectionDtoLinks) Set(val *CertificateCollectionDtoLinks) { - v.value = val - v.isSet = true -} - -func (v NullableCertificateCollectionDtoLinks) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificateCollectionDtoLinks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificateCollectionDtoLinks(val *CertificateCollectionDtoLinks) *NullableCertificateCollectionDtoLinks { - return &NullableCertificateCollectionDtoLinks{value: val, isSet: true} -} - -func (v NullableCertificateCollectionDtoLinks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificateCollectionDtoLinks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_create.go b/products/cert/model_certificate_create.go new file mode 100644 index 0000000..c98873b --- /dev/null +++ b/products/cert/model_certificate_create.go @@ -0,0 +1,146 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the CertificateCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCreate{} + +// CertificateCreate struct for CertificateCreate +type CertificateCreate struct { + // Metadata + Metadata map[string]interface{} `json:"metadata,omitempty"` + Properties Certificate `json:"properties"` +} + +// NewCertificateCreate instantiates a new CertificateCreate 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 NewCertificateCreate(properties Certificate) *CertificateCreate { + this := CertificateCreate{} + + this.Properties = properties + + return &this +} + +// NewCertificateCreateWithDefaults instantiates a new CertificateCreate 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 NewCertificateCreateWithDefaults() *CertificateCreate { + this := CertificateCreate{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *CertificateCreate) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCreate) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CertificateCreate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *CertificateCreate) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *CertificateCreate) GetProperties() Certificate { + if o == nil { + var ret Certificate + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *CertificateCreate) GetPropertiesOk() (*Certificate, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *CertificateCreate) SetProperties(v Certificate) { + o.Properties = v +} + +func (o CertificateCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableCertificateCreate struct { + value *CertificateCreate + isSet bool +} + +func (v NullableCertificateCreate) Get() *CertificateCreate { + return v.value +} + +func (v *NullableCertificateCreate) Set(val *CertificateCreate) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCreate(val *CertificateCreate) *NullableCertificateCreate { + return &NullableCertificateCreate{value: val, isSet: true} +} + +func (v NullableCertificateCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_certificate_dto.go b/products/cert/model_certificate_dto.go deleted file mode 100644 index 15d29d3..0000000 --- a/products/cert/model_certificate_dto.go +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificateDto The certificate information. -type CertificateDto struct { - // The certificate ID. - Id *string `json:"id,omitempty"` - // The resource type. - Type *string `json:"type,omitempty"` - // The URL to the object representation (absolute path). - Href *string `json:"href,omitempty"` - Metadata *ResourceMetadataDto `json:"metadata,omitempty"` - Properties *CertificatePropertiesDto `json:"properties,omitempty"` -} - -// NewCertificateDto instantiates a new CertificateDto 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 NewCertificateDto() *CertificateDto { - this := CertificateDto{} - - return &this -} - -// NewCertificateDtoWithDefaults instantiates a new CertificateDto 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 NewCertificateDtoWithDefaults() *CertificateDto { - this := CertificateDto{} - return &this -} - -// GetId returns the Id field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateDto) GetId() *string { - if o == nil { - return nil - } - - return o.Id - -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateDto) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Id, true -} - -// SetId sets field value -func (o *CertificateDto) SetId(v string) { - - o.Id = &v - -} - -// HasId returns a boolean if a field has been set. -func (o *CertificateDto) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// GetType returns the Type field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateDto) GetType() *string { - if o == nil { - return nil - } - - return o.Type - -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateDto) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Type, true -} - -// SetType sets field value -func (o *CertificateDto) SetType(v string) { - - o.Type = &v - -} - -// HasType returns a boolean if a field has been set. -func (o *CertificateDto) HasType() bool { - if o != nil && o.Type != nil { - return true - } - - return false -} - -// GetHref returns the Href field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificateDto) GetHref() *string { - if o == nil { - return nil - } - - return o.Href - -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateDto) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Href, true -} - -// SetHref sets field value -func (o *CertificateDto) SetHref(v string) { - - o.Href = &v - -} - -// HasHref returns a boolean if a field has been set. -func (o *CertificateDto) HasHref() bool { - if o != nil && o.Href != nil { - return true - } - - return false -} - -// GetMetadata returns the Metadata field value -// If the value is explicit nil, the zero value for ResourceMetadataDto will be returned -func (o *CertificateDto) GetMetadata() *ResourceMetadataDto { - if o == nil { - return nil - } - - return o.Metadata - -} - -// GetMetadataOk returns a tuple with the Metadata field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateDto) GetMetadataOk() (*ResourceMetadataDto, bool) { - if o == nil { - return nil, false - } - - return o.Metadata, true -} - -// SetMetadata sets field value -func (o *CertificateDto) SetMetadata(v ResourceMetadataDto) { - - o.Metadata = &v - -} - -// HasMetadata returns a boolean if a field has been set. -func (o *CertificateDto) HasMetadata() bool { - if o != nil && o.Metadata != nil { - return true - } - - return false -} - -// GetProperties returns the Properties field value -// If the value is explicit nil, the zero value for CertificatePropertiesDto will be returned -func (o *CertificateDto) GetProperties() *CertificatePropertiesDto { - if o == nil { - return nil - } - - return o.Properties - -} - -// GetPropertiesOk returns a tuple with the Properties field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificateDto) GetPropertiesOk() (*CertificatePropertiesDto, bool) { - if o == nil { - return nil, false - } - - return o.Properties, true -} - -// SetProperties sets field value -func (o *CertificateDto) SetProperties(v CertificatePropertiesDto) { - - o.Properties = &v - -} - -// HasProperties returns a boolean if a field has been set. -func (o *CertificateDto) HasProperties() bool { - if o != nil && o.Properties != nil { - return true - } - - return false -} - -func (o CertificateDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Id != nil { - toSerialize["id"] = o.Id - } - - if o.Type != nil { - toSerialize["type"] = o.Type - } - - if o.Href != nil { - toSerialize["href"] = o.Href - } - - if o.Metadata != nil { - toSerialize["metadata"] = o.Metadata - } - - if o.Properties != nil { - toSerialize["properties"] = o.Properties - } - - return json.Marshal(toSerialize) -} - -type NullableCertificateDto struct { - value *CertificateDto - isSet bool -} - -func (v NullableCertificateDto) Get() *CertificateDto { - return v.value -} - -func (v *NullableCertificateDto) Set(val *CertificateDto) { - v.value = val - v.isSet = true -} - -func (v NullableCertificateDto) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificateDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificateDto(val *CertificateDto) *NullableCertificateDto { - return &NullableCertificateDto{value: val, isSet: true} -} - -func (v NullableCertificateDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificateDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_patch.go b/products/cert/model_certificate_patch.go new file mode 100644 index 0000000..5ecacc4 --- /dev/null +++ b/products/cert/model_certificate_patch.go @@ -0,0 +1,146 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the CertificatePatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatePatch{} + +// CertificatePatch struct for CertificatePatch +type CertificatePatch struct { + // Metadata + Metadata map[string]interface{} `json:"metadata,omitempty"` + Properties PatchName `json:"properties"` +} + +// NewCertificatePatch instantiates a new CertificatePatch 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 NewCertificatePatch(properties PatchName) *CertificatePatch { + this := CertificatePatch{} + + this.Properties = properties + + return &this +} + +// NewCertificatePatchWithDefaults instantiates a new CertificatePatch 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 NewCertificatePatchWithDefaults() *CertificatePatch { + this := CertificatePatch{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *CertificatePatch) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatePatch) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CertificatePatch) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *CertificatePatch) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *CertificatePatch) GetProperties() PatchName { + if o == nil { + var ret PatchName + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *CertificatePatch) GetPropertiesOk() (*PatchName, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *CertificatePatch) SetProperties(v PatchName) { + o.Properties = v +} + +func (o CertificatePatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableCertificatePatch struct { + value *CertificatePatch + isSet bool +} + +func (v NullableCertificatePatch) Get() *CertificatePatch { + return v.value +} + +func (v *NullableCertificatePatch) Set(val *CertificatePatch) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatePatch) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatePatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatePatch(val *CertificatePatch) *NullableCertificatePatch { + return &NullableCertificatePatch{value: val, isSet: true} +} + +func (v NullableCertificatePatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatePatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_certificate_patch_dto.go b/products/cert/model_certificate_patch_dto.go deleted file mode 100644 index 2a751a7..0000000 --- a/products/cert/model_certificate_patch_dto.go +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificatePatchDto Used to patch a certificate's name. -type CertificatePatchDto struct { - Properties *CertificatePatchPropertiesDto `json:"properties"` -} - -// NewCertificatePatchDto instantiates a new CertificatePatchDto 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 NewCertificatePatchDto(properties CertificatePatchPropertiesDto) *CertificatePatchDto { - this := CertificatePatchDto{} - - this.Properties = &properties - - return &this -} - -// NewCertificatePatchDtoWithDefaults instantiates a new CertificatePatchDto 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 NewCertificatePatchDtoWithDefaults() *CertificatePatchDto { - this := CertificatePatchDto{} - return &this -} - -// GetProperties returns the Properties field value -// If the value is explicit nil, the zero value for CertificatePatchPropertiesDto will be returned -func (o *CertificatePatchDto) GetProperties() *CertificatePatchPropertiesDto { - if o == nil { - return nil - } - - return o.Properties - -} - -// GetPropertiesOk returns a tuple with the Properties field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePatchDto) GetPropertiesOk() (*CertificatePatchPropertiesDto, bool) { - if o == nil { - return nil, false - } - - return o.Properties, true -} - -// SetProperties sets field value -func (o *CertificatePatchDto) SetProperties(v CertificatePatchPropertiesDto) { - - o.Properties = &v - -} - -// HasProperties returns a boolean if a field has been set. -func (o *CertificatePatchDto) HasProperties() bool { - if o != nil && o.Properties != nil { - return true - } - - return false -} - -func (o CertificatePatchDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Properties != nil { - toSerialize["properties"] = o.Properties - } - - return json.Marshal(toSerialize) -} - -type NullableCertificatePatchDto struct { - value *CertificatePatchDto - isSet bool -} - -func (v NullableCertificatePatchDto) Get() *CertificatePatchDto { - return v.value -} - -func (v *NullableCertificatePatchDto) Set(val *CertificatePatchDto) { - v.value = val - v.isSet = true -} - -func (v NullableCertificatePatchDto) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificatePatchDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificatePatchDto(val *CertificatePatchDto) *NullableCertificatePatchDto { - return &NullableCertificatePatchDto{value: val, isSet: true} -} - -func (v NullableCertificatePatchDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificatePatchDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_patch_properties_dto.go b/products/cert/model_certificate_patch_properties_dto.go deleted file mode 100644 index 4af8dad..0000000 --- a/products/cert/model_certificate_patch_properties_dto.go +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificatePatchPropertiesDto struct for CertificatePatchPropertiesDto -type CertificatePatchPropertiesDto struct { - // The certificate name. - Name *string `json:"name"` -} - -// NewCertificatePatchPropertiesDto instantiates a new CertificatePatchPropertiesDto 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 NewCertificatePatchPropertiesDto(name string) *CertificatePatchPropertiesDto { - this := CertificatePatchPropertiesDto{} - - this.Name = &name - - return &this -} - -// NewCertificatePatchPropertiesDtoWithDefaults instantiates a new CertificatePatchPropertiesDto 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 NewCertificatePatchPropertiesDtoWithDefaults() *CertificatePatchPropertiesDto { - this := CertificatePatchPropertiesDto{} - return &this -} - -// GetName returns the Name field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePatchPropertiesDto) GetName() *string { - if o == nil { - return nil - } - - return o.Name - -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePatchPropertiesDto) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Name, true -} - -// SetName sets field value -func (o *CertificatePatchPropertiesDto) SetName(v string) { - - o.Name = &v - -} - -// HasName returns a boolean if a field has been set. -func (o *CertificatePatchPropertiesDto) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -func (o CertificatePatchPropertiesDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Name != nil { - toSerialize["name"] = o.Name - } - - return json.Marshal(toSerialize) -} - -type NullableCertificatePatchPropertiesDto struct { - value *CertificatePatchPropertiesDto - isSet bool -} - -func (v NullableCertificatePatchPropertiesDto) Get() *CertificatePatchPropertiesDto { - return v.value -} - -func (v *NullableCertificatePatchPropertiesDto) Set(val *CertificatePatchPropertiesDto) { - v.value = val - v.isSet = true -} - -func (v NullableCertificatePatchPropertiesDto) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificatePatchPropertiesDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificatePatchPropertiesDto(val *CertificatePatchPropertiesDto) *NullableCertificatePatchPropertiesDto { - return &NullableCertificatePatchPropertiesDto{value: val, isSet: true} -} - -func (v NullableCertificatePatchPropertiesDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificatePatchPropertiesDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_post_dto.go b/products/cert/model_certificate_post_dto.go deleted file mode 100644 index 32747d4..0000000 --- a/products/cert/model_certificate_post_dto.go +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificatePostDto Used to create a new certificate. -type CertificatePostDto struct { - Properties *CertificatePostPropertiesDto `json:"properties"` -} - -// NewCertificatePostDto instantiates a new CertificatePostDto 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 NewCertificatePostDto(properties CertificatePostPropertiesDto) *CertificatePostDto { - this := CertificatePostDto{} - - this.Properties = &properties - - return &this -} - -// NewCertificatePostDtoWithDefaults instantiates a new CertificatePostDto 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 NewCertificatePostDtoWithDefaults() *CertificatePostDto { - this := CertificatePostDto{} - return &this -} - -// GetProperties returns the Properties field value -// If the value is explicit nil, the zero value for CertificatePostPropertiesDto will be returned -func (o *CertificatePostDto) GetProperties() *CertificatePostPropertiesDto { - if o == nil { - return nil - } - - return o.Properties - -} - -// GetPropertiesOk returns a tuple with the Properties field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePostDto) GetPropertiesOk() (*CertificatePostPropertiesDto, bool) { - if o == nil { - return nil, false - } - - return o.Properties, true -} - -// SetProperties sets field value -func (o *CertificatePostDto) SetProperties(v CertificatePostPropertiesDto) { - - o.Properties = &v - -} - -// HasProperties returns a boolean if a field has been set. -func (o *CertificatePostDto) HasProperties() bool { - if o != nil && o.Properties != nil { - return true - } - - return false -} - -func (o CertificatePostDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Properties != nil { - toSerialize["properties"] = o.Properties - } - - return json.Marshal(toSerialize) -} - -type NullableCertificatePostDto struct { - value *CertificatePostDto - isSet bool -} - -func (v NullableCertificatePostDto) Get() *CertificatePostDto { - return v.value -} - -func (v *NullableCertificatePostDto) Set(val *CertificatePostDto) { - v.value = val - v.isSet = true -} - -func (v NullableCertificatePostDto) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificatePostDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificatePostDto(val *CertificatePostDto) *NullableCertificatePostDto { - return &NullableCertificatePostDto{value: val, isSet: true} -} - -func (v NullableCertificatePostDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificatePostDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_post_properties_dto.go b/products/cert/model_certificate_post_properties_dto.go deleted file mode 100644 index feba679..0000000 --- a/products/cert/model_certificate_post_properties_dto.go +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificatePostPropertiesDto struct for CertificatePostPropertiesDto -type CertificatePostPropertiesDto struct { - // The certificate name. - Name *string `json:"name"` - // The certificate body. - Certificate *string `json:"certificate"` - // The certificate chain. - CertificateChain *string `json:"certificateChain"` - // The RSA private key is used for authentication and symmetric key exchange when establishing an SSL session. It is a part of the public key infrastructure generally used with SSL certificates. - PrivateKey *string `json:"privateKey"` -} - -// NewCertificatePostPropertiesDto instantiates a new CertificatePostPropertiesDto 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 NewCertificatePostPropertiesDto(name string, certificate string, certificateChain string, privateKey string) *CertificatePostPropertiesDto { - this := CertificatePostPropertiesDto{} - - this.Name = &name - this.Certificate = &certificate - this.CertificateChain = &certificateChain - this.PrivateKey = &privateKey - - return &this -} - -// NewCertificatePostPropertiesDtoWithDefaults instantiates a new CertificatePostPropertiesDto 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 NewCertificatePostPropertiesDtoWithDefaults() *CertificatePostPropertiesDto { - this := CertificatePostPropertiesDto{} - return &this -} - -// GetName returns the Name field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePostPropertiesDto) GetName() *string { - if o == nil { - return nil - } - - return o.Name - -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePostPropertiesDto) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Name, true -} - -// SetName sets field value -func (o *CertificatePostPropertiesDto) SetName(v string) { - - o.Name = &v - -} - -// HasName returns a boolean if a field has been set. -func (o *CertificatePostPropertiesDto) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// GetCertificate returns the Certificate field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePostPropertiesDto) GetCertificate() *string { - if o == nil { - return nil - } - - return o.Certificate - -} - -// GetCertificateOk returns a tuple with the Certificate field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePostPropertiesDto) GetCertificateOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Certificate, true -} - -// SetCertificate sets field value -func (o *CertificatePostPropertiesDto) SetCertificate(v string) { - - o.Certificate = &v - -} - -// HasCertificate returns a boolean if a field has been set. -func (o *CertificatePostPropertiesDto) HasCertificate() bool { - if o != nil && o.Certificate != nil { - return true - } - - return false -} - -// GetCertificateChain returns the CertificateChain field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePostPropertiesDto) GetCertificateChain() *string { - if o == nil { - return nil - } - - return o.CertificateChain - -} - -// GetCertificateChainOk returns a tuple with the CertificateChain field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePostPropertiesDto) GetCertificateChainOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.CertificateChain, true -} - -// SetCertificateChain sets field value -func (o *CertificatePostPropertiesDto) SetCertificateChain(v string) { - - o.CertificateChain = &v - -} - -// HasCertificateChain returns a boolean if a field has been set. -func (o *CertificatePostPropertiesDto) HasCertificateChain() bool { - if o != nil && o.CertificateChain != nil { - return true - } - - return false -} - -// GetPrivateKey returns the PrivateKey field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePostPropertiesDto) GetPrivateKey() *string { - if o == nil { - return nil - } - - return o.PrivateKey - -} - -// GetPrivateKeyOk returns a tuple with the PrivateKey field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePostPropertiesDto) GetPrivateKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.PrivateKey, true -} - -// SetPrivateKey sets field value -func (o *CertificatePostPropertiesDto) SetPrivateKey(v string) { - - o.PrivateKey = &v - -} - -// HasPrivateKey returns a boolean if a field has been set. -func (o *CertificatePostPropertiesDto) HasPrivateKey() bool { - if o != nil && o.PrivateKey != nil { - return true - } - - return false -} - -func (o CertificatePostPropertiesDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Name != nil { - toSerialize["name"] = o.Name - } - - if o.Certificate != nil { - toSerialize["certificate"] = o.Certificate - } - - if o.CertificateChain != nil { - toSerialize["certificateChain"] = o.CertificateChain - } - - if o.PrivateKey != nil { - toSerialize["privateKey"] = o.PrivateKey - } - - return json.Marshal(toSerialize) -} - -type NullableCertificatePostPropertiesDto struct { - value *CertificatePostPropertiesDto - isSet bool -} - -func (v NullableCertificatePostPropertiesDto) Get() *CertificatePostPropertiesDto { - return v.value -} - -func (v *NullableCertificatePostPropertiesDto) Set(val *CertificatePostPropertiesDto) { - v.value = val - v.isSet = true -} - -func (v NullableCertificatePostPropertiesDto) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificatePostPropertiesDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificatePostPropertiesDto(val *CertificatePostPropertiesDto) *NullableCertificatePostPropertiesDto { - return &NullableCertificatePostPropertiesDto{value: val, isSet: true} -} - -func (v NullableCertificatePostPropertiesDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificatePostPropertiesDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_properties_dto.go b/products/cert/model_certificate_properties_dto.go deleted file mode 100644 index b51431d..0000000 --- a/products/cert/model_certificate_properties_dto.go +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// CertificatePropertiesDto struct for CertificatePropertiesDto -type CertificatePropertiesDto struct { - // The certificate name. - Name *string `json:"name,omitempty"` - // The certificate body. - Certificate *string `json:"certificate,omitempty"` - // Optional. The certificate chain. - CertificateChain *string `json:"certificateChain,omitempty"` -} - -// NewCertificatePropertiesDto instantiates a new CertificatePropertiesDto 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 NewCertificatePropertiesDto() *CertificatePropertiesDto { - this := CertificatePropertiesDto{} - - return &this -} - -// NewCertificatePropertiesDtoWithDefaults instantiates a new CertificatePropertiesDto 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 NewCertificatePropertiesDtoWithDefaults() *CertificatePropertiesDto { - this := CertificatePropertiesDto{} - return &this -} - -// GetName returns the Name field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePropertiesDto) GetName() *string { - if o == nil { - return nil - } - - return o.Name - -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePropertiesDto) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Name, true -} - -// SetName sets field value -func (o *CertificatePropertiesDto) SetName(v string) { - - o.Name = &v - -} - -// HasName returns a boolean if a field has been set. -func (o *CertificatePropertiesDto) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// GetCertificate returns the Certificate field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePropertiesDto) GetCertificate() *string { - if o == nil { - return nil - } - - return o.Certificate - -} - -// GetCertificateOk returns a tuple with the Certificate field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePropertiesDto) GetCertificateOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Certificate, true -} - -// SetCertificate sets field value -func (o *CertificatePropertiesDto) SetCertificate(v string) { - - o.Certificate = &v - -} - -// HasCertificate returns a boolean if a field has been set. -func (o *CertificatePropertiesDto) HasCertificate() bool { - if o != nil && o.Certificate != nil { - return true - } - - return false -} - -// GetCertificateChain returns the CertificateChain field value -// If the value is explicit nil, the zero value for string will be returned -func (o *CertificatePropertiesDto) GetCertificateChain() *string { - if o == nil { - return nil - } - - return o.CertificateChain - -} - -// GetCertificateChainOk returns a tuple with the CertificateChain field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CertificatePropertiesDto) GetCertificateChainOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.CertificateChain, true -} - -// SetCertificateChain sets field value -func (o *CertificatePropertiesDto) SetCertificateChain(v string) { - - o.CertificateChain = &v - -} - -// HasCertificateChain returns a boolean if a field has been set. -func (o *CertificatePropertiesDto) HasCertificateChain() bool { - if o != nil && o.CertificateChain != nil { - return true - } - - return false -} - -func (o CertificatePropertiesDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Name != nil { - toSerialize["name"] = o.Name - } - - if o.Certificate != nil { - toSerialize["certificate"] = o.Certificate - } - - if o.CertificateChain != nil { - toSerialize["certificateChain"] = o.CertificateChain - } - - return json.Marshal(toSerialize) -} - -type NullableCertificatePropertiesDto struct { - value *CertificatePropertiesDto - isSet bool -} - -func (v NullableCertificatePropertiesDto) Get() *CertificatePropertiesDto { - return v.value -} - -func (v *NullableCertificatePropertiesDto) Set(val *CertificatePropertiesDto) { - v.value = val - v.isSet = true -} - -func (v NullableCertificatePropertiesDto) IsSet() bool { - return v.isSet -} - -func (v *NullableCertificatePropertiesDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCertificatePropertiesDto(val *CertificatePropertiesDto) *NullableCertificatePropertiesDto { - return &NullableCertificatePropertiesDto{value: val, isSet: true} -} - -func (v NullableCertificatePropertiesDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCertificatePropertiesDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_certificate_read.go b/products/cert/model_certificate_read.go new file mode 100644 index 0000000..370b118 --- /dev/null +++ b/products/cert/model_certificate_read.go @@ -0,0 +1,220 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the CertificateRead type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateRead{} + +// CertificateRead struct for CertificateRead +type CertificateRead struct { + // The ID (UUID) of the Certificate. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the Certificate. + Href string `json:"href"` + Metadata MetadataWithCertificateInformation `json:"metadata"` + Properties Certificate `json:"properties"` +} + +// NewCertificateRead instantiates a new CertificateRead 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 NewCertificateRead(id string, type_ string, href string, metadata MetadataWithCertificateInformation, properties Certificate) *CertificateRead { + this := CertificateRead{} + + this.Id = id + this.Type = type_ + this.Href = href + this.Metadata = metadata + this.Properties = properties + + return &this +} + +// NewCertificateReadWithDefaults instantiates a new CertificateRead 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 NewCertificateReadWithDefaults() *CertificateRead { + this := CertificateRead{} + return &this +} + +// GetId returns the Id field value +func (o *CertificateRead) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CertificateRead) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CertificateRead) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *CertificateRead) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CertificateRead) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CertificateRead) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *CertificateRead) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *CertificateRead) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *CertificateRead) SetHref(v string) { + o.Href = v +} + +// GetMetadata returns the Metadata field value +func (o *CertificateRead) GetMetadata() MetadataWithCertificateInformation { + if o == nil { + var ret MetadataWithCertificateInformation + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *CertificateRead) GetMetadataOk() (*MetadataWithCertificateInformation, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *CertificateRead) SetMetadata(v MetadataWithCertificateInformation) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *CertificateRead) GetProperties() Certificate { + if o == nil { + var ret Certificate + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *CertificateRead) GetPropertiesOk() (*Certificate, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *CertificateRead) SetProperties(v Certificate) { + o.Properties = v +} + +func (o CertificateRead) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + toSerialize["metadata"] = o.Metadata + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableCertificateRead struct { + value *CertificateRead + isSet bool +} + +func (v NullableCertificateRead) Get() *CertificateRead { + return v.value +} + +func (v *NullableCertificateRead) Set(val *CertificateRead) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateRead) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateRead) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateRead(val *CertificateRead) *NullableCertificateRead { + return &NullableCertificateRead{value: val, isSet: true} +} + +func (v NullableCertificateRead) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateRead) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_certificate_read_list.go b/products/cert/model_certificate_read_list.go new file mode 100644 index 0000000..c2a79e7 --- /dev/null +++ b/products/cert/model_certificate_read_list.go @@ -0,0 +1,286 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the CertificateReadList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateReadList{} + +// CertificateReadList struct for CertificateReadList +type CertificateReadList struct { + // ID of the list of Certificate resources. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the list of Certificate resources. + Href string `json:"href"` + // The list of Certificate resources. + Items []CertificateRead `json:"items,omitempty"` + // The offset specified in the request (if none was specified, the default offset is 0). + Offset int32 `json:"offset"` + // The limit specified in the request (if none was specified, use the endpoint's default pagination limit). + Limit int32 `json:"limit"` + Links Links `json:"_links"` +} + +// NewCertificateReadList instantiates a new CertificateReadList 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 NewCertificateReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *CertificateReadList { + this := CertificateReadList{} + + this.Id = id + this.Type = type_ + this.Href = href + this.Offset = offset + this.Limit = limit + this.Links = links + + return &this +} + +// NewCertificateReadListWithDefaults instantiates a new CertificateReadList 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 NewCertificateReadListWithDefaults() *CertificateReadList { + this := CertificateReadList{} + return &this +} + +// GetId returns the Id field value +func (o *CertificateReadList) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CertificateReadList) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CertificateReadList) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *CertificateReadList) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CertificateReadList) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CertificateReadList) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *CertificateReadList) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *CertificateReadList) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *CertificateReadList) SetHref(v string) { + o.Href = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CertificateReadList) GetItems() []CertificateRead { + if o == nil || IsNil(o.Items) { + var ret []CertificateRead + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateReadList) GetItemsOk() ([]CertificateRead, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CertificateReadList) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []CertificateRead and assigns it to the Items field. +func (o *CertificateReadList) SetItems(v []CertificateRead) { + o.Items = v +} + +// GetOffset returns the Offset field value +func (o *CertificateReadList) GetOffset() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *CertificateReadList) GetOffsetOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *CertificateReadList) SetOffset(v int32) { + o.Offset = v +} + +// GetLimit returns the Limit field value +func (o *CertificateReadList) GetLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *CertificateReadList) GetLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *CertificateReadList) SetLimit(v int32) { + o.Limit = v +} + +// GetLinks returns the Links field value +func (o *CertificateReadList) GetLinks() Links { + if o == nil { + var ret Links + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *CertificateReadList) GetLinksOk() (*Links, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *CertificateReadList) SetLinks(v Links) { + o.Links = v +} + +func (o CertificateReadList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + toSerialize["offset"] = o.Offset + toSerialize["limit"] = o.Limit + toSerialize["_links"] = o.Links + return toSerialize, nil +} + +type NullableCertificateReadList struct { + value *CertificateReadList + isSet bool +} + +func (v NullableCertificateReadList) Get() *CertificateReadList { + return v.value +} + +func (v *NullableCertificateReadList) Set(val *CertificateReadList) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateReadList) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateReadList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateReadList(val *CertificateReadList) *NullableCertificateReadList { + return &NullableCertificateReadList{value: val, isSet: true} +} + +func (v NullableCertificateReadList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateReadList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_certificate_read_list_all_of.go b/products/cert/model_certificate_read_list_all_of.go new file mode 100644 index 0000000..673d3de --- /dev/null +++ b/products/cert/model_certificate_read_list_all_of.go @@ -0,0 +1,203 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the CertificateReadListAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateReadListAllOf{} + +// CertificateReadListAllOf struct for CertificateReadListAllOf +type CertificateReadListAllOf struct { + // ID of the list of Certificate resources. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the list of Certificate resources. + Href string `json:"href"` + // The list of Certificate resources. + Items []CertificateRead `json:"items,omitempty"` +} + +// NewCertificateReadListAllOf instantiates a new CertificateReadListAllOf 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 NewCertificateReadListAllOf(id string, type_ string, href string) *CertificateReadListAllOf { + this := CertificateReadListAllOf{} + + this.Id = id + this.Type = type_ + this.Href = href + + return &this +} + +// NewCertificateReadListAllOfWithDefaults instantiates a new CertificateReadListAllOf 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 NewCertificateReadListAllOfWithDefaults() *CertificateReadListAllOf { + this := CertificateReadListAllOf{} + return &this +} + +// GetId returns the Id field value +func (o *CertificateReadListAllOf) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CertificateReadListAllOf) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CertificateReadListAllOf) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *CertificateReadListAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CertificateReadListAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CertificateReadListAllOf) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *CertificateReadListAllOf) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *CertificateReadListAllOf) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *CertificateReadListAllOf) SetHref(v string) { + o.Href = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CertificateReadListAllOf) GetItems() []CertificateRead { + if o == nil || IsNil(o.Items) { + var ret []CertificateRead + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateReadListAllOf) GetItemsOk() ([]CertificateRead, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CertificateReadListAllOf) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []CertificateRead and assigns it to the Items field. +func (o *CertificateReadListAllOf) SetItems(v []CertificateRead) { + o.Items = v +} + +func (o CertificateReadListAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + return toSerialize, nil +} + +type NullableCertificateReadListAllOf struct { + value *CertificateReadListAllOf + isSet bool +} + +func (v NullableCertificateReadListAllOf) Get() *CertificateReadListAllOf { + return v.value +} + +func (v *NullableCertificateReadListAllOf) Set(val *CertificateReadListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateReadListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateReadListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateReadListAllOf(val *CertificateReadListAllOf) *NullableCertificateReadListAllOf { + return &NullableCertificateReadListAllOf{value: val, isSet: true} +} + +func (v NullableCertificateReadListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateReadListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_config_property_dto.go b/products/cert/model_config_property_dto.go deleted file mode 100644 index c7025cd..0000000 --- a/products/cert/model_config_property_dto.go +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// ConfigPropertyDto struct for ConfigPropertyDto -type ConfigPropertyDto struct { - // The property id. - Id *string `json:"id,omitempty"` - // The property name. - Name *string `json:"name"` - // The property value. - Value *string `json:"value"` - // The property description. - Description *string `json:"description"` -} - -// NewConfigPropertyDto instantiates a new ConfigPropertyDto 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 NewConfigPropertyDto(name string, value string, description string) *ConfigPropertyDto { - this := ConfigPropertyDto{} - - this.Name = &name - this.Value = &value - this.Description = &description - - return &this -} - -// NewConfigPropertyDtoWithDefaults instantiates a new ConfigPropertyDto 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 NewConfigPropertyDtoWithDefaults() *ConfigPropertyDto { - this := ConfigPropertyDto{} - return &this -} - -// GetId returns the Id field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ConfigPropertyDto) GetId() *string { - if o == nil { - return nil - } - - return o.Id - -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigPropertyDto) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Id, true -} - -// SetId sets field value -func (o *ConfigPropertyDto) SetId(v string) { - - o.Id = &v - -} - -// HasId returns a boolean if a field has been set. -func (o *ConfigPropertyDto) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// GetName returns the Name field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ConfigPropertyDto) GetName() *string { - if o == nil { - return nil - } - - return o.Name - -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigPropertyDto) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Name, true -} - -// SetName sets field value -func (o *ConfigPropertyDto) SetName(v string) { - - o.Name = &v - -} - -// HasName returns a boolean if a field has been set. -func (o *ConfigPropertyDto) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// GetValue returns the Value field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ConfigPropertyDto) GetValue() *string { - if o == nil { - return nil - } - - return o.Value - -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigPropertyDto) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Value, true -} - -// SetValue sets field value -func (o *ConfigPropertyDto) SetValue(v string) { - - o.Value = &v - -} - -// HasValue returns a boolean if a field has been set. -func (o *ConfigPropertyDto) HasValue() bool { - if o != nil && o.Value != nil { - return true - } - - return false -} - -// GetDescription returns the Description field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ConfigPropertyDto) GetDescription() *string { - if o == nil { - return nil - } - - return o.Description - -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigPropertyDto) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Description, true -} - -// SetDescription sets field value -func (o *ConfigPropertyDto) SetDescription(v string) { - - o.Description = &v - -} - -// HasDescription returns a boolean if a field has been set. -func (o *ConfigPropertyDto) HasDescription() bool { - if o != nil && o.Description != nil { - return true - } - - return false -} - -func (o ConfigPropertyDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Id != nil { - toSerialize["id"] = o.Id - } - - if o.Name != nil { - toSerialize["name"] = o.Name - } - - if o.Value != nil { - toSerialize["value"] = o.Value - } - - if o.Description != nil { - toSerialize["description"] = o.Description - } - - return json.Marshal(toSerialize) -} - -type NullableConfigPropertyDto struct { - value *ConfigPropertyDto - isSet bool -} - -func (v NullableConfigPropertyDto) Get() *ConfigPropertyDto { - return v.value -} - -func (v *NullableConfigPropertyDto) Set(val *ConfigPropertyDto) { - v.value = val - v.isSet = true -} - -func (v NullableConfigPropertyDto) IsSet() bool { - return v.isSet -} - -func (v *NullableConfigPropertyDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableConfigPropertyDto(val *ConfigPropertyDto) *NullableConfigPropertyDto { - return &NullableConfigPropertyDto{value: val, isSet: true} -} - -func (v NullableConfigPropertyDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableConfigPropertyDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/model_connection.go b/products/cert/model_connection.go new file mode 100644 index 0000000..dda926f --- /dev/null +++ b/products/cert/model_connection.go @@ -0,0 +1,166 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the Connection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Connection{} + +// Connection Details about the network connection for your instance. +type Connection struct { + // The datacenter to connect your instance to. + DatacenterId string `json:"datacenterId"` + // The numeric LAN ID to connect your instance to. + LanId string `json:"lanId"` + // The IP and subnet for your instance. Note the following unavailable IP range: 10.244.0.0/11 + Cidr string `json:"cidr"` +} + +// NewConnection instantiates a new Connection 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 NewConnection(datacenterId string, lanId string, cidr string) *Connection { + this := Connection{} + + this.DatacenterId = datacenterId + this.LanId = lanId + this.Cidr = cidr + + return &this +} + +// NewConnectionWithDefaults instantiates a new Connection 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 NewConnectionWithDefaults() *Connection { + this := Connection{} + return &this +} + +// GetDatacenterId returns the DatacenterId field value +func (o *Connection) GetDatacenterId() string { + if o == nil { + var ret string + return ret + } + + return o.DatacenterId +} + +// GetDatacenterIdOk returns a tuple with the DatacenterId field value +// and a boolean to check if the value has been set. +func (o *Connection) GetDatacenterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DatacenterId, true +} + +// SetDatacenterId sets field value +func (o *Connection) SetDatacenterId(v string) { + o.DatacenterId = v +} + +// GetLanId returns the LanId field value +func (o *Connection) GetLanId() string { + if o == nil { + var ret string + return ret + } + + return o.LanId +} + +// GetLanIdOk returns a tuple with the LanId field value +// and a boolean to check if the value has been set. +func (o *Connection) GetLanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LanId, true +} + +// SetLanId sets field value +func (o *Connection) SetLanId(v string) { + o.LanId = v +} + +// GetCidr returns the Cidr field value +func (o *Connection) GetCidr() string { + if o == nil { + var ret string + return ret + } + + return o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value +// and a boolean to check if the value has been set. +func (o *Connection) GetCidrOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cidr, true +} + +// SetCidr sets field value +func (o *Connection) SetCidr(v string) { + o.Cidr = v +} + +func (o Connection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["datacenterId"] = o.DatacenterId + toSerialize["lanId"] = o.LanId + toSerialize["cidr"] = o.Cidr + return toSerialize, nil +} + +type NullableConnection struct { + value *Connection + isSet bool +} + +func (v NullableConnection) Get() *Connection { + return v.value +} + +func (v *NullableConnection) Set(val *Connection) { + v.value = val + v.isSet = true +} + +func (v NullableConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnection(val *Connection) *NullableConnection { + return &NullableConnection{value: val, isSet: true} +} + +func (v NullableConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_day_of_the_week.go b/products/cert/model_day_of_the_week.go new file mode 100644 index 0000000..8e809ba --- /dev/null +++ b/products/cert/model_day_of_the_week.go @@ -0,0 +1,89 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" + + "fmt" +) + +// DayOfTheWeek The name of the week day. +type DayOfTheWeek string + +// List of DayOfTheWeek +const ( + DAYOFTHEWEEK_SUNDAY DayOfTheWeek = "Sunday" + DAYOFTHEWEEK_MONDAY DayOfTheWeek = "Monday" + DAYOFTHEWEEK_TUESDAY DayOfTheWeek = "Tuesday" + DAYOFTHEWEEK_WEDNESDAY DayOfTheWeek = "Wednesday" + DAYOFTHEWEEK_THURSDAY DayOfTheWeek = "Thursday" + DAYOFTHEWEEK_FRIDAY DayOfTheWeek = "Friday" + DAYOFTHEWEEK_SATURDAY DayOfTheWeek = "Saturday" +) + +func (v *DayOfTheWeek) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DayOfTheWeek(value) + for _, existing := range []DayOfTheWeek{"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DayOfTheWeek", value) +} + +// Ptr returns reference to DayOfTheWeek value +func (v DayOfTheWeek) Ptr() *DayOfTheWeek { + return &v +} + +type NullableDayOfTheWeek struct { + value *DayOfTheWeek + isSet bool +} + +func (v NullableDayOfTheWeek) Get() *DayOfTheWeek { + return v.value +} + +func (v *NullableDayOfTheWeek) Set(val *DayOfTheWeek) { + v.value = val + v.isSet = true +} + +func (v NullableDayOfTheWeek) IsSet() bool { + return v.isSet +} + +func (v *NullableDayOfTheWeek) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDayOfTheWeek(val *DayOfTheWeek) *NullableDayOfTheWeek { + return &NullableDayOfTheWeek{value: val, isSet: true} +} + +func (v NullableDayOfTheWeek) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDayOfTheWeek) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_error.go b/products/cert/model_error.go new file mode 100644 index 0000000..61a50cf --- /dev/null +++ b/products/cert/model_error.go @@ -0,0 +1,155 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the Error type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Error{} + +// Error The Error object is used to represent an error response from the API. +type Error struct { + // The HTTP status code of the operation. + HttpStatus *int32 `json:"httpStatus,omitempty"` + // A list of error messages. + Messages []ErrorMessages `json:"messages,omitempty"` +} + +// NewError instantiates a new Error object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewError() *Error { + this := Error{} + + return &this +} + +// NewErrorWithDefaults instantiates a new Error object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetHttpStatus returns the HttpStatus field value if set, zero value otherwise. +func (o *Error) GetHttpStatus() int32 { + if o == nil || IsNil(o.HttpStatus) { + var ret int32 + return ret + } + return *o.HttpStatus +} + +// GetHttpStatusOk returns a tuple with the HttpStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetHttpStatusOk() (*int32, bool) { + if o == nil || IsNil(o.HttpStatus) { + return nil, false + } + return o.HttpStatus, true +} + +// HasHttpStatus returns a boolean if a field has been set. +func (o *Error) HasHttpStatus() bool { + if o != nil && !IsNil(o.HttpStatus) { + return true + } + + return false +} + +// SetHttpStatus gets a reference to the given int32 and assigns it to the HttpStatus field. +func (o *Error) SetHttpStatus(v int32) { + o.HttpStatus = &v +} + +// GetMessages returns the Messages field value if set, zero value otherwise. +func (o *Error) GetMessages() []ErrorMessages { + if o == nil || IsNil(o.Messages) { + var ret []ErrorMessages + return ret + } + return o.Messages +} + +// GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetMessagesOk() ([]ErrorMessages, bool) { + if o == nil || IsNil(o.Messages) { + return nil, false + } + return o.Messages, true +} + +// HasMessages returns a boolean if a field has been set. +func (o *Error) HasMessages() bool { + if o != nil && !IsNil(o.Messages) { + return true + } + + return false +} + +// SetMessages gets a reference to the given []ErrorMessages and assigns it to the Messages field. +func (o *Error) SetMessages(v []ErrorMessages) { + o.Messages = v +} + +func (o Error) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.HttpStatus) { + toSerialize["httpStatus"] = o.HttpStatus + } + if !IsNil(o.Messages) { + toSerialize["messages"] = o.Messages + } + return toSerialize, nil +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_error_messages.go b/products/cert/model_error_messages.go new file mode 100644 index 0000000..ef449bc --- /dev/null +++ b/products/cert/model_error_messages.go @@ -0,0 +1,155 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the ErrorMessages type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorMessages{} + +// ErrorMessages struct for ErrorMessages +type ErrorMessages struct { + // Application internal error code + ErrorCode *string `json:"errorCode,omitempty"` + // A human readable explanation specific to this occurrence of the problem. + Message *string `json:"message,omitempty"` +} + +// NewErrorMessages instantiates a new ErrorMessages 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 NewErrorMessages() *ErrorMessages { + this := ErrorMessages{} + + return &this +} + +// NewErrorMessagesWithDefaults instantiates a new ErrorMessages 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 NewErrorMessagesWithDefaults() *ErrorMessages { + this := ErrorMessages{} + return &this +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *ErrorMessages) GetErrorCode() string { + if o == nil || IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorMessages) GetErrorCodeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *ErrorMessages) HasErrorCode() bool { + if o != nil && !IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *ErrorMessages) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ErrorMessages) 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 *ErrorMessages) 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 *ErrorMessages) 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 *ErrorMessages) SetMessage(v string) { + o.Message = &v +} + +func (o ErrorMessages) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableErrorMessages struct { + value *ErrorMessages + isSet bool +} + +func (v NullableErrorMessages) Get() *ErrorMessages { + return v.value +} + +func (v *NullableErrorMessages) Set(val *ErrorMessages) { + v.value = val + v.isSet = true +} + +func (v NullableErrorMessages) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorMessages) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorMessages(val *ErrorMessages) *NullableErrorMessages { + return &NullableErrorMessages{value: val, isSet: true} +} + +func (v NullableErrorMessages) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorMessages) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_links.go b/products/cert/model_links.go new file mode 100644 index 0000000..01e4167 --- /dev/null +++ b/products/cert/model_links.go @@ -0,0 +1,192 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the Links type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Links{} + +// Links URLs to navigate the different pages. As of now we always only return a single page. +type Links struct { + // URL (with offset and limit parameters) of the previous page; only present if offset is greater than 0. + Prev *string `json:"prev,omitempty"` + // URL (with offset and limit parameters) of the current page. + Self *string `json:"self,omitempty"` + // URL (with offset and limit parameters) of the next page; only present if offset + limit is less than the total number of elements. + Next *string `json:"next,omitempty"` +} + +// NewLinks instantiates a new Links 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 NewLinks() *Links { + this := Links{} + + return &this +} + +// NewLinksWithDefaults instantiates a new Links 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 NewLinksWithDefaults() *Links { + this := Links{} + return &this +} + +// GetPrev returns the Prev field value if set, zero value otherwise. +func (o *Links) GetPrev() string { + if o == nil || IsNil(o.Prev) { + var ret string + return ret + } + return *o.Prev +} + +// GetPrevOk returns a tuple with the Prev field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetPrevOk() (*string, bool) { + if o == nil || IsNil(o.Prev) { + return nil, false + } + return o.Prev, true +} + +// HasPrev returns a boolean if a field has been set. +func (o *Links) HasPrev() bool { + if o != nil && !IsNil(o.Prev) { + return true + } + + return false +} + +// SetPrev gets a reference to the given string and assigns it to the Prev field. +func (o *Links) SetPrev(v string) { + o.Prev = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *Links) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *Links) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *Links) SetSelf(v string) { + o.Self = &v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *Links) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *Links) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *Links) SetNext(v string) { + o.Next = &v +} + +func (o Links) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Prev) { + toSerialize["prev"] = o.Prev + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + return toSerialize, nil +} + +type NullableLinks struct { + value *Links + isSet bool +} + +func (v NullableLinks) Get() *Links { + return v.value +} + +func (v *NullableLinks) Set(val *Links) { + v.value = val + v.isSet = true +} + +func (v NullableLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinks(val *Links) *NullableLinks { + return &NullableLinks{value: val, isSet: true} +} + +func (v NullableLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_maintenance_window.go b/products/cert/model_maintenance_window.go new file mode 100644 index 0000000..91e1186 --- /dev/null +++ b/products/cert/model_maintenance_window.go @@ -0,0 +1,137 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the MaintenanceWindow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MaintenanceWindow{} + +// MaintenanceWindow A weekly 4 hour-long window, during which maintenance might occur. +type MaintenanceWindow struct { + // Start of the maintenance window in UTC time. + Time string `json:"time"` + DayOfTheWeek DayOfTheWeek `json:"dayOfTheWeek"` +} + +// NewMaintenanceWindow instantiates a new MaintenanceWindow 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 NewMaintenanceWindow(time string, dayOfTheWeek DayOfTheWeek) *MaintenanceWindow { + this := MaintenanceWindow{} + + this.Time = time + this.DayOfTheWeek = dayOfTheWeek + + return &this +} + +// NewMaintenanceWindowWithDefaults instantiates a new MaintenanceWindow 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 NewMaintenanceWindowWithDefaults() *MaintenanceWindow { + this := MaintenanceWindow{} + return &this +} + +// GetTime returns the Time field value +func (o *MaintenanceWindow) GetTime() string { + if o == nil { + var ret string + return ret + } + + return o.Time +} + +// GetTimeOk returns a tuple with the Time field value +// and a boolean to check if the value has been set. +func (o *MaintenanceWindow) GetTimeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Time, true +} + +// SetTime sets field value +func (o *MaintenanceWindow) SetTime(v string) { + o.Time = v +} + +// GetDayOfTheWeek returns the DayOfTheWeek field value +func (o *MaintenanceWindow) GetDayOfTheWeek() DayOfTheWeek { + if o == nil { + var ret DayOfTheWeek + return ret + } + + return o.DayOfTheWeek +} + +// GetDayOfTheWeekOk returns a tuple with the DayOfTheWeek field value +// and a boolean to check if the value has been set. +func (o *MaintenanceWindow) GetDayOfTheWeekOk() (*DayOfTheWeek, bool) { + if o == nil { + return nil, false + } + return &o.DayOfTheWeek, true +} + +// SetDayOfTheWeek sets field value +func (o *MaintenanceWindow) SetDayOfTheWeek(v DayOfTheWeek) { + o.DayOfTheWeek = v +} + +func (o MaintenanceWindow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["time"] = o.Time + toSerialize["dayOfTheWeek"] = o.DayOfTheWeek + return toSerialize, nil +} + +type NullableMaintenanceWindow struct { + value *MaintenanceWindow + isSet bool +} + +func (v NullableMaintenanceWindow) Get() *MaintenanceWindow { + return v.value +} + +func (v *NullableMaintenanceWindow) Set(val *MaintenanceWindow) { + v.value = val + v.isSet = true +} + +func (v NullableMaintenanceWindow) IsSet() bool { + return v.isSet +} + +func (v *NullableMaintenanceWindow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMaintenanceWindow(val *MaintenanceWindow) *NullableMaintenanceWindow { + return &NullableMaintenanceWindow{value: val, isSet: true} +} + +func (v NullableMaintenanceWindow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMaintenanceWindow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_metadata.go b/products/cert/model_metadata.go new file mode 100644 index 0000000..bb7fe21 --- /dev/null +++ b/products/cert/model_metadata.go @@ -0,0 +1,342 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" + + "time" +) + +// checks if the Metadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Metadata{} + +// Metadata Metadata of the resource. +type Metadata struct { + // The ISO 8601 creation timestamp. + CreatedDate *IonosTime `json:"createdDate,omitempty"` + // Unique name of the identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // Unique id of the identity that created the resource. + CreatedByUserId *string `json:"createdByUserId,omitempty"` + // The ISO 8601 modified timestamp. + LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"` + // Unique name of the identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // Unique id of the identity that last modified the resource. + LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"` + // Unique name of the resource. + ResourceURN *string `json:"resourceURN,omitempty"` +} + +// NewMetadata instantiates a new Metadata 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 NewMetadata() *Metadata { + this := Metadata{} + + return &this +} + +// NewMetadataWithDefaults instantiates a new Metadata 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 NewMetadataWithDefaults() *Metadata { + this := Metadata{} + return &this +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *Metadata) GetCreatedDate() time.Time { + if o == nil || IsNil(o.CreatedDate) { + var ret time.Time + return ret + } + return o.CreatedDate.Time +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetCreatedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return &o.CreatedDate.Time, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *Metadata) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field. +func (o *Metadata) SetCreatedDate(v time.Time) { + o.CreatedDate = &IonosTime{v} +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *Metadata) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *Metadata) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *Metadata) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise. +func (o *Metadata) GetCreatedByUserId() string { + if o == nil || IsNil(o.CreatedByUserId) { + var ret string + return ret + } + return *o.CreatedByUserId +} + +// GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetCreatedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByUserId) { + return nil, false + } + return o.CreatedByUserId, true +} + +// HasCreatedByUserId returns a boolean if a field has been set. +func (o *Metadata) HasCreatedByUserId() bool { + if o != nil && !IsNil(o.CreatedByUserId) { + return true + } + + return false +} + +// SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field. +func (o *Metadata) SetCreatedByUserId(v string) { + o.CreatedByUserId = &v +} + +// GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise. +func (o *Metadata) GetLastModifiedDate() time.Time { + if o == nil || IsNil(o.LastModifiedDate) { + var ret time.Time + return ret + } + return o.LastModifiedDate.Time +} + +// GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetLastModifiedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastModifiedDate) { + return nil, false + } + return &o.LastModifiedDate.Time, true +} + +// HasLastModifiedDate returns a boolean if a field has been set. +func (o *Metadata) HasLastModifiedDate() bool { + if o != nil && !IsNil(o.LastModifiedDate) { + return true + } + + return false +} + +// SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field. +func (o *Metadata) SetLastModifiedDate(v time.Time) { + o.LastModifiedDate = &IonosTime{v} +} + +// GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise. +func (o *Metadata) GetLastModifiedBy() string { + if o == nil || IsNil(o.LastModifiedBy) { + var ret string + return ret + } + return *o.LastModifiedBy +} + +// GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetLastModifiedByOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedBy) { + return nil, false + } + return o.LastModifiedBy, true +} + +// HasLastModifiedBy returns a boolean if a field has been set. +func (o *Metadata) HasLastModifiedBy() bool { + if o != nil && !IsNil(o.LastModifiedBy) { + return true + } + + return false +} + +// SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field. +func (o *Metadata) SetLastModifiedBy(v string) { + o.LastModifiedBy = &v +} + +// GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise. +func (o *Metadata) GetLastModifiedByUserId() string { + if o == nil || IsNil(o.LastModifiedByUserId) { + var ret string + return ret + } + return *o.LastModifiedByUserId +} + +// GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetLastModifiedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedByUserId) { + return nil, false + } + return o.LastModifiedByUserId, true +} + +// HasLastModifiedByUserId returns a boolean if a field has been set. +func (o *Metadata) HasLastModifiedByUserId() bool { + if o != nil && !IsNil(o.LastModifiedByUserId) { + return true + } + + return false +} + +// SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field. +func (o *Metadata) SetLastModifiedByUserId(v string) { + o.LastModifiedByUserId = &v +} + +// GetResourceURN returns the ResourceURN field value if set, zero value otherwise. +func (o *Metadata) GetResourceURN() string { + if o == nil || IsNil(o.ResourceURN) { + var ret string + return ret + } + return *o.ResourceURN +} + +// GetResourceURNOk returns a tuple with the ResourceURN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetResourceURNOk() (*string, bool) { + if o == nil || IsNil(o.ResourceURN) { + return nil, false + } + return o.ResourceURN, true +} + +// HasResourceURN returns a boolean if a field has been set. +func (o *Metadata) HasResourceURN() bool { + if o != nil && !IsNil(o.ResourceURN) { + return true + } + + return false +} + +// SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field. +func (o *Metadata) SetResourceURN(v string) { + o.ResourceURN = &v +} + +func (o Metadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedByUserId) { + toSerialize["createdByUserId"] = o.CreatedByUserId + } + if !IsNil(o.LastModifiedDate) { + toSerialize["lastModifiedDate"] = o.LastModifiedDate + } + if !IsNil(o.LastModifiedBy) { + toSerialize["lastModifiedBy"] = o.LastModifiedBy + } + if !IsNil(o.LastModifiedByUserId) { + toSerialize["lastModifiedByUserId"] = o.LastModifiedByUserId + } + if !IsNil(o.ResourceURN) { + toSerialize["resourceURN"] = o.ResourceURN + } + return toSerialize, nil +} + +type NullableMetadata struct { + value *Metadata + isSet bool +} + +func (v NullableMetadata) Get() *Metadata { + return v.value +} + +func (v *NullableMetadata) Set(val *Metadata) { + v.value = val + v.isSet = true +} + +func (v NullableMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadata(val *Metadata) *NullableMetadata { + return &NullableMetadata{value: val, isSet: true} +} + +func (v NullableMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_metadata_with_auto_certificate_information.go b/products/cert/model_metadata_with_auto_certificate_information.go new file mode 100644 index 0000000..776ce7d --- /dev/null +++ b/products/cert/model_metadata_with_auto_certificate_information.go @@ -0,0 +1,436 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" + + "time" +) + +// checks if the MetadataWithAutoCertificateInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataWithAutoCertificateInformation{} + +// MetadataWithAutoCertificateInformation struct for MetadataWithAutoCertificateInformation +type MetadataWithAutoCertificateInformation struct { + // The ISO 8601 creation timestamp. + CreatedDate *IonosTime `json:"createdDate,omitempty"` + // Unique name of the identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // Unique id of the identity that created the resource. + CreatedByUserId *string `json:"createdByUserId,omitempty"` + // The ISO 8601 modified timestamp. + LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"` + // Unique name of the identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // Unique id of the identity that last modified the resource. + LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"` + // Unique name of the resource. + ResourceURN *string `json:"resourceURN,omitempty"` + // The resource state. + State string `json:"state"` + // A human readable message describing the current state. In case of an error, the message will contain a detailed error message. + Message string `json:"message"` + // The ID of the last certificate that was issued. + LastIssuedCertificate *string `json:"lastIssuedCertificate,omitempty"` +} + +// NewMetadataWithAutoCertificateInformation instantiates a new MetadataWithAutoCertificateInformation 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 NewMetadataWithAutoCertificateInformation(state string, message string) *MetadataWithAutoCertificateInformation { + this := MetadataWithAutoCertificateInformation{} + + this.State = state + this.Message = message + + return &this +} + +// NewMetadataWithAutoCertificateInformationWithDefaults instantiates a new MetadataWithAutoCertificateInformation 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 NewMetadataWithAutoCertificateInformationWithDefaults() *MetadataWithAutoCertificateInformation { + this := MetadataWithAutoCertificateInformation{} + return &this +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetCreatedDate() time.Time { + if o == nil || IsNil(o.CreatedDate) { + var ret time.Time + return ret + } + return o.CreatedDate.Time +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetCreatedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return &o.CreatedDate.Time, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field. +func (o *MetadataWithAutoCertificateInformation) SetCreatedDate(v time.Time) { + o.CreatedDate = &IonosTime{v} +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *MetadataWithAutoCertificateInformation) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetCreatedByUserId() string { + if o == nil || IsNil(o.CreatedByUserId) { + var ret string + return ret + } + return *o.CreatedByUserId +} + +// GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetCreatedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByUserId) { + return nil, false + } + return o.CreatedByUserId, true +} + +// HasCreatedByUserId returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasCreatedByUserId() bool { + if o != nil && !IsNil(o.CreatedByUserId) { + return true + } + + return false +} + +// SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field. +func (o *MetadataWithAutoCertificateInformation) SetCreatedByUserId(v string) { + o.CreatedByUserId = &v +} + +// GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetLastModifiedDate() time.Time { + if o == nil || IsNil(o.LastModifiedDate) { + var ret time.Time + return ret + } + return o.LastModifiedDate.Time +} + +// GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetLastModifiedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastModifiedDate) { + return nil, false + } + return &o.LastModifiedDate.Time, true +} + +// HasLastModifiedDate returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasLastModifiedDate() bool { + if o != nil && !IsNil(o.LastModifiedDate) { + return true + } + + return false +} + +// SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field. +func (o *MetadataWithAutoCertificateInformation) SetLastModifiedDate(v time.Time) { + o.LastModifiedDate = &IonosTime{v} +} + +// GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetLastModifiedBy() string { + if o == nil || IsNil(o.LastModifiedBy) { + var ret string + return ret + } + return *o.LastModifiedBy +} + +// GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetLastModifiedByOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedBy) { + return nil, false + } + return o.LastModifiedBy, true +} + +// HasLastModifiedBy returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasLastModifiedBy() bool { + if o != nil && !IsNil(o.LastModifiedBy) { + return true + } + + return false +} + +// SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field. +func (o *MetadataWithAutoCertificateInformation) SetLastModifiedBy(v string) { + o.LastModifiedBy = &v +} + +// GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetLastModifiedByUserId() string { + if o == nil || IsNil(o.LastModifiedByUserId) { + var ret string + return ret + } + return *o.LastModifiedByUserId +} + +// GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetLastModifiedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedByUserId) { + return nil, false + } + return o.LastModifiedByUserId, true +} + +// HasLastModifiedByUserId returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasLastModifiedByUserId() bool { + if o != nil && !IsNil(o.LastModifiedByUserId) { + return true + } + + return false +} + +// SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field. +func (o *MetadataWithAutoCertificateInformation) SetLastModifiedByUserId(v string) { + o.LastModifiedByUserId = &v +} + +// GetResourceURN returns the ResourceURN field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetResourceURN() string { + if o == nil || IsNil(o.ResourceURN) { + var ret string + return ret + } + return *o.ResourceURN +} + +// GetResourceURNOk returns a tuple with the ResourceURN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetResourceURNOk() (*string, bool) { + if o == nil || IsNil(o.ResourceURN) { + return nil, false + } + return o.ResourceURN, true +} + +// HasResourceURN returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasResourceURN() bool { + if o != nil && !IsNil(o.ResourceURN) { + return true + } + + return false +} + +// SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field. +func (o *MetadataWithAutoCertificateInformation) SetResourceURN(v string) { + o.ResourceURN = &v +} + +// GetState returns the State field value +func (o *MetadataWithAutoCertificateInformation) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *MetadataWithAutoCertificateInformation) SetState(v string) { + o.State = v +} + +// GetMessage returns the Message field value +func (o *MetadataWithAutoCertificateInformation) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *MetadataWithAutoCertificateInformation) SetMessage(v string) { + o.Message = v +} + +// GetLastIssuedCertificate returns the LastIssuedCertificate field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformation) GetLastIssuedCertificate() string { + if o == nil || IsNil(o.LastIssuedCertificate) { + var ret string + return ret + } + return *o.LastIssuedCertificate +} + +// GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformation) GetLastIssuedCertificateOk() (*string, bool) { + if o == nil || IsNil(o.LastIssuedCertificate) { + return nil, false + } + return o.LastIssuedCertificate, true +} + +// HasLastIssuedCertificate returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformation) HasLastIssuedCertificate() bool { + if o != nil && !IsNil(o.LastIssuedCertificate) { + return true + } + + return false +} + +// SetLastIssuedCertificate gets a reference to the given string and assigns it to the LastIssuedCertificate field. +func (o *MetadataWithAutoCertificateInformation) SetLastIssuedCertificate(v string) { + o.LastIssuedCertificate = &v +} + +func (o MetadataWithAutoCertificateInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedByUserId) { + toSerialize["createdByUserId"] = o.CreatedByUserId + } + if !IsNil(o.LastModifiedDate) { + toSerialize["lastModifiedDate"] = o.LastModifiedDate + } + if !IsNil(o.LastModifiedBy) { + toSerialize["lastModifiedBy"] = o.LastModifiedBy + } + if !IsNil(o.LastModifiedByUserId) { + toSerialize["lastModifiedByUserId"] = o.LastModifiedByUserId + } + if !IsNil(o.ResourceURN) { + toSerialize["resourceURN"] = o.ResourceURN + } + toSerialize["state"] = o.State + toSerialize["message"] = o.Message + if !IsNil(o.LastIssuedCertificate) { + toSerialize["lastIssuedCertificate"] = o.LastIssuedCertificate + } + return toSerialize, nil +} + +type NullableMetadataWithAutoCertificateInformation struct { + value *MetadataWithAutoCertificateInformation + isSet bool +} + +func (v NullableMetadataWithAutoCertificateInformation) Get() *MetadataWithAutoCertificateInformation { + return v.value +} + +func (v *NullableMetadataWithAutoCertificateInformation) Set(val *MetadataWithAutoCertificateInformation) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataWithAutoCertificateInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataWithAutoCertificateInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataWithAutoCertificateInformation(val *MetadataWithAutoCertificateInformation) *NullableMetadataWithAutoCertificateInformation { + return &NullableMetadataWithAutoCertificateInformation{value: val, isSet: true} +} + +func (v NullableMetadataWithAutoCertificateInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataWithAutoCertificateInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_metadata_with_auto_certificate_information_all_of.go b/products/cert/model_metadata_with_auto_certificate_information_all_of.go new file mode 100644 index 0000000..8ce4d41 --- /dev/null +++ b/products/cert/model_metadata_with_auto_certificate_information_all_of.go @@ -0,0 +1,118 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the MetadataWithAutoCertificateInformationAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataWithAutoCertificateInformationAllOf{} + +// MetadataWithAutoCertificateInformationAllOf struct for MetadataWithAutoCertificateInformationAllOf +type MetadataWithAutoCertificateInformationAllOf struct { + // The ID of the last certificate that was issued. + LastIssuedCertificate *string `json:"lastIssuedCertificate,omitempty"` +} + +// NewMetadataWithAutoCertificateInformationAllOf instantiates a new MetadataWithAutoCertificateInformationAllOf 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 NewMetadataWithAutoCertificateInformationAllOf() *MetadataWithAutoCertificateInformationAllOf { + this := MetadataWithAutoCertificateInformationAllOf{} + + return &this +} + +// NewMetadataWithAutoCertificateInformationAllOfWithDefaults instantiates a new MetadataWithAutoCertificateInformationAllOf 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 NewMetadataWithAutoCertificateInformationAllOfWithDefaults() *MetadataWithAutoCertificateInformationAllOf { + this := MetadataWithAutoCertificateInformationAllOf{} + return &this +} + +// GetLastIssuedCertificate returns the LastIssuedCertificate field value if set, zero value otherwise. +func (o *MetadataWithAutoCertificateInformationAllOf) GetLastIssuedCertificate() string { + if o == nil || IsNil(o.LastIssuedCertificate) { + var ret string + return ret + } + return *o.LastIssuedCertificate +} + +// GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithAutoCertificateInformationAllOf) GetLastIssuedCertificateOk() (*string, bool) { + if o == nil || IsNil(o.LastIssuedCertificate) { + return nil, false + } + return o.LastIssuedCertificate, true +} + +// HasLastIssuedCertificate returns a boolean if a field has been set. +func (o *MetadataWithAutoCertificateInformationAllOf) HasLastIssuedCertificate() bool { + if o != nil && !IsNil(o.LastIssuedCertificate) { + return true + } + + return false +} + +// SetLastIssuedCertificate gets a reference to the given string and assigns it to the LastIssuedCertificate field. +func (o *MetadataWithAutoCertificateInformationAllOf) SetLastIssuedCertificate(v string) { + o.LastIssuedCertificate = &v +} + +func (o MetadataWithAutoCertificateInformationAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LastIssuedCertificate) { + toSerialize["lastIssuedCertificate"] = o.LastIssuedCertificate + } + return toSerialize, nil +} + +type NullableMetadataWithAutoCertificateInformationAllOf struct { + value *MetadataWithAutoCertificateInformationAllOf + isSet bool +} + +func (v NullableMetadataWithAutoCertificateInformationAllOf) Get() *MetadataWithAutoCertificateInformationAllOf { + return v.value +} + +func (v *NullableMetadataWithAutoCertificateInformationAllOf) Set(val *MetadataWithAutoCertificateInformationAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataWithAutoCertificateInformationAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataWithAutoCertificateInformationAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataWithAutoCertificateInformationAllOf(val *MetadataWithAutoCertificateInformationAllOf) *NullableMetadataWithAutoCertificateInformationAllOf { + return &NullableMetadataWithAutoCertificateInformationAllOf{value: val, isSet: true} +} + +func (v NullableMetadataWithAutoCertificateInformationAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataWithAutoCertificateInformationAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_metadata_with_certificate_information.go b/products/cert/model_metadata_with_certificate_information.go new file mode 100644 index 0000000..3a52f2b --- /dev/null +++ b/products/cert/model_metadata_with_certificate_information.go @@ -0,0 +1,655 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" + + "time" +) + +// checks if the MetadataWithCertificateInformation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataWithCertificateInformation{} + +// MetadataWithCertificateInformation struct for MetadataWithCertificateInformation +type MetadataWithCertificateInformation struct { + // The ISO 8601 creation timestamp. + CreatedDate *IonosTime `json:"createdDate,omitempty"` + // Unique name of the identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // Unique id of the identity that created the resource. + CreatedByUserId *string `json:"createdByUserId,omitempty"` + // The ISO 8601 modified timestamp. + LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"` + // Unique name of the identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // Unique id of the identity that last modified the resource. + LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"` + // Unique name of the resource. + ResourceURN *string `json:"resourceURN,omitempty"` + // The resource state. + State string `json:"state"` + // A human readable message describing the current state. In case of an error, the message will contain a detailed error message. + Message string `json:"message"` + // The ID of the auto-certificate that caused issuing of the certificate. + AutoCertificate *string `json:"autoCertificate,omitempty"` + // The ID of the last issued certificate that belongs to the same auto-certificate. + LastIssuedCertificate *string `json:"lastIssuedCertificate,omitempty"` + // Indicates if the certificate is expired. + Expired bool `json:"expired"` + // The start date of the certificate. + NotBefore *IonosTime `json:"notBefore"` + // The end date of the certificate. + NotAfter *IonosTime `json:"notAfter"` + // The serial number of the certificate in hex. + SerialNumber string `json:"serialNumber"` + // The common name (DNS) of the certificate. + CommonName string `json:"commonName"` + // Optional additional names added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS. + SubjectAlternativeNames []string `json:"subjectAlternativeNames"` +} + +// NewMetadataWithCertificateInformation instantiates a new MetadataWithCertificateInformation 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 NewMetadataWithCertificateInformation(state string, message string, expired bool, notBefore time.Time, notAfter time.Time, serialNumber string, commonName string, subjectAlternativeNames []string) *MetadataWithCertificateInformation { + this := MetadataWithCertificateInformation{} + + this.State = state + this.Message = message + this.Expired = expired + this.NotBefore = &IonosTime{notBefore} + this.NotAfter = &IonosTime{notAfter} + this.SerialNumber = serialNumber + this.CommonName = commonName + this.SubjectAlternativeNames = subjectAlternativeNames + + return &this +} + +// NewMetadataWithCertificateInformationWithDefaults instantiates a new MetadataWithCertificateInformation 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 NewMetadataWithCertificateInformationWithDefaults() *MetadataWithCertificateInformation { + this := MetadataWithCertificateInformation{} + return &this +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetCreatedDate() time.Time { + if o == nil || IsNil(o.CreatedDate) { + var ret time.Time + return ret + } + return o.CreatedDate.Time +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetCreatedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return &o.CreatedDate.Time, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field. +func (o *MetadataWithCertificateInformation) SetCreatedDate(v time.Time) { + o.CreatedDate = &IonosTime{v} +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *MetadataWithCertificateInformation) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetCreatedByUserId() string { + if o == nil || IsNil(o.CreatedByUserId) { + var ret string + return ret + } + return *o.CreatedByUserId +} + +// GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetCreatedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByUserId) { + return nil, false + } + return o.CreatedByUserId, true +} + +// HasCreatedByUserId returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasCreatedByUserId() bool { + if o != nil && !IsNil(o.CreatedByUserId) { + return true + } + + return false +} + +// SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field. +func (o *MetadataWithCertificateInformation) SetCreatedByUserId(v string) { + o.CreatedByUserId = &v +} + +// GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetLastModifiedDate() time.Time { + if o == nil || IsNil(o.LastModifiedDate) { + var ret time.Time + return ret + } + return o.LastModifiedDate.Time +} + +// GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetLastModifiedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastModifiedDate) { + return nil, false + } + return &o.LastModifiedDate.Time, true +} + +// HasLastModifiedDate returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasLastModifiedDate() bool { + if o != nil && !IsNil(o.LastModifiedDate) { + return true + } + + return false +} + +// SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field. +func (o *MetadataWithCertificateInformation) SetLastModifiedDate(v time.Time) { + o.LastModifiedDate = &IonosTime{v} +} + +// GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetLastModifiedBy() string { + if o == nil || IsNil(o.LastModifiedBy) { + var ret string + return ret + } + return *o.LastModifiedBy +} + +// GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetLastModifiedByOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedBy) { + return nil, false + } + return o.LastModifiedBy, true +} + +// HasLastModifiedBy returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasLastModifiedBy() bool { + if o != nil && !IsNil(o.LastModifiedBy) { + return true + } + + return false +} + +// SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field. +func (o *MetadataWithCertificateInformation) SetLastModifiedBy(v string) { + o.LastModifiedBy = &v +} + +// GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetLastModifiedByUserId() string { + if o == nil || IsNil(o.LastModifiedByUserId) { + var ret string + return ret + } + return *o.LastModifiedByUserId +} + +// GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetLastModifiedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedByUserId) { + return nil, false + } + return o.LastModifiedByUserId, true +} + +// HasLastModifiedByUserId returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasLastModifiedByUserId() bool { + if o != nil && !IsNil(o.LastModifiedByUserId) { + return true + } + + return false +} + +// SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field. +func (o *MetadataWithCertificateInformation) SetLastModifiedByUserId(v string) { + o.LastModifiedByUserId = &v +} + +// GetResourceURN returns the ResourceURN field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetResourceURN() string { + if o == nil || IsNil(o.ResourceURN) { + var ret string + return ret + } + return *o.ResourceURN +} + +// GetResourceURNOk returns a tuple with the ResourceURN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetResourceURNOk() (*string, bool) { + if o == nil || IsNil(o.ResourceURN) { + return nil, false + } + return o.ResourceURN, true +} + +// HasResourceURN returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasResourceURN() bool { + if o != nil && !IsNil(o.ResourceURN) { + return true + } + + return false +} + +// SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field. +func (o *MetadataWithCertificateInformation) SetResourceURN(v string) { + o.ResourceURN = &v +} + +// GetState returns the State field value +func (o *MetadataWithCertificateInformation) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *MetadataWithCertificateInformation) SetState(v string) { + o.State = v +} + +// GetMessage returns the Message field value +func (o *MetadataWithCertificateInformation) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *MetadataWithCertificateInformation) SetMessage(v string) { + o.Message = v +} + +// GetAutoCertificate returns the AutoCertificate field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetAutoCertificate() string { + if o == nil || IsNil(o.AutoCertificate) { + var ret string + return ret + } + return *o.AutoCertificate +} + +// GetAutoCertificateOk returns a tuple with the AutoCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetAutoCertificateOk() (*string, bool) { + if o == nil || IsNil(o.AutoCertificate) { + return nil, false + } + return o.AutoCertificate, true +} + +// HasAutoCertificate returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasAutoCertificate() bool { + if o != nil && !IsNil(o.AutoCertificate) { + return true + } + + return false +} + +// SetAutoCertificate gets a reference to the given string and assigns it to the AutoCertificate field. +func (o *MetadataWithCertificateInformation) SetAutoCertificate(v string) { + o.AutoCertificate = &v +} + +// GetLastIssuedCertificate returns the LastIssuedCertificate field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformation) GetLastIssuedCertificate() string { + if o == nil || IsNil(o.LastIssuedCertificate) { + var ret string + return ret + } + return *o.LastIssuedCertificate +} + +// GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetLastIssuedCertificateOk() (*string, bool) { + if o == nil || IsNil(o.LastIssuedCertificate) { + return nil, false + } + return o.LastIssuedCertificate, true +} + +// HasLastIssuedCertificate returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformation) HasLastIssuedCertificate() bool { + if o != nil && !IsNil(o.LastIssuedCertificate) { + return true + } + + return false +} + +// SetLastIssuedCertificate gets a reference to the given string and assigns it to the LastIssuedCertificate field. +func (o *MetadataWithCertificateInformation) SetLastIssuedCertificate(v string) { + o.LastIssuedCertificate = &v +} + +// GetExpired returns the Expired field value +func (o *MetadataWithCertificateInformation) GetExpired() bool { + if o == nil { + var ret bool + return ret + } + + return o.Expired +} + +// GetExpiredOk returns a tuple with the Expired field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetExpiredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Expired, true +} + +// SetExpired sets field value +func (o *MetadataWithCertificateInformation) SetExpired(v bool) { + o.Expired = v +} + +// GetNotBefore returns the NotBefore field value +func (o *MetadataWithCertificateInformation) GetNotBefore() time.Time { + if o == nil { + var ret time.Time + return ret + } + + if o.NotBefore == nil { + var ret time.Time + return ret + } + return o.NotBefore.Time +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetNotBeforeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + if o.NotBefore == nil { + return nil, true + } + return &o.NotBefore.Time, true +} + +// SetNotBefore sets field value +func (o *MetadataWithCertificateInformation) SetNotBefore(v time.Time) { + o.NotBefore = &IonosTime{v} +} + +// GetNotAfter returns the NotAfter field value +func (o *MetadataWithCertificateInformation) GetNotAfter() time.Time { + if o == nil { + var ret time.Time + return ret + } + + if o.NotAfter == nil { + var ret time.Time + return ret + } + return o.NotAfter.Time +} + +// GetNotAfterOk returns a tuple with the NotAfter field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetNotAfterOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + if o.NotAfter == nil { + return nil, true + } + return &o.NotAfter.Time, true +} + +// SetNotAfter sets field value +func (o *MetadataWithCertificateInformation) SetNotAfter(v time.Time) { + o.NotAfter = &IonosTime{v} +} + +// GetSerialNumber returns the SerialNumber field value +func (o *MetadataWithCertificateInformation) GetSerialNumber() string { + if o == nil { + var ret string + return ret + } + + return o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SerialNumber, true +} + +// SetSerialNumber sets field value +func (o *MetadataWithCertificateInformation) SetSerialNumber(v string) { + o.SerialNumber = v +} + +// GetCommonName returns the CommonName field value +func (o *MetadataWithCertificateInformation) GetCommonName() string { + if o == nil { + var ret string + return ret + } + + return o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommonName, true +} + +// SetCommonName sets field value +func (o *MetadataWithCertificateInformation) SetCommonName(v string) { + o.CommonName = v +} + +// GetSubjectAlternativeNames returns the SubjectAlternativeNames field value +func (o *MetadataWithCertificateInformation) GetSubjectAlternativeNames() []string { + if o == nil { + var ret []string + return ret + } + + return o.SubjectAlternativeNames +} + +// GetSubjectAlternativeNamesOk returns a tuple with the SubjectAlternativeNames field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformation) GetSubjectAlternativeNamesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.SubjectAlternativeNames, true +} + +// SetSubjectAlternativeNames sets field value +func (o *MetadataWithCertificateInformation) SetSubjectAlternativeNames(v []string) { + o.SubjectAlternativeNames = v +} + +func (o MetadataWithCertificateInformation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedByUserId) { + toSerialize["createdByUserId"] = o.CreatedByUserId + } + if !IsNil(o.LastModifiedDate) { + toSerialize["lastModifiedDate"] = o.LastModifiedDate + } + if !IsNil(o.LastModifiedBy) { + toSerialize["lastModifiedBy"] = o.LastModifiedBy + } + if !IsNil(o.LastModifiedByUserId) { + toSerialize["lastModifiedByUserId"] = o.LastModifiedByUserId + } + if !IsNil(o.ResourceURN) { + toSerialize["resourceURN"] = o.ResourceURN + } + toSerialize["state"] = o.State + toSerialize["message"] = o.Message + if !IsNil(o.AutoCertificate) { + toSerialize["autoCertificate"] = o.AutoCertificate + } + if !IsNil(o.LastIssuedCertificate) { + toSerialize["lastIssuedCertificate"] = o.LastIssuedCertificate + } + toSerialize["expired"] = o.Expired + toSerialize["notBefore"] = o.NotBefore + toSerialize["notAfter"] = o.NotAfter + toSerialize["serialNumber"] = o.SerialNumber + toSerialize["commonName"] = o.CommonName + toSerialize["subjectAlternativeNames"] = o.SubjectAlternativeNames + return toSerialize, nil +} + +type NullableMetadataWithCertificateInformation struct { + value *MetadataWithCertificateInformation + isSet bool +} + +func (v NullableMetadataWithCertificateInformation) Get() *MetadataWithCertificateInformation { + return v.value +} + +func (v *NullableMetadataWithCertificateInformation) Set(val *MetadataWithCertificateInformation) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataWithCertificateInformation) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataWithCertificateInformation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataWithCertificateInformation(val *MetadataWithCertificateInformation) *NullableMetadataWithCertificateInformation { + return &NullableMetadataWithCertificateInformation{value: val, isSet: true} +} + +func (v NullableMetadataWithCertificateInformation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataWithCertificateInformation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_metadata_with_certificate_information_all_of.go b/products/cert/model_metadata_with_certificate_information_all_of.go new file mode 100644 index 0000000..a170a87 --- /dev/null +++ b/products/cert/model_metadata_with_certificate_information_all_of.go @@ -0,0 +1,340 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" + + "time" +) + +// checks if the MetadataWithCertificateInformationAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataWithCertificateInformationAllOf{} + +// MetadataWithCertificateInformationAllOf struct for MetadataWithCertificateInformationAllOf +type MetadataWithCertificateInformationAllOf struct { + // The ID of the auto-certificate that caused issuing of the certificate. + AutoCertificate *string `json:"autoCertificate,omitempty"` + // The ID of the last issued certificate that belongs to the same auto-certificate. + LastIssuedCertificate *string `json:"lastIssuedCertificate,omitempty"` + // Indicates if the certificate is expired. + Expired bool `json:"expired"` + // The start date of the certificate. + NotBefore *IonosTime `json:"notBefore"` + // The end date of the certificate. + NotAfter *IonosTime `json:"notAfter"` + // The serial number of the certificate in hex. + SerialNumber string `json:"serialNumber"` + // The common name (DNS) of the certificate. + CommonName string `json:"commonName"` + // Optional additional names added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS. + SubjectAlternativeNames []string `json:"subjectAlternativeNames"` +} + +// NewMetadataWithCertificateInformationAllOf instantiates a new MetadataWithCertificateInformationAllOf 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 NewMetadataWithCertificateInformationAllOf(expired bool, notBefore time.Time, notAfter time.Time, serialNumber string, commonName string, subjectAlternativeNames []string) *MetadataWithCertificateInformationAllOf { + this := MetadataWithCertificateInformationAllOf{} + + this.Expired = expired + this.NotBefore = &IonosTime{notBefore} + this.NotAfter = &IonosTime{notAfter} + this.SerialNumber = serialNumber + this.CommonName = commonName + this.SubjectAlternativeNames = subjectAlternativeNames + + return &this +} + +// NewMetadataWithCertificateInformationAllOfWithDefaults instantiates a new MetadataWithCertificateInformationAllOf 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 NewMetadataWithCertificateInformationAllOfWithDefaults() *MetadataWithCertificateInformationAllOf { + this := MetadataWithCertificateInformationAllOf{} + return &this +} + +// GetAutoCertificate returns the AutoCertificate field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformationAllOf) GetAutoCertificate() string { + if o == nil || IsNil(o.AutoCertificate) { + var ret string + return ret + } + return *o.AutoCertificate +} + +// GetAutoCertificateOk returns a tuple with the AutoCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetAutoCertificateOk() (*string, bool) { + if o == nil || IsNil(o.AutoCertificate) { + return nil, false + } + return o.AutoCertificate, true +} + +// HasAutoCertificate returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformationAllOf) HasAutoCertificate() bool { + if o != nil && !IsNil(o.AutoCertificate) { + return true + } + + return false +} + +// SetAutoCertificate gets a reference to the given string and assigns it to the AutoCertificate field. +func (o *MetadataWithCertificateInformationAllOf) SetAutoCertificate(v string) { + o.AutoCertificate = &v +} + +// GetLastIssuedCertificate returns the LastIssuedCertificate field value if set, zero value otherwise. +func (o *MetadataWithCertificateInformationAllOf) GetLastIssuedCertificate() string { + if o == nil || IsNil(o.LastIssuedCertificate) { + var ret string + return ret + } + return *o.LastIssuedCertificate +} + +// GetLastIssuedCertificateOk returns a tuple with the LastIssuedCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetLastIssuedCertificateOk() (*string, bool) { + if o == nil || IsNil(o.LastIssuedCertificate) { + return nil, false + } + return o.LastIssuedCertificate, true +} + +// HasLastIssuedCertificate returns a boolean if a field has been set. +func (o *MetadataWithCertificateInformationAllOf) HasLastIssuedCertificate() bool { + if o != nil && !IsNil(o.LastIssuedCertificate) { + return true + } + + return false +} + +// SetLastIssuedCertificate gets a reference to the given string and assigns it to the LastIssuedCertificate field. +func (o *MetadataWithCertificateInformationAllOf) SetLastIssuedCertificate(v string) { + o.LastIssuedCertificate = &v +} + +// GetExpired returns the Expired field value +func (o *MetadataWithCertificateInformationAllOf) GetExpired() bool { + if o == nil { + var ret bool + return ret + } + + return o.Expired +} + +// GetExpiredOk returns a tuple with the Expired field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetExpiredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Expired, true +} + +// SetExpired sets field value +func (o *MetadataWithCertificateInformationAllOf) SetExpired(v bool) { + o.Expired = v +} + +// GetNotBefore returns the NotBefore field value +func (o *MetadataWithCertificateInformationAllOf) GetNotBefore() time.Time { + if o == nil { + var ret time.Time + return ret + } + + if o.NotBefore == nil { + var ret time.Time + return ret + } + return o.NotBefore.Time +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetNotBeforeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + if o.NotBefore == nil { + return nil, true + } + return &o.NotBefore.Time, true +} + +// SetNotBefore sets field value +func (o *MetadataWithCertificateInformationAllOf) SetNotBefore(v time.Time) { + o.NotBefore = &IonosTime{v} +} + +// GetNotAfter returns the NotAfter field value +func (o *MetadataWithCertificateInformationAllOf) GetNotAfter() time.Time { + if o == nil { + var ret time.Time + return ret + } + + if o.NotAfter == nil { + var ret time.Time + return ret + } + return o.NotAfter.Time +} + +// GetNotAfterOk returns a tuple with the NotAfter field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetNotAfterOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + if o.NotAfter == nil { + return nil, true + } + return &o.NotAfter.Time, true +} + +// SetNotAfter sets field value +func (o *MetadataWithCertificateInformationAllOf) SetNotAfter(v time.Time) { + o.NotAfter = &IonosTime{v} +} + +// GetSerialNumber returns the SerialNumber field value +func (o *MetadataWithCertificateInformationAllOf) GetSerialNumber() string { + if o == nil { + var ret string + return ret + } + + return o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SerialNumber, true +} + +// SetSerialNumber sets field value +func (o *MetadataWithCertificateInformationAllOf) SetSerialNumber(v string) { + o.SerialNumber = v +} + +// GetCommonName returns the CommonName field value +func (o *MetadataWithCertificateInformationAllOf) GetCommonName() string { + if o == nil { + var ret string + return ret + } + + return o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommonName, true +} + +// SetCommonName sets field value +func (o *MetadataWithCertificateInformationAllOf) SetCommonName(v string) { + o.CommonName = v +} + +// GetSubjectAlternativeNames returns the SubjectAlternativeNames field value +func (o *MetadataWithCertificateInformationAllOf) GetSubjectAlternativeNames() []string { + if o == nil { + var ret []string + return ret + } + + return o.SubjectAlternativeNames +} + +// GetSubjectAlternativeNamesOk returns a tuple with the SubjectAlternativeNames field value +// and a boolean to check if the value has been set. +func (o *MetadataWithCertificateInformationAllOf) GetSubjectAlternativeNamesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.SubjectAlternativeNames, true +} + +// SetSubjectAlternativeNames sets field value +func (o *MetadataWithCertificateInformationAllOf) SetSubjectAlternativeNames(v []string) { + o.SubjectAlternativeNames = v +} + +func (o MetadataWithCertificateInformationAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AutoCertificate) { + toSerialize["autoCertificate"] = o.AutoCertificate + } + if !IsNil(o.LastIssuedCertificate) { + toSerialize["lastIssuedCertificate"] = o.LastIssuedCertificate + } + toSerialize["expired"] = o.Expired + toSerialize["notBefore"] = o.NotBefore + toSerialize["notAfter"] = o.NotAfter + toSerialize["serialNumber"] = o.SerialNumber + toSerialize["commonName"] = o.CommonName + toSerialize["subjectAlternativeNames"] = o.SubjectAlternativeNames + return toSerialize, nil +} + +type NullableMetadataWithCertificateInformationAllOf struct { + value *MetadataWithCertificateInformationAllOf + isSet bool +} + +func (v NullableMetadataWithCertificateInformationAllOf) Get() *MetadataWithCertificateInformationAllOf { + return v.value +} + +func (v *NullableMetadataWithCertificateInformationAllOf) Set(val *MetadataWithCertificateInformationAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataWithCertificateInformationAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataWithCertificateInformationAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataWithCertificateInformationAllOf(val *MetadataWithCertificateInformationAllOf) *NullableMetadataWithCertificateInformationAllOf { + return &NullableMetadataWithCertificateInformationAllOf{value: val, isSet: true} +} + +func (v NullableMetadataWithCertificateInformationAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataWithCertificateInformationAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_metadata_with_status.go b/products/cert/model_metadata_with_status.go new file mode 100644 index 0000000..d457889 --- /dev/null +++ b/products/cert/model_metadata_with_status.go @@ -0,0 +1,399 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" + + "time" +) + +// checks if the MetadataWithStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataWithStatus{} + +// MetadataWithStatus struct for MetadataWithStatus +type MetadataWithStatus struct { + // The ISO 8601 creation timestamp. + CreatedDate *IonosTime `json:"createdDate,omitempty"` + // Unique name of the identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // Unique id of the identity that created the resource. + CreatedByUserId *string `json:"createdByUserId,omitempty"` + // The ISO 8601 modified timestamp. + LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"` + // Unique name of the identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // Unique id of the identity that last modified the resource. + LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"` + // Unique name of the resource. + ResourceURN *string `json:"resourceURN,omitempty"` + // The resource state. + State string `json:"state"` + // A human readable message describing the current state. In case of an error, the message will contain a detailed error message. + Message string `json:"message"` +} + +// NewMetadataWithStatus instantiates a new MetadataWithStatus 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 NewMetadataWithStatus(state string, message string) *MetadataWithStatus { + this := MetadataWithStatus{} + + this.State = state + this.Message = message + + return &this +} + +// NewMetadataWithStatusWithDefaults instantiates a new MetadataWithStatus 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 NewMetadataWithStatusWithDefaults() *MetadataWithStatus { + this := MetadataWithStatus{} + return &this +} + +// GetCreatedDate returns the CreatedDate field value if set, zero value otherwise. +func (o *MetadataWithStatus) GetCreatedDate() time.Time { + if o == nil || IsNil(o.CreatedDate) { + var ret time.Time + return ret + } + return o.CreatedDate.Time +} + +// GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetCreatedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedDate) { + return nil, false + } + return &o.CreatedDate.Time, true +} + +// HasCreatedDate returns a boolean if a field has been set. +func (o *MetadataWithStatus) HasCreatedDate() bool { + if o != nil && !IsNil(o.CreatedDate) { + return true + } + + return false +} + +// SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field. +func (o *MetadataWithStatus) SetCreatedDate(v time.Time) { + o.CreatedDate = &IonosTime{v} +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *MetadataWithStatus) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *MetadataWithStatus) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *MetadataWithStatus) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedByUserId returns the CreatedByUserId field value if set, zero value otherwise. +func (o *MetadataWithStatus) GetCreatedByUserId() string { + if o == nil || IsNil(o.CreatedByUserId) { + var ret string + return ret + } + return *o.CreatedByUserId +} + +// GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetCreatedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByUserId) { + return nil, false + } + return o.CreatedByUserId, true +} + +// HasCreatedByUserId returns a boolean if a field has been set. +func (o *MetadataWithStatus) HasCreatedByUserId() bool { + if o != nil && !IsNil(o.CreatedByUserId) { + return true + } + + return false +} + +// SetCreatedByUserId gets a reference to the given string and assigns it to the CreatedByUserId field. +func (o *MetadataWithStatus) SetCreatedByUserId(v string) { + o.CreatedByUserId = &v +} + +// GetLastModifiedDate returns the LastModifiedDate field value if set, zero value otherwise. +func (o *MetadataWithStatus) GetLastModifiedDate() time.Time { + if o == nil || IsNil(o.LastModifiedDate) { + var ret time.Time + return ret + } + return o.LastModifiedDate.Time +} + +// GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetLastModifiedDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastModifiedDate) { + return nil, false + } + return &o.LastModifiedDate.Time, true +} + +// HasLastModifiedDate returns a boolean if a field has been set. +func (o *MetadataWithStatus) HasLastModifiedDate() bool { + if o != nil && !IsNil(o.LastModifiedDate) { + return true + } + + return false +} + +// SetLastModifiedDate gets a reference to the given time.Time and assigns it to the LastModifiedDate field. +func (o *MetadataWithStatus) SetLastModifiedDate(v time.Time) { + o.LastModifiedDate = &IonosTime{v} +} + +// GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise. +func (o *MetadataWithStatus) GetLastModifiedBy() string { + if o == nil || IsNil(o.LastModifiedBy) { + var ret string + return ret + } + return *o.LastModifiedBy +} + +// GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetLastModifiedByOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedBy) { + return nil, false + } + return o.LastModifiedBy, true +} + +// HasLastModifiedBy returns a boolean if a field has been set. +func (o *MetadataWithStatus) HasLastModifiedBy() bool { + if o != nil && !IsNil(o.LastModifiedBy) { + return true + } + + return false +} + +// SetLastModifiedBy gets a reference to the given string and assigns it to the LastModifiedBy field. +func (o *MetadataWithStatus) SetLastModifiedBy(v string) { + o.LastModifiedBy = &v +} + +// GetLastModifiedByUserId returns the LastModifiedByUserId field value if set, zero value otherwise. +func (o *MetadataWithStatus) GetLastModifiedByUserId() string { + if o == nil || IsNil(o.LastModifiedByUserId) { + var ret string + return ret + } + return *o.LastModifiedByUserId +} + +// GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetLastModifiedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.LastModifiedByUserId) { + return nil, false + } + return o.LastModifiedByUserId, true +} + +// HasLastModifiedByUserId returns a boolean if a field has been set. +func (o *MetadataWithStatus) HasLastModifiedByUserId() bool { + if o != nil && !IsNil(o.LastModifiedByUserId) { + return true + } + + return false +} + +// SetLastModifiedByUserId gets a reference to the given string and assigns it to the LastModifiedByUserId field. +func (o *MetadataWithStatus) SetLastModifiedByUserId(v string) { + o.LastModifiedByUserId = &v +} + +// GetResourceURN returns the ResourceURN field value if set, zero value otherwise. +func (o *MetadataWithStatus) GetResourceURN() string { + if o == nil || IsNil(o.ResourceURN) { + var ret string + return ret + } + return *o.ResourceURN +} + +// GetResourceURNOk returns a tuple with the ResourceURN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetResourceURNOk() (*string, bool) { + if o == nil || IsNil(o.ResourceURN) { + return nil, false + } + return o.ResourceURN, true +} + +// HasResourceURN returns a boolean if a field has been set. +func (o *MetadataWithStatus) HasResourceURN() bool { + if o != nil && !IsNil(o.ResourceURN) { + return true + } + + return false +} + +// SetResourceURN gets a reference to the given string and assigns it to the ResourceURN field. +func (o *MetadataWithStatus) SetResourceURN(v string) { + o.ResourceURN = &v +} + +// GetState returns the State field value +func (o *MetadataWithStatus) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *MetadataWithStatus) SetState(v string) { + o.State = v +} + +// GetMessage returns the Message field value +func (o *MetadataWithStatus) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *MetadataWithStatus) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *MetadataWithStatus) SetMessage(v string) { + o.Message = v +} + +func (o MetadataWithStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedDate) { + toSerialize["createdDate"] = o.CreatedDate + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedByUserId) { + toSerialize["createdByUserId"] = o.CreatedByUserId + } + if !IsNil(o.LastModifiedDate) { + toSerialize["lastModifiedDate"] = o.LastModifiedDate + } + if !IsNil(o.LastModifiedBy) { + toSerialize["lastModifiedBy"] = o.LastModifiedBy + } + if !IsNil(o.LastModifiedByUserId) { + toSerialize["lastModifiedByUserId"] = o.LastModifiedByUserId + } + if !IsNil(o.ResourceURN) { + toSerialize["resourceURN"] = o.ResourceURN + } + toSerialize["state"] = o.State + toSerialize["message"] = o.Message + return toSerialize, nil +} + +type NullableMetadataWithStatus struct { + value *MetadataWithStatus + isSet bool +} + +func (v NullableMetadataWithStatus) Get() *MetadataWithStatus { + return v.value +} + +func (v *NullableMetadataWithStatus) Set(val *MetadataWithStatus) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataWithStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataWithStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataWithStatus(val *MetadataWithStatus) *NullableMetadataWithStatus { + return &NullableMetadataWithStatus{value: val, isSet: true} +} + +func (v NullableMetadataWithStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataWithStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_metadata_with_status_all_of.go b/products/cert/model_metadata_with_status_all_of.go new file mode 100644 index 0000000..1e88d3d --- /dev/null +++ b/products/cert/model_metadata_with_status_all_of.go @@ -0,0 +1,138 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the MetadataWithStatusAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataWithStatusAllOf{} + +// MetadataWithStatusAllOf struct for MetadataWithStatusAllOf +type MetadataWithStatusAllOf struct { + // The resource state. + State string `json:"state"` + // A human readable message describing the current state. In case of an error, the message will contain a detailed error message. + Message string `json:"message"` +} + +// NewMetadataWithStatusAllOf instantiates a new MetadataWithStatusAllOf 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 NewMetadataWithStatusAllOf(state string, message string) *MetadataWithStatusAllOf { + this := MetadataWithStatusAllOf{} + + this.State = state + this.Message = message + + return &this +} + +// NewMetadataWithStatusAllOfWithDefaults instantiates a new MetadataWithStatusAllOf 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 NewMetadataWithStatusAllOfWithDefaults() *MetadataWithStatusAllOf { + this := MetadataWithStatusAllOf{} + return &this +} + +// GetState returns the State field value +func (o *MetadataWithStatusAllOf) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *MetadataWithStatusAllOf) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *MetadataWithStatusAllOf) SetState(v string) { + o.State = v +} + +// GetMessage returns the Message field value +func (o *MetadataWithStatusAllOf) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *MetadataWithStatusAllOf) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *MetadataWithStatusAllOf) SetMessage(v string) { + o.Message = v +} + +func (o MetadataWithStatusAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["state"] = o.State + toSerialize["message"] = o.Message + return toSerialize, nil +} + +type NullableMetadataWithStatusAllOf struct { + value *MetadataWithStatusAllOf + isSet bool +} + +func (v NullableMetadataWithStatusAllOf) Get() *MetadataWithStatusAllOf { + return v.value +} + +func (v *NullableMetadataWithStatusAllOf) Set(val *MetadataWithStatusAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataWithStatusAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataWithStatusAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataWithStatusAllOf(val *MetadataWithStatusAllOf) *NullableMetadataWithStatusAllOf { + return &NullableMetadataWithStatusAllOf{value: val, isSet: true} +} + +func (v NullableMetadataWithStatusAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataWithStatusAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_pagination.go b/products/cert/model_pagination.go new file mode 100644 index 0000000..8180cf0 --- /dev/null +++ b/products/cert/model_pagination.go @@ -0,0 +1,165 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the Pagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Pagination{} + +// Pagination Pagination information. The offset and limit parameters are used to navigate the list of elements. The _links object contains URLs to navigate the different pages. +type Pagination struct { + // The offset specified in the request (if none was specified, the default offset is 0). + Offset int32 `json:"offset"` + // The limit specified in the request (if none was specified, use the endpoint's default pagination limit). + Limit int32 `json:"limit"` + Links Links `json:"_links"` +} + +// NewPagination instantiates a new Pagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPagination(offset int32, limit int32, links Links) *Pagination { + this := Pagination{} + + this.Offset = offset + this.Limit = limit + this.Links = links + + return &this +} + +// NewPaginationWithDefaults instantiates a new Pagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginationWithDefaults() *Pagination { + this := Pagination{} + return &this +} + +// GetOffset returns the Offset field value +func (o *Pagination) GetOffset() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *Pagination) GetOffsetOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *Pagination) SetOffset(v int32) { + o.Offset = v +} + +// GetLimit returns the Limit field value +func (o *Pagination) GetLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *Pagination) GetLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *Pagination) SetLimit(v int32) { + o.Limit = v +} + +// GetLinks returns the Links field value +func (o *Pagination) GetLinks() Links { + if o == nil { + var ret Links + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *Pagination) GetLinksOk() (*Links, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *Pagination) SetLinks(v Links) { + o.Links = v +} + +func (o Pagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["offset"] = o.Offset + toSerialize["limit"] = o.Limit + toSerialize["_links"] = o.Links + return toSerialize, nil +} + +type NullablePagination struct { + value *Pagination + isSet bool +} + +func (v NullablePagination) Get() *Pagination { + return v.value +} + +func (v *NullablePagination) Set(val *Pagination) { + v.value = val + v.isSet = true +} + +func (v NullablePagination) IsSet() bool { + return v.isSet +} + +func (v *NullablePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePagination(val *Pagination) *NullablePagination { + return &NullablePagination{value: val, isSet: true} +} + +func (v NullablePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_patch_name.go b/products/cert/model_patch_name.go new file mode 100644 index 0000000..c0989d1 --- /dev/null +++ b/products/cert/model_patch_name.go @@ -0,0 +1,110 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the PatchName type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchName{} + +// PatchName struct for PatchName +type PatchName struct { + // The new name. + Name string `json:"name"` +} + +// NewPatchName instantiates a new PatchName 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 NewPatchName(name string) *PatchName { + this := PatchName{} + + this.Name = name + + return &this +} + +// NewPatchNameWithDefaults instantiates a new PatchName 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 NewPatchNameWithDefaults() *PatchName { + this := PatchName{} + return &this +} + +// GetName returns the Name field value +func (o *PatchName) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PatchName) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PatchName) SetName(v string) { + o.Name = v +} + +func (o PatchName) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullablePatchName struct { + value *PatchName + isSet bool +} + +func (v NullablePatchName) Get() *PatchName { + return v.value +} + +func (v *NullablePatchName) Set(val *PatchName) { + v.value = val + v.isSet = true +} + +func (v NullablePatchName) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchName(val *PatchName) *NullablePatchName { + return &NullablePatchName{value: val, isSet: true} +} + +func (v NullablePatchName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_provider.go b/products/cert/model_provider.go new file mode 100644 index 0000000..4c2b31c --- /dev/null +++ b/products/cert/model_provider.go @@ -0,0 +1,202 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the Provider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Provider{} + +// Provider Certificate provider used to renew certificates before their expiry. +type Provider struct { + // The name of the certificate provider. + Name string `json:"name"` + // The email address of the certificate requester. + Email string `json:"email"` + // The URL of the certificate provider. + Server string `json:"server"` + ExternalAccountBinding *ProviderExternalAccountBinding `json:"externalAccountBinding,omitempty"` +} + +// NewProvider instantiates a new Provider 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 NewProvider(name string, email string, server string) *Provider { + this := Provider{} + + this.Name = name + this.Email = email + this.Server = server + + return &this +} + +// NewProviderWithDefaults instantiates a new Provider 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 NewProviderWithDefaults() *Provider { + this := Provider{} + return &this +} + +// GetName returns the Name field value +func (o *Provider) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Provider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Provider) SetName(v string) { + o.Name = v +} + +// GetEmail returns the Email field value +func (o *Provider) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *Provider) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *Provider) SetEmail(v string) { + o.Email = v +} + +// GetServer returns the Server field value +func (o *Provider) GetServer() string { + if o == nil { + var ret string + return ret + } + + return o.Server +} + +// GetServerOk returns a tuple with the Server field value +// and a boolean to check if the value has been set. +func (o *Provider) GetServerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Server, true +} + +// SetServer sets field value +func (o *Provider) SetServer(v string) { + o.Server = v +} + +// GetExternalAccountBinding returns the ExternalAccountBinding field value if set, zero value otherwise. +func (o *Provider) GetExternalAccountBinding() ProviderExternalAccountBinding { + if o == nil || IsNil(o.ExternalAccountBinding) { + var ret ProviderExternalAccountBinding + return ret + } + return *o.ExternalAccountBinding +} + +// GetExternalAccountBindingOk returns a tuple with the ExternalAccountBinding field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetExternalAccountBindingOk() (*ProviderExternalAccountBinding, bool) { + if o == nil || IsNil(o.ExternalAccountBinding) { + return nil, false + } + return o.ExternalAccountBinding, true +} + +// HasExternalAccountBinding returns a boolean if a field has been set. +func (o *Provider) HasExternalAccountBinding() bool { + if o != nil && !IsNil(o.ExternalAccountBinding) { + return true + } + + return false +} + +// SetExternalAccountBinding gets a reference to the given ProviderExternalAccountBinding and assigns it to the ExternalAccountBinding field. +func (o *Provider) SetExternalAccountBinding(v ProviderExternalAccountBinding) { + o.ExternalAccountBinding = &v +} + +func (o Provider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["email"] = o.Email + toSerialize["server"] = o.Server + if !IsNil(o.ExternalAccountBinding) { + toSerialize["externalAccountBinding"] = o.ExternalAccountBinding + } + return toSerialize, nil +} + +type NullableProvider struct { + value *Provider + isSet bool +} + +func (v NullableProvider) Get() *Provider { + return v.value +} + +func (v *NullableProvider) Set(val *Provider) { + v.value = val + v.isSet = true +} + +func (v NullableProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProvider(val *Provider) *NullableProvider { + return &NullableProvider{value: val, isSet: true} +} + +func (v NullableProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_provider_create.go b/products/cert/model_provider_create.go new file mode 100644 index 0000000..cfa54db --- /dev/null +++ b/products/cert/model_provider_create.go @@ -0,0 +1,146 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the ProviderCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProviderCreate{} + +// ProviderCreate struct for ProviderCreate +type ProviderCreate struct { + // Metadata + Metadata map[string]interface{} `json:"metadata,omitempty"` + Properties Provider `json:"properties"` +} + +// NewProviderCreate instantiates a new ProviderCreate 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 NewProviderCreate(properties Provider) *ProviderCreate { + this := ProviderCreate{} + + this.Properties = properties + + return &this +} + +// NewProviderCreateWithDefaults instantiates a new ProviderCreate 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 NewProviderCreateWithDefaults() *ProviderCreate { + this := ProviderCreate{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ProviderCreate) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderCreate) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ProviderCreate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *ProviderCreate) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *ProviderCreate) GetProperties() Provider { + if o == nil { + var ret Provider + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *ProviderCreate) GetPropertiesOk() (*Provider, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *ProviderCreate) SetProperties(v Provider) { + o.Properties = v +} + +func (o ProviderCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableProviderCreate struct { + value *ProviderCreate + isSet bool +} + +func (v NullableProviderCreate) Get() *ProviderCreate { + return v.value +} + +func (v *NullableProviderCreate) Set(val *ProviderCreate) { + v.value = val + v.isSet = true +} + +func (v NullableProviderCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableProviderCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProviderCreate(val *ProviderCreate) *NullableProviderCreate { + return &NullableProviderCreate{value: val, isSet: true} +} + +func (v NullableProviderCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProviderCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_provider_external_account_binding.go b/products/cert/model_provider_external_account_binding.go new file mode 100644 index 0000000..bdf8da8 --- /dev/null +++ b/products/cert/model_provider_external_account_binding.go @@ -0,0 +1,155 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the ProviderExternalAccountBinding type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProviderExternalAccountBinding{} + +// ProviderExternalAccountBinding struct for ProviderExternalAccountBinding +type ProviderExternalAccountBinding struct { + // The key ID of the external account binding. + KeyId *string `json:"keyId,omitempty"` + // The secret of the external account binding. + KeySecret *string `json:"keySecret,omitempty"` +} + +// NewProviderExternalAccountBinding instantiates a new ProviderExternalAccountBinding 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 NewProviderExternalAccountBinding() *ProviderExternalAccountBinding { + this := ProviderExternalAccountBinding{} + + return &this +} + +// NewProviderExternalAccountBindingWithDefaults instantiates a new ProviderExternalAccountBinding 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 NewProviderExternalAccountBindingWithDefaults() *ProviderExternalAccountBinding { + this := ProviderExternalAccountBinding{} + return &this +} + +// GetKeyId returns the KeyId field value if set, zero value otherwise. +func (o *ProviderExternalAccountBinding) GetKeyId() string { + if o == nil || IsNil(o.KeyId) { + var ret string + return ret + } + return *o.KeyId +} + +// GetKeyIdOk returns a tuple with the KeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderExternalAccountBinding) GetKeyIdOk() (*string, bool) { + if o == nil || IsNil(o.KeyId) { + return nil, false + } + return o.KeyId, true +} + +// HasKeyId returns a boolean if a field has been set. +func (o *ProviderExternalAccountBinding) HasKeyId() bool { + if o != nil && !IsNil(o.KeyId) { + return true + } + + return false +} + +// SetKeyId gets a reference to the given string and assigns it to the KeyId field. +func (o *ProviderExternalAccountBinding) SetKeyId(v string) { + o.KeyId = &v +} + +// GetKeySecret returns the KeySecret field value if set, zero value otherwise. +func (o *ProviderExternalAccountBinding) GetKeySecret() string { + if o == nil || IsNil(o.KeySecret) { + var ret string + return ret + } + return *o.KeySecret +} + +// GetKeySecretOk returns a tuple with the KeySecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderExternalAccountBinding) GetKeySecretOk() (*string, bool) { + if o == nil || IsNil(o.KeySecret) { + return nil, false + } + return o.KeySecret, true +} + +// HasKeySecret returns a boolean if a field has been set. +func (o *ProviderExternalAccountBinding) HasKeySecret() bool { + if o != nil && !IsNil(o.KeySecret) { + return true + } + + return false +} + +// SetKeySecret gets a reference to the given string and assigns it to the KeySecret field. +func (o *ProviderExternalAccountBinding) SetKeySecret(v string) { + o.KeySecret = &v +} + +func (o ProviderExternalAccountBinding) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.KeyId) { + toSerialize["keyId"] = o.KeyId + } + if !IsNil(o.KeySecret) { + toSerialize["keySecret"] = o.KeySecret + } + return toSerialize, nil +} + +type NullableProviderExternalAccountBinding struct { + value *ProviderExternalAccountBinding + isSet bool +} + +func (v NullableProviderExternalAccountBinding) Get() *ProviderExternalAccountBinding { + return v.value +} + +func (v *NullableProviderExternalAccountBinding) Set(val *ProviderExternalAccountBinding) { + v.value = val + v.isSet = true +} + +func (v NullableProviderExternalAccountBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableProviderExternalAccountBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProviderExternalAccountBinding(val *ProviderExternalAccountBinding) *NullableProviderExternalAccountBinding { + return &NullableProviderExternalAccountBinding{value: val, isSet: true} +} + +func (v NullableProviderExternalAccountBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProviderExternalAccountBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_provider_patch.go b/products/cert/model_provider_patch.go new file mode 100644 index 0000000..3b1c12b --- /dev/null +++ b/products/cert/model_provider_patch.go @@ -0,0 +1,146 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the ProviderPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProviderPatch{} + +// ProviderPatch struct for ProviderPatch +type ProviderPatch struct { + // Metadata + Metadata map[string]interface{} `json:"metadata,omitempty"` + Properties PatchName `json:"properties"` +} + +// NewProviderPatch instantiates a new ProviderPatch 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 NewProviderPatch(properties PatchName) *ProviderPatch { + this := ProviderPatch{} + + this.Properties = properties + + return &this +} + +// NewProviderPatchWithDefaults instantiates a new ProviderPatch 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 NewProviderPatchWithDefaults() *ProviderPatch { + this := ProviderPatch{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ProviderPatch) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderPatch) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ProviderPatch) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *ProviderPatch) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *ProviderPatch) GetProperties() PatchName { + if o == nil { + var ret PatchName + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *ProviderPatch) GetPropertiesOk() (*PatchName, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *ProviderPatch) SetProperties(v PatchName) { + o.Properties = v +} + +func (o ProviderPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableProviderPatch struct { + value *ProviderPatch + isSet bool +} + +func (v NullableProviderPatch) Get() *ProviderPatch { + return v.value +} + +func (v *NullableProviderPatch) Set(val *ProviderPatch) { + v.value = val + v.isSet = true +} + +func (v NullableProviderPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableProviderPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProviderPatch(val *ProviderPatch) *NullableProviderPatch { + return &NullableProviderPatch{value: val, isSet: true} +} + +func (v NullableProviderPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProviderPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_provider_read.go b/products/cert/model_provider_read.go new file mode 100644 index 0000000..3a96ce9 --- /dev/null +++ b/products/cert/model_provider_read.go @@ -0,0 +1,220 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the ProviderRead type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProviderRead{} + +// ProviderRead struct for ProviderRead +type ProviderRead struct { + // The ID (UUID) of the Provider. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the Provider. + Href string `json:"href"` + Metadata MetadataWithStatus `json:"metadata"` + Properties Provider `json:"properties"` +} + +// NewProviderRead instantiates a new ProviderRead 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 NewProviderRead(id string, type_ string, href string, metadata MetadataWithStatus, properties Provider) *ProviderRead { + this := ProviderRead{} + + this.Id = id + this.Type = type_ + this.Href = href + this.Metadata = metadata + this.Properties = properties + + return &this +} + +// NewProviderReadWithDefaults instantiates a new ProviderRead 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 NewProviderReadWithDefaults() *ProviderRead { + this := ProviderRead{} + return &this +} + +// GetId returns the Id field value +func (o *ProviderRead) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ProviderRead) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProviderRead) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *ProviderRead) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ProviderRead) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ProviderRead) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *ProviderRead) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ProviderRead) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ProviderRead) SetHref(v string) { + o.Href = v +} + +// GetMetadata returns the Metadata field value +func (o *ProviderRead) GetMetadata() MetadataWithStatus { + if o == nil { + var ret MetadataWithStatus + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *ProviderRead) GetMetadataOk() (*MetadataWithStatus, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *ProviderRead) SetMetadata(v MetadataWithStatus) { + o.Metadata = v +} + +// GetProperties returns the Properties field value +func (o *ProviderRead) GetProperties() Provider { + if o == nil { + var ret Provider + return ret + } + + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value +// and a boolean to check if the value has been set. +func (o *ProviderRead) GetPropertiesOk() (*Provider, bool) { + if o == nil { + return nil, false + } + return &o.Properties, true +} + +// SetProperties sets field value +func (o *ProviderRead) SetProperties(v Provider) { + o.Properties = v +} + +func (o ProviderRead) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + toSerialize["metadata"] = o.Metadata + toSerialize["properties"] = o.Properties + return toSerialize, nil +} + +type NullableProviderRead struct { + value *ProviderRead + isSet bool +} + +func (v NullableProviderRead) Get() *ProviderRead { + return v.value +} + +func (v *NullableProviderRead) Set(val *ProviderRead) { + v.value = val + v.isSet = true +} + +func (v NullableProviderRead) IsSet() bool { + return v.isSet +} + +func (v *NullableProviderRead) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProviderRead(val *ProviderRead) *NullableProviderRead { + return &NullableProviderRead{value: val, isSet: true} +} + +func (v NullableProviderRead) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProviderRead) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_provider_read_list.go b/products/cert/model_provider_read_list.go new file mode 100644 index 0000000..b65452d --- /dev/null +++ b/products/cert/model_provider_read_list.go @@ -0,0 +1,286 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the ProviderReadList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProviderReadList{} + +// ProviderReadList struct for ProviderReadList +type ProviderReadList struct { + // ID of the list of Provider resources. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the list of Provider resources. + Href string `json:"href"` + // The list of Provider resources. + Items []ProviderRead `json:"items,omitempty"` + // The offset specified in the request (if none was specified, the default offset is 0). + Offset int32 `json:"offset"` + // The limit specified in the request (if none was specified, use the endpoint's default pagination limit). + Limit int32 `json:"limit"` + Links Links `json:"_links"` +} + +// NewProviderReadList instantiates a new ProviderReadList 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 NewProviderReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *ProviderReadList { + this := ProviderReadList{} + + this.Id = id + this.Type = type_ + this.Href = href + this.Offset = offset + this.Limit = limit + this.Links = links + + return &this +} + +// NewProviderReadListWithDefaults instantiates a new ProviderReadList 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 NewProviderReadListWithDefaults() *ProviderReadList { + this := ProviderReadList{} + return &this +} + +// GetId returns the Id field value +func (o *ProviderReadList) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ProviderReadList) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProviderReadList) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *ProviderReadList) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ProviderReadList) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ProviderReadList) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *ProviderReadList) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ProviderReadList) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ProviderReadList) SetHref(v string) { + o.Href = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ProviderReadList) GetItems() []ProviderRead { + if o == nil || IsNil(o.Items) { + var ret []ProviderRead + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderReadList) GetItemsOk() ([]ProviderRead, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ProviderReadList) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []ProviderRead and assigns it to the Items field. +func (o *ProviderReadList) SetItems(v []ProviderRead) { + o.Items = v +} + +// GetOffset returns the Offset field value +func (o *ProviderReadList) GetOffset() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *ProviderReadList) GetOffsetOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *ProviderReadList) SetOffset(v int32) { + o.Offset = v +} + +// GetLimit returns the Limit field value +func (o *ProviderReadList) GetLimit() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *ProviderReadList) GetLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *ProviderReadList) SetLimit(v int32) { + o.Limit = v +} + +// GetLinks returns the Links field value +func (o *ProviderReadList) GetLinks() Links { + if o == nil { + var ret Links + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *ProviderReadList) GetLinksOk() (*Links, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *ProviderReadList) SetLinks(v Links) { + o.Links = v +} + +func (o ProviderReadList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + toSerialize["offset"] = o.Offset + toSerialize["limit"] = o.Limit + toSerialize["_links"] = o.Links + return toSerialize, nil +} + +type NullableProviderReadList struct { + value *ProviderReadList + isSet bool +} + +func (v NullableProviderReadList) Get() *ProviderReadList { + return v.value +} + +func (v *NullableProviderReadList) Set(val *ProviderReadList) { + v.value = val + v.isSet = true +} + +func (v NullableProviderReadList) IsSet() bool { + return v.isSet +} + +func (v *NullableProviderReadList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProviderReadList(val *ProviderReadList) *NullableProviderReadList { + return &NullableProviderReadList{value: val, isSet: true} +} + +func (v NullableProviderReadList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProviderReadList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_provider_read_list_all_of.go b/products/cert/model_provider_read_list_all_of.go new file mode 100644 index 0000000..2197ac4 --- /dev/null +++ b/products/cert/model_provider_read_list_all_of.go @@ -0,0 +1,203 @@ +/* + * Certificate Manager Service API + * + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * + * API version: 2.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cert + +import ( + "encoding/json" +) + +// checks if the ProviderReadListAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProviderReadListAllOf{} + +// ProviderReadListAllOf struct for ProviderReadListAllOf +type ProviderReadListAllOf struct { + // ID of the list of Provider resources. + Id string `json:"id"` + // The type of the resource. + Type string `json:"type"` + // The URL of the list of Provider resources. + Href string `json:"href"` + // The list of Provider resources. + Items []ProviderRead `json:"items,omitempty"` +} + +// NewProviderReadListAllOf instantiates a new ProviderReadListAllOf 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 NewProviderReadListAllOf(id string, type_ string, href string) *ProviderReadListAllOf { + this := ProviderReadListAllOf{} + + this.Id = id + this.Type = type_ + this.Href = href + + return &this +} + +// NewProviderReadListAllOfWithDefaults instantiates a new ProviderReadListAllOf 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 NewProviderReadListAllOfWithDefaults() *ProviderReadListAllOf { + this := ProviderReadListAllOf{} + return &this +} + +// GetId returns the Id field value +func (o *ProviderReadListAllOf) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ProviderReadListAllOf) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProviderReadListAllOf) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *ProviderReadListAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ProviderReadListAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ProviderReadListAllOf) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *ProviderReadListAllOf) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ProviderReadListAllOf) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ProviderReadListAllOf) SetHref(v string) { + o.Href = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ProviderReadListAllOf) GetItems() []ProviderRead { + if o == nil || IsNil(o.Items) { + var ret []ProviderRead + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderReadListAllOf) GetItemsOk() ([]ProviderRead, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ProviderReadListAllOf) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []ProviderRead and assigns it to the Items field. +func (o *ProviderReadListAllOf) SetItems(v []ProviderRead) { + o.Items = v +} + +func (o ProviderReadListAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + toSerialize["href"] = o.Href + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + return toSerialize, nil +} + +type NullableProviderReadListAllOf struct { + value *ProviderReadListAllOf + isSet bool +} + +func (v NullableProviderReadListAllOf) Get() *ProviderReadListAllOf { + return v.value +} + +func (v *NullableProviderReadListAllOf) Set(val *ProviderReadListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableProviderReadListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableProviderReadListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProviderReadListAllOf(val *ProviderReadListAllOf) *NullableProviderReadListAllOf { + return &NullableProviderReadListAllOf{value: val, isSet: true} +} + +func (v NullableProviderReadListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProviderReadListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/products/cert/model_resource_metadata_dto.go b/products/cert/model_resource_metadata_dto.go deleted file mode 100644 index e89648e..0000000 --- a/products/cert/model_resource_metadata_dto.go +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Certificate Manager Service API - * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. - * - * API version: 1.0 - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package cert - -import ( - "encoding/json" -) - -// ResourceMetadataDto The metadata of the resource. -type ResourceMetadataDto struct { - // The entity tag of the resource, as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11. The entity tag is also added as an 'ETag' response header to requests that do not use the 'depth' parameter. - Etag *string `json:"etag,omitempty"` - // The date the resource was created. - CreatedDate *string `json:"createdDate,omitempty"` - // The user who created the resource. - CreatedBy *string `json:"createdBy,omitempty"` - // The ID of the user who created the resource. - CreatedByUserId *string `json:"createdByUserId,omitempty"` - // The date when the resource was last modified. - LastModifiedDate *string `json:"lastModifiedDate,omitempty"` - // The user who last modified the resource. - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - // The ID of the user who last modified the resource. - LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"` - // The resource state. - State *string `json:"state,omitempty"` -} - -// NewResourceMetadataDto instantiates a new ResourceMetadataDto 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 NewResourceMetadataDto() *ResourceMetadataDto { - this := ResourceMetadataDto{} - - return &this -} - -// NewResourceMetadataDtoWithDefaults instantiates a new ResourceMetadataDto 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 NewResourceMetadataDtoWithDefaults() *ResourceMetadataDto { - this := ResourceMetadataDto{} - return &this -} - -// GetEtag returns the Etag field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetEtag() *string { - if o == nil { - return nil - } - - return o.Etag - -} - -// GetEtagOk returns a tuple with the Etag field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetEtagOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.Etag, true -} - -// SetEtag sets field value -func (o *ResourceMetadataDto) SetEtag(v string) { - - o.Etag = &v - -} - -// HasEtag returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasEtag() bool { - if o != nil && o.Etag != nil { - return true - } - - return false -} - -// GetCreatedDate returns the CreatedDate field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetCreatedDate() *string { - if o == nil { - return nil - } - - return o.CreatedDate - -} - -// GetCreatedDateOk returns a tuple with the CreatedDate field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetCreatedDateOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.CreatedDate, true -} - -// SetCreatedDate sets field value -func (o *ResourceMetadataDto) SetCreatedDate(v string) { - - o.CreatedDate = &v - -} - -// HasCreatedDate returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasCreatedDate() bool { - if o != nil && o.CreatedDate != nil { - return true - } - - return false -} - -// GetCreatedBy returns the CreatedBy field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetCreatedBy() *string { - if o == nil { - return nil - } - - return o.CreatedBy - -} - -// GetCreatedByOk returns a tuple with the CreatedBy field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetCreatedByOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.CreatedBy, true -} - -// SetCreatedBy sets field value -func (o *ResourceMetadataDto) SetCreatedBy(v string) { - - o.CreatedBy = &v - -} - -// HasCreatedBy returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasCreatedBy() bool { - if o != nil && o.CreatedBy != nil { - return true - } - - return false -} - -// GetCreatedByUserId returns the CreatedByUserId field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetCreatedByUserId() *string { - if o == nil { - return nil - } - - return o.CreatedByUserId - -} - -// GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetCreatedByUserIdOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.CreatedByUserId, true -} - -// SetCreatedByUserId sets field value -func (o *ResourceMetadataDto) SetCreatedByUserId(v string) { - - o.CreatedByUserId = &v - -} - -// HasCreatedByUserId returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasCreatedByUserId() bool { - if o != nil && o.CreatedByUserId != nil { - return true - } - - return false -} - -// GetLastModifiedDate returns the LastModifiedDate field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetLastModifiedDate() *string { - if o == nil { - return nil - } - - return o.LastModifiedDate - -} - -// GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetLastModifiedDateOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.LastModifiedDate, true -} - -// SetLastModifiedDate sets field value -func (o *ResourceMetadataDto) SetLastModifiedDate(v string) { - - o.LastModifiedDate = &v - -} - -// HasLastModifiedDate returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasLastModifiedDate() bool { - if o != nil && o.LastModifiedDate != nil { - return true - } - - return false -} - -// GetLastModifiedBy returns the LastModifiedBy field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetLastModifiedBy() *string { - if o == nil { - return nil - } - - return o.LastModifiedBy - -} - -// GetLastModifiedByOk returns a tuple with the LastModifiedBy field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetLastModifiedByOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.LastModifiedBy, true -} - -// SetLastModifiedBy sets field value -func (o *ResourceMetadataDto) SetLastModifiedBy(v string) { - - o.LastModifiedBy = &v - -} - -// HasLastModifiedBy returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasLastModifiedBy() bool { - if o != nil && o.LastModifiedBy != nil { - return true - } - - return false -} - -// GetLastModifiedByUserId returns the LastModifiedByUserId field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetLastModifiedByUserId() *string { - if o == nil { - return nil - } - - return o.LastModifiedByUserId - -} - -// GetLastModifiedByUserIdOk returns a tuple with the LastModifiedByUserId field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetLastModifiedByUserIdOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.LastModifiedByUserId, true -} - -// SetLastModifiedByUserId sets field value -func (o *ResourceMetadataDto) SetLastModifiedByUserId(v string) { - - o.LastModifiedByUserId = &v - -} - -// HasLastModifiedByUserId returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasLastModifiedByUserId() bool { - if o != nil && o.LastModifiedByUserId != nil { - return true - } - - return false -} - -// GetState returns the State field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ResourceMetadataDto) GetState() *string { - if o == nil { - return nil - } - - return o.State - -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ResourceMetadataDto) GetStateOk() (*string, bool) { - if o == nil { - return nil, false - } - - return o.State, true -} - -// SetState sets field value -func (o *ResourceMetadataDto) SetState(v string) { - - o.State = &v - -} - -// HasState returns a boolean if a field has been set. -func (o *ResourceMetadataDto) HasState() bool { - if o != nil && o.State != nil { - return true - } - - return false -} - -func (o ResourceMetadataDto) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Etag != nil { - toSerialize["etag"] = o.Etag - } - - if o.CreatedDate != nil { - toSerialize["createdDate"] = o.CreatedDate - } - - if o.CreatedBy != nil { - toSerialize["createdBy"] = o.CreatedBy - } - - if o.CreatedByUserId != nil { - toSerialize["createdByUserId"] = o.CreatedByUserId - } - - if o.LastModifiedDate != nil { - toSerialize["lastModifiedDate"] = o.LastModifiedDate - } - - if o.LastModifiedBy != nil { - toSerialize["lastModifiedBy"] = o.LastModifiedBy - } - - if o.LastModifiedByUserId != nil { - toSerialize["lastModifiedByUserId"] = o.LastModifiedByUserId - } - - if o.State != nil { - toSerialize["state"] = o.State - } - - return json.Marshal(toSerialize) -} - -type NullableResourceMetadataDto struct { - value *ResourceMetadataDto - isSet bool -} - -func (v NullableResourceMetadataDto) Get() *ResourceMetadataDto { - return v.value -} - -func (v *NullableResourceMetadataDto) Set(val *ResourceMetadataDto) { - v.value = val - v.isSet = true -} - -func (v NullableResourceMetadataDto) IsSet() bool { - return v.isSet -} - -func (v *NullableResourceMetadataDto) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableResourceMetadataDto(val *ResourceMetadataDto) *NullableResourceMetadataDto { - return &NullableResourceMetadataDto{value: val, isSet: true} -} - -func (v NullableResourceMetadataDto) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableResourceMetadataDto) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/products/cert/utils.go b/products/cert/utils.go index 80fc2b6..be46c4d 100644 --- a/products/cert/utils.go +++ b/products/cert/utils.go @@ -1,9 +1,9 @@ /* * Certificate Manager Service API * - * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. + * Using the Certificate Manager Service, you can conveniently provision and manage SSL certificates with IONOS services and your internal connected resources. For the [Application Load Balancer](https://api.ionos.com/docs/cloud/v6/#Application-Load-Balancers-get-datacenters-datacenterId-applicationloadbalancers), you usually need a certificate to encrypt your HTTPS traffic. The service provides the basic functions of uploading and deleting your certificates for this purpose. * - * API version: 1.0 + * API version: 2.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,9 @@ package cert import ( + "encoding/json" "github.com/ionos-cloud/sdk-go-bundle/shared" + "reflect" "strings" "time" ) @@ -44,3 +46,313 @@ func (t *IonosTime) UnmarshalJSON(data []byte) error { *t = IonosTime{tt} return nil } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +func IsZero(v interface{}) bool { + return reflect.ValueOf(v).IsZero() +}